/* Layout: single reading column (max 1040px) of full-width bands; the hero and closing band are dark, sections alternate paper/surface. */
:root {
  --bg: #f3f6f9;
  --surface: #ffffff;
  --ink: #0c1625;
  --muted: #566376;
  --line: #d9e1ea;
  --accent: #0d9b8e;
  --accent-ink: #ffffff;
  --accent-soft: #dcf2ef;
  --night: #0b1626;
  --night-2: #12243d;
  --night-ink: #eef3f8;
  --night-muted: #9fb0c4;
  --warn: #9a5800;
  --warn-bg: #fcefd9;
  --ok: #157a42;
  --ok-bg: #e0f2e7;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a111b; --surface: #111b28; --ink: #e5ebf2; --muted: #96a4b6; --line: #233246;
    --accent: #2cc3b4; --accent-ink: #04201d; --accent-soft: #0e302d;
    --night: #070d16; --night-2: #0f1d31; --night-ink: #eef3f8; --night-muted: #9fb0c4;
    --warn: #f0b15c; --warn-bg: #36270f; --ok: #6fd39a; --ok-bg: #12301f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a111b; --surface: #111b28; --ink: #e5ebf2; --muted: #96a4b6; --line: #233246;
  --accent: #2cc3b4; --accent-ink: #04201d; --accent-soft: #0e302d;
  --night: #070d16; --night-2: #0f1d31; --night-ink: #eef3f8; --night-muted: #9fb0c4;
  --warn: #f0b15c; --warn-bg: #36270f; --ok: #6fd39a; --ok-bg: #12301f;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.band { padding-block: 72px; }
.band--surface { background: var(--surface); border-block: 1px solid var(--line); }
.inner {
  max-width: 1040px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  display: grid; gap: 32px;
}
.label { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.lede { color: var(--muted); font-size: 1.08rem; max-width: 62ch; }
.head { display: grid; gap: 10px; }

/* Hero */
.hero { background: radial-gradient(ellipse at 85% -10%, rgba(44, 195, 180, .22), transparent 55%), linear-gradient(165deg, var(--night), var(--night-2)); color: var(--night-ink); position: relative; overflow: hidden; }
.hero .inner { padding-block: 64px 56px; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: 48px; }
.hero .label { color: #5fd8cb; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 800; line-height: 1.03; margin-top: 10px; }
.hero p.sub { color: var(--night-muted); font-size: 1.15rem; max-width: 46ch; margin-top: 18px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-family: var(--mono); font-size: 0.82rem; color: var(--night-muted); }
.meta b { color: var(--night-ink); font-weight: 500; }
.sky { width: 100%; max-width: 360px; justify-self: end; aspect-ratio: 1; }
.sky svg { width: 100%; height: 100%; display: block; }

/* Key numbers */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.fact { padding: 18px 18px 4px 0; display: grid; gap: 4px; }
.fact + .fact { padding-left: 18px; border-left: 1px solid var(--line); }
.fact strong { font-family: var(--display); font-size: 1.9rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.fact span { color: var(--muted); font-size: 0.92rem; }

/* Two-column text */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.cols > div { display: grid; gap: 8px; align-content: start; }
.cols p { color: var(--muted); }

/* Plans */
.plans-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 680px; font-size: 0.95rem; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
tbody tr.group th { background: var(--bg); font-family: var(--display); font-size: 0.95rem; color: var(--ink); text-transform: none; letter-spacing: 0; }
td.num, th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.pop { display: inline-block; margin-left: 8px; font: 500 0.68rem var(--mono); text-transform: uppercase; letter-spacing: .06em; background: var(--accent-soft); color: var(--accent); padding: 2px 7px; border-radius: 4px; vertical-align: 2px; }
.note { font-size: 0.88rem; color: var(--muted); max-width: 72ch; }
.flag { display: flex; gap: 10px; align-items: flex-start; background: var(--warn-bg); color: var(--warn); border-radius: 8px; padding: 12px 14px; font-size: 0.92rem; }
.flag b { font-weight: 600; white-space: nowrap; }

/* Flow */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.flow li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 14px 14px; display: grid; gap: 6px; align-content: start; }
.flow li::before { counter-increment: step; content: counter(step); font: 600 0.8rem var(--mono); color: var(--accent-ink); background: var(--accent); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.flow li:not(:last-child)::after { content: ""; position: absolute; right: -10px; top: 26px; width: 8px; height: 8px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg); }
.flow h3 { font-size: 1rem; }
.flow p { color: var(--muted); font-size: 0.88rem; }
.rec { font-family: var(--mono); font-size: 0.75rem; color: var(--accent); border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 4px; }

/* Billing */
.bill { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.invoice { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; font-family: var(--mono); font-size: 0.86rem; display: grid; gap: 4px; }
.invoice .row { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }
.invoice .row span:first-child { min-width: 0; }
.invoice .hd { color: var(--muted); font-size: 0.74rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.invoice .tot { border-top: 1px solid var(--ink); margin-top: 8px; padding-top: 8px; font-weight: 500; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rules li { display: grid; gap: 2px; padding-left: 16px; border-left: 2px solid var(--accent); }
.rules li span { color: var(--muted); font-size: 0.94rem; }

/* Odoo pieces */
.pieces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.piece { padding: 18px 20px 18px 0; display: grid; gap: 6px; border-bottom: 1px solid var(--line); align-content: start; }
.piece:not(:nth-child(3n+1)) { padding-left: 20px; border-left: 1px solid var(--line); }
.piece code { font-family: var(--mono); font-size: 0.78rem; color: var(--accent); }
.piece p { color: var(--muted); font-size: 0.93rem; }

/* Decisions */
.decisions { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.decision { display: grid; grid-template-columns: 140px minmax(0, 1fr) 150px; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.decision .tag { font: 500 0.74rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--warn); background: var(--warn-bg); border-radius: 5px; padding: 4px 8px; justify-self: start; }
.decision .tag.ok { color: var(--ok); background: var(--ok-bg); }
.decision p { color: var(--muted); font-size: 0.94rem; }
.decision .who { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); text-align: right; }

/* Close */
.close { background: linear-gradient(165deg, var(--night), var(--night-2)); color: var(--night-ink); }
.close .label { color: #5fd8cb; }
.close h2 { color: var(--night-ink); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.steps li { border-top: 2px solid #5fd8cb; padding-top: 12px; display: grid; gap: 4px; }
.steps li b { font-family: var(--display); }
.steps li span { color: var(--night-muted); font-size: 0.92rem; }
footer.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 0.84rem; color: var(--night-muted); border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; }
footer.foot small { max-width: 60ch; }

@media (max-width: 900px) {
  .hero .inner { grid-template-columns: 1fr; }
  .sky { justify-self: start; max-width: 220px; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow li::after { display: none; }
  .cols, .pieces { grid-template-columns: 1fr; }
  .piece:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .bill { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .band { padding-block: 52px; }
  .flow, .steps { grid-template-columns: 1fr; }
  .decision { grid-template-columns: 1fr; gap: 6px; }
  .decision .who { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
