/* ============================================================
   Dr. Session — website styles
   Brand: "Calm Live" (TASK-125, shipped 2026-10-07) — warm
   graphite chassis, soft pink accent, Atkinson Hyperlegible for
   everything (OFL, the same faces embedded in the app itself).
   Replaces the earlier "hardware console" orange/Archivo identity
   site-wide, 2026-10-11, to match what actually ships.
   Mobile first. No build step. Self contained. Fonts self-hosted
   (see fonts.css) - no third-party requests on load.
   ============================================================ */

:root {
  /* Surfaces — DST:: BG / LCD / SURFACE / SURFACE_2 / CHASSIS_TOP */
  --bg:          #131217;
  --bg-deep:     #0F0E12;
  --bg-panel:    #1B1A20;
  --bg-panel-2:  #232229;
  --bg-panel-3:  #27252D;

  /* Borders — DST:: LINE / LINE_SOFT */
  --line:        #2A2830;
  --line-soft:   #211F26;
  --line-soft-2: #211F26;
  --line-warm:   #2A2830;
  --line-warm-2: #211F26;

  /* Accent — DST:: ACCENT family (soft pink, TASK-125) */
  --accent:      #F4A6C8;
  --accent-hi:   #F7B9D3;
  --accent-text: #F4A6C8;
  --accent-soft: #E68FB6;

  /* Text — DST:: TEXT..TEXT_5 */
  --text:        #EDEBF0;
  --text-body:   #DAD6E1;
  --text-muted:  #9C97A8;
  --text-muted-2:#8A8594;
  --text-faint:  #77737F;
  --text-faint-2:#77737F;

  --radius-lg:   22px;
  --radius-md:   14px;
  --radius-sm:   7px;
  --maxw:        1440px;
  --maxw-hero:   1040px;

  --font:    "Atkinson Hyperlegible Next", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Atkinson Hyperlegible Next", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono:    "Atkinson Hyperlegible Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--bg); }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--accent-hi); }
h1, h2, h3 { margin: 0; }
img { max-width: 100%; display: block; }

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(244,166,200,0.05), transparent 70%),
    radial-gradient(ellipse at center, transparent 35%, var(--bg) 100%);
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 56px; position: relative; z-index: 1; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: #2A1420;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 600;
  text-decoration: none;
  transition: background .25s ease, transform .25s ease, border-color .25s ease, color .25s ease;
}
.btn-primary { background: var(--accent); color: #2A1420; }
.btn-primary:hover { background: var(--accent-hi); color: #2A1420; transform: translateY(-2px); }
.btn-light { background: var(--text); color: var(--bg); }
.btn-light:hover { background: #FFFFFF; color: var(--bg); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-warm-2); }
.btn-ghost:hover { border-color: var(--line-warm); color: var(--text); }
.btn-lg { padding: 15px 30px; font-size: 15px; }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-full { width: 100%; padding: 15px; font-size: 15px; }

.nav { border-bottom: 1px solid var(--line-soft-2); position: relative; z-index: 20; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; }
.wordmark { display: flex; align-items: center; gap: 10px; }
.wordmark-icon { width: 26px; height: 26px; border-radius: 6px; display: block; }
.wordmark-text { font-family: var(--display); font-weight: 400; font-size: 15px; letter-spacing: -0.01em; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--text-body); font-size: 13.5px; }
.nav-links a:hover { color: var(--text); }

.section-eyebrow {
  font-family: var(--mono);
  color: var(--accent-text);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.section-lead { color: var(--text-muted); font-size: 15.5px; line-height: 1.65; max-width: 620px; margin-top: 14px; }
.section-pad { padding: 90px 0; }
.section-band { background: var(--bg-deep); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

[data-reveal] { will-change: opacity, transform; }

.hero { padding: 80px 0 40px; text-align: center; position: relative; }
.hero-inner { max-width: var(--maxw-hero); margin: 0 auto; padding: 0 56px; position: relative; z-index: 1; }

.hero h1 { font-family: var(--display); font-size: clamp(38px, 6vw, 66px); line-height: 1.04; letter-spacing: -0.02em; position: relative; margin-top: 6px; }
.hero .subhead { font-size: 18.5px; line-height: 1.6; color: var(--text-body); max-width: 610px; margin: 26px auto 0; position: relative; }
.hero-cta { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 36px; flex-wrap: wrap; position: relative; }
.cta-note { font-family: var(--mono); font-size: 11.5px; color: var(--text-muted-2); letter-spacing: 0.04em; margin-top: 22px; }
.cta-fallback { margin: 12px 0 0; font-size: 13.5px; color: var(--text-faint); }
.cta-fallback a { color: var(--text-body); }
.cta-fallback a:hover { color: var(--accent-text); }
.micro-trust {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center;
  padding: 0; margin: 20px 0 0; font-size: 13px; color: var(--text-muted-2);
}
.micro-trust li { position: relative; padding-left: 14px; }
.micro-trust li::before { content: ""; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.demo { padding: 40px 0 80px; }
.before-after { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: stretch; min-width: 0; }
.before-after > * { min-width: 0; }
.ba-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; background: var(--bg-panel-2); }
.ba-after { border-color: var(--line-warm); background: #141010; position: relative; }
.ba-tag {
  display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  border: 1px solid var(--line-warm-2); border-radius: var(--radius-sm); padding: 8px 16px; margin-bottom: 26px; color: var(--text-body);
}
.ba-tag-after { color: var(--accent-soft); border-color: #3A3842; }

.finder-mock, .session-mock { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #1B1A20; position: relative; }
.finder-chrome, .sess-chrome { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #232229; border-bottom: 1px solid var(--line); }
.finder-lights { display: flex; gap: 7px; }
.finder-lights i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.light-red { background: #F0685E; } .light-amber { background: #F3BE3F; } .light-green { background: #4CC94C; }
.finder-name, .sess-title { font-size: 13.5px; color: #DAD6E1; }
.finder-tools { display: flex; gap: 6px; margin-left: auto; }
.finder-tools i { width: 11px; height: 11px; border-radius: 2px; background: #2A2830; display: block; }

.finder-body { display: grid; grid-template-columns: 132px 1fr; min-width: 0; }
.finder-body > * { min-width: 0; }
.finder-sidebar { border-right: 1px solid #201B19; padding: 14px 10px; display: flex; flex-direction: column; gap: 3px; }
.sb-head { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--text-muted-2); padding: 4px 8px 8px; }
.sb-item { font-size: 12.5px; color: var(--text-body); padding: 6px 8px; }
.sb-active { color: var(--accent-text); background: rgba(244,166,200,0.12); border-radius: 5px; }

.finder-files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.finder-files li { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid #1A1615; min-width: 0; }
.wav-ic { width: 13px; height: 15px; border-radius: 2px; flex-shrink: 0; background: repeating-linear-gradient(90deg, #3A3842 0 1.5px, transparent 1.5px 3px); }
.fn { font-family: var(--mono); font-size: 12px; color: #C5BEB9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.finder-more { font-family: var(--mono); font-size: 12px; font-style: italic; color: var(--text-muted-2); padding: 10px 14px 12px 37px; }

.ba-caption { font-size: 15.5px; line-height: 1.7; color: #C5BEB9; margin: 24px 0 0; }
.ba-caption code { font-family: var(--mono); font-size: 13.5px; color: var(--accent-soft); background: #2A1D17; border-radius: 4px; padding: 3px 7px; }

.ba-arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px 0; }
.ba-arrow-glyph { display: flex; align-items: center; animation: arrow-nudge 2.2s ease-in-out infinite; }
.ba-arrow-glyph i { display: block; width: 26px; height: 2px; background: var(--accent); }
.ba-arrow-glyph .tri { width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid var(--accent); }
@keyframes arrow-nudge { 0%, 100% { transform: translateX(-4px); opacity: 0.65; } 50% { transform: translateX(4px); opacity: 1; } }
.ba-arrow-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--accent-text); }

.session-mock { position: relative; }
.sweep {
  position: absolute; top: 0; bottom: 0; width: 38%; z-index: 2; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(244,166,200,0.07), transparent);
  animation: sweep 7s linear infinite;
}
@keyframes sweep { 0% { transform: translateX(-120%); } 100% { transform: translateX(220%); } }
.sess-dot { width: 12px; height: 12px; border-radius: 3px; background: var(--accent); }

.sess-tracklist { padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.sess-group { border-radius: 6px; overflow: hidden; border-left: 4px solid var(--tc-strong); }
.sess-grouphead { background: var(--tc-strong); padding: 8px 12px; display: flex; align-items: center; gap: 9px; }
.sess-grouphead .tri { font-size: 9px; color: #F5F3F7; }
.sess-grouphead .name { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; color: #F5F3F7; }
.sess-child { font-family: var(--mono); background: var(--tc-dim); padding: 8px 12px 8px 30px; font-size: 12px; letter-spacing: 0.06em; color: #EFE7E2; border-top: 1px solid var(--tc-line); }
.sess-solo { font-family: var(--mono); border-radius: 6px; padding: 9px 12px; font-size: 12px; letter-spacing: 0.06em; }
.sess-return { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-soft-2); border-radius: 6px; padding: 8px 12px; width: fit-content; margin-top: 6px; }
.sess-return .badge { font-family: var(--mono); font-size: 10px; background: #2A2830; color: #DAD6E1; border-radius: 3px; padding: 2px 6px; }
.sess-return .name { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: #DAD6E1; }

.illustration-note { text-align: center; margin-top: 40px; font-family: var(--mono); font-size: 12px; line-height: 1.9; color: var(--text-muted-2); letter-spacing: 0.03em; }

/* ---- Features: hero row (1-2) + mini grid (3-6) ---- */
.feature-hero-row { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 48px; }
.feature-hero-card {
  background: var(--bg-panel); border: 1px solid var(--line-warm); border-radius: var(--radius-md);
  padding: 36px; display: flex; flex-direction: column; gap: 16px;
  transition: transform .35s ease, border-color .35s ease;
}
.feature-hero-card:hover { transform: translateY(-4px); }
.feature-hero-card h3 { font-family: var(--display); font-size: 21px; letter-spacing: -0.01em; font-weight: 400; margin: 0; }
.feature-hero-card p { color: var(--text-body); font-size: 15px; line-height: 1.7; margin: 0; }
.feature-hero-card p code { font-family: var(--mono); font-size: 0.92em; color: var(--accent-soft); background: #2A1D17; border-radius: 4px; padding: 2px 6px; }

.feature-mini-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 20px; }
.feature-mini-card {
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 28px; display: flex; flex-direction: column; gap: 13px;
  transition: transform .35s ease, border-color .35s ease;
}
.feature-mini-card:hover { transform: translateY(-4px); border-color: var(--line-warm); }
.feature-mini-card h3 { font-size: 17px; font-weight: 600; font-family: var(--font); margin: 0; }
.feature-mini-card p { color: var(--text-body); font-size: 14px; line-height: 1.65; margin: 0; }

.feature-icon { width: 40px; height: 40px; }
.feature-icon-sm { width: 32px; height: 32px; }
.feature-icon svg { width: 100%; height: 100%; display: block; }

/* Icon 1: clock hand sweeping continuously */
.icon-clock-hand { transform-origin: 20px 20px; animation: clock-sweep 4s linear infinite; }
@keyframes clock-sweep { to { transform: rotate(360deg); } }

/* Icon 2: level-meter bars pulsing at different rates */
.icon-bars .bar { transform-origin: bottom center; animation: bars-pulse ease-in-out infinite; }
.icon-bars .bar:nth-child(1) { animation-duration: 1.6s; animation-delay: 0s; }
.icon-bars .bar:nth-child(2) { animation-duration: 1.9s; animation-delay: .15s; }
.icon-bars .bar:nth-child(3) { animation-duration: 1.4s; animation-delay: .3s; }
.icon-bars .bar:nth-child(4) { animation-duration: 2.1s; animation-delay: .1s; }
@keyframes bars-pulse { 0%, 100% { transform: scaleY(0.55); } 50% { transform: scaleY(1); } }

/* Icon 3: track bars growing in, like clips landing */
.icon-tracks .trk { animation: track-grow 3s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes track-grow { 0% { width: 0; } 30% { width: var(--tw); } 80% { width: var(--tw); } 100% { width: 0; } }

/* Icon 4: plug sliding into the socket */
.icon-plug { animation: plug-slide 2.6s ease-in-out infinite; }
@keyframes plug-slide { 0%, 15% { transform: translateX(6px); opacity: .4; } 45%, 80% { transform: translateX(0); opacity: 1; } 100% { transform: translateX(6px); opacity: .4; } }

/* Icon 5: gauge needle sweeping up as it "learns" */
.icon-gauge { transform-origin: 16px 22px; animation: gauge-sweep 3.2s ease-in-out infinite; }
@keyframes gauge-sweep { 0%, 10% { transform: rotate(-28deg); } 50%, 65% { transform: rotate(18deg); } 100% { transform: rotate(-28deg); } }

/* Icon 6: soft ambient pulse only, no directional motion (nothing "leaves") */
.icon-local { animation: local-pulse 3s ease-in-out infinite; }
@keyframes local-pulse { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }

.shot-frame { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: repeating-linear-gradient(45deg, #1B1A20 0 10px, #201F26 10px 20px); aspect-ratio: 16 / 9; position: relative; }
.shot-frame-hero { max-width: 960px; margin: 40px auto 0; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); border-color: var(--line-warm); }
.shot-frame img { width: 100%; height: 100%; object-fit: cover; }
.video-frame { width: 100%; height: 100%; display: block; }

.shot-grid-small { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 20px; }
.shot-small {
  margin: 0; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg-panel);
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 16px; text-align: center; overflow: hidden;
}
.shot-small span { font-family: var(--mono); color: var(--text-muted-2); font-size: 11px; letter-spacing: 0.08em; line-height: 1.8; }
.shot-featured { margin-top: 40px; padding: 20px; }
.shot-scanning { max-width: 720px; margin: 40px auto 0; padding: 20px; }
.shot-scanning img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); }

.shot-open {
  display: block; width: 100%; border: none; padding: 0; margin: 0;
  background: none; cursor: zoom-in; border-radius: var(--radius-sm); overflow: hidden; position: relative;
}
.shot-open img { display: block; width: 100%; height: auto; background: var(--bg-deep); }
.shot-open::after {
  content: "\2921  ENLARGE"; position: absolute; right: 10px; bottom: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  color: var(--text); background: rgba(19,18,23,0.78); border: 1px solid var(--line-warm-2); border-radius: 20px; padding: 5px 10px;
  opacity: 0; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease; pointer-events: none;
}
.shot-open:hover::after, .shot-open:focus-visible::after { opacity: 1; transform: translateY(0); }
.shot-caption {
  font-family: var(--mono); color: var(--text-muted-2); font-size: 11.5px; letter-spacing: 0.03em; line-height: 1.6;
  text-align: left; padding: 12px 2px 2px; margin: 0;
}

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 40px;
  background: rgba(15,14,18,0.88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .18s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-img { max-width: 100%; max-height: 88vh; border-radius: 10px; border: 1px solid var(--line-warm-2); box-shadow: 0 30px 80px rgba(0,0,0,0.55); }
.lightbox-close {
  position: absolute; top: 22px; right: 26px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-warm-2); background: var(--bg-panel); color: var(--text); font-size: 20px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { border-color: var(--accent); color: var(--accent-hi); }

.req-grid { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 44px; }
.req-row { font-family: var(--mono); display: flex; justify-content: space-between; gap: 24px; padding: 16px 0; border-top: 1px solid var(--line-soft-2); font-size: 13px; }
.req-grid > .req-row:last-child { border-bottom: 1px solid var(--line-soft-2); }
.req-row .k { color: var(--text-muted-2); letter-spacing: 0.06em; flex-shrink: 0; }
.req-row .v { color: #DAD6E1; text-align: right; }

.pricing-panel { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; background: var(--bg-panel); border: 1px solid var(--line-warm-2); border-radius: 18px; padding: 40px; }
.pricing-copy p { color: var(--text-body); font-size: 15.5px; line-height: 1.68; max-width: 430px; }
.price-note { font-family: var(--mono); color: var(--accent-soft); font-size: 12px; letter-spacing: 0.05em; margin-top: 22px; line-height: 1.8; }
.price-card { background: var(--bg-panel-3); border: 1px solid var(--line-warm-2); border-radius: 14px; padding: 36px; text-align: center; }
.price-figure { font-family: var(--display); font-size: 52px; letter-spacing: -0.01em; }
.price-sub { font-family: var(--mono); color: var(--text-muted-2); font-size: 11px; letter-spacing: 0.1em; margin: 8px 0 24px; }
.price-fine { font-size: 12px; color: var(--text-faint); line-height: 1.7; margin-top: 14px; }

.faq-grid { display: grid; grid-template-columns: 1fr; gap: 30px; margin-top: 48px; }
.faq-item h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 9px; font-family: var(--font); }
.faq-item p { color: #A8A3B3; font-size: 14.5px; line-height: 1.7; margin: 0; }

.final-cta { text-align: center; padding: 90px 0; }
.final-cta h2 { font-family: var(--display); font-size: clamp(30px, 5vw, 44px); line-height: 1.1; max-width: 700px; margin: 0 auto; letter-spacing: -0.01em; }

.site-footer { border-top: 1px solid var(--line-soft); padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.footer-brand-block { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-made-in { font-size: 13.5px; line-height: 1.6; color: var(--text-body); max-width: 380px; margin: 4px 0 14px; }
.footer-disclaimer { font-family: var(--mono); font-size: 11.5px; line-height: 1.9; color: var(--text-faint); max-width: 440px; }
.footer-col-title { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--text-faint); margin-bottom: 4px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--text-body); font-size: 13.5px; }
.footer-col a:hover { color: var(--accent-text); }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom span { font-family: var(--mono); font-size: 11.5px; color: var(--text-faint); }
.footer-copy { color: var(--text-faint-2); }

.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(19,18,23,0.94);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-top: 1px solid var(--line-warm-2);
  transform: translateY(110%);
  transition: transform .22s ease;
}
.sticky-buy.is-visible { transform: translateY(0); }
.sticky-price { font-family: var(--mono); font-weight: 500; font-size: 14px; color: var(--text); }

@media (max-width: 719px) {
  .container { padding: 0 22px; }
  .hero { padding: 56px 0 24px; }
  .hero-inner { padding: 0 22px; }
  /* The sidebar is set dressing (Desktop / Downloads / Bounces) - on a
     narrow phone the filenames themselves are the point, give them the
     room instead of truncating "Untitled 3.wav" down to "U..". */
  .finder-sidebar { display: none; }
  .finder-body { grid-template-columns: 1fr; }
  .section-pad { padding: 64px 0; }
  .sticky-buy { display: flex; }
  body { padding-bottom: 68px; }
  .nav-links a:not(.btn) { display: none; }
}

@media (min-width: 720px) {
  .before-after { grid-template-columns: 1fr 100px 1fr; }
  .req-grid { grid-template-columns: 1fr 1fr; gap: 0 56px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .price-note { text-align: left; }
}

@media (min-width: 720px) {
  .feature-hero-row { grid-template-columns: 1fr 1fr; }
  .feature-mini-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 860px) {
  .shot-grid-small { grid-template-columns: repeat(3, 1fr); }
  .pricing-panel { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1100px) {
  .feature-mini-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ============================================================
   SORT MACHINE  —  the hero's motion centerpiece
   Eight file chips carry real filenames (matching the Finder mock
   below). They move together through one shared 10s cycle, each on
   a small ripple offset (not a full spread), so there is a clear
   moment where all eight sit organized and readable at once:
   1. UNSORTED pile, jittering hard, tumbled at wide random angles.
   2. They cross the glowing "DR. SESSION" gate, shaking hardest and
      flashing as they pass through it.
   3. They land in a clean grid, grouped and colored by category,
      and hold there for more than half the cycle before resetting.
   Colors match the real app (Source/CategoryRegistry.h); names
   match TrackTypes.h.
   ============================================================ */
.sort-machine {
  position: relative;
  width: 100%;
  max-width: 920px;
  height: 360px;
  margin: 76px auto 0;
  container-type: size;
  container-name: sort-machine;
}

.zone-tag {
  position: absolute;
  top: -4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  border: 1px solid var(--line-warm-2);
  border-radius: 100px;
  padding: 5px 12px;
  color: var(--text-muted);
}
.zone-tag-left { left: 0; }
.zone-tag-right { right: 0; color: var(--accent-soft); border-color: #4A3126; }

.scanner {
  position: absolute;
  left: 50%;
  top: 30px;
  bottom: 30px;
  width: 6px;
  transform: translateX(-50%);
}
.scanner-glow {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: linear-gradient(180deg, transparent, var(--accent) 12%, var(--accent) 88%, transparent);
  opacity: 0.3;
  box-shadow: 0 0 24px 2px var(--accent);
  animation: gate-cycle 10s linear infinite;
}
.scanner-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px var(--bg);
}
.scanner-badge img { width: 20px; height: 20px; border-radius: 4px; display: block; }
.scanner-label {
  position: absolute;
  bottom: -26px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent-text);
}
@keyframes gate-cycle {
  0%, 32%   { opacity: 0.28; box-shadow: 0 0 20px 1px var(--accent); }
  38%, 48%  { opacity: 0.9;  box-shadow: 0 0 34px 4px var(--accent); }
  56%, 100% { opacity: 0.28; box-shadow: 0 0 20px 1px var(--accent); }
}

.sort-chip {
  position: absolute;
  left: 0;
  top: 0;
  width: 98px;
  padding: 7px 10px;
  border-radius: 7px;
  border: 1px solid var(--line-warm-2);
  background: var(--bg-panel-3);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  text-align: center;
  color: var(--text-muted);
  animation: chip-cycle 10s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform, opacity, box-shadow;
  box-sizing: border-box;
}
.sort-chip .chip-before,
.sort-chip .chip-after {
  display: block;
  transition: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sort-chip .chip-after {
  position: absolute;
  inset: 0;
  padding: 7px 10px;
  opacity: 0;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.sort-chip .chip-before { animation: chip-label-out 10s ease-in-out infinite; animation-delay: var(--delay, 0s); }
.sort-chip .chip-after  { animation: chip-label-in  10s ease-in-out infinite; animation-delay: var(--delay, 0s); }

/* Wide, fast tumbling while piled on the left - genuinely messy, not
   a gentle wobble: big rotation swings, real position jitter, a
   flicker of scale so it reads as restless rather than decorative. */
@keyframes chip-cycle {
  0%    { transform: translate(var(--sx), var(--sy)) rotate(var(--sr)) scale(1); opacity: 0; border-color: var(--line-warm-2); box-shadow: none; }
  3%    { opacity: 1; }
  7%    { transform: translate(calc(var(--sx) + 3cqw), calc(var(--sy) - 4cqh)) rotate(calc(var(--sr) * -1.3)) scale(0.95); }
  11%   { transform: translate(calc(var(--sx) - 3cqw), calc(var(--sy) + 3cqh)) rotate(calc(var(--sr) * 1.4)) scale(1.05); }
  15%   { transform: translate(calc(var(--sx) + 2cqw), calc(var(--sy) - 3cqh)) rotate(calc(var(--sr) * -0.8)) scale(0.97); }
  19%   { transform: translate(calc(var(--sx) - 2cqw), calc(var(--sy) + 4cqh)) rotate(calc(var(--sr) * 1.6)) scale(1.04); border-color: var(--line-warm-2); }
  /* approaching + crossing the gate: shake hardest, color starts to turn */
  24%   { transform: translate(38cqw, calc(var(--sy) - 2cqh)) rotate(calc(var(--sr) * -2)) scale(1.1); border-color: var(--c); }
  28%   { transform: translate(46cqw, calc(var(--sy) + 3cqh)) rotate(calc(var(--sr) * 2.2)) scale(0.92); box-shadow: 0 0 14px -2px var(--c); }
  32%   { transform: translate(54cqw, var(--sy)) rotate(calc(var(--sr) * -1.6)) scale(1.08); box-shadow: 0 0 16px -1px var(--c); }
  /* land and lock */
  38%   { transform: translate(var(--ex), var(--ey)) rotate(0deg) scale(1.1); border-color: var(--c); box-shadow: 0 0 14px -1px var(--c); }
  42%   { transform: translate(var(--ex), var(--ey)) rotate(0deg) scale(1); border-color: var(--c); box-shadow: 0 0 10px -2px var(--c); }
  90%   { transform: translate(var(--ex), var(--ey)) rotate(0deg) scale(1); opacity: 1; border-color: var(--c); box-shadow: 0 0 10px -2px var(--c); }
  96%   { opacity: 0; }
  100%  { transform: translate(var(--sx), var(--sy)) rotate(var(--sr)) scale(1); opacity: 0; border-color: var(--line-warm-2); box-shadow: none; }
}
@keyframes chip-label-out {
  0%, 34%   { opacity: 1; }
  40%, 100% { opacity: 0; }
}
@keyframes chip-label-in {
  0%, 34%   { opacity: 0; }
  40%, 100% { opacity: 1; }
}

@media (max-width: 719px) {
  .sort-machine { height: 260px; margin: 56px auto 0; transform: scale(0.9); transform-origin: top center; }
  .sort-chip { width: 76px; font-size: 8.5px; padding: 6px 7px; }
  .sort-chip .chip-after { padding: 6px 7px; }
  .zone-tag { font-size: 9px; padding: 4px 9px; }
  .scanner-badge { width: 28px; height: 28px; }
  .scanner-badge img { width: 16px; height: 16px; }
}
