/* ============================================================
   OFFER CORE — shared design system for the productized landings
   (slate ground, amber signal, Archivo / IBM Plex)
   Pages link this once and add only their own demo-specific CSS/JS.
   ============================================================ */
:root {
    --void: #0d1116;
    --void-2: #10161c;
    --panel: #131a21;
    --panel-hi: #172029;
    --line: #1f2a33;
    --line-soft: #18212a;
    --paper: #e9eef3;
    --paper-dim: #a3b1be;
    --dim: #6c7b8a;
    --amber: #ffb000;
    --amber-soft: rgba(255, 176, 0, 0.12);
    --amber-line: rgba(255, 176, 0, 0.32);
    --green: #3fbf74;
    --green-soft: rgba(63, 191, 116, 0.12);
    --red: #ff5d5d;
    --red-soft: rgba(255, 93, 93, 0.12);
    --display: "Archivo", system-ui, sans-serif;
    --sans: "IBM Plex Sans", system-ui, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, monospace;
    --gutter: clamp(18px, 5vw, 56px);
    --maxw: 1200px;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--void);
    color: var(--paper);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
::selection { background: var(--amber); color: #0d1116; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }

/* ── top bar ─────────────────────────────────────────── */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line-soft);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dim);
}
.topbar .brand { display: flex; align-items: center; gap: 10px; color: var(--paper-dim); }
.topbar .brand svg { display: block; flex: none; }
.topbar a { color: var(--paper-dim); text-decoration: none; white-space: nowrap; }
.topbar a:hover { color: var(--amber); }

/* ── hero ────────────────────────────────────────────── */
.hero { padding: clamp(48px, 8vw, 100px) 0 clamp(36px, 5vw, 64px); }
.kicker {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
}
.kicker::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--amber); animation: blink 2.4s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
h1 {
    font-family: var(--display);
    font-variation-settings: "wdth" 108;
    font-weight: 780;
    font-size: clamp(36px, 5.4vw, 68px);
    line-height: 1.03;
    letter-spacing: -0.015em;
    margin: 0 0 22px;
    max-width: 21ch;
    text-wrap: balance;
}
h1 .hl { color: var(--amber); }
.sub {
    font-size: clamp(16px, 1.6vw, 19px);
    color: var(--paper-dim);
    max-width: 60ch;
    margin: 0 0 32px;
    line-height: 1.65;
}
.sub strong { color: var(--paper); font-weight: 600; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.06em;
    text-decoration: none;
    padding: 15px 28px;
    border-radius: 8px;
    border: 1px solid var(--line);
    color: var(--paper);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
        border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
    cursor: pointer;
    background: transparent;
    min-height: 48px;
}
.btn-fill { background: var(--amber); border-color: var(--amber); color: #0d1116; font-weight: 600; }
.btn-fill:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255, 176, 0, 0.25); }
.btn-ghost:hover { border-color: var(--amber-line); color: var(--amber); }

/* ── demo shell (browser-chrome frame) ───────────────── */
.demo-shell {
    margin-top: clamp(36px, 5vw, 60px);
    background: var(--void-2);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}
.demo-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line-soft);
    background: var(--panel);
    font-family: var(--mono);
    font-size: 11px;
    color: var(--dim);
    letter-spacing: 0.08em;
}
.demo-bar .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.demo-bar .title { margin-left: 10px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-bar .live { margin-left: auto; color: var(--green); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.demo-bar .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: blink 1.6s infinite; font-style: normal; flex: none; }
.demo-foot {
    border-top: 1px solid var(--line-soft);
    padding: 12px 18px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--dim);
    letter-spacing: 0.06em;
    align-items: center;
}
.demo-foot b { color: var(--paper); font-weight: 500; }
.demo-foot .up { color: var(--green); }
.demo-foot .warn { color: var(--red); }
.replay {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--dim);
    font: inherit;
    cursor: pointer;
    letter-spacing: inherit;
    text-transform: uppercase;
    padding: 6px 4px;
}
.replay:hover { color: var(--amber); }

/* ── stats strip ─────────────────────────────────────── */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    border: 1px solid var(--line);
    border-radius: 14px;
    margin: clamp(40px, 6vw, 72px) 0 0;
    overflow: hidden;
}
.stat { padding: 26px 24px; border-right: 1px solid var(--line-soft); }
.stat:last-child { border-right: 0; }
.stat .n { font-family: var(--display); font-weight: 750; font-variation-settings: "wdth" 106; font-size: clamp(26px, 3vw, 38px); color: var(--amber); letter-spacing: -0.01em; }
.stat .l { font-size: 13px; color: var(--paper-dim); margin-top: 4px; line-height: 1.5; }

/* ── generic sections ────────────────────────────────── */
section { padding: clamp(48px, 7vw, 92px) 0 0; }
.sec-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); margin: 0 0 14px; }
h2 {
    font-family: var(--display);
    font-variation-settings: "wdth" 106;
    font-weight: 730;
    font-size: clamp(26px, 3.5vw, 42px);
    letter-spacing: -0.015em;
    line-height: 1.1;
    margin: 0 0 18px;
    max-width: 24ch;
    text-wrap: balance;
}
.sec-sub { color: var(--paper-dim); max-width: 62ch; margin: 0 0 34px; font-size: clamp(15px, 1.5vw, 17px); line-height: 1.65; }

/* problem / pain cards */
.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.pain { background: var(--void-2); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.pain .t { font-family: var(--mono); font-size: 12px; color: var(--amber); letter-spacing: 0.08em; margin-bottom: 10px; }
.pain p { margin: 0; font-size: 14.5px; color: var(--paper-dim); }
.pain p b { color: var(--paper); font-weight: 600; }

/* how / steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; counter-reset: step; }
.step { border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: var(--void-2); }
.step::before {
    counter-increment: step;
    content: "0" counter(step);
    font-family: var(--mono);
    font-size: 12px;
    color: var(--amber);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 14px;
}
.step h3 { font-family: var(--display); font-weight: 650; font-size: 18px; margin: 0 0 8px; }
.step p { margin: 0; font-size: 14px; color: var(--paper-dim); }

/* two-col compare */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-card { border: 1px solid var(--line); border-radius: 12px; padding: 22px; background: var(--void-2); }
.compare-card .cc-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 14px; }
.compare-card.bad .cc-label { color: var(--red); }
.compare-card.good .cc-label { color: var(--green); }
.compare-card p { font-size: 14px; line-height: 1.7; margin: 0 0 10px; color: var(--paper-dim); }
.compare-card.good p { color: var(--paper); }
.compare-card p:last-child { margin-bottom: 0; }
.cc-note { font-family: var(--mono); font-size: 10.5px; color: var(--dim); margin-top: 14px; letter-spacing: 0.04em; }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.price-card { border: 1px solid var(--line); border-radius: 14px; padding: 28px; background: var(--void-2); display: flex; flex-direction: column; }
.price-card.feature { border-color: var(--amber-line); background: linear-gradient(180deg, var(--panel), var(--void-2)); }
.price-card .pc-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
.price-card.feature .pc-tag { color: var(--amber); }
.price-card .amount { font-family: var(--display); font-weight: 780; font-variation-settings: "wdth" 106; font-size: clamp(32px, 3.4vw, 44px); letter-spacing: -0.02em; }
.price-card .amount span { font-size: 15px; color: var(--dim); font-weight: 500; font-family: var(--sans); letter-spacing: 0; }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 26px; flex: 1; }
.price-card li { font-size: 14px; color: var(--paper-dim); padding: 8px 0 8px 26px; position: relative; border-bottom: 1px solid var(--line-soft); }
.price-card li:last-child { border-bottom: 0; }
.price-card li::before { content: "→"; position: absolute; left: 0; color: var(--amber); font-family: var(--mono); font-size: 12px; }
.guarantee {
    border: 1px solid var(--amber-line);
    background: var(--amber-soft);
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 24px;
    font-size: 15px;
    color: var(--paper);
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.guarantee .g-mark { font-family: var(--mono); color: var(--amber); font-size: 18px; line-height: 1.2; flex: none; }

/* faq */
details { border-bottom: 1px solid var(--line); }
summary {
    cursor: pointer;
    list-style: none;
    padding: 20px 0;
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(16px, 1.6vw, 19px);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: baseline;
    transition: color 0.2s;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); color: var(--dim); font-size: 18px; flex: none; transition: transform 0.25s var(--ease), color 0.2s; }
details[open] summary::after { transform: rotate(45deg); color: var(--amber); }
summary:hover { color: var(--amber); }
details .a { padding: 0 0 22px; color: var(--paper-dim); font-size: 15px; max-width: 70ch; margin: 0; line-height: 1.65; }

/* who */
.who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.who-col { border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: var(--void-2); }
.who-col h3 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 16px; }
.who-col.yes h3 { color: var(--green); }
.who-col.no h3 { color: var(--red); }
.who-col ul { list-style: none; padding: 0; margin: 0; }
.who-col li { font-size: 14.5px; color: var(--paper-dim); padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.who-col li:last-child { border: 0; }

/* final cta */
.final { padding: clamp(56px, 9vw, 110px) 0; text-align: center; }
.final h2 { margin-left: auto; margin-right: auto; }
.final .sub { margin-left: auto; margin-right: auto; }
.final .hero-cta { justify-content: center; }
.cal-note { font-family: var(--mono); font-size: 11.5px; color: var(--dim); margin-top: 18px; letter-spacing: 0.06em; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 26px 0 44px; margin-top: 40px; }
.foot { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.foot a { color: var(--paper-dim); text-decoration: none; }
.foot a:hover { color: var(--amber); }

/* ── responsive ──────────────────────────────────────── */
@media (max-width: 860px) {
    .compare-grid, .who-grid { grid-template-columns: 1fr; }
    .stat { border-right: 0; border-bottom: 1px solid var(--line-soft); }
    .stat:last-child { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
}
