/* Sales website. Uses the app's design tokens (app/css/tokens.css) and self-hosted fonts — same look as the product.
   Design rules (Design C): subtle borders over shadows, restrained radius, no gradients/glow, motion <= 180 ms. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-height) + var(--space-4)); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: var(--text-body); line-height: 1.6; overflow-wrap: break-word; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
svg { flex: 0 0 auto; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-xs); }
.u-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.s-wrap { width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-5); }
.s-wrap--narrow { max-width: 820px; }
.s-skip { position: absolute; left: var(--space-4); top: -100px; z-index: 100; padding: var(--space-2) var(--space-4); background: var(--accent); color: var(--accent-contrast); border-radius: var(--radius-md); text-decoration: none; font-weight: var(--weight-semibold); }
.s-skip:focus { top: var(--space-3); }

/* Typography */
.s-eyebrow { color: var(--accent-text); font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; margin-bottom: var(--space-3); }
.s-h2 { font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem); line-height: 1.2; letter-spacing: var(--tracking-tight); font-weight: var(--weight-semibold); }
.s-h3 { font-size: var(--text-lg); line-height: 1.4; font-weight: var(--weight-semibold); }
.s-lead { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); color: var(--text-muted); line-height: 1.65; }
.s-muted { color: var(--text-muted); }
.s-link { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--accent-text); text-decoration: none; font-weight: var(--weight-medium); }
.s-link:hover { text-decoration: underline; }

/* Buttons */
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; padding: var(--space-2) var(--space-5); border: 1px solid transparent; border-radius: var(--radius-md); font: inherit; font-size: var(--text-md); font-weight: var(--weight-semibold); text-decoration: none; text-align: center; cursor: pointer; transition: background-color var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease); }
.s-btn--primary { background: var(--accent); color: var(--accent-contrast); }
.s-btn--primary:hover { background: var(--accent-hover); }
.s-btn--secondary { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
.s-btn--secondary:hover { background: var(--surface-3); }
.s-btn--ghost { background: transparent; color: var(--text); }
.s-btn--ghost:hover { background: var(--surface-3); }
.s-btn--sm { min-height: 38px; padding: var(--space-1) var(--space-4); }
.s-btn--lg { min-height: 48px; padding: var(--space-3) var(--space-6); font-size: var(--text-body); }
.s-btn--block { width: 100%; }
.s-iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: var(--radius-md); background: transparent; color: var(--text); cursor: pointer; }
.s-iconbtn:hover { background: var(--surface-3); }
:root[data-theme='light'] .s-only-dark, :root:not([data-theme='light']) .s-only-light { display: none; }

/* Header */
.s-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--border); }
.s-header__inner { display: flex; align-items: center; gap: var(--space-4); min-height: var(--topbar-height); }
.s-brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; font-weight: var(--weight-semibold); min-width: 0; margin-right: auto; }
.s-brand__mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-md); background: var(--accent-soft); color: var(--accent-text); }
.s-brand__name { font-size: var(--text-md); line-height: 1.25; }
.s-nav { display: flex; align-items: center; gap: var(--space-4); }
.s-nav__links { display: flex; gap: var(--space-1); }
.s-nav__links a, .s-lang { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-3); border-radius: var(--radius-md); color: var(--text-muted); text-decoration: none; font-size: var(--text-md); font-weight: var(--weight-medium); }
.s-nav__links a:hover, .s-lang:hover { color: var(--text); background: var(--surface-3); }
.s-nav__tools { display: flex; align-items: center; gap: var(--space-2); }
.s-header__end { display: flex; align-items: center; gap: var(--space-2); }
.s-menu { display: none; }
.s-menu__close { display: none; }
.s-menu[aria-expanded='true'] .s-menu__open { display: none; }
.s-menu[aria-expanded='true'] .s-menu__close { display: inline; }

@media (max-width: 1180px) {
  .s-brand__sub { display: none; }
  .js .s-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: var(--space-3); padding: var(--space-4) var(--space-5) var(--space-5); background: var(--bg); border-bottom: 1px solid var(--border); max-height: calc(100dvh - var(--topbar-height)); overflow-y: auto; }
  .js .s-nav.is-open { display: flex; }
  .js .s-menu { display: inline-grid; }
  .js .s-nav__links { flex-direction: column; }
  .js .s-nav__links a { min-height: 48px; font-size: var(--text-body); }
  .js .s-nav__tools { flex-wrap: wrap; padding-top: var(--space-3); border-top: 1px solid var(--border); }
  html:not(.js) .s-header__inner { flex-wrap: wrap; }
  html:not(.js) .s-nav { order: 3; width: 100%; flex-wrap: wrap; padding-bottom: var(--space-2); }
  html:not(.js) .s-nav__links { flex-wrap: wrap; }
}
@media (max-width: 420px) { .s-brand__name { display: none; } }   /* phones: logo mark + buy button + menu */

/* Hero */
.s-hero { padding: var(--space-16) 0 var(--space-12); border-bottom: 1px solid var(--border); }
.s-hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-12); align-items: center; }
.s-hero__copy { display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; }
.s-hero__title { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem); line-height: 1.1; letter-spacing: -0.025em; font-weight: var(--weight-semibold); overflow-wrap: break-word; hyphens: auto; }
.s-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.s-note { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--text-muted); font-size: var(--text-sm); }
.s-note svg { color: var(--success); }
.s-hero__media { min-width: 0; }
.s-stage { position: relative; padding-bottom: var(--space-8); padding-right: var(--space-10); }
.s-frame { border: 1px solid var(--border-strong); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-1); }
.s-frame__img { width: 100%; }
.s-phone { position: absolute; right: 0; bottom: 0; width: 26%; max-width: 190px; border: 1px solid var(--border-strong); border-radius: 18px; overflow: hidden; background: var(--surface-1); padding: 4px; }
.s-phone__img { border-radius: 14px; }
.s-caption { margin-top: var(--space-3); color: var(--text-muted); font-size: var(--text-xs); }
.s-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-12); }
.s-facts li { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-4) var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-1); }
.s-facts__n { font-size: var(--text-2xl); font-weight: var(--weight-semibold); color: var(--accent-text); line-height: 1.2; }
.s-facts__l { color: var(--text-muted); font-size: var(--text-sm); }

/* Sections */
.s-section { padding: var(--space-16) 0; }
.s-section--alt { background: var(--surface-1); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.s-section__head { max-width: 720px; margin-bottom: var(--space-10); display: flex; flex-direction: column; gap: var(--space-3); }
.s-section__head .s-eyebrow { margin-bottom: 0; }
.s-section__head--center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }

.s-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.s-card { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-1); }
.s-card p, .s-step p, .s-show__text p { color: var(--text-muted); }
.s-card__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--accent-soft); color: var(--accent-text); }

.s-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); counter-reset: none; }
.s-step { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); }
.s-step__n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-full); background: var(--accent); color: var(--accent-contrast); font-weight: var(--weight-semibold); font-size: var(--text-md); }

.s-showcase { display: flex; flex-direction: column; gap: var(--space-16); }
.s-show { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-10); align-items: center; }
.s-show:nth-child(even) { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.s-show:nth-child(even) .s-show__text { order: 2; }
.s-show__text { display: flex; flex-direction: column; gap: var(--space-3); }
.s-show__text .s-h3 { font-size: var(--text-xl); }

.s-parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--space-5); }
.s-part { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); }
.s-part__n { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--accent-text); font-weight: var(--weight-semibold); }
.s-modules { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--border); }
.s-modules li { display: flex; gap: var(--space-3); align-items: baseline; }
.s-modules__n { flex: 0 0 auto; min-width: 2ch; font-family: var(--font-mono); font-size: var(--text-sm); color: var(--text-muted); text-align: right; }
.s-modules__t { display: flex; flex-direction: column; font-size: var(--text-md); font-weight: var(--weight-medium); min-width: 0; }
.s-modules__meta { color: var(--text-muted); font-size: var(--text-xs); font-weight: var(--weight-regular); }

.s-honest { margin-top: var(--space-10); padding: var(--space-6); border: 1px solid var(--border-strong); border-left: 3px solid var(--warning); border-radius: var(--radius-lg); background: var(--bg); }
.s-honest .s-h3 { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); }
.s-honest .s-h3 svg { color: var(--warning); }
.s-honest ul { display: grid; gap: var(--space-2); padding-left: var(--space-5); list-style: disc; color: var(--text-muted); }

/* Pricing */
.s-price { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-8); border: 1px solid var(--accent); border-radius: var(--radius-lg); background: var(--surface-1); }
.s-price__plan { font-weight: var(--weight-semibold); color: var(--accent-text); }
.s-price__amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-3); }
.s-price__num { font-size: 3rem; line-height: 1; font-weight: var(--weight-semibold); letter-spacing: -0.02em; }
.s-price__period { color: var(--text-muted); }
.s-price__list { display: flex; flex-direction: column; gap: var(--space-3); }
.s-price__list li { display: flex; gap: var(--space-3); align-items: flex-start; }
.s-price__list svg { color: var(--success); margin-top: 3px; }
.s-price__notes { display: flex; flex-direction: column; gap: var(--space-1); color: var(--text-muted); font-size: var(--text-sm); }
.s-draft { padding: var(--space-2) var(--space-3); border: 1px dashed var(--border-strong); border-radius: var(--radius-md); color: var(--text-muted); font-size: var(--text-sm); }

/* FAQ */
.s-faq { display: flex; flex-direction: column; border-top: 1px solid var(--border-strong); }
.s-faq__item { border-bottom: 1px solid var(--border-strong); }
.s-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 56px; padding: var(--space-3) 0; cursor: pointer; list-style: none; font-weight: var(--weight-medium); }
.s-faq__item summary::-webkit-details-marker { display: none; }
.s-faq__item summary svg { color: var(--text-muted); transition: transform var(--duration-base) var(--ease); }
.s-faq__item[open] summary svg { transform: rotate(180deg); }
.s-faq__item p { padding: 0 0 var(--space-5); color: var(--text-muted); max-width: 70ch; }

.s-final { text-align: center; }
.s-final__inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-5); }

/* Footer */
.s-footer { border-top: 1px solid var(--border); padding: var(--space-12) 0 var(--space-8); font-size: var(--text-sm); }
.s-footer__grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: var(--space-8); }
.s-footer__brand { font-weight: var(--weight-semibold); margin-bottom: var(--space-2); }
.s-footer__head { font-weight: var(--weight-semibold); margin-bottom: var(--space-3); }
.s-footer__list { display: flex; flex-direction: column; gap: var(--space-2); }
.s-footer__list a { color: var(--text-muted); text-decoration: none; display: inline-block; padding: 2px 0; }
.s-footer__list a:hover { color: var(--text); text-decoration: underline; }
.s-footer__base { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid var(--border); font-size: var(--text-xs); }

/* Legal placeholder pages */
.s-legal { padding: var(--space-12) 0 var(--space-16); }
.s-legal .s-wrap { display: flex; flex-direction: column; gap: var(--space-6); }
.s-draftbox { padding: var(--space-5); border: 1px solid var(--border-strong); border-left: 3px solid var(--warning); border-radius: var(--radius-lg); background: var(--warning-soft); }
.s-draftbox__title { display: flex; align-items: center; gap: var(--space-2); font-weight: var(--weight-semibold); margin-bottom: var(--space-2); }
.s-draftbox__title svg { color: var(--warning); }
.s-legal__list { display: flex; flex-direction: column; gap: var(--space-3); padding-left: var(--space-5); list-style: disc; color: var(--text-muted); }

/* Reveal on scroll: only with JS and without reduced motion (site.js adds .js-reveal). */
.js-reveal .s-reveal { opacity: 0; transform: translateY(8px); transition: opacity var(--duration-base) var(--ease), transform var(--duration-base) var(--ease); }
.js-reveal .s-reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1024px) {
  .s-hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-10); }
  .s-hero__copy { max-width: 720px; }
  .s-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .s-wrap { padding: 0 var(--space-4); }
  .s-hero { padding: var(--space-10) 0 var(--space-10); }
  .s-stage { padding-right: var(--space-6); padding-bottom: var(--space-6); }
  .s-phone { width: 30%; border-radius: 12px; padding: 3px; }
  .s-phone__img { border-radius: 9px; }
  .s-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin-top: var(--space-10); }
  .s-section { padding: var(--space-12) 0; }
  .s-section__head { margin-bottom: var(--space-8); }
  .s-cards, .s-steps { grid-template-columns: minmax(0, 1fr); }
  .s-show, .s-show:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .s-show:nth-child(even) .s-show__text { order: 0; }
  .s-showcase { gap: var(--space-12); }
  .s-price { padding: var(--space-6) var(--space-5); }
  .s-footer__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .s-actions .s-btn { flex: 1 1 100%; }
}

/* ======================= Phase B1 premium layer (owner decision D11: subtle glow + glass allowed on the SITE only) ======================= */
:root { --glass-bg: rgba(255, 255, 255, 0.025); --glass-border: rgba(255, 255, 255, 0.08); --glow: rgba(167, 139, 250, 0.16); --frame-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.7); }
:root[data-theme='light'] { --glass-bg: rgba(255, 255, 255, 0.7); --glass-border: rgba(20, 24, 40, 0.08); --glow: rgba(109, 74, 224, 0.10); --frame-shadow: 0 40px 80px -40px rgba(20, 24, 40, 0.25); }

.s-header { background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: saturate(150%) blur(14px); backdrop-filter: saturate(150%) blur(14px); border-bottom-color: var(--glass-border); }
.s-header .s-brand__sub { display: none; }
.s-nav__links a, .s-lang, .s-header .s-btn { white-space: nowrap; }
.s-nav__links a { padding: 0 10px; }
.s-nav { gap: var(--space-3); }
.s-btn__price { margin-left: var(--space-1); padding-left: var(--space-2); border-left: 1px solid color-mix(in srgb, var(--accent-contrast) 35%, transparent); }

.s-glow { position: relative; isolation: isolate; overflow: hidden; }
.s-glow::before { content: ''; position: absolute; z-index: -1; left: 50%; top: -260px; width: min(1400px, 160%); height: 900px; transform: translateX(-50%); background: radial-gradient(ellipse 50% 45% at 60% 40%, var(--glow), transparent 70%); pointer-events: none; }

/* Hero */
.s-hero { padding: var(--space-16) 0 var(--space-12); }
.s-hero__copy { gap: var(--space-4); }
.s-hero__title { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4.25rem); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; hyphens: manual; }
.s-hero__l1, .s-hero__hl { display: block; }
.s-hero__hl { color: var(--accent); }
.s-goal { max-width: 54ch; padding-left: var(--space-3); border-left: 2px solid var(--accent); color: var(--text-muted); font-size: var(--text-sm); line-height: 1.5; }
.s-hero__lead { max-width: 56ch; }
.s-hero .s-actions { margin-top: var(--space-2); }
.s-hero .s-frame, .s-frame--window { border-color: var(--glass-border); box-shadow: var(--frame-shadow); }

/* Window frame for product screenshots */
.s-frame--window { border-radius: 14px; background: var(--surface-1); }
.s-frame__bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.s-frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }

/* Toolkit tabs */
.s-toolkit { padding-top: var(--space-16); }
.s-tabs__list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin-bottom: var(--space-8); }
.s-tabs__tab { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-full); background: var(--surface-1); color: var(--text-muted); font: inherit; font-size: var(--text-md); font-weight: var(--weight-medium); white-space: nowrap; cursor: pointer; transition: background-color var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease); }
.s-tabs__tab:hover { color: var(--text); border-color: var(--border-strong); }
.s-tabs__tab[aria-selected='true'] { background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent); }
.s-panel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-10); align-items: center; padding: var(--space-8); border: 1px solid var(--glass-border); border-radius: 20px; background: var(--glass-bg); }
.s-panel + .s-panel { margin-top: var(--space-6); }
.js .s-panel + .s-panel { margin-top: 0; }
.s-panel__text { display: flex; flex-direction: column; gap: var(--space-4); }
.s-panel__label { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--accent-text); font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.s-panel__title { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.2; letter-spacing: var(--tracking-tight); font-weight: var(--weight-semibold); }
.s-panel__points { display: flex; flex-direction: column; gap: var(--space-3); color: var(--text-muted); }
.s-panel__points li { display: flex; gap: var(--space-3); align-items: flex-start; }
.s-panel__points svg { color: var(--success); margin-top: 3px; }
.js-reveal .s-panel:not([hidden]) { animation: s-fade var(--duration-base) var(--ease); }
@keyframes s-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Pricing: access steps + accent card */
.s-price { border-color: var(--accent); box-shadow: 0 40px 100px -50px var(--accent); }
.s-access { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg); }
.s-access__title { font-weight: var(--weight-semibold); font-size: var(--text-md); }
.s-access__steps { display: flex; flex-direction: column; gap: var(--space-2); font-size: var(--text-sm); color: var(--text-muted); }
.s-access__steps li { display: flex; gap: var(--space-3); align-items: flex-start; }
.s-access__n { flex: 0 0 auto; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-size: var(--text-xs); font-weight: var(--weight-semibold); }

.s-final .s-h2 { font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3rem); text-wrap: balance; }

@media (max-width: 1024px) { .s-panel { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); } }
@media (max-width: 720px) {
  .s-hero { padding: var(--space-6) 0 var(--space-10); }
  .s-hero__copy { gap: var(--space-3); }
  .s-hero__lead { font-size: var(--text-body); }
  .s-goal { font-size: var(--text-xs); }
  .s-tabs__list { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 calc(-1 * var(--space-4)) var(--space-6); padding: 2px var(--space-4); scrollbar-width: none; }
  .s-tabs__list::-webkit-scrollbar { display: none; }
  .s-panel { padding: var(--space-5) var(--space-4); border-radius: 16px; }
  .s-frame__bar { padding: 7px 10px; } .s-frame__bar i { width: 8px; height: 8px; }
}
@media (max-width: 480px) { .s-hero .s-eyebrow { display: none; } }
/* ======================= Phase B2: opportunity, timeline, revenue, bento, demo ======================= */
.s-h2--xl { font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3rem); line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
.s-badge { display: inline-flex; align-items: center; gap: var(--space-1); padding: 2px var(--space-2); border: 1px solid var(--warning); border-radius: var(--radius-full); color: var(--warning); font-size: var(--text-2xs); font-weight: var(--weight-semibold); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.s-badge--soft { border-color: var(--glass-border); color: var(--text-muted); text-transform: none; letter-spacing: 0; font-size: var(--text-xs); align-self: flex-start; }
.s-chip { display: inline-flex; padding: 2px var(--space-2); border: 1px solid var(--glass-border); border-radius: var(--radius-full); background: var(--glass-bg); color: var(--text-muted); font-size: var(--text-xs); }

/* Opportunity */
.s-opportunity__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-12); align-items: center; }
.s-opportunity__copy { display: flex; flex-direction: column; gap: var(--space-5); }
.s-opportunity__copy .s-eyebrow { margin: 0; }
.s-flow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.s-flow li { padding: var(--space-2) var(--space-3); border: 1px solid var(--glass-border); border-radius: var(--radius-full); background: var(--glass-bg); font-size: var(--text-sm); font-weight: var(--weight-medium); }
.s-flow li:nth-child(2) { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
.s-flow li + li::before { content: '→'; margin-right: var(--space-2); color: var(--text-muted); }
.s-stack { display: flex; flex-direction: column; gap: var(--space-4); }
.s-stack__card { display: flex; gap: var(--space-4); padding: var(--space-5); border: 1px solid var(--glass-border); border-radius: 16px; background: var(--glass-bg); }
.s-stack__card:nth-child(2) { margin-left: var(--space-8); }
.s-stack__card:nth-child(3) { margin-left: var(--space-16); }
.s-stack__card p { color: var(--text-muted); margin-top: var(--space-1); }
.s-stack__icon, .s-tl__icon, .s-tile__icon { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); }

/* Timeline */
.s-timeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); }
.s-timeline::before { content: ''; position: absolute; left: 22px; right: 22px; top: 22px; height: 1px; background: linear-gradient(90deg, var(--accent), var(--glass-border)); }
.s-tl { position: relative; display: flex; flex-direction: column; gap: var(--space-3); }
.s-tl__head { display: flex; align-items: center; justify-content: space-between; }
.s-tl__icon { position: relative; background: var(--bg); border: 1px solid var(--accent); }
.s-tl__n { order: 2; position: relative; padding-left: var(--space-2); background: var(--surface-1); font-family: var(--font-mono); font-size: var(--text-2xl); font-weight: var(--weight-semibold); color: var(--border-strong); }
.s-tl__title { font-size: var(--text-2xl); line-height: 1.2; font-weight: var(--weight-semibold); letter-spacing: var(--tracking-tight); }
.s-tl p { color: var(--text-muted); }
.s-tl__tools { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* Revenue potential */
.s-examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); margin-bottom: var(--space-8); }
.s-example { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; padding: var(--space-6); border: 1px solid var(--glass-border); border-radius: 18px; background: var(--glass-bg); }
.s-example--hi { border-color: var(--accent); }
.s-example__calc { color: var(--text-muted); font-size: var(--text-md); }
.s-example__sum { font-size: clamp(2rem, 1.5rem + 1.8vw, 2.75rem); line-height: 1; font-weight: var(--weight-semibold); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.s-example--hi .s-example__sum { color: var(--accent); }
.s-revcalc { padding: var(--space-6); border: 1px solid var(--glass-border); border-radius: 18px; background: var(--surface-1); }
.s-revcalc__title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); font-weight: var(--weight-semibold); margin-bottom: var(--space-5); }
.s-revcalc__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); align-items: end; }
.s-revcalc__result { display: flex; flex-direction: column; gap: var(--space-1); color: var(--text-muted); font-size: var(--text-sm); }
.s-revcalc__sum { font-size: var(--text-3xl); line-height: 1.1; font-weight: var(--weight-semibold); color: var(--text); font-variant-numeric: tabular-nums; }
.s-range { display: flex; flex-direction: column; gap: var(--space-2); }
.s-range__label { display: flex; justify-content: space-between; gap: var(--space-3); font-size: var(--text-sm); color: var(--text-muted); }
.s-range__label output { color: var(--text); font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; }
.s-range input { width: 100%; min-height: 32px; accent-color: var(--accent); cursor: pointer; }
.s-disclaimer { margin-top: var(--space-5); padding: var(--space-4) var(--space-5); border: 1px solid var(--border-strong); border-left: 3px solid var(--warning); border-radius: var(--radius-md); background: var(--bg); color: var(--text-muted); font-size: var(--text-sm); }
.s-disclaimer strong { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--text); }
.s-disclaimer svg { color: var(--warning); }

/* Bento */
.s-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.s-tile { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5); border: 1px solid var(--glass-border); border-radius: 18px; background: var(--surface-1); }
.s-tile p { color: var(--text-muted); font-size: var(--text-md); }
.s-tile__icon { margin-bottom: var(--space-2); }
.s-tile--course { grid-column: span 2; grid-row: span 2; background: var(--glass-bg); border-color: var(--accent); }
.s-tile--stat { grid-row: span 2; justify-content: flex-end; }
.s-tile__stat { font-size: var(--text-3xl); line-height: 1.15; font-weight: var(--weight-semibold); letter-spacing: -0.02em; }
.s-tile .s-tile__big { color: var(--accent); font-size: 4rem; line-height: 1; font-weight: var(--weight-semibold); color: var(--accent); letter-spacing: -0.03em; }
.s-parts-mini { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-3); }
.s-parts-mini li { display: flex; gap: var(--space-3); align-items: center; font-weight: var(--weight-medium); }
.s-parts-mini span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-text); font-family: var(--font-mono); font-size: var(--text-xs); }
.s-modules-all { margin-top: auto; padding-top: var(--space-4); }
.s-modules-all summary { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; color: var(--accent-text); font-weight: var(--weight-medium); cursor: pointer; list-style: none; }
.s-modules-all summary::-webkit-details-marker { display: none; }
.s-modules-all[open] summary svg { transform: rotate(180deg); }

/* Demo */
.s-demo__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-12); align-items: center; }
.s-demo__copy { display: flex; flex-direction: column; gap: var(--space-4); }
.s-demo__copy .s-eyebrow { margin: 0; }
.s-demo__card { display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-6); border: 1px solid var(--glass-border); border-radius: 20px; background: var(--bg); box-shadow: var(--frame-shadow); }
.s-demo__controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-6); }
.s-demo__result { display: flex; flex-direction: column; gap: var(--space-2); margin: 0; padding: var(--space-4); border-radius: var(--radius-md); background: var(--surface-1); font-variant-numeric: tabular-nums; }
.s-demo__result div { display: flex; justify-content: space-between; gap: var(--space-3); font-size: var(--text-md); }
.s-demo__result dt { color: var(--text-muted); }
.s-demo__result dd { margin: 0; font-weight: var(--weight-medium); }
.s-demo__total { margin-top: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--border); align-items: baseline; }
.s-demo__total dt { color: var(--text) !important; font-weight: var(--weight-semibold); }
.s-demo__total dd { font-size: var(--text-3xl); font-weight: var(--weight-semibold) !important; color: var(--accent); }
.s-demo__note { color: var(--text-muted); font-size: var(--text-xs); }

@media (max-width: 1024px) {
  .s-opportunity__grid, .s-demo__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .s-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-10); }
  .s-timeline::before { display: none; }
  .s-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-tile--course { grid-column: span 2; grid-row: auto; }
  .s-tile--stat { grid-row: auto; }
}
@media (max-width: 720px) {
  .s-stack__card:nth-child(n) { margin-left: 0; }
  .s-timeline { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); padding-left: var(--space-2); }
  .s-examples { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .s-revcalc__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .s-revcalc, .s-demo__card { padding: var(--space-5) var(--space-4); }
  .s-bento { grid-template-columns: minmax(0, 1fr); }
  .s-tile--course { grid-column: auto; }
  .s-demo__controls { grid-template-columns: minmax(0, 1fr); }
  .s-tile .s-tile__big { font-size: 3rem; }
}
/* ======================= Phase B3: visual polish ======================= */
/* Buttons: one consistent interaction model */
.s-btn { transition: background-color var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease); }
.s-btn--primary { box-shadow: 0 10px 28px -14px var(--accent); }
.s-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 32px -14px var(--accent); }
.s-btn--secondary { background: var(--glass-bg); border-color: var(--glass-border); }
.s-btn--secondary:hover { border-color: var(--border-strong); background: var(--surface-2); }
.s-btn:active { transform: none; }
.s-btn svg { transition: transform var(--duration-fast) var(--ease); }
.s-btn:hover svg { transform: translateX(2px); }

/* Hero stage: same window chrome as the toolkit screenshots */
.s-hero .s-frame--window { border-radius: 14px; }
.s-phone { box-shadow: var(--frame-shadow); border-color: var(--glass-border); }

/* Cards: subtle hover on interactive-looking surfaces */
.s-tile, .s-stack__card, .s-example { transition: border-color var(--duration-base) var(--ease); }
.s-tile:hover, .s-stack__card:hover, .s-example:hover { border-color: var(--border-strong); }
.s-tile--course:hover, .s-example--hi:hover { border-color: var(--accent); }

/* Range sliders: large touch targets, visible focus, accent fill */
.s-range input[type='range'] { -webkit-appearance: none; appearance: none; height: 44px; background: transparent; }
.s-range input[type='range']::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border); }
.s-range input[type='range']::-moz-range-track { height: 6px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border); }
.s-range input[type='range']::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--accent); }
.s-range input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--accent); }
.s-range input[type='range']::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--accent); }
.s-range input[type='range']:focus { outline: none; }
.s-range input[type='range']:focus-visible::-webkit-slider-thumb { box-shadow: var(--focus-ring); }
.s-range input[type='range']:focus-visible::-moz-range-thumb { box-shadow: var(--focus-ring); }

/* Revenue disclaimer: readable, not small print */
.s-disclaimer { font-size: var(--text-md); line-height: 1.6; }

/* FAQ: card rows */
.s-faq { border-top: 0; gap: var(--space-3); }
.s-faq__item { border: 1px solid var(--glass-border); border-radius: 14px; background: var(--glass-bg); transition: border-color var(--duration-base) var(--ease), background-color var(--duration-base) var(--ease); }
.s-faq__item:hover { border-color: var(--border-strong); }
.s-faq__item[open] { border-color: var(--accent); background: var(--surface-1); }
.s-faq__item summary { padding: var(--space-4) var(--space-5); border-radius: 14px; }
.s-faq__item p { padding: 0 var(--space-5) var(--space-5); }

/* Final CTA reassurance */
.s-points { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2) var(--space-5); color: var(--text-muted); font-size: var(--text-sm); }
.s-points li { display: inline-flex; align-items: center; gap: var(--space-2); }
.s-points svg { color: var(--success); }
.s-final { padding: var(--space-16) 0 calc(var(--space-16) + var(--space-8)); }

/* Pricing: price figure as the visual anchor */
.s-price__num { font-size: clamp(3rem, 2.4rem + 2vw, 3.75rem); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Legal drafts: structured blocks */
.s-legal__block { display: flex; flex-direction: column; gap: var(--space-2); }
.s-legal__block .s-h3 { font-size: var(--text-lg); }

/* Product preview build (no purchase yet) */
.s-btn--soon { cursor: default; opacity: 0.85; box-shadow: none; }
.s-btn--soon:hover { transform: none; background: var(--accent); box-shadow: none; }
.s-previewbar { border-bottom: 1px solid var(--border); background: var(--accent-soft); color: var(--accent-text); font-size: var(--text-sm); font-weight: var(--weight-medium); text-align: center; padding: var(--space-2) 0; }
.s-badge--soft { white-space: normal; }   /* long DE label wraps on 320 px phones */
