/* OmniWrench: marketing site styles.
   Dark first, one accent (signal amber). Light theme follows the system setting.
   Sections: tokens, base, header and controls, hero, sections, modules, figures,
   in development, Super AI, pricing, FAQ, closing, footer, state rules, responsive. */

/* ---------- tokens ---------- */
:root {
  color-scheme: dark light;

  --bg: #0a0b0d;
  --bg-2: #101114;
  --surface: #15171b;
  --surface-2: #1b1e23;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.17);
  --text: #eceef0;
  --text-2: #a8acb4;
  --text-3: #8b9099;

  --accent: #ffb02e;
  --accent-hover: #ffc25c;
  --accent-ink: #1a1206;
  --accent-text: #ffb02e;
  --accent-line: rgba(255, 176, 46, 0.42);
  --focus: #ffb02e;

  --stage: #0e1013;
  --glow: rgba(255, 176, 46, 0.1);
  --grid: rgba(255, 255, 255, 0.045);
  --pane-shadow: 0 28px 70px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);

  /* app panes are always dark, they depict the app */
  --p-line: rgba(255, 255, 255, 0.1);
  --p-text: #e6e8eb;
  --p-text-2: #9ca2aa;
  --p-text-3: #7f858e;
  --p-bar: #6b7079;

  --font: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", monospace;

  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 68px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f6f3;
    --bg-2: #eeeeea;
    --surface: #ffffff;
    --surface-2: #f0f0ec;
    --line: rgba(10, 11, 13, 0.1);
    --line-2: rgba(10, 11, 13, 0.2);
    --text: #0e1013;
    --text-2: #444952;
    --text-3: #636872;

    --accent-text: #8a4d00;
    --accent-line: rgba(176, 106, 0, 0.5);
    --focus: #b36b00;

    --stage: #e7e7e2;
    --glow: rgba(255, 176, 46, 0.2);
    --grid: rgba(10, 11, 13, 0.06);
    --pane-shadow: 0 24px 60px rgba(10, 11, 13, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font: 400 clamp(16px, 0.3vw + 15px, 18px) / 1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, figure, details { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.mono { font-family: var(--mono); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -64px; z-index: 100;
  padding: 12px 16px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-weight: 500;
}
.skip:focus { top: 12px; }

.container { width: min(1200px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.container.narrow { width: min(820px, calc(100% - 2 * var(--gutter))); }

/* ---------- header and controls ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; flex: none; }
.brand img { height: 28px; width: auto; }
.nav { display: flex; gap: 30px; margin-inline: auto; }
.nav a { font-size: 15px; color: var(--text-2); padding: 8px 0; }
.nav a:hover { color: var(--text); }
.controls { display: flex; align-items: center; gap: 12px; }

.switch {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 0 14px 0 10px;
  border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--text-2); font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.switch:hover { color: var(--text); border-color: var(--text-3); }
.switch-track {
  position: relative; flex: none; width: 30px; height: 18px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  transition: background 0.2s, border-color 0.2s;
}
.switch-knob {
  position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--text-2); transition: transform 0.2s, background 0.2s;
}
.switch[aria-pressed="true"] { color: var(--text); border-color: var(--accent-line); }
.switch[aria-pressed="true"] .switch-track { background: var(--accent); border-color: var(--accent); }
.switch[aria-pressed="true"] .switch-knob { transform: translateX(12px); background: var(--accent-ink); }

.seg {
  display: inline-flex; gap: 2px; padding: 3px;
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface);
}
.seg button {
  min-height: 32px; min-width: 42px; padding: 0 12px; border-radius: 9px;
  font-size: 14px; font-weight: 500; line-height: 1; color: var(--text-2);
  transition: background 0.15s, color 0.15s;
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 12px; border: 1px solid transparent;
  font-size: 16px; font-weight: 500; line-height: 1.2; text-align: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s;
}
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-3); background: var(--surface); }
.btn-solid { background: var(--text); color: var(--bg); }
.btn-solid:hover { opacity: 0.88; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- type ---------- */
.eyebrow {
  margin-bottom: 26px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-text);
}
h1 {
  max-width: 14ch; font-weight: 500; font-size: clamp(2.9rem, 8.4vw, 7.2rem);
  line-height: 0.98; letter-spacing: -0.045em; color: var(--text); text-wrap: balance;
}
h2 {
  font-weight: 500; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.06;
  letter-spacing: -0.035em; color: var(--text); text-wrap: balance;
}
h3 { font-weight: 500; color: var(--text); }
.meta { margin-top: 16px; font-size: 12.5px; letter-spacing: 0.02em; color: var(--text-3); }
.meta.hint { margin-top: 6px; }
.note { margin-top: 18px; font-size: 12.5px; color: var(--text-3); }
.cap { margin-top: 12px; font-size: 11.5px; color: var(--text-3); text-align: right; }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(56px, 9vw, 128px) clamp(24px, 3vw, 40px); overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  transition: opacity 0.5s;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(85% 75% at 50% 35%, #000, transparent 78%);
  mask-image: radial-gradient(85% 75% at 50% 35%, #000, transparent 78%);
}
html[data-expert="on"] .hero::before { opacity: 1; }
.polar {
  position: absolute; z-index: 0; right: -2%; top: -150px; width: min(700px, 78vw); height: auto; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 70%, transparent 100%);
}
.polar .rings { fill: none; stroke: var(--line-2); stroke-width: 1; }
.polar .core { fill: var(--accent); opacity: 0.9; }
.polar .ticks line { stroke: var(--text-3); stroke-width: 1; }
.polar .polar-labels text { font: 400 11px var(--mono); fill: var(--text-3); }
.hero > .container { position: relative; }
.hero-sub {
  margin-top: 22px; font-size: clamp(1.35rem, 2.6vw, 2rem); letter-spacing: -0.02em;
  color: var(--text-2); line-height: 1.25;
}
.hero-row {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 96px); align-items: start; margin-top: clamp(36px, 5vw, 64px);
}
.hero-lede { max-width: 54ch; font-size: clamp(1rem, 0.5vw + 0.9rem, 1.2rem); color: var(--text-2); }

.hero-fig { margin-top: clamp(44px, 7vw, 92px); }
.stage {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.55fr) auto minmax(0, 1fr);
  align-items: center; gap: clamp(12px, 2vw, 28px);
  padding: clamp(18px, 3.4vw, 44px); border: 1px solid var(--line); border-radius: 22px;
  background: var(--stage); overflow: hidden;
}
.stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 90% at 80% -12%, var(--glow), transparent 62%);
}
.stage > * { position: relative; }

.dock { display: flex; flex-direction: column; min-width: 0; filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.35)); }
.win {
  overflow: hidden; border: 1px solid var(--p-line); border-bottom: 0; border-radius: 12px 12px 0 0;
  background: #181a1e; color: var(--p-text-2);
}
.win-bar { position: relative; display: flex; align-items: center; height: 34px; padding: 0 14px; background: #1f2227; border-bottom: 1px solid var(--p-line); }
.dots { display: flex; gap: 7px; }
.dots i, .seg, .clip, .tile { font-style: normal; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3e45; }
.win-title { position: absolute; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--p-text-2); }
.win-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 14px; font-size: 12.5px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.win-list li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-list .sel { background: rgba(255, 176, 46, 0.15); color: var(--p-text); }
.panel {
  padding: 14px 16px 13px; border: 1px solid var(--p-line); border-radius: 0 0 14px 14px;
  background: rgba(24, 26, 30, 0.92);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  color: var(--p-text);
}
.panel-head { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--p-text-2); }
.panel-head .p-name { color: var(--p-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-head .p-meta { flex: none; }
.wave { width: 100%; height: auto; margin: 10px 0 8px; overflow: visible; }
.wave .bars, .loopfig .bars { fill: none; stroke: var(--p-bar); stroke-width: 3.2; stroke-linecap: round; }
.wave .bars.amber { stroke: var(--accent); }
.wave .sel { fill: var(--accent); opacity: 0.14; }
.wave .head { stroke: #fff; stroke-width: 1.5; }
.panel-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; font-size: 12px; color: var(--p-text-2); }
.play { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--p-text); color: #0a0b0d; }
.play svg { margin-left: 1px; }
.profiles { display: flex; gap: 6px; margin-left: auto; }
.pf { padding: 3px 8px; border: 1px solid var(--p-line); border-radius: 6px; font-size: 11px; white-space: nowrap; }
.pf.on { border-color: var(--accent); color: var(--accent); }

.hand { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--accent-text); font-size: 11px; letter-spacing: 0.04em; }
.hand svg { width: clamp(48px, 7vw, 92px); height: auto; }

.daw { min-width: 0; overflow: hidden; border: 1px solid var(--p-line); border-radius: 14px; background: #121418; color: var(--p-text-2); }
.daw-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; padding: 10px 12px; font-size: 11px; border-bottom: 1px solid var(--p-line); }
.lane { position: relative; height: 56px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.lane:last-child { border-bottom: 0; }
.clip { position: absolute; top: 9px; bottom: 9px; left: var(--x); width: var(--w); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 6px; background: #262a31; }
.clip.drop { overflow: hidden; border-color: var(--accent); background: rgba(255, 176, 46, 0.12); }
.clip.drop svg { position: absolute; left: 6px; top: 4px; width: calc(100% - 12px); height: calc(100% - 17px); }
.clip.drop path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.clip.drop span { position: absolute; left: 6px; right: 6px; bottom: 2px; overflow: hidden; font-size: 8.5px; color: var(--accent); text-overflow: ellipsis; white-space: nowrap; }

.spec-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px 32px;
  margin-top: 28px; padding-top: 24px; border-top: 1px dashed var(--line-2);
}
.spec { font-size: 14px; line-height: 1.6; }
.spec-k { display: block; margin-bottom: 6px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
.spec-v { color: var(--text-2); }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 8vw, 120px); }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 780px; margin-bottom: clamp(28px, 4vw, 56px); }
.section-lede { margin-top: 20px; max-width: 56ch; font-size: clamp(1.05rem, 0.6vw + 0.95rem, 1.25rem); color: var(--text-2); }

/* ---------- modules ---------- */
.module {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center;
  gap: clamp(32px, 6vw, 104px); padding-block: clamp(48px, 7vw, 104px); border-top: 1px solid var(--line);
}
.module:nth-of-type(even) .module-fig { order: -1; }
.module-text h3, .module-text h2 { margin: 16px 0 18px; }
.module-text h3 { font-size: clamp(1.7rem, 3.1vw, 2.6rem); line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.module-text > p { max-width: 52ch; }
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.kicker .num { color: var(--text-3); }
.tag {
  display: inline-flex; align-items: center; gap: 7px; padding: 3px 9px;
  border: 1px solid var(--line-2); border-radius: 6px; font-size: 11px; letter-spacing: 0.06em; color: var(--text-3);
}
.tag::before { content: ""; width: 6px; height: 6px; border: 1px solid currentColor; border-radius: 50%; }
.tag-on { color: var(--accent-text); border-color: var(--accent-line); }
.tag-on::before { background: currentColor; }

.ticks { display: grid; gap: 12px; margin-top: 26px; }
.ticks li, .plan-list li { position: relative; padding-left: 22px; font-size: 16px; color: var(--text-2); }
.ticks li::before, .plan-list li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }

/* expert panels */
.xpanel { margin-top: 30px; padding-top: 18px; border-top: 1px dashed var(--line-2); font-size: 13px; line-height: 1.65; color: var(--text-2); animation: x-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.x-label { margin-bottom: 8px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
.xpanel li { position: relative; padding-left: 18px; margin-top: 8px; }
.xpanel li::before { content: "›"; position: absolute; left: 0; color: var(--accent-text); }
@keyframes x-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- device panes and figures ---------- */
.module-fig { min-width: 0; }
.pane {
  padding: clamp(14px, 2vw, 22px); border: 1px solid var(--p-line); border-radius: 18px;
  background: linear-gradient(180deg, #16181c, #101215); color: var(--p-text); box-shadow: var(--pane-shadow);
}
.pane-head, .pane-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--p-text-2); }
.pane-head .to { color: var(--accent); }
.k { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--p-text-3); }

.ambi { width: min(100%, 460px); height: auto; margin: 8px auto; overflow: visible; }
.ambi .ring { fill: none; stroke: rgba(255, 255, 255, 0.13); stroke-width: 1; }
.ambi .ring.dash { stroke-dasharray: 3 5; }
.ambi .omni { fill: rgba(255, 176, 46, 0.08); stroke: var(--accent); stroke-width: 1.5; }
.ambi .omni-core { fill: var(--accent); }
.ambi .front { fill: var(--p-text-2); }
.ambi .spk { fill: #3d414a; }
.ambi .spk.on { fill: var(--accent); }
.spk-label, .lbl { font-family: var(--mono); font-size: 11px; fill: var(--p-text-2); }
.lbl.amber { fill: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chip { padding: 5px 10px; border: 1px solid var(--p-line); border-radius: 7px; font-size: 11.5px; color: var(--p-text-2); }
.chip.on { border-color: var(--accent); background: rgba(255, 176, 46, 0.09); color: var(--accent); }
.loopfig { width: 100%; height: auto; overflow: visible; }
.loopfig .bars.amber { stroke: var(--accent); }
.loopfig .bars.under { stroke: var(--accent); stroke-width: 1.8; }
.loopfig .mark { stroke: var(--p-text-3); stroke-dasharray: 3 4; }
.loopfig .flow { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 5; }
.loopfig .flow-head, .loopfig .guard, .loopfig .brace { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.an { display: grid; gap: 18px; }
.an-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.big { display: block; margin-top: 2px; font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 500; line-height: 1.05; letter-spacing: -0.04em; color: var(--p-text); }
.big small { margin-left: 8px; font-size: 13px; letter-spacing: 0; color: var(--p-text-2); }
.click { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--accent); border-radius: 8px; font-size: 12px; color: var(--accent); }
.twins { display: flex; flex-wrap: wrap; gap: 8px; }
.twin { display: inline-flex; align-items: baseline; gap: 8px; padding: 7px 12px; border: 1px solid var(--p-line); border-radius: 8px; font-size: 12px; }
.twin b { font-size: 15px; font-weight: 500; color: var(--p-text); }
.twin i { font-style: normal; color: var(--p-text-2); }
.twin i .x { color: var(--accent); }
.an-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 14px; padding-top: 16px; border-top: 1px solid var(--p-line); }
.an-grid .v { display: block; margin-top: 4px; font-size: 20px; color: var(--p-text); }
.an-grid small { margin-left: 5px; font-size: 10px; color: var(--p-text-2); }
.drift { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding-top: 16px; border-top: 1px solid var(--p-line); }
.drift svg { width: 100%; height: 34px; }
.drift line { stroke: var(--p-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.drift polyline { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.drift .v { font-size: 12px; color: var(--p-text); }

.tl { display: grid; gap: 10px; }
.tl-ruler { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); margin-left: 64px; padding-bottom: 6px; font-size: 10px; color: var(--p-text-3); }
.tl-ruler span { padding-left: 5px; border-left: 1px solid var(--p-line); }
.tl-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 8px; }
.tl-k { font-size: 11px; color: var(--p-text-2); }
.tl-track { display: flex; height: 28px; overflow: hidden; border-radius: 6px; }
.tl-track.gap { gap: 4px; overflow: visible; }
.tl-track.gap .seg { border-radius: 6px; }
.seg { position: relative; flex: none; width: var(--w); height: 100%; display: block; }
.s-intro { background: #565b64; }
.s-loop { background: var(--accent); }
.s-end { background: #9aa0a8; }
.s-sting { background: #e6e8eb; }
.seg b { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); font-size: 10px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.s-intro b { color: #f1f2f4; }
.s-loop b { color: #1a1206; }
.s-end b { color: #0a0b0d; }
.tl-cuts { display: grid; gap: 7px; padding-top: 12px; border-top: 1px solid var(--p-line); }
.tl-cuts .tl-track { height: 14px; border-radius: 4px; }

.vars { display: grid; gap: 10px; }
.vars-head, .vars-row { display: grid; grid-template-columns: 52px repeat(3, minmax(0, 1fr)); align-items: center; gap: 10px; }
.vars-head span { font-size: 11px; text-align: center; color: var(--p-text-3); }
.vars .k { text-transform: none; letter-spacing: 0.02em; }
.tile { display: block; height: 58px; padding: 9px 10px; border: 1px dashed var(--accent); border-radius: 8px; background: rgba(255, 176, 46, 0.06); }
.tile svg { width: 100%; height: 100%; }
.tile path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }

/* ---------- in development ---------- */
.dev-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.dev-card { padding: clamp(24px, 3vw, 34px); border: 1px solid var(--line); border-radius: 18px; background: var(--bg); }
.dev-card h3 { margin: 16px 0 12px; font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.02em; }
.dev-card > p { max-width: 46ch; }

/* ---------- Super AI ---------- */
.ai-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  gap: clamp(32px, 6vw, 88px); padding: clamp(26px, 5vw, 72px);
  border: 1px solid var(--accent-line); border-radius: 26px; background: var(--surface);
}
.ai-card h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.ai-card .note { margin: 24px 0 28px; }

/* ---------- pricing ---------- */
.billing { display: flex; justify-content: center; margin-bottom: 36px; }
.seg-lg button { min-height: 42px; padding: 0 20px; font-size: 15px; }
.save { display: inline-block; margin-left: 8px; padding: 3px 6px; border-radius: 5px; background: var(--accent); color: var(--accent-ink); font-size: 10.5px; letter-spacing: 0.04em; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 980px; margin-inline: auto; }
.plan { display: flex; flex-direction: column; padding: clamp(24px, 3.4vw, 40px); border: 1px solid var(--line-2); border-radius: 20px; background: var(--surface); }
.plan-ai { border-color: var(--accent-line); }
.plan h3 { font-size: 1.4rem; letter-spacing: -0.02em; }
.plan-desc { min-height: 3.2em; margin-top: 8px; font-size: 15.5px; color: var(--text-2); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 22px; }
.amt { font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 500; line-height: 1; letter-spacing: -0.045em; color: var(--text); }
.per { font-size: 13px; color: var(--text-3); }
.plan-note { min-height: 1.5em; margin-top: 10px; font-size: 12.5px; color: var(--text-3); }
.plan .btn { width: 100%; margin-top: 24px; }
.plan-list { display: grid; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.plan-list li { font-size: 15px; }
.all-plans {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 32px;
  max-width: 980px; margin: 28px auto 0; padding: 24px 30px; border: 1px solid var(--line); border-radius: 18px;
}
.all-plans ul { display: grid; gap: 8px; font-size: 13px; color: var(--text-2); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-wrap .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; padding: 24px 0;
  font-size: clamp(1.05rem, 0.7vw + 0.95rem, 1.3rem); font-weight: 500; color: var(--text); cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px; color: var(--text-2); transition: transform 0.2s;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 62ch; padding: 0 0 26px; }

/* ---------- closing and footer ---------- */
.closing { padding-block: clamp(80px, 12vw, 180px); text-align: center; border-top: 1px solid var(--line); }
.closing h2 { max-width: 16ch; margin: 0 auto 36px; font-size: clamp(2.4rem, 6.4vw, 5.4rem); line-height: 1; letter-spacing: -0.045em; }
.closing .btn-row { justify-content: center; }
.closing .eyebrow { margin-bottom: 22px; }
.site-footer { padding-block: 48px 56px; border-top: 1px solid var(--line); }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot-nav a { padding: 8px 0; font-size: 15px; color: var(--text-2); }
.foot-nav a:hover { color: var(--text); }
.legal { max-width: 78ch; margin-top: 24px; font-size: 12.5px; line-height: 1.7; color: var(--text-3); }
.legal + .legal { margin-top: 10px; }

/* ---------- 404 ---------- */
.notfound { position: relative; overflow: clip; padding-block: clamp(72px, 14vw, 180px); min-height: calc(100svh - var(--header-h) - 150px); }
.notfound .container { position: relative; }
.notfound .polar { right: auto; left: 50%; top: 50%; width: min(1000px, 150vw); transform: translate(-50%, -50%); display: block; opacity: 0.8; }
.notfound h1 { max-width: 12ch; }
.nf-actions { margin-top: 36px; }

/* ---------- state rules ---------- */
html:not([data-expert="on"]) .x { display: none !important; }
html[data-billing="monthly"] [data-bill]:not([data-bill~="monthly"]),
html[data-billing="yearly"] [data-bill]:not([data-bill~="yearly"]),
html[data-billing="lifetime"] [data-bill]:not([data-bill~="lifetime"]) { display: none !important; }
[hidden] { display: none !important; }

/* ---------- Chinese (zh-Hans) ---------- */
html[lang="zh-Hans"] body { line-height: 1.8; }
html[lang="zh-Hans"] h1,
html[lang="zh-Hans"] h2,
html[lang="zh-Hans"] h3 { letter-spacing: 0; font-weight: 600; line-height: 1.22; }
html[lang="zh-Hans"] h1 { font-weight: 500; }
html[lang="zh-Hans"] h1 { font-size: clamp(2.7rem, 7.4vw, 6.2rem); max-width: 7.4em; word-break: keep-all; overflow-wrap: anywhere; }
html[lang="zh-Hans"] h2, html[lang="zh-Hans"] h3 { word-break: keep-all; overflow-wrap: anywhere; }
html[lang="zh-Hans"] .hero-sub { letter-spacing: 0.01em; }
html[lang="zh-Hans"] .eyebrow,
html[lang="zh-Hans"] .kicker,
html[lang="zh-Hans"] .x-label,
html[lang="zh-Hans"] .spec-k,
html[lang="zh-Hans"] .k { letter-spacing: 0.04em; }
html[lang="zh-Hans"] .amt, html[lang="zh-Hans"] .big { letter-spacing: -0.03em; }
html[lang="zh-Hans"] .xpanel { line-height: 1.8; }
html[lang="zh-Hans"] .closing h2 { letter-spacing: 0; max-width: 12em; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .module, .ai-card { grid-template-columns: 1fr; }
  .module:nth-of-type(even) .module-fig { order: 0; }
  .module-fig { max-width: 640px; }
}
@media (max-width: 900px) {
  .hide-sm { display: none; }
}
@media (max-width: 860px) {
  .hero-row { grid-template-columns: 1fr; }
  .stage { grid-template-columns: 1fr; }
  .hand { flex-direction: row; justify-content: center; }
  .hand svg { transform: rotate(90deg); width: 56px; height: 56px; }
  .hand span { transform: none; }
}
@media (max-width: 780px) {
  .dev-grid { grid-template-columns: 1fr; }
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-wrap .section-head { position: static; margin-bottom: 28px; }
  .plans { grid-template-columns: 1fr; }
  .plan-desc { min-height: 0; }
}
@media (max-width: 700px) {
  .polar { display: none; }
  .nav { display: none; }
  .controls { margin-left: auto; }
}
@media (max-width: 560px) {
  :root { --header-h: 60px; }
  .sfx { display: none; }
  .brand img { height: 24px; }
  .bar { gap: 12px; }
  .controls { gap: 8px; }
  .switch { padding: 0 11px 0 8px; gap: 8px; font-size: 13px; }
  .seg button { min-width: 38px; padding: 0 8px; font-size: 13px; }
  .btn-row .btn { flex: 1 1 100%; }
  .pf:not(.on), .p-meta { display: none; }
  .seg-lg button { padding: 0 12px; font-size: 14px; }
  .save { margin-left: 6px; }
  .seg b, .seg-lg .save { }
  .tl-track:not(.gap) .seg b { display: none; }
  .tl-row { grid-template-columns: 44px minmax(0, 1fr); }
  .tl-ruler { margin-left: 52px; }
  .vars-head, .vars-row { grid-template-columns: 42px repeat(3, minmax(0, 1fr)); gap: 8px; }
  .all-plans { padding: 22px; }
  .all-plans .btn { width: 100%; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
