/* Panorama 2.454 — landing page, local render (copy deck v1.5).
   Visual system: IA Hipócrates portal tokens, extracted by value (no import, no assets, no coupling).
   No dependencies, no build. */

:root {
  /* portal tokens — values copied, nothing more */
  --bg: #2B3660;
  --surface: #3B4A80;
  --surface-raised: #4C5C95;
  --surface-sunk: #33406F;
  --border: #5E6EA8;
  --border-soft: #4A5990;
  --text: #EDEFF7;
  --text-2: #AFB6D4;
  --text-muted: #8189AD;
  --accent: #E8B84B;
  --accent-hover: #F2C866;
  --accent-on: #2E2408;
  --radius: 8px;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;
  --ok: #5bb98a;
  --block-fg: #F0A79B;
  --block-bg: #4A211C;

  /* landing-only: reading measure (rule 1 — not from the portal sheet) */
  --measure: 660px;
  --wide: 900px;
}

* { box-sizing: border-box; }

html { font-size: 17px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--measure); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.wrap-wide { max-width: var(--wide); margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* ---- local-only banner (gate item, D-3) — block token so it reads as "not the page" ---- */
.local-banner {
  background: var(--block-bg);
  color: var(--block-fg);
  border-bottom: 1px dashed var(--block-fg);
  font: 600 12px/1.4 var(--mono);
  text-align: center;
  padding: 8px 16px;
  letter-spacing: .04em;
}

/* ---- masthead: wordmark only, no identity cluster (no session here) ---- */
.masthead {
  border-bottom: 1px solid var(--border-soft);
  padding: 14px 0;
}
.wordmark {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .01em;
  color: var(--text);
}
.wordmark-ia { color: var(--accent); }

/* ---- hero ---- */
.hero { padding: 56px 0 44px; border-bottom: 1px solid var(--border-soft); }
.eyebrow {
  margin: 0 0 12px;
  font: 500 20px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
}
h1 {
  margin: 0 0 20px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}
.lede { font-size: 16px; line-height: 1.6; color: var(--text-2); margin: 0 0 12px; }
.sub  { font-size: 14px; line-height: 1.5; color: var(--text-muted); margin: 0; }

.cta-block { margin-top: 28px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.cta-block .btn { margin-bottom: 8px; }

/* ---- .btn base ---- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-on);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 14px 20px;
  border-radius: var(--radius);
}
.btn:hover { background: var(--accent-hover); }
.btn:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; }

/* ---- sections ---- */
main { padding: 8px 0 24px; }
/* rhythm: generous above the eyebrow, little below. Vertical padding lives here only;
   .wrap/.wrap-wide set horizontal padding as longhands so they cannot override it (fix 2026-08-30). */
main > section { padding-top: 52px; padding-bottom: 12px; }
main > section:first-child { padding-top: 40px; }

h2 {
  margin: 0 0 14px;
  font: 500 16px/1.3 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
}

p { margin: 0 0 14px; color: var(--text); }
p:last-child { margin-bottom: 0; }
strong { color: var(--text); }

/* ---- .card ---- */
.card {
  background: var(--surface);
  border-radius: 12px;
  padding: 18px 20px;
}

/* ---- .steps / .step — three columns, numbered marker ---- */
.steps {
  list-style: none;
  margin: 20px auto 24px;
  padding: 0 20px;
  max-width: var(--wide);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 18px 20px;
}
.step-n {
  display: block;
  font: 600 12px/1 var(--mono);
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 10px;
}
.step p { font-size: 16px; line-height: 1.55; }

/* ---- .warn — one box per mechanic ---- */
.warn {
  border-left: 3px solid var(--accent);
  background: rgba(232,184,75,.09);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 12px 16px;
  margin: 0 0 12px;
}
.warn p { margin: 0; }

/* ---- pull-quote closers (§3, §10): no new token, body text larger ---- */
.pull {
  font-size: 21px;
  line-height: 1.45;
  color: var(--text);
  margin: 22px 0 0;
}
.closing { padding-bottom: 24px; }
.closing .pull { margin-top: 0; }
.closing .cta-block { margin-top: 26px; }

/* ---- §8 disclosure: own treatment, not a .card (must not compete with §2/§4/§9) ---- */
.disclosure {
  background: var(--surface-sunk);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 20px;
}

/* ---- privacy-term line (§5): neutral label + placeholder chip ---- */
.term-line { margin-top: 18px; color: var(--text-2); font-size: 15px; }
.term-line .ph { margin-left: .35em; }

/* ---- placeholders: BLOCK token. Must clash, not match (rule 3) ---- */
.ph {
  display: inline-block;
  background: var(--block-bg);
  color: var(--block-fg);
  border: 1px dashed var(--block-fg);
  border-radius: 4px;
  padding: 0 .4em;
  font: 600 .88em/1.5 var(--mono);
  white-space: nowrap;
}
.ph-link { text-decoration: none; cursor: not-allowed; }

/* ---- .foot ---- */
.foot {
  border-top: 1px solid var(--border-soft);
  padding: 22px 0 56px;
  margin-top: 24px;
}
.foot p { font-size: 12px; line-height: 1.6; color: var(--text-muted); }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  html { font-size: 16px; }
  h1 { font-size: 26px; }
  .hero { padding-top: 40px; }
}
