/* Stowly website. Bold color bands, big type and pill buttons, with the
   colors of the app's design kit (app/lib/core/presentation/theme). */

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* Motion (Emil Kowalski's curves): enter with ease-out, move with ease-in-out. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* Fixed brand colors: the bands look the same in light and dark mode. */
  --navy: #0B2236;
  --navy-2: #0F2D4A;
  --navy-3: #173F63;
  --lime: #B6F24A;
  --lime-deep: #8FD12F;
  --forest: #1B5E20;
  --teal: #1E6F6A;
  --on-navy: #EEF3F8;
  --on-navy-muted: #A9BCCE;

  /* Surfaces that follow the theme. */
  --bg: #F4F7F2;
  --surface: #FFFFFF;
  --surface-2: #E8F5E9;
  --text: #0F2D4A;
  --text-muted: #3F5468;
  --outline: #C3D0DE;
  --link: #1E6F6A;
  --accent-text: #1E6F6A;
  --shadow: 0 2px 6px rgba(11, 34, 54, .06), 0 24px 48px rgba(11, 34, 54, .12);

  --radius: 14px;
  --radius-lg: 20px;
  --max: 1160px;
  --gutter: 16px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #06162B;
    --surface: #0B2A4A;
    --surface-2: #123558;
    --text: #EEF3F8;
    --text-muted: #B4C5D6;
    --outline: #2A5078;
    --link: #B6F24A;
    --accent-text: #B6F24A;
    --shadow: 0 2px 6px rgba(0, 0, 0, .3), 0 24px 48px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #06162B;
  --surface: #0B2A4A;
  --surface-2: #123558;
  --text: #EEF3F8;
  --text-muted: #B4C5D6;
  --outline: #2A5078;
  --link: #B6F24A;
  --accent-text: #B6F24A;
  --shadow: 0 2px 6px rgba(0, 0, 0, .3), 0 24px 48px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--lime-deep); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); color: var(--text); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 20; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 28px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, box-shadow 150ms ease;
}
.btn:active { transform: scale(.97); }
.btn-lime { background: var(--lime); color: var(--navy); box-shadow: 0 8px 24px rgba(182, 242, 74, .25); }
.btn-lime:hover { background: #C4F86A; }
.btn-navy { background: var(--navy); color: var(--on-navy); }
.btn-navy:hover { background: var(--navy-3); }
.btn-outline { background: transparent; color: inherit; border: 2px solid currentColor; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--navy); color: var(--on-navy); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-navy); text-decoration: none; font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--on-navy-muted); text-decoration: none; font-weight: 700; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--on-navy); background: var(--navy-3); }
.site-nav .btn { min-height: 40px; padding: 8px 18px; font-size: .9rem; margin-left: 6px; color: var(--navy); }
.site-nav .btn:hover { background: #C4F86A; color: var(--navy); }
@media (max-width: 720px) { .site-nav .nav-optional { display: none; } }
@media (max-width: 420px) { .site-nav .btn { display: none; } }

/* Hero */
.hero { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: auto -20% -55% auto; width: 760px; height: 760px; border-radius: 50%;
  background: radial-gradient(circle, rgba(182, 242, 74, .22), rgba(182, 242, 74, 0) 65%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 80px; padding-bottom: 96px; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 22px; }
.hero h1 em { font-style: normal; color: var(--navy); background: var(--lime); padding: 0 .14em; border-radius: .18em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero .lead { font-size: 1.2rem; color: var(--on-navy-muted); margin: 0 0 32px; max-width: 32em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.badge-soon { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 14px; border: 1px solid var(--navy-3); background: rgba(255, 255, 255, .04); color: var(--on-navy); font-size: .8rem; line-height: 1.2; }
.badge-soon b { display: block; font-size: 1rem; }
.badge-soon svg { width: 26px; height: 26px; flex: none; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 72px; } }

/* Phone mock-up built with CSS (not a screenshot) */
.stage { position: relative; display: flex; justify-content: center; padding: 16px 0; }
.phone {
  position: relative; width: 300px; max-width: 86%; aspect-ratio: 9 / 18.5; background: #050F1C; border-radius: 46px; padding: 12px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .45), inset 0 0 0 2px #22384F;
}
.screen { height: 100%; border-radius: 36px; background: #F4F7F2; overflow: hidden; color: #0F2D4A; display: flex; flex-direction: column; }
.screen-top { padding: 22px 16px 10px; display: flex; justify-content: space-between; align-items: center; font-size: .72rem; color: #3F5468; }
.screen-top b { color: #0F2D4A; font-size: .95rem; }
.screen-top .sync { display: inline-flex; align-items: center; gap: 5px; }
.screen-top .sync::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4CAF50; }
.balance { margin: 0 12px; padding: 16px; border-radius: 20px; background: #1B5E20; color: #fff; }
.balance small { opacity: .8; font-size: .72rem; }
.balance strong { display: block; font-size: 1.55rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mini { list-style: none; margin: 10px 12px 0; padding: 0; display: grid; gap: 6px; font-size: .74rem; }
.mini li { display: flex; justify-content: space-between; background: #fff; padding: 9px 11px; border-radius: 12px; }
.mini b { font-variant-numeric: tabular-nums; }
.mini i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.i-income { background: #0288D1; } .i-fixed { background: #43A047; } .i-credit { background: #FB8C00; } .i-occ { background: #E53935; }
.screen-gmf { margin: auto 12px 14px; font-size: .7rem; color: #3F5468; }
.screen-gmf .bar { height: 7px; background: #DDE7F2; border-radius: 99px; margin-top: 5px; overflow: hidden; }
.screen-gmf .bar span { display: block; height: 100%; width: 62%; background: #2E7D32; border-radius: inherit; }

.chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px;
  background: #fff; color: #0F2D4A; font-size: .8rem; line-height: 1.25; box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
}
.chip b { display: block; font-size: .95rem; }
.chip .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.chip .ico svg { width: 18px; height: 18px; }
.chip-1 { top: -1%; left: 0; }
.chip-1 .ico { background: #E1F5FE; color: #0277BD; }
.chip-2 { bottom: 8%; right: 0; animation-delay: -3s; }
.chip-2 .ico { background: var(--lime); color: var(--navy); }
@media (max-width: 480px) { .chip { font-size: .72rem; padding: 8px 10px; } .chip-1 { left: -4px; } .chip-2 { right: -4px; } }

/* Lime statement band */
.band-lime { background: var(--lime); color: var(--navy); }
.band-lime .wrap { padding-top: 64px; padding-bottom: 64px; text-align: center; }
.band-lime h2 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); line-height: 1.08; letter-spacing: -.03em; margin: 0 auto 12px; max-width: 18em; }
.band-lime p { margin: 0 auto; max-width: 36em; font-size: 1.1rem; }

/* Ticker of expense types */
.ticker { background: var(--navy); color: var(--on-navy); overflow: hidden; padding: 18px 0; border-top: 1px solid var(--navy-3); }
.ticker-track { display: flex; gap: 14px; width: max-content; animation: slide 40s linear infinite; }
.ticker span { white-space: nowrap; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--navy-3); font-weight: 700; font-size: .95rem; color: var(--on-navy-muted); }
.ticker span:nth-child(3n+1) { color: var(--lime); border-color: rgba(182, 242, 74, .35); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section h2 { font-size: clamp(2rem, 4.8vw, 3.2rem); line-height: 1.06; letter-spacing: -.03em; margin: 0 0 14px; }
.section-head p { color: var(--text-muted); font-size: 1.12rem; margin: 0; }

/* Feature rows, alternating sides */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 96px; }
.feature:last-child { margin-bottom: 0; }
.feature.flip .feature-art { order: 2; }
.feature h3 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.1; letter-spacing: -.035em; margin: 0 0 14px; }
.feature p { color: var(--text-muted); margin: 0 0 16px; font-size: 1.08rem; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 34px; color: var(--text); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2236' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.feature-art { border-radius: var(--radius-lg); padding: 32px; min-height: 340px; display: grid; place-items: center; position: relative; overflow: hidden; }
.art-navy { background: var(--navy); color: var(--on-navy); }
.art-mint { background: var(--surface-2); }
.art-lime { background: var(--lime); color: var(--navy); }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 28px; margin-bottom: 72px; }
  .feature.flip .feature-art { order: 0; }
}

/* Art: monthly table */
.sheet { width: 100%; max-width: 400px; background: #fff; color: #0F2D4A; border-radius: 18px; padding: 14px; box-shadow: var(--shadow); font-size: .8rem; }
.sheet table { width: 100%; border-collapse: separate; border-spacing: 0 4px; }
.sheet th { text-align: right; font-size: .68rem; color: #fff; padding: 6px 8px; }
.sheet th:first-child { text-align: left; }
.sheet thead th { background: #9E9E9E; }
.sheet thead th.now { background: #2E7D32; }
.sheet thead th:first-child { background: transparent; color: #3F5468; }
.sheet td { padding: 7px 8px; text-align: right; background: #EEEEEE; font-variant-numeric: tabular-nums; }
.sheet td.now { background: #C8E6C9; font-weight: 700; }
.sheet td:first-child { text-align: left; background: #F4F7F2; font-weight: 700; }
.sheet tr td:first-child, .sheet tr th:first-child { border-radius: 8px 0 0 8px; }
.sheet tr td:last-child, .sheet tr th:last-child { border-radius: 0 8px 8px 0; }
.sheet .total td { background: #FFE0B2; }
.sheet .total td:first-child { background: #FB8C00; color: #fff; }

/* Art: accounts */
.accounts { display: grid; gap: 12px; width: 100%; max-width: 340px; }
.acc { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-radius: 18px; background: var(--navy-2); border: 1px solid var(--navy-3); }
.acc small { display: block; color: var(--on-navy-muted); font-size: .8rem; }
.acc b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.acc .tag { font-size: .7rem; font-weight: 700; color: var(--navy); background: var(--lime); padding: 3px 10px; border-radius: 999px; }
.transfer { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--lime); font-weight: 700; font-size: .9rem; }

/* Art: offline */
.offline { text-align: center; max-width: 320px; }
.offline .cloud { width: 120px; height: 120px; margin: 0 auto 18px; border-radius: 36px; background: var(--navy); color: var(--lime); display: grid; place-items: center; box-shadow: var(--shadow); }
.offline .cloud svg { width: 60px; height: 60px; }
.offline .queue { display: grid; gap: 8px; text-align: left; }
.offline .queue div { background: var(--surface); color: var(--text); border-radius: 14px; padding: 10px 14px; font-size: .9rem; display: flex; justify-content: space-between; gap: 8px; box-shadow: 0 2px 8px rgba(11, 34, 54, .06); }
.offline .queue em { font-style: normal; color: #1E6F6A; font-weight: 700; font-size: .8rem; }

/* 4x1000 calculator */
.calc-band { background: var(--navy); color: var(--on-navy); }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.calc h2 { color: var(--on-navy); }
.calc p { color: var(--on-navy-muted); font-size: 1.08rem; }
.calc-card { background: var(--navy-2); border: 1px solid var(--navy-3); border-radius: var(--radius-lg); padding: 32px; }
.calc-card label { display: block; font-weight: 700; margin-bottom: 10px; }
.money { display: flex; align-items: center; gap: 8px; background: #fff; color: var(--navy); border-radius: 16px; padding: 4px 18px; border: 3px solid transparent; }
.money:focus-within { border-color: var(--lime); }
.money span { font-weight: 700; font-size: 1.4rem; }
.money input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.6rem; font-weight: 700; color: var(--navy); padding: 10px 0; font-variant-numeric: tabular-nums; }
.gauge { height: 16px; border-radius: 999px; background: var(--navy-3); overflow: hidden; margin: 24px 0 10px; }
.gauge span { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--lime); transform: scaleX(0); transform-origin: left center; transition: transform 300ms var(--ease-out), background-color 200ms ease; }
.gauge span[data-level="warn"] { background: #F9A825; }
.gauge span[data-level="over"] { background: #FF6B5E; }
.calc-out { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; color: var(--on-navy-muted); }
.calc-out b { color: var(--on-navy); font-variant-numeric: tabular-nums; }
.calc-msg { margin: 18px 0 0; padding: 14px 16px; border-radius: 14px; background: rgba(182, 242, 74, .12); color: var(--on-navy); font-size: .95rem; min-height: 3.2em; }
.calc-msg[data-level="warn"] { background: rgba(249, 168, 37, .16); }
.calc-msg[data-level="over"] { background: rgba(255, 107, 94, .16); }
.calc-note { font-size: .8rem; color: var(--on-navy-muted); margin: 14px 0 0; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; gap: 28px; } .calc-card { padding: 22px; } }

/* Before and after */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vs-card { border-radius: var(--radius-lg); padding: 32px; }
.vs-card h3 { margin: 0 0 16px; font-size: 1.4rem; letter-spacing: -.02em; }
.vs-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.vs-card li { padding-left: 32px; position: relative; }
.vs-old { background: var(--surface); border: 1px solid var(--outline); color: var(--text-muted); }
.vs-old li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--outline) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F2D4A' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E") center / 12px no-repeat; }
.vs-new { background: var(--forest); color: #fff; }
.vs-new li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2236' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }
@media (max-width: 760px) { .versus { grid-template-columns: 1fr; } .vs-card { padding: 24px; } }


/* FAQ */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); padding: 0 24px; }
.faq summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 1.08rem; padding: 20px 36px 20px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--lime); color: var(--navy); font-size: 1.2rem; line-height: 1; transition: transform 200ms var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--text-muted); }

/* Final call to action */
.final { background: var(--lime); color: var(--navy); }
.final .wrap { text-align: center; padding-top: 88px; padding-bottom: 88px; }
.final h2 { font-size: clamp(2.2rem, 5.6vw, 4rem); line-height: 1.02; letter-spacing: -.035em; margin: 0 auto 16px; max-width: 14em; }
.final p { margin: 0 auto 28px; max-width: 32em; font-size: 1.12rem; }
.final .badges { justify-content: center; margin-top: 0; }
.final .badge-soon { background: var(--navy); border-color: var(--navy); }

/* Legal and help pages */
.page-hero { background: var(--navy); color: var(--on-navy); }
.page-hero .wrap { max-width: 840px; padding-top: 64px; padding-bottom: 56px; }
.page-hero h1 { font-size: clamp(2.2rem, 5.6vw, 3.6rem); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 10px; }
.page-hero p { margin: 0; color: var(--on-navy-muted); font-size: 1.05rem; }
.doc { padding: 48px 0 88px; }
.doc .wrap { max-width: 760px; }
.doc h2 { font-size: 1.5rem; letter-spacing: -.02em; margin: 48px 0 12px; scroll-margin-top: 88px; }
.doc h3 { font-size: 1.1rem; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--text-muted); }
.doc strong { color: var(--text); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.toc { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); padding: 20px 24px; }
.toc p { margin: 0 0 8px; font-weight: 700; color: var(--text); }
.toc ol { margin: 0; columns: 2; column-gap: 32px; }
.toc li { margin: 3px 0; break-inside: avoid; }
@media (max-width: 600px) { .toc ol { columns: 1; } }
.table-scroll { overflow-x: auto; margin: 12px 0; border: 1px solid var(--outline); border-radius: 16px; }
.table-scroll table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table-scroll th, .table-scroll td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--outline); }
.table-scroll th { background: var(--surface); color: var(--text); }
.table-scroll td { color: var(--text-muted); }
.table-scroll tr:last-child td { border-bottom: 0; }
.notice { border-radius: 16px; padding: 16px 20px; margin: 20px 0; background: var(--surface-2); }
.notice p { color: var(--text); margin: 0; }
.steps-list { list-style: none; counter-reset: s; padding: 0 !important; display: grid; gap: 12px; }
.steps-list li { counter-increment: s; position: relative; padding: 18px 20px 18px 68px; background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); margin: 0; }
.steps-list li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--lime); color: var(--navy); font-weight: 700; display: grid; place-items: center; }
.mail-card { background: var(--navy); color: var(--on-navy); border-radius: var(--radius-lg); padding: 32px; margin: 24px 0; }
.mail-card dl { margin: 22px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: .95rem; }
.mail-card dt { font-weight: 700; }
.mail-card dd { margin: 0; color: var(--on-navy-muted); overflow-wrap: anywhere; }
@media (max-width: 480px) { .mail-card { padding: 22px; } .mail-card dl { grid-template-columns: 1fr; } .mail-card dd { margin-bottom: 8px; } }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-navy-muted); padding: 56px 0 40px; font-size: .92rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: var(--on-navy); margin: 0 0 12px; font-size: .95rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-navy-muted); text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.site-footer .brand { margin-bottom: 10px; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--navy-3); padding-top: 24px; margin-top: 8px; font-size: .82rem; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-nav a { white-space: nowrap; }
@media (max-width: 420px) {
  .brand { font-size: 1.15rem; }
  .site-nav a { padding: 6px 8px; font-size: .85rem; }
}

/* Guideline fixes */
html { -webkit-tap-highlight-color: rgba(182, 242, 74, .25); }
a, button, summary, input { touch-action: manipulation; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
section[id], [id].section { scroll-margin-top: 76px; }
.site-header .wrap { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.site-footer { padding-bottom: max(40px, env(safe-area-inset-bottom)); }
.foot-title { color: var(--on-navy); margin: 0 0 12px; font-size: .95rem; font-weight: 700; }
.site-nav a:hover { color: var(--on-navy); }
.faq summary:hover { color: var(--accent-text); }
.vs-card li, .tile p, .feature p { overflow-wrap: break-word; }

/* Ticker with a pause button */
.ticker { position: relative; }
.ticker-toggle {
  position: absolute; z-index: 2; right: max(12px, env(safe-area-inset-right)); top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--navy-3); background: var(--navy-2); color: var(--on-navy);
  display: grid; place-items: center; cursor: pointer;
}
.ticker-toggle:hover { background: var(--navy-3); }
.ticker.paused .ticker-track { animation-play-state: paused; }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* Getting started */
.section-steps { background: var(--surface); border-top: 1px solid var(--outline); border-bottom: 1px solid var(--outline); }
.start { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.start li { background: var(--bg); border-radius: var(--radius-lg); padding: 32px 28px; position: relative; }
.start-n { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--navy); color: var(--lime); font-weight: 700; font-size: 1.5rem; margin-bottom: 18px; }
.start h3 { margin: 0 0 8px; font-size: 1.25rem; letter-spacing: -.02em; }
.start p { margin: 0; color: var(--text-muted); }
@media (max-width: 820px) { .start { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ticker-toggle { display: none; } }
.calc > *, .feature > *, .versus > *, .hero .wrap > * { min-width: 0; }
.money input { width: 100%; }

/* Headings and brand use Inter Bold; body text uses the system font. */
h1, h2, h3, .brand, .btn, .start-n, .balance strong { font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif; }

/* WhatsApp button (shown only when the page includes it) */
.whatsapp {
  position: fixed; z-index: 15; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 12px 18px 12px 14px; border-radius: 999px;
  background: #25D366; color: #06331A; font-weight: 700; text-decoration: none; box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
}
.whatsapp:hover { background: #3DE07A; }
.whatsapp svg { width: 24px; height: 24px; flex: none; }
@media (max-width: 480px) { .whatsapp span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .whatsapp { padding: 14px; } }

/* Legal links row in the footer */
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; }

/* Single call to action */
.btn-big { min-height: 60px; padding: 16px 40px; font-size: 1.1rem; }
.final .consent { margin: 18px auto 0; font-size: .9rem; max-width: 34em; }
.final .consent a { color: var(--navy); font-weight: 700; }

/* 404 */
.not-found .wrap { min-height: calc(100vh - 68px); padding-top: 96px; padding-bottom: 120px; text-align: center; }
.page-hero .big-404 { font-family: "Inter", "Segoe UI", Arial, sans-serif; font-weight: 700; font-size: clamp(4.5rem, 20vw, 6rem); line-height: 1; letter-spacing: -.04em; color: var(--lime); margin: 0 0 8px !important; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

/* ---- Polish from the Emil Kowalski, Impeccable and Taste guidelines ---- */

/* Browser surfaces in the palette */
::selection { background: var(--lime); color: var(--navy); }
input { caret-color: var(--teal); }
html { scrollbar-color: var(--navy-3) var(--bg); }

/* Hover only where there is a real pointer */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); }
  .btn:hover:active { transform: scale(.97); }
}

/* One authored moment: the hero enters once on load. */
@keyframes enter { from { opacity: 0; transform: translateY(12px); } }
@keyframes enter-phone { from { opacity: 0; transform: translateY(28px) scale(.96); } }
@keyframes enter-chip { from { opacity: 0; transform: translateY(8px) scale(.95); } }
@keyframes fade-in { from { opacity: 0; } }
[data-enter] { animation: enter 600ms var(--ease-out) both; }
[data-enter="2"] { animation-delay: 70ms; }
[data-enter="3"] { animation-delay: 140ms; }
[data-enter="4"] { animation-delay: 210ms; }
.phone[data-enter] { animation: enter-phone 800ms var(--ease-out) 120ms both; }
.chip { animation: enter-chip 500ms var(--ease-out) both; }
.chip-1 { animation-delay: 650ms; }
.chip-2 { animation-delay: 760ms; }

/* Reduced motion: keep the fades, drop the movement. */
@media (prefers-reduced-motion: reduce) {
  [data-enter], .phone[data-enter], .chip { animation-name: fade-in; }
  .ticker-track { animation: none; }
  .btn:active, .btn:hover { transform: none; }
  .gauge span, .faq summary::after { transition-property: background-color; }
}

/* Hero facts */
.facts { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--on-navy-muted); font-size: .95rem; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }

/* Privacy split */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.split h2 { margin-bottom: 16px; }
.split-lead { color: var(--text-muted); font-size: 1.12rem; margin: 0 0 20px; max-width: 30em; }
.text-link { font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.promises { margin: 0; display: grid; gap: 0; }
.promises div { padding: 20px 0; border-top: 1px solid var(--outline); }
.promises div:last-child { border-bottom: 1px solid var(--outline); }
.promises dt { font-family: "Inter", "Segoe UI", Arial, sans-serif; font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; margin-bottom: 4px; }
.promises dd { margin: 0; color: var(--text-muted); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* Touch targets of at least 44px outside running text */
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer ul { gap: 0; }
.ticker-toggle { width: 44px; height: 44px; }

/* Phones: one column, full-width buttons */
@media (max-width: 480px) {
  .hero .cta .btn, .final .btn-big, .mail-card .btn, .cta-row .btn { width: 100%; }
}
.brand { min-height: 44px; }

/* ---- Modern Web Guidance ---- */

/* Pages cross-fade when moving between them (Chrome, Edge, Safari; others navigate instantly). */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

/* The fallback font matches Inter's x-height while Inter loads: less layout shift. */
h1, h2, h3, .brand, .btn { font-size-adjust: from-font; }

/* Ticker toggle shows the icon of the action it will do. */
.ticker-toggle .icon-play { display: none; }
.ticker.paused .ticker-toggle .icon-play { display: block; }
.ticker.paused .ticker-toggle .icon-pause { display: none; }

/* Hero phone with a real screenshot of the app */
/* No rotation: rotating a screenshot blurs its text. */
.phone:has(picture.screen) { aspect-ratio: auto; width: 289px; padding: 9px; border-radius: 41px; }
picture.screen { display: block; height: auto; background: #F7F9F6; overflow: hidden; }
picture.screen img { display: block; width: 100%; height: auto; }
