/* The homepage (redesign phase 2): eight blocks in the order a visitor needs
   them. Hero with the real app, the listening room, how it works, what you
   take away, a real comparison, two ways to use it, pricing, questions.

   Colours come from theme.css, which loads after this file. This file sets
   the layout of the new blocks and lifts the homepage's small text to a
   12 px floor. The listening room, the case study and the report sample keep
   their markup and IDs, so product.js and case-study.js drive them as before. */

.home { --gutter: 32px; }
.home .eyebrow { font: 600 12px/1.2 Inter, Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--wm-signal); margin: 0 0 14px; }
.home h1 { font-size: clamp(42px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -.045em; font-weight: 650; text-wrap: balance; }
.home h2 { text-wrap: balance; }
.home .fine { font-size: 13px; }

/* 1. Hero */
.home-hero { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.2fr); gap: 56px; align-items: center; padding-block: 64px 40px; }
.home-lede { font-size: 18px; line-height: 1.65; color: var(--wm-soft); max-width: 52ch; margin-top: 22px; }
.home-hero .actions { margin-top: 30px; gap: 12px; }
.home-hero .button { font-size: 15px; }
.home-hero .button span { opacity: .75; font-weight: 500; }
.home-shot { margin: 0; min-width: 0; }
.app-window { border: 1px solid var(--wm-edge); border-radius: 14px; overflow: hidden; background: #05080f; box-shadow: 0 40px 90px rgba(0, 0, 0, .6), inset 0 1px var(--wm-top); }
.app-window img { display: block; width: 100%; height: auto; }
.home-shot figcaption { margin-top: 10px; font-size: 13px; color: var(--wm-caption); }
.trust { border-block: 1px solid var(--wm-line); background: rgba(7, 10, 18, .55); }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 10px 36px; padding-block: 16px; }
.trust p { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 14.5px; color: var(--wm-soft); }
.trust-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wm-signal); }

/* Blocks */
.home-block { padding-block: 96px; }
.home-block + .home-block, .trust + .home-block { border-top: 1px solid var(--wm-line); }
.home .band { background: var(--wm-band); }
.block-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: 40px; }
.block-head .eyebrow { margin: 0; }
.block-head p:not(.eyebrow) { font-size: 17px; line-height: 1.65; color: var(--wm-soft); max-width: 60ch; }

/* 2. The room: same markup, readable small text */
.home .project-label, .home .project-meta, .home .chart-heading, .home .chart-heading span:first-child,
.home .audio-status, .home #clock, .home .room-bottom, .home .room-top, .home .reading-tag,
.home .reading .sample-note, .home .reading-stats dt, .home .frequency-bars > div, .home .stem-mini > div,
.home .stem-mini strong, .home .room-link, .home .project-facts span, .home .listen-moment, .home .reading p { font-size: 12.5px; }
.home .chart-axis { font-size: 12px; }
.home .stem-mini small { font-size: 12px; }
.home .stem-mini > div { grid-template-columns: minmax(0, 108px) minmax(0, 1fr) 84px; }
.home .stem-mini > div { height: 28px; }
.home .chart-panel { height: auto; min-height: 200px; }

/* 3. How it works */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding: 22px; border-radius: 16px; background: var(--wm-tile); border: 1px solid var(--wm-edge); box-shadow: inset 0 1px var(--wm-top); min-width: 0; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; margin-bottom: 14px; border-radius: 50%; border: 1px solid var(--wm-edge); font: 600 13px ui-monospace, Menlo, monospace; color: var(--wm-signal); }
.steps h3 { font-size: 18px; letter-spacing: -.02em; font-weight: 600; }
.steps p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--wm-soft); }
.evidence { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; align-items: start; }
.home .contrast { margin: 0; padding: 26px; }
.home .contrast figcaption { font-size: 19px; }
.home .contrast > p { font-size: 14.5px; line-height: 1.7; color: var(--wm-soft); margin-top: 12px; }
.home .contrast > p:not(:first-of-type) { font-size: 12.5px; color: var(--wm-caption); }
.home .contrast .actions { margin-top: 18px; gap: 8px; }
.home .contrast .button { min-height: 44px; padding: 10px 14px; font-size: 13px; }
.home .contrast-legend, .home .section-chart button span, .home .section-chart .grid i { font-size: 12px; }
.home .section-chart { margin-top: 44px; }
.home .section-chart button span { top: -24px; }
.evidence-parts { padding: 26px; border-radius: 16px; background: var(--wm-tile); border: 1px solid var(--wm-edge); box-shadow: inset 0 1px var(--wm-top); min-width: 0; }
.home .part-table { border-top: 0; padding-top: 0; }
.home .part-table-title, .home .part-table-title span, .home .part-row, .home .part-row strong { font-size: 13px; }
.home .part-table > p { font-size: 12.5px; color: var(--wm-caption); }
.parts-copy { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--wm-line); }
.parts-copy p { font-size: 14.5px; line-height: 1.7; color: var(--wm-soft); }
.parts-copy .fine { font-size: 12.5px; color: var(--wm-caption); }

/* 4. What you take away */
.home .report-proof { padding-block: 96px; }
.home .report-proof .proof-copy p:not(.eyebrow) { font-size: 16px; color: var(--wm-soft); }
.home .report-proof .proof-copy .fine { font-size: 13px; color: var(--wm-caption); }
.home .report-app .paper-values, .home .report-app .paper-footer, .home .topic-index li, .home .report-app p.finding-type, .home .report-app .paper-heading { font-size: 12.5px; }

/* 5. A real comparison */
.home .case-study { padding-block: 96px 48px; border-bottom: 0; }
.home .case-intro > p { font-size: 16px; color: var(--wm-soft); }
.case-method-line { margin-top: 16px; font-size: 14px; line-height: 1.65; color: var(--wm-soft); }
.home #case-status, .home .case-study .case-footnote, .home .case-versions span, .home .case-metric-label,
.home .case-metric-label span, .home .case-energy-row, .home .case-measures, .home .case-measures caption, .home .case-method { font-size: 12.5px; }
.home .case-insight { font-size: 14px; color: var(--wm-soft); }

/* 6. Two ways to use it */
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.way { padding: 26px; border-radius: 16px; background: var(--wm-tile); border: 1px solid var(--wm-edge); box-shadow: inset 0 1px var(--wm-top); min-width: 0; }
.way-tag { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 12px; border-radius: 999px; background: #131c31; border: 1px solid var(--wm-edge); font-size: 13px; color: var(--wm-soft); }
.way h3 { margin-top: 14px; font-size: 22px; letter-spacing: -.025em; font-weight: 600; }
.way p:not(.way-tag) { margin-top: 10px; font-size: 15px; line-height: 1.7; color: var(--wm-soft); }
.way ul { margin: 14px 0 0; padding-left: 20px; font-size: 15px; line-height: 1.8; color: var(--wm-soft); }
.way .text-link { margin-top: 8px; color: var(--wm-blue); font-size: 15px; }
.companion { margin-top: 18px; font-size: 14px; color: var(--wm-caption); }

/* 7. Pricing and compatibility */
.home .pricing { padding-block: 96px; align-items: start; }
.home .price-intro > p:not(.eyebrow) { font-size: 16px; color: var(--wm-soft); }
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.platform-tile { padding: 18px; border-radius: 14px; background: var(--wm-tile); border: 1px solid var(--wm-edge); box-shadow: inset 0 1px var(--wm-top); min-width: 0; }
.platform-tile h3 { font-size: 16px; font-weight: 600; }
.platform-tile p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--wm-soft); }
.unsigned-note { margin-top: 14px; padding: 14px 16px; border-radius: 0 12px 12px 0; border-left: 2px solid var(--wm-amber); background: rgba(243, 195, 125, .07); font-size: 14px; line-height: 1.65; color: var(--wm-soft); }
.unsigned-note a { color: var(--wm-blue); text-decoration: underline; text-underline-offset: 3px; }
.home .price-intro > .text-link { font-size: 14px; margin-top: 10px; text-decoration: none; color: var(--wm-blue); }
.home .offer-top span, .home .offer-terms, .home .offer li, .home .refund { font-size: 13px; }

/* 8. Questions, and who makes it */
.home .faq { padding-block: 96px; border-top: 0; }
.home .faq h2 { max-width: 12ch; }
.home .questions summary { font-size: 15px; }
.home .questions details p { font-size: 15px; color: var(--wm-soft); }
.maker { margin-top: 28px; padding: 22px; border-radius: 16px; background: var(--wm-tile); border: 1px solid var(--wm-edge); box-shadow: inset 0 1px var(--wm-top); }
.maker h3 { font-size: 18px; font-weight: 600; }
.maker p { margin-top: 10px; font-size: 14.5px; line-height: 1.7; color: var(--wm-soft); }
.home footer p, .home footer nav { font-size: 13px; }

/* Widths */
@media (max-width: 1050px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-hero { gap: 36px; }
}
@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; padding-top: 44px; }
  .evidence, .ways, .home .pricing { grid-template-columns: 1fr; }
  .home .faq { grid-template-columns: 1fr; }
  .home-block, .home .report-proof, .home .pricing, .home .faq { padding-block: 64px; }
}
@media (max-width: 600px) {
  .home h1 { font-size: clamp(38px, 11vw, 52px); }
  .home-lede { font-size: 16.5px; }
  .home-hero .actions { flex-direction: column; align-items: stretch; }
  .home-hero .button { width: 100%; }
  .steps, .platforms { grid-template-columns: 1fr; }
  .block-head { margin-bottom: 28px; }
  .home .contrast, .evidence-parts, .way { padding: 20px; }
  .home .part-row { grid-template-columns: 118px minmax(0, 1fr) 46px; gap: 10px; font-size: 13px; }
  .home .section-chart button span { font-size: 12px; }
  .home .section-chart .grid i { display: none; }
  .home .trust p:last-child { display: flex; }
  .home .case-versions { grid-template-columns: 1fr; }
}

/* The scale labels get their own strip at the right, clear of the last bar. */
.home .section-chart { padding-right: 36px; }
.home .section-chart .grid i { right: 0; color: var(--wm-caption); }
.home .price-intro > .unsigned-note { max-width: none; }
@media (max-width: 600px) { .home .section-chart { padding-right: 0; } }
/* On a phone ten value labels collide. Show the three the copy talks about
   (the opening, the 1:08 peak, the ending); every bar still names its value
   in its accessible label and its title. */
@media (max-width: 600px) {
  .home .section-chart button span { display: none; }
  .home .section-chart button:nth-of-type(1) span,
  .home .section-chart button:nth-of-type(5) span,
  .home .section-chart button:nth-of-type(10) span { display: block; }
}

/* The loudness and stereo charts: scale labels sit in their own column, as
   HTML, so they stay 12 px however wide the drawing stretches. */
.home .chart { padding-left: 34px; }
.chart-scale { position: absolute; left: 0; top: 0; bottom: 0; width: 30px; }
.chart-scale span { position: absolute; right: 4px; transform: translateY(-50%); font: 12px/1 ui-monospace, Menlo, Consolas, monospace; color: var(--wm-caption); font-variant-numeric: tabular-nums; }
.home .chart-axis { margin-left: 34px; }

/* The last few labels under 12 px. */
.home .listening-room .tabs button { font-size: 13.5px; }
.home .reading-stats small { font-size: 12px; }
.home .customer-quote figcaption { font-size: 13px; }
.home .report-app p.topic-heading span { font-size: 12.5px; }
