/* Coperacha — shared design system for coperacha.app (home + /como-funciona/).
   Type: Geist for everything; Fraunces italic (600, optical size) only for accent words (<em> in headings).
   Spacing on a 4px base. Color: warm paper + deep forest ink; rosa mexicano and cempasúchil as accents only. */

:root {
  /* Surfaces */
  --bg: #FBFAF7;
  --surface: #FFFFFF;
  --tint: #F4F2EC;
  --panel: #F7F5F0;
  --chat: #EFE9DE;

  /* Ink (body >= 11:1, muted >= 6:1 on --bg) */
  --ink: #0F241A;
  --ink-2: #2B3B32;
  --muted: #56635B;
  --line: rgba(16, 38, 28, 0.09);
  --line-2: rgba(16, 38, 28, 0.16);

  /* Brand */
  --forest: #15573A;
  --forest-900: #0D3324;
  --forest-tint: #E9F1EC;
  --leaf: #2F7D55;
  --rosa: #C8175F;
  --rosa-ink: #A0124C;
  --rosa-tint: #FBEAF1;
  --gold: #F2B033;
  --gold-ink: #7F5600;
  --gold-tint: #FCF4E1;
  --orange: #E08A2E;

  /* Type */
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --h1: clamp(2.75rem, 7vw, 5.75rem);
  --h2: clamp(2rem, 4.4vw, 3.5rem);

  /* Spacing scale (4px base) */
  --s-section: 88px;
  --s-head: 48px;
  --s-card: 20px;
  --s-panel: 16px;

  /* Shape and depth */
  --r-sm: 8px;
  --r: 12px;
  --r-card: 20px;
  --r-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(16, 38, 28, 0.04), 0 1px 1px rgba(16, 38, 28, 0.03);
  --shadow-md: 0 1px 2px rgba(16, 38, 28, 0.04), 0 12px 32px -12px rgba(16, 38, 28, 0.16);
  --shadow-lg: 0 2px 4px rgba(16, 38, 28, 0.04), 0 28px 56px -20px rgba(16, 38, 28, 0.24);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);


  interpolate-size: allow-keywords;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--forest-900); }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 4px; }
strong, b { font-weight: 600; color: var(--ink); }
p { margin: 0; }

/* Display: confident grotesk; the serif italic is reserved for the accent words */
h1, h2 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--h1); line-height: 1; letter-spacing: -0.035em; }
h2 { font-size: var(--h2); line-height: 1.06; letter-spacing: -0.03em; }
/* Accent words: a sturdy serif italic at the same size and baseline, so it reads as one voice with the grotesk */
h1 em, h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-optical-sizing: auto;
  font-size: 1em;
  letter-spacing: -0.025em;
  color: var(--forest);
}
h3 { margin: 0; font: 600 1.125rem/1.3 var(--sans); letter-spacing: -0.015em; color: var(--ink); }

.wrap { width: min(100% - 32px, 1200px); margin-inline: auto; }

/* Inline icon: one stroke style everywhere */
.i {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 8px 14px; border-radius: var(--r-sm);
  background: var(--ink); color: #fff; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

/* Kicker: small caps label with a rosa hairline */
/* Same eyebrow for section kickers and the template labels on /como-funciona/ */
.kicker, .panel-label {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
  font: 600 0.8125rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--forest);
}
.kicker::before, .panel-label::before { content: ""; width: 20px; height: 1px; background: var(--rosa); }

.intro { max-width: 40rem; margin-top: 20px; font-size: 1.125rem; line-height: 1.6; color: var(--ink-2); }

/* "Ejemplo" tag */
.ejemplo {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; flex: none;
  border: 1px solid rgba(127, 86, 0, 0.18); border-radius: 999px;
  background: var(--gold-tint); color: var(--gold-ink);
  font: 600 0.6875rem/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase;
}

/* The one card surface left on /como-funciona/: the template mockups */
.example-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
}

/* Light example surface: the small mockups and the datum panels inside a template mockup */
.flow, .profile, .disclaimer, .reward, .mini-chat {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
}

/* ---------- Buttons and fields ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 56px; padding: 0 28px;
  border: 0; border-radius: 999px;
  font: 600 1.0625rem/1 var(--sans); letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s, color 0.2s;
}
.btn .i { width: 18px; height: 18px; stroke-width: 2; transition: transform 0.2s var(--ease); }
.btn-primary {
  background: var(--rosa); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 2px rgba(16, 38, 28, 0.18), 0 8px 20px -8px rgba(200, 23, 95, 0.55);
}
.btn-primary:hover { background: var(--rosa-ink); color: #fff; transform: translateY(-1px); }
.btn-primary:hover .i { transform: translateX(2px); }
.btn-primary:active { transform: none; }
.btn:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--rosa); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 0.9375rem; }
/* Secondary: a quiet outline next to the rosa button; .btn-light is the same on the dark closing card */
.btn-secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-secondary:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-secondary.btn-light { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45); }
.btn-secondary.btn-light:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn-secondary.btn-light:focus-visible { box-shadow: 0 0 0 3px var(--forest-900), 0 0 0 5px #fff; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, 0.84);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 12px -6px rgba(16, 38, 28, 0.12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: block; border-radius: var(--r-sm); }
.brand-wordmark text { font-family: var(--sans); font-weight: 600; }
.brand-wordmark { width: 147px; height: 28px; }
/* On small screens the header CTA is a quiet outline so it doesn't compete with the hero CTA */
.header-cta.btn-primary {
  height: 34px; padding: 0 14px; font-size: 0.875rem;
  background: transparent; color: var(--rosa-ink);
  box-shadow: inset 0 0 0 1px rgba(200, 23, 95, 0.35);
}
.header-cta.btn-primary:hover { background: var(--rosa-tint); color: var(--rosa-ink); transform: none; }

/* ---------- Hero ---------- */

.hero { position: relative; padding-bottom: var(--s-section); overflow: hidden; }
.hero-grid { display: grid; gap: 56px; padding-top: 28px; }
.hero h1 em { color: var(--rosa); }
.lede { max-width: 34ch; margin-top: 20px; font-size: 1.125rem; line-height: 1.55; color: var(--ink-2); }
/* Primary CTA first; the quiet text link sits beside it and wraps below on narrow screens */
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 28px; }
.hero-points {
  display: grid; gap: 10px; margin: 32px 0 0; padding: 0; list-style: none;
  font-size: 1rem; line-height: 1.5; color: var(--ink-2);
}
.hero-points li { display: flex; align-items: center; gap: 12px; }
.hero-points .i {
  width: 22px; height: 22px; padding: 5px; border-radius: 50%;
  background: var(--forest-tint); color: var(--forest); stroke-width: 2.4;
}

/* Phone mockup */
.phone-stage { position: relative; display: flex; justify-content: center; }
.phone-stage::before {
  content: ""; position: absolute; inset: 6% -12% 4%; z-index: 0;
  background: radial-gradient(closest-side, rgba(242, 176, 51, 0.16), transparent 70%),
              radial-gradient(closest-side at 70% 70%, rgba(21, 87, 58, 0.10), transparent 70%);
  filter: blur(10px);
}
.phone-figure { position: relative; z-index: 1; margin: 0; }
.phone {
  position: relative;
  width: min(100%, 320px);
  padding: 9px;
  border-radius: 52px;
  background: linear-gradient(160deg, #2A322E, #121815 40%, #1B221E);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(16, 38, 28, 0.2),
    0 1px 2px rgba(16, 38, 28, 0.1),
    0 18px 36px -18px rgba(16, 38, 28, 0.3),
    0 48px 96px -36px rgba(16, 38, 28, 0.32);
}
/* Side buttons */
.phone::before, .phone::after {
  content: ""; position: absolute; width: 3px; border-radius: 2px; background: #1B221E;
}
.phone::before { left: -3px; top: 120px; height: 56px; }
.phone::after { right: -3px; top: 150px; height: 80px; }
.phone-screen { overflow: hidden; border-radius: 43px; background: var(--chat); }
.statusbar {
  position: relative; display: flex; align-items: center; justify-content: flex-end;
  height: 44px; padding: 4px 24px 0; background: #FBFAF7; color: var(--ink);
}
.island { position: absolute; top: 11px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #0B0F0D; }
.sb-icons { width: 58px; height: 11px; }

.chat-top {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 10px 8px;
  background: #FBFAF7; border-bottom: 1px solid var(--line);
}
.chat-back { width: 20px; height: 20px; fill: none; stroke: var(--forest); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-avatar { width: 34px; height: 34px; }
.chat-id { min-width: 0; line-height: 1.2; }
.chat-id strong { display: block; font-size: 0.875rem; }
.chat-id span { font-size: 0.6875rem; color: var(--muted); }
.chat-top .ejemplo { margin-left: auto; }

/* A calm conversation: four messages at reading size, no timestamps or ticks */
.chat-body {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 12px 20px;
  background-color: var(--chat);
  background-image: radial-gradient(rgba(16, 38, 28, 0.05) 1px, transparent 1.2px);
  background-size: 14px 14px;
}
/* System line and day divider: quiet centered text, no chip */
.chat-note, .chat-day {
  align-self: center; max-width: 90%;
  font: 500 0.75rem/1.35 var(--sans); color: var(--muted); text-align: center;
}
.chat-note { margin-bottom: 2px; }
.chat-day { margin-block: 6px 0; letter-spacing: 0.02em; }
.bubble {
  max-width: 84%;
  padding: 6px 9px 4px;
  border-radius: 12px;
  font-size: 0.8125rem; line-height: 1.38; color: var(--ink);
  box-shadow: 0 1px 0.5px rgba(16, 38, 28, 0.13);
}
.bubble.in { align-self: flex-start; background: #fff; border-top-left-radius: 4px; }
.bubble.out { align-self: flex-end; background: #DBF0D4; border-top-right-radius: 4px; }
.chat-body .bubble { max-width: 86%; padding: 9px 12px; border-radius: 16px; font-size: 0.875rem; line-height: 1.42; }
.chat-body .bubble.in { border-top-left-radius: 6px; }
.chat-body .bubble.out { border-top-right-radius: 6px; }
.phone-caption { margin-top: 20px; text-align: center; font-size: 0.8125rem; color: var(--muted); }

/* ---------- Sections ---------- */

.section { padding: var(--s-section) 0; }
.alt { background: var(--tint); border-block: 1px solid var(--line); }
.section-head { max-width: 48rem; margin: 0 auto var(--s-head); }

/* Stack banner: official logos in their own colors, no filters; per-item heights balance optical
   size (wordmarks shorter, square/stacked marks taller). Desktop: one centered row; ≤600px: 2×2 grid.
   object-fit keeps the aspect ratio if max-width ever clamps a wide wordmark in a narrow cell. */
.stack { padding: 32px 0; background: var(--bg); border-block: 1px solid var(--line); }
.stack + .alt { border-top: 0; }
.stack-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.stack-label {
  font: 600 0.75rem/1.5 var(--sans); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.stack-logos {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 24px 56px; margin: 0; padding: 0; list-style: none;
}
.stack-logo { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; }
.stack-logo img { display: block; width: auto; max-width: 100%; object-fit: contain; }
.stack-logo--spacexai img { height: 22px; }
.stack-logo--pey img { height: 26px; }
.stack-logo--codi img { height: 34px; }
.stack-logo--grokbot img { height: 26px; }
.stack-logo--grokbot span { font: 600 17px/1 var(--sans); color: var(--ink); white-space: nowrap; }
.stack-logo--grokbot img { flex: none; }
@media (max-width: 600px) {
  .stack-label { letter-spacing: 0.08em; }
  .stack-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; width: 100%; }
}

/* Section rhythm: the editorial header of "Para qué sirve" (.pa-head), shared by every home section
   and every /como-funciona/ (.cf) section. */
.home .section:not(.pa-casos), .cf .section { padding-block: 72px; }
.home .cta { margin-top: 72px; }
.hs-head { margin-bottom: 32px; }
.hs-head .kicker { margin-bottom: 24px; }
.hs-head h2 {
  max-width: 18ch;
  font-size: clamp(2.5rem, 1.1rem + 4vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

/* How it works: three unboxed steps, each under a hairline */
.steps { display: grid; gap: 32px; margin: 0; padding: 0; list-style: none; }
.step { padding-top: 20px; border-top: 1px solid var(--line-2); }
.step-num {
  display: block; margin-bottom: 16px;
  font: italic 600 2.5rem/1 var(--serif); letter-spacing: -0.02em; color: var(--forest);
}
.step h3 { margin-bottom: 8px; font-size: 1.25rem; }
.step p { max-width: 34ch; font-size: 1rem; color: var(--muted); }
/* Plain muted note line under a section's columns (home and /como-funciona/) */
.steps-note { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 32px; font-size: 0.9375rem; color: var(--muted); }

/* Setup ("Así se crea"): three unboxed steps like .steps, each with a small mockup on a tinted stage */
.setup { display: grid; gap: 32px; margin: 0; padding: 0; list-style: none; }
.setup-step { padding-top: 20px; border-top: 1px solid var(--line-2); }
.setup-step h3 { margin-bottom: 8px; font-size: 1.25rem; }
.setup-step p { max-width: 34ch; font-size: 1rem; color: var(--muted); }
.setup-visual { margin: 20px 0 0; }
.setup-visual > .mock, .setup-visual > .mock-form { margin: 0; }
.setup-caption { margin-top: 10px; font-size: 0.875rem; color: var(--muted); }
.mock {
  padding: 16px;
  border-radius: 20px;
  background:
    radial-gradient(70% 60% at 50% 18%, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 70%),
    linear-gradient(160deg, color-mix(in srgb, var(--forest) 6%, var(--bg)), color-mix(in srgb, var(--forest) 9%, var(--bg)));
}
.mock .i { width: 18px; height: 18px; flex: none; }
/* 1. Login: one white pill button */
.mock-login { display: grid; place-items: center; min-height: 120px; }
.mock-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 20px;
  border-radius: 999px; background: var(--surface);
  box-shadow: 0 1px 2px rgba(16, 38, 28, 0.08), 0 8px 20px -12px rgba(16, 38, 28, 0.3);
  font: 600 0.9375rem/1 var(--sans); color: var(--ink);
}
.mock-btn .i { color: var(--forest); }
/* 2. Setup: label/value rows on a white card */
.mock-form { display: grid; gap: 0; padding: 4px 18px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-sm); }
.mock-form > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.9375rem; line-height: 1.35; }
.mock-form > div:first-child { border-top: 0; }
.mock-form dt { flex: none; color: var(--muted); }
.mock-form dd { margin: 0; text-align: right; font-weight: 600; color: var(--ink); }
.mock-clabe { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
/* 3. Share: the ready-made message as an outgoing bubble */
.mock-share { display: grid; gap: 10px; min-height: 120px; align-content: center; }
.mock-msg {
  justify-self: end; max-width: 92%;
  padding: 10px 12px;
  border-radius: 16px 4px 16px 16px; background: #DBF0D4;
  box-shadow: 0 1px 0.5px rgba(16, 38, 28, 0.13);
  font-size: 0.9375rem; line-height: 1.42; color: var(--ink); overflow-wrap: anywhere;
}
.mock-link { color: var(--forest); text-decoration: underline; text-underline-offset: 2px; }
.mock-hint { display: flex; align-items: center; gap: 6px; justify-self: end; font-size: 0.8125rem; color: var(--muted); }
.mock-hint .i { width: 16px; height: 16px; }
.setup-note { margin-top: 40px; }

/* All or nothing */
.countries-line { max-width: 38rem; margin-top: 24px; font-size: 1.125rem; color: var(--muted); }
.countries-line b { font-weight: 500; color: var(--ink); }
.mx { font: italic 600 1.1em/1 var(--serif); letter-spacing: -0.02em; color: var(--rosa); }
.outcomes { display: grid; gap: 32px; }
.outcome { padding-top: 20px; border-top: 1px solid var(--line-2); }
.outcome-icon { display: block; width: 20px; height: 20px; margin-bottom: 14px; stroke-width: 2; color: var(--forest); }
.no .outcome-icon { color: var(--rosa-ink); }
.outcome strong { display: block; font-size: 1.25rem; letter-spacing: -0.015em; }
.outcome > span { display: block; max-width: 34ch; margin-top: 4px; font-size: 1rem; color: var(--muted); }
.meter { height: 6px; margin-top: 20px; border-radius: 6px; background: var(--tint); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 6px; }
.ok .meter span { width: 100%; background: var(--forest); }
.no .meter span { width: 62%; background: repeating-linear-gradient(90deg, rgba(200, 23, 95, 0.35) 0 6px, transparent 6px 10px); }

/* ---------- Casos: "Para qué sirve" ---------- */

/* One live case (the surprise gift): the story column and one surface, the bot message on a soft
   stage; everything else is type and alignment. The other cases sit below as a quiet "coming soon"
   list. */
.pa-casos { padding-block: clamp(80px, 7vw, 104px); }

.pa-head .kicker { margin-bottom: 24px; }
.pa-head h2 {
  max-width: 20ch;
  font-size: clamp(2.5rem, 1.1rem + 4vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

/* Visually hidden text: the cap field's label */
.pa-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.pa-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-content: start; margin-top: 40px; }

/* Story column */
.pa-copy { max-width: 32rem; }
.pa-copy h3 {
  font: 600 clamp(2.125rem, 1.2rem + 2.4vw, 3.25rem)/1.04 var(--sans);
  letter-spacing: -0.035em; text-wrap: balance;
}
.pa-copy h3 em {
  font-family: var(--serif); font-style: italic; font-weight: 600; font-optical-sizing: auto;
  letter-spacing: -0.02em; color: var(--forest);
}
.pa-story { margin-top: 20px; font-size: 1.125rem; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.pa-fact { margin-top: 28px; font: 600 1.375rem/1.25 var(--sans); letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }

/* The one surface: a single bot message on a soft forest-tinted stage */
.pa-visual { margin: 0; }
.pa-backdrop {
  display: grid; place-items: center;
  padding: 16px;
  border-radius: 20px;
  background:
    radial-gradient(70% 60% at 50% 18%, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 70%),
    linear-gradient(160deg, color-mix(in srgb, var(--forest) 6%, var(--bg)), color-mix(in srgb, var(--forest) 9%, var(--bg)));
}
.pa-msg {
  width: 100%;
  padding: 24px 20px 22px;
  border-radius: 24px 24px 24px 8px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(16, 38, 28, 0.05), 0 24px 48px -24px rgba(16, 38, 28, 0.22);
  color: var(--ink-2);
}
.pa-from {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
  font-size: 0.875rem; line-height: 1.3; color: var(--muted);
}
.pa-from b { font-weight: 600; color: var(--ink); }
.pa-avatar { width: 28px; height: 28px; flex: none; }
.pa-label { font: 500 1rem/1.4 var(--sans); color: var(--muted); }
.pa-sub { margin-top: 12px; font-size: 0.9375rem; line-height: 1.45; color: var(--muted); }
.pa-caption { margin-top: 12px; font-size: 0.875rem; line-height: 1.45; color: var(--muted); }

/* Gift: the private rule with an editable cap (a real field), then the live result */
.pa-ask { margin-top: 4px; font: 600 1.5rem/1.15 var(--sans); letter-spacing: -0.03em; color: var(--ink); }
/* Mobile: label on its own line, the field below it (left aligned); one row from 640px */
.pa-choice {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  margin-top: 14px; padding: 8px 8px 8px 12px;
  border-radius: 16px; background: var(--forest-tint);
}
.pa-rule {
  display: flex; align-items: center; gap: 6px; flex: 1 0 100%;
  font-size: 0.9375rem; font-weight: 500; line-height: 1.3; color: var(--forest-900);
}
.pa-rule abbr { text-decoration: none; }
.pa-rule .i { flex: none; width: 18px; height: 18px; color: var(--forest); }
.pa-cap {
  display: inline-flex; align-items: center; gap: 2px;
  height: 44px; padding: 0 10px 0 12px;
  border: 1.5px solid rgba(21, 87, 58, 0.35); border-radius: 12px;
  background: var(--surface); cursor: text;
  font: 600 1.25rem/1 var(--sans); color: var(--ink);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.pa-cap:hover { border-color: rgba(21, 87, 58, 0.6); }
.pa-cap:focus-within { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(21, 87, 58, 0.28); }
.pa-cap input {
  width: 3.4ch; min-width: 1.4ch; margin: 0; padding: 0;
  border: 0; background: transparent; color: inherit;
  font: inherit; font-variant-numeric: tabular-nums;
}
.pa-cap input:focus { outline: none; }
.pa-cap .i { width: 18px; height: 18px; margin-left: 6px; color: var(--forest); }
.pa-result { margin-top: 16px; font-size: 1.125rem; font-weight: 500; color: var(--ink-2); }
.pa-result b {
  margin-left: 4px;
  font-size: clamp(3rem, 2.2rem + 2.6vw, 4rem); line-height: 1; letter-spacing: -0.045em;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.pa-capped { font-size: 1rem; font-weight: 600; color: var(--rosa-ink); }
/* The dedication travels with the gift: a quiet quoted line under the result */
.pa-dedic { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2); }
.pa-dedic-label { display: block; margin-bottom: 2px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); }
.pa-dedic q { font-family: var(--serif); font-style: italic; font-size: 1.0625rem; color: var(--ink); quotes: "\00AB" "\00BB"; }

/* Coming soon: muted cards under a hairline, no mockups, nothing interactive. The title says
   "Próximamente" once for the whole list. Text is --muted / --ink-2 on the tinted section (AA). */
.pa-soon { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line-2); }
.pa-soon-title { font: 500 0.9375rem/1.3 var(--sans); letter-spacing: 0.02em; color: var(--muted); }
.pa-soon-list { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.pa-soon-item {
  min-width: 0; padding: 16px 18px;
  border: 1px solid var(--line-2); border-radius: var(--r);
  font-size: 0.9375rem; line-height: 1.45; color: var(--muted);
}
.pa-soon-top { margin-bottom: 6px; }
.pa-soon-top strong { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-2); }
.pa-soon-item p + p { max-width: 36rem; }

.pa-more { margin-top: 48px; font-size: 1rem; color: var(--muted); }
.pa-more a { font-weight: 600; white-space: nowrap; }

@media (min-width: 640px) {
  .pa-backdrop { padding: 32px; border-radius: 28px; }
  .pa-msg { max-width: 460px; padding: 28px 32px 28px; }
  .pa-ask { font-size: 1.625rem; }
  .pa-choice { flex-wrap: nowrap; }
  .pa-rule { flex: 1 1 auto; min-width: 0; }
  .pa-cap { flex: none; }
  .pa-soon-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

@media (min-width: 1024px) {
  /* The caption hangs under the stage, so the story column centers against the stage alone */
  .pa-panel { grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center; margin-top: 56px; padding-bottom: 36px; }
  .pa-copy { grid-column: 1 / 6; }
  /* Spans from column 6 so the gift card keeps its option row on one line at 1024px; still capped at 560px */
  .pa-visual { grid-column: 6 / 13; position: relative; justify-self: end; width: min(100%, 560px); }
  .pa-backdrop { min-height: 456px; }
  .pa-caption { position: absolute; top: 100%; left: 0; right: 0; text-align: center; }
  .pa-story { font-size: 1.1875rem; }
  .pa-fact { margin-top: 36px; font-size: 1.625rem; }
  .pa-soon { margin-top: 72px; }
}

/* Verified destination account (/como-funciona/ examples) */
.dest {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px;
  margin: 0; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
}
.dest-label { flex-basis: 100%; font-size: 0.8125rem; color: var(--muted); }
.dest-name { font-weight: 600; color: var(--ink); }

/* "Cuenta verificada" seal: forest shield with a cempasúchil check; .personal is the neutral counterpart */
.seal {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 26px; padding: 0 10px 0 6px;
  border: 1px solid rgba(21, 87, 58, 0.18); border-radius: 999px;
  background: linear-gradient(180deg, #F1F7F3, var(--forest-tint)); color: var(--forest);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  font: 600 0.75rem/1 var(--sans); letter-spacing: 0.01em; white-space: nowrap;
}
.seal svg { width: 15px; height: 15px; flex: none; }
.seal.personal { border-color: var(--line); background: var(--tint); color: var(--muted); box-shadow: none; }
.ex-dest { margin-top: 18px; background: var(--panel); }

/* ---------- Trust ---------- */

.trust-list { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; }
.trust-list li { padding-top: 20px; border-top: 1px solid var(--line-2); }
.trust-list strong { display: flex; align-items: center; gap: 8px; font-size: 1.125rem; letter-spacing: -0.01em; }
.trust-list strong .i { flex: none; width: 16px; height: 16px; stroke-width: 2; color: var(--forest); }
.trust-list li > span { display: block; margin-top: 6px; font-size: 1rem; color: var(--muted); }

/* ---------- FAQ ---------- */

.faq-wrap { display: grid; gap: 32px; }
.faq-head.hs-head { margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq { border-bottom: 1px solid var(--line-2); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: 1.125rem; font-weight: 500; letter-spacing: -0.01em; color: var(--ink);
  border-radius: 4px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  color: var(--muted);
  transition: transform 0.3s var(--ease);
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--forest); }
.faq p { max-width: 60ch; padding: 0 40px 24px 0; font-size: 1rem; line-height: 1.65; color: var(--muted); }
.faq::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size 0.35s var(--ease), content-visibility 0.35s allow-discrete;
}
.faq[open]::details-content { block-size: auto; }

/* ---------- Closing call to action ---------- */

.cta {
  position: relative; overflow: hidden;
  display: grid; gap: 32px; align-items: center;
  margin-top: var(--s-section); padding: 40px 20px 20px;
  border-radius: var(--r-lg);
  background: var(--forest-900);
  color: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-lg);
}
.cta-copy { padding: 0 4px; }
.cta .kicker { color: var(--gold); }
.cta .kicker::before { background: var(--gold); }
.cta h2 { color: #fff; font-size: clamp(2.75rem, 1.6rem + 4vw, 4.75rem); letter-spacing: -0.04em; }
.cta .intro { color: rgba(255, 255, 255, 0.8); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; padding: 0 4px 12px; }

/* ---------- Contact form (home) ---------- */

.header-actions { display: flex; align-items: center; gap: 20px; }
.header-link { display: none; font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); text-decoration: none; border-radius: var(--r-sm); }
.header-link:hover { color: var(--forest); }
.header-link:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--rosa); }
@media (min-width: 640px) { .header-link { display: inline; } }

.contact-wrap { display: grid; gap: 32px; align-items: start; }
.contact-copy.hs-head { margin-bottom: 0; }
.contact-form {
  display: grid; gap: 18px; padding: 24px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--shadow-md);
}
.field { display: grid; gap: 8px; }
.field label { font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px;
  font: 400 1rem/1.5 var(--sans); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--forest); box-shadow: 0 0 0 3px var(--forest-tint); }
.field [aria-invalid="true"] { border-color: var(--rosa); }
/* Honeypot: off-screen for people, still in the DOM for bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.contact-form .btn[disabled] { opacity: 0.7; cursor: progress; transform: none; }
.contact-status { min-height: 1.5em; font-size: 0.9375rem; font-weight: 500; color: var(--muted); }
.contact-status.is-ok { color: var(--forest); }
.contact-status.is-error { color: var(--rosa-ink); }
@media (min-width: 900px) {
  .contact-wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; }
  .contact-form { padding: 32px; }
}

/* ---------- Footer ---------- */

.site-footer { padding: 48px 0 56px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); }
.foot-proto { max-width: 70ch; margin-bottom: 12px; color: var(--ink-2); }
.foot-legal { margin-top: 8px; font-size: 0.8125rem; }
.site-footer a { color: var(--ink-2); }

/* ---------- /como-funciona/ ---------- */

.page-hero { padding-bottom: 72px; }
.page-hero .wrap { padding-top: 28px; }
.back { display: flex; align-items: center; width: fit-content; min-height: 32px; margin-bottom: 32px; font-size: 0.9375rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--forest); }
.page-hero .intro { max-width: 44rem; font-size: 1.125rem; }
/* In-page nav: a quiet row of text links separated by middle dots */
.toc { display: flex; flex-wrap: wrap; row-gap: 4px; margin: 32px 0 0; padding: 0; list-style: none; font-size: 1rem; }
.toc li:not(:last-child)::after { content: "·"; margin: 0 12px; color: var(--muted); }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover, .toc a:focus-visible { color: var(--ink); text-decoration: underline; }

/* Unboxed column under a hairline, shared by every /como-funciona/ grid (same as the home .step) */
.arch-node, .config, .level, .trust-item { padding-top: 20px; border-top: 1px solid var(--line-2); }
.arch-node strong, .config h3, .level h3, .trust-item h3 { display: block; margin-bottom: 8px; font-size: 1.25rem; letter-spacing: -0.015em; }
.arch-node p, .config > p, .trust-item > p { max-width: 40ch; font-size: 1rem; color: var(--muted); }

/* CoDi + Pey path: the hub is marked by a forest hairline and title, not a box */
.arch { display: grid; gap: 32px; }
.arch-node.hub { border-top-color: var(--forest); }
.arch-node.hub strong { color: var(--forest); }
.arch-arrow { display: none; }

/* Configuration: question in ink, the options as a plain muted line */
.config-grid { display: grid; gap: 32px; }
.config h3 { display: flex; align-items: center; gap: 8px; }
.config h3 .i { width: 16px; height: 16px; stroke-width: 2; color: var(--forest); }
.config > p { color: var(--ink-2); }
.config > .config-opts { margin-top: 8px; color: var(--muted); }

/* Templates */
.panel { display: grid; gap: 32px; margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--line-2); }
.hs-head + .panel { margin-top: 0; }
.panel h3 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.02em; }
.panel-for { margin: 8px 0 20px; font-size: 1rem; color: var(--muted); }
/* Small-dot bullets: template features and visibility levels */
.checks, .level ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 1rem; }
.checks li, .level ul li { position: relative; padding-left: 16px; }
.checks li::before, .level ul li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 5px; height: 5px; border-radius: 50%; background: var(--leaf); }
.variant { margin-top: 20px; font-size: 0.9375rem; color: var(--muted); }

.example-card { padding: var(--s-card); box-shadow: var(--shadow-md); }
.ex-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ex-title { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.ex-sub { margin: 4px 0 24px; font-size: 0.9375rem; color: var(--muted); }
.ex-goal { display: flex; align-items: baseline; justify-content: space-between; font-size: 0.9375rem; color: var(--muted); }
.ex-goal strong { font: 600 2.25rem/1 var(--sans); letter-spacing: -0.035em; color: var(--ink); }
.split { display: flex; gap: 2px; height: 8px; margin-top: 14px; border-radius: 8px; overflow: hidden; }
.split span:nth-child(1) { flex: 50; background: var(--leaf); }
.split span:nth-child(2) { flex: 30; background: var(--orange); }
.split span:nth-child(3) { flex: 20; background: var(--rosa); }
.split-legend { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 0.9375rem; }
.split-legend li { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px; }
.split-legend i { width: 10px; height: 10px; border-radius: 3px; }
.split-legend b, .ledger, .ex-total, .flow-row b, .reward-amt, .stat b, .ex-goal strong { font-variant-numeric: tabular-nums; }
.rewards { display: grid; gap: 8px; margin-top: 24px; }
.reward { display: flex; align-items: flex-start; gap: 14px; padding: 14px var(--s-panel); font-size: 0.9375rem; color: var(--ink); }
.reward-amt { font: 600 1.5rem/1 var(--sans); letter-spacing: -0.03em; color: var(--ink); }
.reward small { display: block; font-size: 0.8125rem; color: var(--muted); }
.slots { margin-top: 14px; font-size: 0.9375rem; color: var(--muted); }
.slots b { font-weight: 600; color: var(--forest); }
.disclaimer { display: flex; gap: 10px; margin-top: 16px; padding: 14px var(--s-panel); font-size: 0.875rem; color: var(--muted); }
.disclaimer svg { width: 18px; height: 18px; flex: none; color: var(--gold-ink); stroke-width: 1.75; }

.mini-chat { display: flex; flex-direction: column; gap: 6px; padding: 14px; background-color: var(--chat); }
.mini-chat .bubble { font-size: 0.875rem; }
.vote { margin-top: 24px; }
.vote-title { margin-bottom: 10px; font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.vote-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin-top: 12px; font-size: 0.9375rem; color: var(--ink); }
.vote-row .bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--tint); overflow: hidden; }
.vote-row .bar span { display: block; height: 100%; border-radius: 6px; background: var(--forest); }
.vote-row.lo .bar span { background: rgba(21, 87, 58, 0.35); }

.ledger { margin: 0; padding: 0; list-style: none; }
.ledger li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; color: var(--ink); }
.ledger small { display: block; font-size: 0.8125rem; color: var(--muted); }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font: 600 0.6875rem/1 var(--sans); letter-spacing: 0.02em; }
.a1 { background: var(--forest-tint); color: var(--forest); }
.a2 { background: var(--rosa-tint); color: var(--rosa-ink); }
.a3 { background: var(--gold-tint); color: var(--gold-ink); }
.a4 { background: #E8EEF4; color: #2E5577; }
.a5 { background: #F1ECE5; color: #6E5236; }
.a6 { background: #ECE8F2; color: #574A7E; }
.status { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; }
.s-paid { background: var(--forest-tint); color: var(--forest); }
.s-owes { background: var(--rosa-tint); color: var(--rosa-ink); }
.ex-total { display: flex; justify-content: space-between; margin-top: 16px; padding: 14px var(--s-panel); border-radius: var(--r); background: var(--rosa-tint); font-size: 1rem; font-weight: 600; color: var(--rosa-ink); }

/* Who sees what: the closing footnote sits at the foot of each column */
.levels { display: grid; gap: 40px; }
.level { display: flex; flex-direction: column; }
.level h3 { margin-bottom: 2px; }
.level-who { margin-bottom: 20px; font-size: 0.9375rem; color: var(--muted); }
.plus { display: block; margin-bottom: 12px; font-size: 0.9375rem; font-weight: 600; color: var(--forest); }
.not { margin-top: auto; padding-top: 20px; font-size: 0.9375rem; color: var(--muted); }
.rule { display: flex; gap: 10px; margin-top: 40px; font-size: 1rem; color: var(--muted); }
.rule .i { width: 16px; height: 16px; margin-top: 5px; stroke-width: 2; color: var(--forest); }

/* Suppliers, profiles, stages and destination accounts: each column carries one light example surface */
.trust-grid { display: grid; gap: 40px; }
.trust-item { display: flex; flex-direction: column; }
.flow, .profile { display: grid; gap: 10px; margin-top: 24px; padding: var(--s-panel); }
.flow > .ejemplo { justify-self: start; }
.trust-item > .dest { margin-top: 24px; }
.flow-row { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; color: var(--ink-2); }
.flow-row svg { width: 16px; height: 16px; flex: none; color: var(--forest); }
.flow-row b { margin-left: auto; }
.profile .ex-head { margin-bottom: 4px; }
.profile-head { display: flex; align-items: center; gap: 12px; }
.profile-name { font-size: 1rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.profile-name small { display: block; font-size: 0.8125rem; font-weight: 400; color: var(--muted); }
.profile-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-block: 10px; border-block: 1px solid var(--line); }
.stat b { display: block; font: 600 1.75rem/1 var(--sans); letter-spacing: -0.03em; }
.stat span { font-size: 0.8125rem; color: var(--muted); }
.review { margin: 6px 0 0; }
.review p { font-size: 0.9375rem; color: var(--ink-2); }
.stars { margin-right: 4px; color: var(--gold); letter-spacing: 1px; }
.review footer { margin-top: 6px; font-size: 0.8125rem; color: var(--muted); }
.stages { margin: 12px 0 0; padding: 0; list-style: none; }
.stages li { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding-bottom: 16px; font-size: 0.875rem; color: var(--muted); }
.stages li:not(:last-child)::before { content: ""; position: absolute; left: 11.5px; top: 28px; bottom: 4px; width: 1px; background: var(--line-2); }
.stages b { display: block; font-size: 0.9375rem; }
.stage-dot { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--surface); }
.stage-dot svg { width: 12px; height: 12px; }
.done .stage-dot { border-color: var(--forest); background: var(--forest); color: #fff; }
.now .stage-dot { border-color: var(--rosa); }
.now .stage-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rosa); }

.back-band { padding: 72px 20px; text-align: center; }
.back-band p { font-size: 1rem; }

/* ---------- Motion ---------- */

.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 80ms; }
.js .reveal.d2 { transition-delay: 160ms; }

/* ---------- Breakpoints ---------- */

@media (min-width: 480px) {
  .rewards { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  :root { --s-section: 112px; --s-head: 56px; --s-card: 28px; --s-panel: 20px; }
  body { font-size: 1.125rem; }
  .wrap { width: min(100% - 64px, 1200px); }
  .stack { padding: 40px 0; }
  .header-inner { height: 68px; }
  .header-cta.btn-primary {
    height: 40px; padding: 0 18px; font-size: 0.9375rem;
    background: var(--rosa); color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 2px rgba(16, 38, 28, 0.18);
  }
  .header-cta.btn-primary:hover { background: var(--rosa-ink); color: #fff; }
  .home .section:not(.pa-casos), .cf .section { padding-block: 112px; }
  .page-hero { padding-bottom: 112px; }
  .back-band { padding-block: 112px; }
  .config-grid { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .panel { margin-top: 64px; padding-top: 64px; }
  .home .cta { margin-top: 112px; }
  .hs-head { margin-bottom: 48px; }
  .faq-head.hs-head { margin-bottom: 0; }
  .faq-wrap { gap: 48px; }
  .steps, .setup { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .outcomes { grid-template-columns: 1fr 1fr; gap: 64px; }
  .trust-list { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .cta { padding: 64px 56px 56px; }
  .cta-copy { padding: 0; }
}

@media (min-width: 900px) {
  .arch { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start; gap: 24px; }
  /* Thin arrow, centered on the column titles */
  .arch-arrow {
    display: block; width: 40px; height: 12px; margin-top: 27px;
    fill: none; stroke: var(--muted); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round;
  }
}

@media (min-width: 1024px) {
  :root { --s-section: clamp(128px, 10vw, 152px); --s-head: 72px; --s-card: 32px; }
  .hero-grid { grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center; padding-top: 0; }
  .hero-copy { grid-column: 1 / 8; }
  .phone-stage { grid-column: 8 / 13; }
  .phone { width: 352px; }
  /* The hero fills the first viewport (capped on very tall screens), copy and phone centered together */
  .hero { display: grid; align-content: center; min-height: min(calc(100svh - 68px), 960px); padding-block: 40px 56px; }
  .lede { max-width: 36ch; margin-top: 28px; font-size: 1.25rem; line-height: 1.5; }
  .hero-actions { margin-top: 40px; column-gap: 16px; }
  .chat-body .bubble { font-size: 0.9375rem; }
  /* /como-funciona/ headers: wider measure on desktop so long headlines set in 2–3 lines */
  .cf .hs-head h2 { max-width: 22ch; }

  .faq-wrap { grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
  /* Wider column and a slightly smaller headline so it sets on two lines, no orphan */
  .faq-head { grid-column: 1 / 7; padding-top: 22px; padding-right: 24px; }
  .faq-head h2 { max-width: none; font-size: clamp(2.5rem, 0.5rem + 3.6vw, 3.5rem); }
  .faq-list { grid-column: 7 / 13; }
  .cta { grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: 72px 64px 64px; }
  .cta-copy { grid-column: 1 / 6; }
  .cta-actions { grid-column: 7 / 13; justify-self: start; padding: 0; }

  .config-grid, .levels, .trust-grid { grid-template-columns: repeat(3, 1fr); gap: 48px 40px; }
  .trust-grid.two { grid-template-columns: repeat(2, 1fr); }
  .panel { grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
  .panel > div { grid-column: 1 / 6; }
  .panel > .example-card { grid-column: 7 / 13; }
  .page-hero .wrap { padding-top: 48px; }
  .page-hero h1 { max-width: 14ch; }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .btn-primary:hover { transform: none; }
}
