/* Protótipo do funil — Desenho Humano (Duda). Disposable UI prototype v2.
   Mobile-first · pt-BR · warm practitioner palette (placeholder brand — see README §brand). */

:root {
  --bg: #f7f1e9;
  --bg-2: #efe4d6;
  --surface: #ffffff;
  --surface-2: #f5ece0;
  --ink: #2a2118;
  --ink-2: #4a3b2c;
  --muted: #8b7b68;
  --line: #e7dccd;
  --accent: #9c5b34;      /* terracotta */
  --accent-dk: #7c4526;
  --gold: #c58a3d;
  --ok: #3f7d54;
  --danger: #b3261e;
  --design: #c0392b;      /* bodygraph design layer */
  --personality: #2a2118; /* bodygraph personality layer */
  --both: #7a4fd0;
  --r: 16px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(43,33,24,.05), 0 14px 34px rgba(43,33,24,.07);
  --shadow-lg: 0 2px 4px rgba(43,33,24,.06), 0 28px 60px rgba(43,33,24,.12);
  --maxw: 1200px;        /* the site column — widened from 1080 (2026-10, to feel it) */
  --maxw-wide: 1360px;   /* rooms for the wide layouts (map / offer grid) */
  --hero-chrome: 84px;      /* sticky header height (tracks .site-head); +34px with the demo ribbon */
  --aside: 246px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --glyph-font: "DejaVu Sans", "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2", sans-serif; /* PLACEHOLDER — pending proper PNG glyphs */

  /* ---- Type scale (31 §7) -------------------------------------------------------------------
     Absorbs the 25 ad-hoc font-size values into named roles. These reproduce today's rendered sizes
     on purpose; the ONE visible change is --fs-h3 (16/17 -> 20), which was smaller than body text. */
  --fs-h1: clamp(30px, 4vw, 40px);
  --fs-h2: clamp(24px, 3vw, 30px);
  --fs-h3: 20px;
  --fs-lead: 18px;
  --fs-body: 17px;
  --fs-base: 16px;
  --fs-ui: 14px;
  --fs-small: 13px;
  --fs-label: 12px;
  --fs-micro: 11px;
  --fs-price: 40px;
  --fs-quote: 28px;

  /* ---- Spacing: 9 steps (31 §5) — replaces 24 ad-hoc values ---- */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 88px;

  /* Small-text colour. --muted (3.65:1) fails WCAG AA and is now ornament-only: rules, "x" marks. */
  --ink-3: #6f5f4c;   /* 5.48:1 on --bg */
}
html.demo { --hero-chrome: 118px; }   /* demo ribbon (+34px) is shown by default; ?demo=0 hides it */
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: var(--fs-base)/1.62 var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 520px at 78% -140px, rgba(197,138,61,.16), transparent 62%),
    radial-gradient(900px 420px at -120px 60px, rgba(156,91,52,.10), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; font-family: var(--serif); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
.muted { color: var(--ink-3); }
.serif { font-family: var(--serif); letter-spacing: -.015em; }
.small { font-size: var(--fs-small); }
.center { text-align: center; }
.lead { font-size: var(--fs-body); color: var(--ink-2); }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: var(--s3) 0; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.wrap.wide { max-width: var(--maxw-wide); }
main { padding: var(--s5) 0 104px; }
.stack { display: grid; gap: 18px; }
.stack-sm { display: grid; gap: 10px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.between { display: flex; gap: 12px; justify-content: space-between; align-items: center; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s5); box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card.soft { background: var(--surface-2); box-shadow: none; }

/* ---------- header / footer ---------- */
.site-head { background: rgba(247,241,233,.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.site-head .wrap { display: flex; align-items: center; gap: 20px; height: 84px; }
.logo { font-weight: 800; letter-spacing: -.02em; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.logo .dot { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(140deg, var(--gold), var(--accent)); color: #fff; display: grid; place-items: center; font-size: var(--fs-micro); font-weight: 800; }
.site-head .spacer { flex: 1; }
.site-head nav a { color: var(--ink-3); font-weight: 500; margin-left: var(--s4); display: inline-flex; align-items: center; min-height: 44px; }
.site-foot { border-top: 1px solid var(--line); background: rgba(255,255,255,.5); padding: var(--s6) 0; margin-top: var(--s7); }
.site-foot .row { font-size: var(--fs-ui); }
.site-foot .door { margin-top: var(--s3); font-size: var(--fs-ui); }

/* ---------- buttons / inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); font: inherit; font-weight: 700; min-height: 44px;
  border: 0; border-radius: var(--r-sm); padding: var(--s3) var(--s5); cursor: pointer; background: linear-gradient(180deg, var(--accent), var(--accent-dk)); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 8px 20px rgba(124,69,38,.22); transition: transform .06s ease, box-shadow .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 12px 26px rgba(124,69,38,.28); }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.gold { background: linear-gradient(180deg, #d29a4b, var(--gold)); color: #2b1d05; box-shadow: 0 8px 20px rgba(197,138,61,.3); }
.btn.lg { padding: var(--s4) var(--s5); font-size: var(--fs-body); }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn .arrow { font-weight: 400; }

.field { display: block; margin: 0 0 var(--s3); }
.field > .lbl { display: block; font-size: var(--fs-small); font-weight: 600; color: var(--ink); margin-bottom: var(--s1); }
.field .hint { display: block; font-size: var(--fs-small); color: var(--ink-3); margin-top: var(--s1); }
input, select, textarea { width: 100%; padding: var(--s3) var(--s3); border: 1px solid var(--line); border-radius: var(--r-sm);
  font: inherit; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
input.invalid, .invalid input { border-color: var(--danger); background: #fff7f6; }

/* pt-BR date picker — calendar icon → popover */
.datepick { position: relative; }
.datepick > input { padding-right: 40px; }
.dp-btn { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px;
  display: grid; place-items: center; border: 0; background: none; color: var(--ink-3); cursor: pointer; border-radius: 8px; }
.dp-btn:hover { color: var(--accent); background: var(--surface-2); }
.dp-pop { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; width: 268px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: 0 12px 34px rgba(60,40,20,.16); padding: var(--s2); }
.dp-head { display: flex; align-items: center; gap: 6px; margin-bottom: var(--s2); }
.dp-head select { width: auto; flex: 1; padding: var(--s1) var(--s2); font-size: var(--fs-small); }
.dp-nav { border: 1px solid var(--line); background: none; width: 30px; height: 30px; border-radius: 8px; cursor: pointer;
  color: var(--ink-2); font-size: var(--fs-base); line-height: 1; flex: none; }
.dp-nav:hover { border-color: var(--accent); color: var(--accent); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-wd { text-align: center; font-size: var(--fs-micro); color: var(--ink-3); font-weight: 600; padding: var(--s1) 0; }
.dp-day { border: 0; background: none; padding: var(--s2) 0; border-radius: 8px; cursor: pointer; font: inherit; font-size: var(--fs-small); color: var(--ink); }
.dp-day:hover { background: var(--surface-2); }
.dp-sel { background: var(--accent); color: #fff; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; gap: 14px 0; } }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); color: var(--accent-dk);
  background: #f3e6da; border: 1px solid #e7d3c0; padding: var(--s1) var(--s2); border-radius: 999px; }
.badge { display: inline-block; font-size: var(--fs-micro); font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px; background: #f0e6d8; color: var(--accent-dk); }
.badge.ok { background: #e4f1e8; color: var(--ok); }
.badge.demo { background: #efe7fb; color: #5b3fa0; }

/* ---------- offer (C1) ---------- */
.hero { padding: var(--s1) 0 var(--s1); max-width: 900px; }
.hero .kicker { font-size: var(--fs-small); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 800; }
.hero h1 { font-size: var(--fs-h1); margin-top: var(--s3); }
.hero .promise { font-size: var(--fs-h3); color: var(--ink-2); }
.offer-layout { display: grid; gap: 22px; margin-top: var(--s5); }
@media (min-width: 900px) { .offer-layout { grid-template-columns: minmax(0, 1.55fr) minmax(320px, .85fr); align-items: start; } }
.offer-main { min-width: 0; }
.offer-buy { min-width: 0; }
@media (min-width: 900px) { .offer-buy { position: sticky; top: 104px; } }
/* Cross-sell sits outside .offer-layout entirely, next to the "voltar" link. Inside the grid the sticky buy rail
   could reach down into it, and at full scroll the two overlapped by ~105px - the card landing under the CTA it
   was moved away from. Outside, the rail is confined to the grid and releases above it. 22px matches the grid
   gap so the rhythm is unchanged. */
.offer-related { margin-top: 22px; }
.buy-card { box-shadow: var(--shadow-lg); border-color: #e0cdb4; }
.price-row { display: flex; align-items: baseline; gap: 10px; }
.price { font-size: var(--fs-price); font-weight: 700; font-family: var(--serif); }
ul.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
ul.ticks li { padding-left: var(--s5); position: relative; }
ul.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 800; }
ul.dots { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
ul.dots li { padding-left: var(--s5); position: relative; }
ul.dots li::before { content: "◆"; position: absolute; left: 0; color: var(--gold); font-size: var(--fs-micro); top: 5px; }
.trust { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(140deg, var(--gold), var(--accent)); color: #fff; display: grid; place-items: center; font-weight: 800; object-fit: cover; }   /* object-fit: an <img class="avatar"> is the founder's portrait, a <div> was the monogram */
.faq { max-width: 66ch; }   /* 74ch ran ~87 chars/line; 66ch is the readable measure (31 §3.7) */
.faq details { border-bottom: 1px solid var(--line); padding: var(--s3) 0; }
.faq details:last-child { border-bottom: 0; }
.faq details summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.faq details p { margin: var(--s2) 0 0; color: var(--ink-2); }
.section-title { font-size: var(--fs-small); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 800; margin: 0 0 var(--s3); }

/* ---------- steps / summary ---------- */
.steps { display: flex; gap: 8px; flex-wrap: wrap; font-size: var(--fs-small); color: var(--ink-3); margin-bottom: var(--s2); }
.steps .on { color: var(--accent-dk); font-weight: 700; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: var(--s2) 0; border-bottom: 1px dashed var(--line); }
.summary-row:last-child { border-bottom: 0; }
.summary-row .total { font-weight: 700; font-size: var(--fs-h3); font-family: var(--serif); }
.pay-opt { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--s3); cursor: pointer; background: #fff; }
.pay-opt.on { border-color: var(--accent); background: #fdf6ef; box-shadow: 0 0 0 1px var(--accent) inset; }
.pay-opt .glyph { font-size: var(--fs-h3); }
.radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.pay-opt.on .radio { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 45%, #fff 46%); }

/* ---------- timeline (C4) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { padding: 0 0 var(--s4) var(--s6); position: relative; }
.timeline li::before { content: ""; position: absolute; left: 10px; top: 4px; bottom: -4px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li .node { position: absolute; left: 2px; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; font-size: var(--fs-micro); color: #fff; }
.timeline li.on .node { background: var(--ok); border-color: var(--ok); }
.timeline li .t { font-weight: 700; }
.timeline li .d { font-size: var(--fs-small); color: var(--ink-3); }

/* ---------- city picker ---------- */
.combo { position: relative; }
.combo .menu { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-lg); max-height: 260px; overflow: auto; }
.combo .menu[hidden] { display: none; }
.combo .menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: var(--s3) var(--s3);
  font: inherit; cursor: pointer; border-bottom: 1px solid var(--surface-2); }
.combo .menu button:hover, .combo .menu button:focus { background: var(--surface-2); }
.combo .menu .tz { color: var(--ink-3); font-size: var(--fs-small); }
.resolved { display: flex; gap: 8px; align-items: center; background: #eef6f0; border: 1px solid #cfe6d6;
  border-radius: var(--r-sm); padding: var(--s2) var(--s3); font-size: var(--fs-small); color: var(--ok); margin-top: var(--s2); }

/* ---------- bodygraph chart card ---------- */
.chart-card { max-width: 780px; margin: var(--s4) auto 0; }
.hd-chart {
  background: #fff;
  padding: 14px 16px;
  display: grid; gap: 8px 18px; align-items: stretch; justify-content: center;
  grid-template-columns: minmax(72px, 96px) minmax(0, 1fr) minmax(72px, 96px);
}
/* (report-view chart keeps its original size/position — gate names now sit BELOW each planet) */
.chart-center { position: relative; z-index: 1; min-width: 0; height: 100%; }
/* Duda's report view: grow the FIGURE (not the box) so it tucks under the side columns — the Variables badges,
   anchored to the (unchanged) centre box, stay clear of the columns. */
.report-data .chart-center svg { width: 118%; max-width: none; margin-left: -9%; }
.chart-center svg { display: block; width: 100%; height: 100%; }

/* the four Variables drawn INSIDE the chart (part of the figure) — top-left & top-right, no panel */
.chart-center .var-badge { position: absolute; z-index: 3; background: none; border: 0; box-shadow: none; padding: 0; max-width: 46%; }
.chart-center .var-badge.tl { top: 12px; left: 8px; }
.chart-center .var-badge.bl { top: 60px; left: 8px; }
.chart-center .var-badge.tr { top: 12px; right: 8px; text-align: right; }
.chart-center .var-badge.br { top: 60px; right: 8px; text-align: right; }
.var-badge .vb-top { display: flex; align-items: center; gap: 6px; }
.var-badge.tr .vb-top, .var-badge.br .vb-top { flex-direction: row-reverse; }
.var-badge .vb-arrow { color: var(--accent-dk); font-size: var(--fs-ui); line-height: 1; }
.var-badge .vb-lbl { font-size: var(--fs-micro); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 800; }
.var-badge .vb-val { font-weight: 700; font-size: var(--fs-ui); line-height: 1.2; color: var(--ink); }
.var-badge .vb-num { font-size: var(--fs-micro); color: var(--ink-3); font-variant-numeric: tabular-nums; }

.act-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; align-content: start; min-width: 0; overflow: hidden; position: relative; z-index: 2; }
.act-head { font-weight: 800; font-size: var(--fs-label); letter-spacing: .02em; margin-bottom: var(--s1); display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; }
.act-col.personality .act-head { align-items: flex-end; text-align: right; }
.act-head em { font-style: normal; font-weight: 500; font-size: var(--fs-micro); color: var(--ink-3); }
.act-col.design .act-head { color: var(--design); }
.act-col.personality .act-head { color: var(--personality); }
.act { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1px 5px; padding: var(--s1) var(--s1); min-width: 0; }
.act .pgl { order: 1; flex: 0 0 auto; width: 18px; text-align: center; font-size: var(--fs-body); font-family: var(--glyph-font); }
.pglyph { font-family: var(--glyph-font); }
.act .gln { order: 2; flex: 0 0 auto; font-variant-numeric: tabular-nums; font-weight: 800; font-size: var(--fs-ui); }
.act .gnm { order: 5; flex: 0 0 100%; font-size: var(--fs-micro); line-height: 1.15; color: var(--ink-3); }
/* design: planet on the outside (left), gate.line + arrow toward the chart (right) */
.act-col.design .act .gln { color: var(--design); margin-left: auto; }
/* personality: mirrored — arrow + gate.line toward the chart (left), planet on the outside (right) */
.act-col.personality .act .qx { order: 0; }
.act-col.personality .act .gln { color: var(--personality); order: 1; }
.act-col.personality .act .gnm { order: 5; text-align: right; }
.act-col.personality .act .pgl { order: 3; margin-left: auto; }
.act.both .gln { color: var(--both); }

@media (max-width: 760px) {
  .hd-chart { grid-template-columns: 1fr 1fr; }
  .chart-center, .report-data .chart-center { grid-column: 1 / -1; order: -1; height: auto; width: auto; margin-left: 0; }
  .chart-center svg, .report-data .chart-center svg { width: 100%; height: auto; max-width: 420px; margin: 0 auto; }
}

.chart-key { margin: var(--s3) 0 0; text-align: center; line-height: 1.7; }

/* ---------- map page ---------- */
.map-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.map-head h1 { margin: 0; }
.map-head-badges { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: var(--s1); }
.map-grid { display: grid; gap: 20px; margin-top: var(--s4); }
@media (min-width: 900px) { .map-grid { grid-template-columns: minmax(0, 1.3fr) minmax(320px, .9fr); align-items: start; } }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fact { background: var(--surface-2); border-radius: var(--r-sm); padding: var(--s3) var(--s3); }
.fact .k { font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.fact .v { font-weight: 700; }
.taglist { display: flex; flex-wrap: wrap; gap: 6px; }
.taglist .tg { font-size: var(--fs-small); border: 1px solid var(--line); border-radius: 999px; padding: var(--s1) var(--s2); background: #fff; color: var(--ink-3); }
.taglist .tg.on { background: linear-gradient(180deg, var(--accent), var(--accent-dk)); color: #fff; border-color: var(--accent); }
.offer-mini { border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--s4); background: var(--surface); margin-top: var(--s3); }
.gate-locked { text-align: center; padding: var(--s5) var(--s4); }

/* Exaltation ▲ / Detriment ▼ marker, beside gate.line (spec: knowledge/_exaltation_detriment.md §7) */
.act .qx { order: 3; flex: 0 0 auto; width: 10px; text-align: center; font-size: var(--fs-micro); line-height: 1; vertical-align: 1px; }
.act .qx.exalted { color: var(--ok); }
.act .qx.detriment { color: var(--danger); }

/* ================= Public landing page ================= */
.site-head .lp-nav { display: none; }

/* Below 900px the site had NO navigation at all — only a logo and a button. The links become a
   second, discreet row under the header (31 §7.2): small caps, scrollable if the 5 items don't fit.
   The header grows to two rows there, so --hero-chrome grows with it (it drives the anchor offsets). */
@media (max-width: 899px) {
  :root { --hero-chrome: 88px; }   /* measured: the two-row header is 87px */
  html.demo { --hero-chrome: 122px; }
  .site-head .wrap { flex-wrap: wrap; height: auto; min-height: 64px; padding: var(--s1) 0; row-gap: var(--s1); }
  .site-head .lp-nav { display: flex; order: 3; flex: 0 0 100%; gap: var(--s4);
    overflow-x: auto; scrollbar-width: none; }
  .site-head .lp-nav::-webkit-scrollbar { display: none; }
  .site-head .lp-nav a { color: var(--ink-3); font-weight: 700; font-size: var(--fs-label);
    letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
    display: inline-flex; align-items: center; min-height: 32px; }
  /* .band pins 78px, which is shorter than this two-row header — anchor targets would land under it */
  .band { scroll-margin-top: calc(var(--hero-chrome) + 4px); }
}
@media (min-width: 900px) {
  .site-head .lp-nav { display: flex; gap: 20px; margin-left: var(--s5); }
  .site-head .lp-nav a { color: var(--ink-3); font-weight: 600; }
  .site-head .lp-nav a:hover { color: var(--ink); text-decoration: none; }
}
.lp-demo { display: none; }
@media (min-width: 620px) { .lp-demo { display: inline-flex; } }
.site-head .btn { padding: var(--s2) var(--s4); font-size: var(--fs-small); }

.landing { display: block; padding: 0; }
.band { padding: var(--s8) 0; scroll-margin-top: 78px; }
/* F6: the free-map form must land BELOW the sticky header, not under it */
#hd-hero-form { scroll-margin-top: calc(var(--hero-chrome) + 16px); }
.band + .band { border-top: 1px solid var(--line); }
.band.tint { background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,.25)); }

/* hero */
.landing-hero { position: relative; overflow: hidden; padding: var(--s5) 0; display: grid; align-content: safe center; }
@media (min-width: 900px) { .landing-hero { min-height: calc(100vh - var(--hero-chrome)); min-height: calc(100svh - var(--hero-chrome)); } }
.landing-hero-in { position: relative; z-index: 1; display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .landing-hero-in { grid-template-columns: 1.05fr .95fr; gap: 40px; } }
.lh-form { min-width: 0; }
.landing-hero .kicker { font-size: var(--fs-small); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 800; }
.landing-hero h1 { font-size: var(--fs-h1); margin: var(--s2) 0 var(--s3); }
.landing-hero .lead { font-size: var(--fs-body); color: var(--ink-2); max-width: 34em; }
.lh-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: var(--s2); }
/* faint bodygraph behind the hero copy — no card, no border */
.hero-watermark { position: absolute; top: 54%; left: -70px; transform: translateY(-50%); width: 600px; max-width: 60vw; opacity: .07; pointer-events: none; z-index: 0; }
.hero-watermark svg { width: 100%; height: auto; display: block; }
@media (max-width: 900px) { .hero-watermark { display: none; } }

/* hero form — the free-map invitation, inline */
.hero-form { margin-top: var(--s4); max-width: 560px; display: grid; gap: 10px; }
.hero-form .field { margin: 0; }
.hero-form input { padding: var(--s2) var(--s3); }
.hero-form .btn.lg { padding: var(--s3) var(--s5); font-size: var(--fs-base); }
.hero-form .hf-head { margin-bottom: 0; }
.hero-form .hf-title { font-family: var(--serif); font-size: var(--fs-h3); margin: 0; }

/* flatter public pages — fewer panels/borders (04); forms keep a light surface, no border */
.landing .card, .flat .card { background: transparent; border: 0; box-shadow: none; }
.landing .hero-form { background: var(--surface); }
.buy-trust { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; gap: 6px; }
.buy-trust li { position: relative; padding-left: var(--s4); font-size: var(--fs-small); color: var(--ink-3); }
.buy-trust li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }

/* trust strip */
.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px;
  padding: 16px 20px; background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: var(--fs-ui); font-weight: 600; color: var(--ink-2); }

/* section head */
.sec-head { max-width: 720px; margin: 0 0 var(--s6); }
.sec-head .eyebrow { font-size: var(--fs-small); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 800; }
.sec-head h2 { font-size: var(--fs-h2); margin: var(--s3) 0 var(--s2); }
.sec-head .lead { font-size: var(--fs-lead); color: var(--ink-2); margin: 0; }
.prose { max-width: 720px; }
.prose p { font-size: var(--fs-body); }

/* grids + cards */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 18px; }
@media (min-width: 680px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 680px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.benefit .b-ic { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(140deg, var(--gold), var(--accent));
  color: #fff; display: grid; place-items: center; margin-bottom: var(--s3); font-size: var(--fs-base); }

/* steps */
.steps-flow { display: grid; gap: 20px; }
@media (min-width: 880px) { .steps-flow { grid-template-columns: repeat(4, 1fr); } }
.step .step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; margin-bottom: var(--s3); }

/* report cards */
.report-card { display: flex; flex-direction: column; gap: var(--s2); }
/* The card is an <a>, so its <h3> inherited `a { color: var(--accent) }` — never a design choice (defect 3). */
.report-card h3 { color: var(--ink); }
.report-card .rc-kicker { font-size: var(--fs-label); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 800; }
.report-card .rc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: var(--s3); }
.report-card .rc-price { font-family: var(--serif); font-size: var(--fs-lead); font-weight: 700; color: var(--ink-2); }
.report-card .rc-trust { font-size: var(--fs-small); color: var(--ink-2); margin: var(--s2) 0 0; }

/* The landing's card reset above (.landing .card → flat) is for *static* panels. The report cards
   are the one *clickable* block on the landing, so they need a visible affordance — otherwise they
   read as plain text. Restore a real card surface and add a clear hover/focus cue. */
.landing .card.report-card, .flat .card.report-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .18s ease, border-color .12s ease;
}
.landing .card.report-card:hover, .flat .card.report-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.landing .card.report-card:focus-visible, .flat .card.report-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
/* the card's CTA reads as a pill, not body text */
.report-card .rc-foot .link-more {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px; font-size: var(--fs-small); white-space: nowrap;
  background: #f3e6da; border: 1px solid #e7d3c0; color: var(--accent-dk);
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.report-card:hover .rc-foot .link-more { background: var(--accent); border-color: var(--accent); color: #fff; }

/* quotes */
.quote-card { margin: 0; }
.quote-card blockquote { margin: 0; font-family: var(--serif); font-size: var(--fs-lead); color: var(--ink-2); }
.quote-card figcaption { margin-top: var(--s3); font-size: var(--fs-small); color: var(--ink-3); }

/* quieter, spiritual signals */
.link-more { color: var(--accent-dk); font-weight: 700; white-space: nowrap; }
.link-more:hover { text-decoration: underline; }
.lh-cta { align-items: center; }
.pullquote { padding: var(--s8) 0; text-align: center; border-top: 1px solid var(--line); }
.pullquote blockquote { margin: 0 auto; max-width: 780px; font-family: var(--serif); font-size: var(--fs-quote); line-height: 1.4; color: var(--ink); }
.reveal { border-color: #e8d7bd; }
.reveal h3 { margin: 0; font-size: var(--fs-h3); }
.audience ul { list-style: none; margin: 0; padding: 0; max-width: 780px; }
.audience li { position: relative; padding-left: var(--s5); margin-bottom: var(--s3); font-size: var(--fs-body); color: var(--ink-2); }
.audience li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }
.audience .not-for li::before { content: "×"; color: var(--muted); }

/* founder */
.founder { display: grid; gap: 26px; align-items: center; }
@media (min-width: 820px) { .founder { grid-template-columns: 240px 1fr; } }   /* the column was exactly the old 150px portrait + margins; 240 gives the 220px frame some air */
.founder-art { text-align: center; }
.avatar.lg { width: 220px; height: 220px; font-size: 46px; margin: 0 auto; }
.founder-copy p { font-size: var(--fs-body); }

/* final CTA band */
.cta-band { padding: var(--s8) 0; text-align: center;
  background: radial-gradient(760px 340px at 50% -20%, rgba(197,138,61,.20), transparent 62%), var(--surface-2);
  border-top: 1px solid var(--line); }
.cta-band h2 { font-size: var(--fs-h2); }
.cta-band .lead { color: var(--ink-2); }
.cta-band .row { justify-content: center; margin-top: var(--s4); }

/* demo affordances row (kept visible in the prototype) */

/* full footer */
.foot-grid { display: grid; gap: 26px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.foot-h { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); font-weight: 800; margin: 0 0 var(--s2); }
.foot-brand .logo { margin-bottom: var(--s1); }
.foot-col a { display: block; color: var(--ink-2); font-size: var(--fs-ui); margin-bottom: var(--s2); }
.foot-col a:hover { color: var(--accent); text-decoration: none; }

/* ===== HD Site additions (not in the prototype stylesheet) ===== */
.field.placefield { position: relative; }
.suggest { list-style: none; margin: var(--s1) 0 0; padding: var(--s1); position: absolute; z-index: 20; left: 0; right: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
  max-height: 240px; overflow: auto; }
.suggest li { padding: var(--s2) var(--s2); border-radius: 8px; cursor: pointer; }
.suggest li.suggest-msg { color: var(--ink-3); cursor: default; }

.suggest li:hover { background: var(--surface-2); }
.consent { display: flex; gap: 8px; align-items: flex-start; margin: var(--s3) 0 0; font-size: var(--fs-small); color: var(--ink-3); }
.consent input { margin-top: var(--s1); }
.err { color: var(--danger); min-height: 1.1em; margin: var(--s2) 0 0; }
.hd-block { margin-top: var(--s4); }
.hd-block h3, .hd-about h3 { font-family: var(--font); font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin: 0 0 var(--s2); }
.hd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hd-about { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); }

/* Inline icons (drawn in site.js) — decorative, always beside a text label. No icon font is loaded. */
.ico { width: 1.05em; height: 1.05em; flex: none; vertical-align: -0.16em; margin-right: var(--s1); }
.ico-link { display: inline-flex; align-items: center; }
.ico-link .ico { margin-right: var(--s2); }

/* the real brand mark (top of the reference art) + the name as crisp text */
.brandname-img { height: 72px; width: auto; display: block; }
.site-foot .brandname-img { height: 80px; }

/* phones: a slightly shorter bar so the logo doesn't eat the screen */
@media (max-width: 560px) {
  /* Phones, one row with the full CTA label. Room for the logo is reclaimed from the page gutter
     (24→14px) and a tighter button (11.5px, narrower padding), so the lockup can be ~25% larger than
     before while still never overflowing: the width is derived from what the row actually leaves. */
  .wrap { padding: 0 14px; }
  .site-head .wrap { min-height: 64px; height: auto; gap: 8px; padding: 0; row-gap: var(--s1); }
  .brandname-img { height: auto; width: clamp(110px, calc(100vw - 184px), 176px); min-width: 0; }
  /* The footer's own selector (.site-foot .brandname-img, specificity 0,2,0) outranks the line above,
     so on phones BOTH applied: height:80px won from the base rule while the width clamp won here —
     two fixed dimensions, aspect ratio gone, logo squashed. Restate height here so it scales.
     The footer stacks to a single column below 760px, so it can use a wider box than the header, which
     has to leave room for the CTA button. */
  .site-foot .brandname-img { height: auto; width: min(200px, 58vw); }
  .site-head .btn { padding: var(--s3) var(--s3); font-size: var(--fs-micro); white-space: nowrap; flex: none; }
}

/* ── Mobile first-view fixes (`38` §2, F1 + F2). Measured at 390 and 320; desktop untouched. ─────────────── */
@media (max-width: 560px) {
  /* F1 — the header sat flush to the bezel and the nav row double-spaced itself: 16px `margin-left` on every
     link PLUS a 16px flex `gap` = a 32px pitch, which pushed 99px (at 390) and 169px (at 320) of the row off
     screen with nothing to signal it. Restoring the gutter costs nothing because the margin below removes more
     than the padding adds. */
  .site-head .wrap { padding: var(--s1) 14px; }
  .site-head nav a { margin-left: 0; }
  .site-head .lp-nav { gap: 12px; }

  /* F2 — the two hero links sat directly above the form and cost 63.8px plus a 24px grid gap of the fold, which
     is why the submit button began below it. Both destinations stay reachable: the header CTA, the footer, and
     the #o-que-e band itself. */
  .lh-cta { display: none; }
  .hero-form { gap: 8px; }
}

/* #3 / F5 — on a phone the buy card sat below six content cards, ~3.6 screens down. `position: sticky` cannot
   fix that here: below 900px .offer-layout is a single column, so .offer-buy's grid area is auto-height and has
   no room to travel. Reordering is the fix that works in this layout — the hero still states the promise, and
   the buy card carries its own short pitch. CSS-only, one line, trivially revertible. */
@media (max-width: 899px) {
  .offer-buy { order: -1; }
}

/* Birth data remembered from a previous visit — the free map offers it instead of asking again. Deliberately
   quiet: it is an offer, not a feature to advertise. */
.saved-maps { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin: 0 0 14px; }
.saved-maps .sm-lbl { font-size: 13px; color: var(--ink-3); }
.saved-maps .sm-field { margin: 0; }
.saved-maps select { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: var(--surface); color: var(--ink); min-width: 240px; }
.checkline { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--ink-3);
  margin: 2px 0 14px; line-height: 1.45; }
.checkline input { margin-top: 2px; accent-color: var(--accent); }
.sm-forget { font: inherit; font-size: 13px; border: 0; background: none; color: var(--ink-3);
  text-decoration: underline; cursor: pointer; padding: 4px 2px; }
.sm-forget:hover { color: var(--accent); }


/* ---- the sale bar (`42`) — server-driven: it exists only while a coupon row is live and labelled ---- */
.promo-bar { background: var(--accent-dk); color: var(--bg); font-size: 13.5px; }
.promo-bar .wrap { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 9px 16px; }
.promo-bar strong { font-weight: 600; }
.promo-bar .promo-end { opacity: .85; }
.promo-bar .promo-code { background: rgba(255,255,255,.14); border-radius: 6px; padding: 2px 8px; letter-spacing: .02em; }
#coupon-msg { display: block; margin-top: 4px; }
#intake-total s, #offer-promo s { opacity: .7; }


/* ================= The wait screen =================
   The free map waits on PythonAnywhere (the engine + the Variables are not instant) and the intake waits on
   D1 + Mercado Pago. This is the answer to that wait: the figure the person is waiting for, drawing itself,
   with copy that says what is happening.

   ⚠️ The animation is HONEST. It loops and never shows a percentage, because the page cannot see the
   server's progress and a fake bar that stops at 90% is worse than no bar at all. Never wire real progress
   into it — if that ever becomes possible, it is a different component, not a tweak to this one. */
/* ⚠️ The veil is deliberately SEE-THROUGH (Duda's call, 2026-11-17): the page has to stay behind the figure,
   so the wait reads as "this same page is still working", not as a page change to a loading screen. The
   legibility it loses goes on the CARD instead — a soft glass panel behind the figure and the copy. */
.wait-veil {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: var(--s5);
  background: rgba(247, 241, 233, .52);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  animation: wait-fade .22s ease both;
}
@keyframes wait-fade { from { opacity: 0; } to { opacity: 1; } }
.wait-veil:focus { outline: none; }
.wait-card {
  width: min(360px, 100%); text-align: center;
  background: rgba(255, 255, 255, .72); border: 1px solid rgba(231, 220, 205, .9);
  border-radius: var(--r); box-shadow: var(--shadow-lg);
  padding: var(--s4) var(--s4) var(--s5);
}

/* The figure — the site's OWN artwork (bodygraph-geometry.js), inserted TWICE: `.wait-base` is the empty map,
   `.wait-fill` the same map already full. A masked band of colour enters at the bottom, crosses the figure
   and leaves through the TOP, then loops — a glass filling, not gates popping on one by one.
   ⚠️ The reveal is CSS-only so the fill can never drift out of register with the figure under it.
   Pattern chosen by Duda out of eight variants (2026-11-17). HONESTY RULE still applies: no percentage. */
.wait-mini { position: relative; height: clamp(200px, 52vw, 240px); margin: 0 auto var(--s3); }
.wait-mini svg { display: block; width: 100%; height: 100%; }
/* ⚠️ BOTH copies are absolutely positioned inside `.wait-mini`. In normal flow the SVG's `height: 100%`
   resolves against an auto-height parent, so it falls back to its intrinsic ratio and renders ~1.6x taller
   than the box — the empty map would sit bigger than the fill on top of it. Measured, not guessed: 308x330
   against 308x203. Absolute on both makes them the same box, and the band splits one figure. */
.wait-base, .wait-fill { position: absolute; inset: 0; }
/* `Bodygraph.bind()` writes fills as INLINE styles, so the full copy needs !important to stay terracotta. */
.wait-fill [data-layer="gate"], .wait-fill [data-layer="half"], .wait-fill [data-layer="center"] {
  fill: var(--accent) !important;
}
.wait-fill [data-layer="channel"] { fill: none !important; stroke: var(--accent) !important; }
.wait-fill [data-layer="gate-number"] { fill: #fff !important; }

/* The band. The mask image is THREE boxes tall, so it has two boxes of slide room: one to come in, one to
   leave. The opaque band inside it is exactly one box tall (33.3%..66.7% of the image), which is what makes
   slide 0% empty, 50% full and 100% empty again; the 3% ramps are the soft surface.
   `linear` on purpose — an ease at the top made the level look like it stopped and restarted, and a hold
   when full made the loop read as "fill, then undo". It never moves backwards. */
.wait-fill {
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, transparent 0%, transparent 31.5%, #000 34.5%, #000 65.5%, transparent 68.5%, transparent 100%);
  mask-image: linear-gradient(to top, transparent 0%, transparent 31.5%, #000 34.5%, #000 65.5%, transparent 68.5%, transparent 100%);
  -webkit-mask-size: 100% 300%; mask-size: 100% 300%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation: wait-pass 6s linear infinite;
}
@keyframes wait-pass {
  0%   { -webkit-mask-position: 50% 0%;   mask-position: 50% 0%; }
  50%  { -webkit-mask-position: 50% 50%;  mask-position: 50% 50%; }
  100% { -webkit-mask-position: 50% 100%; mask-position: 50% 100%; }
}

.wait-title { font-size: var(--fs-h3); margin: 0 0 6px; }
.wait-copy { font-size: var(--fs-small); color: var(--ink-3); margin: 0; min-height: 2.8em; }
.wait-line { display: inline-block; }
.wait-line.in { animation: wait-line .32s ease both; }
@keyframes wait-line { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.wait-late { font-size: var(--fs-micro); color: var(--ink-3); margin: var(--s2) 0 0; }

/* Short viewports (a phone in landscape, ~360–390px tall): shrink the figure so the card never clips. */
@media (max-height: 460px) {
  .wait-mini { height: 118px; }
  .wait-card { padding: var(--s3) var(--s3) var(--s4); }
}

/* Reduced motion: the decorative animations go (the veil's fade, the copy sliding in). The water line STAYS —
   it is a colour boundary crossing a diagram, not the travel/parallax/spin the setting is about, and a wait
   indicator is the one animation a page cannot drop. It just takes nearly twice as long. */
@media (prefers-reduced-motion: reduce) {
  .wait-veil, .wait-line.in { animation: none; }
  .wait-fill { animation-duration: 11s; }
}
