/* Sunsave site pages. Same palette and faces as the calculator: lagoon teal for links and buttons,
   sun yellow for the brand mark, the step numbers, the stars and the FREE tag.
   Layout: one reading column under a full-width header; cards only for blocks that stand on their own. */
:root {
  --bg: #f2f7f6;
  --surface: #ffffff;
  --surface-2: #e6f1ef;
  --ink: #0f2a2e;
  --muted: #546f73;
  --line: #d2e1de;
  --lagoon: #0a6b68;
  --lagoon-ink: #ffffff;
  --sun: #f4b315;
  --sun-soft: #fff1c9;
  --sun-ink: #3a2a00;
  --warn: #9a4d08;
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 42, 46, 0.06), 0 8px 24px rgba(15, 42, 46, 0.06);
  color-scheme: light;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1a1c; --surface: #112628; --surface-2: #163234; --ink: #e3efed; --muted: #95b0ae;
    --line: #24413f; --lagoon: #3fb3a7; --lagoon-ink: #04201d; --sun: #f5c443; --sun-soft: #3a3010; --sun-ink: #2a1f00; --warn: #eba45a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1a1c; --surface: #112628; --surface-2: #163234; --ink: #e3efed; --muted: #95b0ae;
  --line: #24413f; --lagoon: #3fb3a7; --lagoon-ink: #04201d; --sun: #f5c443; --sun-soft: #3a3010; --sun-ink: #2a1f00; --warn: #eba45a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

/* One language at a time: <html lang> decides. */
html[lang="es"] [data-l="en"], html:not([lang="es"]) [data-l="es"] { display: none !important; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 40px;
}
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
p, ul, ol, dl, dd { margin: 0; }
a { color: var(--lagoon); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
.nw { white-space: nowrap; }
.wrap { max-width: 1040px; margin: 0 auto; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 5; background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 8px; box-shadow: var(--shadow); }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); }

/* Header: brand and language on one line; the menu wraps under them on phones. */
.top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; padding-block: 18px 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.brand small { font-family: var(--font-body); font-weight: 500; font-size: 13px; color: var(--muted); letter-spacing: 0; }
.brand svg { width: 30px; height: 30px; flex: none; }
.menu { order: 3; flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 2px; margin-left: -10px; }
.menu a { color: var(--muted); font-weight: 600; font-size: 15px; text-decoration: none; padding: 6px 10px; border-radius: 999px; }
.menu a:hover { color: var(--ink); background: var(--surface-2); }
.menu a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.seg { margin-left: auto; display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--lagoon); color: var(--lagoon-ink); }
@media (min-width: 760px) {
  .menu { order: 0; flex-basis: auto; margin-left: auto; }
  .seg { margin-left: 0; }
}

/* Page column */
.page { max-width: 760px; margin: 0 auto; display: grid; gap: 30px; padding-top: 22px; }
.intro { display: grid; gap: 12px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
h1 { font-size: clamp(32px, 6.4vw, 48px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.06; }
.lede { font-size: 19px; color: var(--muted); max-width: 60ch; }
.updated { font-size: 14px; color: var(--muted); }

.prose { display: grid; gap: 30px; }
.sec { display: grid; gap: 10px; scroll-margin-top: 16px; min-width: 0; }
.sec h2 { font-size: 24px; font-weight: 800; }
.sec .body { display: grid; gap: 12px; max-width: 66ch; min-width: 0; }
.sec ul, .sec ol { padding-left: 22px; display: grid; gap: 8px; }
.sec li::marker { color: var(--lagoon); }
.sec strong { font-weight: 700; }

/* How it works: the order is the point, so the steps are numbered and joined. */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 41px; top: 66px; bottom: -13px; border-left: 2px dashed var(--line); }
.steps .n { width: 44px; height: 44px; border-radius: 50%; background: var(--sun); color: var(--sun-ink);
  font-family: var(--font-display); font-weight: 800; font-size: 20px; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.step-body { display: grid; gap: 6px; min-width: 0; padding-top: 7px; }
.step-body h2 { font-size: 20px; font-weight: 800; }
.note { font-size: 15px; color: var(--muted); background: var(--surface-2); padding: 12px 14px; border-radius: 10px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 20px; font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2.5px solid var(--lagoon); border-bottom: 2.5px solid var(--lagoon);
  transform: translateY(-3px) rotate(45deg); transition: transform 0.15s ease; }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq summary:hover { color: var(--lagoon); }
.faq .a { padding: 0 20px 18px; display: grid; gap: 10px; max-width: 66ch; }

/* About */
.chips { list-style: none; padding: 0 !important; display: flex !important; flex-wrap: wrap; gap: 8px !important; }
.chips li { padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.trust { display: flex; gap: 10px; align-items: baseline; }
.trust .star { color: var(--sun); font-size: 18px; line-height: 1; flex: none; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; }
.facts dt { font-weight: 700; }
.facts dd { overflow-wrap: anywhere; }

/* The ask: identity line, the main button, the check-first line. */
.ask { position: relative; overflow: hidden; display: grid; justify-items: start; gap: 14px; padding: 26px clamp(18px, 4vw, 32px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.ask::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--sun) 55%, transparent) 0%, transparent 70%); pointer-events: none; }
.ask > * { position: relative; z-index: 1; }
.tagline { font-weight: 700; color: var(--lagoon); font-size: 17px; max-width: 46ch; }
.ask .sub { font-size: 15px; color: var(--muted); max-width: 52ch; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--line); background: var(--surface);
  padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 17px; line-height: 1.25; text-decoration: none; color: var(--ink); cursor: pointer; text-align: left; }
.btn.primary { background: var(--lagoon); border-color: var(--lagoon); color: var(--lagoon-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.free-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--sun); color: var(--sun-ink); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; flex: none; }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* Legal pages */
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; display: grid; gap: 8px; }
.toc-h { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding-left: 22px; columns: 2 230px; column-gap: 28px; font-size: 15px; }
.toc li { break-inside: avoid; padding-block: 2px; }
.toc li::marker { color: var(--muted); }
.legal .sec .body { font-size: 16px; }
.legal .sec h2 { font-size: 22px; }
.box { background: var(--surface-2); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 12px; }
.box .facts { font-size: 16px; }
@media (max-width: 520px) {
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .facts dd { margin-bottom: 10px; }
}

/* AI node page (v5, Oct 24): one column. On top: who it's for, the headline, one line, Vendor's guarantee and what the 80%
   could be, in plain view and compact; then the form with who qualifies and what happens next; details fold away below it. */
.top.no-menu .seg { margin-left: auto; }
.top.no-menu .seg button { padding: 6px 10px; font-size: 13.5px; }
.node-hero { display: grid; gap: 14px; max-width: 620px; }
.node-hero h1 { font-size: clamp(38px, 10.5vw, 56px); letter-spacing: -0.025em; }
.how3 { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 10px; }
.how3 li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: center; font-size: 18px; line-height: 1.35; }
.how3 .n { width: 30px; height: 30px; border-radius: 50%; background: var(--sun); color: var(--sun-ink); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 16px; }
.g-box { display: grid; gap: 6px; padding: 14px 16px; border-radius: var(--radius); background: var(--sun-soft);
  border: 1px solid color-mix(in srgb, var(--sun) 45%, transparent); }
.g-box p { font-size: 16.5px; }
.small { font-size: 14px; color: var(--muted); }
.g-box .small { color: var(--ink); opacity: 0.8; }
.earn { display: grid; gap: 8px; }
.earn-h { font-weight: 700; font-size: 15.5px; }
.who { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line); }
.who strong { color: var(--ink); }
.who a { color: var(--ink); font-weight: 600; }

.node-form { justify-items: stretch; }
.node-form h2 { font-size: 26px; font-weight: 800; }
#nf-intro { display: grid; gap: 8px; }
.owner { display: grid; gap: 10px; padding-top: 4px; }
.owner-q { font-family: var(--font-display); font-weight: 800; font-size: 21px; }
.owner-btns { margin-top: 0; }
.owner-btns .btn { min-width: 112px; }
.owner-btns .btn[aria-pressed="true"] { background: var(--lagoon); border-color: var(--lagoon); color: var(--lagoon-ink); }
.mini-h { font-weight: 700; font-size: 15px; }
.needs li { font-size: 14px; font-weight: 600; background: var(--surface-2); border-color: transparent; }
.next { margin: 0; padding-left: 22px; display: grid; gap: 4px; font-size: 15.5px; }
.next li::marker { color: var(--lagoon); font-weight: 700; }
.node-form form { display: grid; gap: 14px; justify-items: start; }
.fields { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .fields { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field label { font-weight: 600; font-size: 15px; }
.input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink);
  font: inherit; font-size: 18px; line-height: 1.3; }
.input:focus { border-color: var(--lagoon); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--lagoon) 25%, transparent); }
.input[aria-invalid="true"] { border-color: var(--warn); }
.err { color: var(--warn); font-size: 14px; font-weight: 600; }
.consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; font-size: 13.5px; line-height: 1.5;
  background: var(--surface-2); padding: 12px; border-radius: 10px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--lagoon); }
.fine { font-size: 13px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.done { display: grid; gap: 8px; }
.done:focus { outline: none; }
.done h3 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }

.calc { width: 100%; max-width: 520px; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; font-variant-numeric: tabular-nums; }
.calc th, .calc td { padding: 11px 16px; border-top: 1px solid var(--line); vertical-align: baseline; }
.calc tr:first-child th, .calc tr:first-child td { border-top: 0; }
.calc th { text-align: left; font-weight: 500; }
.calc td { text-align: right; font-weight: 600; white-space: nowrap; }
.calc .sum th, .calc .sum td { font-weight: 800; }
.calc.mini th, .calc.mini td { padding: 9px 14px; font-size: 15.5px; }
.calc.mini td { font-weight: 700; }
.calc.three th, .calc.three td { padding: 9px 12px; }
.calc.three thead th { font-size: 13px; font-weight: 700; color: var(--muted); text-align: right; }
.calc.three tbody tr:first-child th, .calc.three tbody tr:first-child td { border-top: 1px solid var(--line); }
.folds .a > p + p { margin-top: 2px; }
.limits { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* Footer */
.site-foot { max-width: 760px; margin: 44px auto 0; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 8px;
  text-align: center; font-size: 14px; color: var(--muted); }
.site-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; font-weight: 600; }
.site-foot nav a { color: var(--ink); text-decoration: none; }
.site-foot nav a:hover { text-decoration: underline; }
.site-foot a { color: var(--muted); }
.site-foot .co { overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
