/* Hero: the three independent layers are copy, atmosphere and client window. */
.hero { position: relative; max-width: 100%; overflow-x: clip; padding-top: 16px; background: linear-gradient(180deg,var(--c-hero-top) 0%,var(--c-bg) 48%,var(--c-hero-bottom) 100%); }
.hero__copy { position: relative; z-index: 3; max-width: 880px; margin-inline: auto; padding-inline: var(--gutter); display: flex; flex-direction: column; align-items: center; text-align: center; }
.tag { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 0 13px 0 10px; border: 1px solid var(--c-border); border-radius: var(--r-pill); background: var(--c-panel); box-shadow: inset 0 1px 0 var(--a-hi),0 6px 16px -8px var(--a-berry-18); font-size: 13px; font-weight: 600; }
.tag__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 3px var(--a-berry-18); flex: none; }
.hero__title { margin: 16px 0 0; font-family: var(--f-display); font-size: clamp(52px,4.5vw,64px); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; }
.hero__l1, .hero__l2 { display: block; }
.hero__l2 { color: var(--c-accent); }
.join-row { display: flex; align-items: stretch; justify-content: center; gap: 12px; margin-top: 22px; max-width: 100%; }
.join { display: flex; align-items: center; width: 560px; max-width: 100%; padding: 5px; background: var(--c-panel); border: 1px solid var(--c-border); border-radius: var(--r-md); box-shadow: var(--sh-paper); }
.join:focus-within { border-color: var(--c-accent); }
.join__field { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 0 10px 0 12px; color: var(--c-muted); }
.join__field svg { width: 18px; height: 18px; }
.join__input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--c-text); font-size: 16px; }
.join__input::placeholder { color: var(--c-muted); opacity: 1; }
.join__btn { display: inline-flex; align-items: center; justify-content: center; flex: none; min-height: 44px; padding: 0 24px; border-radius: var(--r-sm); background: linear-gradient(180deg,var(--c-accent),var(--c-accent-dark)); box-shadow: inset 0 1px 0 var(--a-hi-faint),0 8px 18px -8px var(--a-berry-34); color: var(--c-panel); font-weight: 700; white-space: nowrap; }
.plans-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none; min-height: 56px; padding: 0 22px; border-radius: var(--r-md); background: var(--c-coffee); color: var(--c-cream); font-weight: 600; white-space: nowrap; box-shadow: inset 0 1px 0 var(--a-cream-10),0 14px 28px -14px var(--a-coffee-34); }
.plans-btn svg { width: 16px; height: 16px; }
.lede { max-width: 720px; margin: 16px 0 0; color: var(--c-muted); font-size: 20px; line-height: 1.5; }
.lede strong { color: var(--c-text); }
.trust { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; color: var(--c-text); font-size: 14px; font-weight: 500; }
.trust li { display: inline-flex; align-items: center; }
.trust li + li::before { content: ""; width: 4px; height: 4px; margin-inline: 12px; border-radius: 50%; background: var(--a-ink-26); flex: none; }
.marks { display: grid; justify-items: center; gap: 8px; margin-top: 14px; }
.marks__row { display: flex; align-items: center; justify-content: center; gap: 14px; }
.marks__label { font: 500 11.5px var(--f-mono); letter-spacing: .04em; color: var(--c-muted); white-space: nowrap; }
.marks__list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.pf, .fl { display: inline-flex; align-items: center; gap: 6px; min-height: 22px; font-size: 13.5px; font-weight: 600; color: var(--c-muted); }
.pf svg { width: 17px; height: 17px; color: var(--c-text); }
.fl svg { width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 1px 2px var(--a-ink-14); overflow: hidden; }
.fr { fill: var(--c-flag-red); } .fw { fill: var(--c-flag-white); } .fb { fill: var(--c-flag-blue); } .fg { fill: var(--c-flag-green); }
.clouds, .stars { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cloud { position: absolute; display: block; filter: drop-shadow(0 12px 16px var(--a-berry-18)) drop-shadow(0 2px 3px var(--a-ink-08)); }
.cloud path { fill: var(--c-panel); stroke: var(--a-hi); stroke-width: 1; }
.cloud--l { top: 330px; left: calc(50% - 560px); width: 116px; height: 83px; }
.cloud--c { top: 418px; left: calc(50% + 270px); width: 70px; height: 54px; }
.cloud--r { top: 312px; left: calc(50% + 440px); width: 100px; height: 71px; }
.star { position: absolute; width: 10px; height: 10px; fill: var(--c-panel); filter: drop-shadow(0 0 2px var(--a-berry-26)); }
.s1 { top: 426px; left: 55%; } .s2 { top: 442px; left: 39%; } .s3 { top: 464px; left: 47%; }
.s4 { top: 450px; left: 64%; } .s5 { top: 456px; left: 26%; } .s6 { top: 426px; left: 91%; }
.stage { position: relative; max-width: 1248px; margin-inline: auto; padding: 64px var(--gutter) 28px; }
.halo { position: absolute; inset: -210px 4% -30px; z-index: 0; pointer-events: none; background: radial-gradient(ellipse 24% 18% at 50% 44%,var(--a-apricot-80),transparent 72%),radial-gradient(ellipse 50% 50% at 50% 56%,var(--a-apricot-50) 0%,var(--a-berry-18) 52%,transparent 76%); }
.device { position: relative; z-index: 2; width: 88%; margin-inline: auto; }
.device__frame { padding: 8px; border-radius: var(--r-lg); background: linear-gradient(180deg,var(--a-apricot-50),var(--a-apricot-16) 70%,var(--a-hi-soft)); box-shadow: inset 0 1px 0 var(--a-hi),inset 0 0 0 1px var(--a-hi-soft),0 34px 70px -30px var(--a-berry-26),0 14px 34px -16px var(--a-coffee-34); backdrop-filter: blur(10px); }
.win { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--c-coffee); color: var(--c-code-key); box-shadow: inset 0 1px 0 var(--a-cream-10); }
.win::before { content: ""; position: absolute; top: 0; left: 14%; right: 14%; height: 1px; background: linear-gradient(90deg,transparent,var(--a-apricot-80),transparent); }
.win__bar { display: flex; align-items: center; gap: 14px; height: 36px; padding: 0 10px 0 12px; background: var(--c-coffee-2); border-bottom: 1px solid var(--c-coffee-line); }
.win__dots { display: inline-flex; gap: 7px; }
.win__dots span { width: 11px; height: 11px; border-radius: 50%; }
.win__dots span:nth-child(1) { background: var(--c-error); }
.win__dots span:nth-child(2) { background: var(--c-warn); }
.win__dots span:nth-child(3) { background: var(--c-success); }
.win__tabs { display: flex; align-self: stretch; margin-left: 8px; }
.tab { display: inline-flex; align-items: center; padding: 0 14px; border-top: 2px solid transparent; color: var(--c-code-dim); font: 12px var(--f-mono); white-space: nowrap; }
.tab--on { background: var(--c-coffee); border-top-color: var(--c-accent-soft); color: var(--c-code-key); }
.win__badge { display: inline-flex; align-items: center; gap: 7px; height: 24px; margin-left: auto; padding: 0 11px 0 8px; border: 1px solid var(--c-coffee-line); border-radius: var(--r-pill); background: var(--a-cream-06); color: var(--c-code-key); font-size: 12px; white-space: nowrap; }
.win__badge svg { width: 15px; height: 15px; }
.ok-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-success-soft); box-shadow: 0 0 0 3px var(--a-success-16); }
.win__body { display: grid; grid-template-columns: 284px minmax(0,1fr); }
.lines { display: flex; flex-direction: column; padding: 10px 0 6px; background: var(--c-coffee-2); border-right: 1px solid var(--c-coffee-line); }
.lines__head { display: flex; justify-content: space-between; height: 22px; padding-inline: 14px; color: var(--c-code-dim); font: 11px var(--f-mono); letter-spacing: .06em; }
.lines__list { margin: 0; padding: 0; list-style: none; }
.lrow { position: relative; display: grid; grid-template-columns: 21px 1fr auto; align-items: center; gap: 10px; height: 29px; padding: 0 12px 0 14px; color: var(--c-code-key); font-size: 13px; }
.lrow .flag { width: 21px; height: 14px; border-radius: 2px; overflow: hidden; }
.lrow--on { background: linear-gradient(90deg,var(--a-berry-34),var(--a-cream-06) 85%); color: var(--c-cream); font-weight: 700; }
.lrow--on::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(180deg,var(--c-accent-soft),var(--c-accent)); }
.route { padding: 4px 7px; border-radius: var(--r-xs); font: 10.5px var(--f-mono); white-space: nowrap; }
.route--iepl { background: var(--a-berry-26); color: var(--c-accent-soft); }
.route--relay { background: var(--a-apricot-16); color: var(--c-apricot); }
.route--direct { background: var(--a-cream-10); color: var(--c-code-key); }
.lines__foot { display: flex; align-items: center; margin-top: auto; height: 28px; padding-inline: 14px; border-top: 1px solid var(--c-coffee-line); color: var(--c-code-dim); font: 11px var(--f-mono); }
.editor { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--c-coffee); }
.editor::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 70% at 80% 0%,var(--a-apricot-16),transparent 62%); }
.code { position: relative; z-index: 1; flex: 1; min-width: 0; margin: 0; padding: 10px 0 8px; list-style: none; counter-reset: ln; color: var(--c-code-key); font: 12.5px/20px var(--f-mono); overflow-x: auto; }
.code li { position: relative; counter-increment: ln; min-width: max-content; padding: 0 20px 0 56px; white-space: pre; }
.code li::before { content: counter(ln); position: absolute; left: 0; width: 40px; text-align: right; color: var(--c-code-dim); opacity: .7; }
.code li.is-cur { background: linear-gradient(90deg,var(--a-cream-06),transparent 80%); }
.code .k { color: var(--c-code-key); } .code .p, .code .c { color: var(--c-code-dim); }
.code .s { color: var(--c-accent-soft); } .code .n { color: var(--c-apricot); } .code .ok { color: var(--c-success-soft); }
.code .c { font-style: italic; }
.caret { display: inline-block; width: 2px; height: 15px; margin-left: 2px; vertical-align: -3px; background: var(--c-apricot); }
.status { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 16px; min-height: 26px; padding: 4px 14px; background: var(--c-coffee-2); border-top: 1px solid var(--c-coffee-line); color: var(--c-code-dim); font: 11px var(--f-mono); }
.status__ok { display: inline-flex; align-items: center; gap: 6px; color: var(--c-code-key); }
.status__ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-success-soft); }
.note { position: absolute; z-index: 4; display: inline-flex; align-items: center; white-space: nowrap; }
.note--pack { top: -40px; left: -44px; gap: 10px; padding: 8px 14px 8px 8px; border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-panel); box-shadow: var(--sh-float); transform: rotate(-2deg); }
.note__icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: var(--r-sm); background: linear-gradient(160deg,var(--a-apricot-50),var(--a-berry-10)); color: var(--c-accent-dark); }
.note__icon svg { width: 18px; height: 18px; }
.note__text { display: flex; flex-direction: column; line-height: 1.25; }
.note__k { color: var(--c-muted); font-size: 11.5px; }
.note__v { font-size: 14px; font-weight: 700; }
.device__notes { display: flex; justify-content: flex-end; margin-top: 12px; }
.note--signup { position: static; gap: 8px; min-height: 38px; padding: 0 16px 0 12px; border: 1px solid var(--c-coffee-line); border-radius: var(--r-pill); background: var(--c-coffee); box-shadow: 0 16px 30px -12px var(--a-coffee-34); color: var(--c-cream); font-size: 13px; font-weight: 600; }
.note--signup svg { width: 17px; height: 17px; color: var(--c-apricot); }
.peek { padding: 16px var(--gutter) 96px; background: var(--c-hero-bottom); }
.peek__card { max-width: 1200px; margin: auto; padding: 32px 40px; background: var(--c-panel); border: 1px solid var(--c-border); border-radius: var(--r-lg); box-shadow: var(--sh-paper); }
.peek__eyebrow { margin: 0; color: var(--c-accent); font: 12px var(--f-mono); }
.peek__title { margin: 8px 0; font-size: 32px; }
.peek__text { max-width: 640px; color: var(--c-muted); }

/* Content components */
.segment-tabs { display: flex; align-items: center; gap: 4px; max-width: 100%; margin: 0 auto 24px; padding: 6px; border-radius: var(--r-pill); background: var(--c-panel-2); overflow-x: auto; scrollbar-width: thin; }
.segment-tabs [role="tab"] { flex: 1 0 max-content; min-height: 44px; padding: 8px 16px; border: 1.5px solid transparent; border-radius: var(--r-pill); background: transparent; color: var(--c-muted); font-weight: 600; white-space: nowrap; }
.segment-tabs [role="tab"][aria-selected="true"] { background: var(--c-panel); border-color: var(--c-text); color: var(--c-text); box-shadow: var(--sh-paper); }
[role="tabpanel"][hidden] { display: none; }
.feature-detail { display: grid; grid-template-columns: minmax(0,58fr) minmax(0,42fr); gap: 32px; align-items: center; padding: 36px; }
.feature-detail__window { min-width: 0; padding: 18px; border-radius: var(--r-md); background: var(--c-coffee); color: var(--c-code-key); font: 13px/1.8 var(--f-mono); overflow-x: auto; }
.feature-detail__window::before { content: "●  ●  ●"; display: block; padding-bottom: 10px; color: var(--c-apricot); }
.toc-tabs { position: sticky; top: 12px; z-index: 15; display: flex; gap: 6px; max-width: 100%; margin: 20px 0 28px; padding: 6px; border: 1px solid var(--c-border); border-radius: var(--r-pill); background: var(--c-panel); box-shadow: var(--sh-paper); overflow-x: auto; overscroll-behavior-inline: contain; }
.toc-tabs a { display: inline-flex; align-items: center; justify-content: center; flex: none; min-height: 36px; padding: 6px 14px; border-radius: var(--r-pill); color: var(--c-muted); white-space: nowrap; }
.toc-tabs a.is-current, .toc-tabs a[aria-current] { background: var(--c-coffee); color: var(--c-cream); }
.faq-item { margin-bottom: 10px; border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-panel); box-shadow: inset 0 1px 0 var(--a-hi); }
.faq-item summary { position: relative; min-height: 48px; padding: 14px 42px 14px 18px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 10px; color: var(--c-accent); font-size: 23px; }
.faq-item[open] summary::after { content: "−"; }
.faq-item > :not(summary) { margin: 0; padding: 0 18px 18px; color: var(--c-muted); }
.plan-grid, .platform-grid, .article-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.plan-card { position: relative; min-width: 0; padding: 28px; border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-panel); box-shadow: var(--sh-paper); }
.plan-card.is-featured { border: 2px solid var(--c-accent); box-shadow: var(--sh-float); }
.plan-card__ribbon { position: absolute; top: -13px; right: 20px; padding: 3px 12px; border-radius: var(--r-pill); background: var(--c-accent); color: var(--c-panel); font-size: 12px; font-weight: 700; }
.plan-card__price { margin: 14px 0; font: 800 clamp(30px,3vw,44px)/1.2 var(--f-display); font-variant-numeric: tabular-nums; }
.plan-card__price small { font-size: 14px; color: var(--c-muted); }
.plan-card ul { padding-left: 20px; color: var(--c-muted); }
.table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-panel); }
.data-table { width: 100%; min-width: 680px; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px 16px; border-bottom: 1px solid var(--c-border); text-align: left; word-break: keep-all; }
.data-table th { background: var(--c-panel-2); color: var(--c-text); font-weight: 700; white-space: nowrap; }
.data-table td:first-child { color: var(--c-text); font-weight: 600; }
.data-table tr:last-child td { border-bottom: 0; }
.prose > .data-table { display: block; max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.region-heading { margin: 28px 0 10px; font-size: 22px; }
.platform-card, .article-card { min-width: 0; padding: 24px; border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-panel); box-shadow: var(--sh-paper); }
.platform-card svg { width: 28px; height: 28px; color: var(--c-text); }
.platform-card h3, .article-card h3 { margin: 10px 0; }
.article-card__meta { font: 12px var(--f-mono); color: var(--c-accent); }
.article-card p { color: var(--c-muted); }
.callout { margin: 24px 0; padding: 18px 22px; border-left: 4px solid var(--c-accent); border-radius: 0 var(--r-md) var(--r-md) 0; background: var(--c-panel-2); }
.promo-block { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px; border-radius: var(--r-lg); background: var(--c-coffee); color: var(--c-cream); }
.promo-block p { margin: 6px 0 0; color: var(--c-code-key); }
.promo-block .btn, .promo-block .btn-secondary { flex-shrink: 0; white-space: nowrap; }
.cta-band { padding: 38px; border-radius: var(--r-lg); background: var(--c-coffee); color: var(--c-cream); }
.float-cta { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom,0px)); z-index: 50; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px 0 20px; border-radius: var(--r-pill); background: linear-gradient(180deg,var(--c-accent),var(--c-accent-dark)); color: var(--c-panel); font-size: 15px; font-weight: 700; box-shadow: inset 0 1px 0 var(--a-hi-faint),0 16px 30px -10px var(--a-berry-34),0 3px 8px var(--a-ink-14); }
.float-cta svg { width: 16px; height: 16px; }
body:has(.float-cta)::after { content: ""; display: block; height: calc(88px + env(safe-area-inset-bottom,0px)); }
.ticker { max-width: 100%; overflow: hidden; background: var(--c-coffee); color: var(--c-code-key); }
.ticker__track { display: flex; width: max-content; }
.ticker__group { display: flex; align-items: center; gap: 32px; flex: none; padding: 16px; white-space: nowrap; font-family: var(--f-mono); }
.ticker__group span::before { content: "✦"; margin-right: 32px; color: var(--c-apricot); }

/* Preview-only layout uses the same tokens and component styles. */
.preview-section { padding-top: 72px; padding-bottom: 72px; }
.preview-section > h2 { margin: 0 0 26px; }
.preview-swatches { display: grid; grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); gap: 12px; }
.preview-swatch { min-width: 0; padding: 10px; border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-panel); font: 12px var(--f-mono); }
.preview-swatch__paint { display: block; height: 72px; margin-bottom: 10px; border: 1px solid var(--a-ink-14); border-radius: var(--r-sm); background: var(--swatch); }
.sw-bg { --swatch: var(--c-bg); } .sw-panel { --swatch: var(--c-panel); } .sw-panel-2 { --swatch: var(--c-panel-2); }
.sw-border { --swatch: var(--c-border); } .sw-accent { --swatch: var(--c-accent); } .sw-accent-dark { --swatch: var(--c-accent-dark); }
.sw-apricot { --swatch: var(--c-apricot); } .sw-text { --swatch: var(--c-text); } .sw-muted { --swatch: var(--c-muted); }
.sw-success { --swatch: var(--c-success); } .sw-warn { --swatch: var(--c-warn); } .sw-error { --swatch: var(--c-error); }
.sw-coffee { --swatch: var(--c-coffee); } .sw-cream { --swatch: var(--c-cream); }
.preview-type { display: grid; gap: 8px; padding: 28px; }
.preview-type h2, .preview-type h3, .preview-type p { margin: 0; }
.preview-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.preview-subheading { margin: 42px 0 18px; font-size: 24px; }
.preview-foot { margin-top: 64px; }
.preview-foot .foot-grid { padding-top: 40px; }
@media (max-width: 900px) {
  .clouds { display: none; }
  .device { width: 94%; }
  .plan-grid, .platform-grid, .article-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 768px) {
  .hero__title { font-size: clamp(28px,8vw,40px); letter-spacing: -.02em; }
  .lede { font-size: 18px; }
  .join-row { width: 100%; }
  .join { width: auto; flex: 1; }
  .win__body { grid-template-columns: minmax(0,1fr); }
  .lines { display: none; }
  .device { width: 100%; }
  .note--pack, .note--signup { position: static; transform: none; }
  .device__notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
  .stage { padding-top: 36px; }
  .feature-detail { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero { max-width: 100%; }
  .hero__copy { padding-inline: var(--gutter); }
  .join-row { flex-wrap: wrap; }
  .join { flex-basis: 100%; }
  .plans-btn { min-height: 44px; }
  .trust { font-size: 12px; }
  .trust li + li::before { margin-inline: 7px; }
  .marks__row { flex-direction: column; gap: 2px; }
  .marks__list { gap: 4px 10px; }
  .pf, .fl { font-size: 12px; }
  .stage { max-width: 100%; }
  .halo { inset: -60px 0 0; }
  .win__bar { height: auto; min-height: 36px; flex-wrap: wrap; padding-block: 6px; }
  .win__tabs { margin-left: 0; }
  .win__badge { flex: none; padding-inline: 5px; }
  .win__badge svg { display: none; }
  .code li { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .status { white-space: normal; }
  .peek__card { padding: 24px; }
  .plan-grid, .platform-grid, .article-grid { grid-template-columns: 1fr; }
  .promo-block { flex-direction: column; align-items: flex-start; }
  .float-cta { right: 16px; }
  .feature-detail { padding: 20px; }
  .toc-tabs { border-radius: var(--r-md); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track { transform: none !important; }
}