:root {
  --background: #f7f8fc;
  --background-soft: #eaf1fd;
  --foreground: #222234;
  --muted: #6b6b7d;
  --surface-solid: #ffffff;
  --border: #e2e4ec;
  --accent: #47418c;
  --accent-hover: #312d68;
  --accent-soft: #eceaf8;
  --accent-fg: #312d68;
  --poko-shade: #cfe2fa;
  --income: #65b6ad;
  --expense: #d65a5a;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Fraunces", "Manrope", Georgia, serif;
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-fg);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent-hover);
}

img {
  display: block;
  max-width: 100%;
}

/* —— Shared chrome —— */

.site-top {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(247, 248, 252, 0.82);
  border-bottom: 1px solid rgba(226, 228, 236, 0.7);
}

.site-top-inner,
.shell,
.band-inner {
  width: min(68rem, calc(100% - 2.5rem));
  margin: 0 auto;
}

.site-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.shell {
  padding: 1.25rem 0 3rem;
}

.shell--legal {
  width: min(42rem, calc(100% - 2rem));
  padding-top: 1.5rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 2.1rem;
  height: 2.1rem;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(34, 34, 52, 0.08));
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-name span {
  font-weight: 500;
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header-link {
  display: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.header-link:hover {
  color: var(--foreground);
}

@media (min-width: 640px) {
  .header-link {
    display: inline;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.12s ease,
    box-shadow 0.18s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(71, 65, 140, 0.24);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--accent-soft);
  color: var(--accent-fg);
}

.btn-compact {
  min-height: 2.4rem;
  padding: 0.45rem 1.05rem;
  font-size: 0.875rem;
}

.btn-ghost {
  background: transparent;
  color: var(--accent-fg);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background: var(--accent-soft);
}

/* —— Home page —— */

.page-home {
  overflow-x: clip;
}

.hero-stage {
  position: relative;
  box-sizing: border-box;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  background:
    radial-gradient(ellipse 70% 55% at 15% 15%, rgba(71, 65, 140, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 45% at 85% 20%, rgba(207, 226, 250, 0.85), transparent 50%),
    radial-gradient(ellipse 50% 40% at 60% 100%, rgba(236, 234, 248, 0.9), transparent 55%),
    linear-gradient(180deg, #f7f8fc 0%, #eef2fb 55%, #e8eef9 100%);
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(71, 65, 140, 0.06) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 90%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: min(68rem, calc(100% - 2.5rem));
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  padding: 2rem 0;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 1.5rem 2.5rem;
    /* Do not stretch to full viewport — flex parent centers this block */
    min-height: 0;
    padding: 2rem 0;
  }
}

.hero-copy {
  animation: rise-in 0.7s ease both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-kicker {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-brand {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(3.4rem, 9vw, 5.6rem);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.hero-brand span {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}

.hero-pitch {
  margin: 0 0 1.85rem;
  max-width: 28rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.5;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 22rem;
  animation: rise-in 0.85s 0.1s ease both;
}

.hero-poko {
  position: relative;
  z-index: 2;
  width: min(22rem, 78vw);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(49, 45, 104, 0.18));
  animation: poko-float 4s ease-in-out infinite;
}

@keyframes poko-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero-glow {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 70%;
  height: 40%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(71, 65, 140, 0.22), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

/* Product window in hero (desktop accent) */
.hero-device {
  display: none;
}

@media (min-width: 900px) {
  .hero-visual {
    justify-content: flex-end;
    align-items: center;
    padding: 0 0.5rem 0 0;
    min-height: 0;
  }

  .hero-poko {
    position: absolute;
    right: -1rem;
    bottom: -0.5rem;
    width: 15.5rem;
    z-index: 3;
  }

  .hero-device {
    display: block;
    position: relative;
    z-index: 1;
    width: min(22rem, 100%);
    margin: 0 4rem 2.5rem 0;
    border-radius: 1.6rem;
    border: 1px solid rgba(226, 228, 236, 0.95);
    background: rgba(255, 255, 255, 0.88);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.8) inset,
      0 30px 60px rgba(34, 34, 52, 0.1);
    overflow: hidden;
    animation: rise-in 0.9s 0.15s ease both;
  }
}

.device-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.device-bar strong {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.device-bar span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.device-list {
  padding: 0.35rem 0.4rem 0.75rem;
}

.tx {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.75rem;
  padding: 0.8rem 0.7rem;
  border-radius: 0.85rem;
}

.tx + .tx {
  margin-top: 0.15rem;
}

.tx:nth-child(odd) {
  background: rgba(247, 248, 252, 0.9);
}

.tx-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tx-meta {
  margin: 0;
  grid-column: 1;
  font-size: 0.75rem;
  color: var(--muted);
}

.tx-amt {
  margin: 0;
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.tx-amt.out {
  color: var(--expense);
}

.tx-amt.in {
  color: var(--income);
}

.device-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem 1.05rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(236, 234, 248, 0.35), transparent);
}

.device-foot p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.device-foot strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

/* Sections */

.section {
  padding: 4.5rem 0;
}

.section--soft {
  background:
    linear-gradient(180deg, rgba(234, 241, 253, 0.55), rgba(247, 248, 252, 0.2) 40%, transparent),
    var(--background);
}

.section--ink {
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(71, 65, 140, 0.35), transparent 55%),
    linear-gradient(160deg, #312d68 0%, #47418c 48%, #2a2754 100%);
  color: #f4f5fb;
}

.section--ink .section-kicker {
  color: #c9c4ef;
}

.section--ink .section-title {
  color: #fff;
}

.section--ink .section-lead {
  color: rgba(244, 245, 251, 0.78);
}

.section-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  margin: 0 0 0.75rem;
  max-width: 18ch;
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.section-lead {
  margin: 0;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
}

.split {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }

  .split--reverse .split-copy {
    order: 2;
  }

  .split--reverse .split-media {
    order: 1;
  }
}

.feature-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.35rem;
  border-top: 1px solid var(--border);
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--foreground);
}

.section--ink .feature-list li {
  border-top-color: rgba(255, 255, 255, 0.12);
  color: rgba(244, 245, 251, 0.92);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--accent);
}

.section--ink .feature-list li::before {
  background: #c9c4ef;
}

.media-panel {
  position: relative;
  border-radius: 1.75rem;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(207, 226, 250, 0.7), transparent 50%),
    linear-gradient(160deg, #ffffff, #eef2fb);
  border: 1px solid var(--border);
  min-height: 18rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.media-panel img {
  width: min(16rem, 70%);
  height: auto;
  filter: drop-shadow(0 16px 28px rgba(49, 45, 104, 0.16));
  animation: poko-float 4.5s ease-in-out infinite;
}

.media-panel--chat {
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  justify-content: flex-end;
  padding: 1.75rem;
  background:
    radial-gradient(ellipse 50% 40% at 80% 0%, rgba(71, 65, 140, 0.12), transparent),
    #fff;
}

.chat-bubble {
  max-width: 88%;
  padding: 0.85rem 1rem;
  border-radius: 1.15rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.chat-bubble--user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 0.35rem;
}

.chat-bubble--poko {
  align-self: flex-start;
  background: rgba(0, 0, 0, 0.04);
  color: var(--foreground);
  border-bottom-left-radius: 0.35rem;
}

.chat-row {
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
}

.chat-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(71, 65, 140, 0.15);
}

.wa-card {
  width: min(20rem, 100%);
  border-radius: 1.35rem;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(34, 34, 52, 0.08);
  overflow: hidden;
}

.wa-head {
  padding: 0.9rem 1rem;
  background: linear-gradient(180deg, #eceaf8, #f7f8fc);
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-fg);
}

.wa-body {
  padding: 1rem;
  display: grid;
  gap: 0.65rem;
}

.wa-msg {
  margin: 0;
  max-width: 90%;
  padding: 0.7rem 0.85rem;
  border-radius: 0.9rem;
  font-size: 0.88rem;
  line-height: 1.4;
  background: #dcf8c6;
  color: #1f2a1c;
}

.wa-msg--bot {
  background: #f2f3f7;
  color: var(--foreground);
}

.wa-msg strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* Trust / capability strip */

.strip {
  padding: 2.25rem 0;
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.55);
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}

@media (min-width: 800px) {
  .strip-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.strip-item h3 {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.strip-item p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
}

/* Closing CTA */

.closing {
  padding: 5rem 0;
  text-align: center;
  background:
    radial-gradient(ellipse 50% 60% at 50% 0%, rgba(207, 226, 250, 0.65), transparent 60%),
    var(--background);
}

.closing-mark {
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 1.25rem;
  object-fit: contain;
  animation: poko-float 3.6s ease-in-out infinite;
  filter: drop-shadow(0 10px 20px rgba(71, 65, 140, 0.16));
}

.closing h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 560;
  letter-spacing: -0.035em;
}

.closing p {
  margin: 0 auto 1.75rem;
  max-width: 28rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--muted);
}

.closing .cta-row {
  justify-content: center;
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 1.75rem 0 2.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer-home {
  width: min(68rem, calc(100% - 2.5rem));
  margin: 0 auto;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--foreground);
}

/* —— Legal / 404 shared —— */

.atmosphere {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(71, 65, 140, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(207, 226, 250, 0.55), transparent 50%),
    var(--background);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: calc(100svh - 8.5rem);
  padding: 1.5rem 0 2.75rem;
}

.hero--compact {
  min-height: calc(100svh - 10rem);
}

.error-code {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-mark {
  width: 5.5rem;
  height: 5.5rem;
  margin-bottom: 1.5rem;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(71, 65, 140, 0.18));
  animation: poko-float 3.2s ease-in-out infinite;
}

.legal-header {
  margin-bottom: 2rem;
}

.legal-header h1 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  letter-spacing: -0.03em;
}

.legal-header p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.legal {
  padding-bottom: 2.5rem;
}

.legal h2 {
  margin: 2rem 0 0.65rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.legal p,
.legal li {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--foreground);
}

.legal p {
  margin: 0 0 0.9rem;
}

.legal ul {
  margin: 0 0 0.9rem;
  padding-left: 1.2rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

.legal a {
  font-weight: 500;
}

@media (max-width: 640px) {
  .hero-stage {
    min-height: calc(100svh - var(--header-h));
    justify-content: center;
  }

  .hero-grid {
    padding: 1.75rem 0;
    width: min(68rem, calc(100% - 1.5rem));
  }

  .hero-visual {
    min-height: 16rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .cta-row {
    width: 100%;
  }

  .cta-row .btn {
    flex: 1 1 auto;
  }

  .closing {
    padding: 3.75rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
