/* U4x site — shared stylesheet
   Layout concept: a single technical system — hairline-ruled sections, mono eyebrows
   and figures, one calibrated teal accent carrying structure. Dark + light first-class. */
:root {
  --bg: #eef1f4;
  --surface: #ffffff;
  --surface-2: #e5eaef;
  --fg: #111820;
  --muted: #5b6977;
  --faint: #8795a2;
  --border: #d4dce3;
  --border-strong: #b9c5ce;
  --accent: #0c7a84;
  --accent-ink: #065059;
  --accent-wash: #d7edef;
  --good: #1a7f52;
  --warn: #8a6300;
  --crit: #b13a3a;
  --shadow: 0 1px 2px rgba(17,24,32,.06), 0 8px 24px rgba(17,24,32,.05);
  color-scheme: light;
  --f-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --f-body: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0e13; --surface: #121a23; --surface-2: #0e151d; --fg: #e9eff4;
    --muted: #93a2b0; --faint: #647382; --border: #203040; --border-strong: #2d3f52;
    --accent: #33ccc0; --accent-ink: #8fe6dd; --accent-wash: #0d2a2b;
    --good: #35b57f; --warn: #d4a53c; --crit: #e06464;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0e13; --surface: #121a23; --surface-2: #0e151d; --fg: #e9eff4;
  --muted: #93a2b0; --faint: #647382; --border: #203040; --border-strong: #2d3f52;
  --accent: #33ccc0; --accent-ink: #8fe6dd; --accent-wash: #0d2a2b;
  --good: #35b57f; --warn: #d4a53c; --crit: #e06464;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--fg); font-family: var(--f-body);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
img { max-width: 100%; }
[hidden] { display: none !important; }
.wrap {
  max-width: 1080px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.12; text-wrap: balance; margin: 0; }
a { color: inherit; }
.mono { font-family: var(--f-mono); }
.tnum { font-variant-numeric: tabular-nums; }
.eyebrow {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); opacity: .6; }
.eyebrow.center { justify-content: center; }

/* top bar */
header.bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  backdrop-filter: blur(10px); background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--bg); }
.bar .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { font-family: var(--f-display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; display: flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; }
.logo .mk { width: 22px; height: 22px; flex: none; }
.bar nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.bar nav a { color: var(--muted); text-decoration: none; }
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--fg); }
.bar nav a[aria-current="page"] { color: var(--accent); }
@media (max-width: 820px) { .bar nav { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 13px;
  letter-spacing: .02em; padding: 10px 16px; border-radius: 7px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn.primary { background: var(--accent); color: #fff; }
:root[data-theme="dark"] .btn.primary { color: #05211f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: #05211f; } }
.btn.primary:hover { background: var(--accent-ink); }
.btn.ghost { border-color: var(--border-strong); color: var(--fg); background: transparent; }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle { background: transparent; border: 1px solid var(--border-strong); color: var(--muted); width: 36px; height: 36px; border-radius: 7px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }

main { display: block; }
section { padding-block: 68px; border-bottom: 1px solid var(--border); }
.lead { font-size: clamp(15px, 1.5vw, 17px); color: var(--muted); max-width: 62ch; }
.sec-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -.02em; max-width: 22ch; }
.honest { margin-top: 18px; font-size: 13.5px; color: var(--muted); max-width: 70ch; }

/* page header (sub-pages) */
.pagehead { padding-block: 56px 40px; border-bottom: 1px solid var(--border); }
.pagehead h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; letter-spacing: -.025em; max-width: 20ch; margin-top: 14px; }
.pagehead p { margin-top: 18px; }
.crumbs { font-family: var(--f-mono); font-size: 12px; color: var(--faint); letter-spacing: .04em; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* hero (home) */
.hero { padding-block: 72px 60px; border-bottom: 1px solid var(--border); }
.hero h1 { font-size: clamp(34px, 6vw, 60px); font-weight: 800; letter-spacing: -.025em; max-width: 16ch; }
.hero .sub { margin-top: 22px; font-size: clamp(16px, 2vw, 20px); color: var(--muted); max-width: 54ch; line-height: 1.5; }
.hero .actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }

.proofstrip { margin-top: 48px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; }
.proofstrip .cell { padding: 20px 22px; border-right: 1px solid var(--border); min-width: 0; }
.proofstrip .cell:last-child { border-right: none; }
.proofstrip .n { font-family: var(--f-display); font-weight: 800; font-size: 26px; letter-spacing: -.02em; }
.proofstrip .n small { font-size: 14px; font-weight: 600; color: var(--muted); }
.proofstrip .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-top: 6px; }
@media (max-width: 760px) { .proofstrip { grid-template-columns: 1fr 1fr; } .proofstrip .cell:nth-child(2n){border-right:none;} .proofstrip .cell:nth-child(-n+2){border-bottom:1px solid var(--border);} }

/* cards */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 820px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.card { border: 1px solid var(--border); border-radius: 11px; background: var(--surface); padding: 22px; }
.card h3 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.card p { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.ic { width: 18px; height: 18px; flex: none; color: var(--accent); }

/* steps */
.steps { display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--border); }
.step:first-child { border-top: none; }
.step .idx { font-family: var(--f-mono); font-size: 13px; color: var(--accent); padding-top: 3px; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 17px; font-weight: 700; }
.step p { margin: 6px 0 0; font-size: 14.5px; color: var(--muted); max-width: 60ch; }

.flow { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr; gap: 32px; } }
.diagram { position: sticky; top: 92px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 18px; box-shadow: var(--shadow); }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram .cap { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-top: 10px; text-align: center; }

/* notices + data */
.notice { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--warn); border: 1px dashed color-mix(in srgb, var(--warn) 55%, var(--border)); background: color-mix(in srgb, var(--warn) 8%, transparent); padding: 6px 11px; border-radius: 6px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); }
table.data th { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 500; }
table.data td.v { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
table.data tr:last-child td { border-bottom: none; }
.method { margin-top: 20px; font-size: 13px; color: var(--muted); border-left: 2px solid var(--accent); padding: 4px 0 4px 16px; max-width: 70ch; }
.bars { display: flex; flex-direction: column; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; align-items: center; font-size: 13px; }
.bar-row .lab { color: var(--muted); font-size: 12.5px; }
.track { height: 12px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--accent-ink), var(--accent)); }
.bar-row .val { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: 12.5px; }
@media (prefers-reduced-motion: no-preference) { .fill { transition: width .9s cubic-bezier(.2,.7,.2,1); } }

/* assurance list */
.assure { margin-top: 26px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); overflow: hidden; }
.assure .row { display: grid; grid-template-columns: 24px 1fr auto; gap: 14px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--border); }
.assure .row:first-child { border-top: none; }
.assure .row .t { font-size: 14.5px; }
.assure .row .t small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.chk { width: 20px; height: 20px; color: var(--good); flex: none; }
.tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border-strong); border-radius: 5px; padding: 3px 8px; white-space: nowrap; }

/* cost */
.cost { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
@media (max-width: 760px) { .cost { grid-template-columns: 1fr; } }
.costcard { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 24px; }
.costcard.u4x { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: var(--shadow); }
.costcard .label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.costcard .big { font-family: var(--f-display); font-weight: 800; font-size: 40px; letter-spacing: -.03em; margin-top: 8px; }
.costcard .big small { font-size: 15px; color: var(--muted); font-weight: 600; }
.costcard ul { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.costcard li { display: grid; grid-template-columns: 1fr auto; font-size: 13.5px; color: var(--muted); gap: 10px; padding-bottom: 9px; border-bottom: 1px solid var(--border); }
.costcard li:last-child { border-bottom: none; padding-bottom: 0; }
.costcard li .amt { font-family: var(--f-mono); color: var(--fg); font-variant-numeric: tabular-nums; }

/* compare */
.cmp-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
table.cmp { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 13.5px; }
table.cmp th, table.cmp td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
table.cmp thead th { font-family: var(--f-mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); font-weight: 500; background: var(--surface-2); }
table.cmp thead th.us { color: var(--accent); }
table.cmp td:first-child, table.cmp th:first-child { font-family: var(--f-mono); font-size: 12px; color: var(--muted); width: 180px; }
table.cmp td.us { background: color-mix(in srgb, var(--accent) 7%, transparent); color: var(--fg); font-weight: 500; }
table.cmp tr:last-child td { border-bottom: none; }

/* faq */
.faq { display: flex; flex-direction: column; gap: 0; margin-top: 10px; }
.faq details { border-top: 1px solid var(--border); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-family: var(--f-display); font-weight: 700; font-size: 16.5px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); color: var(--accent); font-weight: 400; font-size: 20px; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 0 18px; color: var(--muted); font-size: 14.5px; max-width: 72ch; }

/* demo key box (Pricing) */
section.demo { border-bottom: none; padding-top: 0; }
.democard { border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border)); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); padding: 28px; max-width: 760px; margin: 0 auto; }
.democard .sec-head h2 { font-size: clamp(22px, 2.6vw, 28px); }
.demo-row { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.demo-row input { flex: 1 1 280px; min-width: 0; font-size: 14px; padding: 10px 12px; border-radius: 7px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--fg); }
.demo-row input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.demo-row input[aria-invalid="true"] { border-color: var(--crit); }
#demo-msg.bad { color: var(--crit); }
#demo-msg.good { color: var(--good); }
.demo-files { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.demo-files a { display: flex; justify-content: space-between; gap: 12px; align-items: center; text-decoration: none; border: 1px solid var(--border); border-radius: 9px; padding: 12px 14px; background: var(--bg); }
.demo-files a:hover { border-color: var(--accent); }
.demo-files .fn { font-family: var(--f-mono); font-size: 13.5px; }
.demo-files .fs { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.demo-cmd { margin-top: 18px; }
.demo-cmd pre { margin: 0; font-size: 12.5px; line-height: 1.5; padding: 12px 14px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); overflow-x: auto; white-space: pre; }

/* cta + footer */
.final { text-align: center; border-bottom: none; }
.final h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.025em; margin: 0 auto; max-width: 18ch; }
.final p { color: var(--muted); max-width: 48ch; margin: 18px auto 0; }
.final .actions { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
footer { padding: 34px 0 48px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; color: var(--muted); font-size: 13px; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer nav a { color: var(--muted); text-decoration: none; }
footer nav a:hover { color: var(--accent); }
footer .fmono { font-size: 12px; color: var(--faint); }
