* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: min(var(--container-w), calc(100% - 64px));
  margin: 0 auto;
}

code {
  overflow-wrap: anywhere;
}

.mono {
  font-family: var(--font-mono);
}

.muted {
  color: var(--fg-mute);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0 32px;
  background: rgba(14, 16, 19, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.topbar-inner {
  width: min(var(--container-w), 100%);
  min-height: 65px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 1px solid rgba(63, 184, 122, 0.22);
  border-radius: 7px;
  background: rgba(63, 184, 122, 0.06);
}

.mark img {
  width: 22px;
  height: 22px;
}

.word {
  display: grid;
  line-height: 1.05;
}

.word .name {
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
}

.word .sub {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.6;
  text-transform: uppercase;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.topnav a {
  border-radius: var(--r-sm);
  padding: 7px 13px;
  color: var(--fg-mute);
  font-size: 13px;
  transition: color 0.15s ease, background 0.15s ease;
}

.topnav a:hover,
.topnav a.active {
  color: var(--fg);
  background: rgba(63, 184, 122, 0.07);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--fg-dim);
  font: 500 12px var(--font-ui);
  padding: 7px 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 16px;
  font: 500 13.5px/1 var(--font-ui);
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 12.5px;
}

.btn-lg {
  padding: 14px 22px;
  font-size: 14.5px;
  font-weight: 600;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--fg);
}

.btn-ghost:hover {
  transform: translateY(-1px);
  background: var(--card-hi);
  border-color: var(--border-hi);
}

.hero {
  padding: 64px 0 80px;
  background: linear-gradient(180deg, var(--bg), #101419);
}

.hero-grid {
  width: min(var(--container-w), calc(100% - 64px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.18fr);
  gap: 48px;
  align-items: center;
}

.eyebrow-pill,
.eyebrow {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(63, 184, 122, 0.25);
  border-radius: var(--r-pill);
  padding: 5px 11px;
  background: rgba(63, 184, 122, 0.04);
}

.eyebrow-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--brand);
  box-shadow: 0 0 8px var(--brand);
}

.hero h1,
.page-hero h1,
.cta-band h2 {
  margin: 18px 0 18px;
  max-width: 760px;
  font-size: 52px;
  font-weight: 600;
  line-height: 1.05;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.amber {
  color: var(--probe-amber);
}

.lede,
.page-hero p {
  max-width: 620px;
  color: var(--fg-dim);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 32px;
}

.hero-meta {
  display: flex;
  gap: 32px;
  max-width: 560px;
  border-top: 1px dashed var(--hairline);
  padding-top: 20px;
}

.hero-meta div {
  display: grid;
  gap: 2px;
}

.hero-meta .k {
  color: var(--fg);
  font-weight: 600;
  font-size: 14px;
}

.hero-meta .v {
  color: var(--fg-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.hero-visual {
  min-width: 0;
}

.app-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: #090b0e;
  box-shadow: var(--shadow);
}

.app-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1080 / 740;
  object-fit: contain;
  object-position: center center;
  background: #090b0e;
}

.app-shot figcaption {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--hairline);
  padding: 10px 12px;
  color: var(--fg-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.hero-shot {
  box-shadow: var(--shadow-lg);
}

.hero-shot img {
  min-height: 0;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--r-pill);
  background: var(--probe-amber);
  box-shadow: 0 0 8px rgba(232, 155, 60, 0.75);
}

.readout {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #14181d, #0e1115);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--hairline);
}

.readout-head,
.readout-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.readout-head {
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding: 11px 16px;
  background: linear-gradient(#191c20, #141619);
}

.r-title,
.r-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.r-title img {
  width: 16px;
  height: 16px;
}

.r-status {
  color: var(--probe-amber);
}

.led,
.led-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--r-pill);
  background: currentColor;
}

.led {
  box-shadow: 0 0 6px var(--probe-amber);
  animation: pulseamber 1.4s ease-in-out infinite;
}

@keyframes pulseamber {
  50% { opacity: 0.5; }
}

.readout-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px 18px;
}

.r-line {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.r-line .k {
  color: var(--fg-faint);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.r-line .v {
  min-width: 0;
  color: var(--fg);
  font-size: 14px;
}

.r-line .dim {
  color: var(--fg-mute);
}

.r-line .mono-big {
  font-family: var(--font-mono);
  font-size: 30px;
  line-height: 1;
}

.r-divider {
  height: 1px;
  background: var(--hairline);
}

.r-wave {
  width: 100%;
  height: 70px;
}

.r-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.seg {
  height: 4px;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  background: var(--well);
}

.seg.done {
  border-color: transparent;
  background: var(--ok);
}

.seg.active {
  border-color: transparent;
  background: linear-gradient(90deg, var(--probe-amber) 55%, var(--well) 55%);
}

.r-progress-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: var(--fg-faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
}

.readout-foot {
  border-top: 1px solid var(--border);
  padding: 9px 16px;
  background: var(--well);
  color: var(--fg-faint);
}

.readout-foot .right {
  margin-left: auto;
}

.led-dot.ok {
  background: var(--ok);
}

.led-dot.live {
  background: var(--probe-amber);
  animation: pulseamber 1.4s ease-in-out infinite;
}

.hero-caption {
  margin-top: 12px;
  color: var(--fg-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: center;
}

.band,
.cta-band,
.page-hero,
.download-main,
.compat-main,
.docs-grid {
  padding: 80px 0;
}

.band.alt {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--section-bg);
}

.app-tour {
  border-top: 1px solid var(--border);
  background: var(--section-bg);
}

.band-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.band-head h2,
.split-text h2,
.download-copy h2,
.docs-content h2 {
  margin: 10px 0 12px;
  color: var(--fg);
  font-size: 32px;
  line-height: 1.15;
}

.band-head p,
.split-text p,
.download-copy p,
.docs-content p {
  color: var(--fg-dim);
}

.band-head a,
.docs-content a {
  color: var(--brand);
}

.band-head a.btn-primary,
.docs-content a.btn-primary,
a.btn-primary {
  color: #ffffff;
}

.band-head a.btn-ghost,
.docs-content a.btn-ghost,
a.btn-ghost {
  color: var(--fg);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.why-card,
.req-card,
.compat-stat,
.doc-card,
.download-card,
.alt-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
}

.why-card,
.doc-card {
  padding: 24px 22px;
}

.why-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.why-card:hover,
.alt-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hi);
}

/* Disabled "coming soon" variant — same shell as .alt-card but
   visibly inactive. No hover transform, dimmed text, soft border. */
.alt-card-disabled {
  opacity: 0.78;
  cursor: default;
  border-style: dashed;
}
.alt-card-disabled:hover {
  transform: none;
  border-color: var(--border);
}

/* "Coming soon" inline pill, used inside an .alt-card-disabled
   heading. Brand-blue ink on a 12% brand fill, lowercase-y. */
.pill-soon {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(63, 184, 122, 0.12);
  color: var(--brand);
  border: 1px solid rgba(63, 184, 122, 0.35);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  vertical-align: middle;
}

.why-card .num {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.why-card h3,
.doc-card h3,
.alt-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.why-card p,
.doc-card p,
.alt-card p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 13.5px;
}

.tour-grid {
  display: grid;
  gap: 18px;
}

.tour-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 24px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  padding: 18px;
}

.tour-card:nth-child(even) .app-shot {
  order: 2;
}

.tour-copy {
  display: grid;
  gap: 10px;
  padding: 8px 12px;
}

.tour-copy .num {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.tour-copy h3 {
  margin: 0;
  color: var(--fg);
  font-size: 24px;
}

.tour-copy p {
  margin: 0;
  color: var(--fg-dim);
}

.gallery-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr);
  gap: 60px;
  align-items: center;
}

.bullets {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.bullets li {
  position: relative;
  padding-left: 24px;
  color: var(--fg-dim);
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand);
  transform: rotate(45deg);
}

.bullets b {
  color: var(--fg);
  font-weight: 600;
}

.output-file .b {
  color: var(--fg-faint);
}

.output-file {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--hairline);
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.output-file:first-child {
  border-top: 0;
}

.output-file .ic {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  color: var(--brand);
  font-size: 10px;
}

.output-file .n {
  min-width: 0;
  overflow-wrap: anywhere;
}

.compat-mini,
.compat-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
}

.compat-mini table,
.compat-table {
  width: 100%;
  border-collapse: collapse;
}

.compat-mini th,
.compat-mini td,
.compat-table th,
.compat-table td {
  border-bottom: 1px solid var(--hairline);
  padding: 13px 16px;
  text-align: left;
  vertical-align: middle;
}

.compat-mini th,
.compat-table th {
  color: var(--fg-faint);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
}

.compat-mini tr:last-child td,
.compat-table tr:last-child td {
  border-bottom: 0;
}

.compat-table tr:hover td {
  background: var(--hover-wash);
}

.td-device b {
  display: block;
  color: var(--fg);
  font-weight: 600;
}

.td-device span {
  display: block;
  margin-top: 2px;
  color: var(--fg-mute);
  font-size: 12.5px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--r-pill);
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.badge.ok {
  background: rgba(108, 198, 107, 0.12);
  color: var(--ok);
}

.badge.warn {
  background: rgba(232, 144, 60, 0.12);
  color: var(--warn);
}

.badge.err {
  background: rgba(232, 107, 107, 0.12);
  color: var(--err);
}

.badge.mute {
  background: var(--card-2);
  color: var(--fg-mute);
}

.bar-mini {
  display: inline-block;
  width: 74px;
  height: 6px;
  margin-right: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--well);
  vertical-align: middle;
}

.bar-mini .fill {
  display: block;
  height: 100%;
}

.bar-mini.ok .fill { background: var(--ok); }
.bar-mini.warn .fill { background: var(--warn); }
.bar-mini.err .fill { background: var(--err); }
.bar-mini.mute .fill { background: var(--fg-faint); }

.compat-cta {
  margin-top: 18px;
}

.cta-band {
  border-top: 1px solid var(--border);
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}

.cta-band h2 {
  margin: 0 0 10px;
  font-size: 36px;
}

.cta-band p {
  margin: 0;
  color: var(--fg-dim);
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer {
  border-top: 1px solid var(--border);
  background: var(--section-bg);
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr 1fr;
  gap: 48px;
  padding: 64px 0;
}

.foot-brand p,
.foot-col p {
  color: var(--fg-dim);
  font-size: 13.5px;
}

.foot-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.foot-col h2 {
  margin: 0 0 6px;
  color: var(--fg-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

.foot-col a {
  color: var(--fg-mute);
  font-size: 13.5px;
}

.foot-col a:hover {
  color: var(--fg);
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--hairline);
  padding: 24px 0;
  color: var(--fg-faint);
  font-size: 12px;
}

.page-hero {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg), #101419);
}

.page-hero-inner {
  width: min(var(--content-w), calc(100% - 64px));
  margin: 0 auto;
}

.crumb {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.page-hero h1 {
  margin-bottom: 14px;
  font-size: 48px;
}

.report-hero {
  padding: 72px 0;
}

.report-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: center;
}

.report-hero-copy h1 {
  max-width: 640px;
}

.report-hero-copy,
.report-token-card,
.report-metric,
.report-sidebar,
.report-content,
.report-panel,
.report-table-wrap,
.report-json {
  min-width: 0;
}

.report-actions,
.token-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.report-trust-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.report-token-card {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  padding: 22px;
  box-shadow: var(--shadow);
}

.token-label {
  color: var(--fg-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.claim-token {
  margin: 8px 0 10px;
  color: var(--fg);
  font-size: 28px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.report-token-card p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 13.5px;
}

.report-main {
  display: grid;
  gap: 22px;
  padding: 48px 0 80px;
}

.download-main.container,
.report-main.container,
.privacy-body.container {
  width: min(var(--content-w), calc(100% - 64px));
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

/* Sample-report iframe embed. Tall enough to show the hero + a
   couple of sections without scrolling on a typical viewport;
   the iframe scrolls internally for the rest. */
.report-embed-frame {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--card);
  overflow: hidden;
  height: 78vh;
  min-height: 540px;
}

.report-embed-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.report-embed-note {
  margin: -10px 0 0;
  font-size: 13px;
}

.report-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.report-metric {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--card);
  padding: 20px;
}

.report-metric.ok { border-top-color: var(--ok); }
.report-metric.warn { border-top-color: var(--warn); }
.report-metric.err { border-top-color: var(--err); }
.report-metric.mute { border-top-color: var(--fg-faint); }

.report-metric .k {
  color: var(--fg-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.report-metric .v {
  margin-top: 8px;
  color: var(--fg);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.05;
}

.report-metric p {
  margin: 8px 0 0;
  color: var(--fg-mute);
  font-size: 13px;
}

.report-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.38fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.report-sidebar,
.report-content {
  display: grid;
  gap: 16px;
}

.report-sidebar {
  position: sticky;
  top: 88px;
}

.report-panel {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--card);
  padding: 22px;
}

.report-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 18px;
  padding-bottom: 16px;
}

.report-section-head h2 {
  margin: 4px 0 0;
  color: var(--fg);
  font-size: 20px;
  line-height: 1.2;
}

.report-facts {
  display: grid;
  gap: 0;
}

.report-fact {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  border-top: 1px solid var(--hairline);
  padding: 11px 0;
}

.report-fact:first-child {
  border-top: 0;
  padding-top: 0;
}

.report-fact .k {
  color: var(--fg-faint);
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
}

.report-fact .v {
  min-width: 0;
  color: var(--fg-dim);
  overflow-wrap: anywhere;
}

.report-table-wrap {
  overflow-x: auto;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
}

.report-table th,
.report-table td {
  border-bottom: 1px solid var(--hairline);
  padding: 13px 0;
  text-align: left;
  vertical-align: middle;
}

.report-table th {
  color: var(--fg-faint);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
}

.report-table th:not(:first-child),
.report-table td:not(:first-child) {
  padding-left: 18px;
}

.report-table tr:last-child td {
  border-bottom: 0;
}

.feel-list,
.quirk-list {
  display: grid;
}

.feel-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.75fr) minmax(160px, 1fr) minmax(0, 1.35fr) auto;
  gap: 18px;
  align-items: center;
  border-top: 1px solid var(--hairline);
  padding: 15px 0;
}

.feel-row:first-child,
.quirk-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.feel-row:last-child,
.quirk-row:last-child {
  padding-bottom: 0;
}

.feel-row .meta {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
}

.feel-row h3,
.quirk-row h3,
.privacy-panel h3 {
  margin: 0;
  color: var(--fg);
  font-size: 15px;
}

.feel-row .answer {
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.feel-row p,
.quirk-row p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 13.5px;
}

.quirk-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  border-top: 1px solid var(--hairline);
  padding: 15px 0;
}

.quirk-row p {
  margin-top: 5px;
}

.privacy-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.privacy-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.privacy-list li {
  position: relative;
  color: var(--fg-dim);
  font-size: 13px;
  padding-left: 18px;
}

.privacy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--brand);
}

.report-json {
  max-width: 100%;
  max-height: 460px;
  margin: 0;
  overflow: auto;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: var(--well);
  color: var(--fg-dim);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  padding: 16px;
}

.download-main {
  display: grid;
  gap: 40px;
}

.download-card {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(63, 184, 122, 0.18), var(--card) 52%);
}

.download-card-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 24px;
}

.download-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: var(--r-lg);
  background: rgba(63, 184, 122, 0.16);
  color: var(--brand);
}

.download-title {
  color: var(--fg-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.download-name {
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 14px;
}

.download-assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--hairline);
  padding: 0 24px 18px;
}

.download-assurance span,
.report-trust-grid span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(108, 198, 107, 0.22);
  border-radius: var(--r-pill);
  background: rgba(108, 198, 107, 0.07);
  color: var(--fg-dim);
  font-size: 12.5px;
  padding: 5px 10px;
}

.hash-row,
.verify-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--hairline);
  padding: 14px 24px;
  color: var(--fg-dim);
  font-size: 13px;
}

.hash-row code,
.verify-row code,
.docs-content code {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--well);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 2px 6px;
  white-space: normal;
}

/* SHA-256 + size + version display inside .hash-row. Two stacked
   rows on narrow viewports, single row on wide ones. */
.hash-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  width: 100%;
  align-items: center;
}

.hash-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.hash-meta-row.hash-meta-side {
  margin-left: auto;
  color: var(--fg-mute);
}

.hash-meta-row .k {
  color: var(--fg-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sha-value {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--well);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 8px;
  word-break: break-all;
  white-space: normal;
  overflow-wrap: break-word;
}

.copy-button {
  margin-left: 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--fg-dim);
  cursor: pointer;
  font: 500 12px var(--font-ui);
  padding: 5px 9px;
}

.copy-button:hover {
  border-color: var(--brand);
  color: var(--fg);
}

.alt-downloads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.alt-card {
  padding: 20px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.download-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}

.req-card {
  padding: 18px;
  background: var(--card-2);
}

.req-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px;
  border-top: 1px solid var(--hairline);
  padding: 12px 0;
}

.req-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.req-row .k {
  color: var(--fg-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.req-row .v {
  color: var(--fg-dim);
}

.compat-main {
  display: grid;
  gap: 28px;
}

.compat-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.compat-stat {
  padding: 22px;
}

.compat-stat .k {
  color: var(--fg-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.compat-stat .v {
  margin-top: 6px;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
}

.compat-stat .v.ok { color: var(--ok); }
.compat-stat .v.warn { color: var(--warn); }
.compat-stat .v.err { color: var(--err); }
.compat-stat .h { margin-top: 6px; color: var(--fg-mute); font-size: 12px; }

.compat-toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.search-input {
  min-width: 260px;
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--well);
  color: var(--fg);
  font: 400 14px var(--font-ui);
  padding: 11px 13px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--card);
  color: var(--fg-mute);
  cursor: pointer;
  font: 500 12.5px var(--font-ui);
  padding: 7px 14px;
}

.pill:hover,
.pill.active {
  border-color: var(--brand-soft);
  color: var(--brand);
  background: rgba(63, 184, 122, 0.10);
}

.compat-note {
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* === Primary conversion path (home) === */

.band-journey {
  padding: 34px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--section-bg);
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.journey-card {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--card);
  padding: 20px 22px;
}

.journey-card-primary {
  border-color: rgba(108, 198, 107, 0.45);
  background: linear-gradient(180deg, rgba(108, 198, 107, 0.08), var(--card));
}

.journey-card .num {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.journey-card h2 {
  margin: 8px 0 8px;
  font-size: 19px;
  line-height: 1.2;
}

.journey-card p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 13.5px;
}

.bridge-note {
  max-width: 820px;
  margin: -20px auto 0;
  border: 1px dashed var(--border-hi);
  border-radius: var(--r);
  background: var(--bg);
  padding: 16px 18px;
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

.bridge-note b {
  color: var(--fg);
}

.bridge-note a {
  color: var(--brand);
  font-weight: 600;
}

/* === Video demo band (Index hero follow-up) === */

.band-video {
  padding: 56px 0;
}

.video-band-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 36px;
  align-items: center;
}

.video-band-copy h2 {
  margin: 6px 0 14px;
}

.video-band-copy p {
  margin: 0 0 12px;
}

.video-frame {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: #0a0e14;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}

.video-frame-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(63, 176, 122, 0.08), transparent 60%),
    repeating-linear-gradient(
      45deg,
      transparent 0 14px,
      rgba(255, 255, 255, 0.015) 14px 28px
    ),
    #0a0e14;
}

.video-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--fg-faint);
}

.video-placeholder-inner svg {
  opacity: 0.55;
}

.video-placeholder-inner span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 880px) {
  .video-band-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* === Already-supported callout (sits between hero and "Why this exists") === */

.band-callout {
  padding: 22px 0;
}

.callout-already-supported {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px dashed var(--border-hi);
  border-radius: var(--r);
  background: var(--card);
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.55;
}

.callout-already-supported a {
  font-weight: 600;
}

/* === Aside paragraph inside a band ("Some sticks have been quiet for years") === */

.band-aside {
  margin: 28px auto 0;
  max-width: 760px;
  padding: 18px 22px;
  border-left: 2px solid var(--border-hi);
  color: var(--fg-mute);
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.6;
}

/* === Privacy TL;DR card (top of /privacy) === */

.privacy-tldr {
  margin: 0 0 36px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent, #3fb07a);
  border-radius: var(--r);
  background: var(--card);
  padding: 22px 26px;
}

.privacy-tldr h2 {
  margin: 4px 0 12px;
}

.privacy-tldr p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
}

/* === Download "Now what" 3-step list === */

.next-steps {
  margin: 32px 0;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--card);
  padding: 28px 32px;
}

.next-steps h2 {
  margin: 6px 0 18px;
}

.next-steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}

.next-steps-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.step-num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--card-hi);
  color: var(--accent, #3fb07a);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
}

.next-steps-list h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.next-steps-list p {
  margin: 0;
  color: var(--fg-mute);
  line-height: 1.55;
}

/* === Rich empty-state for /db when no approved submissions === */

.db-empty-rich {
  display: grid;
  gap: 12px;
  text-align: left;
  padding: 32px 28px;
  color: var(--fg);
}

.db-empty-rich h3 {
  margin: 0;
  font-size: 22px;
}

.db-empty-rich p {
  margin: 0;
  color: var(--fg-mute);
  line-height: 1.55;
  max-width: 660px;
}

.db-empty-rich .btn {
  justify-self: start;
  margin-top: 6px;
}

.db-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

/* === /db public hardware database (Phase C) === */

.db-search-form {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  max-width: 560px;
}

.db-search-form input[type="search"] {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--fg);
  padding: 11px 14px;
  font: inherit;
}

.db-main {
  display: grid;
  gap: 28px;
  padding: 32px 0 80px;
}

.db-section-head {
  margin-bottom: 18px;
}

/* Tighter hero — the /db page is a database, not a marketing
   landing. The default .page-hero pads heavily; this variant
   trims top/bottom so the stats strip + table land closer. */
.page-hero-tight {
  padding-top: 36px;
  padding-bottom: 24px;
}

/* ===== Database stats strip =====
   Four cells: device count, total reports, last submission, link
   to the privacy schema. Mono numbers, dim labels — reads as a
   row of metric tiles, not a marketing band. */
.db-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.db-stat {
  background: var(--card);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.db-stat-label {
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.db-stat-value {
  color: var(--fg);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
}
.db-stat-value a {
  font-size: 14px;
  color: var(--brand);
}
@media (max-width: 720px) {
  .db-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== Sort/toolbar row above the table =====
   Tabs on the left, "Showing N of M" meta on the right. Tabs are
   anchors so server re-renders on click; .is-active gets the
   filled style. */
.db-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.db-tabs {
  display: inline-flex;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.db-tab {
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--fg-dim);
  border-right: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.db-tab:last-child { border-right: 0; }
.db-tab:hover { color: var(--fg); background: var(--card-hi); }
.db-tab.is-active {
  color: var(--fg);
  background: rgba(63, 184, 122, 0.12);
}
.db-toolbar-meta {
  color: var(--fg-mute);
  font-size: 12px;
}

/* ===== The table itself =====
   Database conventions: striped rows, mono IDs, right-aligned
   numerics, a hairline grid, and a hover state that signals the
   whole row clicks through. */
.db-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow-x: auto;
  background: var(--card);
}
.db-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.db-table thead th {
  position: sticky;
  top: 0;
  background: var(--card-hi);
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: 500;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.db-table .sort-marker {
  margin-left: 4px;
  color: var(--brand);
  font-size: 10px;
}
.db-table tbody tr {
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.12s ease;
}
.db-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.012);
}
.db-table tbody tr:hover {
  background: rgba(63, 184, 122, 0.06);
}
.db-table tbody tr:last-child { border-bottom: 0; }
.db-table td {
  padding: 11px 14px;
  vertical-align: middle;
}
.db-table .col-name { width: 50%; }
.db-table .col-name .row-link {
  color: var(--fg);
  font-weight: 500;
  text-decoration: none;
}
.db-table .col-name .row-link:hover { color: var(--brand); }
.db-table .col-id   { color: var(--fg-dim); white-space: nowrap; }
.db-table .col-num  { text-align: right; white-space: nowrap; }
.db-table .col-date { text-align: right; white-space: nowrap; color: var(--fg-dim); }
.db-table .col-action {
  width: 40px;
  text-align: right;
  color: var(--fg-mute);
}
.db-table .col-action a {
  color: var(--fg-mute);
  text-decoration: none;
  font-family: var(--font-mono);
}
.db-table tbody tr:hover .col-action a {
  color: var(--brand);
}
.db-table-foot {
  margin-top: 10px;
  color: var(--fg-mute);
  font-size: 12px;
  text-align: right;
}

/* ===== Per-device public-DB sections =====
   Chip labels per effect, error logs, etc. Same visual language as
   the rest of the db-panel suite — hairline borders, subtle ink. */
.db-responses {
  display: grid;
  gap: 10px;
}
.db-response-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.db-response-row:last-child { border-bottom: 0; }
.db-response-effect {
  color: var(--fg);
  font-size: 13.5px;
}
.db-response-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.db-chip {
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card-hi);
  font-size: 11.5px;
  color: var(--fg-dim);
}

.db-errors {
  margin: 0;
  padding-left: 18px;
  color: var(--fg-dim);
  font-size: 12.5px;
  line-height: 1.6;
}
.db-errors li {
  margin: 2px 0;
}

.db-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.db-grid-tight {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.db-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--card);
  padding: 16px 18px;
  color: inherit;
  text-decoration: none;
  transition: border-color 120ms ease, transform 120ms ease;
}

.db-card:hover,
.db-card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-1px);
  text-decoration: none;
}

.db-card-tight {
  padding: 12px 14px;
}

.db-card-name {
  font-size: 15px;
  line-height: 1.3;
}

.db-card-meta {
  color: var(--fg-faint);
  font-size: 12px;
}

.db-card-stats {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
}

.db-card-stats .muted {
  color: var(--fg-mute);
}

.db-empty {
  border: 1px dashed var(--border);
  border-radius: var(--r);
  background: var(--card);
  padding: 28px 24px;
  color: var(--fg-mute);
  text-align: center;
}

.db-detail {
  display: grid;
  gap: 22px;
  padding: 36px 0 80px;
}

.db-panel {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--card);
  padding: 24px 26px;
}

.db-panel h2 {
  margin: 6px 0 16px;
}

.db-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.db-fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 2px solid var(--border);
  padding-left: 10px;
}

.db-fact .k {
  color: var(--fg-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.db-fact .v {
  font-size: 18px;
  font-weight: 600;
}

.db-flags {
  margin-top: 18px;
  font-size: 12px;
  word-break: break-word;
  color: var(--fg-mute);
}

.db-effects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.db-effect {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}

.db-effect-name {
  font-size: 14px;
}

.db-effect-flags {
  font-size: 11px;
  margin-top: 2px;
}

.db-os {
  display: grid;
  gap: 6px;
}

.db-os-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed var(--border);
  padding: 6px 0;
}

.db-os-row:last-child {
  border-bottom: none;
}

.db-privacy {
  border-style: dashed;
}

.db-cta {
  text-align: center;
}

.db-cta h2 {
  margin-bottom: 12px;
}

/* === end /db === */

.docs-grid {
  width: min(var(--container-w), calc(100% - 64px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
}

.docs-side {
  position: sticky;
  top: 88px;
  align-self: start;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  padding: 14px;
}

.docs-side h2 {
  margin: 6px 0 12px;
  color: var(--fg-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.docs-side a {
  display: block;
  border-radius: var(--r-sm);
  color: var(--fg-mute);
  font-size: 13px;
  padding: 7px 9px;
}

.docs-side a:hover,
.docs-side a.active {
  color: var(--fg);
  background: rgba(63, 184, 122, 0.07);
}

.docs-content {
  max-width: 980px;
}

.docs-content section {
  scroll-margin-top: 92px;
  border-top: 1px solid var(--border);
  padding-top: 34px;
  margin-top: 42px;
}

.docs-content section:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.docs-content h1 {
  margin: 0 0 12px;
  font-size: 44px;
  line-height: 1.1;
}

.doc-hero-shot {
  margin: 24px 0;
}

.interface-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.interface-notes article,
.walk-card,
.shot-tile {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
}

.interface-notes article {
  padding: 18px;
}

.interface-notes h3,
.walk-card h3,
.shot-group h3 {
  margin: 0 0 8px;
}

.interface-notes p {
  margin: 0;
  font-size: 13.5px;
}

.walkthrough {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.walk-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.walk-card .meta {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.effect-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.shot-group {
  margin-top: 28px;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.shot-tile {
  margin: 0;
  overflow: hidden;
}

.shot-tile img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1080 / 740;
  object-fit: contain;
  object-position: center center;
  background: #090b0e;
}

.shot-tile figcaption {
  display: grid;
  gap: 3px;
  border-top: 1px solid var(--hairline);
  padding: 12px;
}

.shot-tile b {
  color: var(--fg);
  font-size: 13.5px;
}

.shot-tile span {
  color: var(--fg-mute);
  font-size: 12.5px;
}

.effects-list,
.trouble-list,
.flag-list,
.file-list {
  display: grid;
  gap: 12px;
}

.doc-card {
  display: grid;
  gap: 8px;
}

.doc-card .meta {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.flag-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flag-group {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  padding: 18px;
}

.flag-group h3 {
  margin: 0 0 14px;
}

.flag-item {
  border-top: 1px solid var(--hairline);
  padding: 12px 0;
}

.flag-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.flag-item code {
  display: inline-block;
  margin-bottom: 6px;
}

.file-list .output-file {
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: var(--card);
}

.privacy-body {
  max-width: 860px;
}

@media (max-width: 980px) {
  .topbar {
    padding: 0 20px;
  }

  .topbar-inner {
    grid-template-columns: auto 1fr auto;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .topnav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    flex-wrap: wrap;
    border-top: 1px solid var(--hairline);
    padding-top: 12px;
    padding-bottom: 14px;
  }

  .topnav.open {
    display: flex;
  }

  .top-cta {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .hero-grid,
  .split,
  .download-split,
  .cta-grid,
  .docs-grid,
  .report-hero-grid,
  .report-layout,
  .tour-card,
  .walk-card {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .tour-card:nth-child(even) .app-shot {
    order: 0;
  }

  .hero-grid,
  .container,
  .page-hero-inner,
  .docs-grid,
  .download-main.container,
  .report-main.container,
  .privacy-body.container {
    width: min(var(--container-w), calc(100% - 40px));
  }

  .hero h1,
  .page-hero h1,
  .docs-content h1 {
    font-size: 40px;
  }

  .why-grid,
  .compat-stats,
  .report-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .alt-downloads,
  .flag-list,
  .interface-notes,
  .effect-shots,
  .feel-row,
  .shot-grid,
  .journey-grid {
    grid-template-columns: 1fr;
  }

  .docs-side {
    position: static;
  }

  .report-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 0 20px;
  }

  .top-cta {
    display: none;
  }

  .topbar-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 65px;
  }

  .nav-toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .topnav {
    grid-column: 1 / -1;
  }

  .hero,
  .band,
  .cta-band,
  .page-hero,
  .report-main,
  .download-main,
  .compat-main,
  .docs-grid {
    padding: 56px 0;
  }

  .hero h1,
  .page-hero h1,
  .docs-content h1 {
    font-size: 30px;
    line-height: 1.12;
  }

  .hero-meta,
  .compat-toolbar,
  .download-card-top,
  .foot-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .download-card-top {
    display: flex;
    flex-wrap: wrap;
  }

  .why-grid,
  .compat-stats,
  .report-metrics,
  .privacy-columns,
  .foot-grid {
    grid-template-columns: 1fr;
  }

  .foot-grid {
    gap: 28px;
  }

  .readout-foot {
    flex-wrap: wrap;
  }

  .readout-foot .right {
    margin-left: 0;
  }

  .hero-shot img {
    min-height: 0;
  }

  .tour-card,
  .walk-card {
    padding: 12px;
  }

  .report-panel,
  .report-token-card {
    padding: 18px;
  }

  .report-section-head,
  .report-actions,
  .token-actions,
  .page-actions,
  .cta-actions,
  .hero-actions,
  .db-search-form,
  .db-card-stats,
  .db-empty-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-actions .btn,
  .cta-actions .btn,
  .report-actions .btn,
  .page-actions .btn,
  .db-search-form .btn,
  .download-card-top .btn,
  .db-empty-actions .btn {
    width: 100%;
  }

  .db-search-form,
  .db-search-form input[type="search"] {
    max-width: 100%;
    width: 100%;
  }

  .report-fact {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
