/* ═══════════════════════════════════════════════════════════════════════
   /scrape/amazon — "The catalog, in rows."
   A catalog of millions becomes a dataset you own. Distinct from /bypass:
   no sticky-scrubber, saturated colour alternates teal / purple / teal,
   tabular + oversize energy, a different interaction per act.
   BG rhythm: dark hero -> teal endpoints -> dark filters -> purple trending
   -> dark record -> teal closer. Chrome via _shared. Real DS CTA variants
   only (default teal on purple, --purple on teal); never repaint the button.
   ═══════════════════════════════════════════════════════════════════════ */
@import "../../_ds/fonts.css";
@import "../../_ds/theme.css";
@import "../../_shared/chrome.css";
@import "../../_shared/components.css";
@import "../../_shared/audience-switcher.css";

.sc-main { position: relative; overflow-x: clip; }

[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 640ms cubic-bezier(0.22,1,0.36,1), transform 640ms cubic-bezier(0.22,1,0.36,1); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ═══════════════════════════════════════════════════════════════════════
   ACT 1 — the streaming catalog table (dark, oversize, bleeds off the right)
   ═══════════════════════════════════════════════════════════════════════ */
.sc-hero { position: relative; padding: clamp(120px, 16vh, 190px) 0 clamp(56px, 8vh, 100px); }
.sc-hero-top { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 80px); display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.sc-hero-head { max-width: 680px; }
.sc-hero-head .eyebrow { margin-bottom: 16px; }
.sc-hero-h1 { font-family: var(--font-display); font-weight: 500; font-size: var(--mkt-hero-xl); line-height: 0.96; letter-spacing: -0.03em; color: var(--text-primary); margin: 0; }
.sc-hero-h1 .l2 { display: block; color: var(--text-primary); }
.sc-hero-aside { max-width: 340px; }
.sc-hero-sub { font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.5; color: var(--text-secondary); margin: 0 0 18px; }
.sc-hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.sc-hero-cta .link-cta { align-self: center; padding-top: 6px; }

.sc-tablewrap { margin-top: clamp(44px, 7vh, 92px); position: relative; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent 100%); mask-image: linear-gradient(90deg, #000 82%, transparent 100%); }
.sc-table { width: max(1500px, 122vw); margin-left: clamp(20px, 5vw, 80px); border-top: 1px solid var(--border-subtle); font-family: var(--font-code); }
.sc-thead, .sc-trow { display: grid; grid-template-columns: 54px minmax(280px, 1.4fr) 120px 96px 130px 130px 1fr; align-items: center; }
.sc-thead { padding: 12px 0; border-bottom: 1px solid var(--border-subtle); }
.sc-thead span { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-quaternary); padding-right: 20px; }
.sc-trow { padding: 15px 0; border-bottom: 1px solid color-mix(in srgb, var(--border-subtle) 55%, transparent); opacity: 0; transform: translateY(10px); transition: opacity 460ms ease, transform 460ms ease, background 200ms ease; }
.sc-trow.is-in { opacity: 1; transform: none; }
.sc-trow:hover { background: color-mix(in srgb, var(--background) 84%, #fff 16%); }
.sc-trow > span { font-size: 13.5px; color: var(--text-secondary); padding-right: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-c-rank { color: var(--text-quaternary) !important; font-size: 12px !important; }
.sc-c-title { color: var(--text-primary) !important; }
.sc-c-price { color: #7ADAE6 !important; }
.sc-c-rating::before { content: "\2605 "; color: var(--text-tertiary); }
.sc-tstatus { margin: 16px 0 0; padding: 0 clamp(20px, 5vw, 80px); font-family: var(--font-code); font-size: 12.5px; color: var(--text-tertiary); display: inline-flex; align-items: center; gap: 9px; }
.sc-tstatus::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, #7ADAE6 45%, transparent); animation: scPulse 1.1s ease-in-out infinite; }
.sc-tstatus.is-ready::before { background: #7ADAE6; animation: none; }
@keyframes scPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .sc-tstatus::before { animation: none; } }

/* ═══════════════════════════════════════════════════════════════════════
   ACT 2 — one call, any shape (SOLID teal band, early, bloom top-left)
   ═══════════════════════════════════════════════════════════════════════ */
.sc-shape { --rise: 0; position: relative; overflow: hidden; clip-path: circle(calc(var(--rise) * 155%) at 80% 0%); will-change: clip-path; background: #7ADAE6; padding: clamp(96px, 15vh, 190px) clamp(20px, 5vw, 80px); margin-top: clamp(40px, 6vh, 80px); }
@media (prefers-reduced-motion: reduce) { .sc-shape { clip-path: none; } }
.sc-shape-inner { max-width: 1200px; margin-inline: auto; }
.sc-shape-h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--mkt-h2); line-height: 1.02; letter-spacing: -0.024em; color: #1D1612; margin: 0; max-width: 15ch; }
.sc-shape-lead { font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.5; color: rgba(29,22,18,0.82); margin: 20px 0 0; max-width: 54ch; }
.sc-endpoints { list-style: none; margin: clamp(40px, 6vh, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.sc-endpoint { border: 1px solid rgba(29,22,18,0.24); border-radius: 12px; padding: 22px 22px 24px; }
.sc-endpoint .k { font-family: var(--font-code); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(29,22,18,0.62); }
.sc-endpoint .u { font-family: var(--font-code); font-size: var(--mkt-body-sm); color: rgba(29,22,18,0.82); margin: 12px 0 0; word-break: break-all; }
.sc-endpoint .u b { color: #1D1612; font-weight: 600; }
.sc-endpoint .d { font-family: var(--font-base); font-size: 13.5px; line-height: 1.5; color: rgba(29,22,18,0.7); margin: 10px 0 0; }
.sc-markets { margin: clamp(28px, 4vh, 44px) 0 0; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.sc-markets-label { font-family: var(--font-code); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(29,22,18,0.62); }
.sc-market { font-family: var(--font-code); font-size: 13px; color: #1D1612; border: 1px solid rgba(29,22,18,0.24); border-radius: 999px; padding: 6px 13px; }
.sc-markets-more { font-family: var(--font-code); font-size: 13px; color: rgba(29,22,18,0.62); }

/* ═══════════════════════════════════════════════════════════════════════
   ACT 3 — why scraping Amazon breaks without help (dark, obstacle -> handled)
   ═══════════════════════════════════════════════════════════════════════ */
.sc-why { padding: clamp(96px, 15vh, 190px) clamp(20px, 5vw, 80px); max-width: 1200px; margin-inline: auto; }
.sc-why-head { max-width: 700px; }
.sc-why-h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--mkt-h2); line-height: 1.05; letter-spacing: -0.02em; color: var(--text-primary); margin: 0; }
.sc-why-lead { font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.55; color: var(--text-secondary); margin: 18px 0 0; max-width: 56ch; }
.sc-why-list { margin-top: clamp(40px, 6vh, 68px); border-top: 1px solid var(--border-subtle); }
.sc-why-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 72px); padding: clamp(22px, 3vh, 34px) 0; border-bottom: 1px solid color-mix(in srgb, var(--border-subtle) 60%, transparent); }
.sc-why-k { font-family: var(--font-code); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 10px; }
.sc-why-problem .sc-why-k { color: #F0524B; }
.sc-why-fix .sc-why-k { color: #7ADAE6; }
.sc-why-t { font-family: var(--font-display); font-size: clamp(19px, 1.7vw, 24px); line-height: 1.15; color: var(--text-primary); margin: 0; }
.sc-why-d { font-family: var(--font-base); font-size: 14px; line-height: 1.55; color: var(--text-tertiary); margin: 8px 0 0; }
.sc-why-fix .sc-why-d { color: var(--text-secondary); }

/* ═══════════════════════════════════════════════════════════════════════
   ACT 3 — every filter is a parameter (dark, asymmetric rail + live query)
   ═══════════════════════════════════════════════════════════════════════ */
.sc-filters { padding: clamp(96px, 15vh, 190px) clamp(20px, 5vw, 80px); max-width: 1280px; margin-inline: auto; }
.sc-filters-head { max-width: 640px; }
.sc-filters-h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--mkt-h2); line-height: 1.05; letter-spacing: -0.02em; color: var(--text-primary); margin: 0; }
.sc-filters-lead { font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.55; color: var(--text-secondary); margin: 18px 0 0; max-width: 52ch; }
.sc-filters-grid { margin-top: clamp(40px, 6vh, 68px); display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 3vw, 56px); align-items: start; }
.sc-facets-label, .sc-query-label { font-family: var(--font-code); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-quaternary); margin: 0 0 16px; }
.sc-facets { display: flex; flex-wrap: wrap; gap: 10px; }
.sc-facets-label { flex: 0 0 100%; }
.sc-facet { font-family: var(--font-base); font-size: 13.5px; color: var(--text-secondary); background: transparent; border: 1px solid var(--border-subtle); border-radius: 999px; padding: 9px 16px; cursor: pointer; transition: border-color 200ms ease, color 200ms ease, background 200ms ease; }
.sc-facet:hover { border-color: color-mix(in srgb, var(--text-primary) 30%, var(--border-subtle)); color: var(--text-primary); }
.sc-facet.is-on { color: #7ADAE6; border-color: color-mix(in srgb, #7ADAE6 55%, transparent); background: color-mix(in srgb, #7ADAE6 10%, transparent); }
.sc-facet.is-on::before { content: "\2713 "; }
.sc-query-panel { border: 1px solid var(--border-subtle); border-radius: var(--radius-default, 12px); padding: clamp(20px, 2.4vw, 30px); }
.sc-query-label b { color: #7ADAE6; }
.sc-query { display: block; font-family: var(--font-code); font-size: var(--mkt-body); line-height: 1.6; color: var(--text-primary); word-break: break-all; }
.sc-query-note { font-family: var(--font-base); font-size: 13.5px; line-height: 1.5; color: var(--text-tertiary); margin: 20px 0 0; }

/* ═══════════════════════════════════════════════════════════════════════
   ACT 4 — trending (SOLID purple band, segmented leaderboard, oversize ranks)
   ═══════════════════════════════════════════════════════════════════════ */
.sc-trending { --rise: 0; position: relative; overflow: hidden; clip-path: circle(calc(var(--rise) * 155%) at 20% 0%); will-change: clip-path; background: #7C4FE8; padding: clamp(96px, 15vh, 190px) clamp(20px, 5vw, 80px); }
@media (prefers-reduced-motion: reduce) { .sc-trending { clip-path: none; } }
.sc-trending-inner { max-width: 1120px; margin-inline: auto; }
.sc-trending-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.sc-trending-h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--mkt-h2); line-height: 1.02; letter-spacing: -0.024em; color: #fff; margin: 0; max-width: 12ch; }
.sc-seg { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid rgba(255,255,255,0.34); border-radius: 999px; }
.sc-seg button { font-family: var(--font-base); font-size: 13px; color: #EBDDFF; background: transparent; border: none; border-radius: 999px; padding: 8px 16px; cursor: pointer; white-space: nowrap; transition: background 200ms ease, color 200ms ease; }
.sc-seg button:hover { color: #fff; }
.sc-seg button.is-on { background: #fff; color: #7C4FE8; }
.sc-board { margin-top: clamp(36px, 5vh, 60px); }
.sc-rank { list-style: none; margin: 0; padding: 0; display: none; }
.sc-rank.is-on { display: block; }
.sc-rank li { display: grid; grid-template-columns: 84px 1fr auto auto; align-items: center; gap: 20px; padding: clamp(14px, 2vh, 22px) 0; border-bottom: 1px solid rgba(255,255,255,0.2); }
.sc-rank li:last-child { border-bottom: none; }
.sc-rk-n { font-family: var(--font-display); font-weight: 500; font-size: var(--mkt-h2); line-height: 1; color: #fff; letter-spacing: -0.03em; }
.sc-rk-name { font-family: var(--font-base); font-size: var(--mkt-body); color: #fff; }
.sc-rk-price { font-family: var(--font-code); font-size: 14px; color: #EBDDFF; }
.sc-rk-move { font-family: var(--font-code); font-size: 13px; color: #fff; white-space: nowrap; opacity: 0.85; }
.sc-rk-move.flat { opacity: 0.5; }

/* ═══════════════════════════════════════════════════════════════════════
   ACT 5 — anatomy of a record (dark, oversize asymmetric spec sheet)
   ═══════════════════════════════════════════════════════════════════════ */
.sc-record { padding: clamp(100px, 16vh, 200px) clamp(20px, 5vw, 80px); max-width: 1280px; margin-inline: auto; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.sc-record-head { position: sticky; top: 120px; }
.sc-record-h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--mkt-h2); line-height: 1.02; letter-spacing: -0.024em; color: var(--text-primary); margin: 0; }
.sc-record-lead { font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.55; color: var(--text-secondary); margin: 20px 0 0; max-width: 40ch; }
.sc-rec-sheet { border-top: 1px solid var(--border-subtle); }
.sc-rec-row { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: baseline; padding: clamp(16px, 2.4vh, 26px) 0; border-bottom: 1px solid color-mix(in srgb, var(--border-subtle) 60%, transparent); transition: opacity 240ms ease; }
[data-sc-record].is-focus .sc-rec-row:not(.is-active) { opacity: 0.32; }
.sc-rec-key { font-family: var(--font-code); font-size: 13px; color: var(--text-tertiary); }
.sc-rec-val { font-family: var(--font-display); font-size: var(--mkt-h4); line-height: 1.1; color: var(--text-primary); letter-spacing: -0.01em; }
.sc-rec-val .unit { color: #7C4FE8; }
.sc-rec-row.is-active .sc-rec-key { color: #7C4FE8; }

/* ═══════════════════════════════════════════════════════════════════════
   ACT 6 — closer (SOLID teal band). CTA uses the real --purple variant.
   ═══════════════════════════════════════════════════════════════════════ */
.sc-closer { --rise: 0; position: relative; overflow: hidden; clip-path: circle(calc(var(--rise) * 155%) at 80% 0%); will-change: clip-path; background: #7ADAE6; padding: clamp(110px, 20vh, 240px) clamp(20px, 5vw, 80px); }
@media (prefers-reduced-motion: reduce) { .sc-closer { clip-path: none; } }
.sc-closer-inner { max-width: 1100px; margin-inline: auto; }
.sc-closer-scale { font-family: var(--font-code); font-size: var(--mkt-body-sm); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(29,22,18,0.62); margin: 0 0 18px; }
.sc-closer-h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(44px, 7vw, 116px); line-height: 0.94; letter-spacing: -0.03em; color: #1D1612; margin: 0; }
.sc-closer-sub { font-family: var(--font-base); font-size: var(--mkt-lead); line-height: 1.5; color: rgba(29,22,18,0.82); margin: 28px 0 0; max-width: 46ch; }
.sc-closer-cta { margin-top: 40px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.sc-closer-tagline { font-family: var(--font-code); font-size: 13px; letter-spacing: 0.04em; color: rgba(29,22,18,0.62); }
.sc-uses { margin: clamp(40px, 6vh, 64px) 0 0; padding-top: clamp(24px, 3vh, 36px); border-top: 1px solid rgba(29,22,18,0.24); }
.sc-uses-label { font-family: var(--font-code); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(29,22,18,0.62); margin: 0 0 14px; }
.sc-uses-list { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.sc-use { font-family: var(--font-base); font-size: 14px; color: #1D1612; border: 1px solid rgba(29,22,18,0.24); border-radius: 999px; padding: 8px 15px; }

/* is-on-* topbar inversion scoped to the floating topbar only (teal bands:
   endpoints + closer -> dark pill; purple band: trending -> white pill). */

/* ═══════════════════════════════════════════════════════════════════════
   Mobile / reduced-motion (<=900px)
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .sc-hero-top { align-items: flex-start; }
  .sc-table { width: 940px; }
  .sc-thead, .sc-trow { grid-template-columns: 40px minmax(180px, 1.4fr) 90px 74px 100px; }
  .sc-thead span:nth-child(n+6), .sc-trow > span:nth-child(n+6) { display: none; }
  .sc-filters-grid { grid-template-columns: 1fr; gap: 32px; }
  .sc-trending-head { align-items: flex-start; }
  /* Keep the pill on ONE row and scroll it instead of wrapping into a tall
     stadium blob with the active pill floating. */
  .sc-seg { display: flex; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .sc-seg::-webkit-scrollbar { display: none; }
  .sc-seg button { flex: 0 0 auto; }
  .sc-rank li { grid-template-columns: 56px 1fr auto; gap: 12px; }
  .sc-rk-price { display: none; }
  .sc-record { grid-template-columns: 1fr; gap: 28px; }
  .sc-record-head { position: static; }
  .sc-rec-row { grid-template-columns: 120px 1fr; gap: 16px; }
  .sc-why-row { grid-template-columns: 1fr; gap: 14px; }
  .sc-why-fix { padding-top: 14px; border-top: 1px dashed color-mix(in srgb, var(--border-subtle) 70%, transparent); }
  .sc-shape, .sc-trending, .sc-closer { clip-path: none !important; }
}
