:root {
  color-scheme: dark;
  --jb-blue: #0070bd;
  --jb-blue-light: #6ecff5;
  --jb-orange: #ed7026;
  --jb-gold: #f5b821;
  --jb-dark: #222831;
  --jb-darker: #181c22;
  --jb-darkest: #0a0b0c;
  --jb-grey: #6a6a6a;
  --jb-grey-light: #cccccc;
  --jb-green: #00d900;
  --jb-red: #ff6b72;
  --text: #f8f9fb;
  --muted: #aeb6c2;
  --line: #363c47;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--jb-dark); color: var(--text); }
a { color: var(--jb-blue-light); }
button, input, textarea { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, audio:focus-visible, [tabindex="-1"]:focus-visible {
  outline: 3px solid var(--jb-gold); outline-offset: 3px;
}
[hidden] { display: none !important; }

.site-header { height: 76px; padding: 0 clamp(20px, 6vw, 84px); display: flex; align-items: center; justify-content: space-between; background: var(--jb-darkest); border-bottom: 1px solid #20242a; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--text); text-decoration: none; font-size: .78rem; font-weight: 800; letter-spacing: .16em; }
.brand img { width: 134px; height: 34px; object-fit: contain; object-position: left center; }
.brand span { color: var(--jb-blue-light); border-left: 1px solid #48505b; padding-left: 13px; }
.header-link { color: var(--muted); text-decoration: none; font-size: .82rem; }
.header-link:hover { color: var(--jb-blue-light); }

main { width: min(100% - 40px, 720px); margin: 0 auto; padding: 70px 0 56px; }
.intro { margin-bottom: 36px; }
.eyebrow { margin: 0 0 14px; color: var(--jb-blue-light); font-size: .72rem; font-weight: 800; letter-spacing: .15em; }
.signal-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--jb-orange); box-shadow: 0 0 12px #ed702680; }
h1 { margin: 0; font-size: clamp(2.6rem, 9vw, 4.5rem); line-height: 1.02; letter-spacing: -.055em; }
h1 span { color: var(--jb-blue-light); }
.lede { max-width: 560px; margin: 20px 0 0; color: var(--muted); font-size: 1.06rem; line-height: 1.65; }

.recorder-card { padding: clamp(22px, 5vw, 38px); border: 1px solid #323945; border-radius: 12px; background: var(--jb-darker); box-shadow: 0 20px 70px #0003; }
.card-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.card-heading .eyebrow { margin-bottom: 8px; font-size: .66rem; }
h2 { margin: 0; font-size: clamp(1.35rem, 4vw, 1.8rem); line-height: 1.2; letter-spacing: -.03em; }
.time-limit { flex: none; margin-top: 10px; padding: 7px 9px; color: var(--jb-gold); border: 1px solid #f5b82155; border-radius: 4px; font-size: .64rem; font-weight: 800; letter-spacing: .1em; }
.guidance { max-width: 570px; margin: 17px 0 22px; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.record-panel { min-height: 220px; padding: 22px; border: 1px solid #323945; border-radius: 8px; background: radial-gradient(ellipse at 50% 16%, #0070bd24, transparent 60%), #13171d; text-align: center; }
.recorder-visual { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 12px; border: 1px solid #6ecff555; border-radius: 50%; color: var(--jb-blue-light); }
.mic-glyph { position: relative; width: 9px; height: 15px; border: 2px solid currentColor; border-radius: 7px; font-size: 0; }
.mic-glyph::after { position: absolute; content: ""; width: 15px; height: 10px; left: -5px; top: 5px; border: 1.5px solid currentColor; border-top: 0; border-radius: 0 0 10px 10px; }
.record-panel.is-recording .recorder-visual { color: var(--jb-orange); border-color: var(--jb-orange); animation: pulse 1.4s ease-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px #ed70261a; } }
.timer { margin: 0; font-variant-numeric: tabular-nums; font-size: 2.1rem; font-weight: 700; letter-spacing: .04em; }
.timer-caption { margin: 1px 0 17px; color: var(--muted); font-size: .76rem; }
.record-actions { display: flex; justify-content: center; gap: 10px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 18px; border: 1px solid transparent; border-radius: 5px; cursor: pointer; font-weight: 750; transition: background-color .15s ease, transform .15s ease, border-color .15s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .5; }
.button-record, .button-submit { color: #fff; background: var(--jb-blue); }
.button-record:hover:not(:disabled), .button-submit:hover:not(:disabled) { background: #0085d8; }
.record-icon { width: 11px; height: 11px; border-radius: 50%; background: var(--jb-orange); box-shadow: 0 0 10px #ed702688; }
.button-stop { color: var(--text); background: #2b3039; border-color: #525b69; }
.button-stop:hover { background: #3b424d; }
.recording-error, .submit-error { margin-top: 14px; padding: 12px 14px; color: #ffdadd; border: 1px solid #d9001a77; border-radius: 5px; background: #d9001a18; line-height: 1.5; }
.playback { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.playback-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
h3 { margin: 0; font-size: 1rem; }
.text-button { padding: 6px 0; color: var(--jb-blue-light); border: 0; background: none; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: .82rem; }
audio { width: 100%; height: 42px; }
.audio-meta { margin: 5px 0 0; color: var(--muted); font-size: .75rem; }
.submission-form { margin-top: 24px; padding-top: 23px; border-top: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 14px; }
.field { min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; color: #e8ebef; font-size: .82rem; font-weight: 680; }
.optional { color: var(--muted); font-size: .75rem; font-weight: 450; }
.field input, .field textarea { display: block; width: 100%; min-height: 46px; padding: 11px 12px; color: var(--text); border: 1px solid #49515d; border-radius: 5px; background: #11151a; }
.field textarea { min-height: 90px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #89919c; }
.consent { display: flex; align-items: flex-start; gap: 11px; margin: 19px 0; color: #c3cad3; font-size: .79rem; line-height: 1.55; cursor: pointer; }
.consent input { width: 18px; height: 18px; flex: none; margin: 1px 0 0; accent-color: var(--jb-blue); }
.turnstile-wrap { margin: 16px 0; }
.field-help, .form-help { color: var(--muted); font-size: .75rem; line-height: 1.5; }
.button-submit { width: 100%; min-height: 50px; justify-content: space-between; padding: 0 16px 0 19px; }
.form-help { margin: 11px 0 0; text-align: center; }
.success-panel { display: flex; gap: 15px; align-items: flex-start; margin-top: 23px; padding: 20px; border: 1px solid #00d90055; border-radius: 7px; background: #00d9000d; }
.success-check { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; color: var(--jb-darkest); background: var(--jb-green); font-weight: 900; }
.success-panel h3 { margin: 2px 0 6px; font-size: 1.08rem; }
.success-panel p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.success-panel .reference { margin-top: 9px; color: var(--jb-blue-light); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .76rem; }
.live-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.privacy-note { margin: 22px 8px 0; color: #a1a9b4; font-size: .76rem; line-height: 1.6; text-align: center; }
.site-footer { min-height: 76px; padding: 20px clamp(20px, 6vw, 84px); display: flex; justify-content: space-between; align-items: center; gap: 18px; color: #939ba6; background: var(--jb-darkest); font-size: .69rem; letter-spacing: .04em; }
.site-footer span:first-child { color: #b9c0c9; font-weight: 800; letter-spacing: .13em; }

@media (max-width: 560px) {
  .site-header { height: 64px; padding-inline: 18px; }
  .brand img { width: 105px; }
  .brand { gap: 9px; font-size: .7rem; }
  .brand span { padding-left: 9px; }
  .header-link { font-size: .71rem; }
  main { width: min(100% - 28px, 720px); padding-top: 48px; }
  .intro { margin-bottom: 28px; }
  .lede { font-size: .96rem; }
  .recorder-card { padding: 21px 17px; }
  .record-panel { padding: 19px 12px; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .field-wide { grid-column: auto; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
