/* ==========================================================================
   RandPerks website
   1. Fonts and tokens   2. Base   3. Layout   4. Components
   5. Header/footer      6. App UI recreation   7. Sections   8. Pages
   9. Motion
   Colours start from the app (lib/app/theme/app_colors.dart) and the logo.
   ========================================================================== */

/* 1. Fonts and tokens ---------------------------------------------------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  /* Brand: navy from the logo's card and wordmark, amber from the app. */
  --navy-950: #030b1b;
  --navy-900: #071428;
  --navy-800: #0c1f3d;
  --navy-700: #15305a;
  --navy-600: #24477d;
  --amber: #f2b01e;          /* app --amb: buttons, highlights, bonus dots */
  --amber-strong: #f39200;   /* "Perks" orange in the wordmark */
  --amber-soft: #ffd56b;
  --amber-tint: #fff2cf;     /* app --ambt */

  /* Neutrals from the app's light theme. */
  --ink: #17262e;
  --ink-2: #33444d;
  --mute: #5b6b74;
  --line: #d3dde2;
  --mist: #ecf1f3;
  --paper: #f6f9fa;
  --white: #ffffff;

  /* On dark surfaces. */
  --on-dark: #eef3f7;
  --on-dark-mute: #a8b7c6;
  --line-dark: rgba(255, 255, 255, 0.1);

  --ok: #0f7a3d;

  --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --pill: 999px;

  --shadow-sm: 0 1px 2px rgba(7, 20, 40, 0.06), 0 2px 8px rgba(7, 20, 40, 0.05);
  --shadow: 0 2px 4px rgba(7, 20, 40, 0.04), 0 12px 32px -8px rgba(7, 20, 40, 0.14);
  --shadow-lg: 0 4px 10px rgba(7, 20, 40, 0.06), 0 30px 60px -18px rgba(7, 20, 40, 0.3);
  --shadow-glow: 0 0 0 1px rgba(242, 176, 30, 0.35), 0 18px 40px -12px rgba(242, 176, 30, 0.45);

  --gutter: clamp(16px, 4vw, 32px);
  --container: 1200px;
  --section-y: clamp(72px, 10vw, 136px);
  --header-h: 72px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 2. Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
.icon { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -0.2em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--amber-soft); color: var(--ink); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--amber); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* 3. Layout ------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(820px + 2 * var(--gutter)); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.section--mist { background: var(--paper); }
.section--dark {
  background: var(--navy-900);
  color: var(--on-dark);
  isolation: isolate;
}
.section--dark .lead, .section--dark .muted { color: var(--on-dark-mute); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
.lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--mute); line-height: 1.55; }
.muted { color: var(--mute); }
.small { font-size: 0.875rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--mute); margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 0 4px rgba(242, 176, 30, 0.2);
}
.section--dark .eyebrow { color: var(--amber-soft); }

.accent {
  background: linear-gradient(100deg, var(--amber-soft) 0%, var(--amber) 45%, var(--amber-strong) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section:not(.section--dark) .accent, .page-hero--light .accent {
  /* Deeper amber on light backgrounds keeps large text above 4:1 contrast. */
  background: linear-gradient(100deg, #b86a00, #a85f00);
  -webkit-background-clip: text; background-clip: text;
}

/* Soft background light for dark sections. Transform-only animation. */
.glow { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.glow span {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55;
  will-change: transform;
}
.glow .g1 { width: 46vw; height: 46vw; max-width: 720px; max-height: 720px; right: -10vw; top: -14vw; background: radial-gradient(circle, rgba(242, 176, 30, 0.55), rgba(243, 146, 0, 0) 70%); animation: drift-a 22s ease-in-out infinite alternate; }
.glow .g2 { width: 40vw; height: 40vw; max-width: 620px; max-height: 620px; left: -12vw; bottom: -18vw; background: radial-gradient(circle, rgba(36, 71, 125, 0.9), rgba(36, 71, 125, 0) 70%); animation: drift-b 26s ease-in-out infinite alternate; }
.glow .g3 { width: 24vw; height: 24vw; max-width: 380px; max-height: 380px; left: 38%; top: 30%; background: radial-gradient(circle, rgba(8, 127, 140, 0.35), rgba(8, 127, 140, 0) 70%); animation: drift-a 30s ease-in-out infinite alternate-reverse; }
@keyframes drift-a { to { transform: translate3d(-6vw, 5vw, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(7vw, -4vw, 0) scale(1.12); } }
.grid-lines {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

/* 4. Components --------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: var(--pill);
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { --btn-bg: var(--amber); --btn-fg: var(--ink); box-shadow: 0 10px 30px -10px rgba(242, 176, 30, 0.7); }
.btn--primary:hover { --btn-bg: #f7bd36; box-shadow: 0 16px 36px -12px rgba(242, 176, 30, 0.8); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.section--dark .btn--ghost, .page-hero .btn--ghost, .hero .btn--ghost { --btn-fg: var(--on-dark); border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.04); }
.section--dark .btn--ghost:hover, .page-hero .btn--ghost:hover, .hero .btn--ghost:hover { border-color: rgba(255, 255, 255, 0.6); }
.btn--sm { min-height: 42px; padding: 10px 18px; font-size: 0.9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none;
  color: var(--ink); border-bottom: 2px solid var(--amber); padding-bottom: 2px;
}
.text-link:hover { color: #9a6200; }
.section--dark .text-link { color: var(--on-dark); }

/* Google Play badge + "Coming soon" */
.get-app { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.play-badge {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 18px 0 14px; border-radius: 12px;
  background: #000; color: #fff; text-decoration: none; border: 1px solid #5f6368;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
a.play-badge:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.6); }
span.play-badge { cursor: default; }
.play-badge__logo { width: 22px; height: 24px; }
.play-badge__text { display: flex; flex-direction: column; font-size: 1.25rem; font-weight: 600; line-height: 1; letter-spacing: -0.01em; }
.play-badge__text small { font-size: 0.625rem; font-weight: 600; letter-spacing: 0.06em; margin-bottom: 3px; }
.coming-soon {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font-weight: 700; font-size: 0.9375rem;
}
.coming-soon__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(242, 176, 30, 0.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(242, 176, 30, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 176, 30, 0); } }
.get-app--dark .coming-soon { color: var(--on-dark); }

/* Bank colour dot (the app's own marker for each bank) */
.bank-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--bank, var(--ink)); flex: none; }
.section--dark .bank-dot, .hero .bank-dot { background: var(--bank-dark, var(--bank)); }

/* Pills, as in the app's choice chips */
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--pill);
  border: 1px solid var(--line); background: var(--white); font-size: 0.875rem; font-weight: 600; color: var(--ink);
}
.pill--on { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* Notice with amber bar (app RpNotice) */
.notice {
  border-left: 4px solid var(--amber); background: var(--amber-tint); color: var(--ink);
  padding: 14px 18px; border-radius: 4px var(--radius-sm) var(--radius-sm) 4px; font-size: 0.9375rem;
}
.section--dark .notice { background: rgba(242, 176, 30, 0.1); color: var(--on-dark); }

/* Check list */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--amber-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b36b00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.section--dark .ticks li::before { background-color: rgba(242, 176, 30, 0.16); }

/* Phone frame. Width is set by --phone-w; the screen keeps a 412x892 ratio. */
.phone {
  --phone-w: 300px;
  position: relative; width: var(--phone-w); aspect-ratio: 412 / 892; flex: none;
  padding: calc(var(--phone-w) * 0.035);
  border-radius: calc(var(--phone-w) * 0.16);
  background: linear-gradient(145deg, #2b3440, #0c1118 40%, #1c232c);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.14), inset 0 0 0 4px #0a0e13, 0 50px 80px -30px rgba(3, 11, 27, 0.65), 0 20px 40px -20px rgba(3, 11, 27, 0.5);
  box-sizing: content-box;
}
.phone::before { /* side buttons */
  content: ""; position: absolute; right: -3px; top: 22%; width: 3px; height: 13%; border-radius: 0 3px 3px 0;
  background: #1a2129; box-shadow: 0 calc(var(--phone-w) * 0.2) 0 #1a2129;
}
.phone__screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: calc(var(--phone-w) * 0.125); background: var(--mist);
  container-type: inline-size;
}
.phone__screen::before { /* camera island */
  content: ""; position: absolute; z-index: 5; top: 2.2%; left: 50%; transform: translateX(-50%);
  width: 27%; height: 3.3%; border-radius: var(--pill); background: #05080c;
}
.phone__screen > img { width: 100%; height: auto; display: block; }
.phone__status {
  position: relative; z-index: 4; height: 7.5%; display: flex; align-items: center; justify-content: space-between;
  padding: 0 9% 0 10%; font-size: 3.4cqw; font-weight: 700; color: var(--ink);
}
.phone__status i { display: flex; gap: 1.2cqw; align-items: center; }
.phone__status i::before, .phone__status i::after { content: ""; display: block; background: currentColor; border-radius: 1px; }
.phone__status i::before { width: 4.4cqw; height: 2.6cqw; clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.phone__status i::after { width: 5.6cqw; height: 2.6cqw; border-radius: 0.8cqw; }

/* 5. Header and footer -------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
  color: var(--on-dark);
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header__logo { display: block; flex: none; position: relative; }
.logo { height: 34px; width: auto; }
.logo--on-light { display: none; }
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.86); color: var(--ink);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 rgba(7, 20, 40, 0.08);
}
.site-header.is-solid .logo--on-light { display: block; }
.site-header.is-solid .logo--on-dark { display: none; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav__list a {
  display: block; padding: 8px 12px; border-radius: var(--pill); text-decoration: none;
  font-weight: 600; font-size: 0.9375rem; opacity: 0.85; transition: opacity 0.2s, background-color 0.2s;
}
.site-nav__list a:hover { opacity: 1; background: rgba(255, 255, 255, 0.08); }
.site-header.is-solid .site-nav__list a:hover { background: rgba(7, 20, 40, 0.05); }
.site-nav__list a[aria-current="page"] { opacity: 1; box-shadow: inset 0 -2px 0 var(--amber); border-radius: 0; }

.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
    background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); cursor: pointer;
    position: relative; z-index: 2;
  }
  .site-header.is-solid .nav-toggle, .nav-open .nav-toggle { background: var(--white); border-color: var(--line); color: var(--ink); }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.3s var(--ease-out), opacity 0.2s;
  }
  .nav-toggle__bars { position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; }
  .nav-toggle__bars::after { top: 6px; }
  .nav-open .nav-toggle__bars { background: transparent; }
  .nav-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

  /* Mobile menu: a compact drawer on the right, over a dimmed page.
     The open header drops its backdrop-filter, because a filtered parent
     traps fixed children inside its own (72px) box and cut the menu off. */
  .nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-open .site-header::before {
    content: ""; position: fixed; inset: 0; z-index: 0; background: rgba(3, 11, 27, 0.55);
  }
  .site-nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 1;
    width: min(300px, 84vw); height: 100vh; height: 100dvh;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 20px;
    padding: calc(var(--header-h) + 8px) 24px 28px; background: var(--white); color: var(--ink);
    box-shadow: -12px 0 40px rgba(3, 11, 27, 0.25);
    visibility: hidden; transform: translateX(100%);
    transition: transform 0.3s var(--ease-out), visibility 0s 0.3s;
    overflow-y: auto; overscroll-behavior: contain;
  }
  .nav-open .site-header__logo { opacity: 0.4; } /* dimmed with the page */
  .site-nav__list a:focus-visible { outline-offset: -3px; }
  .nav-open .site-nav { visibility: visible; transform: none; transition: transform 0.3s var(--ease-out); }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a { font-size: 1.0625rem; font-weight: 600; padding: 12px 0; border-bottom: 1px solid var(--line); border-radius: 0; opacity: 1; }
  .site-nav__list a:hover { background: none; color: #9a6200; }
  .site-nav__list a[aria-current="page"] { box-shadow: none; color: #9a6200; }
  .site-nav__cta { align-self: flex-start; }
}
@media (max-width: 960px) { .nav-open { overflow: hidden; } }

.site-footer { background: var(--navy-950); color: var(--on-dark-mute); padding: 72px 0 32px; font-size: 0.9375rem; }
.site-footer__top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.site-footer__logo { height: 36px; width: auto; margin-bottom: 18px; }
.site-footer__brand p { max-width: 340px; margin-bottom: 24px; }
.site-footer__nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.site-footer__title { font-family: var(--font-body); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 16px; }
.site-footer__nav ul { display: grid; gap: 10px; }
.site-footer__nav a { text-decoration: none; }
.site-footer__nav a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 4px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 28px; font-size: 0.8125rem; }
.site-footer__disclaimer { max-width: 760px; }
@media (max-width: 760px) {
  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; }
}

/* 6. App UI recreation ---------------------------------------------------
   HTML versions of the app's screens, so they stay sharp and can animate.
   Sizes use container units (cqw) so they scale with the phone. */
.app { font-family: var(--font-body); color: var(--ink); font-size: 3.4cqw; line-height: 1.4; height: 100%; display: flex; flex-direction: column; }
.app__bar { display: flex; align-items: center; gap: 3cqw; padding: 1cqw 4cqw 3cqw; }
.app__menu { width: 10.5cqw; height: 10.5cqw; border-radius: 3cqw; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; }
.app__menu::before { content: ""; width: 4.6cqw; height: 0.55cqw; background: var(--ink); box-shadow: 0 1.5cqw 0 var(--ink), 0 -1.5cqw 0 var(--ink); border-radius: 1px; }
.app__brand { display: flex; align-items: center; gap: 2cqw; font-family: var(--font-display); font-weight: 700; font-size: 4.9cqw; }
.app__brand img { width: 11cqw; height: auto; }
.app__body { padding: 0 4cqw 4cqw; display: flex; flex-direction: column; gap: 3cqw; flex: 1; min-height: 0; }
.app-panel { background: var(--white); border: 1px solid var(--line); border-radius: 4cqw; padding: 4cqw; }
.app-panel__title { font-weight: 700; color: var(--mute); font-size: 3.5cqw; margin-bottom: 2.5cqw; }
.app-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; }
.app-label { font-weight: 600; font-size: 3.2cqw; margin-bottom: 1.4cqw; }
.app-input { height: 11.5cqw; border-radius: 2.6cqw; background: var(--mist); border: 1px solid var(--line); display: flex; align-items: center; padding: 0 3.4cqw; font-size: 3.8cqw; white-space: nowrap; overflow: hidden; }
.app-input--focus { border-color: var(--amber); box-shadow: 0 0 0 2px rgba(242, 176, 30, 0.35); }
.app-input .r { color: var(--mute); margin-right: 2.2cqw; }
.app-caret { display: inline-block; width: 0.5cqw; height: 4.4cqw; background: var(--ink); margin-left: 0.4cqw; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.app-chips { display: flex; gap: 1.6cqw; margin-top: 3cqw; flex-wrap: wrap; }
.app-chip { padding: 1.8cqw 3.4cqw; border-radius: var(--pill); border: 1px solid var(--line); font-size: 3.2cqw; background: var(--white); }
.app-chip--on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.app-note { font-size: 3cqw; color: var(--mute); }
.app-verdict { background: var(--white); border: 1px solid var(--line); border-radius: 4cqw; padding: 3.6cqw 4.2cqw; }
.app-verdict .app-verdict__h { color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 5.1cqw; line-height: 1.15; margin: 0 0 1cqw; letter-spacing: -0.01em; }
.app-verdict p { font-size: 3.2cqw; color: var(--mute); margin: 0; }
.app-results { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4cqw; position: relative; }
.rcard {
  position: relative; border-radius: 4cqw; padding: 3.6cqw 3.4cqw; background: var(--bank-tint, var(--mist));
  border: 2px solid transparent; min-height: 30cqw;
}
.rcard__name { font-weight: 600; font-size: 3.1cqw; line-height: 1.25; }
.rcard__rate { font-family: var(--font-display); font-weight: 800; font-size: 8.4cqw; line-height: 1.1; color: var(--bank, var(--ink)); letter-spacing: -0.02em; margin: 1.4cqw 0 0.4cqw; font-variant-numeric: tabular-nums; }
.rcard__when { font-size: 3cqw; color: var(--mute); }
.rcard__pts { border-top: 1px solid rgba(7, 20, 40, 0.1); margin-top: 2.4cqw; padding-top: 2cqw; font-size: 3.3cqw; font-weight: 600; }
.rcard__pts small { display: block; font-weight: 400; color: var(--mute); font-size: 3cqw; }
.rcard__pts [data-rand] { display: inline-block; transform-origin: left center; border-radius: 1.2cqw; padding: 0.3cqw 1.2cqw; margin-left: -1.2cqw; transition: background-color 0.5s, box-shadow 0.5s; }
.rcard--best [data-rand].is-breathing { background: var(--amber-tint); color: var(--ink); font-weight: 800; animation: breathe 2.2s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(242, 176, 30, 0); }
  50% { transform: scale(1.22); box-shadow: 0 0 0 1cqw rgba(242, 176, 30, 0.28); }
}
.rcard__dash { width: 6cqw; height: 0.9cqw; background: #9aa9b1; border-radius: 1px; margin: 4cqw 0 2.4cqw; }
.rcard--none { background: var(--white); border: 1px solid var(--line); }
.rcard--best { border-color: var(--bank); }
.rcard__badge {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -55%);
  background: var(--ink); color: var(--white); font-size: 2.7cqw; font-weight: 700; white-space: nowrap;
  padding: 1cqw 2.6cqw; border-radius: var(--pill);
}
.rcard__boost { margin-top: 2cqw; font-size: 2.7cqw; background: var(--amber-tint); border-left: 1cqw solid var(--amber); padding: 1.2cqw 2cqw; border-radius: 0.6cqw; }

/* Bank card visual (no logos: name and colour only) */
.bcard {
  --w: 230px;
  width: var(--w); aspect-ratio: 1.586; border-radius: calc(var(--w) * 0.06); padding: calc(var(--w) * 0.075);
  color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.28), transparent 50%),
    linear-gradient(135deg, var(--bank) 0%, color-mix(in srgb, var(--bank) 55%, #000) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 24px 40px -18px rgba(3, 11, 27, 0.7);
  display: flex; flex-direction: column; justify-content: space-between;
  font-size: calc(var(--w) * 0.058);
}
.bcard::after { /* sheen */
  content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.18) 48%, transparent 60%);
  transform: translateX(-60%); animation: sheen 7s ease-in-out infinite; animation-delay: var(--sheen-delay, 0s);
}
@keyframes sheen { 0%, 70% { transform: translateX(-70%); } 100% { transform: translateX(70%); } }
.bcard__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.bcard__bank { font-weight: 700; line-height: 1.15; }
.bcard__prog { font-size: 0.82em; opacity: 0.85; margin-top: 2px; }
.bcard__chip { width: calc(var(--w) * 0.15); aspect-ratio: 1.3; border-radius: calc(var(--w) * 0.02); background: linear-gradient(135deg, #f6d27a, #c99a2e); position: relative; flex: none; }
.bcard__chip::before { content: ""; position: absolute; inset: 22% 18%; border: 1px solid rgba(90, 60, 0, 0.45); border-radius: 2px; }
.bcard__bottom { display: flex; justify-content: space-between; align-items: flex-end; font-size: 0.8em; letter-spacing: 0.08em; opacity: 0.9; }
.bcard__type { font-weight: 600; letter-spacing: 0.02em; }
.bcard__dots { letter-spacing: 0.18em; }

/* 7. Sections ----------------------------------------------------------- */

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(120% 80% at 80% 0%, #10284b 0%, var(--navy-900) 45%, var(--navy-950) 100%);
  color: var(--on-dark);
  padding: calc(var(--header-h) + clamp(40px, 7vw, 88px)) 0 clamp(72px, 9vw, 120px);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__logo { width: clamp(220px, 28vw, 340px); height: auto; margin-bottom: clamp(24px, 3vw, 36px); }
.hero h1 { font-size: clamp(2.5rem, 4.5vw, 4rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.04; margin-bottom: 24px; }
.hero h1 .line { display: block; }
.hero .lead { color: var(--on-dark-mute); max-width: 560px; margin-bottom: 32px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; padding: 0; list-style: none; font-size: 0.9375rem; color: var(--on-dark-mute); }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 18px; height: 18px; color: var(--amber); }

.hero__stage { position: relative; height: clamp(540px, 52vw, 660px); display: grid; place-items: center; perspective: 1400px; }
.hero__stage .phone { --phone-w: clamp(250px, 23vw, 300px); z-index: 3; }
.hero__ring { position: absolute; width: 112%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.08); z-index: 0; }
.hero__ring--2 { width: 78%; border-style: solid; border-color: rgba(242, 176, 30, 0.12); }
.float-card { position: absolute; z-index: 2; will-change: transform; }
.float-card .bcard { --w: clamp(150px, 15vw, 210px); }
.float-card--1 { top: 6%; left: -2%; transform: rotate(-12deg); }
.float-card--2 { top: 16%; right: -4%; transform: rotate(9deg); }
.float-card--3 { bottom: 12%; left: 0%; transform: rotate(7deg); }
.float-card--4 { bottom: 4%; right: 2%; transform: rotate(-8deg); }
.float-card--back { z-index: 1; filter: saturate(0.9) brightness(0.85); }

.toast {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.96); color: var(--ink); border-radius: 16px; padding: 12px 16px 12px 12px;
  box-shadow: var(--shadow-lg); font-size: 0.875rem; line-height: 1.3; white-space: nowrap;
}
.toast__icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--amber-tint); color: #a86400; flex: none; }
.toast__icon svg { width: 20px; height: 20px; }
.toast strong { display: block; font-family: var(--font-display); font-size: 1.0625rem; letter-spacing: -0.01em; }
.toast small { color: var(--mute); font-size: 0.8125rem; }
.hero__toast--1 { top: -1%; left: -7%; }
.hero__toast--2 { bottom: -3%; right: -5%; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { text-align: left; }
  .hero__stage { height: 600px; margin-top: 8px; }
  .hero__toast--1 { left: 0; top: 1%; }
  .hero__toast--2 { right: 0; bottom: 0; }
}
@media (max-width: 520px) {
  .hero__stage { height: 540px; }
  .hero__stage .phone { --phone-w: 230px; }
  .float-card .bcard { --w: 136px; }
  .float-card--1 { left: -8%; } .float-card--2 { right: -10%; }
  .float-card--3 { left: -8%; } .float-card--4 { right: -8%; }
  .toast { font-size: 0.8125rem; padding: 9px 12px 9px 9px; }
  .toast strong { font-size: 0.9375rem; }
  .toast__icon { width: 30px; height: 30px; }
}

/* Demo (animated app showcase) */
.demo { position: relative; }
.demo__panel {
  position: relative; border-radius: var(--radius-xl); padding: clamp(28px, 5vw, 64px);
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(242, 176, 30, 0.18), transparent 70%),
    linear-gradient(180deg, #eef3f6, #e4ecf0);
  border: 1px solid #dde6eb;
  overflow: hidden;
}
.demo__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.demo__phone .phone { --phone-w: clamp(270px, 25vw, 320px); }
.demo__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: step; }
.demo__step {
  display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start;
  padding: 14px 16px; border-radius: var(--radius); transition: background-color 0.4s, box-shadow 0.4s;
}
.demo__step::before {
  content: attr(data-n); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 0.9375rem; background: var(--white); border: 1px solid var(--line); transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}
.demo__step strong { display: block; font-family: var(--font-display); font-size: 1.125rem; letter-spacing: -0.01em; line-height: 1.3; }
.demo__step span { font-size: 0.9375rem; color: var(--mute); }
.demo__step strong { color: var(--ink-2); }
.demo__step.is-active { background: var(--white); box-shadow: var(--shadow); }
.demo__step.is-active strong { color: var(--ink); }
.demo__step.is-active::before { background: var(--amber); border-color: var(--amber); }
.demo__step.is-done::before { background: var(--ink); color: var(--white); border-color: var(--ink); }
button.demo__step { width: 100%; border: 0; background: transparent; font: inherit; color: inherit; text-align: left; cursor: pointer; }
button.demo__step:hover:not(.is-active) { background: rgba(255, 255, 255, 0.6); }
button.demo__step:hover:not(.is-active)::before { border-color: var(--amber); }

.demo__side { display: grid; gap: 18px; }
.widget { background: var(--white); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); border: 1px solid #e3eaee; }
.widget__label { font-size: 0.8125rem; font-weight: 700; color: var(--mute); letter-spacing: 0.02em; margin-bottom: 8px; }
.widget__big { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.75rem); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.widget__sub { color: var(--mute); font-size: 0.9375rem; margin-top: 6px; }
.widget__bars { display: grid; gap: 10px; margin-top: 4px; }
.wbar { display: grid; grid-template-columns: 92px 1fr auto; gap: 10px; align-items: center; font-size: 0.8125rem; font-weight: 600; }
.wbar__track { height: 10px; border-radius: var(--pill); background: var(--mist); overflow: hidden; }
.wbar__fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--bank); }
.wbar__val { font-variant-numeric: tabular-nums; min-width: 56px; text-align: right; }

.demo__stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: clamp(28px, 4vw, 40px); }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: var(--pill);
  border: 1px solid var(--line); background: var(--white); cursor: pointer; font-weight: 700; font-size: 0.9375rem;
  transition: transform 0.2s var(--ease-out), border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.store-btn:hover { transform: translateY(-2px); border-color: var(--ink); }
.store-btn small { font-weight: 500; color: var(--mute); }
.store-btn__icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); }
.store-btn__icon svg { width: 16px; height: 16px; }
.store-btn[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); box-shadow: var(--shadow); }
.store-btn[aria-pressed="true"] small { color: #c6d1d8; }
.store-btn[aria-pressed="true"] .store-btn__icon { background: var(--amber); color: var(--ink); }
.demo__caption { max-width: 760px; margin: 22px auto 0; text-align: center; font-size: 0.8125rem; color: var(--mute); }
.demo__wallet { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-top: 10px; font-size: 0.8125rem; color: var(--ink-2); list-style: none; padding: 0; }
.demo__wallet li { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 1080px) {
  .demo__grid { grid-template-columns: 1fr auto; }
  .demo__side { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .demo__grid { grid-template-columns: 1fr; justify-items: center; }
  .demo__steps { width: 100%; grid-template-columns: 1fr; }
  .demo__step { padding: 10px 12px; }
  .demo__step:not(.is-active) > span > span { display: none; }
  .demo__phone { order: -1; }
  .demo__side { grid-template-columns: 1fr; width: 100%; }
}

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); counter-reset: hstep; }
.step { position: relative; }
.step__art {
  min-height: 280px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid #e3eaee;
  display: grid; place-items: center; padding: 24px; overflow: hidden; margin-bottom: 24px; position: relative;
}
.step__num { font-family: var(--font-display); font-weight: 700; font-size: 0.875rem; color: #9a6200; letter-spacing: 0.04em; margin-bottom: 8px; display: block; }
.step h3 { font-size: 1.5rem; margin-bottom: 8px; }
.step p { color: var(--mute); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* Step 1 art: bank switches */
.mini-banks { width: 100%; max-width: 280px; display: grid; gap: 8px; }
.mini-bank { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; font-size: 0.875rem; font-weight: 600; }
.mini-bank__name { flex: 1; }
.switch { width: 38px; height: 22px; border-radius: var(--pill); background: #9aa9b1; position: relative; transition: background-color 0.35s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.35s var(--ease-out); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.switch.is-on { background: var(--ok); }
.switch.is-on::after { transform: translateX(16px); }
.mini-bank__sub { display: block; font-size: 0.75rem; font-weight: 500; color: var(--mute); }

/* Step 2 art: comparison bars */
.mini-compare { width: 100%; max-width: 290px; display: grid; gap: 14px; }

/* Step 3 art: verdict */
.mini-verdict { width: 100%; max-width: 280px; position: relative; }
.mini-verdict .app-verdict { font-size: 14px; border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow-sm); }
.mini-verdict .app-verdict .app-verdict__h { font-size: 1.15rem; }
.mini-verdict .app-verdict p { font-size: 0.8125rem; }
.mini-verdict__earn {
  margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--ink); color: var(--white); border-radius: 16px; padding: 14px 16px;
}
.mini-verdict__earn strong { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.mini-verdict__earn span { font-size: 0.8125rem; color: #c6d1d8; }

/* Banks */
.marquee { display: flex; overflow: hidden; gap: 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); padding-block: 6px; }
.marquee__track { display: flex; gap: 14px; padding: 0 7px; margin: 0; list-style: none; flex: none; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.marquee__item {
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  padding: 16px 24px; border-radius: var(--pill); background: var(--white); border: 1px solid #e3eaee; box-shadow: var(--shadow-sm);
}
.marquee__bank { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; }
.marquee__prog { color: var(--mute); font-size: 0.9375rem; }
.marquee__item .bank-dot { width: 12px; height: 12px; box-shadow: 0 0 0 4px var(--bank-tint); }

.prog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(36px, 5vw, 56px); }
.prog {
  position: relative; padding: 22px 22px 20px; border-radius: var(--radius); background: var(--white); border: 1px solid #e3eaee;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s; overflow: hidden;
}
.prog::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--bank); }
.prog:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--bank) 35%, #e3eaee); }
.prog__head { display: flex; align-items: center; gap: 10px; }
.prog__bank { font-size: 1.125rem; margin: 0; letter-spacing: -0.01em; }
.prog__name { font-weight: 700; color: var(--bank); margin: 6px 0 2px; }
.prog__meta { font-size: 0.875rem; color: var(--mute); margin: 0; }
.prog__value, .prog__levels { font-size: 0.9375rem; color: var(--ink-2); margin: 12px 0 0; }
.prog-grid--full .prog { padding: 26px; }
@media (max-width: 900px) { .prog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .prog-grid--short { gap: 10px; }
  .prog-grid--short .prog { padding: 16px 14px 14px 18px; }
  .prog-grid--short .prog__bank { font-size: 0.9375rem; }
  .prog-grid--short .prog__name { font-size: 0.875rem; }
  .prog-grid--short .prog__meta { font-size: 0.8125rem; }
  .prog-grid--full { grid-template-columns: 1fr; }
}
@media (max-width: 340px) { .prog-grid--short { grid-template-columns: 1fr; } }
.disclaimer-line { display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; font-size: 0.875rem; color: var(--mute); max-width: 860px; }
.disclaimer-line svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--mute); }

/* Benefits (bento) */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  grid-column: span 2; position: relative; border-radius: var(--radius-lg); padding: clamp(22px, 2.6vw, 32px);
  background: var(--white); border: 1px solid #e3eaee; overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile h3 { font-size: 1.375rem; margin-bottom: 8px; }
.tile p { color: var(--mute); font-size: 0.98rem; }
.tile__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--amber-tint); color: #a86400; margin-bottom: 22px; }
.tile__icon svg { width: 24px; height: 24px; }
.tile--wide { grid-column: span 4; }
.tile--tall { grid-row: span 2; }
.tile--dark { background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); color: var(--on-dark); border-color: transparent; }
.tile--dark p { color: var(--on-dark-mute); }
.tile--dark .tile__icon { background: rgba(242, 176, 30, 0.14); color: var(--amber); }
.tile--chart { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: end; }
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile--wide { grid-column: span 1; }
  .tile--chart { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .tile--chart { grid-template-columns: 1fr; }
}

/* Day chart (the app's "Rate by day") */
.daychart { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 18px 18px 14px; }
.daychart__title { font-size: 0.8125rem; font-weight: 700; color: var(--on-dark-mute); margin-bottom: 14px; }
.daychart__plot { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: end; gap: 3px; height: 150px; position: relative; }
.daychart__bar { position: relative; height: var(--h); background: #3cc1cf; border-radius: 3px 3px 1px 1px; transform-origin: bottom; }
.daychart__bar.is-special { background: var(--amber); }
.daychart__bar.is-special::after { content: ""; position: absolute; left: 50%; top: -12px; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); transform: translateX(-50%); }
.daychart__axis { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--on-dark-mute); margin-top: 8px; }
.daychart__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.8125rem; color: var(--on-dark-mute); margin-top: 12px; }
.daychart__legend span { display: inline-flex; align-items: center; gap: 6px; }
.daychart__legend i { width: 10px; height: 10px; border-radius: 3px; background: #3cc1cf; }
.daychart__legend i.special { background: var(--amber); }
.compare-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.compare-two div { border-radius: var(--radius-sm); padding: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-dark); }
.compare-two .is-best { border-color: rgba(242, 176, 30, 0.6); background: rgba(242, 176, 30, 0.08); }
.compare-two strong { display: block; font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -0.02em; color: var(--white); font-variant-numeric: tabular-nums; }
.compare-two small { font-size: 0.8125rem; color: var(--on-dark-mute); }

/* Interface showcase */
.showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.showcase__sticky { position: sticky; top: calc(var(--header-h) + 4vh); height: min(84vh, 760px); display: grid; place-items: center; }
.showcase__sticky .phone { --phone-w: clamp(260px, 24vw, 330px); }
.showcase__screens { position: absolute; inset: 0; }
.showcase__screens img { position: absolute; inset: 0 0 auto 0; width: 100%; opacity: 0; transition: opacity 0.6s var(--ease-out); }
.showcase__screens img.is-active { opacity: 1; }
.showcase__list { list-style: none; margin: 0; padding: 0; }
.showcase__item { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding-block: 40px; opacity: 0.5; transition: opacity 0.5s; }
.showcase__item.is-active { opacity: 1; }
.showcase__item h3 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 12px; }
.showcase__item p { color: var(--on-dark-mute); max-width: 460px; }
.showcase__tag { display: inline-block; font-size: 0.8125rem; font-weight: 700; color: var(--amber-soft); margin-bottom: 14px; letter-spacing: 0.04em; }
.showcase__mobile-shot { display: none; }
.showcase__note { font-size: 0.8125rem; color: var(--on-dark-mute); margin-top: 28px; text-align: center; }
@media (max-width: 900px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase__sticky { display: none; }
  .showcase__list { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: thin; }
  .showcase__item { min-height: 0; opacity: 1; flex: 0 0 min(300px, 82vw); scroll-snap-align: center; padding: 0; justify-content: flex-start; }
  .showcase__mobile-shot { display: block; margin-bottom: 22px; }
  .showcase__mobile-shot .phone { --phone-w: min(250px, 66vw); margin-inline: auto; }
  .showcase__item h3 { font-size: 1.375rem; }
}

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--white); border: 1px solid #e3eaee; border-radius: var(--radius); transition: box-shadow 0.3s, border-color 0.3s; }
.faq__item[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none;
  padding: 20px 24px; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__icon { width: 30px; height: 30px; border-radius: 50%; background: var(--mist); position: relative; flex: none; transition: background-color 0.3s, transform 0.3s var(--ease-out); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); border-radius: 2px; transform: translate(-50%, -50%); transition: transform 0.3s var(--ease-out); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--amber); transform: rotate(180deg); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { padding: 0 24px 22px; color: var(--ink-2); max-width: 760px; }
.faq__a a { color: #8a5600; font-weight: 600; }
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } .faq-layout .section-head { position: static; } }

/* Final CTA */
.cta { position: relative; overflow: hidden; isolation: isolate; text-align: center; }
.cta__inner { max-width: 760px; margin-inline: auto; position: relative; }
.cta h2 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.035em; margin-bottom: 20px; }
.cta .lead { margin: 0 auto 36px; max-width: 560px; }
.cta .get-app { justify-content: center; }
.cta__emblem { width: 120px; margin: 0 auto 28px; filter: drop-shadow(0 20px 30px rgba(242, 176, 30, 0.25)); }
.cta__orbit { position: absolute; left: 50%; top: 50%; width: min(900px, 140vw); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.06); z-index: -1; }
.cta__orbit--2 { width: min(620px, 100vw); border-color: rgba(242, 176, 30, 0.12); }

/* 8. Pages -------------------------------------------------------------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(120% 90% at 85% 0%, #10284b 0%, var(--navy-900) 50%, var(--navy-950) 100%);
  color: var(--on-dark);
  padding: calc(var(--header-h) + clamp(48px, 8vw, 104px)) 0 clamp(56px, 8vw, 96px);
}
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.25rem); letter-spacing: -0.035em; max-width: 900px; }
.page-hero .lead { color: var(--on-dark-mute); max-width: 640px; }
.page-hero__actions { margin-top: 32px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.split .phone { --phone-w: clamp(250px, 22vw, 300px); margin-inline: auto; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }

.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.875rem); margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: #8a5600; font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; margin: 0 0 1.4em; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; min-width: 160px; }
.prose th { background: var(--paper); }
.prose .updated { color: var(--mute); font-size: 0.9375rem; }

.engine { display: grid; gap: 14px; counter-reset: rule; list-style: none; padding: 0; margin: 0; }
.engine li { counter-increment: rule; display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 22px; border-radius: var(--radius); background: var(--white); border: 1px solid #e3eaee; }
.engine li::before { content: counter(rule); width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.engine h3 { font-size: 1.1875rem; margin-bottom: 6px; }
.engine p { color: var(--mute); margin: 0; }

.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature { padding: 28px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid #e3eaee; }
.feature h3 { font-size: 1.25rem; margin-bottom: 8px; }
.feature p { color: var(--mute); margin: 0; }
@media (max-width: 760px) { .feature-list { grid-template-columns: 1fr; } }

.stores { columns: 3 240px; column-gap: 32px; }
.stores__group { break-inside: avoid; margin-bottom: 28px; }
.stores__cat { font-family: var(--font-body); font-size: 0.9375rem; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; letter-spacing: 0; }
.stores__count { font-size: 0.75rem; background: var(--mist); color: var(--mute); padding: 2px 8px; border-radius: var(--pill); }
.stores ul { display: flex; flex-wrap: wrap; gap: 6px; }
.stores li { font-size: 0.875rem; padding: 4px 10px; border-radius: var(--pill); background: var(--white); border: 1px solid #e3eaee; }

.form { display: grid; gap: 18px; }
.field label, .field legend { display: block; font-weight: 700; font-size: 0.9375rem; margin-bottom: 8px; }
.field .hint { font-weight: 400; color: var(--mute); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 14px; min-height: 50px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(242, 176, 30, 0.3); }
.field select { appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317262e' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; padding-right: 44px; }
.form__status { font-size: 0.9375rem; }
.form__status:empty { display: none; }
.card-box { background: var(--white); border: 1px solid #e3eaee; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-sm); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related a { display: block; padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid #e3eaee; text-decoration: none; transition: transform 0.3s var(--ease-out), box-shadow 0.3s; }
.related a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.related strong { display: block; font-family: var(--font-display); font-size: 1.1875rem; margin-bottom: 4px; }
.related span { color: var(--mute); font-size: 0.9375rem; }
@media (max-width: 760px) { .related { grid-template-columns: 1fr; } }

.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }

/* 9. Motion ------------------------------------------------------------- */
/* Elements marked [data-reveal] start hidden only when JS is running. */
.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.js .is-revealed[data-reveal] { opacity: 1; transform: none; transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: var(--delay, 0s); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee { overflow-x: auto; mask-image: none; }
  .marquee__track[aria-hidden="true"] { display: none; }
  .marquee__track { flex-wrap: nowrap; }
}

/* Real screenshots inside the phone frame (below a status bar). */
.phone__shot { position: absolute; left: 0; right: 0; top: 7.5%; bottom: 0; overflow: hidden; }
.phone__shot img { width: 100%; height: auto; display: block; }
.phone__screen--dark { background: #10181c; }
.phone__screen--dark .phone__status { color: #e8eff2; }
.phone__shot img.is-tall.is-panning, .phone__shot .is-tall.is-active { animation: pan 11s ease-in-out 1.2s infinite alternate; }
@keyframes pan { 0%, 12% { transform: translateY(0); } 88%, 100% { transform: translateY(var(--pan)); } }
.tile__verdict { margin-top: 28px; padding: 18px; border-radius: var(--radius); background: var(--mist); }
.tile__verdict .app-verdict { border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-sm); }
.tile__verdict .app-verdict .app-verdict__h { font-size: 1.125rem; }
.tile__verdict .app-verdict p { font-size: 0.8125rem; }

/* Home: the hero shows the full logo, so the header logo waits until scrolling. */
.page-home .site-header:not(.is-solid) .site-header__logo { opacity: 0; pointer-events: none; }
.site-header__logo { transition: opacity 0.3s; }
.nav-open.page-home .site-header .site-header__logo { opacity: 1; pointer-events: auto; }
@media (max-width: 520px) {
  .demo__stores { display: grid; grid-template-columns: 1fr 1fr; }
  .store-btn { padding: 8px 12px 8px 8px; font-size: 0.875rem; justify-content: flex-start; }
  .store-btn small { display: none; }
}
.screen-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.screen-note { font-size: 0.8125rem; color: var(--mute); text-align: center; }
.section--dark .screen-note { color: var(--on-dark-mute); }
.notfound .container { text-align: center; }
.notfound .lead { margin-inline: auto; }
@media (max-width: 640px) {
  .prose .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack thead { display: none; }
  .table-stack tr { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
  .prose .table-stack td { border: 0; border-bottom: 1px solid var(--line); min-width: 0; }
  .table-stack td:last-child { border-bottom: 0; }
  .table-stack td::before { content: attr(data-label); display: block; font-weight: 700; font-size: 0.8125rem; color: var(--mute); margin-bottom: 2px; }
}
.store-cats { display: flex; flex-wrap: wrap; gap: 10px; }
.store-cats .pill { font-size: 0.9375rem; padding: 9px 16px; }
