/* Utter terminal product page */
:root {
  --paper: #fff; --canvas: #f2f2ee; --ink: #141514; --muted: #656965;
  --line: #d1d3cf; --line-strong: #aeb2ac; --green: #176b2b; --green-soft: #eef7ef;
  --red: #ff5f57; --yellow: #febc2e; --window-green: #28c840;
  --mono: "SFMono-Regular", "SF Mono", Menlo, Monaco, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--canvas); }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); font-family: var(--mono); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { color: inherit; font: inherit; }
button { cursor: pointer; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; transform: translateY(-150%); padding: 8px 12px; border: 1px solid var(--ink); background: var(--paper); }
.skip-link:focus { transform: translateY(0); }

.terminal-window { width: calc(100% - 24px); max-width: 1640px; margin: 12px auto; overflow: clip; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--paper); box-shadow: 0 18px 50px rgba(25, 28, 24, .08); }
.window-chrome { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 44px; padding: 0 18px; border-bottom: 1px solid var(--line); background: #fafaf8; font-size: 13px; text-align: center; }
.traffic { display: flex; gap: 8px; justify-self: start; }
.traffic i { width: 12px; height: 12px; border-radius: 50%; background: var(--red); }
.traffic i:nth-child(2) { background: var(--yellow); }
.traffic i:nth-child(3) { background: var(--window-green); }
.site-nav { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px; min-height: 68px; padding: 10px max(28px, calc((100% - 1180px) / 2)); border-bottom: 1px solid var(--line); }
.nav-brand { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.nav-brand img { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 7px; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 26px; color: var(--muted); font-size: 12px; }
.nav-links a:hover { color: var(--green); }
.nav-download { padding: 8px 12px; border: 1px solid var(--green); border-radius: 4px; color: var(--green); font-size: 11px; font-weight: 700; }
.nav-download:hover { background: var(--green-soft); }
.page-flow { max-width: 1180px; margin: 0 auto; border-right: 1px solid var(--line); border-left: 1px solid var(--line); }
.privacy-grid dd i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

main { min-width: 0; }
.hero, .content-section { padding: 42px 44px; scroll-margin-top: 12px; }
.command { margin: 0 0 14px; color: var(--green); font-size: 18px; font-weight: 700; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { max-width: 900px; margin: 0; font-size: clamp(42px, 4.2vw, 68px); font-weight: 700; letter-spacing: -.055em; line-height: 1.08; }
.hero-sub { max-width: 720px; margin: 20px 0 0; font-size: 17px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--ink); border-radius: 5px; background: var(--paper); font-size: 13px; font-weight: 700; box-shadow: 0 2px 0 rgba(0, 0, 0, .08); transition: transform 140ms ease, background 140ms ease; }
.btn:hover { transform: translateY(-1px); background: #f5f5f2; }
.btn-primary { border-color: var(--green); color: var(--green); }
.btn-primary:hover { background: var(--green-soft); }
.btn svg { width: 17px; height: 17px; }
.btn svg path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-note { margin: 17px 0 26px; color: var(--muted); font-size: 12px; }

.demo { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--paper); }
.demo-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; padding: 5px 9px; border-bottom: 1px solid var(--line); background: #fafaf8; }
.mode-toggle, .demo-controls, .demo-samples, .demo-play { display: flex; align-items: center; }
.mode-toggle button, .demo-samples button, .demo-play { min-height: 30px; padding: 6px 9px; border: 0; border-radius: 3px; background: transparent; font-size: 11px; }
.mode-toggle button[aria-pressed="true"], .demo-samples button[aria-pressed="true"] { color: var(--green); box-shadow: inset 0 -2px var(--green); }
.demo-controls { gap: 8px; }
.demo-play { gap: 6px; }
.demo-play:hover, .demo-samples button:hover, .mode-toggle button:hover { background: var(--green-soft); }
.demo-play svg { width: 10px; height: 10px; }
.demo-play svg path { fill: currentColor; }
.wave-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 66px; padding: 10px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.waveform { display: flex; align-items: center; gap: 4px; height: 38px; overflow: hidden; }
.waveform .bar { flex: 1 1 4px; min-width: 2px; max-width: 5px; height: 6px; border-radius: 2px; background: var(--green); opacity: .65; transition: height 60ms linear; }
.waveform .bar:nth-child(3n) { height: 15px; } .waveform .bar:nth-child(4n) { height: 26px; }
.waveform.playing .bar { opacity: 1; }
.live { color: var(--green); }
.demo-body { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 18px; min-height: 210px; padding: 18px; }
.demo-label { display: block; margin-bottom: 14px; color: var(--green); font-size: 10px; text-transform: uppercase; }
.transcript { min-height: 145px; padding-right: 18px; border-right: 1px solid var(--line); font-size: 13px; }
.transcript.placeholder .verbatim-text { color: var(--muted); font-style: italic; }
.verbatim-text { display: block; }
.smart-result { margin-top: 13px; color: var(--ink); font-family: var(--sans); font-size: 16px; font-weight: 650; opacity: 0; transition: opacity 250ms ease; }
.transcript.show-smart .smart-result { opacity: 1; }
.transcript.show-smart .verbatim-text { color: var(--muted); font-size: 11px; }
.targets { display: grid; align-content: start; gap: 8px; }
.targets .demo-label { margin-bottom: 6px; }
.targets div { padding: 9px 10px; border: 1px solid var(--line); border-radius: 4px; font-size: 11px; }
.targets small { display: block; color: var(--muted); }
.demo-context { display: none; grid-column: 1 / -1; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.demo-context.visible { display: flex; }
.demo-context .label { color: var(--green); font-size: 10px; text-transform: uppercase; }
.demo-context img { width: 80px; height: 52px; border: 1px solid var(--line); border-radius: 3px; object-fit: cover; }
.hotkey-hud { display: flex; align-items: center; gap: 12px; width: max-content; margin: 18px auto 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 5px; box-shadow: 0 5px 14px rgba(25, 28, 24, .08); font-size: 12px; }
.hotkey-hud kbd { padding: 3px 7px; border: 1px solid var(--green); border-radius: 4px; color: var(--green); }
.hotkey-hud i { width: 1px; height: 20px; background: var(--line); }
.hotkey-hud b { color: var(--green); font-size: 9px; letter-spacing: 3px; }
.capability-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 28px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 5px; list-style: none; }
.capability-rail li { padding: 12px; font-size: 11px; }
.capability-rail li + li { border-left: 1px solid var(--line); }
.capability-rail li::before { color: var(--green); content: ">_ "; font-weight: 700; }

.content-section { border-top: 1px solid var(--line); }
.content-section h2 { max-width: 760px; margin: 0 0 26px; font-size: clamp(28px, 2.8vw, 42px); letter-spacing: -.035em; line-height: 1.15; }
.pipeline { position: relative; margin: 0; padding: 0; list-style: none; }
.pipeline li { display: grid; grid-template-columns: 46px minmax(140px, 190px) 78px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 72px; border-bottom: 1px solid var(--line); }
.pipeline li:first-child { border-top: 1px solid var(--line); }
.pipeline li > span { color: var(--muted); }
.pipeline li h3 { margin: 0; font-size: 15px; font-weight: 500; }
.pipeline li b { font-size: 19px; font-weight: 500; text-align: center; }
.pipeline li p { margin: 0; color: var(--muted); font-size: 12px; }
.transform { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 26px; padding: 22px 0 0; }
.transform small { color: var(--green); }
.transform p { margin: 8px 0 0; font-size: 12px; }
.transform > span { font-size: 28px; }
.feature-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.feature-list li { display: grid; grid-template-columns: 48px minmax(190px, .65fr) 1fr; align-items: center; gap: 16px; min-height: 74px; border-bottom: 1px solid var(--line); }
.feature-list li > span { font-size: 24px; text-align: center; }
.feature-list h3 { margin: 0; font-size: 15px; }
.feature-list p { margin: 0; color: var(--muted); font-size: 12px; }
.privacy-grid { display: grid; grid-template-columns: 1fr minmax(320px, .8fr); gap: 46px; }
.privacy-grid h2 { margin-bottom: 16px; }
.privacy-grid p { max-width: 580px; margin: 0; color: var(--muted); font-size: 13px; }
.privacy-grid dl { margin: 0; }
.privacy-grid dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.privacy-grid dt, .privacy-grid dd { margin: 0; }
.privacy-grid dd { display: flex; align-items: center; gap: 20px; }
.stack-command { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.tech-list { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tech-list div { padding: 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tech-list dt { color: var(--green); font-size: 13px; }
.tech-list dd { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.install-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.install-head h2 { margin: 0; }
.install-head .hero-actions { flex: 0 0 auto; margin: 0; }
.install-code { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; margin-top: 24px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 4px; background: #fafaf8; text-align: left; }
.install-code:hover { border-color: var(--green); background: var(--green-soft); }
.install-code code { overflow-x: auto; white-space: nowrap; }
.install-code code span, #copy-label { color: var(--green); }
#copy-label { flex: 0 0 auto; margin-left: 14px; font-size: 11px; }
.install-caption { margin: 9px 0 0; color: var(--muted); font-size: 10px; }
.faq-list { border: 1px solid var(--line); border-radius: 5px; }
.faq-list details + details { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; gap: 16px; padding: 13px 16px; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { color: var(--green); content: "+"; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 760px; margin: 0; padding: 0 40px 16px 16px; color: var(--muted); font-family: var(--sans); font-size: 13px; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; padding: 18px 34px; border-top: 1px solid var(--line); font-size: 11px; }
footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
footer a:hover { color: var(--green); }
footer span { color: var(--green); }

@media (max-width: 1180px) {
  .hero, .content-section { padding-inline: 34px; }
}
@media (max-width: 820px) {
  .terminal-window { width: calc(100% - 12px); margin: 6px auto; border-radius: 10px; }
  .site-nav { grid-template-columns: auto auto; gap: 10px 18px; padding: 10px 18px; }
  .nav-links { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 20px; overflow-x: auto; padding-top: 8px; border-top: 1px solid var(--line); }
  .nav-download { justify-self: end; }
  .page-flow { border-inline: 0; }
  .hero, .content-section { padding: 32px 24px; }
  h1 { font-size: clamp(38px, 9vw, 58px); }
  .demo-body { grid-template-columns: minmax(0, 1fr) 180px; }
  .privacy-grid { grid-template-columns: 1fr; gap: 22px; }
  .install-head { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 620px) {
  body { font-size: 13px; }
  .window-chrome { grid-template-columns: 1fr auto; }
  .window-chrome > span:nth-child(2) { display: none; }
  .site-nav { grid-template-columns: 1fr; }
  .nav-download { display: none; }
  .nav-links { grid-column: 1; }
  .hero, .content-section { padding: 28px 18px; }
  h1 { font-size: 36px; letter-spacing: -.045em; }
  h1 br { display: none; }
  .hero-sub { font-size: 14px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .demo-titlebar { align-items: stretch; flex-direction: column; }
  .mode-toggle button, .demo-samples button { flex: 1; }
  .demo-controls { justify-content: space-between; }
  .wave-row { grid-template-columns: 1fr auto; }
  .wave-row > span:first-child { display: none; }
  .demo-body { grid-template-columns: 1fr; min-height: 190px; }
  .transcript { min-height: 130px; padding: 0; border: 0; }
  .targets { display: none; }
  .capability-rail { grid-template-columns: repeat(2, 1fr); }
  .capability-rail li:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .capability-rail li:nth-child(4) { border-top: 1px solid var(--line); }
  .pipeline li { grid-template-columns: 34px 1fr; gap: 8px; padding: 12px 0; }
  .pipeline li b { display: none; }
  .pipeline li p { grid-column: 2; }
  .transform { grid-template-columns: 1fr; gap: 12px; }
  .transform > span { transform: rotate(90deg); text-align: center; }
  .feature-list li { grid-template-columns: 38px 1fr; gap: 10px; padding: 13px 0; }
  .feature-list p { grid-column: 2; }
  .tech-list { grid-template-columns: repeat(2, 1fr); }
  .install-head .hero-actions { width: 100%; }
  footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
