/* ki-bo.com, every page. Tokens mirror the apps (iOS Sources/Design: KiboColors,
   KiboSemanticColors, KiboSurface, KiboRadius, KiboSpacing, KiboAnimations.Motion;
   Android core/design) so the site reads like the app. The Coral theme is the brand. */

:root {
  color-scheme: light dark;
  --accent: #FF6B5B;
  --accent-deep: #D9412F;
  --accent-soft: #FFE6E1;
  --accent-ink: #C2382A;          /* small accent text: 5.1:1 on paper */
  --grad-a: #E4503F;              /* headline gradient, large text only */
  --grad-b: #C2382A;
  --paper: #FAF9F7;
  --warm-paper: #FCF6F0;
  --cream: #FDEEDC;
  --peach: #FCDAC2;
  --ink: #0F0F14;
  --text: #17141A;
  --muted: #6B6560;               /* 5.4:1 on paper */
  --sheet: #FFFBF8;
  --card: #FFFFFF;
  --line: rgba(60, 35, 28, 0.09);
  --track: #EBE0DA;
  --income: #1B8864;              /* Jade */
  --income-ink: #117555;          /* 5.4:1 on paper */
  --danger: #BA3538;
  --warning-ink: #955816;
  --premium-gold: #E1AF3B;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-solid: rgba(255, 255, 255, 0.94);
  --glass-edge: rgba(255, 255, 255, 0.75);
  --shadow: 0 1px 2px rgba(60, 35, 28, 0.06), 0 12px 32px rgba(60, 35, 28, 0.10);
  --shadow-lg: 0 2px 6px rgba(60, 35, 28, 0.08), 0 30px 70px rgba(120, 40, 25, 0.18);
  --bloom: rgba(255, 107, 91, 0.30);
  --bloom-2: rgba(252, 218, 194, 0.85);

  --s-xs: 4px; --s-sm: 8px; --s-md: 12px; --s-lg: 16px; --s-xl: 24px; --s-2xl: 32px; --s-3xl: 48px;
  /* KiboRadius: five rungs and a capsule, never a value in between. */
  --r-well: 12px; --r-control: 14px; --r-row: 16px; --r-tile: 20px; --r-card: 24px; --r-sheet: 28px;
  --r-sm: var(--r-well); --r-md: var(--r-tile); --r-lg: var(--r-card); --r-xl: var(--r-sheet);
  --measure: 68ch;

  /* KiboAnimations.Motion: quick 150 ms and standard 250 ms never overshoot;
     emphasized is spring(0.4 s, bounce 0.2), sampled into linear(). */
  --ease-std: cubic-bezier(0.2, 0, 0, 1);
  --ease-emph: cubic-bezier(0.34, 1.3, 0.64, 1);
  --t-quick: 150ms;
  --t-std: 250ms;
  --t-emph: 700ms;

  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1160px;
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --ease-emph: linear(0, 0.082, 0.256, 0.448, 0.621, 0.76, 0.861, 0.93, 0.974, 0.999, 1.011, 1.015, 1.015, 1.013, 1.01, 1.007, 1.004, 1.003, 1.001, 1);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #FF8A7C;
    --accent-deep: #FF6B5B;
    --accent-soft: #3F2521;
    --accent-ink: #FF8A7C;
    --grad-a: #FFA295;
    --grad-b: #FF7564;
    --paper: #110E0E;
    --warm-paper: #1C1416;
    --cream: #241A18;
    --peach: #2E201C;
    --text: #F6F1EE;
    --muted: #A8A09C;
    --sheet: #1E1B1A;
    --card: #242020;
    --line: rgba(255, 240, 235, 0.08);
    --track: #3A3433;
    --income: #66C7A0;
    --income-ink: #66C7A0;
    --danger: #F28788;
    --warning-ink: #EDB161;
    --premium-gold: #EDC569;
    --glass: rgba(44, 38, 37, 0.55);
    --glass-solid: rgba(36, 32, 32, 0.96);
    --glass-edge: rgba(255, 240, 235, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.5), 0 30px 70px rgba(0, 0, 0, 0.55);
    --bloom: rgba(255, 107, 91, 0.22);
    --bloom-2: rgba(120, 40, 28, 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; line-height: 1.06; letter-spacing: -0.035em; font-weight: 800; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }

/* The emphasised word, like the captions in the store frames. */
.em {
  background: linear-gradient(120deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: 0.04em;
}

/* ─── Glass (Liquid Glass translated to CSS) ───────────────────── */
.glass {
  background: var(--glass-solid);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass {
    background: var(--glass);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ─── Header ───────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 50;
  padding: 10px 0;
}
.top-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 12px;
  border-radius: 999px;
  transition: box-shadow var(--t-std) var(--ease-std), background-color var(--t-std) var(--ease-std);
}
.top:not(.scrolled) .top-bar { background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 2px 8px rgba(217, 65, 47, 0.25); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px;
  transition: background-color var(--t-quick) var(--ease-std);
}
.nav a:hover { background: var(--line); }
.nav .lang { border: 1px solid var(--line); font-weight: 700; letter-spacing: 0.04em; }
.nav .get { background: var(--ink); color: #fff; }
.nav .get:hover { background: #2a2a33; }
@media (prefers-color-scheme: dark) { .nav .get { background: #F6F1EE; color: #110E0E; } .nav .get:hover { background: #fff; } }
@media (max-width: 760px) { .nav .hide-sm { display: none; } }

/* ─── Store badges ─────────────────────────────────────────────── */
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 9px 20px 9px 16px;
  background: #000; color: #fff; text-decoration: none;
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset, 0 8px 20px rgba(0, 0, 0, 0.18);
  transition: transform var(--t-quick) var(--ease-std), box-shadow var(--t-std) var(--ease-std);
}
.store:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset, 0 14px 28px rgba(0, 0, 0, 0.24); }
.store:active { transform: scale(0.97); }
.store svg { flex-shrink: 0; }
.store span { display: flex; flex-direction: column; line-height: 1.05; }
.store small { font-size: 11px; font-weight: 500; letter-spacing: 0.02em; opacity: 0.9; }
.store b { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }

.badges .store:only-child { flex: none; }
@media (max-width: 420px) {
  .badges { gap: 8px; }
  .store { min-height: 50px; padding: 8px 14px 8px 11px; gap: 8px; border-radius: 12px; }
  .store b { font-size: 16.5px; }
  .store small { font-size: 10px; }
  .store svg { width: 19px; height: 22px; }
}

/* ─── Device (Apple Pay guide) ─────────────────────────────────── */
.phone {
  --w: 300px;
  position: relative;
  width: var(--w); max-width: 76vw;
  aspect-ratio: 1320 / 2868;
  padding: calc(var(--w) * 0.032);
  border-radius: calc(var(--w) * 0.155);
  background: linear-gradient(145deg, #3a3a40, #121216 40%, #26262c);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  flex-shrink: 0;
}
.phone img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: calc(var(--w) * 0.125);
  background: var(--card);
}
.phone picture { display: block; width: 100%; height: 100%; }
.phone.sm { --w: 250px; }
.phone.lg { --w: 320px; }

/* ─── Shared bits ──────────────────────────────────────────────── */
section { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 16px;
}
.eyebrow img { width: 34px; height: 34px; border-radius: 10px; }
.center { text-align: center; }
.fine { margin-top: 20px; font-size: 14px; color: var(--muted); }

/* ─── Landing (/, /es, /es-419) ────────────────────────────────────
   Editorial on purpose: big type, real screens, paper and ink bands in turn.
   Coral stays the brand accent and the screenshots bring the theme colours,
   so there are no blooms, gradients or icon cards here. */
.home {
  --band: #0E0E11;
  --band-text: #F4F1EE;
  --band-muted: #A9A4A0;          /* 7.6:1 on the band */
  --band-line: rgba(244, 241, 238, 0.14);
  --band-accent: #FF8A7C;         /* 7.4:1 on the band */
  --rule: rgba(23, 20, 26, 0.14);
  --display: clamp(46px, 7.6vw, 116px);
  --h2: clamp(36px, 5.4vw, 80px);
  --gutter: clamp(20px, 4vw, 40px);
  background: var(--paper);
}
@media (prefers-color-scheme: dark) {
  .home { --band: #1D1A1C; --band-line: rgba(244, 241, 238, 0.12); --rule: rgba(244, 241, 238, 0.14); }
}
.home .wrap { max-width: 1240px; padding: 0 var(--gutter); }
.home main > section { padding: clamp(72px, 10vw, 136px) 0; }
.home h2 { font-size: var(--h2); line-height: 0.98; letter-spacing: -0.038em; word-spacing: 0.06em; margin-bottom: 22px; }
.home h3 { font-size: 22px; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 6px; }
.home .lede { font-size: clamp(18px, 1.55vw, 21px); line-height: 1.5; color: var(--muted); max-width: 40ch; }
.home .more { margin-top: 22px; font-weight: 700; font-size: 17px; }

.band { background: var(--band); color: var(--band-text); }
.band .lede, .band p, .band dd, .band figcaption { color: var(--band-muted); }
.band h2, .band h3, .band b, .band dt { color: var(--band-text); }
.band a { color: var(--band-accent); }
.band :focus-visible { outline-color: var(--band-accent); }

/* Section label: a number and a name, like a magazine running head. */
.kicker {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 22px;
}
.kicker span { font-variant-numeric: tabular-nums; }
.kicker span::after { content: ""; display: inline-block; width: 28px; height: 1.5px; margin-left: 12px; vertical-align: middle; background: currentColor; opacity: 0.6; }
.band .kicker { color: var(--band-accent); }
.sec-head { max-width: 860px; margin-bottom: clamp(40px, 6vw, 72px); }

/* Device frame for the real screens. The image sets the height, so iPhone and
   Android shots keep their own aspect ratio. `isl` draws the Dynamic Island
   on shots captured without one. */
.dev {
  --w: 300px;
  position: relative; flex-shrink: 0;
  width: min(var(--w), 100%);
  padding: 2.6%;
  border-radius: 15% / 7%;
  background: #141417;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.10) inset, 0 1px 2px rgba(0, 0, 0, 0.2), 0 30px 60px -20px rgba(15, 12, 20, 0.45);
}
.dev img { width: 100%; height: auto; border-radius: 12.6% / 5.8%; background: #222; }
.dev.isl::after {
  content: ""; position: absolute; left: 50%; top: 2.8%; width: 29.6%; height: 4.1%;
  transform: translateX(-50%); border-radius: 999px; background: #000;
}
.dev.android { border-radius: 11% / 5%; }
.dev.android img { border-radius: 8.6% / 3.9%; }
.dev.android::after {
  content: ""; position: absolute; left: 50%; top: 5.2%; width: 3.2%; aspect-ratio: 1;
  transform: translateX(-50%); border-radius: 50%; background: #000;
}
.band .dev { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset, 0 30px 60px -20px rgba(0, 0, 0, 0.7); }

/* ─── Hero ─────────────────────────────────────────────────────── */
.home main > .hero { padding: clamp(28px, 5vw, 64px) 0 0; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.hero-copy { padding-bottom: clamp(48px, 7vw, 104px); }
.hero h1 { font-size: var(--display); line-height: 0.94; letter-spacing: -0.044em; word-spacing: 0.06em; font-weight: 800; margin-bottom: 28px; }
.hero h1 .accent { color: var(--accent-ink); }
.hero .lede { color: var(--text); opacity: 0.78; max-width: 34ch; margin-bottom: 34px; }
.get-row { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; }
.note { margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.note b { color: var(--text); font-weight: 700; }

/* Desktop visitors scan to install; a phone already has the badges. */
.qr { display: flex; align-items: center; gap: 14px; font-size: 13.5px; line-height: 1.35; color: var(--muted); max-width: 210px; }
.qr svg { width: 76px; height: 76px; flex-shrink: 0; padding: 7px; border-radius: 12px; background: #fff; color: #0E0E11; box-shadow: 0 0 0 1px var(--rule); }
@media (max-width: 900px), (hover: none) { .qr { display: none; } }

.facts {
  list-style: none; margin: 40px 0 0; padding: 18px 0 0; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 8px 26px;
  font-size: 14.5px; font-weight: 650; color: var(--text);
}
.facts li { display: flex; align-items: center; gap: 9px; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.hero-art { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 100%; }
.hero-art .front { --w: clamp(250px, 25vw, 340px); z-index: 1; margin-bottom: -16%; }
.hero-art .back { --w: clamp(220px, 22vw, 300px); position: absolute; right: -6%; bottom: 14%; opacity: 0.98; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-bottom: 8px; }
  .hero-art { height: clamp(380px, 112vw, 560px); overflow: hidden; align-items: flex-start; padding-top: 24px; }
  .hero-art .front { --w: min(66vw, 300px); margin: 0; translate: -12% 0; }
  .hero-art .back { --w: min(56vw, 260px); top: 72px; bottom: auto; right: 4%; }
}

/* ─── Logging: three ways in ───────────────────────────────────── */
.ways { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.way { display: flex; flex-direction: column; gap: 32px; padding: 0 clamp(16px, 2.6vw, 40px); border-left: 1px solid var(--band-line); }
.way:first-child { padding-left: 0; border-left: 0; }
.way:last-child { padding-right: 0; }
.way .dev { --w: 280px; }
.way .n { display: block; font-size: 14px; font-weight: 750; color: var(--band-accent); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.way p { font-size: 16.5px; max-width: 34ch; }
.aside { margin-top: clamp(40px, 6vw, 64px); padding-top: 20px; border-top: 1px solid var(--band-line); font-size: 15.5px; max-width: 70ch; }
@media (max-width: 900px) {
  .ways { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .way, .way:first-child, .way:last-child { flex-direction: row; align-items: center; gap: 20px; padding: 26px 0; border-left: 0; border-top: 1px solid var(--band-line); }
  .way:first-child { border-top: 0; padding-top: 0; }
  .way .dev { --w: 42%; width: 42%; }
  .way-copy { flex: 1; min-width: 0; }
  .way p { font-size: 15.5px; }
}

/* ─── Two-column split (Apple Pay, AI, craft) ──────────────────── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.split.flip .split-copy { order: 2; }
.split-art { position: relative; display: flex; justify-content: center; align-items: center; gap: clamp(16px, 2.5vw, 32px); }
.split-art .dev { --w: 320px; }
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split.flip .split-copy { order: 0; }
  .split-art .dev { --w: min(68vw, 300px); }
}

/* Apple Pay: the banner the app shows once a tap is logged. */
.toasts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.split-art .toasts:not(.solo) { position: absolute; left: 0; bottom: 14%; width: min(330px, 92%); }
.toasts li {
  display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px;
  border-radius: 999px; background: var(--card); color: var(--text);
  font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em;
  box-shadow: 0 0 0 1px var(--rule), 0 18px 36px -14px rgba(15, 12, 20, 0.35);
}
.toasts li:nth-child(2) { margin-left: 8%; }
.toasts li:nth-child(3) { margin-left: 16%; }
.toasts img { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; }
.toasts.solo { position: static; width: min(440px, 100%); gap: 14px; }
.toasts.solo li { font-size: clamp(16px, 1.6vw, 19px); padding: 14px 24px 14px 14px; }
.toasts.solo img { width: 42px; height: 42px; border-radius: 11px; }
@media (max-width: 900px) {
  .split-art .toasts:not(.solo) { left: 50%; transform: translateX(-50%); bottom: 8%; width: min(340px, 94%); }
}

/* AI: what you type and what Kibo files. */
.ledger { list-style: none; margin: 34px 0 0; padding: 0; border-top: 1px solid var(--band-line); }
.ledger li {
  display: grid; grid-template-columns: minmax(0, 0.9fr) 22px minmax(0, 1.1fr); gap: 12px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--band-line); font-size: 16px;
}
.ledger code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 15px; color: var(--band-text); }
.ledger .to-arrow { color: var(--band-accent); font-weight: 700; text-align: center; }
.ledger .to { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ledger img { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; }
.ledger .to span { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.ledger small { font-size: 13.5px; color: var(--band-muted); }

/* ─── Your month: a spread of screens ──────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); align-items: start; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.gallery figure:nth-child(even) { margin-top: clamp(28px, 5vw, 72px); }
.gallery .dev { --w: 100%; }
.gallery figcaption { font-size: 15px; line-height: 1.45; color: var(--muted); padding-right: 8px; }
.gallery figcaption b { display: block; color: var(--text); font-size: 16.5px; letter-spacing: -0.01em; margin-bottom: 2px; }
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
}
.features {
  margin: clamp(56px, 8vw, 96px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(20px, 3vw, 40px); border-top: 1px solid var(--rule);
}
.features div { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.features dt { font-weight: 750; font-size: 17px; letter-spacing: -0.015em; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.features dd { margin: 0; color: var(--muted); font-size: 15.5px; max-width: 36ch; }
.tag { font-size: 11.5px; font-weight: 750; letter-spacing: 0.03em; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }
.tag.ios { background: var(--line); color: var(--text); }
@media (max-width: 900px) { .features { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: minmax(0, 1fr); } }

/* ─── Craft: the same app on both phones ───────────────────────── */
.duo-dev { align-items: flex-start; }
.duo-dev figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.duo-dev figure:last-child { margin-top: clamp(32px, 5vw, 64px); }
.duo-dev .dev { --w: 270px; }
.duo-dev figcaption { font-size: 14px; font-weight: 700; letter-spacing: 0.02em; color: var(--band-muted); }
@media (max-width: 900px) { .duo-dev .dev { --w: 100%; } .duo-dev figure { flex: 1; } }
.icons { display: grid; grid-template-columns: repeat(9, minmax(0, 52px)); gap: clamp(6px, 1vw, 10px); margin-top: 34px; }
.icons img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 23%; box-shadow: 0 0 0 1px var(--band-line); transition: transform var(--t-emph) var(--ease-emph); }
.icons img:hover { transform: translateY(-4px) rotate(-4deg); }

/* ─── Premium ──────────────────────────────────────────────────── */
.trial { display: flex; align-items: center; gap: 14px; margin-top: 28px; font-weight: 650; font-size: 16px; max-width: 52ch; }
.trial img { width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0; }
.plans { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 88px); margin-top: clamp(40px, 6vw, 64px); align-items: start; }
.compare table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.compare caption { text-align: left; padding: 0 0 12px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.compare th, .compare td { padding: 12px 10px; text-align: left; border-top: 1px solid var(--rule); vertical-align: middle; }
.compare th:first-child { padding-left: 0; }
.compare thead th { font-size: 12.5px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-top: 2px solid var(--text); }
.compare thead th:last-child { color: var(--accent-ink); }
.compare tbody th { font-weight: 600; }
.compare tbody th span { display: flex; align-items: center; gap: 12px; }
.compare tbody th img { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; }
.compare td { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.compare td:last-child { color: var(--text); font-weight: 700; }
.compare tfoot td, .compare tfoot td:last-child { white-space: normal; font-size: 13.5px; padding: 14px 0 0; font-weight: 400; color: var(--muted); border-top: 1px solid var(--rule); }
@media (max-width: 560px) {
  .compare th, .compare td { padding: 10px 6px; font-size: 14px; }
  .compare tbody th img { width: 26px; height: 26px; }
  .compare tbody th span { gap: 8px; }
  .compare td:last-child { white-space: normal; }
}
.prices { display: grid; border-top: 2px solid var(--text); }
.price {
  position: relative; padding: 20px 0; border-bottom: 1px solid var(--rule);
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline;
}
.price h3 { font-size: 19px; margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.price .v { font-weight: 800; font-size: clamp(26px, 2.6vw, 32px); letter-spacing: -0.03em; text-align: right; font-variant-numeric: tabular-nums; }
.price .v small { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price p { grid-column: 1 / -1; color: var(--muted); font-size: 14.5px; }
.price .flag { font-size: 11.5px; font-weight: 750; letter-spacing: 0.04em; padding: 3px 9px; border-radius: 999px; background: var(--accent-deep); color: #fff; }
@media (prefers-color-scheme: dark) { .price .flag { background: #FF8A7C; color: #2A0B06; } }
.prices .fine { margin-top: 18px; }
@media (max-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* ─── Privacy ──────────────────────────────────────────────────── */
.checks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--band-line); }
.checks li { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--band-line); font-size: 17px; color: var(--band-text); }
.checks li::before {
  content: ""; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255, 138, 124, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF8A7C' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ─── FAQ (landing) ────────────────────────────────────────────── */
.faq-split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.home .faq { margin: 0; max-width: none; gap: 0; border-top: 1px solid var(--rule); }
.home .faq details { border-radius: 0; background: none; border: 0; border-bottom: 1px solid var(--rule); }
.home .faq summary { padding: 20px 48px 20px 0; }
.home .faq summary::after { right: 8px; }
.home .faq details > div { padding: 0 0 22px; }
@media (max-width: 900px) { .faq-split { grid-template-columns: minmax(0, 1fr); } }

/* ─── Final CTA ────────────────────────────────────────────────── */
.final h2 { font-size: var(--display); line-height: 0.94; letter-spacing: -0.044em; word-spacing: 0.06em; max-width: 13ch; }
.final .lede { margin-bottom: 36px; }
.final .qr { color: var(--band-muted); }
.final .qr svg { box-shadow: none; }

/* ─── FAQ ──────────────────────────────────────────────────────── */
.faq { max-width: 820px; margin: 44px auto 0; display: grid; gap: 12px; }
.faq details { border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font-weight: 700; font-size: 17.5px; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted);
  transform: rotate(45deg); transition: transform var(--t-std) var(--ease-std);
}
.faq details[open] summary::after { transform: translateY(5px) rotate(225deg); }
.faq details > div { padding: 0 24px 22px; color: var(--muted); font-size: 16px; }
.faq details > div p + p { margin-top: 10px; }

/* ─── Footer ───────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14.5px; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot nav a { color: var(--text); text-decoration: none; font-weight: 600; }
.foot nav a:hover { text-decoration: underline; }
.foot .brand { font-size: 17px; }
.foot .brand img { width: 30px; height: 30px; border-radius: 8px; }

/* ─── Motion ───────────────────────────────────────────────────────
   Content rests visible. The hero entrance is a CSS animation that runs
   once on load and ends visible whatever JS or the scroll does. Section
   reveals are scroll-driven (animation-timeline: view()) where supported,
   so anything inside the viewport is at its final, visible state; browsers
   without support show the content with no motion. Phones move with
   `translate`, so the entrance `transform` never fights their offset. */
@keyframes k-rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes k-phone { from { opacity: 0; transform: translateY(60px) scale(0.96); } }
@keyframes k-reveal { from { opacity: 0.001; transform: translateY(32px); } }

@media (prefers-reduced-motion: no-preference) {
  .hero .rise { animation: k-rise var(--t-emph) var(--ease-emph) both; animation-delay: calc(var(--i, 0) * 60ms); }
  .hero-art .rise { animation-name: k-phone; animation-duration: 900ms; }

  @supports (animation-timeline: view()) {
    .reveal {
      animation: k-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0px entry 180px;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .icons img, .store, .faq summary::after { transition: none; }
  .icons img:hover, .store:hover { transform: none; }
}
@media print { .top { display: none; } .band { background: none; color: inherit; } * { animation: none !important; } }

/* ─── Shared page parts (support, about, legal, tools, guides) ─────── */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs .sep { opacity: 0.5; }
.crumbs .alt { margin-left: auto; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 32px);
}
.card h2 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 6px; }
.card h3 { font-size: 18px; letter-spacing: -0.01em; }
.card .sub { color: var(--muted); font-size: 15px; }
.card.flat { box-shadow: none; }
.card.tint { background: linear-gradient(170deg, var(--card) 35%, var(--accent-soft)); }

/* KiboPrimaryButton: accent capsule, press scale, never an icon. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; text-align: center;
  border-radius: 999px; padding: 10px 20px; min-height: 44px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  transition: transform var(--t-quick) var(--ease-std), background-color var(--t-quick) var(--ease-std), border-color var(--t-quick) var(--ease-std);
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: scale(0.96); }
.btn.primary { background: #C2382A; border-color: transparent; color: #fff; box-shadow: 0 8px 20px -8px rgba(217, 65, 47, 0.55); }  /* 5.3:1 with white */
.btn.primary:hover { background: #A92F23; }
.btn.tonal { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.btn.tonal:hover { filter: brightness(0.97); }
.btn.lg { min-height: 52px; padding: 14px 28px; font-size: 17px; }
@media (prefers-color-scheme: dark) {
  .btn.primary { background: var(--accent); color: #2A0B06; box-shadow: none; }
  .btn.primary:hover { background: #FFA295; }
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Page hero: the CoralBackdrop, quieter than the landing's. */
.page-hero { position: relative; isolation: isolate; padding: 16px 0 clamp(32px, 5vw, 56px); overflow: clip; }
.page-hero::before {
  content: ""; position: absolute; inset: -80px 0 0; z-index: -1;
  background:
    radial-gradient(50% 60% at 85% 10%, var(--bloom), transparent 70%),
    radial-gradient(50% 50% at 5% 0%, var(--bloom-2), transparent 70%),
    linear-gradient(180deg, var(--warm-paper), var(--paper) 90%);
  opacity: 0.8;
}
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; margin-top: 28px; }
.page-hero h1 { font-size: clamp(38px, 6vw, 64px); margin-bottom: 16px; }
.page-hero .lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 46ch; }
.page-hero .art { width: clamp(120px, 18vw, 200px); height: auto; }
@media (max-width: 640px) {
  .page-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .page-hero-grid > picture { order: -1; }
  .page-hero .art { width: 104px; margin-left: -8px; }
  .page-hero .phone { display: none; }
}
.page-body { padding: 8px 0 clamp(56px, 8vw, 96px); }
.narrow { max-width: 820px; }
.stack { display: grid; gap: clamp(32px, 5vw, 56px); }
.block h2 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 10px; }
.block > p { color: var(--muted); max-width: var(--measure); }
.block > p + p { margin-top: 12px; }

/* Topic and fact cards with catalog art. */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; margin-top: 20px; }
.tile {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 18px; border-radius: var(--r-tile); background: var(--card); border: 1px solid var(--line);
  color: var(--text); text-decoration: none;
  transition: transform var(--t-std) var(--ease-std), box-shadow var(--t-std) var(--ease-std);
}
a.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
a.tile:active { transform: scale(0.98); }
.tile img { width: 56px; height: 56px; border-radius: var(--r-well); }
.tile b { display: block; font-size: 16.5px; letter-spacing: -0.01em; margin-bottom: 2px; }
.tile span { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.tile.solo { grid-template-columns: minmax(0, 1fr); }

/* Numbered steps (Apple Pay setup, delete account). */
.steps-list { list-style: none; counter-reset: step; margin: 20px 0 0; padding: 8px; display: grid; gap: 4px; }
.steps-list li {
  counter-increment: step; position: relative; display: block;
  padding: 16px 12px 16px 64px; min-height: 64px; font-size: 16.5px;
}
.steps-list li + li { border-top: 1px solid var(--line); }
.steps-list li::before {
  content: counter(step); position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink);
  font-family: var(--font-round); font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums;
}
.badge {
  display: inline-block; font-size: 12px; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink);
}
.badge.ok { background: color-mix(in srgb, var(--income) 16%, transparent); color: var(--income-ink); }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; margin: 16px 0; font-size: 15px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 20px; }
@media (max-width: 760px) { .two { grid-template-columns: minmax(0, 1fr); } }
.ticks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; font-size: 15.5px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.callout { display: flex; gap: 18px; align-items: center; }
.callout img { width: 84px; height: 84px; flex: none; }
.callout p { color: var(--muted); font-size: 15.5px; }
.callout b { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }
@media (max-width: 480px) { .callout { flex-direction: column; align-items: flex-start; } }

/* About: the person behind it. */
.person { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(20px, 4vw, 40px); align-items: center; }
.person .photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sheet); box-shadow: var(--shadow); }
.person h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 4px; }
.person .role { color: var(--accent-ink); font-weight: 700; margin-bottom: 14px; }
.person p { color: var(--muted); max-width: 60ch; }
.person p + p { margin-top: 10px; }
.person .actions { margin-top: 18px; }
@media (max-width: 640px) { .person { grid-template-columns: minmax(0, 1fr); } .person .photo { width: 160px; } }

/* ─── Legal documents ──────────────────────────────────────────────
   Patterns borrowed: a short summary above the text and a visible
   update date (NN/g privacy-policy study), a contents list with jump
   links (OPC Canada guidance), Monzo's "Who are we?" first section,
   and a readable 68ch measure with anchored headings. */
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }
.doc-meta .badge { text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 700; padding: 6px 12px; }
.doc-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.toc { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; font-size: 14.5px; }
.toc summary { list-style: none; cursor: pointer; font-size: 13px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 4px 0 10px; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a {
  display: block; padding: 7px 12px; border-radius: var(--r-control);
  color: var(--muted); text-decoration: none; font-weight: 600; line-height: 1.35;
  transition: background-color var(--t-quick) var(--ease-std), color var(--t-quick) var(--ease-std);
}
.toc a:hover { background: var(--line); color: var(--text); }
.toc a[aria-current="true"] { background: var(--accent-soft); color: var(--accent-ink); }
@media (max-width: 960px) {
  .doc-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .toc { position: static; max-height: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-tile); padding: 14px 10px 10px 16px; }
  .toc summary { padding: 0 0 4px; display: flex; justify-content: space-between; align-items: center; }
  .toc summary::after { content: ""; width: 9px; height: 9px; margin-right: 8px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: rotate(45deg); transition: transform var(--t-std) var(--ease-std); }
  .toc[open] summary::after { transform: rotate(225deg); }
  .toc ol { margin-top: 6px; }
}
.prose { max-width: var(--measure); font-size: 17px; line-height: 1.65; }
.prose h2 { font-size: clamp(23px, 2.6vw, 28px); letter-spacing: -0.025em; line-height: 1.2; margin: 52px 0 12px; scroll-margin-top: 96px; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18.5px; letter-spacing: -0.01em; line-height: 1.3; margin: 28px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 1.3em; }
.prose li { margin-bottom: 8px; padding-left: 4px; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent-ink); font-weight: 600; overflow-wrap: anywhere; }
.prose strong { font-weight: 700; }
.prose .anchor { margin-left: 8px; color: var(--muted); text-decoration: none; font-weight: 600; opacity: 0; transition: opacity var(--t-quick) var(--ease-std); }
.prose h2:hover .anchor, .prose .anchor:focus-visible { opacity: 1; }
.summary-card { display: flex; gap: 16px; align-items: center; margin-bottom: 36px; max-width: var(--measure); }
.summary-card img { width: 72px; height: 72px; flex: none; }
.summary-card b { display: block; font-size: 13px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 4px; }
.summary-card p { margin: 0; font-size: 16px; }
.doc-end { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; font-size: 15px; color: var(--muted); }
.doc-end a { font-weight: 700; }
@media print {
  .toc, footer, .skip, .page-hero .art, .doc-end .to-top { display: none !important; }
  .doc-grid { display: block; }
  .prose { max-width: none; font-size: 11pt; }
  .prose a::after { content: " (" attr(href) ")"; font-weight: 400; color: #555; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .tile, .toc a, .toc summary::after { transition: none; }
  .btn:active, a.tile:hover, a.tile:active { transform: none; }
}
/* ─── Web tools (/es/herramientas) ─────────────────────────────── */

.tool-hero { padding: 24px 0 8px; }
.tool-hero h1 { font-size: clamp(36px, 6vw, 64px); margin: 10px 0 16px; }
.tool-hero .lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 52ch; }
.tool { padding: 24px 0 64px; }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .tool-grid { grid-template-columns: minmax(0, 1fr); } }

.form { display: grid; gap: 18px; }
.form label, .form .label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.form .hint { font-size: 14px; color: var(--muted); margin-top: 6px; }
.input {
  width: 100%;
  font: inherit;
  font-size: 18px;
  color: var(--text);
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  padding: 12px 14px;
  min-height: 48px;
  transition: border-color var(--t-quick) var(--ease-std), box-shadow var(--t-quick) var(--ease-std);
}
.input:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.input.amount { font-family: var(--font-round); font-weight: 700; font-variant-numeric: tabular-nums; }
.money-field { position: relative; }
.money-field .input { padding-right: 40px; }
.money-field .cur {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-weight: 700; color: var(--muted); font-size: 15px; pointer-events: none;
}

.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--line); flex-wrap: wrap; }
.seg button {
  font: inherit; font-size: 14px; font-weight: 700; color: var(--text);
  border: 0; border-radius: 999px; background: transparent; padding: 8px 14px; min-height: 36px; cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--card); box-shadow: var(--shadow); }
.currency-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.icon-btn {
  font: inherit; font-size: 20px; line-height: 1; width: 44px; height: 44px; flex: none;
  border-radius: 999px; border: 0; background: transparent; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: var(--line); color: var(--text); }

.rows { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) 118px 44px; gap: 6px; align-items: center; }
.row .input { font-size: 16px; padding-left: 12px; }
.row .money-field .input { padding-right: 30px; }
.row .money-field .cur { right: 10px; }
.row-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }

/* Gastos hormiga: image, name and price, and a weekly count stepper */
.ant-rows { display: grid; gap: 10px; }
.ant-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 6px 12px; align-items: center;
  padding: 10px 8px 10px 12px; border-radius: var(--r-sm); background: var(--sheet); border: 1px solid var(--line);
}
.ant-row img { grid-row: 1 / span 2; width: 44px; height: 44px; }
.ant-name { font-weight: 700; font-size: 15px; }
.ant-row .money-field { grid-column: 2; }
.ant-row .money-field .input { font-size: 16px; min-height: 40px; padding: 8px 30px 8px 10px; }
.ant-row .money-field .cur { right: 10px; }
.stepper { grid-column: 3; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stepper-ctl { display: flex; align-items: center; }
.stepper output { min-width: 2ch; text-align: center; font-family: var(--font-round); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.stepper small { font-size: 12px; color: var(--muted); }

/* Presupuesto quincenal */
.q-row { display: grid; grid-template-columns: minmax(0, 1fr) 118px 44px; gap: 6px; align-items: center; }
.q-row select { grid-column: 1 / span 2; font-size: 16px; padding-left: 12px; }
.q-row .input { font-size: 16px; padding-left: 12px; }
.q-row .money-field .input { padding-right: 30px; }
.q-row .money-field .cur { right: 10px; }
.q-row .icon-btn { grid-row: 1; grid-column: 3; }
#q-rows { display: grid; gap: 14px; }
.q-halves { display: grid; gap: 18px; margin-top: 14px; }
.q-half h3 { font-size: 16px; color: var(--muted); margin-bottom: 2px; }

/* Result */
.result { position: sticky; top: 84px; }
@media (max-width: 860px) { .result { position: static; } }
.big {
  font-family: var(--font-round); font-weight: 800; font-variant-numeric: tabular-nums;
  font-size: clamp(40px, 7vw, 56px); letter-spacing: -0.03em; line-height: 1.05;
}
.big.neg { color: var(--accent-ink); }
.result .lead-line { font-size: 17px; margin-top: 6px; }
.result .tier { margin-top: 12px; font-weight: 600; }
.empty-note { color: var(--muted); }

.split-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; margin: 18px 0 8px; background: var(--track); }
.split-bar span { display: block; height: 100%; transition: flex-grow var(--t-std) var(--ease-std); }
.c-needs { background: var(--accent); }
.c-wants { background: #D78C29; }
.c-save { background: var(--income); }
.buckets { display: grid; gap: 12px; margin-top: 14px; }
.bucket { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.bucket .dot { width: 12px; height: 12px; border-radius: 4px; margin-top: 6px; }
.bucket b { display: block; font-size: 16px; }
.bucket small { color: var(--muted); font-size: 14px; }
.bucket .amt { font-family: var(--font-round); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.year-line { margin-top: 16px; font-size: 15px; color: var(--muted); }

.people { display: flex; flex-wrap: wrap; gap: 8px; }
.person-chip {
  display: inline-flex; align-items: center; gap: 2px; padding: 4px 4px 4px 14px;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700;
}
.person-chip .icon-btn { width: 32px; height: 32px; font-size: 17px; color: inherit; }
.expense-form { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 8px; }
.expense-form .wide { grid-column: 1 / -1; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.list li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center;
  padding: 8px 4px 8px 14px; border-radius: var(--r-sm); background: var(--sheet); border: 1px solid var(--line);
}
.list .meta { color: var(--muted); font-size: 14px; }
.list .amt { font-family: var(--font-round); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.balances li { grid-template-columns: minmax(0, 1fr) auto; padding-right: 14px; }
.pos { color: var(--income-ink); }
.negv { color: var(--accent-ink); }
.transfers li { grid-template-columns: minmax(0, 1fr) auto; padding-right: 14px; }
.share-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.share-status { font-size: 14px; color: var(--muted); }

/* Store CTA, part of the result */
.cta { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.cta h3 { margin-bottom: 6px; }
.cta p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.cta .store { padding: 9px 16px; }
.cta .store b { font-size: 17px; }

.privacy-line { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); margin-top: 14px; }

/* Explainer + FAQ */
.explain { padding: 8px 0 72px; }
.explain .prose { max-width: 720px; }
.explain h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.explain .prose p { color: var(--muted); margin-bottom: 14px; }
.explain .faq { margin-top: 28px; max-width: 720px; margin-left: 0; }
.explain .prose + .prose { margin-top: 28px; }

/* Index cards */
.tool-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; padding: 16px 0 72px; }
.tool-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--text); transition: transform var(--t-std) var(--ease-std); }
.tool-card:hover { transform: translateY(-3px); }
.tool-card .k { font-family: var(--font-round); font-weight: 800; font-size: 28px; color: var(--accent-ink); }
.tool-card p { color: var(--muted); font-size: 15px; }
.tool-card .go { margin-top: auto; font-weight: 700; color: var(--accent-ink); }

@media (prefers-reduced-motion: reduce) {
  .split-bar span, .tool-card, .input { transition: none; }
}
