/* de-artifact product page (/products/de-artifact/), AUD-2143: page-specific additions
   to css/redesign.css. Everything is scoped to `.rd` (the page's <main>), so the
   production header and footer keep site.css. Loaded after redesign.css.

   The page keeps production markup contracts that the mockup did not have (the
   checkout script, js/ab-player.js, the try widget, download rows parsed by
   manifest.js, the video-proof tabs), so several rules here restyle that markup
   rather than the mockup's own. */

/* site.css already clips the body. overflow-x:hidden on <main> (redesign.css) would
   make it a scroll container, and position:sticky inside it (the buy panel) would
   then never stick. `clip` cuts the overflow without creating a scroll container. */
main.rd { display: block; width: 100%; overflow-x: clip; }
.rd [hidden] { display: none !important; }

/* Anchors land below the sticky site nav (64px; 52px at <=768px) and the product bar. */
.rd [id] { scroll-margin-top: 136px; }
@media (max-width: 768px) { .rd [id] { scroll-margin-top: 124px; } }
@media (max-width: 640px) { .rd [id] { scroll-margin-top: 120px; } }

/* Product bar: under the production nav, which is sticky at z-index 100. */
.rd .pbar { top: 64px; z-index: 90; }
@media (max-width: 768px) { .rd .pbar { top: 52px; } }
.rd .pbar-buy { font: inherit; font-size: 14px; font-weight: 600; }

/* ------------------------------------------------------------------ hero */
.rd .p-hero-top { align-items: end; }
.rd .p-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 16px; }
.rd .p-crumbs .breadcrumb { font-size: 13px; color: var(--quiet); }
.rd .p-crumbs .breadcrumb a { color: var(--muted); transition: color 0.15s ease; }
.rd .p-crumbs .breadcrumb a:hover { color: var(--text); }
.rd .powered-badge {
  display: inline-block; margin: 0; padding: 3px 9px; background: transparent;
  border: 1px solid var(--line-lit); border-radius: var(--r-ctl);
  font-size: 13px; font-weight: 500; line-height: 1.45; letter-spacing: 0; text-transform: none; color: var(--muted);
}
.rd .p-lead .p-tagline,
.rd .p-lead .p-sub { display: block; }
.rd .p-actions .btn { font-family: var(--sans); }
.rd .p-stage-note a {
  color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px; text-underline-offset: 0.24em; transition: text-decoration-color 0.2s ease;
}
.rd .p-stage-note a:hover { text-decoration-color: var(--accent); }
.rd .p-stage-note .sep { margin: 0 8px; color: var(--quiet); }

/* ------------------------------------------------------------------ A/B player
   js/ab-player.js writes "▶" / "❚❚" into its play button and replaces any icon
   markup inside it, so the glyph stays as an invisible fallback and the icon is
   drawn here from the state js/ab-views.js mirrors onto the player and its views. */
.rd .play { font-size: 0; line-height: 0; }
.rd .play::before {
  content: ""; display: block; width: 0; height: 0; margin-left: 3px;
  border-style: solid; border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent currentColor;
}
.rd [data-state="playing"] .play::before {
  width: 12px; height: 15px; margin-left: 0; border: 0;
  background: linear-gradient(90deg, currentColor 0 4px, transparent 4px 8px, currentColor 8px 12px);
}

/* The rack's strip is the visual seek surface; the player's own range input covers it,
   transparent, so pointer and keyboard seeking both go through the accessible slider. */
.rd .rack-strip input[type="range"],
.rd .sono-strip input[type="range"] {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; padding: 0;
  opacity: 0; cursor: pointer; background: transparent; -webkit-appearance: none; appearance: none;
}
.rd .rack-strip input[type="range"]::-webkit-slider-thumb,
.rd .sono-strip input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 2px; height: 40px; }
.rd .rack-strip input[type="range"]::-moz-range-thumb,
.rd .sono-strip input[type="range"]::-moz-range-thumb { width: 2px; height: 40px; border: 0; }
.rd .rack-strip:has(input:focus-visible),
.rd .sono-strip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.rd .rack .time-row .track-name [data-view="mode-name"]::before { content: " · "; }
.rd .rack-vars .s { overflow-wrap: anywhere; }
.rd .toggle button:disabled { color: var(--quiet); cursor: not-allowed; text-decoration: line-through; text-decoration-thickness: 1px; }

/* ------------------------------------------------------------------ specs */
.rd .p-specs-kvr { margin-top: 22px; font-size: 13.5px; color: var(--quiet); max-width: 24em; }
.rd .p-specs-kvr a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.24em; }
.rd .p-specs-kvr a:hover { color: var(--text); text-decoration-color: var(--accent); }
.rd .spec-table { font-size: 16px; }

/* ------------------------------------------------------------------ listen */
.rd .p-proof { margin-top: 44px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.rd .p-proof-copy { grid-column: 1 / span 4; }
.rd .p-proof-stage { grid-column: 5 / span 8; }
.rd .p-proof-h { font-size: 21px; line-height: 1.2; font-weight: 700; font-stretch: 86%; letter-spacing: -0.005em; }
.rd .p-proof .proof-intro { margin-top: 10px; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.rd .p-proof .proof-tabs { margin: 24px 0 0; display: grid; gap: 8px; }
.rd .p-proof .proof-tabs button {
  appearance: none; display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px;
  text-align: left; cursor: pointer; background: transparent; color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-ctl); font-family: var(--sans); font-size: 15px; font-weight: 650;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.rd .p-proof .proof-tabs button::before {
  content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; opacity: 0.6;
}
.rd .p-proof .proof-tabs button:hover { border-color: var(--line-strong); }
.rd .p-proof .proof-tabs button[aria-selected="true"] { border-color: var(--accent-line); background: var(--accent-wash); color: var(--accent); }
.rd .p-proof .proof-tabs button[aria-selected="true"]::before { background: currentColor; opacity: 1; }
.rd .p-proof .proof-note { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.55; color: var(--quiet); }
.rd .p-proof .proof-help { margin-top: 14px; font-size: 14px; }
.rd .p-proof .proof-help a { color: var(--text); font-weight: 600; text-decoration: none; }
.rd .p-proof .proof-help a:hover { color: #fff; }
.rd .p-proof .proof-panel video { height: 100%; aspect-ratio: auto; border-radius: 0; }
.rd .p-proof .proof-panel figcaption { margin-top: 14px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.rd .p-proof .proof-panel figcaption .cap-t { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 650; color: var(--text); }

/* The board below is a second view of the hero player; its play button and variant
   labels forward to the player (inline script at the end of the page). */
.rd .p-board .hear-copy .lede strong { color: var(--text); font-weight: 600; }
.rd .p-board .kbd-list dt { white-space: nowrap; color: var(--muted); }
.rd .p-board .p-tip strong { color: var(--muted); font-weight: 600; }

/* Walkthrough and the demo videos. */
.rd .p-more { padding-top: 112px; }
.rd .p-tutorial { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.rd .p-tutorial-text { grid-column: 1 / span 4; }
.rd .p-tutorial-text p { margin-top: 14px; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.rd .p-tutorial-text p strong { color: var(--text); font-weight: 600; }
.rd .p-tutorial-text .p-tutorial-cta { margin-top: 20px; }
.rd .p-tutorial-text .p-tutorial-cta a { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 0.24em; }
.rd .p-tutorial-text .p-tutorial-cta a:hover { text-decoration-color: var(--accent); }
.rd .p-tutorial-video { grid-column: 6 / span 7; }
.rd .video-embed {
  border: 1px solid #262630; border-radius: var(--r-panel); background: var(--inset);
  box-shadow: 0 32px 64px -28px rgba(0, 0, 0, 0.85);
}
.rd .p-carousel-h { margin-top: 88px; font-size: 21px; line-height: 1.2; font-weight: 700; font-stretch: 86%; }
.rd .p-carousel-note { margin-top: 6px; font-size: 13.5px; color: var(--quiet); }
.rd .video-carousel.video-grid { margin: 20px 0 0; padding-bottom: 14px; }
.rd .video-carousel > .video-embed { box-shadow: none; }

/* ------------------------------------------------------------------ what / fit / how */
.rd .p-what-only { padding-top: 128px; }
.rd .fit-list li a,
.rd .fit-not dd a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.24em; }
.rd .fit-list li a:hover,
.rd .fit-not dd a:hover { text-decoration-color: var(--accent); }
.rd .flow-cap { margin-top: 12px; font-size: 12.5px; color: var(--quiet); text-align: center; }
.rd .p-feats-h { margin-top: 96px; padding-bottom: 14px; border-bottom: 1px solid var(--line-lit); font-size: 21px; line-height: 1.2; font-weight: 700; font-stretch: 86%; letter-spacing: -0.005em; }
.rd .p-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.rd .p-feat { padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
.rd .p-feat h3 { font-size: 16px; font-weight: 650; line-height: 1.35; }
.rd .p-feat p { margin-top: 6px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.rd .p-feat p strong { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------------ presets
   The rows keep production markup (name span + meta chips) inside the redesign table. */
.rd .presets td:first-child { width: 31%; }
.rd .presets .name { font-size: 16px; font-weight: 650; color: var(--text); margin-right: 8px; }
.rd .presets .meta {
  display: inline-block; margin: 2px 6px 0 0; font-size: 12px; line-height: 1.5; color: var(--quiet);
  border: 1px solid var(--line-lit); border-radius: 3px; padding: 0 6px; vertical-align: 2px; white-space: nowrap;
}
.rd .presets .meta.pc-on { color: var(--text); border-color: var(--line-strong); }
.rd .presets .meta.pc-new { color: var(--accent); border-color: var(--accent-line); }
.rd .presets tbody tr:hover td { background: transparent; }
.rd .presets-note { margin-top: 14px; font-size: 12.5px; color: var(--quiet); }

/* ------------------------------------------------------------------ ways */
.rd .ways .way-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.rd .ways .way-actions .btn,
.rd .way-card .way-actions .btn { height: 42px; padding: 0 16px; font-size: 14.5px; }
.rd .way-card .way-actions { margin-top: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.rd .way-card .way-actions .link-arrow { margin-top: 0; }
.rd .ways td p + p { margin-top: 8px; }

/* ------------------------------------------------------------------ try it */
.rd .p-try { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.rd .p-try-text { grid-column: 1 / span 5; }
.rd .p-try-text .lede a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.24em; }
.rd .p-try-text .lede a:hover { text-decoration-color: var(--accent); }
.rd .p-try-spec { margin-top: 14px; font-size: 13px; line-height: 1.55; color: var(--quiet); }
.rd .p-try-tool { grid-column: 7 / span 6; }
/* Restyle of the widget's own (inline) styles: one action blue, graphite panels. */
.rd .tda-widget { margin-top: 0; max-width: none; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); }
.rd .tda-dropzone { padding: 36px 24px; background: var(--well); border: 1.5px dashed var(--line-strong); border-radius: var(--r-panel); }
.rd .tda-dropzone:hover,
.rd .tda-dropzone.tda-drag-over { border-color: var(--accent); background: var(--accent-wash); }
.rd .tda-drop-icon { font-size: 26px; margin: 0 auto 10px; }
.rd .tda-drop-label { font-size: 15.5px; font-weight: 600; color: var(--text); }
.rd .tda-drop-sub { font-size: 13px; color: var(--quiet); }
.rd .tda-drop-filename { font-family: var(--mono); font-size: 12.5px; color: var(--accent); }
.rd .tda-process-btn {
  height: 52px; margin-top: 14px; padding: 0 22px; border-radius: var(--r-ctl);
  background: var(--accent); color: var(--ground); font-size: 16px; font-weight: 600;
}
.rd .tda-process-btn:hover { background: var(--accent-hover); }
.rd .tda-status-card,
.rd .tda-result-card { background: var(--inset); border: 1px solid var(--line); border-radius: var(--r-panel); }
.rd .tda-status-label,
.rd .tda-ab-label { color: var(--quiet); }
.rd .tda-status-text { color: var(--muted); }
.rd .tda-progress-wrap { background: var(--line-lit); }
.rd .tda-progress-bar { background: var(--accent); }
.rd .tda-error-msg { background: transparent; border: 1px solid var(--line-strong); color: #f3b2a8; }
.rd .tda-preview-badge { color: var(--muted); background: transparent; border: 1px solid var(--line-lit); }
.rd .tda-ab-btn { border-color: var(--line-lit); color: var(--muted); }
.rd .tda-ab-btn.tda-active { background: var(--accent); border-color: var(--accent); color: var(--ground); }
.rd .tda-try-again-btn { color: var(--muted); border-color: var(--line-lit); }
.rd .tda-try-again-btn:hover { color: var(--text); border-color: var(--line-strong); }

/* ------------------------------------------------------------------ download (close) */
.rd .p-close .h2 { max-width: 16em; }
.rd .dl-rows { margin-top: 18px; border-top: 1px solid var(--line); }
.rd .dl-rows .download-row {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; grid-template-areas: "ic st dl" "ic fi dl";
  column-gap: 14px; row-gap: 2px; align-items: center; padding: 16px 4px;
  border-bottom: 1px solid var(--line); transition: background 0.15s ease;
}
.rd .dl-rows .download-row:hover { background: rgba(232, 232, 236, 0.03); }
.rd .dl-rows .file { grid-area: fi; font-family: var(--mono); font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; min-width: 0; }
.rd .dl-rows .status { grid-area: st; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--text); }
.rd .dl-rows .os-ic { grid-area: ic; width: 20px; height: 20px; color: var(--muted); }
.rd .dl-rows .dl-ic { grid-area: dl; width: 16px; height: 16px; color: var(--accent); transition: transform 0.2s var(--ease-out); }
.rd .dl-rows .download-row:hover .dl-ic { transform: translateY(2px); }
.rd .trial-req strong { color: var(--muted); font-weight: 600; }
.rd .p-detector { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.55; color: var(--muted); }
.rd .p-detector a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.24em; }
.rd .p-detector a:hover { text-decoration-color: var(--accent); }
.rd .buy-panel .buy-tag { margin-top: 6px; font-size: 13px; color: var(--muted); }
.rd .buy-panel .btn + .btn { margin-top: 10px; }
.rd .buy-panel .price-fine { margin-top: 20px; }
.rd .req-lead { margin-top: 10px; font-size: 13.5px; line-height: 1.55; color: var(--quiet); max-width: 44em; }
.rd .req .req-k { color: var(--quiet); }

/* ------------------------------------------------------------------ FAQ */
.rd .p-faq .p-split-head .lede { font-size: 15.5px; }
.rd .p-faq .faq { grid-column: 5 / span 8; margin: 0; border-top: 1px solid var(--line-lit); }
.rd .p-faq .faq dt { margin: 0; padding-top: 20px; font-size: 17px; font-weight: 650; line-height: 1.4; color: var(--text); }
.rd .p-faq .faq dd { margin: 6px 0 0; padding-bottom: 20px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.65; color: var(--muted); }
.rd .p-faq .faq dd em { font-style: normal; color: var(--text); }
.rd .p-faq .faq dd a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.24em; }
.rd .p-faq .faq dd a:hover { text-decoration-color: var(--accent); }

/* ------------------------------------------------------------------ further reading */
.rd .p-reading-h { font-size: 21px; line-height: 1.2; font-weight: 700; font-stretch: 86%; }
.rd .reading-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.rd .reading-card { padding: 18px 20px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); transition: border-color 0.15s ease; }
.rd .reading-card:hover { border-color: var(--line-strong); }
.rd .reading-card .rc-k { font-size: 12.5px; color: var(--quiet); }
.rd .reading-card .rc-t { margin-top: 6px; font-size: 16px; font-weight: 650; line-height: 1.35; color: var(--text); }
.rd .reading-card .rc-d { margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* ------------------------------------------------------------------ closing strip */
.rd .cta-strip.p-final { padding: 112px 0 120px; border-top: 0; text-align: left; }
.rd .p-final-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px;
  padding-top: 40px; border-top: 1px solid var(--line);
}
.rd .cta-strip.p-final h2 { margin: 0; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.08; font-weight: 700; font-stretch: 82%; letter-spacing: -0.01em; color: var(--text); }
.rd .cta-strip.p-final p { margin: 10px 0 0; font-size: 16px; color: var(--muted); }
.rd .p-final-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rd .p-final-actions .btn-was { margin-left: 2px; font-weight: 400; opacity: 0.66; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .rd .p-proof-copy,
  .rd .p-proof-stage { grid-column: 1 / -1; }
  .rd .p-proof-stage { margin-top: 28px; }
  .rd .p-proof .proof-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; }
  .rd .p-tutorial-text,
  .rd .p-tutorial-video { grid-column: 1 / -1; }
  .rd .p-tutorial-text { max-width: 640px; }
  .rd .p-tutorial-video { margin-top: 28px; }
  .rd .p-try-text,
  .rd .p-try-tool { grid-column: 1 / -1; }
  .rd .p-try-text { max-width: 640px; }
  .rd .p-try-tool { margin-top: 28px; }
  .rd .p-faq .faq { grid-column: 1 / -1; margin-top: 32px; }
}
@media (max-width: 760px) {
  .rd .p-feats { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .rd .p-proof .proof-tabs { grid-template-columns: 1fr; }
  .rd .p-more { padding-top: 88px; }
  .rd .p-what-only { padding-top: 88px; }
  .rd .p-carousel-h { margin-top: 64px; }
  .rd .presets .name { display: block; margin: 0 0 4px; }
  .rd .presets td:first-child { width: auto; }
  .rd .p-feats-h { margin-top: 64px; }
  .rd .dl-rows .download-row { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .rd .cta-strip.p-final { padding: 88px 0 88px; }
  .rd .p-final-actions { width: 100%; flex-direction: column; }
  .rd .p-final-actions .btn { width: 100%; }
  .rd .tda-widget { padding: 14px; }
}
