/* Basel Hub — marketing home (private preview). Builds on /assets/core.css tokens.
   Everything here is prefixed s- (page), v- (UI vignettes), t-/m- (thobe drawing). */

:root {
  --ink-3: #66736b;                  /* page-local: small hints need AA on paper */
  --s-accent: var(--green);          /* green used as text / stroke */
  --s-brass-ink: #86590f;            /* brass as small text on paper */
  --s-deep: #153a2d;                 /* dark band */
  --s-deep-ink: #f3f0e7;
  --s-deep-ink-2: rgba(243, 240, 231, .76);
  --s-deep-line: rgba(243, 240, 231, .16);
  --s-grid: rgba(29, 74, 57, .06);
  --s-header-bg: rgba(246, 244, 238, .86);
  --s-header-h: 64px;
  --s-wrap: 1120px;
  --s-gutter: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eee9; --ink-2: #b6c2ba; --ink-3: #8d9a91;
    --paper: #0e1612; --surface: #151f1a; --surface-2: #1b2821;
    --line: #26362e; --line-strong: #3a4e44;
    --green: #2c7559; --green-600: #348867; --green-50: #162a21;
    --brass: #d6a65c; --brass-50: #2e2615;
    --ok: #74d0a0; --ok-50: #143024;
    --warn: #e6ab4e; --warn-50: #33260f;
    --bad: #f19088; --bad-50: #3a1a17;
    --info: #86bbe8; --info-50: #14283a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .28);
    --s-accent: #8acdac;
    --s-brass-ink: var(--brass);
    --s-deep: #101f19;
    --s-deep-line: rgba(243, 240, 231, .12);
    --s-grid: rgba(138, 205, 172, .06);
    --s-header-bg: rgba(14, 22, 18, .84);
  }
}

/* ── base ─────────────────────────────────────────────── */
html { scroll-padding-top: calc(var(--s-header-h) + 20px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.s-body { font-size: 16px; line-height: 1.75; overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.s-body a { color: var(--s-accent); }
.s-body .btn.primary { color: #fff; }
.s-body :focus-visible { outline: 3px solid color-mix(in srgb, var(--s-accent) 55%, transparent); outline-offset: 3px; }

.s-wrap { width: 100%; max-width: calc(var(--s-wrap) + 2 * var(--s-gutter)); margin-inline: auto; padding-inline: var(--s-gutter); }

.s-skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); font-weight: 600; text-decoration: none; }
.s-skip:focus { top: 12px; }

.s-ribbon { background: var(--brass-50); color: var(--s-brass-ink); text-align: center; font-size: .8rem; font-weight: 600; padding: 5px 12px; letter-spacing: 0; }

/* ── header ───────────────────────────────────────────── */
.s-header { position: sticky; top: 0; z-index: 40; background: var(--s-header-bg); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s var(--ease); }
.s-header.is-stuck { border-bottom-color: var(--line); }
.s-header-in { display: flex; align-items: center; gap: 24px; min-height: var(--s-header-h); }
.s-brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink) !important; white-space: nowrap; }
.s-wordmark { font-weight: 800; font-size: 1.18rem; letter-spacing: -.01em; color: var(--ink); }
.s-wordmark::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); margin-left: 3px; }
.s-brand-desc { font-size: .84rem; font-weight: 500; color: var(--ink-2); padding-inline-start: 10px; border-inline-start: 1px solid var(--line-strong); line-height: 1.2; }
.s-nav { display: none; gap: 4px; margin-inline-start: auto; }
.s-nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .93rem; padding: 8px 12px; border-radius: 8px; transition: color .15s var(--ease), background .15s var(--ease); }
.s-nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.s-cta { margin-inline-start: auto; min-height: 40px; }
@media (min-width: 920px) { .s-nav { display: flex; } .s-cta { margin-inline-start: 8px; } }
@media (max-width: 420px) { .s-brand-desc { font-size: .78rem; } .s-header-in { gap: 12px; } }

/* reading progress — progressive enhancement only */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .s-header::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: var(--brass); transform: scaleX(0); transform-origin: right center; animation: s-progress linear both; animation-timeline: scroll(root block); }
    @keyframes s-progress { to { transform: scaleX(1); } }
  }
}

/* ── type ─────────────────────────────────────────────── */
.s-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .86rem; font-weight: 600; color: var(--s-brass-ink); margin-bottom: 14px; }
.s-body .badge.brass { color: var(--s-brass-ink); }
.s-eyebrow::before { content: ""; width: 26px; border-top: 2px dashed currentColor; opacity: .8; }
.s-body h1 { font-size: clamp(2.05rem, 1.2rem + 3.9vw, 3.55rem); line-height: 1.28; font-weight: 800; letter-spacing: -.012em; text-wrap: balance; }
.s-h1-accent { color: var(--s-accent); display: block; }
.s-body h2 { font-size: clamp(1.55rem, 1.15rem + 1.9vw, 2.3rem); line-height: 1.35; font-weight: 700; text-wrap: balance; }
.s-body h3 { font-size: 1.12rem; line-height: 1.45; }
.s-lead { font-size: clamp(1.03rem, .95rem + .45vw, 1.2rem); color: var(--ink-2); max-width: 34em; margin-top: 20px; line-height: 1.85; }
.s-sub { color: var(--ink-2); max-width: 38em; margin-top: 12px; font-size: 1.04rem; }

.s-section { padding-block: clamp(64px, 9vw, 116px); }
.s-section-alt { background: color-mix(in srgb, var(--surface-2) 55%, var(--paper)); border-block: 1px solid var(--line); }
.s-head { margin-bottom: clamp(28px, 4vw, 48px); }
.s-illus-note { margin-top: 18px; }

/* ── hero ─────────────────────────────────────────────── */
.s-hero { padding-block: clamp(36px, 6vw, 84px) clamp(48px, 7vw, 96px); }
.s-hero-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 920px) { .s-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.s-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.s-btn-lg { min-height: 50px; padding-inline: 24px; font-size: 1.02rem; border-radius: 11px; }
.s-hero-points { list-style: none; margin: 34px 0 0; padding: 22px 0 0; border-top: 1px dashed var(--line-strong); display: flex; flex-wrap: wrap; gap: 8px 26px; color: var(--ink-2); font-size: .93rem; font-weight: 500; }
.s-hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.s-hero-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }

.s-hero-art { margin: 0; justify-self: center; width: 100%; max-width: 460px; background:
    linear-gradient(var(--s-grid) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--s-grid) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--surface);
  border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 22px 18px 14px; position: relative; }
.s-hero-art::before { content: ""; position: absolute; inset: 8px; border: 1px dashed color-mix(in srgb, var(--brass) 45%, transparent); border-radius: 15px; pointer-events: none; }
.s-hero-art svg { display: block; width: 100%; height: auto; aspect-ratio: 500 / 548; overflow: visible; font-family: var(--font); }
.s-hero-art figcaption { text-align: center; font-size: .82rem; color: var(--ink-3); padding-top: 10px; position: relative; }

.t-body { fill: var(--surface); stroke: var(--s-accent); stroke-width: 2.2; stroke-linejoin: round; }
.t-collar { fill: var(--green-50); stroke: var(--s-accent); stroke-width: 2; stroke-linejoin: round; }
.t-seam { fill: none; stroke: var(--line-strong); stroke-width: 1.4; stroke-dasharray: 5 5; stroke-linecap: round; }
.t-detail { fill: none; stroke: var(--s-accent); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; opacity: .75; }
.t-button { fill: var(--surface); stroke: var(--s-accent); stroke-width: 1.4; }
.m-guide path { fill: none; stroke: var(--brass); stroke-width: 1; stroke-dasharray: 2 5; opacity: .55; }
.m-line path { fill: none; stroke: var(--brass); stroke-width: 1.8; stroke-linecap: round; }
.m-line circle { fill: var(--brass); }
.m-dash path { stroke-dasharray: 7 5; }
.m-label rect { fill: var(--surface); stroke: var(--brass); stroke-width: 1.2; }
.m-label text { fill: var(--ink); font-size: 14.5px; font-weight: 600; text-anchor: middle; }

@media (prefers-reduced-motion: no-preference) {
  .m-line { transform-box: fill-box; transform-origin: center; animation: m-grow .8s var(--ease) both; animation-delay: var(--d, 0ms); }
  .m-label { transform-box: fill-box; transform-origin: center; animation: m-pop .55s var(--ease) both; animation-delay: var(--d, 0ms); }
  .m-guide { animation: m-fade .8s var(--ease) .2s both; }
  @keyframes m-grow { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
  @keyframes m-pop { from { opacity: 0; transform: translateY(6px) scale(.92); } to { opacity: 1; transform: none; } }
  @keyframes m-fade { from { opacity: 0; } }
}

/* ── story ────────────────────────────────────────────── */
.s-rail { display: none; }
.s-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.s-step { display: grid; gap: 20px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.s-step-text { max-width: 30em; }
.s-step-n { display: inline-block; font-size: .86rem; font-weight: 700; color: var(--s-brass-ink); border: 1px solid color-mix(in srgb, var(--brass) 50%, transparent); border-radius: 999px; padding: 1px 11px; margin-bottom: 12px; }
.s-step-text h3 { font-size: clamp(1.25rem, 1.05rem + .9vw, 1.7rem); margin-bottom: 8px; }
.s-step-text p { color: var(--ink-2); }
.s-step-fig { margin: 0; min-width: 0; }
@media (min-width: 720px) {
  .s-step { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 36px; padding: 32px; }
}

/* enhanced: one sticky visual, steps scroll past (class added by site.js on wide screens) */
.s-story.is-enhanced { position: relative; }
.s-story.is-enhanced .s-steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(40px, 7vw, 96px); row-gap: 0; }
.s-story.is-enhanced .s-step { display: contents; }
.s-story.is-enhanced .s-step-text { grid-column: 1; min-height: min(72vh, 620px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-block: 32px; opacity: .38; transition: opacity .4s var(--ease); }
.s-story.is-enhanced .s-step.is-active .s-step-text { opacity: 1; }
.s-story.is-enhanced .s-step:nth-child(1) .s-step-text { grid-row: 1; }
.s-story.is-enhanced .s-step:nth-child(2) .s-step-text { grid-row: 2; }
.s-story.is-enhanced .s-step:nth-child(3) .s-step-text { grid-row: 3; }
.s-story.is-enhanced .s-step:nth-child(4) .s-step-text { grid-row: 4; }
.s-story.is-enhanced .s-step:nth-child(5) .s-step-text { grid-row: 5; }
.s-story.is-enhanced .s-step-fig { grid-column: 2; grid-row: 1 / span 5; align-self: start; position: sticky; top: calc(var(--s-header-h) + 24px); height: calc(100vh - var(--s-header-h) - 48px); max-height: 720px; display: grid; place-items: center; padding-top: 56px; opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .45s var(--ease), transform .45s var(--ease); pointer-events: none; will-change: opacity, transform; }
.s-story.is-enhanced .s-step.is-active .s-step-fig { opacity: 1; transform: none; pointer-events: auto; }
.s-story.is-enhanced .s-rail { display: flex; position: absolute; z-index: 2; inset-block: 0; inset-inline-end: 0; width: calc(50% - clamp(20px, 3.5vw, 48px)); pointer-events: none; align-items: flex-start; }
.s-story.is-enhanced .s-rail { justify-content: center; gap: 2px; }
.s-story.is-enhanced .s-rail > span { position: sticky; top: calc(var(--s-header-h) + 32px); font-size: .82rem; font-weight: 600; color: var(--ink-3); padding: 6px 12px; border-bottom: 2px solid var(--line); transition: color .3s var(--ease), border-color .3s var(--ease); }
.s-story.is-enhanced .s-rail > span.is-active { color: var(--s-accent); border-bottom-color: var(--brass); }
.s-story.is-enhanced .v-card { width: min(100%, 430px); }

/* ── vignettes ────────────────────────────────────────── */
.v-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 18px; font-size: .93rem; line-height: 1.6; width: 100%; max-width: 430px; margin-inline: auto; }
.s-step .v-card { background: color-mix(in srgb, var(--surface) 70%, var(--paper)); }
.s-story.is-enhanced .v-card { background: var(--surface); }
.v-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.v-head strong { display: block; font-size: 1.05rem; }
.v-kicker { display: block; font-size: .78rem; color: var(--ink-3); font-weight: 500; }
.v-phone { font-weight: 600; color: var(--ink-2); background: var(--surface-2); padding: 3px 10px; border-radius: 8px; font-size: .88rem; white-space: nowrap; }
.v-foot { margin-top: 14px; font-size: .8rem; color: var(--ink-3); }

.v-people, .v-pieces, .v-deliver, .v-versions { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.v-people li { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; }
.v-avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--green-50); color: var(--s-accent); font-weight: 700; }
.v-who { flex: 1; min-width: 0; line-height: 1.3; }
.v-who strong { display: block; }
.v-who small { color: var(--ink-3); font-size: .78rem; }

.v-measures { margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.v-measures div { background: var(--surface-2); border-radius: 10px; padding: 8px 4px; text-align: center; }
.v-measures dt { font-size: .74rem; color: var(--ink-2); }
.v-measures dd { margin: 0; font-size: 1.08rem; font-weight: 700; display: block; }
.v-versions { margin-top: 14px; gap: 0; }
.v-versions li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 12px 7px 2px; font-size: .86rem; color: var(--ink-2); border-inline-start: 2px solid var(--line); }
.v-versions li.is-current { color: var(--ink); font-weight: 600; border-inline-start-color: var(--brass); }

.v-stages { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; font-size: .72rem; color: var(--ink-2); text-align: center; font-weight: 600; margin-bottom: 12px; }
.v-pieces { gap: 12px; }
.v-piece-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; font-weight: 500; }
.v-track { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.v-track i { height: 6px; border-radius: 3px; background: var(--surface-2); }
.v-track[data-at="2"] i:nth-child(-n+2), .v-track[data-at="3"] i:nth-child(-n+3) { background: var(--info); }
.v-track[data-at="6"] i { background: var(--ok); }

.v-deliver li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.v-deliver li > span:nth-child(2) { flex: 1; font-weight: 500; }
.v-check { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-strong); position: relative; }
.v-check.is-on { background: var(--ok); border-color: var(--ok); }
.v-check.is-on::after { content: ""; position: absolute; inset: 3px 6px 6px 6px; border: solid var(--surface); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.v-totals { margin: 12px 0 0; display: grid; gap: 4px; }
.v-totals div { display: flex; justify-content: space-between; gap: 12px; }
.v-totals dt { color: var(--ink-2); }
.v-totals dd { margin: 0; }
.v-totals .is-strong { margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--line-strong); font-weight: 700; }
.v-totals .is-strong dt { color: var(--ink); }
.v-count { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.v-count div { background: var(--surface-2); border-radius: 10px; padding: 9px 8px; display: grid; gap: 2px; text-align: center; }
.v-count div > span:first-child { font-size: .76rem; color: var(--ink-2); }
.v-count .money { font-size: .95rem; }
.v-count .money small { display: none; }
.v-count .is-diff { background: var(--warn-50); color: var(--warn); }
.v-count .is-diff > span:first-child { color: inherit; }

/* ── pains ────────────────────────────────────────────── */
.s-pains { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .s-pains { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.s-pain { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: grid; gap: 14px; align-content: start; }
.s-pain-q { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); font-weight: 700; line-height: 1.5; color: var(--ink); }
.s-pain-a { color: var(--ink-2); padding-top: 14px; border-top: 1px dashed var(--line-strong); position: relative; }
.s-pain-a::before { content: ""; position: absolute; top: -4px; inset-inline-start: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }

/* ── money (deep band) ────────────────────────────────── */
.s-deep { background: var(--s-deep); color: var(--s-deep-ink); }
.s-deep h2 { color: var(--s-deep-ink); }
.s-deep .s-sub { color: var(--s-deep-ink-2); }
.s-deep .s-eyebrow { color: #dcb574; }
.s-money-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 960px) { .s-money-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.s-rules { list-style: none; margin: 28px 0 0; padding: 0; display: grid; }
.s-rules li { padding: 14px 0; border-top: 1px solid var(--s-deep-line); color: var(--s-deep-ink-2); font-size: .98rem; }
.s-rules strong { display: block; color: var(--s-deep-ink); font-weight: 600; }

.s-report { margin: 0; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .28); min-width: 0; }
.s-report-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.s-report-chips { margin-bottom: 16px; }
.s-report-chips .chip { cursor: default; display: inline-flex; align-items: center; min-height: 32px; font-size: .84rem; padding: 0 12px; }
.s-report-chips .chip.active { color: #fff; }
.s-report-stats { display: grid; gap: 8px; }
@media (min-width: 560px) { .s-report-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.s-stat { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 2px; min-width: 0; }
.s-stat.is-open { border-color: var(--s-accent); box-shadow: inset 0 -3px 0 var(--s-accent); }
.s-stat-label { font-size: .8rem; color: var(--ink-2); font-weight: 500; }
.s-stat-value { font-size: 1.28rem; font-weight: 700; text-align: end; line-height: 1.35; }
.s-stat-note { font-size: .74rem; color: var(--ink-3); }
.s-drill { margin-top: 14px; background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
.s-drill-title { font-size: .84rem; font-weight: 600; margin-bottom: 6px; }
.s-drill-tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.s-drill-tbl th { text-align: start; font-weight: 500; color: var(--ink-3); font-size: .76rem; padding: 4px 0; }
.s-drill-tbl td { padding: 7px 0; border-top: 1px solid var(--line); }
.s-drill-tbl .end { text-align: end; }
.s-drill-tbl tfoot td { font-weight: 700; border-top: 1px solid var(--line-strong); }

/* ── roles / split layout ─────────────────────────────── */
.s-split { display: grid; gap: clamp(8px, 4vw, 64px); }
@media (min-width: 920px) {
  .s-split { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
  .s-head-side { position: sticky; top: calc(var(--s-header-h) + 32px); margin-bottom: 0; }
}
.s-callout { margin-top: 22px; padding: 14px 16px; background: var(--green-50); color: var(--ink); border-inline-start: 3px solid var(--s-accent); border-radius: 10px; font-weight: 500; max-width: 30em; }
.s-roles { margin: 0; display: grid; }
.s-roles > div { display: grid; gap: 4px 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.s-roles > div:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 560px) { .s-roles > div { grid-template-columns: 8.5em minmax(0, 1fr); align-items: baseline; } }
.s-roles dt { font-weight: 700; font-size: 1.1rem; }
.s-roles dd { margin: 0; color: var(--ink-2); }

/* ── tenancy ──────────────────────────────────────────── */
.s-addr { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); max-width: 620px; direction: ltr; }
.s-addr-dots { display: none; gap: 6px; }
.s-addr-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
@media (min-width: 480px) { .s-addr-dots { display: inline-flex; } }
.s-addr-bar { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: var(--surface-2); border-radius: 10px; padding: 9px 14px; font-weight: 600; font-size: clamp(.92rem, .8rem + .6vw, 1.1rem); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.s-lock { flex: none; width: 11px; height: 9px; border-radius: 2px; background: var(--ok); position: relative; margin-top: 4px; }
.s-lock::before { content: ""; position: absolute; left: 2px; right: 2px; bottom: 100%; height: 6px; border: 1.6px solid var(--ok); border-bottom: 0; border-radius: 5px 5px 0 0; }
.s-three { list-style: none; margin: clamp(28px, 4vw, 44px) 0 0; padding: 0; display: grid; gap: 24px; }
@media (min-width: 760px) { .s-three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; } }
.s-three li { padding-top: 18px; border-top: 2px solid var(--s-accent); }
.s-three h3 { margin-bottom: 6px; }
.s-three p { color: var(--ink-2); }

/* ── scope ────────────────────────────────────────────── */
.s-scope { display: grid; gap: 20px; }
@media (min-width: 820px) { .s-scope { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; } }
.s-scope-col { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.s-scope-next { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.s-scope-col h3 { margin-bottom: 16px; }
.s-scope-col .badge { font-size: .86rem; padding: 4px 13px; }
.s-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.s-list li { position: relative; padding: 10px 0; padding-inline-start: 30px; border-top: 1px solid var(--line); }
.s-list li:first-child { border-top: 0; }
.s-list li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 17px; }
.s-list-ok li::before { width: 13px; height: 7px; border: solid var(--ok); border-width: 0 0 2.2px 2.2px; transform: rotate(-45deg); }
.s-list-next li { color: var(--ink-2); }
.s-list-next li::before { width: 12px; height: 12px; top: 18px; border: 2px dashed var(--warn); border-radius: 50%; }
@media (min-width: 560px) { .s-list-ok { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; } .s-list-ok li:nth-child(2) { border-top: 0; } }
.s-scope-next .hint { margin-top: 16px; }

/* ── trial / pricing ──────────────────────────────────── */
.s-trial { display: grid; gap: 28px; align-items: center; }
@media (min-width: 920px) { .s-trial { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; } }
.s-invite { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.s-invite-label { font-weight: 600; }
.s-copy { display: flex; align-items: center; gap: 10px; border: 1px dashed var(--brass); background: var(--brass-50); border-radius: 12px; padding: 10px 14px; }
.s-copy-text { flex: 1; min-width: 0; font-weight: 700; font-size: 1.04rem; color: var(--ink); -webkit-user-select: all; user-select: all; }
.s-copy .btn { flex: none; }
.s-copy-status { min-height: 1.5em; }
.s-copy-status:empty { display: block; }

/* ── faq ──────────────────────────────────────────────── */
.s-faq { border-top: 1px solid var(--line); }
.s-faq details { border-bottom: 1px solid var(--line); }
.s-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 2px; font-weight: 600; font-size: 1.08rem; }
.s-faq summary::-webkit-details-marker { display: none; }
.s-faq summary::after { content: ""; flex: none; width: 9px; height: 9px; border: solid var(--ink-3); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .25s var(--ease); margin-inline: 6px; }
.s-faq details[open] summary::after { transform: rotate(-135deg); }
.s-faq summary:hover { color: var(--s-accent); }
.s-faq details p { color: var(--ink-2); padding: 0 2px 22px; max-width: 40em; }

/* ── footer ───────────────────────────────────────────── */
.s-footer { border-top: 1px solid var(--line); padding-block: 44px 32px; background: var(--paper); }
.s-footer-in { display: grid; gap: 28px; }
@media (min-width: 820px) { .s-footer-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } .s-footer-note { grid-column: 1 / -1; } }
.s-footer-brand p { color: var(--ink-2); margin-top: 8px; font-size: .93rem; }
.s-footer-nav { display: flex; flex-wrap: wrap; gap: 4px 6px; align-content: start; }
@media (min-width: 820px) { .s-footer-nav { justify-content: flex-end; } }
.s-footer-nav a { color: var(--ink-2); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: .93rem; }
.s-footer-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.s-footer-note { font-size: .82rem; color: var(--ink-3); padding-top: 20px; border-top: 1px dashed var(--line-strong); }

/* ── dialog ───────────────────────────────────────────── */
.s-dialog { background: var(--surface); color: var(--ink); width: min(480px, calc(100vw - 24px)); }
.s-dialog h2 { font-size: 1.2rem; }
.s-dialog[open] { animation: s-dialog-in .28s var(--ease); }
.s-dialog::backdrop { background: rgba(10, 18, 14, .55); }
@keyframes s-dialog-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ── reveal on scroll (only armed by site.js; visible by default) ── */
.s-reveal { transition: opacity .6s var(--ease), transform .6s var(--ease); }
.s-reveal.is-pre { opacity: 0; transform: translateY(16px); }
.s-pains .s-reveal:nth-child(2), .s-roles .s-reveal:nth-child(2) { transition-delay: 60ms; }
.s-pains .s-reveal:nth-child(3), .s-roles .s-reveal:nth-child(3) { transition-delay: 120ms; }
.s-pains .s-reveal:nth-child(4), .s-roles .s-reveal:nth-child(4) { transition-delay: 180ms; }
.s-roles .s-reveal:nth-child(5) { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  .s-reveal, .s-reveal.is-pre { opacity: 1; transform: none; transition: none; }
  .m-line, .m-label, .m-guide, .s-dialog[open] { animation: none; }
  .s-story.is-enhanced .s-step-fig, .s-story.is-enhanced .s-step-text { transition: none; transform: none; }
}

@media print {
  .s-header { position: static; }
  .s-ribbon, .s-cta, .s-actions { display: none; }
}
