/* ==========================================================================
   audio cut — Design Source v1
   Tokens, type scale and layout come from 06-design/DESIGN-SOURCE-v1.md.
   Palette: ground #073f32 / ink #f3f5e9 / accent #c3e68a.
   No gradients, no shadows, no rounded corners, no hairline rules.
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

:root {
  --ground: #073f32;
  --ink: #f3f5e9;
  --accent: #c3e68a;
  --surface: #f3f5e9;
  --ground-soft: #33574a;
  --ink-soft: rgba(243, 245, 233, 0.74);
  --ink-wash: rgba(243, 245, 233, 0.14);
  --surface-hover: #e9e5d9;
  --shell: none;
  --pad: clamp(24px, 3.4vw, 64px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0; max-width: 58ch; }
h1, h2, h3 { margin: 0; font-weight: 600; }
ul, ol { margin: 0; }
figure { margin: 0; }

button {
  font: inherit;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  background: none;
  color: inherit;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
select:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

.shell,
.wrap {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ------------------------------------------------------------------ type */

h1 {
  font-size: clamp(56px, 7.6vw, 148px);
  line-height: 0.93;
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lede,
.subtitle {
  font-size: 17px;
  line-height: 1.55;
  max-width: 38ch;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ----------------------------------------------------------------- header */

.site-header { padding: 26px 0; }

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-transform: lowercase;
}

.brand svg { width: 27px; height: 27px; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  font-size: 14px;
}

.site-nav a { padding: 6px 0; }
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

main { padding-top: 60px; }

/* ------------------------------------------------------------------ intro */

.intro {
  display: grid;
  grid-template-columns: 1fr clamp(260px, 21vw, 340px);
  gap: clamp(40px, 5vw, 96px);
  align-items: end;
  padding-bottom: 20px;
}

.intro h1 { max-width: none; }
.intro .subtitle { padding-bottom: 8px; }

/* ------------------------------------------------------------------ motif */

.motif {
  position: relative;
  height: 280px;
  width: 100%;
  overflow-x: clip;      /* the wave may spill vertically, never sideways */
  overflow-y: visible;
  background: transparent;
}

.motif--short { height: 180px; }

.motif .wave-svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: var(--accent);
  overflow: visible;
  touch-action: none;
  cursor: grab;
  transition: opacity 0.3s ease;
}

.motif .wave-svg:active { cursor: grabbing; }
.motif .wave-fill { fill: var(--accent); }
.motif .wave-line,
.motif .wave-line-b { display: none; }

/* the real waveform the trimmer draws, in the same box as the motif */
.realtrack {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  touch-action: none;
}

.motif.is-loaded .wave-svg { opacity: 0; pointer-events: none; }
.motif.is-loaded .realtrack { opacity: 1; pointer-events: auto; }

#waveCanvas { display: block; width: 100%; height: 100%; }

.sel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  background: var(--ink-wash);
  pointer-events: none;
}

.handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44px;
  margin-left: -22px;
  background: none;
  touch-action: none;
  cursor: ew-resize;
  display: flex;
  justify-content: center;
}

.handle .grip {
  display: block;
  width: 3px;
  height: 100%;
  background: var(--ink);
}

.handle:focus-visible { outline-offset: -3px; }

.motion-toggle {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 3;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 0.2s ease, opacity 0.3s ease;
}

.motion-toggle:hover { color: var(--ink); }
.motif.is-loaded .motion-toggle { opacity: 0; pointer-events: none; }

/* --------------------------------------------------------------- uploader */

.upload-wrap {
  max-width: var(--shell);
  margin: -56px auto 0;
  padding: 0 var(--pad);
  position: relative;
  z-index: 2;
}

.page-tool.is-loaded .upload-wrap { margin-top: 0; }

.dropzone {
  background: var(--surface);
  color: var(--ground);
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 32px;
  align-items: center;
  transition: background-color 0.2s ease, transform 0.14s ease;
}

.dropzone:hover { background: var(--surface-hover); }
.dropzone:active { transform: scale(0.997); }

.dropzone[data-drag="true"] {
  outline: 3px dashed var(--ground);
  outline-offset: -8px;
}

.drop-copy { display: grid; gap: 8px; }

.drop-title {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.03em;
  max-width: none;
}

.formats,
.dz-sub { font-size: 14px; color: var(--ground-soft); max-width: 46ch; }

.choose,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 26px;
  background: var(--ground);
  color: var(--ink);
  font-weight: 600;
  transition: transform 0.14s ease, background-color 0.2s ease;
}

.choose:hover,
.btn:hover { transform: translateY(-1px); background: #0a5241; }
.choose:active,
.btn:active { transform: translateY(1px); }

.choose { grid-column: 2; grid-row: 1; white-space: nowrap; }

.btn-lg { min-height: 60px; padding: 16px 30px; font-size: 17px; }

.btn-plain {
  min-height: 44px;
  padding: 4px;
  color: var(--ground);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ----------------------------------------------------------------- editor */

.editor {
  background: var(--surface);
  color: var(--ground);
  padding: 24px 32px 28px;
  display: grid;
  gap: 18px;
}

.filebar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.filemeta { font-size: 14px; }
.filemeta strong { font-weight: 600; }

.times {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  font-size: 14px;
}

.times label { display: inline-flex; align-items: center; gap: 8px; }

.times input {
  width: 86px;
  min-height: 42px;
  padding: 6px 10px;
  background: #fff;
  border: 0;
  color: var(--ground);
  font: inherit;
  font-size: 16px;
}

.times .len strong { font-weight: 600; }
.times .total { color: var(--ground-soft); }

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }

.seg-btn {
  min-height: 48px;
  padding: 12px 18px;
  background: none;
  color: var(--ground);
  font-size: 16px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.seg-btn:hover { background: var(--surface-hover); }
.seg-btn.is-active { background: var(--ground); color: var(--ink); }

.switches { display: inline-flex; flex-wrap: wrap; gap: 18px; }

.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 16px;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.switch .box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #fff;
}

.switch .box svg { width: 14px; height: 12px; opacity: 0; }
.switch input:checked + .box { background: var(--ground); }
.switch input:checked + .box svg { opacity: 1; }
.switch input:focus-visible + .box { outline: 3px solid var(--ground); outline-offset: 3px; }

.exports {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.mp3group { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }

select {
  min-height: 52px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ground);
  font: inherit;
  font-size: 16px;
}

.export-note { font-size: 14px; color: var(--ground-soft); }

.status { font-size: 14px; min-height: 1.5em; max-width: 70ch; }
.status.is-busy { color: var(--ground-soft); }
.status.is-done { font-weight: 500; }
.status.is-note { color: var(--ground-soft); font-size: 13px; max-width: 70ch; }

.warn {
  background: var(--accent);
  color: var(--ground);
  padding: 12px 16px;
  font-size: 14px;
  max-width: 72ch;
}

.error {
  background: var(--ground);
  color: var(--ink);
  padding: 16px 18px;
  font-size: 14px;
  max-width: 78ch;
}

.error strong { font-weight: 600; }
.err-detail { color: var(--accent); }

/* ------------------------------------------------------------------ trust */

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  list-style: none;
  margin: 0 auto;
  padding: 24px var(--pad) 4px;
  max-width: var(--shell);
  font-size: 14px;
}

.trust li { display: inline-flex; align-items: center; gap: 9px; }
.trust svg { width: 15px; height: 15px; flex: none; }

/* ------------------------------------------------------------------ bands */

.band { padding: 76px 0; }
.band-tight { padding: 56px 0 40px; }
.band-surface { background: var(--surface); color: var(--ground); }

.prose { max-width: 720px; }
.stack > * + * { margin-top: 18px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.split--flip .prose { order: 2; }
.split--flip figure { order: 1; }

.steps {
  list-style: none;
  padding: 0;
  margin-top: 32px;
  display: grid;
  gap: 24px;
  max-width: 760px;
}

.steps strong { display: block; font-size: 20px; font-weight: 600; }
.steps span { font-size: 16px; color: var(--ink-soft); }

.after-steps { margin-top: 26px; color: var(--ink-soft); font-size: 16px; }

.formats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
}

.formats li {
  background: var(--accent);
  color: var(--ground);
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
}

.faq { max-width: 820px; margin-top: 24px; }

.faq details { padding: 20px 0; }

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }

.faq p { margin-top: 12px; font-size: 16px; color: var(--ink-soft); }

.fig img,
.wide-figure img { width: 100%; }

.wide-figure { margin-top: 44px; }
.wide-figure img { max-height: 520px; object-fit: cover; }

figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 58ch;
}

.band-surface figcaption,
.band-surface .after-steps,
.band-surface .steps span,
.band-surface .faq p { color: var(--ground-soft); }

.wave-strip { height: 56px; margin: 0; }
.wave-strip svg { display: block; width: 100%; height: 56px; fill: var(--accent); }

.flow-wave { display: block; width: 100%; height: 72px; fill: var(--accent); opacity: 0.92; }

.next-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.next-links a { text-decoration: underline; text-underline-offset: 4px; }

.why-copy { font-size: 20px; line-height: 1.55; max-width: 62ch; }

/* ----------------------------------------------------------------- footer */

.site-footer { padding: 64px 0 32px; color: var(--ink); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 44px;
}

.footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 600;
}

.footer-mark svg { width: 24px; height: 24px; }
.footer-grid p { font-size: 14px; color: var(--ink-soft); margin-top: 12px; }
.footer-h { font-size: 14px; color: var(--ink); }

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

.site-footer a:hover { color: var(--accent); }

.footer-note {
  margin-top: 44px;
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 70ch;
}

.credits {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 80ch;
}

.credits a { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------- entrance motion */

@media (prefers-reduced-motion: no-preference) {
  .js .motif .wave-svg {
    clip-path: inset(0 100% 0 0);
    animation: wave-grow 1.15s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
  }

  @keyframes wave-grow { to { clip-path: inset(0 0 0 0); } }

  .js h1 .line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.06em;
    margin-bottom: -0.06em;
  }

  .js h1 .line > span {
    display: block;
    transform: translateY(115%);
    animation: line-rise 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .js h1 .line:nth-child(1) > span { animation-delay: 0.28s; }
  .js h1 .line:nth-child(2) > span { animation-delay: 0.4s; }
  .js h1 .line:nth-child(3) > span { animation-delay: 0.52s; }

  @keyframes line-rise { to { transform: translateY(0); } }

  .js .intro .subtitle {
    opacity: 0;
    transform: translateY(14px);
    animation: fade-up 0.75s ease-out 0.58s forwards;
  }

  .js .upload-wrap {
    opacity: 0;
    transform: translateY(26px);
    animation: fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
  }

  .js .trust li {
    opacity: 0;
    transform: translateY(10px);
    animation: fade-up 0.55s ease-out forwards;
  }

  .js .trust li:nth-child(1) { animation-delay: 0.82s; }
  .js .trust li:nth-child(2) { animation-delay: 0.9s; }
  .js .trust li:nth-child(3) { animation-delay: 0.98s; }
  .js .trust li:nth-child(4) { animation-delay: 1.06s; }

  .js .site-header .brand,
  .js .site-nav a {
    opacity: 0;
    animation: fade-in 0.5s ease-out forwards;
  }

  .js .site-header .brand { animation-delay: 0.05s; }
  .js .site-nav a:nth-child(1) { animation-delay: 0.1s; }
  .js .site-nav a:nth-child(2) { animation-delay: 0.15s; }
  .js .site-nav a:nth-child(3) { animation-delay: 0.2s; }
  .js .site-nav a:nth-child(4) { animation-delay: 0.25s; }
  .js .site-nav a:nth-child(5) { animation-delay: 0.3s; }

  @keyframes fade-up { to { opacity: 1; transform: translateY(0); } }
  @keyframes fade-in { to { opacity: 1; } }

  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }

  .js .reveal[data-d="2"] { transition-delay: 0.09s; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .js .motif .wave-svg,
  .js h1 .line > span,
  .js .intro .subtitle,
  .js .upload-wrap,
  .js .trust li,
  .js .site-header .brand,
  .js .site-nav a {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}

/* --------------------------------------------------------------- breakpoints */

@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr 300px; gap: 32px; }
  .split { gap: 36px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
}

@media (max-width: 650px) {
  :root { --pad: 20px; }

  body { font-size: 16px; }

  .site-header { padding: 20px 0 0; }
  .site-header .shell { flex-direction: column; align-items: flex-start; gap: 16px; }
  .site-nav { width: 100%; justify-content: space-between; gap: 10px; font-size: 14px; }
  .brand { font-size: 22px; }

  main { padding-top: 32px; }

  h1 { font-size: 40px; letter-spacing: -0.03em; }
  .intro { display: block; padding-bottom: 28px; }
  .intro .subtitle { margin-top: 18px; padding: 0; font-size: 16px; max-width: 44ch; }

  .motif { height: 240px; }
  .motif--short { height: 140px; }

  .upload-wrap { margin-top: -24px; }
  .dropzone {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 22px 20px;
  }
  .choose { grid-column: auto; grid-row: auto; width: 100%; }

  .trust { padding: 20px 20px 0; gap: 10px 16px; font-size: 14px; }

  .editor { padding: 22px 20px 24px; gap: 16px; }
  .times { gap: 8px 16px; font-size: 14px; }
  .times input { width: 78px; }
  .controls { gap: 14px 18px; }
  .seg-btn { padding: 10px 14px; font-size: 14px; }
  .exports { flex-direction: column; align-items: stretch; }
  .exports .btn { width: 100%; }
  .mp3group { width: 100%; }
  .mp3group select { flex: 1; }
  .mp3group .btn { flex: 1; }

  .band { padding: 48px 0; }
  .band-tight { padding: 36px 0 28px; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split--flip .prose { order: 1; }
  .split--flip figure { order: 2; }
  .steps strong { font-size: 17px; }
  .faq summary { font-size: 17px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { padding: 44px 0 24px; }
}


/* ---- overlap tuning (Owner 2026-10-19: 波形被遮挡) ---- */
.upload-wrap { margin-top: -58px; }
@media (max-width: 820px) {
  .motif { height: 220px; }
  .upload-wrap { margin-top: -40px; }
}
@media (max-width: 520px) {
  .motif { height: 180px; }
  .upload-wrap { margin-top: 0; }
}

.prose { max-width: 720px; }


/* ================= mobile pass (Owner 2026-10-19) =================
   1. 波形放大只显示中段 —— 不要把 PC 的完整波形压进窄屏
   2. H1 缩小、垂直节奏收紧，让上传区/Choose file 落在首屏
=================================================================== */
@media (max-width: 820px) {
  .motif .wave-svg { width: 210%; margin-left: -55%; }
  .motif { overflow-x: clip; }
  .motif { height: 200px; }
  .intro { padding-bottom: 26px; }
}

@media (max-width: 520px) {
  h1 { font-size: clamp(34px, 9.2vw, 46px); }
  .intro { gap: 14px; padding-bottom: 2px; }
  .motif { height: 158px; margin-top: -4px; }
  .upload-wrap { margin-top: -30px; }
  .dropzone {
    width: 100%;
    box-sizing: border-box;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .dropzone .choose {
    align-self: flex-start;
    padding: 14px 24px;
    min-height: 48px;
  }
  .dropzone .formats { max-width: none; }
  .drop-title { font-size: 22px; }
}

/* ============ mobile nav: text button + full-screen sheet ============
   layout rule: wordmark and one action in view; links in a
   simple full-screen sheet opened by a text button. No icon, no pill,
   no blur, no bar chrome. Desktop keeps the plain one-line nav.
===================================================================== */
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .site-header { padding: 20px 0; }
  .site-header .shell { position: relative; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }

  .brand,
  .nav-toggle { position: relative; z-index: 70; }

  .nav-toggle {
    display: inline-block;
    background: none;
    border: 0;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    letter-spacing: 0.01em;
    padding: 12px 0;          /* ~44px touch target with line-height */
    cursor: pointer;
  }
  .nav-toggle:hover { color: var(--accent); }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: var(--ground);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    padding: 0 var(--pad);
    font-size: 30px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
  }
  .site-nav[data-open="true"] { opacity: 1; pointer-events: auto; }

  .site-nav a {
    padding: 16px 0;          /* >=44px touch targets */
    font-size: clamp(28px, 8.4vw, 34px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
  }
  .site-nav a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 8px;
  }
}


/* ---- layering: the wave is a transparent backdrop, never a box ----
   .intro / .trust draw above it, .upload-wrap above both, so the wave
   may run under the headline and behind the white panel without ever
   being cut flat. */
.intro, .trust { position: relative; z-index: 2; }
.upload-wrap { position: relative; z-index: 3; }
.motif { z-index: 1; }


/* ---- plan B: the headline band is opaque ----
   The wave may be dragged anywhere, but it never sits behind text:
   header + intro carry the page ground colour, so the wave is visually
   stopped at the headline band instead of tinting the type. */
.site-header { position: relative; z-index: 4; background: var(--ground); }
.intro { background: var(--ground); }


/* ============ phone nav = one row ============
   Sheet removed: with three tool links there is no need for a second
   surface. Wordmark on its own line, the links on the next, all at text
   size on the page ground. iPhone Ringtone / About / legal live in the
   footer, which already lists every page.
======================================================================= */
@media (max-width: 820px) {
  .nav-toggle { display: none !important; }

  .site-header { padding: 18px 0 0; }
  .site-header .shell {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-nav {
    position: static;
    opacity: 1;
    pointer-events: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    padding: 0;
    font-size: 14px;
    background: none;
    transition: none;
  }
  .site-nav a {
    font-size: 14px;
    padding: 8px 0;
    letter-spacing: 0.005em;
    white-space: nowrap;
  }
  /* keep every task entry reachable on a phone; only About drops to the footer */
  .site-nav a:nth-child(n + 5) { display: none; }
  .site-nav { gap: 4px; }
  .site-nav a { font-size: 14px; letter-spacing: -0.012em; }

  main { padding-top: 22px; }
}


/* ---- figure credits live with the figure, not in the footer ---- */
.fig-credit {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: rgba(7, 63, 50, 0.62);   /* figures sit on the light band */
}

/* ---- footer: even columns, description capped so the row reads as one block ---- */
.footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: clamp(24px, 3vw, 48px); }
.footer-grid > div:first-child p { max-width: 34ch; }
.site-footer { padding: 56px 0 28px; }
.footer-note { margin-top: 36px; }


/* ---- long-copy bands: heading in the left third, body in the right ----
   .wrap.prose used to inherit .prose's 720px max-width while .wrap kept
   margin:auto, so the whole block floated in the middle of the page with
   dead space on both sides. Anchor it to the margin instead. */
/* Long-copy bands: one centred 1240 measure, heading left, body right.
   The FAQ band uses the same frame so the two sections line up. */
.wrap.prose {
  max-width: 1240px;
  margin-inline: auto;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(0, 2fr);
  gap: 16px clamp(28px, 4vw, 72px);
  align-items: start;
}
.wrap.prose > h2 { grid-column: 1; }
.wrap.prose > *:not(h2) { grid-column: 2; }
.wrap.prose > p { max-width: 72ch; }

/* FAQ: heading above the list, one left edge, readable row width */
.wrap:has(> .faq) {
  max-width: 1240px;
  margin-inline: auto;
  width: 100%;
  display: block;
}
.wrap:has(> .faq) > h2 { margin-bottom: 24px; }
.wrap:has(> .faq) > .faq { max-width: 820px; }

@media (max-width: 860px) {
  .wrap.prose,
  .wrap:has(> .faq) {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: none;
  }
  .wrap.prose > h2,
  .wrap.prose > *:not(h2) { grid-column: 1; }
  .wrap.prose > p { max-width: none; }
}


/* ============ P1 fixes from the layout audit (2026-10-19) ============ */

/* 2. footer must collapse on phones — the unconditional 1fr 1fr 1fr
   further up was overriding the mobile single-column rule. */
@media (max-width: 650px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid > div:first-child p { max-width: none; }
  .footer-mark { white-space: nowrap; }
  .site-footer { padding: 40px 0 24px; }
  .footer-note { margin-top: 26px; }
}

/* 3. long tool titles stop being squeezed at tablet width:
   headline and description stack instead of fighting for one row. */
@media (max-width: 900px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
  }
  .intro h1 { font-size: clamp(38px, 6.4vw, 72px); }
  .intro .subtitle { max-width: 52ch; padding-bottom: 0; }
}


/* ---- photo blocks removed ----
   A split whose figure is gone becomes the same two-column reading block
   as .wrap.prose: heading left, copy right, one shared 1240 measure. */
.split:not(:has(figure)) {
  max-width: 1240px;
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.split:not(:has(figure)) > .prose {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(0, 2fr);
  gap: 16px clamp(28px, 4vw, 72px);
  align-items: start;
  max-width: none;
}
.split:not(:has(figure)) > .prose > h2,
.split:not(:has(figure)) > .prose > h3 { grid-column: 1; }
.split:not(:has(figure)) > .prose > *:not(h2):not(h3) { grid-column: 2; }
.split:not(:has(figure)) > .prose > p { max-width: none; }

@media (max-width: 860px) {
  .split:not(:has(figure)) > .prose {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .split:not(:has(figure)) > .prose > h2,
  .split:not(:has(figure)) > .prose > h3,
  .split:not(:has(figure)) > .prose > *:not(h2):not(h3) { grid-column: 1; }
}


/* ============ document template (Privacy / Terms) ============
   The audit's point: a legal page is for reading, not for a poster.
   Light ground, dark type, one column, no hero wave, no band switching.
============================================================== */
.page-doc { background: var(--surface); color: var(--ground); }

.page-doc .site-header { background: var(--surface); padding: 22px 0; }
.page-doc .brand,
.page-doc .site-nav a { color: var(--ground); }
.page-doc .site-nav a:hover { color: var(--ground-soft); }

.page-doc .motif { display: none; }
.page-doc .intro { background: none; }          /* plan-B ground plate is for the dark hero only */
.page-doc .site-header { background: var(--surface); }

.page-doc .intro {
  display: block;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 8px;
  border: 0;
}
.page-doc .intro h1 {
  font-size: clamp(34px, 3.4vw, 48px);
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.page-doc .intro .subtitle { margin-top: 14px; font-size: 16px; }

.page-doc .band,
.page-doc .band-surface {
  background: none;
  padding: 0;
}

.page-doc .wrap.prose {
  display: block;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.page-doc .wrap.prose > h2 {
  font-size: 22px;
  letter-spacing: -0.012em;
  margin-top: 38px;
}
.page-doc .wrap.prose > *:not(h2) { max-width: none; }
.page-doc .wrap.prose > p {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.62;
}

.page-doc main { padding-top: 34px; padding-bottom: 24px; }

.page-doc .site-footer { background: var(--ground); color: var(--ink); }
.page-doc .site-footer a { color: var(--ink); }


/* ============ tool template (MP3 / WAV / Ringtone / iPhone) ============
   The audit: these pages were built as posters. Smaller headline, shorter
   idle waveform, action closer to the fold. Home keeps the brand hero.
====================================================================== */
.page-tool-page .intro h1 {
  font-size: clamp(42px, 4.6vw, 72px);
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.page-tool-page .intro {
  padding-bottom: 10px;
  gap: clamp(28px, 3.5vw, 56px);
}
.page-tool-page .intro .subtitle { font-size: 16px; max-width: 40ch; }
.page-tool-page .motif { height: 210px; }
.page-tool-page .upload-wrap { margin-top: 16px; }
.page-tool-page main { padding-top: 40px; }

@media (max-width: 900px) {
  .page-tool-page .intro h1 { font-size: clamp(34px, 5.4vw, 56px); }
  .page-tool-page .motif { height: 170px; }
  .page-tool-page .upload-wrap { margin-top: 12px; }
}


/* ============ shared content frame (home explainer bands) ============
   Hero stays wide. From "How it works" down, both explainer bands sit in
   one 1200px frame on one 12-column grid, so the reading line never jumps
   when the background changes from green to cream.
=================================================================== */
.frame {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* How it works — heading on the frame edge, three text columns across */
.band > .frame > h2,
.band-surface > .frame h2 { margin-bottom: 0; }

.steps--row {
  max-width: none;
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.steps--row li { display: block; }
.steps--row strong { display: block; font-size: 20px; font-weight: 600; }
.steps--row span { display: block; margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }

.after-steps {
  margin-top: 36px;
  max-width: 62ch;
  font-size: 16px;
  color: var(--ink-soft);
}

/* Why browser-side — heading in columns 1-4, copy in 5-12 */
.why-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: min-content;
  gap: 24px;
  align-items: start;
}
.why-grid > h2 { grid-column: 1 / span 4; }
.why-grid > .why-copy { grid-column: 5 / -1; }

.why-copy p {
  max-width: 58ch;              /* readable measure, not the full 8 columns */
  font-size: 17px;
  line-height: 1.6;
  color: var(--ground-soft);
}
.why-copy p + p { margin-top: 28px; }
.why-copy strong { color: var(--ground); font-weight: 600; }

/* tablet: three columns get cramped before they break — go vertical as a set */
@media (max-width: 980px) {
  .steps--row { grid-template-columns: 1fr; gap: 26px; }
  .why-grid { grid-template-columns: 1fr; gap: 22px; }
  .why-grid > h2,
  .why-grid > .why-copy { grid-column: 1; }
  .why-copy p { max-width: none; }
}

/* phone: one 20px rhythm, no leftover desktop indents */
@media (max-width: 520px) {
  .frame { padding-inline: 20px; }
  .band { padding: 40px 0; }
  .steps--row { margin-top: 22px; gap: 24px; }
  .steps--row strong { font-size: 18px; }
  .after-steps { margin-top: 26px; }
  .why-grid { gap: 20px; }
  .why-copy p + p { margin-top: 22px; }
}


/* ---- phone regressions to close out the audit list ---- */

/* nav must stay on one row with four entries: 12px, not the 14px body role */
@media (max-width: 820px) {
  .site-nav a { font-size: 12px; letter-spacing: -0.015em; }
  .site-nav { gap: 2px; }
}

/* trust points as a deliberate 2x2, never a 3+1 remainder */
@media (max-width: 560px) {
  .trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    justify-content: start;
  }
  .trust li { justify-content: flex-start; }
}


/* ============ round 2: tool hero + upload density + footer groups ====== */

/* subtitle sits with the headline, not at the far edge */
.page-tool-page .intro {
  display: block;
  padding-bottom: 12px;
}
.page-tool-page .intro h1 { max-width: none; }
.page-tool-page .intro .subtitle {
  margin-top: 18px;
  max-width: 36ch;
  font-size: 17px;
  line-height: 1.55;
  padding-bottom: 0;
}

/* upload band: thicker, same width */
.page-tool-page .dropzone {
  min-height: 176px;
  padding: 36px 40px;
}
.page-tool-page .choose {
  min-width: 170px;
  min-height: 58px;
  padding: 0 28px;
}
.page-tool-page .drop-title { font-size: 22px; }
.page-tool-page .formats { margin-top: 10px; }
.page-tool-page .trust { margin-top: 22px; }

/* footer: brand + two grouped nav columns on the shared 12-column grid */
.site-footer .frame { padding-block: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 24px;
  align-items: start;
}
.footer-grid > div:nth-child(1) { grid-column: 1 / span 6; }
.footer-grid > div:nth-child(2) { grid-column: 8 / span 3; }
.footer-grid > div:nth-child(3) { grid-column: 11 / span 2; }
.footer-grid > div:first-child p { max-width: 32ch; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .footer-grid > div:nth-child(1) { grid-column: 1 / -1; }
  .footer-grid > div:nth-child(2),
  .footer-grid > div:nth-child(3) { grid-column: auto; }
}
@media (max-width: 520px) {
  .page-tool-page .dropzone { min-height: 0; padding: 26px 20px; }
  .page-tool-page .choose { width: 100%; }
  .page-tool-page .intro .subtitle { max-width: none; }
}


/* About: editorial short page — smaller headline, one reading column */
.page-about .intro h1 { font-size: clamp(38px, 4vw, 60px); }
.page-about .intro { max-width: 720px; }
.page-about .wrap.prose { max-width: 720px; }
.page-about .wrap.prose > p { margin-top: 20px; font-size: 17px; line-height: 1.62; }
.page-about .wrap.prose > h2 { margin-top: 34px; font-size: 21px; }


/* platform comparison: two paths, not a three-column template */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 72px);
  margin-top: 30px;
  max-width: 1000px;
}
.platform h3 { font-size: 20px; font-weight: 600; }
.platform p { margin-top: 10px; max-width: 46ch; font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
/* on the cream band the body copy must invert */
.band-surface .platform p,
.band-surface .platform h3 { color: var(--ground-soft); }
.band-surface .platform h3 { color: var(--ground); }

@media (max-width: 760px) {
  .platform-grid { grid-template-columns: 1fr; gap: 26px; }
  .platform p { max-width: none; }
}


/* ============ home fold composition ============
   First screen = headline + wave + upload + trust. "How it works" peeks in
   at the bottom: its heading and the step titles are visible, the step copy
   stays below the fold as a whole (never a half line). Height is content
   driven — short windows and phones just grow naturally.
================================================ */
.band:has(> .frame > .steps--row) {
  padding-top: 54px;          /* breathing room under the trust points */
}
.band:has(> .frame > .steps--row) > .frame > h2 { margin-bottom: 0; }
.band:has(> .frame > .steps--row) .steps--row { margin-top: 14px; }

/* phone nav: 320-359px, two even rows
   One row at 12px needs ~310px but the inner box is only 280px, so the last
   label was clipped by ~10px; at 11px it fit but the four labels sat 1.2px
   apart and read as one word. Two rows of two (50% basis each) keep 12px
   type and ~12px between neighbours. Nothing is hidden. */
@media (max-width: 359px) {
  /* 11px on one row leaves 1.2px between labels — they read as one word.
     Two even rows cost one line of height and restore real spacing. */
  .site-nav { flex-wrap: wrap; gap: 4px 12px; }
  .site-nav a { flex: 1 1 calc(50% - 6px); font-size: 12px; letter-spacing: -0.012em; padding: 6px 0; }
}
