/* FeedTamer Premium Home Page (WO-4)
   Locked art direction: instrument-readout, 1120px grid, 720px prose measure,
   n0/n1/n2 planes, 120px/80px rhythm, verified real proof captures. */

/* --- Outer Grid & Reading Measure (F5) --- */
.wrap {
  max-width: 1120px;
  padding: 0 24px;
}

/* --- Section Bands & Alternating Planes (F3, F5) --- */
/* n0 = page base (#16191c), n1 = section band (#1d2125), n2 = contained card (#2c3238) */

.film-section {
  background-color: var(--n-1);
  padding: 120px 0;
  border-top: none;
}

.demo-section {
  background-color: var(--n-0);
  padding: 120px 0;
}

.free-vs-paid {
  background-color: var(--n-1);
  padding: 120px 0;
  border-top: none;
}

#audiences.features-section {
  background-color: var(--n-0);
  padding: 120px 0;
  border-top: none;
}

#features.features-section {
  background-color: var(--n-1);
  padding: 120px 0;
  border-top: none;
}

#guides.features-section {
  background-color: var(--n-0);
  padding: 120px 0;
  border-top: none;
}

#privacy.features-section {
  background-color: var(--n-1);
  padding: 120px 0;
  border-top: none;
}

#pricing.pricing-section {
  background-color: var(--n-0);
  padding: 120px 0;
  border-top: none;
}

#faq.faq-section {
  background-color: var(--n-1);
  padding: 120px 0;
  border-top: none;
}

@media (max-width: 860px) {
  .film-section,
  .demo-section,
  .free-vs-paid,
  #audiences.features-section,
  #features.features-section,
  #guides.features-section,
  #privacy.features-section,
  #pricing.pricing-section,
  #faq.faq-section {
    padding: 80px 0;
  }
}

/* Section Rhythm: 64px between claim and proof/content, 720px prose measure */
.section-title {
  margin-bottom: 64px;
}

.section-title h2 {
  font-size: 36px;
  line-height: 44px;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.section-title p {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-dim);
  margin-inline: auto;
}

.legal-sheet,
.pricing-notes,
.faq-list {
  max-width: 720px;
  margin-inline: auto;
  text-align: left;
}

/* --- HERO (F1) --- */
.hero {
  padding-top: 80px;
  padding-bottom: 48px;
  text-align: left;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1100px) {
  .hero-grid {
    grid-template-columns: 5fr 7fr;
    gap: 48px;
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
}

.hero h1.hero-headline {
  font-size: 56px;
  line-height: 60px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 16px;
  text-align: left;
}

.hero-subhead {
  font-size: 20px;
  line-height: 30px;
  color: var(--text-dim);
  margin: 0 0 32px;
  text-align: left;
  max-width: 60ch;
}

.hero .hero-actions {
  display: flex;
  justify-content: flex-start;
  gap: var(--s-3);
  margin-bottom: 0;
  flex-wrap: wrap;
}

/* Hero Facts Strip directly below Hero */
.hero-facts {
  padding-bottom: 64px;
}

.hero-facts-inner {
  max-width: 60ch;
  text-align: left;
}

.hero-facts-lead {
  font-size: 14px;
  line-height: 22px;
  color: var(--text-dim);
  margin: 0 0 12px;
}

.hero-facts-meta {
  font-size: 13px;
  line-height: 20px;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 640px) {
  .hero {
    padding-top: 48px;
    padding-bottom: 32px;
  }
  .hero h1.hero-headline {
    font-size: 34px;
    line-height: 38px;
  }
  .hero-subhead {
    font-size: 18px;
    line-height: 26px;
    margin-bottom: 24px;
  }
  .hero .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero .hero-actions .btn {
    width: 100%;
  }
  .hero-facts {
    padding-bottom: 48px;
  }
}

/* --- Instrument Bezel (F1, F2) --- */
.bezel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--n-2);
  overflow: hidden;
}

.bezel-header {
  padding: 16px 20px;
  background: var(--n-2);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bezel-readout {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.bezel-label {
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bezel-counts {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.bezel-count {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.bezel-kept {
  color: var(--admit);
}

.bezel-removed {
  color: var(--deny);
}

.bezel-ticks {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}

.tick {
  display: inline-block;
  width: 8px;
  height: 16px;
  border-radius: 2px;
  flex-shrink: 0;
}

.tick-admit {
  background-color: var(--admit);
}

.tick-deny {
  background-color: var(--deny);
}

.bezel-screen {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--surface-sunken);
  line-height: 0;
}

.bezel-screen img {
  display: block;
  width: 100%;
  height: auto;
}

/* Hairline gate sweep across image */
.bezel-sweep {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: var(--n-5);
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .bezel.sweep-active .bezel-sweep {
    animation: gateSweep 600ms cubic-bezier(0.2, 0.8, 0.4, 1) forwards;
  }
}

@keyframes gateSweep {
  0% {
    left: 0%;
    opacity: 0.85;
  }
  90% {
    opacity: 0.85;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bezel-sweep {
    display: none !important;
    animation: none !important;
  }
}

/* --- PROOF PAIR (F2) --- */
#proof-pair.proof-pair {
  margin: 64px 0 0;
}

.proof-pair-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

@media (max-width: 1100px) {
  .proof-pair-grid {
    grid-template-columns: 1fr;
  }
}

.proof-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.proof-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

/* --- COMPARE BAND + PRICING PLANES (F3) --- */
.free-vs-paid-panes {
  align-items: start;
  gap: 32px;
}

.free-vs-paid-pane {
  background: var(--n-2);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 48px;
}

@media (max-width: 640px) {
  .free-vs-paid-pane {
    padding: 24px;
  }
}

.pricing-grid {
  gap: 0 32px;
}

.pricing-card[data-offer="free"],
.pricing-card[data-plan="monthly"] {
  background: var(--n-1);
  border: 1px solid var(--line);
}

.pricing-card[data-plan="annual"] {
  position: relative;
  background: var(--n-2);
  border: 1px solid var(--premium-line);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 8px;
  background: var(--n-0);
  border: 1px solid var(--premium-line);
  border-radius: 6px;
  font-size: 14px;
  line-height: 22px;
  font-weight: 600;
  color: var(--text);
}
.plan-badge-icon {
  flex: none;
  color: var(--premium);
}

/* --line equals the n2 card plane, so a hairline on a card needs its own tone step (between n2 and n3) */
:root {
  --premium: #e3b341;
  --premium-line: rgba(227, 179, 65, 0.45);
  --line-card: #3d444c;
}
.subject-chip,
.pane-chip {
  border-color: var(--line-card);
}

.bezel-tier {
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  color: var(--text-dim);
  border: 1px solid var(--line-card);
  border-radius: 6px;
  padding: 2px 8px;
}

/* --- Round 3: form controls inherit the page font; the illustrative demo is a compact results list; section cadence varies --- */
button, input, select, textarea {
  font-family: inherit;
}

/* The demo has no thumbnails we own: a list of rows with a label column reads as designed, a grid of blank boxes reads as a wireframe */
.demo-content {
  grid-template-columns: 1fr;
  gap: 8px;
}
.video-card {
  display: grid;
  grid-template-columns: 216px 1fr;
  align-items: stretch;
}
.video-card .thumb {
  height: auto;
  min-height: 72px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--n-2);
}
.video-card .card-tags,
.video-card .admit-tag,
.video-card .blocked-tag,
.video-card .subscription-tag {
  position: static;
}
.video-card .card-tags {
  flex-wrap: wrap;
}
.video-card .details {
  align-self: center;
}
@media (max-width: 640px) {
  .video-card {
    grid-template-columns: 1fr;
  }
  .video-card .thumb {
    min-height: 0;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
  }
}

/* Cadence: claim, proof, detail, action do not all breathe the same */
@media (min-width: 861px) {
  .film-section { padding: 96px 0; }
  .demo-section { padding: 80px 0; }
  #audiences.features-section { padding: 96px 0; }
  #guides.features-section { padding: 96px 0; }
  #faq.faq-section { padding: 96px 0; }
}

/* --- Real recordings (hero loop and the demo player) --- */
.proof-video {
  display: block;
  width: 100%;
  height: auto;
  background: var(--n-0);
}
.bezel-header-slim {
  padding: 16px 20px;
  display: flex;
  align-items: center;
}
.proof-demo {
  max-width: 1120px;
  margin: 0 auto;
}
.proof-demo-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.proof-step {
  font-size: 17px;
  line-height: 27px;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--n-1);
  border: 1px solid var(--line-card);
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
}
.proof-step[aria-pressed="true"] {
  color: var(--text);
  background: var(--n-2);
  border-color: var(--admit);
}
.proof-step:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.proof-demo figcaption {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 22px;
}
