@font-face {
  font-family: "Qisu Display";
  src: url("assets/fonts/barlow-condensed-semibold.ttf") format("truetype");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Qisu SC";
  src: url("assets/fonts/qisu-sans-cn.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #070809;
  --ink-soft: #0b0d10;
  --panel: #101216;
  --panel-raised: #15181d;
  --line: #262a30;
  --line-soft: rgba(244, 242, 234, 0.1);
  --paper: #f4f2ea;
  --muted: #a5a7aa;
  --quiet: #70747a;
  --signal: #ff5a1f;
  --signal-hot: #ff7040;
  --signal-wash: rgba(255, 90, 31, 0.1);
  --cyan: #45bfca;
  --good: #6dd19c;
  --warn: #f0bd45;
  --danger: #ff655f;
  --body: "Qisu SC", sans-serif;
  --display: "Qisu Display", sans-serif;
  --content: min(1340px, calc(100% - 64px));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  min-width: 320px;
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body.online-active { overflow: hidden; }

button,
a,
input { font: inherit; }

button,
a,
label { touch-action: manipulation; }

button { color: inherit; }
a { color: inherit; text-decoration: none; }
button:not(:disabled),
a,
label { cursor: pointer; }

button:focus-visible,
a:focus-visible,
input:focus-visible + span {
  outline: 2px solid var(--paper);
  outline-offset: 4px;
}

::selection {
  background: var(--signal);
  color: var(--ink);
}

.hidden { display: none !important; }

.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgba(244, 242, 234, 0.018) 1px, transparent 1px),
    var(--ink);
  background-size: 100% 96px, auto;
}

.ambient-grid::after {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--content);
  min-height: 78px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 9, 0.9);
  backdrop-filter: blur(18px);
}

.site-header::before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 68px;
  height: 2px;
  background: var(--signal);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 48px;
}

.brand-lockup img {
  display: block;
  border-radius: 9px;
  object-fit: cover;
}

.brand-word {
  display: grid;
  line-height: 1;
}

.brand-word strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.brand-word small {
  margin-top: 7px;
  color: var(--quiet);
  font: 600 10px/1 var(--display);
  letter-spacing: 0.18em;
}

.site-nav {
  display: flex;
  align-items: stretch;
  min-height: 48px;
  border: 1px solid var(--line);
}

.nav-link {
  position: relative;
  min-width: 112px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  transition: color 180ms var(--ease), background 180ms var(--ease);
}

.nav-link:hover {
  background: var(--panel);
  color: var(--paper);
}

.nav-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--line);
  color: var(--signal);
}

.landing-view {
  width: var(--content);
  margin: 0 auto;
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  min-height: min(680px, calc(100svh - 78px));
  padding: 52px 0 66px;
}

.hero-section::after {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  grid-column: 1 / span 5;
  align-self: center;
  padding: 26px 0 32px;
  animation: qisu-enter 520ms var(--ease) both;
}

.eyebrow,
.timer-kicker,
.instrument-head,
.section-index,
.channel-no,
.chart-head {
  font: 600 11px/1 var(--display);
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--signal);
}

.eyebrow span:first-child::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  margin-right: 10px;
  background: currentColor;
  vertical-align: middle;
}

.eyebrow span:last-child { color: var(--quiet); }

.hero-copy h1 {
  max-width: 620px;
  margin-top: 27px;
  font-family: var(--body);
  font-size: clamp(52px, 4.9vw, 70px);
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-copy h1 span { color: var(--paper); }
.hero-copy h1 em { color: var(--signal); font-style: normal; }

.hero-lead {
  max-width: 520px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 56px;
  padding: 0 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 13px;
  font-weight: 650;
  transition: border-color 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease);
}

.cta svg,
.channel-icon svg,
.back-button svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cta:hover { transform: translateY(-2px); }
.cta-signal { min-width: 190px; border-color: var(--signal); background: var(--signal); color: var(--ink); }
.cta-signal:hover { border-color: var(--signal-hot); background: var(--signal-hot); }
.cta-quiet { min-width: 222px; }
.cta-quiet:hover { border-color: var(--paper); }

.hero-note {
  margin-top: 18px;
  color: var(--quiet);
  font-size: 11px;
  line-height: 1.6;
}

.hero-instrument {
  position: relative;
  z-index: 1;
  grid-column: 7 / -1;
  min-height: 452px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 38%),
    var(--panel);
  box-shadow: none;
  animation: qisu-enter 620ms 80ms var(--ease) both;
}

.hero-instrument::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 90px;
  border-top: 2px solid var(--signal);
  border-right: 2px solid var(--signal);
}

.hero-instrument::after {
  display: none;
}

.instrument-head {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 22px 24px;
  color: var(--quiet);
}

.signal-dot { color: var(--good); }
.signal-dot::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--good);
}

.dial-wrap {
  position: relative;
  display: grid;
  place-content: center;
  min-height: 270px;
  text-align: center;
}

.dial-ticks {
  position: absolute;
  inset: 22px 15% 12px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  background: repeating-conic-gradient(from 226deg at 50% 70%, rgba(244, 242, 234, 0.18) 0 0.7deg, transparent 0.7deg 7.5deg);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 0 72%);
  opacity: 0.62;
}

.dial-value {
  position: relative;
  color: var(--paper);
  font: 600 clamp(100px, 9.5vw, 142px)/0.8 var(--display);
  letter-spacing: -0.055em;
}

.dial-unit {
  position: relative;
  margin-top: 24px;
  color: var(--muted);
  font: 600 11px/1 var(--display);
  letter-spacing: 0.25em;
}

.instrument-readouts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.instrument-readouts div {
  min-height: 86px;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.instrument-readouts div:last-child { border-right: 0; }
.instrument-readouts span {
  display: block;
  color: var(--quiet);
  font: 600 10px/1 var(--display);
  letter-spacing: 0.18em;
}

.instrument-readouts strong {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
}

.instrument-rail {
  display: flex;
  gap: 6px;
  padding: 19px 23px;
}

.instrument-rail i {
  display: block;
  width: 15px;
  height: 3px;
  background: var(--quiet);
}

.instrument-rail i:nth-child(-n+3) { background: var(--signal); }

.channel-section {
  position: relative;
  padding: 82px 0 72px;
  border-top: 1px solid var(--line);
}

.section-index {
  margin-bottom: 24px;
  color: var(--signal);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 64px;
  align-items: end;
  margin-bottom: 42px;
}

.section-heading h2 {
  max-width: 680px;
  font-size: clamp(40px, 4vw, 58px);
  font-weight: 680;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.section-heading p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.channel-grid {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 16px;
}

.channel-card {
  position: relative;
  min-height: 474px;
  overflow: hidden;
  padding: clamp(28px, 3.3vw, 44px);
  border: 1px solid var(--line);
  background: var(--ink-soft);
  transition: border-color 200ms var(--ease), background 200ms var(--ease), transform 200ms var(--ease);
}

.channel-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--signal);
}

.channel-card:hover {
  border-color: #3b4048;
  background: var(--panel);
}

.app-card {
  background:
    linear-gradient(140deg, rgba(255, 90, 31, 0.075), transparent 42%),
    var(--panel);
}

.app-card::before { width: 152px; }
.channel-no { color: var(--quiet); }

.channel-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 40px 0 24px;
  border: 1px solid var(--line);
  color: var(--signal);
}

.channel-icon svg { width: 24px; height: 24px; }
.channel-card h3 {
  font-size: clamp(30px, 2.8vw, 38px);
  font-weight: 680;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.channel-card > p {
  max-width: 510px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.channel-card ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 28px 0;
  border-top: 1px solid var(--line);
}

.channel-card li {
  min-height: 46px;
  padding: 13px 8px 12px 17px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  list-style: none;
}

.channel-card li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 10px 1px 0;
  background: var(--signal);
}

.channel-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 13px;
  font-weight: 650;
  transition: border-color 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease);
}

.channel-action:hover { border-color: var(--paper); background: rgba(244, 242, 234, 0.035); }
.channel-action.filled { margin-top: 28px; border-color: var(--signal); background: var(--signal); color: var(--ink); }
.channel-action.filled:hover { background: var(--signal-hot); }
.channel-card small { display: block; margin-top: 12px; color: var(--quiet); font-size: 10px; }

.app-title-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 40px;
}

.app-title-row img {
  width: 66px;
  height: 66px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.app-title-row span {
  display: block;
  margin-top: 7px;
  color: var(--signal);
  font: 600 11px/1 var(--display);
  letter-spacing: 0.13em;
}

.app-capability {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 30px;
  border: 1px solid var(--line);
}

.app-capability div {
  min-height: 92px;
  padding: 15px;
  border-right: 1px solid var(--line);
}

.app-capability div:last-child { border-right: 0; }
.app-capability strong { display: block; color: var(--signal); font: 600 22px/1 var(--display); }
.app-capability span { display: block; margin-top: 9px; color: var(--muted); font-size: 11px; line-height: 1.55; }

.ios-strip {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  background: var(--ink-soft);
}

.ios-mark { color: var(--quiet); font: 600 30px/1 var(--display); }
.ios-strip > div:nth-child(2) { display: grid; gap: 4px; }
.ios-strip strong { font-size: 13px; font-weight: 600; }
.ios-strip span { color: var(--quiet); font-size: 11px; }
.ios-strip button {
  min-width: 112px;
  min-height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--quiet);
  font-size: 11px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 0 76px;
  border-top: 1px solid var(--line);
}

.trust-strip div {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 78px;
  padding-right: 24px;
  border-right: 1px solid var(--line);
}

.trust-strip div:nth-child(2) { padding-left: 24px; }
.trust-strip div:last-child { justify-content: flex-end; padding-right: 0; padding-left: 24px; border-right: 0; }
.trust-strip span { color: var(--signal); font: 600 10px/1 var(--display); letter-spacing: 0.17em; }
.trust-strip strong { color: var(--muted); font-size: 12px; font-weight: 500; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--content);
  min-height: 108px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--quiet);
}

.site-footer p { max-width: 560px; text-align: right; font-size: 11px; }

/* Online measurement */
.online-view {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: auto;
  overscroll-behavior: contain;
  background:
    linear-gradient(rgba(244, 242, 234, 0.022) 1px, transparent 1px),
    var(--ink);
  background-size: 100% 96px, auto;
}

.test-toolbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 70px;
  padding: 0 max(24px, calc((100vw - 1260px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 9, 0.94);
  backdrop-filter: blur(16px);
}

.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: max-content;
  min-width: 86px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

.back-button:hover { border-color: var(--paper); color: var(--paper); }
.back-button svg { width: 17px; height: 17px; }

.test-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: center;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.test-brand img { border-radius: 7px; }

#statusbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--quiet);
  font: 600 11px/1 var(--display);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.st-sep { color: var(--line); }
.sim-badge { padding: 5px 7px; background: var(--warn); color: var(--ink); }

.timer-app {
  width: min(1160px, calc(100% - 64px));
  margin: 0 auto;
}

.screen {
  min-height: calc(100svh - 70px);
  padding: 48px 0 max(64px, env(safe-area-inset-bottom));
  animation: qisu-enter 360ms var(--ease) both;
}

.timer-kicker {
  display: flex;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--quiet);
}

.timer-kicker span:last-child { color: var(--signal); }
.timer-idle { display: flex; flex-direction: column; justify-content: center; }

.timer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 54px;
  align-items: end;
  margin-top: 58px;
}

.hero-title {
  font: 600 clamp(112px, 16vw, 212px)/0.72 var(--display);
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}

.hero-sub {
  margin-top: 30px;
  color: var(--muted);
  font: 600 13px/1 var(--display);
  letter-spacing: 0.28em;
}

.web-grade {
  display: grid;
  min-height: 150px;
  padding: 21px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.web-grade span { color: var(--cyan); font: 600 11px/1 var(--display); letter-spacing: 0.2em; }
.web-grade strong { align-self: end; font-size: 20px; font-weight: 650; }
.web-grade small { margin-top: 8px; color: var(--quiet); font-size: 11px; line-height: 1.55; }

.preflight-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  margin-top: 48px;
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  background: var(--panel);
}

.panel-label { color: var(--signal); font: 600 10px/1 var(--display); letter-spacing: 0.18em; }
.placement-copy strong { display: block; margin-top: 10px; font-size: 20px; font-weight: 650; }
.placement-copy p { max-width: 660px; margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.7; }

.mode-select {
  display: flex;
  min-width: 250px;
  border: 1px solid var(--line);
}

.mode-opt { position: relative; flex: 1; }
.mode-opt + .mode-opt { border-left: 1px solid var(--line); }
.mode-opt input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mode-opt span {
  display: grid;
  place-items: center;
  min-width: 124px;
  min-height: 48px;
  color: var(--muted);
  font-size: 12px;
  transition: color 160ms var(--ease), background 160ms var(--ease);
}

.mode-opt input:checked + span { background: var(--paper); color: var(--ink); font-weight: 650; }

.btn-primary,
.btn-secondary,
.btn-ghost {
  min-height: 54px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 650;
  transition: color 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.btn-primary {
  min-width: 300px;
  margin-top: 18px;
  padding: 0 24px;
  border-color: var(--signal);
  background: var(--signal);
  color: var(--ink);
}

.btn-primary:hover { background: var(--signal-hot); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-secondary:hover { background: rgba(69, 191, 202, 0.08); }

.btn-ghost {
  min-width: 124px;
  padding: 0 22px;
  background: transparent;
  color: var(--muted);
}

.btn-ghost:hover { border-color: var(--paper); color: var(--paper); }
.timer-footnote { margin-top: 12px; color: var(--quiet); font-size: 11px; }

.instrument-screen {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.instrument-screen .timer-kicker { width: 100%; }
.state-title { margin-top: 56px; color: var(--muted); font-size: 15px; letter-spacing: 0.16em; }
.calibration-value { display: flex; align-items: baseline; margin-top: 6px; }
.calibration-value span { font: 600 clamp(130px, 22vw, 244px)/0.8 var(--display); letter-spacing: -0.055em; }
.calibration-value small { margin-left: 12px; color: var(--signal); font: 600 34px/1 var(--display); }
.cal-step { color: var(--signal); font-size: 14px; }
.cal-detail { min-height: 26px; margin-top: 9px; color: var(--muted); font-size: 12px; }
.cal-bar-wrap { width: 100%; height: 5px; margin: 30px 0 22px; overflow: hidden; background: var(--line); }
.cal-bar { width: 0; height: 100%; background: var(--signal); transition: width 150ms linear; }
.cal-bar.done { background: var(--good); }

.ready-screen { position: relative; overflow: hidden; }
.ready-screen::after {
  content: "";
  position: absolute;
  right: 2%;
  bottom: 14%;
  width: min(34vw, 440px);
  aspect-ratio: 1;
  border: 1px solid rgba(109, 209, 156, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(109, 209, 156, 0.025), 0 0 0 120px rgba(109, 209, 156, 0.012);
  pointer-events: none;
}

.ready-badge { margin-top: 76px; color: var(--good); font: 600 clamp(144px, 25vw, 286px)/0.7 var(--display); letter-spacing: -0.04em; }
.ready-sub { display: grid; gap: 8px; margin-top: 40px; }
.ready-sub strong { font-size: 20px; font-weight: 650; }
.ready-sub span { color: var(--muted); font-size: 13px; }
.ready-track { width: 100%; height: 2px; margin-top: 56px; background: var(--line); }
.ready-track i { display: block; width: 18%; height: 2px; background: var(--good); animation: ready-track 1.8s var(--ease) infinite; }

.speed-readout { display: flex; align-items: baseline; gap: 20px; margin-top: 72px; }
.speed-value { font: 600 clamp(152px, 27vw, 304px)/0.7 var(--display); letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.speed-unit { color: var(--muted); font: 600 24px/1 var(--display); letter-spacing: 0.08em; }
.progress-bar-wrap { width: 100%; height: 6px; margin-top: 52px; overflow: hidden; background: var(--line); }
.progress-bar { width: 0; height: 100%; background: var(--signal); transition: width 100ms linear; }

.run-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  margin-top: 18px;
  border: 1px solid var(--line);
}

.run-meta > div { min-height: 94px; padding: 18px 20px; border-right: 1px solid var(--line); }
.run-meta > div:last-child { border-right: 0; }
.meta-label { display: block; color: var(--quiet); font-size: 10px; letter-spacing: 0.14em; }
.run-meta span:last-child { display: block; margin-top: 10px; font: 600 26px/1 var(--display); }
.danger-ghost { margin-top: 20px; }
.danger-ghost:hover { border-color: var(--danger); color: var(--danger); }

.result-screen { min-height: auto; padding-top: 42px; }
.result-topline { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 24px; margin-top: 42px; }
.result-badge { font-size: 19px; font-weight: 650; }
.result-warning { justify-self: end; padding: 10px 13px; border: 1px solid; font-size: 11px; line-height: 1.45; }
.result-warning.valid { border-color: rgba(109, 209, 156, 0.5); background: rgba(109, 209, 156, 0.08); color: var(--good); }
.result-warning.uncertain { border-color: rgba(240, 189, 69, 0.46); background: rgba(240, 189, 69, 0.08); color: var(--warn); }
.result-warning.invalid { border-color: rgba(255, 101, 95, 0.46); background: rgba(255, 101, 95, 0.08); color: var(--danger); }
.result-main { display: flex; align-items: flex-end; gap: 20px; margin: 44px 0 38px; }
.result-value { font: 600 clamp(160px, 25vw, 280px)/0.7 var(--display); letter-spacing: -0.055em; font-variant-numeric: tabular-nums; }
.result-unit { padding-bottom: 5px; color: var(--muted); font-size: 19px; line-height: 1.25; }
.result-unit small { color: var(--quiet); font: 600 10px/1 var(--display); letter-spacing: 0.17em; white-space: nowrap; }

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.result-grid .cell { min-height: 94px; padding: 17px 19px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.result-grid .cell:nth-child(3n) { border-right: 0; }
.result-grid .cell:nth-last-child(-n+3) { border-bottom: 0; }
.cell .label { color: var(--quiet); font-size: 10px; letter-spacing: 0.12em; }
.cell .value { margin-top: 10px; font: 600 26px/1 var(--display); font-variant-numeric: tabular-nums; }

.chart-wrap { margin-top: 18px; padding: 19px; border: 1px solid var(--line); background: var(--panel); }
.chart-head { display: flex; justify-content: space-between; color: var(--quiet); }
.chart-head span:last-child { color: var(--cyan); }
.result-chart { display: block; width: 100%; height: 220px; margin-top: 14px; }
.result-actions { display: flex; gap: 12px; padding: 20px 0 58px; }
.result-actions .btn-primary { margin-top: 0; }

.error-title { margin-top: 68px; color: var(--danger); font-size: clamp(44px, 7vw, 78px); font-weight: 720; letter-spacing: -0.04em; }
.hint { max-width: 650px; margin-top: 20px; color: var(--muted); line-height: 1.8; }
.hint + .btn-ghost { margin-top: 28px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 200;
  width: max-content;
  max-width: calc(100% - 36px);
  transform: translateX(-50%);
  padding: 12px 17px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  background: var(--panel-raised);
  color: var(--paper);
  font-size: 12px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.38);
  transition: opacity 160ms var(--ease), transform 160ms var(--ease);
}

.toast.hidden { display: block !important; opacity: 0; transform: translate(-50%, 8px); pointer-events: none; }

@keyframes qisu-enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ready-track {
  0%, 100% { transform: translateX(0); opacity: 0.45; }
  50% { transform: translateX(455%); opacity: 1; }
}

@media (max-width: 1100px) {
  :root { --content: min(100% - 48px, 1340px); }
  .hero-copy { grid-column: 1 / span 6; }
  .hero-instrument { grid-column: 7 / -1; min-height: 470px; }
  .dial-value { font-size: clamp(90px, 11vw, 122px); }
  .channel-card { padding: 32px; }
}

@media (max-width: 900px) {
  .hero-section { grid-template-columns: 1fr; gap: 52px; min-height: auto; padding: 62px 0 76px; }
  .hero-copy,
  .hero-instrument { grid-column: 1; }
  .hero-copy { max-width: 700px; padding: 0; }
  .hero-instrument { width: min(660px, 100%); }
  .section-heading { grid-template-columns: 1fr; gap: 16px; }
  .section-heading p { max-width: 520px; }
  .channel-grid { grid-template-columns: 1fr; }
  .channel-card { min-height: 0; }
  .timer-hero { grid-template-columns: 1fr; gap: 34px; }
  .web-grade { max-width: 420px; }
}

@media (max-width: 640px) {
  :root { --content: min(100% - 28px, 1340px); }
  body { font-size: 16px; }
  .ambient-grid { background-size: 100% 100%, 100% 72px, auto, auto; }
  .site-header { min-height: 66px; }
  .site-header::before { width: 46px; }
  .brand-lockup { gap: 9px; }
  .brand-lockup img { width: 34px; height: 34px; }
  .brand-word strong { font-size: 15px; }
  .brand-word small { font-size: 8px; }
  .site-nav { min-height: 44px; border: 0; }
  .nav-link { min-width: 0; min-height: 44px; padding: 0 10px; font-size: 11px; }
  .nav-download { border-left: 1px solid var(--line); }
  .hero-section { gap: 44px; padding: 48px 0 62px; }
  .hero-section::after { display: none; }
  .eyebrow { justify-content: space-between; gap: 10px; font-size: 9px; }
  .eyebrow span:first-child::before { display: none; }
  .hero-copy h1 { margin-top: 26px; font-size: clamp(48px, 14vw, 62px); line-height: 1.01; }
  .hero-lead { margin-top: 23px; font-size: 14px; line-height: 1.75; }
  .hero-actions { display: grid; margin-top: 28px; }
  .cta { width: 100%; min-height: 54px; }
  .hero-note { font-size: 10px; }
  .hero-instrument { min-height: 404px; box-shadow: 10px 10px 0 rgba(255, 90, 31, 0.035); }
  .hero-instrument::before { width: 58px; height: 58px; }
  .instrument-head { padding: 17px; font-size: 9px; }
  .dial-wrap { min-height: 230px; }
  .dial-ticks { inset: 22px 10% 8px; }
  .dial-value { font-size: 90px; }
  .dial-unit { margin-top: 19px; font-size: 9px; }
  .instrument-readouts div { min-height: 74px; padding: 13px 10px; }
  .instrument-readouts strong { margin-top: 9px; font-size: 11px; }
  .instrument-rail { padding: 15px 16px; }
  .channel-section { padding: 72px 0 60px; }
  .section-index { margin-bottom: 18px; }
  .section-heading { margin-bottom: 30px; }
  .section-heading h2 { font-size: 36px; }
  .section-heading p { font-size: 13px; }
  .channel-card { padding: 26px 21px; }
  .channel-card:hover { transform: none; }
  .channel-icon,
  .app-title-row { margin-top: 34px; }
  .channel-card h3 { font-size: 31px; }
  .channel-card > p { font-size: 13px; }
  .channel-card ul { grid-template-columns: 1fr; }
  .channel-card li { min-height: 43px; }
  .app-title-row img { width: 58px; height: 58px; }
  .app-capability { grid-template-columns: 1fr; }
  .app-capability div { display: grid; grid-template-columns: 46px 1fr; align-items: center; min-height: 64px; border-right: 0; border-bottom: 1px solid var(--line); }
  .app-capability div:last-child { border-bottom: 0; }
  .app-capability span { margin-top: 0; }
  .ios-strip { grid-template-columns: 56px 1fr; padding: 17px; }
  .ios-strip button { grid-column: 1 / -1; width: 100%; min-height: 44px; }
  .trust-strip { grid-template-columns: 1fr; padding-bottom: 50px; }
  .trust-strip div,
  .trust-strip div:nth-child(2),
  .trust-strip div:last-child { justify-content: space-between; min-height: 52px; padding: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-strip div:last-child { border-bottom: 0; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 20px; padding: 28px 0; }
  .site-footer p { text-align: left; line-height: 1.7; }

  .test-toolbar { grid-template-columns: auto 1fr; min-height: 66px; padding: 10px 14px; }
  .back-button { min-width: 78px; }
  .test-brand { justify-self: end; }
  #statusbar { grid-column: 1 / -1; justify-content: flex-start; min-height: 26px; padding-top: 8px; overflow: hidden; white-space: nowrap; font-size: 10px; }
  .timer-app { width: calc(100% - 28px); }
  .screen { min-height: calc(100svh - 96px); padding-top: 28px; }
  .timer-kicker { font-size: 9px; }
  .timer-idle { justify-content: flex-start; }
  .timer-hero { margin-top: 56px; }
  .hero-title { font-size: clamp(98px, 31vw, 132px); }
  .hero-sub { margin-top: 20px; font-size: 11px; }
  .web-grade { width: 100%; max-width: none; min-height: 130px; }
  .preflight-panel { grid-template-columns: 1fr; gap: 22px; margin-top: 30px; padding: 18px; }
  .placement-copy strong { font-size: 18px; }
  .placement-copy p { font-size: 12px; }
  .mode-select { width: 100%; min-width: 0; }
  .mode-opt span { min-width: 0; min-height: 48px; }
  .btn-primary { width: 100%; min-width: 0; }
  .timer-footnote { text-align: center; line-height: 1.6; }
  .state-title { margin-top: 50px; }
  .calibration-value span { font-size: 45vw; }
  .ready-badge { margin-top: 82px; font-size: 39vw; }
  .ready-screen::after { width: 72vw; right: -22%; bottom: 18%; }
  .ready-sub span { line-height: 1.7; }
  .speed-readout { margin-top: 70px; gap: 10px; }
  .speed-value { font-size: 39vw; }
  .speed-unit { font-size: 17px; }
  .progress-bar-wrap { margin-top: 42px; }
  .run-meta { grid-template-columns: 1fr; }
  .run-meta > div { display: grid; grid-template-columns: 1fr auto; align-items: center; min-height: 62px; border-right: 0; border-bottom: 1px solid var(--line); }
  .run-meta > div:last-child { border-bottom: 0; }
  .run-meta span:last-child { margin-top: 0; }
  .result-topline { grid-template-columns: 1fr; gap: 13px; margin-top: 30px; }
  .result-warning { justify-self: stretch; }
  .result-main { margin: 42px 0 32px; }
  .result-value { font-size: 38vw; }
  .result-unit { font-size: 16px; }
  .result-grid { grid-template-columns: repeat(2, 1fr); }
  .result-grid .cell:nth-child(3n) { border-right: 1px solid var(--line); }
  .result-grid .cell:nth-child(2n) { border-right: 0; }
  .result-grid .cell:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .result-grid .cell:nth-last-child(-n+2) { border-bottom: 0; }
  .cell .value { font-size: 22px; }
  .result-chart { height: 190px; }
  .result-actions { display: grid; }
  .result-actions .btn-secondary { min-height: 58px; text-align: center; line-height: 1.45; }
  .error-title { margin-top: 56px; }
}

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