:root {
  color-scheme: light;
  --ink: #1b1d2d;
  --muted: #535970;
  --edge: #dde1ee;
  --paper: #fff;
  --background: #f5f5f9;
  --accent: #344fae;
  --wash: #eef1ff;
  --shadow: 0 20px 62px -36px #34488c59, 0 3px 14px -8px #24274833;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--ink); }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
:where(button, a, input, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
#top, .method, .session { scroll-margin-top: 82px; }
.site-bar { position: sticky; top: 0; z-index: 2; background: var(--background); border-bottom: 1px solid #dfe2ed; }
@supports (backdrop-filter: blur(12px)) {
  .site-bar { background: #f7f8fcd9; backdrop-filter: blur(18px) saturate(150%); }
}
.masthead { min-height: 65px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand, .nav-link, .footer a { text-decoration: none; }
.brand { display: inline-flex; align-items: center; min-height: 44px; gap: 9px; font-size: 17px; font-weight: 700; letter-spacing: -.04em; }
.nav-link { display: grid; place-items: center; min-height: 44px; color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.nav-link:hover, .footer a:hover { color: var(--accent); }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(30px, 6vw, 86px); padding: clamp(48px, 7.8vw, 112px) 0; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
h1 { font-size: clamp(58px, 7.6vw, 107px); line-height: .97; letter-spacing: -.075em; font-weight: 730; margin: 14px 0 20px; }
h1 span { display: block; color: #4e5ec6; }
.intro { max-width: 32ch; color: var(--muted); font-size: clamp(17px, 1.65vw, 21px); line-height: 1.52; letter-spacing: -.013em; }
.privacy { display: flex; align-items: center; gap: 8px; margin-top: 27px; color: var(--muted); font-size: 13px; font-weight: 550; }
.privacy svg, .button svg { width: 18px; height: 18px; flex: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.privacy svg { width: 15px; height: 15px; color: var(--accent); }
.intake, .scope, .finding { min-width: 0; border: 1px solid var(--edge); background: var(--paper); border-radius: 25px; }
.intake { padding: 11px; box-shadow: var(--shadow); transition: border-color .18s ease, box-shadow .18s ease; }
.intake.dragover { border-color: var(--accent); box-shadow: 0 0 0 3px #516ed33b, var(--shadow); }
.signal-art { display: grid; align-items: center; min-height: clamp(94px, 11.6vw, 154px); overflow: hidden; border-radius: 16px; background: radial-gradient(ellipse at 73% 55%, #e6dbfa 0, transparent 62%), linear-gradient(115deg, #eff6ff, #edf0ff 56%, #f5eeff); }
.signal-art svg { width: 100%; height: auto; display: block; }
.intake-body { padding: 23px 14px 18px; text-align: center; }
.intake h2 { font-size: clamp(25px, 2.5vw, 32px); line-height: 1.13; letter-spacing: -.047em; }
.intake-body > p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.intake-body > .intake-meta { margin-top: 12px; font-size: 12px; }
.input-actions, .session-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.intake .input-actions { justify-content: center; margin-top: 18px; }
.button, .filters button, .quiet-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 650;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.button:active, .filters button:active, .quiet-button:active { transform: scale(.97); }
.primary { background: var(--accent); color: #fff; }
.primary:hover:not(:disabled) { background: #283f96; }
.secondary, .outline { background: #f2f3fa; color: #333c65; border-color: #e5e8f3; }
.secondary:hover:not(:disabled), .outline:hover { background: #e8edff; border-color: #cfd8f5; }
.quiet-button { background: transparent; color: var(--accent); padding-inline: 10px; }
.quiet-button:hover { background: var(--wash); }
.upload-status { margin-top: 12px; border-top: 1px solid var(--edge); padding-top: 4px; text-align: left; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; }
.status, .playback-status { color: var(--accent); font-size: 13px; line-height: 1.45; }
.status.error, .playback-status { color: #a32642; }
progress { display: block; width: 100%; height: 7px; accent-color: var(--accent); }
.session { padding: 36px 0 54px; border-top: 1px solid var(--edge); }
.session-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px; margin-bottom: 23px; }
.session-name { min-width: 0; }
.completion-dot { width: 7px; height: 7px; border-radius: 50%; background: #367f60; }
.session h2, .method h2 { font-size: clamp(31px, 4.3vw, 52px); letter-spacing: -.065em; line-height: 1.04; overflow-wrap: anywhere; }
.session h2 { margin-top: 8px; }
.track-meta { margin-top: 8px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.review-layout { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); align-items: start; gap: 26px; }
.scope { position: sticky; top: 83px; padding: 21px; box-shadow: var(--shadow); }
.scope-heading { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 13px; }
.scope h3, .review-notes h3 { font-size: 24px; letter-spacing: -.043em; }
.selection-label { color: var(--accent); font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.wavefield { padding: 11px 10px 8px; background: #f2f4fe; border: 1px solid #e4e9fa; border-radius: 15px; }
.scope canvas { display: block; width: 100%; height: 148px; cursor: grab; touch-action: pan-y; }
.scope canvas:active { cursor: grabbing; }
.scope-axis { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); }
.scope-axis, .transport output { font-size: 12px; font-variant-numeric: tabular-nums; }
.transport { display: flex; align-items: center; gap: 10px; padding-top: 12px; }
.play-button { min-width: 105px; }
.transport input { min-width: 24px; min-height: 44px; flex: 1; margin: 0; accent-color: var(--accent); }
.transport output { min-width: 4ch; text-align: right; }
.scope-tip, .playback-status { margin-top: 10px; }
.scope-tip { font-size: 12px; color: var(--muted); }
.findings-heading { display: grid; gap: 9px; margin-bottom: 9px; }
.findings-heading p { margin-top: 3px; color: var(--muted); font-size: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 4px; }
.filters button { padding-inline: 11px; color: var(--muted); background: transparent; }
.filters button:hover { background: #e9ecf8; }
.filters button[aria-pressed="true"] { background: #e2e7fc; border-color: #d7dff7; color: #304898; }
.findings { display: grid; gap: 10px; }
.finding { display: grid; gap: 7px; padding: 17px 19px; border-radius: 19px; }
.finding h4 { font-size: 19px; letter-spacing: -.035em; }
.finding .tag { color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.finding p, .empty { font-size: 14px; line-height: 1.5; }
.finding p + p, .empty { color: var(--muted); }
.finding .input-actions { margin-top: 3px; }
.finding button[data-side="after"] { background: var(--wash); color: var(--accent); }
.finding button.is-playing { background: var(--accent); color: #fff; }
.empty { padding: 17px; border: 1px solid var(--edge); border-radius: 17px; }
.method { border-top: 1px solid var(--edge); padding: 36px 0 42px; }
.method h2 { font-size: clamp(25px, 2.8vw, 33px); letter-spacing: -.05em; }
.method p { max-width: 64ch; color: var(--muted); margin-top: 10px; font-size: 15px; line-height: 1.55; }
.method details { margin-top: 9px; }
.method summary { padding-block: 12px; min-height: 44px; cursor: pointer; width: fit-content; color: var(--accent); font-size: 14px; font-weight: 650; }
.method details p { margin-top: 0; }
.footer { border-top: 1px solid var(--edge); display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--muted); min-height: 64px; font-size: 12px; }
.footer a { display: flex; gap: 5px; align-items: center; min-height: 44px; font-weight: 650; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 760px) {
  .wrap { width: min(540px, calc(100% - 40px)); }
  .masthead { min-height: 59px; }
  .hero { grid-template-columns: 1fr; gap: 27px; padding: 38px 0 44px; }
  h1 { font-size: clamp(58px, 12.5vw, 82px); margin-bottom: 14px; }
  .privacy { margin-top: 16px; }
  .signal-art svg { max-height: 125px; }
  .review-layout { grid-template-columns: 1fr; gap: 22px; }
  .scope { position: static; }
}
@media (max-width: 370px) {
  .wrap { width: calc(100% - 30px); }
  h1 { font-size: clamp(47px, 15vw, 58px); }
  .intake-body, .scope { padding-inline: 10px; }
  .button { padding-inline: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .button:active, .filters button:active, .quiet-button:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .site-bar { background: var(--background); backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --edge: #6e748c; --muted: #34384e; }
  .button, .filters button { border-color: currentColor; }
}
