/* ── Skupa One — one palette shared with the app + graph canvas (design/tokens.json).
   Dark is primary; the light ramp (option 1f) is available via [data-theme="light"].
   Every value here is transcribed from tokens.json (WCAG-AA verified). ───────── */
:root {
  --bg: #12121C;        /* canvas — deepest */
  --window: #191A26;    /* window chrome / header */
  --surface: #212234;
  --surface2: #2A2C42;  /* raised */
  --border: #383B55;
  --hairline: #2C2E45;
  --text: #D8DEF4;      /* textPrimary */
  --muted: #A4ABC8;     /* textSecondary */
  --faint: #9298BC;     /* textFaint */
  --accent: #85AEFB;
  --accent-fg: #11121C;
  --accent2: #9FDD9F;   /* success */
  --warn: #EECF8D;
  --danger: #F2707A;
  --radius: 12px;
  --mono: 'Cascadia Code', Consolas, 'Courier New', monospace;
}
:root[data-theme="light"] {
  --bg: #E9EBF4; --window: #F2F3F8; --surface: #FFFFFF; --surface2: #F2F3F8;
  --border: #C8CCE0; --hairline: #DCE0EE; --text: #232841; --muted: #4A5170;
  --faint: #5C6488; --accent: #2E59C2; --accent-fg: #FFFFFF; --accent2: #1F7A33;
  --warn: #8A6400; --danger: #C22F45;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font: 16px/1.65 "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

header { position: sticky; top: 0; backdrop-filter: blur(12px); background: rgba(18,18,28,.85); border-bottom: 1px solid var(--border); z-index: 10; }
nav { display: flex; align-items: center; gap: 28px; height: 60px; }
.logo { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: .5px; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo span { color: var(--accent); }
nav .links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
nav .links a { color: var(--muted); }
nav .links a:hover { color: var(--text); text-decoration: none; }

.btn { display: inline-block; padding: 11px 22px; border-radius: 8px; font-weight: 600; font-size: 15px; }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { filter: brightness(1.1); text-decoration: none; }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); text-decoration: none; }

.hero { padding: 84px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.15; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.sub { max-width: 640px; margin: 20px auto 0; color: var(--muted); font-size: 19px; }
.hero .cta { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 14px; font-size: 13px; color: var(--muted); }

.shot { margin: 56px auto 0; max-width: 940px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; overflow-x: auto; }
.shot svg { display: block; width: 100%; height: auto; min-width: 640px; }
.shot figcaption { font-size: 12px; color: var(--muted); text-align: center; padding: 10px 0 4px; }

section { padding: 72px 0; }
section h2 { font-size: 30px; margin-bottom: 8px; }
section p.lead { color: var(--muted); max-width: 620px; margin-bottom: 36px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--muted); }
.card .em { font-size: 24px; margin-bottom: 12px; display: block; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -14px; left: 20px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.step h3 { font-size: 16px; margin: 6px 0 8px; }
.step p { font-size: 14px; color: var(--muted); }

.editions { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; max-width: 760px; margin: 0 auto; }
.edition { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; text-align: center; }
.edition.hl { border-color: var(--accent); }
.edition h3 { font-size: 20px; }
.edition .tag { font-size: 12px; color: var(--accent2); text-transform: uppercase; letter-spacing: 1px; }
.edition ul { list-style: none; margin: 18px 0 24px; text-align: left; font-size: 14.5px; color: var(--muted); }
.edition li { padding: 5px 0 5px 24px; position: relative; }
.edition li::before { content: "✓"; position: absolute; left: 2px; color: var(--accent2); }

.ptable { width: 100%; border-collapse: collapse; font-size: 15px; }
.ptable th, .ptable td { padding: 13px 16px; border-bottom: 1px solid var(--border); text-align: center; }
.ptable th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.ptable td:first-child, .ptable th:first-child { text-align: left; }
.ptable .tier { font-weight: 600; }
.ptable .per { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.ptable .price { font-weight: 700; font-size: 17px; }
.ptable .buy { display: inline-block; margin-top: 4px; font-size: 13px; }
.ptable tr:last-child td { border-bottom: 0; }
.pcol-hl { background: rgba(133,174,251,.08); }
.addons { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 20px; }
.addon { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.addon h4 { font-size: 16px; margin-bottom: 6px; }
.addon p { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.addon .links a { font-size: 14px; margin-right: 16px; }
.tablebox2 { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 8px; overflow-x: auto; }

table.fmt { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.fmt th, table.fmt td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); }
table.fmt th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
table.fmt td:first-child { font-weight: 600; white-space: nowrap; }
table.fmt td:last-child a { font-size: 13px; }
.tablebox { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 8px 2px; overflow-x: auto; }

.secband { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.seclist { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 8px 32px; font-size: 14.5px; color: var(--muted); }
.seclist div { padding: 6px 0 6px 26px; position: relative; }
.seclist div::before { content: "🔒"; position: absolute; left: 0; font-size: 13px; }

footer { border-top: 1px solid var(--border); padding: 36px 0; font-size: 13.5px; color: var(--muted); }
footer .cols { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* ── Sub-page header block ─────────────────────────────────────────── */
.subhead { padding: 52px 0 6px; }
.subhead .crumb { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.subhead h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.15; }
.subhead p { color: var(--muted); margin-top: 12px; max-width: 700px; }

/* ── Rendered documentation typography ─────────────────────────────── */
.doc { max-width: 820px; padding: 26px 0 72px; }
.doc h1 { font-size: 30px; font-weight: 800; margin: 0 0 6px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; padding-top: 20px; border-top: 1px solid var(--border); }
.doc h3 { font-size: 18px; margin: 26px 0 8px; }
.doc h4 { font-size: 15px; margin: 20px 0 6px; color: var(--text); }
.doc p { margin: 10px 0; }
.doc ul, .doc ol { margin: 10px 0 10px 22px; }
.doc li { margin: 4px 0; }
.doc strong { color: var(--text); }
.doc code { background: var(--surface2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; font: 13.5px/1.5 Consolas, "Courier New", monospace; color: #cdd6f4; }
.doc pre { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; overflow-x: auto; margin: 12px 0; }
.doc pre code { background: none; border: 0; padding: 0; white-space: pre; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14.5px; }
.doc th, .doc td { border-bottom: 1px solid var(--border); padding: 9px 14px; text-align: left; }
.doc th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.doc td.num, .doc th.num { text-align: right; }
.doc blockquote { border-left: 3px solid var(--accent); background: var(--surface); padding: 12px 16px; margin: 16px 0; border-radius: 0 8px 8px 0; color: var(--muted); }
.doc blockquote p { margin: 0; }

/* ── Demo exports gallery ──────────────────────────────────────────── */
.demogrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.demo-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; }
.demo-card .fmt-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent2); font-weight: 700; }
.demo-card h3 { font-size: 16px; margin: 6px 0 6px; }
.demo-card p { font-size: 13.5px; color: var(--muted); flex: 1; margin-bottom: 14px; }
.demo-card .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.demo-card .acts a { font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 7px; border: 1px solid var(--border); color: var(--text); }
.demo-card .acts a:hover { border-color: var(--accent); text-decoration: none; }
.demo-card .acts a.primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.docframe { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 26px; margin-top: 8px; }

/* ═══ 3a page components — the product's own shape vocabulary, on Skupa One ═══ */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .word { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: .3px; }
.brand .word span { color: var(--accent); }

.kicker { font-size: 9.5px; letter-spacing: 1.6px; color: var(--faint); text-transform: uppercase; }
.sec-h { font-size: 26px; font-weight: 700; color: var(--text); margin-top: 8px; letter-spacing: -.3px; }
.mono { font-family: var(--mono); font-size: 10px; color: var(--text); background: var(--hairline); border-radius: 4px; padding: 1px 5px; }
.gtext { background: linear-gradient(90deg, #a78bfa, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.pill { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 12px; border-radius: 13px;
        background: rgba(159,221,159,.07); border: 1px solid rgba(159,221,159,.25); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent2); }
.pill .t { font-size: 10.5px; color: #a9d8b4; letter-spacing: .4px; }

/* Two-column hero */
.hero2 { display: flex; gap: 40px; align-items: center; padding: 56px 0 44px; }
.hero2 .copy { width: 452px; flex: none; }
.hero2 .copy h1 { font-size: clamp(34px, 4.4vw, 46px); line-height: 1.08; font-weight: 700; letter-spacing: -.8px; margin-top: 20px; }
.hero2 .copy .sub { font-size: 15px; line-height: 1.62; color: var(--muted); margin-top: 18px; max-width: 430px; }
.hero2 .copy .cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero2 .copy .note { font-size: 11.5px; color: var(--faint); margin-top: 14px; }
.hero2 .visual { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--border); border-radius: 14px;
                 box-shadow: 0 24px 60px rgba(0,0,0,.5); padding: 16px 16px 12px; overflow: hidden; }
.hero2 .visual svg.lane { display: block; width: 100%; height: auto; }
.legendbar { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 8px 12px; background: var(--window); border: 1px solid var(--border); border-radius: 8px; flex-wrap: wrap; }
.legendbar .li { display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--muted); }
.legendbar .sp { flex: 1; }
.legendbar .hint { font-size: 10px; color: var(--faint); }

.persona-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
.persona { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 15px 17px; }
.persona .who { font-size: 12px; font-weight: 600; color: var(--text); }
.persona .q { font-size: 11.5px; color: var(--faint); margin-top: 5px; line-height: 1.5; }

.features3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.feature .fg { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.feature h3 { font-size: 13.5px; font-weight: 600; color: var(--text); margin-top: 13px; }
.feature h3 .opt { font-weight: 400; color: var(--faint); }
.feature p { font-size: 11.5px; color: var(--faint); margin-top: 5px; line-height: 1.6; }

.evidence { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.evidence .keel { height: 4px; background: var(--accent2); }
.evidence .ebody { display: flex; gap: 36px; padding: 34px 36px; }
.evidence .side { width: 300px; flex: none; }
.evidence .side h2 { font-size: 26px; font-weight: 700; color: var(--text); margin: 8px 0 0; letter-spacing: -.3px; }
.evidence .side p { font-size: 12.5px; color: var(--muted); margin-top: 12px; line-height: 1.65; }
.ev-list { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; align-content: center; }
.ev-item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; }
.ev-item svg { flex: none; margin-top: 1px; }
.ev-item .t { font-size: 11.5px; color: var(--muted); line-height: 1.55; }

.specimen { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-top: 20px; }
.specimen .srow { display: grid; grid-template-columns: 190px 1fr 110px; align-items: center; padding: 11px 20px; border-bottom: 1px solid var(--hairline); }
.specimen .srow.head { background: var(--window); padding: 12px 20px; }
.specimen .srow.head span { font-size: 9.5px; letter-spacing: 1.2px; color: var(--faint); }
.specimen .srow:last-child { border-bottom: 0; }
.specimen .fmt { display: flex; align-items: center; gap: 9px; }
.specimen .name { font-size: 12px; color: var(--text); font-weight: 600; }
.specimen .what { font-size: 11.5px; color: var(--muted); }
.specimen .samp { text-align: right; font-size: 11.5px; }
.chip { font-family: var(--mono); font-size: 9.5px; font-weight: 600; border-radius: 5px; padding: 2px 7px; border: 1px solid currentColor; }

.trust-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid rgba(159,221,159,.22); border-radius: 12px; }
.trust-chip .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent2); }
.trust-chip .t { font-size: 10px; color: #a9d8b4; }

.badge-common { display: inline-flex; align-items: center; height: 15px; padding: 0 7px; border-radius: 8px; background: var(--accent); color: var(--accent-fg); font-size: 8.5px; font-weight: 700; letter-spacing: .3px; margin-left: 8px; vertical-align: middle; }

@media (max-width: 920px) {
  .hero2 { flex-direction: column; align-items: stretch; gap: 28px; }
  .hero2 .copy { width: auto; }
  .persona-grid, .features3 { grid-template-columns: 1fr 1fr; }
  .evidence .ebody { flex-direction: column; gap: 22px; }
  .evidence .side { width: auto; }
  .ev-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .persona-grid, .features3 { grid-template-columns: 1fr; }
  .specimen .srow { grid-template-columns: 88px 1fr; }
  .specimen .what, .specimen .srow.head span:nth-child(2) { display: none; }
}
