/* ChatNest landing — tokens follow /DESIGN.md */
:root {
  --bg: #171918;
  --bg-deep: #131514;
  --surface: #202320;
  --hover: #2a2e29;
  --line: #3b423a;
  --line-soft: #2c312b;
  --text: #f0f2ec;
  --muted: #b3bbae;
  --faint: #8d9688;
  --accent: #cae8a6;
  --accent-hover: #d9efc1;
  --on-accent: #1b2814;
  --danger: #ffb6ac;
  --success: #b5dba3;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", "Hiragino Sans", "Apple SD Gothic Neo", "Microsoft JhengHei", "Malgun Gothic", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --r-sm: 6px;
  --r: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --wrap: 1200px;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--on-accent); }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 8px 12px; border-radius: var(--r); background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

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

.ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.ico--sm { width: 12px; height: 12px; }
.ico--accent { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 16px;
  border: 1px solid transparent; border-radius: var(--r);
  font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), transform 120ms var(--ease);
}
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { cursor: not-allowed; opacity: .55; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn--ghost:hover:not(:disabled) { background: var(--hover); border-color: #4a5348; }
.btn--sm { min-height: 34px; padding: 6px 12px; font-size: 14px; }
.btn--lg { min-height: 48px; padding: 12px 20px; font-size: 16px; border-radius: 10px; }
.linkbtn {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px; margin: -4px -6px;
  border: 0; border-radius: var(--r-sm); background: none; color: var(--muted); font-size: 13px; cursor: pointer;
  transition: color 160ms var(--ease), background-color 160ms var(--ease);
}
.linkbtn:hover { color: var(--accent); background: var(--hover); }
.textlink { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(202, 232, 166, .35); text-underline-offset: 4px; transition: text-decoration-color 160ms var(--ease); }
.textlink:hover { text-decoration-color: var(--accent); }
.badge { display: inline-flex; align-items: center; padding: 1px 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.6; white-space: nowrap; }
kbd { display: inline-flex; min-width: 22px; justify-content: center; padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--surface); color: var(--text); font: 600 12px/1.5 var(--font); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background-color 220ms var(--ease), border-color 220ms var(--ease), backdrop-filter 220ms var(--ease); }
.nav.is-scrolled { background: rgba(23, 25, 24, .78); border-bottom-color: var(--line-soft); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); }
.nav__inner { display: flex; align-items: center; gap: 32px; max-width: calc(var(--wrap) + var(--gutter) * 2); height: 64px; margin-inline: auto; padding-inline: var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 650; letter-spacing: -.025em; text-decoration: none; }
.brand img { border-radius: 7px; }
.nav__links { display: flex; gap: 4px; margin-inline-start: 8px; }
.nav__links a { position: relative; padding: 6px 10px; border-radius: var(--r-sm); color: var(--muted); font-size: 14px; text-decoration: none; transition: color 160ms var(--ease), background-color 160ms var(--ease); }
.nav__links a:hover { color: var(--text); background: var(--surface); }
.nav__links a[aria-current="true"] { color: var(--text); }
.nav__links a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform 200ms var(--ease); }
.nav__links a[aria-current="true"]::after { transform: scaleX(1); }
.nav__end { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }
.lang { position: relative; display: inline-flex; align-items: center; }
.lang__btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r); background: transparent; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; transition: border-color 160ms var(--ease), color 160ms var(--ease), background-color 160ms var(--ease); }
.lang__btn:hover, .lang__btn[aria-expanded="true"] { border-color: #4a5348; color: var(--text); background: var(--surface); }
.lang__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lang__chevron { width: 14px; height: 14px; transform: rotate(90deg); opacity: .7; }
.language-popover { position: fixed; z-index: 80; display: flex; flex-direction: column; width: min(280px, calc(100vw - 32px)); max-height: min(320px, 60vh); padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 24px 48px -24px rgba(0,0,0,.7); overflow: hidden; }
.language-popover[hidden] { display: none !important; }
.language-popover input { flex-shrink: 0; width: 100%; min-height: 40px; margin: 0 0 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; font-size: 14px; }
.language-popover input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
#language-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.language-option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 40px; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: inherit; font-size: 14px; text-align: start; cursor: pointer; }
.language-option:hover, .language-option.active { background: var(--hover, rgba(255,255,255,.06)); }
.language-option.active { outline: 1px solid var(--accent); outline-offset: -1px; }
.language-option[aria-selected="true"] { color: var(--accent); }
.language-option > span:first-child { width: 24px; flex-shrink: 0; font-size: 18px; line-height: 1; text-align: center; }
.language-option > span:last-child { overflow-wrap: anywhere; }
.language-empty { padding: 12px; font-size: 12px; color: var(--muted); }

/* Hero */
.hero { position: relative; padding: 72px 0 0; overflow: hidden; }
.hero__grid {
  position: absolute; inset: 0 0 auto; height: 900px; pointer-events: none;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .28;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 64px; }
.hero__copy { max-width: none; }
.hero__answer, .hero__lede { max-width: 36em; }
.hero__version { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; color: var(--muted); font-size: 13px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(181, 219, 163, .14); }
.hero__title { font-size: clamp(44px, 4.9vw, 72px); font-weight: 680; line-height: 1.12; letter-spacing: -.04em; }
.pain__lead { display: block; margin-bottom: .3em; color: var(--muted); font-size: .46em; font-weight: 600; letter-spacing: -.01em; }
.pain { display: grid; }
.pain__item { grid-area: 1 / 1; visibility: hidden; }
.pain__item.is-on, .pain__item.is-out { visibility: visible; }
.pain__item.is-on .split-c { animation: char-in 680ms cubic-bezier(.2,.75,.2,1) both; animation-delay: calc(var(--i) * 16ms); }
.pain__item.is-out { animation: pain-out 420ms var(--ease) forwards; }
@keyframes pain-out { to { opacity: 0; transform: translateY(-.25em); filter: blur(8px); } }
/* Strike-through sweep: the old way gets crossed out before the next pain appears */
.pain__text { background: linear-gradient(var(--danger), var(--danger)) no-repeat 0 56% / 0% .055em; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size 520ms var(--ease), color 520ms var(--ease); }
.pain__item.is-struck .pain__text { background-size: 100% .055em; color: var(--faint); }
.hero__answer { margin-top: 28px; color: var(--accent); font-size: clamp(26px, 2.4vw, 34px); font-weight: 650; letter-spacing: -.03em; line-height: 1.3; }
/* CJK headings break at punctuation, not mid-phrase; overflow-wrap is the narrow-screen escape hatch. */
:lang(zh) :is(h1, h2, h3, .hero__answer), :lang(ja) :is(h1, h2, h3, .hero__answer), :lang(ko) :is(h1, h2, h3, .hero__answer, .manifesto__text) { word-break: keep-all; overflow-wrap: anywhere; }
:lang(en) .hero__title { letter-spacing: -.04em; }
.hero__lede { max-width: 36em; margin-top: 14px; color: var(--muted); font-size: 18px; line-height: 1.7; text-wrap: pretty; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero__stage { position: relative; width: 100%; max-width: 1120px; margin-inline: auto; transform-origin: 50% 0; will-change: transform; }
.hero__glow { position: absolute; inset: -6% 4% 10% 4%; z-index: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(202, 232, 166, .09), transparent 70%); pointer-events: none; }
.window {
  position: relative; z-index: 1;
  border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--bg-deep);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .25);
  will-change: transform;
}
.window__bar { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--line-soft); }
.lights { display: flex; gap: 6px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.window__tab { display: flex; align-items: center; gap: 8px; max-width: 240px; height: 30px; padding: 0 12px; border-radius: 8px 8px 0 0; background: var(--surface); font-size: 12px; color: var(--text); }
.window__tab-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.favicon { width: 12px; height: 12px; border-radius: 3px; background: var(--muted); opacity: .6; flex: none; }
.window__url { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; height: 28px; padding: 0 10px; border-radius: 7px; background: var(--surface); color: var(--faint); font-size: 12px; white-space: nowrap; overflow: hidden; }
.window__url .ico { width: 12px; height: 12px; }
.window__body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; height: 560px; }

.chat { display: flex; flex-direction: column; gap: 14px; padding: 28px 24px 20px; font-size: 13px; line-height: 1.65; color: var(--muted); }
.chat__msg { max-width: 92%; }
.chat__msg--me { align-self: flex-end; padding: 10px 14px; border-radius: 14px; background: var(--surface); color: var(--text); }
.chat__msg ol { margin-top: 6px; padding-inline-start: 18px; list-style: decimal; }
.chat__msg li + li { margin-top: 4px; }
.chat__composer { margin-top: auto; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 14px; color: var(--faint); }

.panel { position: relative; display: flex; flex-direction: column; border-inline-start: 1px solid var(--line); background: var(--bg); padding: 14px 16px; font-size: 12px; overflow: hidden; border-end-end-radius: var(--r-xl); }
.panel__head { display: flex; align-items: center; justify-content: space-between; }
.panel__brand { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; letter-spacing: -.02em; }
.panel__tabs { display: flex; gap: 18px; margin-top: 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
.panel__tabs > span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.panel__tabs .ico { width: 13px; height: 13px; }
.panel__tabs .is-on { color: var(--text); border-color: var(--accent); font-weight: 600; }
.panel__title { margin-top: 14px; font-size: 18px; font-weight: 650; letter-spacing: -.025em; }
.panel__search { display: flex; align-items: center; gap: 8px; height: 32px; margin-top: 10px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--faint); }
.panel__search .ico { width: 13px; height: 13px; }
.panel__archive { display: flex; align-items: center; justify-content: center; gap: 6px; height: 32px; margin-top: 8px; border-radius: var(--r); background: var(--accent); color: var(--on-accent); font-weight: 600; transform-origin: center; }
.panel__archive .ico { width: 13px; height: 13px; }
.panel__label { margin-top: 14px; color: var(--muted); font-weight: 600; }
.tree { margin-top: 4px; }
.tree li { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px; border-radius: var(--r-sm); }
.tree li .ico { width: 13px; height: 13px; color: var(--muted); }
.tree li .ico--sm { width: 10px; height: 10px; transform: rotate(90deg); }
.tree li b { margin-inline-start: auto; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.tree__sub { margin-inline-start: 20px; }
.tree li.is-on { background: var(--hover); color: var(--accent); }
.tree li.is-on .ico { color: var(--accent); }
.panel__list { flex: 1; min-height: 0; margin-top: 8px; border-top: 1px solid var(--line); overflow: hidden; }
.row { padding: 10px 2px; border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.row__title { font-weight: 650; font-size: 13px; color: var(--text); }
.row__sum { margin-top: 2px; color: var(--muted); }
.row__meta { display: flex; gap: 10px; margin-top: 4px; color: var(--faint); font-size: 11px; }
.row__meta b { color: var(--text); font-weight: 600; }
.row.is-new { background: linear-gradient(90deg, rgba(202, 232, 166, .08), transparent 70%); }
.panel__toast { flex: none; min-height: 36px; margin-top: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--hover); color: var(--success); opacity: 0; transform: translateY(6px); transition: opacity 240ms var(--ease), transform 240ms var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel__toast.is-on { opacity: 1; transform: none; }
.flychip { position: absolute; z-index: 5; top: 0; left: 0; padding: 4px 10px; border: 1px solid rgba(202, 232, 166, .5); border-radius: 999px; background: var(--hover); color: var(--accent); font-size: 12px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; }
/* Film: cursor, scenes, panel views */
.cursor { position: absolute; z-index: 6; top: 0; left: 0; width: 22px; height: 22px; margin: -3px 0 0 -4px; pointer-events: none; opacity: 0; transition: opacity 260ms var(--ease); }
.cursor.is-on { opacity: 1; }
.cursor svg { width: 22px; height: 22px; fill: var(--text); stroke: #0f110f; stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); transform-origin: 20% 15%; }
.cursor__ring { position: absolute; left: 4px; top: 3px; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--accent); opacity: 0; transform: translate(-50%, -50%); }
.film { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; padding-inline: 4px; }
.film__caption { min-height: 1.6em; color: var(--muted); font-size: 14px; }
.film__controls { display: flex; align-items: center; gap: 16px; flex: none; }
.film__scenes { display: flex; gap: 6px; }
.film__scenes button { display: grid; gap: 6px; min-width: 64px; padding: 4px 2px; border: 0; background: none; color: var(--faint); font-size: 12px; text-align: start; cursor: pointer; transition: color 160ms var(--ease); }
.film__scenes button:hover, .film__scenes button.is-on { color: var(--text); }
.film__scenes i { display: block; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.film__scenes b { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.panel__view { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.panel__view[hidden] { display: none; }
.panel__tabs > span { transition: color 200ms var(--ease), border-color 200ms var(--ease); }
.panel__search { transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease); }
.panel__search.is-focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(202, 232, 166, .12); color: var(--text); }
.panel__search-q { color: var(--text); }
.panel__search:has(.panel__search-q:not(:empty)) .panel__search-ph { display: none; }
.panel__search.is-focus .panel__search-q::after { content: ""; display: inline-block; width: 1.5px; height: 13px; margin-inline-start: 1px; vertical-align: -2px; background: var(--accent); animation: blink 1s steps(1) infinite; }
.panel__search.is-focus:not(:has(.panel__search-q:not(:empty))) .panel__search-ph { display: none; }
.prow { padding: 10px 8px; margin-top: 4px; border-radius: var(--r); border: 1px solid transparent; transition: background-color 200ms var(--ease), border-color 200ms var(--ease); }
.prow + .prow { border-top-color: var(--line-soft); border-radius: 0; }
.prow.is-on { background: var(--hover); border-color: var(--line); border-radius: var(--r); }
.prow__title { font-size: 13px; font-weight: 650; }
.prow.is-on .prow__title { color: var(--accent); }
.prow__body { margin-top: 2px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prow__vars { display: inline-flex; align-items: center; gap: 4px; }
.prow__vars .ico { width: 11px; height: 11px; }
.panel__dialog { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3; display: grid; gap: 7px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #1a1d1a; box-shadow: 0 -20px 40px -10px rgba(0,0,0,.6); transform: translateY(110%); transition: transform 380ms cubic-bezier(.2,.8,.2,1); }
.panel__dialog.is-open { transform: none; }
.panel__dialog[hidden] { display: none; }
.panel::after { content: ""; position: absolute; inset: 0; z-index: 2; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity 300ms var(--ease); }
.panel:has(.panel__dialog.is-open)::after { opacity: 1; }
.dlg__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.dlg__head .ico { width: 13px; height: 13px; color: var(--muted); }
.dlg__title { font-size: 14px; font-weight: 650; }
.dlg__field { display: grid; gap: 4px; }
.dlg__label { color: var(--muted); font-size: 11px; font-weight: 600; }
.dlg__input { min-height: 28px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text); transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease); }
.dlg__input.is-focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(202, 232, 166, .12); }
.dlg__input.is-focus::after { content: ""; display: inline-block; width: 1.5px; height: 12px; margin-inline-start: 1px; vertical-align: -2px; background: var(--accent); animation: blink 1s steps(1) infinite; }
.dlg__preview { padding: 7px 9px; border: 1px solid var(--line-soft); border-radius: 7px; background: var(--bg); color: var(--muted); line-height: 1.7; }
.dlg__preview .fill { color: var(--accent); }
.dlg__preview .fill.is-live { box-shadow: inset 0 -1.5px 0 var(--accent); }
.dlg__preview .tok { margin: 0 2px; padding: 0 5px; font-size: 11px; border: 1px dashed var(--line); background: none; color: var(--faint); }
.dlg__btn { display: flex; align-items: center; justify-content: center; gap: 6px; height: 30px; margin-top: 4px; border-radius: var(--r); background: var(--accent); color: var(--on-accent); font-weight: 600; }
.dlg__btn .ico { width: 13px; height: 13px; }
.chat__composer { position: relative; transition: border-color 400ms var(--ease), box-shadow 600ms var(--ease); }
.chat__composer.has-text .chat__ph { display: none; }
.chat__ins { color: var(--text); }
.chat__composer.is-glow { border-color: rgba(202, 232, 166, .6); box-shadow: 0 0 0 4px rgba(202, 232, 166, .08), 0 0 40px -8px rgba(202, 232, 166, .25); }

/* Trust row */
.trust { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 88px; padding: 22px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 14px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .ico { color: var(--accent); opacity: .85; }

/* Sections */
.section { padding: 128px 0 0; }
.section__head { max-width: 640px; margin-bottom: 56px; }
.section__head h2 { font-size: clamp(32px, 3.4vw, 46px); font-weight: 660; line-height: 1.15; letter-spacing: -.035em; text-wrap: balance; }
.section__head p { margin-top: 16px; color: var(--muted); font-size: 17px; text-wrap: pretty; }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; max-width: none; }
.section__head--row > div { max-width: 640px; }

/* Features (alternating) */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line-soft); }
.feature--flip .feature__text { order: 2; }
.feature__text h3 { font-size: 26px; font-weight: 650; line-height: 1.3; letter-spacing: -.025em; }
.feature__text p { max-width: 30em; margin-top: 14px; color: var(--muted); }
.feature__note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--faint) !important; }
.feature__note kbd + span { margin-inline-start: 6px; }
.feature__vis { position: relative; min-height: 260px; display: grid; place-items: center; padding: 36px; border: 1px solid var(--line-soft); border-radius: var(--r-xl); background: radial-gradient(120% 90% at 50% 0%, #1d201d, var(--bg-deep)); overflow: hidden; }

.record { width: min(100%, 400px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); }
.record__head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.record dl { padding: 6px 16px; }
.record dl > div { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 8px 0; font-size: 13px; }
.record dl > div + div { border-top: 1px solid var(--line-soft); }
.record dt { color: var(--faint); }
.record dd { color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.path { display: inline-flex; align-items: center; gap: 4px; }
.path .ico { color: var(--faint); }
.record__no { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px dashed var(--line); color: var(--danger); font-size: 12px; }
.record__no .ico { width: 13px; height: 13px; }

.mini-search { width: min(100%, 420px); }
.mini-search__field { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border: 1px solid var(--accent); border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 4px rgba(202, 232, 166, .08); font-size: 15px; }
.caret { width: 1.5px; height: 18px; margin-inline-start: -8px; background: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mini-search__chips { display: flex; gap: 6px; margin: 12px 0 6px; font-size: 12px; }
.mini-search__chips span { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.mini-search__chips .is-on { border-color: transparent; background: var(--hover); color: var(--accent); }
.mini-search__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line-soft); font-size: 14px; font-weight: 600; }
.mini-search__row small { color: var(--faint); font-weight: 500; font-size: 12px; }
mark { background: rgba(202, 232, 166, .2); color: var(--accent); border-radius: 3px; padding: 0 2px; }
.mini-search__count { margin-top: 12px; color: var(--faint); font-size: 12px; }

.tpl { display: grid; gap: 14px; width: min(100%, 440px); font-size: 15px; line-height: 2; }
.tpl__src, .tpl__out { padding: 16px 18px; border-radius: var(--r-lg); }
.tpl__src { border: 1px dashed var(--line); color: var(--muted); }
.tpl__out { border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.tok { display: inline-block; margin: 0 4px; padding: 0 8px; border-radius: 6px; background: var(--hover); color: var(--accent); font: 500 13px/1.8 var(--mono); }
.tpl__out b { margin: 0 2px; color: var(--accent); font-weight: 600; box-shadow: inset 0 -2px 0 rgba(202, 232, 166, .35); }
.tpl__arrow { justify-self: center; transform: rotate(90deg); color: var(--faint); width: 18px; height: 18px; }

.sitetabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 420px; }
.sitetabs span { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; }
.sitetabs .is-on { color: var(--text); }
.sitetabs .is-on::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-end: 8px; border-radius: 50%; background: var(--success); vertical-align: middle; }
.sitetabs .is-plan { border-style: dashed; background: transparent; color: var(--faint); }
.sitetabs__panel { display: flex; align-items: center; gap: 10px; margin-top: 28px; padding: 12px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); font-size: 14px; font-weight: 600; }
.feature__vis:has(.sitetabs) { display: flex; flex-direction: column; justify-content: center; }

.code { margin: 0; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); color: var(--text); font: 13px/1.75 var(--mono); white-space: pre; overflow: auto; }
.feature__vis .code { width: min(100%, 360px); }
.c-k { color: var(--accent); }
.c-n { color: #e8d9a6; }
.c-p { color: var(--faint); }
.c-m { color: var(--muted); }
.code__file { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--faint); font-size: 12px; }
.feature__vis:has(.code) { display: flex; flex-direction: column; justify-content: center; align-items: center; }

/* Demo */
.section--demo { position: relative; }
.demo { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }
.demo__tabs { position: sticky; top: 96px; display: grid; gap: 4px; }
.demo__tabs [role="tab"] {
  display: flex; align-items: flex-start; gap: 14px; width: 100%; padding: 14px 16px;
  border: 1px solid transparent; border-radius: var(--r-lg); background: none; text-align: start; cursor: pointer;
  color: var(--muted); transition: background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}
.demo__tabs [role="tab"] .ico { margin-top: 3px; width: 18px; height: 18px; }
.demo__tabs [role="tab"] span { display: grid; gap: 2px; }
.demo__tabs [role="tab"] b { font-size: 16px; font-weight: 600; color: var(--text); }
.demo__tabs [role="tab"] small { font-size: 13px; }
.demo__tabs [role="tab"]:hover { background: var(--surface); }
.demo__tabs [role="tab"][aria-selected="true"] { background: var(--surface); border-color: var(--line); color: var(--muted); }
.demo__tabs [role="tab"][aria-selected="true"] .ico { color: var(--accent); }
.demo__hint { margin-top: 16px; padding: 0 16px; color: var(--faint); font-size: 13px; }

.demo__stage { position: relative; min-height: 560px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--bg-deep); }
.pane { outline-offset: 6px; }
.pane.is-entering { animation: pane-in 220ms var(--ease) both; }
@keyframes pane-in { from { opacity: 0; transform: translateY(8px); } }

.pane__context { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--faint); font-size: 13px; }
.pane__site { padding: 2px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: 12px; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend, .field__label { padding: 0; color: var(--text); font-size: 14px; font-weight: 600; }
.field legend { margin-bottom: 8px; }
.field > .seg { justify-self: start; }
.field__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field input, .field textarea, .searchbar {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font-size: 15px;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.field textarea { resize: vertical; min-height: 64px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder, .searchbar input::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus, .searchbar:focus-within { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(202, 232, 166, .14); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field__err { min-height: 0; color: var(--danger); font-size: 13px; }
.field__err:empty { display: none; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form__note { display: inline-flex; align-items: center; gap: 8px; color: var(--faint); font-size: 13px; }
.form__btns { display: flex; gap: 8px; flex-wrap: wrap; }

.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.seg button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 14px; border: 0; border-radius: 7px; background: none; color: var(--muted); font-size: 14px; cursor: pointer; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.seg button:hover { color: var(--text); }
.seg button[aria-checked="true"] { background: var(--hover); color: var(--accent); font-weight: 600; }
.seg button small { font-size: 11px; color: var(--success); font-weight: 500; }
.seg button .ico { width: 14px; height: 14px; }
.seg--sm button { min-height: 30px; padding: 4px 12px; font-size: 13px; }

.recent { margin-top: 28px; }
.recent__label { margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.recent__list li, .results li { padding: 12px 4px; border-top: 1px solid var(--line-soft); }
.recent__list li.is-new { animation: row-in 420ms var(--ease) both; }
@keyframes row-in { from { opacity: 0; transform: translateY(-6px); background: rgba(202, 232, 166, .1); } to { background: transparent; } }
.item__title { font-weight: 600; font-size: 15px; }
.item__sum { margin-top: 2px; color: var(--muted); font-size: 14px; }
.item__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; color: var(--faint); font-size: 12px; }
.item__meta b { color: var(--text); font-weight: 600; }
.item__meta span { display: inline-flex; align-items: center; gap: 4px; }
.item__meta .ico { width: 12px; height: 12px; }

.searchbar { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 46px; }
.searchbar input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 16px; }
.searchbar .ico { color: var(--muted); }
.filters { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 16px 0 8px; flex-wrap: wrap; }
.filters__count { color: var(--faint); font-size: 13px; }
.results li { animation: row-in 260ms var(--ease) both; }
.empty { padding: 48px 16px; text-align: center; color: var(--muted); }
.empty__title { color: var(--text); font-size: 17px; font-weight: 600; }
.empty .btn { margin-top: 16px; }

.pane--prompt:not([hidden]) { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; }
.plist__items { display: grid; gap: 4px; }
.plist__items button { display: grid; gap: 2px; width: 100%; padding: 10px 12px; border: 1px solid transparent; border-radius: var(--r); background: none; text-align: start; cursor: pointer; transition: background-color 160ms var(--ease); }
.plist__items button b { font-size: 14px; font-weight: 600; }
.plist__items button small { color: var(--faint); font-size: 12px; }
.plist__items button:hover { background: var(--surface); }
.plist__items button[aria-checked="true"] { background: var(--hover); border-color: var(--line); }
.plist__items button[aria-checked="true"] b { color: var(--accent); }
.pfill { display: grid; gap: 18px; min-width: 0; }
.pfill__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.preview { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); font-size: 15px; line-height: 1.85; min-height: 84px; overflow-wrap: anywhere; }
.preview .fill { color: var(--accent); box-shadow: inset 0 -2px 0 rgba(202, 232, 166, .35); transition: color 160ms var(--ease); }
.preview .fill.is-pulse { animation: pulse 360ms var(--ease); }
@keyframes pulse { 0% { background: rgba(202, 232, 166, .22); } 100% { background: transparent; } }
.preview .tok { margin: 0 2px; border: 1px dashed var(--line); background: transparent; color: var(--faint); }
.composer { padding: 12px 14px; border: 1px dashed var(--line); border-radius: 14px; }
.composer__label { color: var(--faint); font-size: 12px; margin-bottom: 4px; }
.composer__text { color: var(--muted); font-size: 14px; min-height: 22px; overflow-wrap: anywhere; }
.composer__ins { color: var(--text); }
.composer__ins.is-new { animation: pulse 600ms var(--ease); border-radius: 4px; }

.backup__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.backup__title { font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.backup__sub { margin-top: 2px; color: var(--muted); font-size: 14px; }
.code--live { max-height: 340px; margin-bottom: 14px; }
.code--live.is-flash { animation: pulse 600ms var(--ease); }

.toast { position: absolute; left: 50%; bottom: 20px; max-width: calc(100% - 40px); padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--hover); color: var(--success); font-size: 14px; pointer-events: none; opacity: 0; transform: translate(-50%, 8px); transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { color: var(--danger); }

/* Privacy */
.privacy { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.privacy__col { padding: 32px; }
.privacy__col + .privacy__col { border-inline-start: 1px solid var(--line); }
.privacy__col h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 650; }
.privacy__col--no h3 .ico { color: var(--danger); }
.privacy__col ul { margin-top: 18px; }
.privacy__col li { padding: 12px 0; border-top: 1px solid var(--line-soft); color: var(--muted); }
.privacy__col--no li { color: var(--muted); }
.privacy__perm { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 12px 40px; align-items: start; padding: 28px 32px; border-top: 1px solid var(--line); background: var(--bg-deep); }
.privacy__permtitle { font-weight: 600; font-size: 15px; }
.privacy__perm dl { display: grid; gap: 8px; }
.privacy__perm dl > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.privacy__perm dt { min-width: 140px; color: var(--faint); font: 13px var(--mono); }
.privacy__perm dd { display: flex; flex-wrap: wrap; gap: 6px; }
code { padding: 2px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--accent); font: 13px/1.5 var(--mono); }
.privacy__note { margin-top: 16px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.privacy__caveat { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--line-soft); color: var(--faint); font-size: 14px; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan { display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--bg); }
.plan--pro { background: linear-gradient(180deg, #1e221d, var(--bg)); border-color: #4a5348; }
.plan__name { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 650; }
.badge--soon { border-color: rgba(202, 232, 166, .35); color: var(--accent); }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin-top: 16px; }
.num { font-size: 44px; font-weight: 680; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.per { color: var(--muted); font-size: 15px; }
.plan ul { flex: 1; margin: 24px 0 28px; }
.plan li { position: relative; padding: 9px 0 9px 26px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 15px; }
.plan li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 10px; height: 6px; border-left: 1.6px solid var(--accent); border-bottom: 1.6px solid var(--accent); transform: rotate(-45deg); }
.plan__note { margin-top: 12px; color: var(--faint); font-size: 13px; }
.plan .btn { align-self: flex-start; }

/* Sites */
.sites { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.site { display: grid; gap: 2px; align-content: start; min-height: 132px; padding: 22px 24px; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color 180ms var(--ease); }
.site:hover { background: var(--bg-deep); }
.site b { font-size: 20px; font-weight: 650; letter-spacing: -.02em; color: var(--faint); }
.site span { color: var(--faint); font-size: 13px; }
.site em { margin-top: 14px; justify-self: start; padding: 1px 8px; border: 1px dashed var(--line); border-radius: 5px; color: var(--faint); font-size: 12px; font-style: normal; }
.site--on b { color: var(--text); }
.site--on span { color: var(--muted); }
.site--on em { border: 1px solid transparent; background: rgba(181, 219, 163, .12); color: var(--success); }
.site--more b { color: var(--muted); font-size: 16px; }

/* Install */
.install { border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--bg-deep); overflow: hidden; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.steps li + li { border-inline-start: 1px solid var(--line-soft); }
.steps button { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; height: 100%; padding: 18px 20px; border: 0; background: none; color: var(--muted); font-size: 15px; text-align: start; cursor: pointer; transition: color 180ms var(--ease), background-color 180ms var(--ease); }
.steps button:hover { color: var(--text); background: var(--bg); }
.steps button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--ease); }
.steps button[aria-selected="true"] { color: var(--text); font-weight: 600; background: var(--bg); }
.steps button[aria-selected="true"]::after { transform: scaleX(1); }
.steps__n { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border: 1px solid var(--line); border-radius: 50%; font-size: 13px; font-variant-numeric: tabular-nums; }
.steps button[aria-selected="true"] .steps__n { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.steps button.is-done .steps__n { border-color: rgba(202, 232, 166, .5); color: var(--accent); }
.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; padding: 40px; min-height: 300px; outline-offset: -4px; }
.step__body { font-size: 17px; line-height: 1.75; color: var(--text); white-space: pre-line; }
.step__body code { font-size: 14px; }
.step__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.step__actions[hidden] { display: none; }
.ext { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); overflow: hidden; }
.ext__bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--faint); font: 12px var(--mono); }
.ext__body { min-height: 180px; padding: 18px; font-size: 14px; }
.ext__body.is-entering { animation: pane-in 220ms var(--ease) both; }
.ext-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: var(--r); }
.ext-row + .ext-row { margin-top: 8px; }
.ext-row.is-focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(202, 232, 166, .1); }
.ext-switch { width: 34px; height: 20px; border-radius: 999px; background: var(--line); position: relative; flex: none; }
.ext-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform 240ms var(--ease) 200ms, background-color 240ms var(--ease) 200ms; }
.ext-switch.is-on { background: rgba(202, 232, 166, .35); }
.ext-switch.is-on::after { transform: translateX(14px); background: var(--accent); }
.ext-btn { padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; color: var(--text); }
.ext-btn.is-focus { border-color: var(--accent); color: var(--accent); }
.ext-file { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; font: 13px var(--mono); color: var(--muted); }
.ext-file .ico { color: var(--muted); }
.ext-file--child { padding-inline-start: 34px; }
.ext-file.is-focus { background: var(--hover); color: var(--accent); }
.ext-file.is-focus .ico { color: var(--accent); }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.faq .section__head { position: sticky; top: 112px; }
.faq__list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; display: block; padding: 22px 48px 22px 0; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; transition: color 160ms var(--ease); }
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--accent); }
summary::before, summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 1.6px; border-radius: 2px; background: var(--muted); transition: transform 220ms var(--ease); }
summary::after { transform: rotate(90deg); }
details[open] summary::after { transform: rotate(0); }
details p { padding: 0 48px 24px 0; color: var(--muted); }
details .faq__body { overflow: hidden; }

/* Closing */
.closing { padding: 144px 0 120px; }
.closing__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.closing__inner img { border-radius: 14px; }
.closing h2 { margin-top: 28px; font-size: clamp(32px, 3.6vw, 52px); font-weight: 680; letter-spacing: -.04em; line-height: 1.15; text-wrap: balance; }
.closing .hero__ctas { justify-content: center; }

/* Footer */
.footer { border-top: 1px solid var(--line-soft); padding: 40px 0 56px; color: var(--faint); font-size: 13px; }
.footer__inner { display: flex; justify-content: space-between; gap: 48px; }
.footer__brand { display: grid; gap: 8px; align-content: start; }
.footer__brand .brand { color: var(--text); font-size: 15px; }
.footer__meta { display: grid; gap: 6px; max-width: 560px; text-align: end; }


/* Feature story — desktop: text scrolls, the stage stays pinned and plays each feature */
.story.is-story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; }
.story.is-story .story__steps { position: relative; padding-inline-start: 32px; }
.story.is-story .story__steps::before, .story.is-story .story__steps::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: var(--line-soft); }
.story.is-story .story__steps::after { background: linear-gradient(var(--accent), rgba(202, 232, 166, .3)); transform-origin: top; transform: scaleY(var(--p, 0)); }
.story.is-story .feature { display: flex; align-items: center; min-height: 76vh; padding: 0; border: 0; }
.story.is-story .feature:first-child { min-height: 60vh; align-items: flex-start; padding-top: 12vh; }
.story.is-story .feature:last-child { min-height: 70vh; }
.story.is-story .feature__text { opacity: .26; transform: translateX(-6px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.story.is-story .feature.is-active .feature__text { opacity: 1; transform: none; }
.story.is-story .feature__text h3 { font-size: 30px; }
.story__stage { display: none; }
.story.is-story .story__stage { display: block; position: relative; }
.story__sticky { position: sticky; top: max(96px, calc(50vh - 280px)); display: flex; gap: 18px; align-items: center; height: 560px; }
.story__frame { position: relative; flex: 1; height: 100%; border: 1px solid var(--line-soft); border-radius: 20px; background: radial-gradient(120% 80% at 50% 0%, #1f231f, var(--bg-deep) 70%); overflow: hidden; }
.story__frame::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(202, 232, 166, .07) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent); }
.story__frame .feature__vis { position: absolute; inset: 0; min-height: 0; padding: 40px; border: 0; border-radius: 0; background: none; zoom: 1.14; opacity: 0; transform: translateY(28px) scale(.97); filter: blur(8px); pointer-events: none; transition: opacity 520ms var(--ease), transform 700ms var(--ease), filter 520ms var(--ease); }
.story__frame .feature__vis.is-active { opacity: 1; transform: none; filter: none; transition-delay: 120ms; }
.story__rail { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.story__rail li { width: 4px; height: 4px; border-radius: 4px; background: var(--line); transition: height 400ms var(--ease), background-color 400ms var(--ease); }
.story__rail li.is-on { height: 28px; background: var(--accent); }

/* Per-feature choreography, keyed off .is-active on the visual */
.feature__vis .record dl > div, .feature__vis .record__no, .feature__vis .mini-search__row, .feature__vis .mini-search__count,
.feature__vis .tpl__out, .feature__vis .tpl__arrow, .feature__vis .sitetabs span, .feature__vis .sitetabs__panel, .feature__vis .code, .feature__vis .code__file {
  transition: opacity 460ms var(--ease), transform 520ms var(--ease), clip-path 900ms var(--ease), background-size 700ms var(--ease);
}
.feature__vis:not(.is-active) .record dl > div { opacity: 0; transform: translateX(-12px); }
.feature__vis.is-active .record dl > div:nth-child(1) { transition-delay: 220ms; }
.feature__vis.is-active .record dl > div:nth-child(2) { transition-delay: 320ms; }
.feature__vis.is-active .record dl > div:nth-child(3) { transition-delay: 420ms; }
.feature__vis.is-active .record dl > div:nth-child(4) { transition-delay: 520ms; }
.feature__vis:not(.is-active) .record__no { clip-path: inset(0 100% 0 0); }
.feature__vis.is-active .record__no { clip-path: inset(0 0 0 0); transition-delay: 760ms; }
.feature__vis:not(.is-active) .mini-search__row, .feature__vis:not(.is-active) .mini-search__count { opacity: 0; transform: translateY(8px); }
.feature__vis.is-active .mini-search__row:nth-of-type(3) { transition-delay: 900ms; }
.feature__vis.is-active .mini-search__row:nth-of-type(4) { transition-delay: 1000ms; }
.feature__vis.is-active .mini-search__count { transition-delay: 1150ms; }
.feature__vis:not(.is-active) .tpl__out, .feature__vis:not(.is-active) .tpl__arrow { opacity: 0; transform: translateY(-14px); }
.feature__vis.is-active .tpl__arrow { transition-delay: 380ms; }
.feature__vis.is-active .tpl__out { transition-delay: 560ms; }
.tpl__out b { background: linear-gradient(rgba(202, 232, 166, .22), rgba(202, 232, 166, .22)) no-repeat left / 0% 100%; border-radius: 3px; }
.feature__vis.is-active .tpl__out b { background-size: 100% 100%; transition-delay: 1000ms; }
.feature__vis.is-active .tpl__src .tok { animation: tok-pop 600ms var(--ease) 200ms both; }
@keyframes tok-pop { 40% { transform: translateY(-3px); box-shadow: 0 0 0 3px rgba(202, 232, 166, .15); } }
.feature__vis:not(.is-active) .sitetabs span { opacity: 0; transform: scale(.9) translateY(6px); }
.feature__vis.is-active .sitetabs span:nth-child(1) { transition-delay: 160ms; }
.feature__vis.is-active .sitetabs span:nth-child(2) { transition-delay: 240ms; }
.feature__vis.is-active .sitetabs span:nth-child(3) { transition-delay: 360ms; }
.feature__vis.is-active .sitetabs span:nth-child(4) { transition-delay: 420ms; }
.feature__vis.is-active .sitetabs span:nth-child(5) { transition-delay: 480ms; }
.feature__vis:not(.is-active) .sitetabs__panel { opacity: 0; transform: translateY(14px); }
.feature__vis.is-active .sitetabs__panel { transition-delay: 640ms; }
.sitetabs__panel { position: relative; }
.feature__vis.is-active .sitetabs__panel::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 28px; background: linear-gradient(transparent, var(--accent)); animation: beam 900ms var(--ease) 700ms both; }
@keyframes beam { from { transform: scaleY(0); transform-origin: top; } }
.feature__vis:not(.is-active) .code { clip-path: inset(0 0 100% 0); }
.feature__vis.is-active .code { clip-path: inset(0 0 0 0); transition-delay: 160ms; }
.feature__vis:not(.is-active) .code__file { opacity: 0; transform: translateY(8px); }
.feature__vis.is-active .code__file { transition-delay: 900ms; }

/* Letter reveal for headings (spans are aria-hidden; the heading keeps an aria-label) */
.split-w { display: inline-block; white-space: nowrap; }
.split-c { display: inline-block; }
.js .is-splitting .split-c { animation: char-in 720ms cubic-bezier(.2,.75,.2,1) both; animation-delay: calc(var(--i) * 26ms); }
@keyframes char-in { from { opacity: 0; transform: translateY(.45em) rotate(4deg); filter: blur(10px); } }

/* Soft light that follows the pointer on large surfaces */
.spot { position: relative; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 300ms var(--ease); background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(202, 232, 166, .07), transparent 60%); }
.spot:hover::before { opacity: 1; }
.spot > * { position: relative; z-index: 1; }

/* Breathing glow behind the hero product */
.hero__glow { animation: breathe 9s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; transform: scale(1.04); } }


/* Manifesto — desktop: pinned paragraph whose words light up as you scroll */
.manifesto { padding: 120px 0 0; }
.manifesto__text { max-width: 22em; font-size: clamp(30px, 3.3vw, 46px); font-weight: 620; line-height: 1.38; letter-spacing: -.03em; text-wrap: pretty; }
:lang(en) .manifesto__text { max-width: 24em; }
.manifesto .mw { transition: color 260ms var(--ease), opacity 260ms var(--ease); }
.manifesto.is-scrubbed { height: 230vh; padding: 0; }
.manifesto.is-scrubbed .manifesto__sticky { position: sticky; top: 0; display: flex; align-items: center; height: 100vh; }
.manifesto__sticky > .wrap { width: 100%; }
:lang(zh) .manifesto__text, :lang(ja) .manifesto__text { word-break: keep-all; overflow-wrap: anywhere; }
.manifesto.is-scrubbed .mw { color: var(--line); }
.manifesto.is-scrubbed .mw.is-lit { color: var(--text); }

/* Pause-animations control in the nav */
.iconbtn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: var(--r); background: none; color: var(--muted); cursor: pointer; transition: color 160ms var(--ease), border-color 160ms var(--ease), background-color 160ms var(--ease); }
.iconbtn:hover { color: var(--text); border-color: #4a5348; background: var(--surface); }
.iconbtn[aria-pressed="true"] { color: var(--accent); border-color: rgba(202, 232, 166, .4); }
.iconbtn .ico { width: 14px; height: 14px; }
html.is-paused *, html.is-paused *::before, html.is-paused *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
html.is-paused { scroll-behavior: auto; }
html.is-paused .caret { display: none; }

/* Reveal (JS adds .js to <html>) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 640ms var(--ease), transform 640ms var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* No resting opacity:0 — if animations never run, the hero is still fully visible. */
.js .hero__copy > :not(h1) { animation: rise 640ms var(--ease) both; }
.js .hero__copy > :nth-child(2) { animation-delay: 60ms; }
.js .hero__copy > :nth-child(3) { animation-delay: 130ms; }
.js .hero__copy > :nth-child(4) { animation-delay: 200ms; }
.js .hero__stage { animation: rise 760ms var(--ease) 160ms both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Tablet */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__stage { margin-inline-end: 0; }
  .feature { gap: 48px; }
  .demo { grid-template-columns: 1fr; }
  .demo__tabs { position: static; grid-template-columns: repeat(4, 1fr); }
  .demo__tabs [role="tab"] small, .demo__hint { display: none; }
  .sites { grid-template-columns: repeat(2, 1fr); }
  .faq { grid-template-columns: 1fr; gap: 0; }
  .faq .section__head { position: static; }
}
@media (max-width: 820px) {
  :root { --gutter: 16px; }
  .hero { padding-top: 40px; }
  .window__body { grid-template-columns: 1fr; height: auto; }
  .chat { display: none; }
  .panel { border-inline-start: 0; min-height: 440px; border-end-start-radius: var(--r-xl); }
  .window__url { display: none; }
  .trust { margin-top: 56px; justify-content: flex-start; }
  .section { padding-top: 88px; }
  .feature, .feature--flip { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .feature--flip .feature__text { order: 0; }
  .feature__vis { padding: 24px 16px; min-height: 0; }
  .demo__stage { padding: 20px 16px 72px; min-height: 0; }
  .demo__tabs { grid-template-columns: repeat(2, 1fr); }
  .pane--prompt:not([hidden]) { grid-template-columns: 1fr; }
  .privacy { grid-template-columns: 1fr; }
  .privacy__col + .privacy__col { border-inline-start: 0; border-top: 1px solid var(--line); }
  .privacy__col, .privacy__perm { padding: 24px 20px; }
  .privacy__perm { grid-template-columns: 1fr; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .plans:not(.plans--3) { grid-template-columns: 1fr; }
  .plans--3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { border-inline-start: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .step { grid-template-columns: 1fr; padding: 24px 20px; gap: 28px; }
  .footer__inner { flex-direction: column; gap: 20px; }
  .footer__meta { text-align: start; }
  .film { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .nav__end .btn { display: none; }
  .sites { grid-template-columns: 1fr; }
  .site { min-height: 0; }
  .hero__ctas .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .js .reveal, .js .hero__copy > *, .js .hero__stage { opacity: 1; transform: none; }
  .caret { display: none; }
}


/* —— Hybrid C elevations (2026-10-28) —— */
.nav__mail {
  color: var(--accent) !important;
  font-weight: 600;
}
.nav__mail:hover { background: rgba(202, 232, 166, .08) !important; }
.plans--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.plan--life {
  background: linear-gradient(180deg, #1a1d1a, var(--bg));
}
.plan__tax {
  margin: -4px 0 12px;
  color: var(--faint);
  font-size: 12px;
}
.plan {
  transition: transform 280ms var(--ease), border-color 280ms var(--ease), box-shadow 280ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .plan:hover {
    transform: translateY(-3px);
    border-color: #4a5348;
    box-shadow: 0 18px 40px -28px rgba(0,0,0,.65);
  }
}
.link { color: var(--accent); text-underline-offset: 3px; }
.link:hover { color: var(--accent-hover); }
.site--on em {
  color: var(--on-accent);
  background: var(--accent);
  border-radius: 999px;
  padding: 2px 8px;
  font-style: normal;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .02em;
}
.hero__answer {
  text-wrap: balance;
}
.hero__ctas .btn--primary {
  box-shadow: 0 0 0 1px rgba(202,232,166,.18), 0 12px 32px -16px rgba(202,232,166,.45);
}
.hero__ctas .btn--primary:hover {
  box-shadow: 0 0 0 1px rgba(202,232,166,.28), 0 16px 36px -14px rgba(202,232,166,.55);
}
/* Soft ambient grid without noise/particles */
.hero__grid {
  opacity: .35;
  background-image:
    linear-gradient(rgba(202,232,166,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(202,232,166,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}
html.is-paused .plan,
html.is-paused .hero__ctas .btn--primary {
  transition: none !important;
  transform: none !important;
  box-shadow: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .plan { transition: none !important; }
  .plan:hover { transform: none; }
}
@media (max-width: 900px) {
  .plans--3 { grid-template-columns: 1fr; }
}
@media (min-width: 901px) {
  .plans.plans--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav__mail { display: none; }
}

.plan__alt { margin: -2px 0 12px; color: var(--muted); font-size: 13px; }


/* —— Landing UX pass 2026-10-28d —— */
.film-anchor { position: relative; top: 0; height: 0; scroll-margin-top: 96px; }
#film, #demo, #install, #pricing, #features, #privacy, #sites, #faq, #manifesto, #hero-stage {
  scroll-margin-top: 96px;
}
.plans.plans--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.plans--3 .plan { min-width: 0; }
@media (max-width: 900px) {
  .plans.plans--3 { grid-template-columns: 1fr; }
}

/* Visual pain → solution */
.painvis { padding: 96px 0 40px; }
.painvis .eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 13px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.painvis__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.paincard {
  display: flex; flex-direction: column; gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--bg);
  min-height: 280px;
}
.paincard--bad { background: linear-gradient(180deg, #1c1818, var(--bg)); border-color: #3a3030; }
.paincard--good {
  background: linear-gradient(180deg, #1e221d, var(--bg));
  border-color: #4a5348;
  box-shadow: 0 18px 40px -28px rgba(202,232,166,.35);
}
.paincard__tag {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px; font-weight: 650; letter-spacing: .03em;
  color: var(--faint); border: 1px solid var(--line);
}
.paincard--good .paincard__tag { color: var(--on-accent); background: var(--accent); border-color: transparent; }
.paincard h3 { font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.paincard p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.paincard__vis { height: 88px; display: grid; place-items: center; margin: 4px 0 8px; }
.painmock { width: 100%; max-width: 160px; }
.painmock--scroll { position: relative; display: grid; gap: 6px; }
.painmock--scroll i {
  display: block; height: 8px; border-radius: 4px;
  background: rgba(255,255,255,.08);
  animation: pain-scroll 2.4s var(--ease) infinite;
}
.painmock--scroll i:nth-child(1) { width: 92%; }
.painmock--scroll i:nth-child(2) { width: 78%; animation-delay: .1s; }
.painmock--scroll i:nth-child(3) { width: 86%; animation-delay: .2s; }
.painmock--scroll i:nth-child(4) { width: 64%; animation-delay: .3s; }
.painmock--scroll i:nth-child(5) { width: 88%; animation-delay: .4s; }
.painmock--scroll i:nth-child(6) { width: 70%; animation-delay: .5s; background: rgba(202,232,166,.35); }
.painmock__cursor {
  position: absolute; right: 8px; bottom: -2px; width: 10px; height: 14px;
  border-radius: 2px; background: var(--accent);
  animation: pain-blink 1s steps(2) infinite;
}
@keyframes pain-scroll {
  0%, 100% { transform: translateY(0); opacity: .55; }
  50% { transform: translateY(-6px); opacity: 1; }
}
@keyframes pain-blink { 50% { opacity: 0; } }
.painmock--notes { display: flex; justify-content: center; gap: 10px; font-size: 28px; animation: pain-notes 2.8s var(--ease) infinite; }
@keyframes pain-notes {
  0%, 100% { transform: translateX(0); }
  40% { transform: translateX(6px); }
  70% { transform: translateX(-4px); }
}
.painmock--cloud { display: grid; justify-items: center; gap: 8px; color: var(--faint); font-size: 12px; }
.painmock--cloud .ico { width: 28px; height: 28px; stroke: var(--danger, #e8a0a0); }
.painmock--nest { display: grid; gap: 10px; justify-items: start; width: 100%; }
.painmock--nest .ico { width: 28px; height: 28px; }
.painmock--nest ul { display: grid; gap: 6px; width: 100%; margin: 0; padding: 0; list-style: none; }
.painmock--nest li {
  position: relative; padding: 6px 10px 6px 22px;
  border-radius: 8px; background: rgba(202,232,166,.08);
  color: var(--accent); font-size: 13px; font-weight: 600;
}
.painmock--nest li::before {
  content: ""; position: absolute; left: 8px; top: 11px;
  width: 8px; height: 5px; border-left: 1.6px solid var(--accent); border-bottom: 1.6px solid var(--accent);
  transform: rotate(-45deg);
}
@media (max-width: 1100px) {
  .painvis__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .painvis__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .painmock--scroll i, .painmock__cursor, .painmock--notes { animation: none !important; }
}
html.is-paused .painmock--scroll i,
html.is-paused .painmock__cursor,
html.is-paused .painmock--notes { animation: none !important; }

/* Sites experimental */
.site--exp em {
  color: #e8d7a0;
  background: rgba(232, 215, 160, .12);
  border: 1px solid rgba(232, 215, 160, .28);
  border-radius: 999px;
  padding: 2px 8px;
  font-style: normal;
  font-size: 11px;
  font-weight: 650;
}
.sites__note { margin-top: 16px; color: var(--faint); font-size: 13px; }

/* FAQ language chips */
.langchips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 14px 0 0; padding: 0; list-style: none;
}
.langchips li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--bg-deep, var(--bg));
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.footer__meta { max-width: 420px; }


/* —— Public subpages (pricing / legal) —— */
.page-main { padding: 48px 0 96px; min-height: calc(100vh - 64px - 180px); }
.page-main--pricing { padding-top: 40px; }
.page-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 12px; color: var(--accent); font-size: 13px; font-weight: 650;
  letter-spacing: .04em; text-transform: uppercase;
}
.page-title {
  margin: 0; font-size: clamp(32px, 4vw, 46px); font-weight: 660;
  line-height: 1.15; letter-spacing: -.035em; text-wrap: balance;
}
.page-lede {
  margin: 16px 0 0; max-width: 46rem; color: var(--muted); font-size: 17px;
  line-height: 1.65; text-wrap: pretty;
}
.page-meta {
  margin: 18px 0 0; color: var(--faint); font-size: 13px; line-height: 1.55;
}
.page-meta a { color: var(--accent); text-underline-offset: 3px; }
.page-head { margin-bottom: 40px; }
.page-head--row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 32px;
}
.page-head--row .page-lede { margin-top: 12px; }

.legal-doc {
  max-width: 46rem; margin: 0 auto;
  padding: 36px 32px 40px;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: linear-gradient(180deg, #1c1f1c, var(--bg));
}
.legal-doc h2 {
  margin: 2rem 0 .75rem; padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
  font-size: 1.15rem; font-weight: 650; letter-spacing: -.02em; color: var(--text);
}
.legal-doc h2:first-of-type { margin-top: 1.25rem; padding-top: 0; border-top: 0; }
.legal-doc p { margin: 0 0 1rem; color: var(--muted); font-size: 15.5px; line-height: 1.75; }
.legal-doc p strong, .legal-doc li strong { color: var(--text); font-weight: 650; }
.legal-doc ul, .legal-doc ol {
  margin: 0 0 1.1rem; padding-left: 1.35rem;
  list-style: disc; color: var(--muted);
}
.legal-doc ol { list-style: decimal; }
.legal-doc li {
  margin: .45rem 0; padding: 0; border: 0;
  font-size: 15.5px; line-height: 1.7; color: var(--muted);
}
.legal-doc li::before { content: none !important; }
/* Text links only: .btn keeps its own colours (otherwise .btn--primary text = accent on accent). */
.legal-doc a:not(.btn) { color: var(--accent); text-underline-offset: 3px; }
.legal-doc a:not(.btn):hover { color: var(--accent-hover); }
.legal-doc code {
  font: 600 13px/1.4 var(--mono); padding: 1px 6px;
  border: 1px solid var(--line-soft); border-radius: 5px; background: var(--surface);
  color: var(--text);
}
.legal-doc .lede {
  margin: 0 0 1.5rem; color: var(--text); font-size: 17px; line-height: 1.65;
}
.legal-toc {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none;
}
.legal-toc a {
  display: inline-flex; padding: 6px 12px; border: 1px solid var(--line-soft);
  border-radius: 999px; background: var(--bg-deep); color: var(--muted);
  font-size: 13px; text-decoration: none; transition: color 160ms var(--ease), border-color 160ms var(--ease), background 160ms var(--ease);
}
.legal-toc a:hover, .legal-toc a[aria-current="page"] {
  color: var(--text); border-color: #4a5348; background: var(--surface);
}
.legal-toc a[aria-current="page"] {
  color: var(--on-accent); background: var(--accent); border-color: transparent; font-weight: 650;
}
.page-cta-bar {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px;
  padding-top: 28px; border-top: 1px solid var(--line-soft);
}
@media (max-width: 720px) { .page-cta-bar .btn { min-height: 44px; } }
.pricing-footnote {
  margin-top: 28px; color: var(--faint); font-size: 13px; line-height: 1.6; max-width: 52rem;
}
.pricing-footnote a { color: var(--accent); }
@media (max-width: 720px) {
  .legal-doc { padding: 24px 18px 28px; border-radius: var(--r-lg); }
  .page-main { padding: 28px 0 64px; }
  .nav__links { display: none; }
}

/* i18n fit: long words (fr/es/en) and CJK labels must never clip or force horizontal scroll at 320–820px. */
.plan__price { flex-wrap: wrap; row-gap: 0; }
.hero__title, .steps button { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 1100px) { .hero__inner { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 820px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .demo__tabs [role="tab"] { flex-direction: column; gap: 6px; padding: 12px; }
  .demo__tabs [role="tab"] b { word-break: keep-all; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li + li { border-inline-start: 0; border-top: 1px solid var(--line-soft); }
  .steps button { padding: 14px 16px; }
}

/* Terms §6 prohibited uses (2026-10-29) + short notices linking to it */
.legal-callout {
  margin: 2rem 0; padding: 22px 24px;
  border: 1px solid var(--line); border-inline-start: 3px solid var(--accent);
  border-radius: var(--r-lg); background: var(--surface);
  scroll-margin-top: 96px;
}
.legal-doc .legal-callout h2 { margin: 0 0 .75rem; padding-top: 0; border-top: 0; }
.legal-doc h3 { margin: 0 0 .5rem; font-size: .95rem; font-weight: 650; color: var(--text); }
.legal-callout__alt { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line-soft); }
.legal-callout > :last-child, .legal-callout__alt > :last-child { margin-bottom: 0; }
.plan__legal { margin-top: 8px; color: var(--faint); font-size: 12.5px; line-height: 1.5; }
.plan__legal a, .footer__legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.plan__legal a:hover, .footer__legal a:hover { color: var(--text); }
.footer__legal { color: var(--faint); font-size: 13px; }
@media (max-width: 640px) { .legal-callout { padding: 18px 16px; } }

/* Legal pages: language follows the site picker (legal.js). */
.cn-i18n-pending body { visibility: hidden; }
.legal-lang-note { margin: 0 0 1.25rem; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: var(--r); background: var(--bg-deep); color: var(--muted); font-size: 14px; line-height: 1.6; }
.legal-callout__alt.is-first { margin: 0 0 1.5rem; padding: 0 0 1.25rem; border-top: 0; border-bottom: 1px solid var(--line-soft); }
.legal-lang-first { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line-soft); }

/* Touch targets: every control ≥44×44px on phones/tablets. Desktop sizes unchanged. */
@media (max-width: 720px) {
  .btn, .btn--sm, .seg button, .skip, .legal-toc a { min-height: 44px; }
  .legal-toc a { align-items: center; }
  .lang__btn { height: 44px; }
  .iconbtn { width: 44px; height: 44px; }
  .linkbtn { min-height: 44px; }
  .film__scenes button { min-height: 44px; align-content: center; }
  .brand { min-height: 44px; }
  .textlink { display: inline-block; padding-block: 11px; margin-block: -11px; }
}
