/* ==========================================================================
   Billsfort - marketing site design system
   Warm-pastel, soft-rounded language matching the Billsfort app (kitui).
   Self-hosted Nunito · light + dark via prefers-color-scheme · zero framework.
   ========================================================================== */

/* ---- Fonts (self-hosted - no external requests, privacy story holds) ----- */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/nunito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/nunito-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* -------------------------------- Tokens ---------------------------------- */
:root {
  /* Warm-pastel light palette */
  --bg: #FBF6F0;
  --bg-elevated: #FFFDFB;
  --surface: #FFFFFF;
  --surface-muted: #F5ECE3;
  --surface-sunken: #F0E5D9;

  --primary: #E07A54;         /* terracotta - brand + CTA */
  --primary-strong: #C9603B;
  --primary-tint: #FBE5D9;
  --on-primary: #FFFFFF;

  --mint: #3E9E74;            /* savings / money-found accent */
  --mint-strong: #2F805C;
  --mint-tint: #E1F1E9;

  --gold: #D69A3C;            /* premium / lifetime accent */
  --gold-tint: #F7ECD5;

  --text: #2A2320;
  --text-medium: #6B5F57;
  --text-light: #9A8C82;

  --border: rgba(42, 35, 32, 0.09);
  --border-strong: rgba(42, 35, 32, 0.14);
  --hairline-top: rgba(255, 255, 255, 0.65);

  /* Soft, warm, highly diffused ambient shadows (never harsh black) */
  --shadow-sm: 0 2px 8px rgba(120, 80, 55, 0.06);
  --shadow-md: 0 10px 30px rgba(120, 80, 55, 0.09), 0 2px 8px rgba(120, 80, 55, 0.05);
  --shadow-lg: 0 30px 70px rgba(120, 80, 55, 0.13), 0 8px 20px rgba(120, 80, 55, 0.07);
  --shadow-primary: 0 12px 28px rgba(224, 122, 84, 0.32);
  /* Category-tinted shadows - depth carries the accent hue, never generic black */
  --shadow-mint: 0 16px 36px rgba(62, 158, 116, 0.18);
  --shadow-gold: 0 16px 36px rgba(214, 154, 60, 0.18);

  /* Faint "ledger" graph-paper ruling — used ONLY inside the screenshot
     placeholder frames, where it reads as an app-mock texture. */
  --ledger-line: rgba(201, 96, 59, 0.07);
  --found: color-mix(in srgb, var(--mint) 42%, transparent); /* found-money mark */

  /* Radii - soft-rounded language (concentric: tighter inside, softer outside) */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 999px;

  --container: 1140px;
  --nav-h: 72px;

  /* Motion - spring-ish, never linear/ease-in-out */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);

  --font: 'Nunito', ui-rounded, 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-num: 'Nunito', ui-rounded, 'Segoe UI', system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17120F;
    --bg-elevated: #1F1813;
    --surface: #221A15;
    --surface-muted: #2B221B;
    --surface-sunken: #140F0C;

    --primary: #EF8B64;
    --primary-strong: #F5A382;
    --primary-tint: rgba(239, 139, 100, 0.16);
    --on-primary: #2A160D;

    --mint: #58BE90;
    --mint-strong: #74CFA5;
    --mint-tint: rgba(88, 190, 144, 0.15);

    --gold: #E8B65C;
    --gold-tint: rgba(232, 182, 92, 0.15);

    --text: #F3EADF;
    --text-medium: #C0B0A2;
    --text-light: #8C7D70;

    --border: rgba(255, 245, 235, 0.10);
    --border-strong: rgba(255, 245, 235, 0.16);
    --hairline-top: rgba(255, 255, 255, 0.06);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 12px 34px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.55);
    --shadow-primary: 0 12px 28px rgba(0, 0, 0, 0.45);
    --shadow-mint: 0 16px 36px rgba(0, 0, 0, 0.42);
    --shadow-gold: 0 16px 36px rgba(0, 0, 0, 0.42);

    --ledger-line: rgba(245, 163, 130, 0.06);
    --found: color-mix(in srgb, var(--mint) 46%, transparent);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Warm ambient background wash */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Asymmetric warm mesh - three off-grid washes, deliberately uneven */
  background:
    radial-gradient(52% 44% at 88% -8%, rgba(224, 122, 84, 0.15), transparent 66%),
    radial-gradient(40% 38% at 2% 12%, rgba(62, 158, 116, 0.10), transparent 68%),
    radial-gradient(46% 40% at 64% 118%, rgba(214, 154, 60, 0.07), transparent 70%);
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.08;
  color: var(--text);
  text-wrap: balance;         /* no lonely orphan words in headings */
}
p { margin: 0; text-wrap: pretty; }

/* Money is the product - every figure is set as tabular data, not prose. */
.value-figure, .price .amount, .price .per, .fc-v, .save-inline, .plan .price-sub {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-num);
  font-feature-settings: 'tnum' 1, 'lnum' 1;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

section { position: relative; }
.section { padding-block: clamp(76px, 11vw, 150px) clamp(84px, 12vw, 164px); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  background: var(--primary);
  color: var(--on-primary);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ------------------------------ Typography -------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  background: var(--primary-tint);
  color: var(--primary-strong);
  border-radius: var(--r-pill);
  padding: 7px 16px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow.is-mint { background: var(--mint-tint); color: var(--mint-strong); }
.eyebrow.is-gold { background: var(--gold-tint); color: var(--gold); }

.display {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -0.032em;
  line-height: 1.02;
}
.h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.lede {
  font-size: clamp(1.1rem, 1.7vw, 1.32rem);
  color: var(--text-medium);
  line-height: 1.55;
  font-weight: 500;
}
.mint-text { color: var(--mint-strong); }
.primary-text { color: var(--primary-strong); }

/* Signature "found-money" mark: the app finds money you're losing, so the
   money phrase in the hero (and the savings figure) is hand-underlined in mint.
   Drawn as a background gradient so it wraps across lines and animates on reveal. */
.primary-text, .save-inline {
  background-image: linear-gradient(var(--found), var(--found));
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 100% 0.26em;     /* safe default: always marked */
  padding-bottom: 0.02em;
  transition: background-size 0.7s var(--ease-soft) 0.28s;
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}
/* Draw the mark on reveal - the mint sweeps in under the money phrase. */
.reveal:not(.in) .primary-text,
.reveal:not(.in) .save-inline { background-size: 0% 0.26em; }
@media (prefers-reduced-motion: reduce) {
  .primary-text, .save-inline { transition: none; background-size: 100% 0.26em; }
}
.eyebrow-center, .center { text-align: center; }
.section-head { max-width: 720px; margin-inline: auto; }
.section-head .h2 { margin-top: 18px; }
.section-head .lede { margin-top: 18px; }

/* -------------------------------- Buttons --------------------------------- */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 16px 15px 26px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease),
    background 0.3s var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }

/* Button-in-button trailing icon */
.btn .btn-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.22);
  transition: transform 0.5s var(--ease), background 0.3s var(--ease);
}
.btn .btn-ico svg { width: 17px; height: 17px; }
.btn:hover .btn-ico { transform: translate(3px, -1px) scale(1.05); }

.btn.btn-primary {
  --btn-bg: var(--primary);
  --btn-fg: var(--on-primary);
  box-shadow: var(--shadow-primary);
}
.btn.btn-primary:hover { box-shadow: 0 18px 40px rgba(224, 122, 84, 0.42); transform: translateY(-2px); }
.btn.btn-primary .btn-ico { background: rgba(255, 255, 255, 0.24); }

.btn.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border: 1.5px solid var(--border-strong);
  padding-block: 13.5px;
}
.btn.btn-ghost:hover { background: var(--surface-muted); transform: translateY(-2px); }
.btn.btn-ghost .btn-ico { background: var(--surface-muted); }

.btn.btn-plain { padding: 14px 24px; }
.btn.btn-sm { padding: 11px 20px; font-size: 0.94rem; }
.btn.btn-block { width: 100%; justify-content: center; }

/* -------------------------- Fluid island nav ------------------------------ */
.nav-wrap {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding-top: 18px;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100% - 32px, var(--container));
  padding: 9px 9px 9px 22px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--bg-elevated) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 var(--hairline-top), var(--shadow-md);
  transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 900;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.brand .logo {
  width: 34px; height: 34px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  padding: 9px 15px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--text-medium);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--surface-muted); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text-medium);
  border: 1.5px solid var(--border);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.lang-switch:hover { color: var(--text); background: var(--surface-muted); }
.lang-switch svg { width: 15px; height: 15px; opacity: 0.7; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--surface-muted);
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.5s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle span:nth-child(3) { top: 33px; }

/* Mobile overlay menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 40px 32px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(26px);
  backdrop-filter: blur(26px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.mobile-menu a {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  padding: 10px 0;
  color: var(--text);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-soft), transform 0.6s var(--ease-soft);
}
.mobile-menu .mm-actions { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }

body.menu-open { overflow: hidden; }
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
body.menu-open .mobile-menu a {
  opacity: 1; transform: translateY(0);
}
body.menu-open .mobile-menu a:nth-child(1) { transition-delay: 0.08s; }
body.menu-open .mobile-menu a:nth-child(2) { transition-delay: 0.13s; }
body.menu-open .mobile-menu a:nth-child(3) { transition-delay: 0.18s; }
body.menu-open .mobile-menu a:nth-child(4) { transition-delay: 0.23s; }
body.menu-open .mobile-menu a:nth-child(5) { transition-delay: 0.28s; }
body.menu-open .nav-toggle span:nth-child(1) { top: 25px; transform: rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { top: 25px; transform: rotate(-45deg); }

/* ---------------------- Double-bezel card architecture -------------------- */
/* Outer shell (machined tray) + inner core (glass plate) with concentric radii */
.bezel {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 7px;
  box-shadow: var(--shadow-md);
}
.bezel > .bezel-core {
  background: var(--surface);
  border-radius: calc(var(--r-xl) - 7px);
  box-shadow: inset 0 1px 0 var(--hairline-top);
  overflow: hidden;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  box-shadow: inset 0 1px 0 var(--hairline-top), var(--shadow-sm);
  padding: 30px;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.card.is-hover:hover { transform: translateY(-6px); box-shadow: inset 0 1px 0 var(--hairline-top), var(--shadow-lg); }
/* Hover depth carries the card's own category hue, never generic black */
.card.is-hover:has(.icon-badge.is-mint):hover { box-shadow: inset 0 1px 0 var(--hairline-top), var(--shadow-lg), var(--shadow-mint); }
.card.is-hover:has(.icon-badge.is-gold):hover { box-shadow: inset 0 1px 0 var(--hairline-top), var(--shadow-lg), var(--shadow-gold); }

.icon-badge {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 15px;
  background: var(--primary-tint);
  color: var(--primary-strong);
  margin-bottom: 20px;
}
.icon-badge.is-mint { background: var(--mint-tint); color: var(--mint-strong); }
.icon-badge.is-gold { background: var(--gold-tint); color: var(--gold); }
.icon-badge svg { width: 26px; height: 26px; }

/* --------------------------------- Hero ----------------------------------- */
.hero { padding-top: calc(var(--nav-h) + 56px); padding-bottom: clamp(56px, 9vw, 110px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 { margin-top: 22px; }
.hero .lede { margin-top: 24px; max-width: 33ch; }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-medium);
}
.hero-note svg { width: 18px; height: 18px; color: var(--mint-strong); flex: none; }

.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 20px 11px 17px;
  border-radius: var(--r-md);
  background: var(--text);
  color: var(--bg);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  box-shadow: var(--shadow-sm);
}
.store-badge:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge > span { display: flex; flex-direction: column; gap: 2px; }
.store-badge .sb-small { font-size: 0.64rem; font-weight: 700; opacity: 0.72; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; }
.store-badge .sb-big { font-size: 1.15rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }

/* Hero phone mock + floating insight cards */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 300 / 620;
  border-radius: 44px;
  background: var(--surface);
  padding: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 33px;
  overflow: hidden;
  /* Placeholder mock reads as an app "ledger" grid until the real screenshot
     (.ph-shot) loads and covers it - imagery treatment, not a flat gradient. */
  background:
    linear-gradient(var(--ledger-line) 0 1px, transparent 1px 26px),
    linear-gradient(90deg, var(--ledger-line) 0 1px, transparent 1px 26px),
    radial-gradient(120% 60% at 50% 0%, var(--primary-tint), transparent 60%),
    var(--surface-muted);
  background-size: 100% 26px, 26px 100%, auto, auto;
  position: relative;
}
.phone-screen .ph-shot { width: 100%; height: 100%; object-fit: cover; }
.phone-notch {
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 92px; height: 24px;
  border-radius: var(--r-pill);
  background: var(--text);
  opacity: 0.9;
  z-index: 2;
}
.float-card {
  position: absolute;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: floaty 6s var(--ease-soft) infinite;
}
.float-card .fc-ico {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px; flex: none;
}
.float-card .fc-ico svg { width: 21px; height: 21px; }
.float-card > span { display: flex; flex-direction: column; gap: 3px; }
.float-card .fc-k { display: block; font-size: 0.74rem; font-weight: 700; color: var(--text-light); line-height: 1.2; }
.float-card .fc-v { display: block; font-size: 1.12rem; font-weight: 900; letter-spacing: -0.02em; line-height: 1.2; }
.float-card.fc-1 { top: 12%; left: -8%; }
.float-card.fc-2 { bottom: 14%; right: -10%; animation-delay: -3s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .float-card { animation: none; }
}

/* ------------------------------ Logos strip ------------------------------- */
.proof-strip { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: center; }
.proof-item { display: inline-flex; align-items: center; gap: 10px; color: var(--text-medium); font-weight: 700; font-size: 0.96rem; }
.proof-item svg { width: 19px; height: 19px; color: var(--mint-strong); flex: none; }

/* --------------------------- Bento value grid ----------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.bento > * { grid-column: span 4; }
.bento .span-6 { grid-column: span 6; }
.bento .span-8 { grid-column: span 8; }

.value-card { display: flex; flex-direction: column; height: 100%; position: relative; overflow: hidden; }
/* Category tab: a coloured rule pinned to the card's top edge, keyed to the
   icon accent - each money hook reads like a labelled ledger column. */
.value-card::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--primary);
}
.value-card:has(.icon-badge.is-mint)::after { background: var(--mint); }
.value-card:has(.icon-badge.is-gold)::after { background: var(--gold); }
.value-card h3 { font-size: 1.32rem; margin-bottom: 10px; }
.value-card p { color: var(--text-medium); font-size: 1rem; }
.value-figure {
  margin-top: auto;
  padding-top: 18px;
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--mint-strong);
  /* ledger "total" rule: a short dashed hairline above the summed figure */
  border-top: 1.5px dashed var(--border-strong);
}
.value-figure small { display: block; margin-top: 5px; font-size: 0.82rem; font-weight: 700; color: var(--text-light); letter-spacing: 0; }

/* ------------------------------ Feature tour ------------------------------ */
.tour-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 76px);
  align-items: center;
}
.tour-row + .tour-row { margin-top: clamp(52px, 8vw, 104px); }
.tour-row.reverse .tour-media { order: 2; }
.tour-copy h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin: 16px 0 16px; }
.tour-copy p { color: var(--text-medium); font-size: 1.08rem; }
.tour-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.tour-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.tour-list svg { width: 22px; height: 22px; color: var(--mint-strong); flex: none; margin-top: 1px; }

.shot-frame { padding: 8px; }
.shot {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--r-xl) - 7px);
  overflow: hidden;
  background:
    linear-gradient(var(--ledger-line) 0 1px, transparent 1px 28px),
    linear-gradient(90deg, var(--ledger-line) 0 1px, transparent 1px 28px),
    radial-gradient(90% 70% at 20% 0%, var(--primary-tint), transparent 60%),
    var(--surface-muted);
  background-size: 100% 28px, 28px 100%, auto, auto;
  display: grid;
  place-items: center;
  color: var(--text-light);
  font-weight: 700;
  text-align: center;
}
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot .shot-hint { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.shot .shot-hint svg { width: 34px; height: 34px; opacity: 0.55; }
.shot .shot-hint small { font-size: 0.82rem; max-width: 22ch; }

/* ------------------------------ Privacy band ------------------------------ */
.privacy {
  background: var(--surface-sunken);
  border-block: 1px solid var(--border);
}
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.privacy-points { display: grid; gap: 16px; margin-top: 28px; }
.privacy-point { display: flex; gap: 15px; align-items: flex-start; }
.privacy-point .pp-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--mint-tint); color: var(--mint-strong); flex: none; }
.privacy-point .pp-ico svg { width: 22px; height: 22px; }
.privacy-point h4 { font-size: 1.08rem; margin-bottom: 3px; }
.privacy-point p { font-size: 0.98rem; color: var(--text-medium); }
.shield-visual {
  aspect-ratio: 1;
  border-radius: var(--r-xl);
  display: grid;
  place-items: center;
  background:
    radial-gradient(70% 60% at 50% 30%, var(--mint-tint), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.shield-visual svg { width: 42%; height: 42%; color: var(--mint-strong); }

/* -------------------------------- Pricing --------------------------------- */
.save-inline { color: var(--mint-strong); font-weight: 800; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 320px));
  gap: 20px;
  margin-top: 46px;
  align-items: stretch;
  justify-content: center;
}
.plan { display: flex; flex-direction: column; position: relative; height: 100%; }
.plan.featured {
  border-color: transparent;
  box-shadow: inset 0 1px 0 var(--hairline-top), 0 0 0 2px var(--primary), var(--shadow-lg);
  transform: translateY(-8px);
  /* Recommended tier is emphasised with warmth, not only extra height */
  background:
    radial-gradient(130% 62% at 50% -12%, var(--primary-tint), transparent 55%),
    var(--surface);
}
.plan.featured .price .amount { color: var(--primary-strong); }
.plan .plan-tag {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-primary);
}
.plan h3 { font-size: 1.24rem; }
.plan .plan-desc { color: var(--text-medium); font-size: 0.96rem; margin-top: 6px; min-height: 44px; }
.plan .price { margin-top: 22px; display: flex; align-items: baseline; gap: 6px; }
.plan .price .amount { font-size: 3rem; font-weight: 900; letter-spacing: -0.04em; }
.plan .price .per { color: var(--text-light); font-weight: 700; font-size: 0.98rem; }
.plan .price-sub { color: var(--text-medium); font-size: 0.9rem; margin-top: 6px; min-height: 20px; margin-bottom: 28px; }
.plan .plan-cta { margin-top: auto; }

.plan-includes {
  margin: 34px auto 0;
  max-width: 780px;
  background:
    repeating-linear-gradient(var(--ledger-line) 0 1px, transparent 1px 27px),
    var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 32px 30px;
}
.plan-includes-title {
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-medium);
  text-align: center;
  margin: 0 0 18px;
}
.includes-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px 28px;
}
.includes-grid li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.96rem; font-weight: 600; }
.includes-grid svg { width: 20px; height: 20px; color: var(--mint-strong); flex: none; margin-top: 1px; }
.pricing-fine { margin-top: 30px; text-align: center; color: var(--text-light); font-size: 0.9rem; }

/* --------------------------------- FAQ ------------------------------------ */
.faq { max-width: 800px; margin-inline: auto; margin-top: 46px; display: grid; gap: 14px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease);
}
.faq details[open] { box-shadow: inset 3px 0 0 var(--primary), var(--shadow-md); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-weight: 800;
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev {
  width: 30px; height: 30px; border-radius: var(--r-pill);
  background: var(--surface-muted);
  display: grid; place-items: center;
  flex: none;
  transition: transform 0.5s var(--ease), background 0.3s var(--ease);
}
.faq summary .chev svg { width: 16px; height: 16px; }
.faq details[open] summary .chev { transform: rotate(180deg); background: var(--primary-tint); color: var(--primary-strong); }
.faq .faq-body { padding: 0 26px 24px; color: var(--text-medium); line-height: 1.65; }

/* --------------------------------- CTA band ------------------------------- */
.cta-band { padding-block: clamp(64px, 9vw, 120px); }
.cta-inner {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(44px, 6vw, 76px);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(90% 120% at 50% -10%, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-inner h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.cta-inner p { color: rgba(255, 255, 255, 0.9); margin-top: 16px; font-size: 1.14rem; max-width: 48ch; margin-inline: auto; }
.cta-inner .store-badges { justify-content: center; margin-top: 34px; }
.cta-inner .store-badge { background: #fff; color: #1c1512; }

/* --------------------------------- Footer --------------------------------- */
.footer { border-top: 1px solid var(--border); padding-block: 64px 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer .brand { margin-bottom: 16px; }
.footer-about { color: var(--text-medium); font-size: 0.96rem; max-width: 34ch; }
.footer h5 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-light); margin: 0 0 16px; font-weight: 800; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-links a { color: var(--text-medium); font-weight: 600; font-size: 0.98rem; transition: color 0.3s var(--ease); }
.footer-links a:hover { color: var(--primary-strong); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 600;
}

/* --------------------------- Cookie consent ------------------------------- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 150;
  width: min(680px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 15px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.cookie-text { margin: 0; color: var(--text-medium); font-size: 0.92rem; line-height: 1.55; }
.cookie-text a { color: var(--primary-strong); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cookie-text a:hover { color: var(--primary); }
.cookie-actions { display: flex; gap: 10px; flex: none; }
[data-cookie-settings] { cursor: pointer; }
@media (max-width: 620px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 14px; bottom: 12px; }
  .cookie-actions .btn { flex: 1; }
}

/* ------------------------- Legal / prose pages ---------------------------- */
.page-hero { padding-top: calc(var(--nav-h) + 64px); padding-bottom: 20px; }
.page-hero .h2 { margin-top: 16px; }
.page-hero .updated { margin-top: 14px; color: var(--text-light); font-weight: 700; font-size: 0.92rem; }
.prose { max-width: 760px; margin-inline: auto; padding-block: 40px 100px; }
.prose h2 { font-size: 1.5rem; margin: 42px 0 14px; }
.prose h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.prose p { color: var(--text-medium); margin-bottom: 16px; line-height: 1.7; }
.prose ul { color: var(--text-medium); padding-left: 22px; margin-bottom: 16px; line-height: 1.7; display: grid; gap: 8px; }
.prose a { color: var(--primary-strong); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
/* Buttons inside prose keep their own button colours (not the link colour) */
.prose a.btn { color: var(--btn-fg); text-decoration: none; }
.prose strong { color: var(--text); }
.toc {
  background:
    repeating-linear-gradient(var(--ledger-line) 0 1px, transparent 1px 26px),
    var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: inset 3px 0 0 var(--primary-tint);
  padding: 24px 28px;
  margin-bottom: 36px;
}
.toc h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-light); margin-bottom: 14px; }
.toc ol { margin: 0; padding-left: 20px; color: var(--text-medium); display: grid; gap: 7px; }
.toc a { color: var(--text-medium); font-weight: 600; }
.toc a:hover { color: var(--primary-strong); }

/* Support cards */
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
.support-card { text-align: left; }
.support-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.support-card p { color: var(--text-medium); font-size: 1rem; margin-bottom: 18px; }

/* ------------------------- Scroll reveal utility -------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  /* Clean rise + fade, single direction - no blur (reads as templated + costs
     paint). The d1/d2/d3 stagger follows reading order, so motion is earned. */
  transition: opacity 0.6s var(--ease-soft), transform 0.7s var(--ease-soft);
  will-change: transform, opacity;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.07s; }
.reveal.d2 { transition-delay: 0.14s; }
.reveal.d3 { transition-delay: 0.21s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .store-badge, .plan { transition: none !important; }
}

/* ------------------------------ Responsive -------------------------------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-inline: auto; }
  .hero-cta, .store-badges, .hero-note { justify-content: center; }
  .hero-visual { margin-top: 12px; }
  .hero .lede { max-width: 46ch; }
  .privacy-grid { grid-template-columns: 1fr; }
  .shield-visual { max-width: 380px; margin-inline: auto; order: -1; }
  .tour-row, .tour-row.reverse { grid-template-columns: 1fr; }
  .tour-row.reverse .tour-media { order: -1; }
  .bento > *, .bento .span-6, .bento .span-8 { grid-column: span 6; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: minmax(0, 380px); }
  .plan.featured { transform: none; }
  .includes-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links, .nav-cta .btn, .nav-cta .lang-switch { display: none; }
  .nav-toggle { display: block; }
  .nav { padding: 8px 8px 8px 18px; }
  .bento > *, .bento .span-6, .bento .span-8 { grid-column: span 12; }
  .support-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .float-card.fc-1 { left: -4%; }
  .float-card.fc-2 { right: -4%; }
  .container { padding-inline: 20px; }
}
