/* Layout: the earnings war room. Left-aligned editorial hero beside a live scenario fan; the T-minus cycle is the signature. */
/* Keel by Tekplanit. Dark-first with the Tekplanit emerald; a light theme for readers who prefer it. */
:root {
  --paper: #080a0c; --surface: #111318; --surface-2: #1a1e25; --ink: #f2f2f2; --muted: #a3aebc; --line: #2c313a; --wash: #171b22;
  --brass: #27b07d; --brass-hi: #36d399; --brass-ink: #04130c; --signal: #4fdcab; --s2: #f97015; --s3: #4d8ff7; --s4: #9b72f8; --s5: #f5a524; --s6: #10b5cb;
  --glow: rgba(39, 176, 125, 0.16);
  --display: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --paper: #f4f6f9; --surface: #ffffff; --surface-2: #f0f2f6; --ink: #121720; --muted: #4a5262; --line: #dcdfe6; --wash: #e9edf3;
  --brass: #17825b; --brass-hi: #13724f; --brass-ink: #ffffff; --signal: #13724f; --s2: #c24d08; --s3: #175dcf; --s4: #6425d0; --s5: #8f5d00; --s6: #087384;
  --glow: rgba(23, 130, 91, 0.10); color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
body::after { content: ""; position: absolute; inset: 0 0 auto; height: 720px; z-index: -1; pointer-events: none; background: radial-gradient(900px 420px at 80% -80px, var(--glow), transparent 70%), radial-gradient(600px 360px at 5% 120px, color-mix(in srgb, var(--s4) 9%, transparent), transparent 70%); }
body { position: relative; overflow-x: clip; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
a { color: var(--signal); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(34px, 5.2vw, 60px); font-weight: 750; }
h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 680; }
p { margin: 0; max-width: 64ch; }
.eyebrow { font: 600 12px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: 19px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; padding-block: 12px; }
.brand { font: 700 19px/1 var(--display); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: 6px; font-size: 15px; }
.nav a[aria-current="page"] { background: var(--wash); }
.nav a:hover { background: var(--wash); }
.btn.menu { display: none; margin-left: auto; }
@media (max-width: 860px) { .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px)); } .nav.open { display: flex; } .btn.menu { display: inline-flex; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 15px/1 var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: linear-gradient(180deg, var(--brass-hi), var(--brass)); border-color: transparent; color: var(--brass-ink); box-shadow: 0 8px 22px color-mix(in srgb, var(--brass) 28%, transparent); }
:root[data-theme="light"] .btn.primary { background: var(--brass); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.ghost { background: transparent; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* sections */
section { padding-block: 64px; }
section + section { border-top: 1px solid var(--line); }
.hero { padding-block: 56px 48px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.panel { background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 55%, var(--surface)), var(--surface)); border: 1px solid var(--line); border-radius: 14px; padding: 22px; min-width: 0; transition: border-color .15s, transform .15s; }
a.panel:hover { border-color: color-mix(in srgb, var(--brass) 60%, var(--line)); transform: translateY(-2px); }
.cap h3 { margin-bottom: 6px; }
.cap .eyebrow { margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.cap .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--brass)); box-shadow: 0 0 12px var(--c, var(--brass)); }
.list { margin: 8px 0 0; padding-left: 18px; }
.list li { margin: 4px 0; }

/* the T-minus cycle */
.cycle { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.cycle > div { padding: 16px; border-right: 1px solid var(--line); min-width: 0; }
.cycle > div:last-child { border-right: 0; }
.cycle .t { font: 600 13px/1 var(--mono); color: var(--muted); }
.cycle .t b { color: var(--ink); font-size: 20px; display: block; margin: 6px 0 8px; font-family: var(--display); letter-spacing: -0.02em; }
.cycle .e { border-top: 3px solid var(--brass); }
@media (max-width: 900px) { .cycle { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cycle > div:nth-child(2n) { border-right: 0; } .cycle > div { border-bottom: 1px solid var(--line); } }

/* fan chart */
.fan { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.fan svg { width: 100%; height: auto; display: block; }
.fan text { fill: var(--muted); font: 11px var(--mono); }
.fan .grid { stroke: var(--line); stroke-width: 1; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-right: 6px; }

/* evidence record */
.evidence { font: 13px/1.7 var(--mono); background: var(--wash); border-radius: 10px; padding: 14px 16px; overflow-x: auto; white-space: pre; color: var(--ink); }

/* forms */
form.panel { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
input, select, textarea { font: 15px/1.4 var(--body); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%; }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: auto; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { padding: 12px 14px; border-radius: 8px; background: var(--wash); font-size: 14px; }
.note.ok { border-left: 3px solid var(--signal); }
.note.bad { border-left: 3px solid var(--s2); }

/* pricing */
.plan { display: grid; gap: 14px; align-content: start; }
.plan.hl { border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass) inset; }
.price { font: 720 30px/1 var(--display); letter-spacing: -0.02em; }

/* table */
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; color: var(--muted); font-weight: 600; }

footer { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: grid; gap: 14px; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }
.static-only { display: none; }
.is-static .static-only { display: block; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Tekplanit suite bar, suite page and calculators */
.suitebar { background: color-mix(in srgb, var(--surface) 80%, var(--paper)); border-bottom: 1px solid var(--line); font-size: 12.5px; }
.suitebar .wrap { display: flex; align-items: center; gap: 4px; padding-block: 6px; overflow-x: auto; scrollbar-width: none; }
.suitebar a { color: var(--muted); text-decoration: none; padding: 3px 10px; border-radius: 99px; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.suitebar a:hover { color: var(--ink); background: var(--wash); }
.suitebar a i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); display: inline-block; }
.suitebar a.here { color: var(--ink); background: color-mix(in srgb, var(--brass) 14%, transparent); border: 1px solid color-mix(in srgb, var(--brass) 40%, transparent); }
.suitebar .lead { color: var(--ink); font-weight: 650; margin-right: 6px; }
.brand small { font: 500 11px/1 var(--body); color: var(--muted); letter-spacing: 0; display: block; margin-top: 3px; }
.gradient { background: linear-gradient(100deg, var(--brass-hi), var(--s3) 60%, var(--s4)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.suite-map { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.suite-map .panel { padding: 16px; border-top: 3px solid var(--c); }
.suite-map .panel.here { border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass) inset, 0 12px 36px var(--glow); }
@media (max-width: 900px) { .suite-map { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .suite-map { grid-template-columns: 1fr; } }
.kpi-big { font: 750 38px/1 var(--display); letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.range { display: grid; gap: 4px; }
.range output { font: 600 14px var(--mono); color: var(--brass-hi); }
input[type="range"] { padding: 0; accent-color: var(--brass); }
.badge { display: inline-block; font: 600 11px/1 var(--mono); padding: 4px 8px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--brass) 45%, transparent); color: var(--signal); background: color-mix(in srgb, var(--brass) 10%, transparent); letter-spacing: .04em; text-transform: uppercase; }
