/* ============================================================
   KONFORMISTA — marketing site
   Warm-black + muted gold. Quicksand / Inter Tight / JetBrains Mono.
   Square 3px radii, pro-tool feel.
   ============================================================ */

:root {
  /* Backgrounds — warm black, not pure */
  --bg0: #0a0807;
  --bg1: #121010;
  --bg2: #191716;
  --bg3: #221f1d;

  /* Borders — gold-tinted to cohere with brand */
  --border:   rgba(255, 220, 150, 0.08);
  --border-hi:rgba(255, 220, 150, 0.18);

  /* Foreground */
  --text:    #efeae0;
  --text-dim:#a59a86;
  --text-mut:#6a6258;

    --gold-soft:rgba(212,168,74,0.12);
  --gold-line:rgba(212,168,74,0.32);

  /* fills stay bright gold across every palette; text-gold may darken on light */
  --gold-fill: #d4a84a;
  --gold-fill-hi: #e8bf5f;
  --nav-bg: rgba(10,8,7,0.72);
  --nav-bg-scrolled: rgba(10,8,7,0.9);
  --title-ink: #a59a86;          /* window titlebar text — titlebar is always dark */
  --glow-op: 0.5;                /* driven by Atmosphere tweak */
  --win-shadow: 0 40px 120px rgba(0,0,0,0.6), 0 4px 18px rgba(0,0,0,0.5);
  --gold:     #d4a84a;
  --gold-hi:  #e8bf5f;
  --gold-ink: #1a1408;
  --gold-soft:rgba(212,168,74,0.12);
  --gold-line:rgba(212,168,74,0.32);

  /* Severity — Konformista's canonical 6-level scheme */
  --sv-error:#c0533a;      /* red    */
  --sv-warning:#c67f2b;    /* orange */
  --sv-review:#c2a52e;     /* yellow */
  --sv-rebuilt:#2e9c8e;    /* teal   */
  --sv-info:#4f9155;       /* green  */
  --sv-place:#8a6cc0;      /* purple */

  /* Type */
  --display: 'Quicksand', system-ui, sans-serif;
  --sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --maxw: 1200px;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg0);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--gold); color: var(--gold-ink); }

*::-webkit-scrollbar { width: 11px; height: 11px; }
*::-webkit-scrollbar-track { background: var(--bg0); }
*::-webkit-scrollbar-thumb { background: rgba(165,154,134,0.22); border-radius: 6px; border: 3px solid var(--bg0); }
*::-webkit-scrollbar-thumb:hover { background: rgba(165,154,134,0.4); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: 120px 0; position: relative; }
.section--tight { padding: 80px 0; }
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }

/* ---------- type helpers ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.eyebrow--mut { color: var(--text-mut); }
.eyebrow--mut .dot { background: var(--text-mut); box-shadow: none; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: -0.01em; line-height: 1.05; color: var(--text); }
.h1 { font-size: clamp(40px, 6vw, 78px); font-weight: 300; letter-spacing: -0.02em; }
.h2 { font-size: clamp(32px, 4.2vw, 54px); font-weight: 300; }
.h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 400; }
.lead { font-family: var(--sans); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.6; color: var(--text-dim); max-width: 640px; text-wrap: pretty; }
.muted { color: var(--text-dim); }
.dim { color: var(--text-mut); }
.gold { color: var(--gold); }
.mono { font-family: var(--mono); }
.serif { font-family: var(--display); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 14px 22px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold-fill); color: var(--gold-ink); box-shadow: 0 0 0 rgba(212,168,74,0); }
.btn--gold:hover { background: var(--gold-fill-hi); box-shadow: 0 8px 30px rgba(212,168,74,0.22); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-hi); }
.btn--ghost:hover { border-color: var(--gold-line); color: var(--gold); background: var(--gold-soft); }
.btn--sm { padding: 10px 16px; font-size: 11px; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px; display: flex; align-items: center;
  background: var(--nav-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.scrolled { border-bottom-color: var(--border); background: var(--nav-bg-scrolled); }
.nav .wrap { display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand .word { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: 0.06em; color: var(--gold); }
.brand .beta { font-family: var(--mono); font-size: 8px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-mut); }
.nav .spacer { flex: 1; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim); transition: color .15s ease; position: relative; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -22px; height: 2px; background: var(--gold);
}
.nav-cta { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; background: none; border: 1px solid var(--border-hi); border-radius: var(--radius);
  color: var(--text); padding: 8px 10px; cursor: pointer; font-family: var(--mono); font-size: 11px; }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--text-dim); background: var(--bg1);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px 12px; display: inline-flex; align-items: center; gap: 8px;
}
.chip .tk { color: var(--gold); }

/* severity chip — canonical 6-level scheme */
.sev {
  font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px; border-radius: var(--radius);
  border: 1px solid; line-height: 1; white-space: nowrap;
}
.sev .d { width: 5px; height: 5px; border-radius: 50%; flex: none; }
.sev--error    { color: var(--sv-error);   border-color: color-mix(in oklab, var(--sv-error) 40%, transparent);   background: color-mix(in oklab, var(--sv-error) 10%, transparent); }
.sev--error .d { background: var(--sv-error);   box-shadow: 0 0 6px var(--sv-error); }
.sev--warning    { color: var(--sv-warning); border-color: color-mix(in oklab, var(--sv-warning) 40%, transparent); background: color-mix(in oklab, var(--sv-warning) 10%, transparent); }
.sev--warning .d { background: var(--sv-warning); box-shadow: 0 0 6px var(--sv-warning); }
.sev--review    { color: var(--sv-review);  border-color: color-mix(in oklab, var(--sv-review) 42%, transparent);  background: color-mix(in oklab, var(--sv-review) 11%, transparent); }
.sev--review .d { background: var(--sv-review);  box-shadow: 0 0 6px var(--sv-review); }
.sev--rebuilt    { color: var(--sv-rebuilt); border-color: color-mix(in oklab, var(--sv-rebuilt) 40%, transparent); background: color-mix(in oklab, var(--sv-rebuilt) 10%, transparent); }
.sev--rebuilt .d { background: var(--sv-rebuilt); box-shadow: 0 0 6px var(--sv-rebuilt); }
.sev--info    { color: var(--sv-info);    border-color: color-mix(in oklab, var(--sv-info) 40%, transparent);    background: color-mix(in oklab, var(--sv-info) 10%, transparent); }
.sev--info .d { background: var(--sv-info);    box-shadow: 0 0 6px var(--sv-info); }
.sev--place    { color: var(--sv-place);   border-color: color-mix(in oklab, var(--sv-place) 40%, transparent);   background: color-mix(in oklab, var(--sv-place) 10%, transparent); }
.sev--place .d { background: var(--sv-place);   box-shadow: 0 0 6px var(--sv-place); }

/* severity legend — the whole scheme as a reference block */
.sev-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 40px; }
.sev-legend .row { background: var(--bg1); padding: 20px 22px; display: grid; grid-template-columns: 108px 1fr; gap: 18px; align-items: start; }
.sev-legend .row .desc { font-size: 14px; color: var(--text-dim); line-height: 1.5; }
.sev-legend .row .desc b { color: var(--text); font-weight: 600; font-family: var(--sans); }

/* ---------- window chrome (app shot frame) ---------- */
.window {
  border-radius: 12px; overflow: hidden;
  background: var(--bg1); border: 1px solid var(--border-hi);
  box-shadow: var(--win-shadow);
}
.window .titlebar {
  height: 38px; display: flex; align-items: center; padding: 0 14px;
  background: linear-gradient(#1c1a17, #141210);
  border-bottom: 1px solid rgba(255,255,255,0.04); position: relative;
}
.window .lights { display: flex; gap: 8px; }
.window .lights i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.window .lights i:nth-child(1){ background:#ff5f57; }
.window .lights i:nth-child(2){ background:#febc2e; }
.window .lights i:nth-child(3){ background:#28c840; }
.window .titlebar .title {
  position: absolute; left: 0; right: 0; text-align: center;
  font-family: var(--mono); font-size: 12px; color: var(--title-ink);
  letter-spacing: 0.02em; pointer-events: none;
}
.window .screen { display: block; width: 100%; background: var(--bg0); }
.window image-slot { display: block; width: 100%; }
/* production: real screenshot fills the frame */
.window .screen img.shot { display: block; width: 100%; height: auto; }

/* labelled placeholder slot look (when empty, image-slot shows its own UI;
   we style a fallback caption strip under shots) */
.shot-cap {
  font-family: var(--mono); font-size: 11px; color: var(--text-mut);
  letter-spacing: 0.04em; margin-top: 14px; display: flex; gap: 8px; align-items: center;
}
.shot-cap .tk { color: var(--gold); }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.card {
  background: var(--bg1); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--border-hi); background: var(--bg2); }
.card .num { font-family: var(--display); font-weight: 300; font-size: 34px; color: var(--gold); line-height: 1; }
.card h3 { margin: 16px 0 10px; }
.card p { margin: 0; color: var(--text-dim); font-size: 15px; }

/* step (how it works) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.step { background: var(--bg1); padding: 32px; }
.step .kn { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.step .kn .n { font-family: var(--mono); font-size: 12px; color: var(--gold); letter-spacing: 0.1em; }
.step .kn .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); }
.step h3 { font-size: 24px; margin: 0 0 12px; }
.step p { margin: 0; color: var(--text-dim); font-size: 15px; }

/* catch list */
.catch-row {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: start;
  padding: 24px 4px; border-top: 1px solid var(--border);
}
.catch-row:last-child { border-bottom: 1px solid var(--border); }
.catch-row .body h3 { font-size: 20px; margin: 0 0 8px; font-family: var(--sans); font-weight: 600; }
.catch-row .body p { margin: 0; color: var(--text-dim); font-size: 15px; max-width: 640px; }
.catch-row .meta { font-family: var(--mono); font-size: 11px; color: var(--text-mut); text-align: right; letter-spacing: 0.04em; white-space: nowrap; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 64px 0 40px; background: var(--bg0); }
.footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-mut); margin: 0 0 18px; font-weight: 500; }
.footer a { display: block; color: var(--text-dim); font-size: 14px; padding: 5px 0; transition: color .15s ease; }
.footer a:hover { color: var(--gold); }
.footer .botline { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); font-family: var(--mono); font-size: 11px; color: var(--text-mut); letter-spacing: 0.04em; flex-wrap: wrap; gap: 12px; }

/* ---------- reveal ----------
   No-op by design: content is always visible. Earlier iterations hid content
   with opacity and animated it in, but backgrounded/throttled iframes pause
   animations and can strand content invisible. Reliability > choreography. */
.reveal, .js .reveal { opacity: 1 !important; transform: none !important; }
.reveal.d1 { } .reveal.d2 { } .reveal.d3 { }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- background texture ---------- */
.glow { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(80px); opacity: var(--glow-op); z-index: 0; }
.glow--gold { background: radial-gradient(circle, rgba(212,168,74,0.16), transparent 70%); }

/* ---------- pricing ---------- */
.page-head { padding: 150px 0 0; text-align: center; }
.note-band {
  display: inline-flex; align-items: center; gap: 12px; margin: 28px auto 0;
  background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: var(--radius);
  padding: 10px 16px; font-family: var(--mono); font-size: 12px; color: var(--gold-hi); letter-spacing: 0.02em;
}
.note-band .tag { font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 10px; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; align-items: stretch; }
.price {
  background: var(--bg1); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; position: relative;
  transition: border-color .18s ease, transform .18s ease;
}
.price:hover { border-color: var(--border-hi); }
.price--hi { border-color: var(--gold-line); background: linear-gradient(180deg, rgba(212,168,74,0.06), var(--bg1) 40%); }
.price .badge {
  position: absolute; top: -1px; right: 20px; transform: translateY(-50%);
  font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--gold-fill); color: var(--gold-ink); padding: 5px 10px; border-radius: var(--radius); white-space: nowrap;
}
.price .tier { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); }
.price .amt { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 4px; }
.price .amt .big { font-family: var(--display); font-weight: 400; font-size: 52px; line-height: 1; color: var(--text); letter-spacing: -0.01em; }
.price .amt .per { font-family: var(--mono); font-size: 12px; color: var(--text-mut); }
.price .blurb { color: var(--text-dim); font-size: 14px; margin: 4px 0 22px; min-height: 40px; }
.price .feats { list-style: none; margin: 0 0 28px; padding: 22px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 13px; flex: 1; }
.price .feats li { font-size: 14px; color: var(--text); display: flex; gap: 11px; align-items: flex-start; line-height: 1.45; }
.price .feats li::before { content: '+'; color: var(--gold); font-family: var(--mono); font-weight: 700; flex: none; }
.price .feats li.off { color: var(--text-mut); }
.price .feats li.off::before { content: '–'; color: var(--text-mut); }
.price .btn { width: 100%; justify-content: center; }

/* license terms strip */
.terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 24px; }
.terms .cell { background: var(--bg1); padding: 24px 26px; }
.terms .cell .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-mut); margin-bottom: 10px; }
.terms .cell .v { font-size: 15px; color: var(--text-dim); }

/* ---------- docs ---------- */
.doc-layout { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; }
.doc-nav { position: sticky; top: 96px; }
.doc-nav .grp { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-mut); margin: 0 0 12px; }
.doc-nav a { display: block; font-size: 14px; color: var(--text-dim); padding: 7px 0; border-left: 2px solid transparent; padding-left: 14px; margin-left: -16px; transition: color .15s, border-color .15s; }
.doc-nav a:hover { color: var(--text); }
.doc-nav a.active { color: var(--gold); border-left-color: var(--gold); }
.doc-body { max-width: 760px; }
.doc-section { padding-bottom: 64px; scroll-margin-top: 96px; }
.doc-section h2 { font-family: var(--display); font-weight: 400; font-size: 34px; margin: 0 0 8px; }
.doc-section h3 { font-family: var(--sans); font-weight: 600; font-size: 18px; margin: 32px 0 10px; }
.doc-section p { color: var(--text-dim); font-size: 16px; margin: 0 0 16px; }
.doc-section ul, .doc-section ol { color: var(--text-dim); font-size: 16px; padding-left: 22px; margin: 0 0 16px; }
.doc-section li { margin-bottom: 9px; }
.doc-section code { font-family: var(--mono); font-size: 0.86em; color: var(--gold-hi); background: var(--bg2); padding: 2px 6px; border-radius: var(--radius); }
.callout { background: var(--bg1); border: 1px solid var(--border); border-left: 2px solid var(--gold); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 16px; }
.callout .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.callout p { margin: 0; color: var(--text); font-size: 15px; }
.faq-item { border-top: 1px solid var(--border); padding: 22px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item h3 { margin: 0 0 8px; font-size: 17px; color: var(--text); }
.faq-item p { margin: 0; }

/* ---------- download ---------- */
.dl-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.dl-card { background: var(--bg1); border: 1px solid var(--border-hi); border-radius: var(--radius); padding: 32px; }
.dl-os { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.dl-os a, .dl-os div { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px;
  transition: border-color .15s, background .15s; }
.dl-os a:hover { border-color: var(--gold-line); background: var(--bg3); }
.dl-os .os-name { display: flex; align-items: center; gap: 14px; }
.dl-os .os-name .ic { width: 34px; height: 34px; border-radius: var(--radius); background: var(--bg0); border: 1px solid var(--border-hi);
  display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; color: var(--gold); }
.dl-os .os-name b { font-weight: 600; font-size: 15px; }
.dl-os .os-name span { display: block; font-family: var(--mono); font-size: 11px; color: var(--text-mut); }
.dl-os .go { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.dl-os .soon { color: var(--text-mut); }

/* ============================================================
   TWEAKABLE THEMES — driven by the Tweaks panel on the homepage
   data-theme (palette) · data-edges (radii) · data-atmos (ambiance)
   ============================================================ */

/* ----- Palette (light directions; dark = :root default) ----- */
[data-theme="paper"]{
  --bg0:#ece4d3; --bg1:#f6f0e4; --bg2:#fbf6ec; --bg3:#e7ddca;
  --border:rgba(58,44,18,0.12); --border-hi:rgba(58,44,18,0.22);
  --text:#2a2318; --text-dim:#6f6450; --text-mut:#a0937b;
  --gold:#946610; --gold-hi:#b1801c;
  --gold-soft:rgba(148,102,16,0.10); --gold-line:rgba(148,102,16,0.34);
  --warn:#946610; --info:#3a6f9c; --ok:#4c8a51; --err:#b14e2d;
  --nav-bg:rgba(246,240,228,0.82); --nav-bg-scrolled:rgba(246,240,228,0.93);
}
[data-theme="stone"]{
  --bg0:#e7e6e1; --bg1:#f2f1ec; --bg2:#f8f7f3; --bg3:#e0ded7;
  --border:rgba(35,33,26,0.12); --border-hi:rgba(35,33,26,0.22);
  --text:#23211c; --text-dim:#615e54; --text-mut:#928e82;
  --gold:#876613; --gold-hi:#a37d1a;
  --gold-soft:rgba(135,102,19,0.10); --gold-line:rgba(135,102,19,0.32);
  --warn:#876613; --info:#356690; --ok:#47844d; --err:#a5482a;
  --nav-bg:rgba(242,241,236,0.84); --nav-bg-scrolled:rgba(242,241,236,0.94);
}
[data-theme="cloud"]{
  --bg0:#f3f1ec; --bg1:#ffffff; --bg2:#faf8f4; --bg3:#eeebe3;
  --border:rgba(40,32,18,0.10); --border-hi:rgba(40,32,18,0.20);
  --text:#211d17; --text-dim:#645d4f; --text-mut:#9a917f;
  --gold:#9a6c14; --gold-hi:#b6831d;
  --gold-soft:rgba(154,108,20,0.09); --gold-line:rgba(154,108,20,0.30);
  --warn:#9a6c14; --info:#3a6f9c; --ok:#4c8a51; --err:#b14e2d;
  --nav-bg:rgba(255,255,255,0.78); --nav-bg-scrolled:rgba(255,255,255,0.9);
}

/* ----- Edges (square = :root 3px default) ----- */
[data-edges="soft"]  { --radius: 9px; }
[data-edges="round"] { --radius: 16px; }

/* ----- Atmosphere ----- */
[data-atmos="flat"]      { --glow-op: 0; --win-shadow: 0 0 0 1px var(--border-hi); }
[data-atmos="glow"]      { --glow-op: 0.5; }
[data-atmos="cinematic"] { --glow-op: 0.85; --win-shadow: 0 60px 160px rgba(0,0,0,0.7), 0 10px 36px rgba(0,0,0,0.5); }
html[data-atmos="cinematic"] body::after{
  content:''; position:fixed; inset:0; pointer-events:none; z-index:1;
  background: radial-gradient(125% 85% at 50% 32%, transparent 52%, rgba(0,0,0,0.42));
}

/* ---------- workflow: three movements ---------- */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; position: relative; }
.flow .phase { background: var(--bg1); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; }
.flow .phase .tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.flow .phase h3 { font-size: 23px; margin: 0 0 6px; }
.flow .phase .app { font-family: var(--mono); font-size: 11px; color: var(--text-mut); margin-bottom: 18px; }
.flow .phase ol { counter-reset: s; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.flow .phase ol li { counter-increment: s; position: relative; padding-left: 30px; font-size: 14px; color: var(--text-dim); line-height: 1.45; }
.flow .phase ol li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid var(--gold-line); color: var(--gold); font-family: var(--mono); font-size: 10px; display: flex; align-items: center; justify-content: center; }
.flow .phase ol li b { color: var(--text); font-weight: 600; }
.flow .phase.return { border-style: dashed; border-color: var(--gold-line); }

/* ---------- app family ---------- */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.app-card { background: var(--bg1); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: border-color .18s, background .18s; }
.app-card:hover { border-color: var(--border-hi); background: var(--bg2); }
.app-card .ico { width: 40px; height: 40px; border-radius: var(--radius); background: var(--bg0); border: 1px solid var(--border-hi);
  display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 15px; color: var(--gold); margin-bottom: 18px; }
.app-card h3 { font-family: var(--sans); font-weight: 600; font-size: 18px; margin: 0 0 4px; }
.app-card .role { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.app-card p { margin: 0; color: var(--text-dim); font-size: 14px; }
.app-card .free { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sv-info); border: 1px solid color-mix(in oklab, var(--sv-info) 40%, transparent); border-radius: var(--radius); padding: 3px 8px; }

/* ---------- feature split (image + text) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature.flip .fig { order: 2; }
.feature .body h3 { font-size: clamp(26px,3vw,36px); font-weight: 300; margin: 0 0 16px; }
.feature .body p { color: var(--text-dim); font-size: 16px; margin: 0 0 16px; max-width: 520px; }
.feature .body ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.feature .body ul li { display: flex; gap: 11px; font-size: 15px; color: var(--text); align-items: flex-start; }
.feature .body ul li::before { content: '+'; color: var(--gold); font-family: var(--mono); font-weight: 700; flex: none; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .section { padding: 84px 0; }
  .steps { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .terms, .grid[style*="1fr 1fr 1fr"] { grid-template-columns: 1fr !important; }
  .flow, .apps { grid-template-columns: 1fr; }
  .sev-legend { grid-template-columns: 1fr; }
  .feature, .feature.flip .fig { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .fig { order: 0; }
  .feature + .feature { margin-top: 56px; }
  .doc-layout { grid-template-columns: 1fr; gap: 32px; }
  .doc-nav { position: static; display: none; }
  .dl-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav-links, .nav-cta .btn--ghost { display: none; }
  .menu-btn { display: inline-block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg1); border-bottom: 1px solid var(--border); padding: 8px 32px 20px;
  }
  .nav.open .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav.open .nav-links a.active::after { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .catch-row { grid-template-columns: 1fr; gap: 10px; }
  .catch-row .meta { text-align: left; }
  .footer .cols { grid-template-columns: 1fr; }
  .page-head { padding-top: 120px; }
}
