/* PolyDev landing — terminal / hacker-editorial
   Palette mirrors the app: warm dark surfaces + terracotta.
   bg #262624 · surface #2C2C2A · text #EBE8E2 · muted #9C988F · accent #E8917A (+ green for terminal "ok") */

:root {
  --bg: #262624;
  --bg-deep: #1e1e1c;
  --surface: #2c2c2a;
  --surface-2: #333331;
  --line: #3a3a37;
  --line-strong: #4a4a46;
  --text: #ebe8e2;
  --muted: #9c988f;
  --accent: #e8917a;
  --ok: #8fc48a;
  --del: #e06c6c;

  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1180px;
  --gutter-w: 44px;
  --r: 8px;
  --r-lg: 14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; background: var(--bg); }
body {
  font-family: var(--sans); color: var(--text); background: var(--bg);
  line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
code { font-family: var(--mono); font-size: 0.92em; color: var(--accent); background: rgba(232,145,122,0.08); padding: 1px 5px; border-radius: 4px; }
strong { color: var(--text); font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.dim { color: var(--muted); }
.ok { color: var(--ok); }
.del { color: var(--del); }
.add { color: var(--ok); }
.accent { color: var(--accent); }
.grow { flex: 1; }
.ico { width: 18px; height: 18px; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Typography ---------- */
.display {
  font-size: clamp(2.5rem, 5.2vw, 4.2rem); line-height: 0.98; letter-spacing: -0.04em; font-weight: 800;
  text-wrap: balance;
}
.display .outline { color: transparent; -webkit-text-stroke: 1.5px var(--muted); }
.h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; }
.sub { color: var(--muted); font-size: 1.05rem; max-width: 60ch; margin-top: 16px; text-wrap: pretty; }
.lede { color: var(--muted); font-size: 1.1rem; max-width: 56ch; margin: 26px 0 30px; text-wrap: pretty; }
.fine { color: var(--muted); font-size: 0.82rem; line-height: 1.6; margin-top: 18px; }
.fine.center { text-align: center; max-width: 70ch; margin-inline: auto; margin-top: 28px; }
.sec-idx { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); letter-spacing: 0.02em; margin-bottom: 18px; }

/* Left gutter rail */
.gutter { position: relative; padding-left: var(--gutter-w); }
.gutter::before {
  content: ''; position: absolute; left: 0; top: 0.35em; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, var(--accent), transparent 80%);
}
.gutter::after {
  content: ''; position: absolute; left: -3px; top: 0.35em; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(232,145,122,0.15);
}

/* ---------- Shell bits ---------- */
.shell-line { font-family: var(--mono); font-size: 0.9rem; color: var(--text); display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.ps1 { color: var(--ok); font-weight: 600; white-space: nowrap; }
.cmd { color: var(--text); word-break: break-word; }
.caret { display: inline-block; width: 9px; height: 1.1em; background: var(--accent); vertical-align: -0.2em; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.traffic { display: inline-flex; gap: 6px; flex-shrink: 0; }
.traffic i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.traffic i:first-child { background: var(--accent); }

.dot-live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 1.8s infinite; margin-right: 6px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(143,196,138,0.55); } 100% { box-shadow: 0 0 0 8px rgba(143,196,138,0); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--mono); font-weight: 600; font-size: 0.88rem; letter-spacing: -0.01em;
  padding: 12px 18px; border-radius: var(--r); border: 1px solid transparent;
  transition: transform .15s, background .15s, border-color .15s, box-shadow .15s, color .15s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--accent); color: var(--bg-deep); border-color: var(--accent); }
.btn-solid:hover { background: #f0a08a; box-shadow: 0 8px 30px -10px rgba(232,145,122,0.7); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 15px 22px; font-size: 0.95rem; }
.btn-sm { padding: 8px 14px; font-size: 0.8rem; }

/* ---------- Titlebar ---------- */
.titlebar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(30,30,28,0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.titlebar-inner { height: 56px; display: flex; align-items: center; gap: 28px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 0.9rem; flex-shrink: 0; }
.brand img { border-radius: 5px; }
.brand-path b { color: var(--accent); font-weight: 600; }
.topnav { display: flex; gap: 6px; margin-left: auto; }
.topnav a { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); padding: 8px 12px; border-radius: 6px; transition: color .15s, background .15s; }
.topnav a .dim { margin-right: 6px; opacity: 0.7; }
.topnav a:hover { color: var(--text); background: var(--surface); }
.titlebar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
.topnav + .titlebar-actions { margin-left: 0; }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line-strong); align-items: center; justify-content: center; }
.nav-toggle .ico { width: 20px; height: 20px; }

/* ---------- Window ---------- */
.window {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.03);
  overflow: hidden;
}
.win-head { display: flex; align-items: center; gap: 16px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-deep); min-height: 44px; min-width: 0; }
.win-head .traffic { flex-shrink: 0; }
.win-tabs { display: flex; gap: 2px; min-width: 0; }
.win-tabs.scroll-x { flex: 1; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.win-tab { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); padding: 6px 12px; border-radius: 6px 6px 0 0; position: relative; white-space: nowrap; transition: color .15s, background .15s; }
.win-tab.active { color: var(--text); background: var(--surface); }
.win-tab.active::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: var(--accent); border-radius: 2px; }
button.win-tab:hover { color: var(--text); }
.win-meta { margin-left: auto; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); display: inline-flex; align-items: center; white-space: nowrap; }
.win-meta.accent { color: var(--accent); }
.win-foot { display: flex; gap: 18px; align-items: center; padding: 7px 14px; border-top: 1px solid var(--line); background: var(--bg-deep); font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
.win-body { position: relative; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.pane { min-width: 0; }
.pane-device {
  display: flex; align-items: center; justify-content: center; padding: 22px; border-left: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 30%, rgba(232,145,122,0.10), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(0,0,0,0.08) 3px 4px);
}
.scroll-x { overflow-x: auto; scrollbar-width: none; }
.scroll-x::-webkit-scrollbar { display: none; }

/* Device frame */
.device {
  width: 200px; aspect-ratio: 9 / 19.5; border-radius: 26px; background: #0d0d0c;
  border: 1px solid var(--line-strong); padding: 6px; position: relative;
  box-shadow: 0 25px 60px -20px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.03);
}
.device::before { content: ''; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 42px; height: 5px; border-radius: 3px; background: #262624; z-index: 2; }
.device img, .device video { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 20px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 80px; position: relative; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 70% 20%, rgba(232,145,122,0.10), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 48px; align-items: center; position: relative; }
.hero-grid > * { min-width: 0; }
.hero-copy .shell-line { margin-bottom: 26px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.spec { margin-top: 34px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; font-family: var(--mono); font-size: 0.78rem; }
.spec div { display: flex; flex-direction: column; gap: 3px; padding-left: 12px; border-left: 1px solid var(--line-strong); }
.spec dt { color: var(--accent); }
.spec dd { color: var(--muted); }

.hero-window .pane-log { padding: 18px 20px; font-family: var(--mono); font-size: 0.8rem; }
.log { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.log li { display: flex; align-items: baseline; gap: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.log li.shown { opacity: 1; transform: none; }
.log li[data-t="ps1"] { color: var(--text); opacity: 1; transform: none; margin-bottom: 6px; white-space: normal; display: block; line-height: 1.6; }
.log li[data-t="ps1"] .ps1 { color: var(--accent); margin-right: 8px; }
.log .k { color: var(--accent); min-width: 40px; flex-shrink: 0; }
.log .diff { color: var(--ok); margin-left: auto; flex-shrink: 0; }
.log li .ok, .log li .dim { flex-shrink: 0; }
.log li[data-t="done"] { padding-top: 8px; border-top: 1px dashed var(--line-strong); margin-top: 4px; white-space: normal; }
.hero-window .device { width: 170px; }
.hero-window .pane-device { padding: 18px; }

/* ---------- Sections ---------- */
.sec { padding: 96px 0; border-top: 1px solid var(--line); position: relative; }
.sec-alt { background: linear-gradient(to bottom, rgba(0,0,0,0.12), transparent); }
.sec-head { margin-bottom: 48px; }
.two-col { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.two-col .sec-head { margin-bottom: 0; }

/* Providers */
.providers { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); font-family: var(--mono); font-size: 0.85rem; }
.providers li { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); transition: background .15s; }
.providers li:nth-child(odd) { border-right: 1px solid var(--line); }
.providers li:hover { background: var(--surface-2); }
.providers .ln { color: var(--muted); font-size: 0.72rem; width: 20px; }
.providers img { width: 20px; height: 20px; object-fit: contain; filter: brightness(0) invert(0.92); }
.providers span:not(.ln) { color: var(--text); }
.providers em { margin-left: auto; font-style: normal; font-size: 0.72rem; color: var(--muted); text-align: right; }
.providers .glyph { width: 20px; text-align: center; color: var(--accent); font-weight: 700; }
.providers .hl { background: rgba(232,145,122,0.06); }
.providers .hl span:not(.ln) { color: var(--accent); }

/* Tour */
.tour .win-tabs { flex: 1; }
.tour-info { padding: 34px 36px; }
.tour-path { font-family: var(--mono); font-size: 0.78rem; color: var(--text); margin-bottom: 16px; }
.tour-info h3 { font-size: 1.6rem; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 12px; }
.tour-info > p { color: var(--muted); max-width: 52ch; text-wrap: pretty; }
.numbered { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 10px; counter-reset: n; }
.numbered li { counter-increment: n; display: flex; gap: 14px; color: var(--text); font-size: 0.95rem; }
.numbered li::before { content: counter(n, decimal-leading-zero); font-family: var(--mono); font-size: 0.75rem; color: var(--accent); padding-top: 3px; flex-shrink: 0; }
.tour .device { width: 230px; }
.tour .device img { transition: opacity .2s; }
.tour .device img.fading { opacity: 0; }

/* run.sh */
.script { list-style: none; display: flex; flex-direction: column; }
.script li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.script li:first-child { border-top: 1px solid var(--line); }
.script .ln { font-family: var(--mono); color: var(--muted); font-size: 0.85rem; padding-top: 3px; text-align: right; }
.script code { display: block; font-size: 1.05rem; color: var(--text); background: none; padding: 0; margin-bottom: 6px; }
.script code .k { color: var(--accent); font-weight: 600; }
.script p { color: var(--muted); font-size: 0.95rem; }

/* diff / trace */
.diff-view, .trace {
  font-family: var(--mono); font-size: 0.86rem; line-height: 1.85; padding: 22px 26px; overflow-x: auto; color: var(--text);
}
.trace { white-space: pre-wrap; }
.diff-view { display: flex; flex-direction: column; }
.diff-view .hunk { color: var(--muted); margin-bottom: 6px; }
.diff-view .del { background: rgba(224,108,108,0.08); margin: 0 -26px; padding: 0 26px; }
.diff-view .add { background: rgba(143,196,138,0.08); margin: 0 -26px; padding: 0 26px; color: var(--ok); }
.trace .k { color: var(--accent); }

/* facts */
.facts { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.facts li { padding-left: 22px; position: relative; color: var(--muted); }
.facts li::before { content: '+'; position: absolute; left: 0; color: var(--ok); font-family: var(--mono); font-weight: 700; }
.facts b { color: var(--text); font-weight: 600; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plan { display: flex; flex-direction: column; }
.plan-hl { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 30px 80px -40px rgba(232,145,122,0.5); }
.kv { padding: 20px 20px 8px; font-family: var(--mono); font-size: 0.82rem; flex: 1; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line-strong); }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dt::after { content: ':'; }
.kv dd { color: var(--text); font-weight: 600; text-align: right; }
.plan .btn { margin: 14px 20px 20px; }

/* ls */
.ls { font-family: var(--mono); font-size: 0.88rem; display: flex; flex-direction: column; gap: 20px; }
.ls-group { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.ls-dir { width: 100%; color: var(--accent); font-weight: 600; }
.ls-group > span:not(.ls-dir) { color: var(--text); }
.ls-group > span:not(.ls-dir)::before { content: '- '; color: var(--muted); }
.beta { font-style: normal; font-size: 0.68rem; color: var(--accent); border: 1px solid rgba(232,145,122,0.4); border-radius: 4px; padding: 0 5px; vertical-align: middle; margin-left: 2px; font-family: var(--mono); }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; gap: 16px; align-items: baseline; padding: 20px 0; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; margin-left: auto; font-family: var(--mono); color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: '−'; color: var(--accent); }
.faq .q { font-family: var(--mono); color: var(--accent); font-size: 0.9rem; }
.faq p { color: var(--muted); padding: 0 0 22px 34px; max-width: 70ch; text-wrap: pretty; }

/* CTA */
.cta { padding-bottom: 120px; }
.cta-window { max-width: 820px; margin: 0 auto; background: radial-gradient(ellipse at 50% 0%, rgba(232,145,122,0.14), var(--surface) 70%); }
.cta-body { padding: 48px 32px 40px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.cta-icon { border-radius: 16px; box-shadow: 0 20px 50px -20px rgba(232,145,122,0.6); }
.cta-body .sub { margin-top: 0; text-align: center; }
.cta-body .shell-line { justify-content: center; font-size: 0.8rem; }
.cta-body .shell-line .cmd { color: var(--muted); }
.cta-body .fine { margin-top: 0; }

/* Statusbar footer */
.statusbar { background: var(--accent); color: var(--bg-deep); font-family: var(--mono); font-size: 0.76rem; }
.statusbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; height: 34px; }
.sb-left { display: flex; align-items: center; gap: 22px; }
.sb-item { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.sb-item img { border-radius: 3px; }
.statusbar .dim { color: rgba(30,30,28,0.65); }
.sb-links { display: flex; gap: 18px; }
.sb-links a { font-weight: 500; opacity: 0.85; }
.sb-links a:hover { opacity: 1; text-decoration: underline; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .topnav {
    position: absolute; top: 56px; left: -24px; right: -24px; display: none; flex-direction: column; gap: 2px;
    background: var(--bg-deep); border-bottom: 1px solid var(--line); padding: 10px 16px 16px;
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.8); z-index: 60;
  }
  .topnav.open { display: flex; }
  .topnav a { padding: 12px; }
  .topnav + .titlebar-actions { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  .titlebar-actions .btn span { display: none; }
  .titlebar-actions .btn { padding: 8px 10px; }
}

@media (max-width: 720px) {
  :root { --gutter-w: 28px; }
  .wrap { padding: 0 16px; }
  .sec { padding: 56px 0; }
  .sec-head { margin-bottom: 28px; }
  .h2 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .sub { font-size: 1rem; }

  /* Hero */
  .hero { padding: 36px 0 48px; }
  .hero-grid { gap: 28px; }
  .hero-copy .shell-line { margin-bottom: 18px; font-size: 0.8rem; }
  .display { font-size: clamp(2.2rem, 11vw, 3rem); }
  .display .outline { -webkit-text-stroke-width: 1px; }
  .lede { font-size: 1rem; margin-bottom: 24px; }
  .cta-row { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
  .spec { margin-top: 26px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; font-size: 0.72rem; }
  .spec dd { line-height: 1.5; }
  .hero-window .pane-log { padding: 14px 14px; font-size: 0.72rem; }
  .log { gap: 6px; }
  .log .k { min-width: 34px; }
  .log li[data-t="ps1"] { font-size: 0.74rem; }
  .hero-window .pane-device { padding: 20px 16px; }
  .hero-window .device { width: 150px; }
  .win-foot { gap: 10px; font-size: 0.66rem; padding: 6px 12px; flex-wrap: wrap; }
  .win-foot span:nth-child(n+4) { display: none; }

  /* Windows & tour */
  .win-head { gap: 10px; padding: 8px 10px; }
  .win-head .traffic { display: none; }
  .win-tab { font-size: 0.72rem; padding: 7px 10px; }
  .split, .tour-body { grid-template-columns: 1fr; }
  .pane-device { border-left: 0; border-top: 1px solid var(--line); }
  .tour-info { padding: 22px 18px; }
  .tour-info h3 { font-size: 1.3rem; }
  .tour-info > p { font-size: 0.95rem; }
  .numbered { margin-top: 16px; gap: 8px; }
  .numbered li { font-size: 0.9rem; }
  .tour .pane-device { padding: 22px 16px; }
  .tour .device { width: 180px; }

  /* Providers */
  .providers { grid-template-columns: 1fr; font-size: 0.8rem; }
  .providers li { padding: 10px 14px; gap: 12px; }
  .providers li:nth-child(odd) { border-right: 0; }
  .providers em { display: none; }

  /* run.sh */
  .script li { grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 16px 0; }
  .script code { font-size: 0.92rem; }
  .script p { font-size: 0.92rem; }

  /* diff / trace */
  .diff-view, .trace { font-size: 0.72rem; padding: 14px; line-height: 1.7; }
  .diff-view .del, .diff-view .add { margin: 0 -14px; padding: 0 14px; white-space: normal; }
  .trace { white-space: pre-wrap; word-break: break-word; }

  /* plans, templates, faq */
  .plans { gap: 14px; }
  .kv { padding: 16px 16px 6px; font-size: 0.78rem; }
  .plan .btn { margin: 12px 16px 16px; }
  .ls { font-size: 0.8rem; gap: 14px; }
  .ls-group { padding: 14px 16px; gap: 6px 14px; }
  .faq summary { font-size: 0.95rem; padding: 16px 0; gap: 12px; }
  .faq p { font-size: 0.92rem; padding-left: 28px; }

  /* chrome */
  .brand-path .dim { display: none; }
  .titlebar-inner { height: 52px; }
  .statusbar-inner.wrap { height: auto; flex-direction: column; align-items: stretch; gap: 0; padding: 0; font-size: 0.76rem; }
  .sb-left { justify-content: space-between; height: 46px; padding: 0 16px; }
  .sb-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; height: 46px; border-top: 1px solid rgba(30,30,28,0.18); }
  .sb-links a { display: flex; align-items: center; justify-content: center; opacity: 1; font-weight: 600; }
  .sb-links a + a { border-left: 1px solid rgba(30,30,28,0.18); }
  .cta-body { padding: 32px 16px 28px; }
  .cta-body .shell-line { display: none; }
  .cta-body .h2 { font-size: clamp(1.6rem, 7.5vw, 2.2rem); }
  .fine { font-size: 0.78rem; }
  .gutter { padding-left: var(--gutter-w); }
}

@media (max-width: 400px) {
  .display { font-size: clamp(2rem, 10.5vw, 2.6rem); }
  .spec { grid-template-columns: 1fr; }
  .tour .device { width: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret, .dot-live { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .log li { opacity: 1; transform: none; transition: none; }
}
