/* Home page (/) additions to css/redesign.css (AUD-2143). Loaded only by
   web/landing/index.html, after redesign.css; everything is scoped to the page's
   <main class="rd">. The site-wide header and footer keep site.css. */

/* <main> is a flex item of production's body (display:flex; column; height:100%).
   An `overflow-x: hidden` on it would also turn overflow-y into `auto`, making it a
   scroll container that shrinks to one viewport (measured: 763px of 9185px). `clip`
   (also what redesign.css now sets on .rd) hides horizontal overflow without that, so
   the window keeps scrolling and scroll_depth keeps measuring it. */
main.rd { display: block; width: 100%; flex-shrink: 0; overflow-x: clip; }

/* Anchors land below the sticky production header. */
.rd [id] { scroll-margin-top: 76px; }

/* site.css and the page's own head styles give .btn-primary a hover lift and fade. */
.rd .btn-primary:hover,
.rd .btn-ghost:hover { transform: none; opacity: 1; }

/* ------------------------------------------------------------------ first viewport */
.rd .duo-links {
  margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px;
  font-size: 13.5px; color: var(--quiet);
}
.rd .duo-links a { color: var(--muted); font-weight: 500; transition: color 0.15s ease; }
.rd .duo-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 0.24em; }

/* The player writes "▶" / "❚❚" into its play button and replaces the button's
   children when it does, so the icon is drawn here from [data-playing]
   (js/ab-views.js) and the glyph stays as the text fallback. */
.rd .play { font-size: 0; line-height: 0; }
.rd .play::before {
  content: ""; display: block; width: 15px; height: 17px; background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%); transform: translateX(2px);
}
.rd .play[data-playing="true"]::before {
  width: 5px; height: 16px; clip-path: none; box-shadow: 9px 0 0 currentColor; transform: translateX(-4.5px);
}

/* The transport's source controls: track list and Mix / Vocal stem. */
.rd .duo-tp .tp-foot { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.rd .tp-src { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rd .tp-src .field-select { flex: 1 1 auto; min-width: 0; }
.rd .tp-src .field-select select { max-width: none; width: 100%; min-width: 0; }
.rd .toggle button { white-space: nowrap; }
.rd .toggle button:disabled { color: var(--quiet); cursor: not-allowed; text-decoration: line-through; text-decoration-thickness: 1px; }

/* The range input stays the accessible seek slider (keyboard, screen readers). It sits
   over the spectrogram strip without taking the pointer; the strip takes the pointer
   and routes it through the same input (js/ab-views.js). Focus is shown on the strip. */
.rd .tp-time { position: relative; }
.rd .tp-seek {
  position: absolute; left: 0; top: 0; width: 100%; height: 32px; margin: 0;
  opacity: 0; pointer-events: none;
}
.rd .tp-time:has(.tp-seek:focus-visible) .mini-strip { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Show the whole plug-in at its original ratio inside the first-viewport budget.
   Contain preserves the UI when max-height is narrower than the available width. */
.rd .window-overview img {
  display: block; width: 100%; height: auto; aspect-ratio: 1100 / 700;
  object-fit: contain; object-position: center;
}
.rd .window-overview .window-cap {
  position: static; display: block; padding: 8px 12px; border: 0; border-top: 1px solid var(--line);
  border-radius: 0; background: var(--well);
}
@media (min-width: 1101px) {
  .rd .window-overview img { max-height: max(220px, calc(100vh - 572px)); }
}
@media (min-width: 1101px) and (max-height: 860px) {
  .rd .window-overview img { max-height: max(200px, calc(100vh - 548px)); }
  .rd .duo-tp .tp-foot { gap: 6px; }
  .rd .duo-links { margin-top: 6px; font-size: 13px; }
}

/* ------------------------------------------------------------------ listening band */
/* The band switches the same player as the hero; both views mirror its state. */
.rd .sono-label { cursor: pointer; }
.rd [data-variant-active="0"] .sono-label[data-variant="0"],
.rd [data-variant-active="1"] .sono-label[data-variant="1"],
.rd [data-variant-active="2"] .sono-label[data-variant="2"] { border-color: var(--accent-line); background: var(--accent-wash); }
.rd [data-variant-active="0"] .sono-label[data-variant="0"] .t,
.rd [data-variant-active="1"] .sono-label[data-variant="1"] .t,
.rd [data-variant-active="2"] .sono-label[data-variant="2"] .t { color: var(--accent); }
.rd [data-variant-active="0"] .sono-label[data-variant="0"] .dot,
.rd [data-variant-active="1"] .sono-label[data-variant="1"] .dot,
.rd [data-variant-active="2"] .sono-label[data-variant="2"] .dot { background: currentColor; opacity: 1; }
.rd .hear-go { margin-top: 24px; }
.rd .kbd-h { margin-top: 26px; font-size: 13.5px; color: var(--quiet); }
.rd .kbd-h + .kbd-list { margin-top: 10px; }

/* ------------------------------------------------------------------ plug-in line */
.rd .products-promo {
  margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--muted);
  letter-spacing: 0; text-transform: none;
}
.rd .products-promo strong { color: var(--text); font-weight: 600; letter-spacing: 0; }
.rd .products-promo a {
  color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px; text-underline-offset: 0.24em;
}
.rd .products-promo a:hover { text-decoration-color: var(--accent); }

.rd .which-h {
  margin-top: 40px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--quiet);
}
.rd .which { margin-top: 12px; max-width: 980px; }
.rd .which dl {
  display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 32px;
  border-top: 1px solid var(--line-lit);
}
.rd .which dt,
.rd .which dd { padding: 13px 0 14px; border-bottom: 1px solid var(--line); }
.rd .which dt { font-size: 15px; font-weight: 650; line-height: 1.5; white-space: nowrap; }
.rd .which dt a {
  color: var(--text); text-decoration: underline; text-decoration-color: transparent;
  text-underline-offset: 0.24em; text-decoration-thickness: 1px; transition: text-decoration-color 0.18s ease;
}
.rd .which dt a:hover { text-decoration-color: var(--accent); }
.rd .which dd { font-size: 14.5px; line-height: 1.6; color: var(--muted); }

.rd .shelf { margin-top: 40px; }
.rd .shelf-id .try-online-btn {
  display: inline-block; margin-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--text);
  text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.24em;
}
.rd .shelf-id .try-online-btn:hover { text-decoration-color: var(--accent); }

/* ------------------------------------------------------------------ trial and downloads */
.rd .c-trial { margin-top: 120px; }
.rd .c-trial .lede { max-width: 46em; }
.rd .videos-h {
  margin-top: 40px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--quiet);
}
.rd .video-grid { margin: 14px 0 0; }
.rd .video-carousel { grid-auto-columns: minmax(280px, 30%); }
.rd .video-embed { border-radius: var(--r-panel); border-color: #262630; background: var(--inset); }

.rd .trials { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.rd .trial {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 24px;
}
.rd .trial-name { font-family: var(--brand); font-size: 24px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.rd .trial-tag { margin-top: 4px; font-size: 13px; color: var(--muted); }
.rd .trial-text { margin-top: 14px; margin-bottom: 20px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.rd .download-row {
  margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px;
  padding: 14px 16px; border-radius: var(--r-ctl); background: var(--ground); border: 1px solid var(--line-lit);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.rd .download-row:hover { border-color: var(--accent-line); background: rgba(232, 232, 236, 0.03); }
.rd .download-row .file { flex: 1 1 14ch; min-width: 0; font-family: var(--mono); font-size: 13px; color: var(--text); overflow-wrap: anywhere; }
.rd .download-row .status { font-family: var(--mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.rd .trial-spec { margin-top: 16px; font-size: 14px; }
.rd .trial-req { margin-top: 24px; max-width: 52em; font-size: 13px; line-height: 1.6; color: var(--quiet); }

/* ------------------------------------------------------------------ reading */
.rd .reading { padding-top: 120px; }
.rd .reading-h { font-size: 24px; line-height: 1.15; font-weight: 700; font-stretch: 84%; }
.rd .reading-list { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rd .reading-list a {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px 24px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel);
  transition: border-color 0.15s ease;
}
.rd .reading-list a:hover { border-color: var(--line-strong); }
.rd .reading-list .r-kicker { font-size: 12.5px; color: var(--quiet); }
.rd .reading-list .r-title { font-size: 16px; font-weight: 650; line-height: 1.4; color: var(--text); }
.rd .reading-list .r-sub { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .rd .trials { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .rd .video-carousel { grid-auto-columns: minmax(280px, 46%); }
}
@media (max-width: 640px) {
  .rd .duo-links { justify-content: flex-start; }
  .rd .tp-src { flex-wrap: wrap; }
  .rd .tp-src .field-select { flex: 1 1 100%; }
  .rd .which dl { grid-template-columns: minmax(0, 1fr); }
  .rd .which dt { padding-bottom: 2px; border-bottom: 0; }
  .rd .which dd { padding-top: 0; }
  .rd .c-trial { margin-top: 88px; }
  .rd .video-carousel { grid-auto-columns: minmax(82%, 1fr); }
  .rd .trial { padding: 18px; }
  .rd .download-row .file { flex-basis: 100%; }
  .rd .reading { padding-top: 88px; }
  .rd .reading-list { grid-template-columns: minmax(0, 1fr); }
}

/* 결과 패널은 실제 demo의 판정만 보여 준다. 내부 모델·임계값·구간별 수치는
   공개 홈에 추가하지 않으며, 두 제품의 증거 영역과 CTA 높이는 동일하게 유지한다. */
.rd .result-summary .rs-main { gap: 12px; justify-content: center; }
.rd .result-summary .rs-top { margin-bottom: 4px; }
.rd .result-lede { font-size: clamp(28px, 2.7vw, 40px); font-weight: 700; font-stretch: 84%; line-height: 1.08; letter-spacing: -0.01em; }
.rd .result-copy { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 36em; }
.rd .result-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-lit); border-bottom: 1px solid var(--line); }
.rd .result-details > div { display: grid; gap: 6px; padding: 12px 0; }
.rd .result-details dt { color: var(--text); font-size: 14px; font-weight: 600; }
.rd .result-details dd { color: var(--muted); font-size: 14px; line-height: 1.5; }
.rd .result-summary .rs-alt { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "clip verdict"; }
.rd .result-summary .rs-clip { font-size: 14px; }
.rd .result-summary .rs-meta { font-family: var(--sans); }
.rd .pipe-row.detection-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rd .benchmark-links .v { font-family: var(--sans); font-size: 26px; font-weight: 650; letter-spacing: -0.01em; }
@media (max-width: 640px) {
  .rd .result-summary .rs-main { padding-top: 20px; padding-bottom: 20px; gap: 14px; }
  .rd .result-summary .rs-top { flex-wrap: wrap; margin-bottom: 4px; }
  .rd .result-details > div { padding: 10px 0; }
  .rd .result-summary .rs-alt { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
  .rd .pipe-row.detection-flow { grid-template-columns: minmax(0, 1fr); }
}

/* JSON-LD speakable 선택자를 유지하면서 기존 전역 hero 별칭의 스타일은 격리한다. */
.rd .duo-h.hero-headline span { color: inherit; }
.rd .duo-head .hero-sub { font-family: var(--sans); max-width: none; }
