/* GrowthStack home page. Builds on styles.css (tokens, bar, buttons, FAQ, form, sticky CTA).
   The signature is the stack: the logo's four rising gold bars are the four layers of the system. */

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Nav */
.nav { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; gap: 2rem; margin-left: auto; margin-right: 2rem; }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--dim); text-decoration: none; font-size: 0.975rem; transition: color 0.2s ease; }
  .nav a:hover { color: var(--cream); }
}

/* Shared section rhythm */
.home main > section { padding-block: var(--section); }
.home h2 { max-width: 22ch; }
.quiet {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--cream); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
.quiet:hover { text-decoration-color: var(--gold); color: var(--gold-bright); }

/* First viewport */
.home .top { padding-block: clamp(2.5rem, 6vw, 5rem) var(--section); }
.top-grid { display: grid; gap: 3rem; align-items: end; }
.top h1 { font-size: clamp(2.75rem, 7vw, 4.75rem); line-height: 0.98; letter-spacing: -0.04em; max-width: 10ch; }
.top-lede { margin-top: 1.5rem; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--dim); max-width: 42ch; }
.top-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; margin-top: 2.25rem; }
.top-platforms { margin-top: 1.75rem; font-size: 0.95rem; color: var(--dim); }

.tower { display: flex; flex-direction: column; height: clamp(18rem, 70vw, 34rem); }
.tower-out { text-align: right; font-weight: 650; color: var(--cream); padding-bottom: 0.6rem; }
.tower-bars, .pin-bars {
  list-style: none; margin: 0; padding: 0; flex: 1; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.4rem, 1.4vw, 0.9rem); align-items: end; border-bottom: 1px solid var(--line-strong);
}
.tower-bars li { height: var(--h); background: var(--gold); border-radius: 2px 2px 0 0; display: flex; align-items: flex-end; transform-origin: bottom; }
.tower-bars span { color: var(--ink); font-weight: 650; font-size: clamp(0.78rem, 1.6vw, 1rem); line-height: 1.2; padding: 0.7rem clamp(0.45rem, 1.2vw, 0.9rem); }
.tower-in { padding-top: 0.6rem; font-size: 0.95rem; color: var(--dim); }

@media (prefers-reduced-motion: no-preference) {
  .tower-bars li { animation: grow 1s var(--ease) both; }
  .tower-bars li:nth-child(2) { animation-delay: 0.14s; }
  .tower-bars li:nth-child(3) { animation-delay: 0.28s; }
  .tower-bars li:nth-child(4) { animation-delay: 0.42s; }
  .tower-bars span { animation: fade 0.6s ease both 0.9s; }
  .tower-out { animation: fade 0.6s ease both 1.2s; }
}
@keyframes grow { from { transform: scaleY(0); } to { transform: none; } }

/* Rows: hairline lists used for problems and promises */
.leak-grid, .hold-grid { display: grid; gap: 2rem; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { padding-block: 1.5rem; border-bottom: 1px solid var(--line); display: grid; gap: 0.4rem; }
.rows h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); }
.rows p { color: var(--dim); max-width: 56ch; }

/* The stack */
.home .stack { background: var(--surface); border-block: 1px solid var(--line); }
.stack-head { display: grid; gap: 1rem; max-width: 46rem; }
.stack-head h2 { max-width: 20ch; }
.stack-head p { color: var(--dim); font-size: 1.15rem; max-width: 50ch; }
.stack-grid { display: grid; gap: 2rem; margin-top: 3rem; }
.stack-pin { display: none; }

.layers { list-style: none; margin: 0; padding: 0; }
.layer { padding-block: 2.25rem; border-top: 1px solid var(--line); display: grid; gap: 1rem; }
.layer h3 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); line-height: 1.1; letter-spacing: -0.03em; max-width: 18ch; }
.layer-name { display: block; font-size: 1rem; letter-spacing: 0; color: var(--gold); margin-bottom: 0.5rem; }
.layer > p { color: var(--dim); max-width: 56ch; }
.layer .layer-proof { color: var(--cream); padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.975rem; }
.mini rect { fill: rgba(212, 175, 95, 0.22); }
.layer[data-n="1"] .mini rect:nth-child(-n+1),
.layer[data-n="2"] .mini rect:nth-child(-n+2),
.layer[data-n="3"] .mini rect:nth-child(-n+3),
.layer[data-n="4"] .mini rect { fill: var(--gold); }
.platforms { display: grid; gap: 1rem; margin: 0.25rem 0 0; }
.platforms div { display: grid; gap: 0.2rem; padding-left: 1rem; border-left: 1px solid var(--line-strong); }
.platforms dt { font-weight: 650; }
.platforms dd { margin: 0; color: var(--dim); }

/* Desktop: the bars pin and fill one layer at a time */
@media (min-width: 960px) {
  .stack-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 5rem; }
  .stack-pin { display: flex; flex-direction: column; position: sticky; top: 7rem; height: min(28rem, calc(100vh - 10rem)); align-self: start; }
  .pin-bars li {
    height: var(--h); border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 2px 2px 0 0;
    transform-origin: bottom; transition: background-color 0.6s var(--ease), border-color 0.6s var(--ease), transform 0.6s var(--ease);
  }
  html:not(.js) .pin-bars li,
  .stack[data-layer="1"] .pin-bars li:nth-child(-n+1),
  .stack[data-layer="2"] .pin-bars li:nth-child(-n+2),
  .stack[data-layer="3"] .pin-bars li:nth-child(-n+3),
  .stack[data-layer="4"] .pin-bars li { background: var(--gold); border-color: var(--gold); }
  .pin-label { padding-top: 0.75rem; color: var(--dim); font-size: 0.95rem; }
  .pin-n { color: var(--cream); font-weight: 650; }
  .layer { min-height: min(34rem, 70vh); align-content: center; padding-block: 3rem; }
  .layer:first-child { border-top: 0; }
  .mini { display: none; }
}

/* Who we work with */
.who-head { display: grid; gap: 1rem; }
.who-head p { color: var(--dim); font-size: 1.15rem; max-width: 52ch; }
.who-table { margin-top: 2.5rem; border-bottom: 1px solid var(--line); }
.who-row { display: grid; gap: 0.5rem; padding-block: 1.5rem; border-top: 1px solid var(--line); }
.who-cols { display: none; }
.who-row h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.who-row p { color: var(--dim); margin-top: 0.3rem; }
.who-row a { color: var(--gold); white-space: nowrap; }
.who-row a:hover { color: var(--gold-bright); }
.who-row .who-count { color: var(--cream); font-weight: 650; font-size: 1.1rem; margin-top: 0.4rem; }
.who-count::before { content: "We count: "; color: var(--dim); font-weight: 400; }
.who-note { margin-top: 1.5rem; color: var(--dim); }
@media (min-width: 768px) {
  .who-row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem; align-items: baseline; }
  .who-cols { display: grid; padding-block: 0 0.75rem; border-top: 0; color: var(--dim); font-size: 0.9rem; }
  .who-cols + .who-row { border-top: 1px solid var(--line-strong); }
  .who-row .who-count { margin-top: 0; font-size: 1.25rem; }
  .who-count::before { content: none; }
}

/* Proof ledger */
.proof-grid { display: grid; gap: 2.5rem; }
.proof-copy { display: grid; gap: 1rem; align-content: start; max-width: 48ch; }
.proof-copy > p:first-of-type { color: var(--dim); font-size: 1.1rem; }
.ledger { width: 100%; border-collapse: collapse; }
.ledger th, .ledger td { padding-block: 1.1rem; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.ledger tr:first-child th, .ledger tr:first-child td { border-top: 1px solid var(--line-strong); }
.ledger th { text-align: left; font-weight: 500; font-size: 1.05rem; padding-right: 1rem; }
.ledger th span { display: block; font-size: 0.9rem; color: var(--dim); font-weight: 400; margin-top: 0.15rem; }
.ledger td { text-align: right; font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; white-space: nowrap; }
.ledger .ledger-total th, .ledger .ledger-total td { border-top: 2px solid var(--gold); border-bottom: 0; }
.ledger .ledger-total td { color: var(--gold); }

/* Process */
.home .process { background: var(--surface); border-block: 1px solid var(--line); }
.steps-4 { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 2rem; counter-reset: step; }
.steps-4 li { border-top: 2px solid var(--gold); padding-top: 1.25rem; counter-increment: step; }
.steps-4 li::before { content: "Step " counter(step); display: block; font-size: 0.9rem; color: var(--dim); margin-bottom: 0.4rem; }
.steps-4 h3 { font-size: clamp(1.6rem, 2.4vw, 1.9rem); color: var(--gold); letter-spacing: -0.03em; }
.steps-4 p { margin-top: 0.6rem; color: var(--dim); max-width: 34ch; }
@media (min-width: 640px) { .steps-4 { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; } }
@media (min-width: 1024px) { .steps-4 { grid-template-columns: repeat(4, 1fr); } }

@media (min-width: 960px) {
  .top-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 4.5rem; }
  .leak-grid, .hold-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: start; }
  .proof-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: start; }
}

/* Footer */
.home-foot { padding-block: clamp(3rem, 6vw, 4.5rem) 6.5rem; }
.foot-grid { display: grid; gap: 2.5rem; }
.foot-brand { display: grid; gap: 1rem; justify-items: start; max-width: 32ch; }
.foot-brand p { color: var(--dim); font-size: 0.95rem; }
.foot-brand .ig { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: -11px; color: var(--gold); }
.foot-brand .ig:hover { color: var(--gold-bright); }
.foot-col { display: grid; align-content: start; }
.foot-col h2 { font-size: 0.95rem; font-weight: 600; letter-spacing: 0; color: var(--cream); margin-bottom: 0.4rem; }
.foot-col a { display: inline-flex; align-items: center; min-height: 44px; color: var(--dim); text-decoration: none; font-size: 0.95rem; transition: color 0.2s ease; }
.foot-col a:hover { color: var(--cream); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.875rem; }
.foot-grid { grid-template-columns: repeat(2, 1fr); } .foot-brand { grid-column: 1 / -1; }
@media (min-width: 640px) { .foot-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .foot-brand { grid-column: auto; } }
@media (min-width: 768px) { .home-foot { padding-bottom: 3rem; } }

/* Ads Manager screenshots under the ledger (same treatment as /watch) */
.evidence { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 2rem; border-top: 1px solid var(--line); }
.evidence-head { color: var(--dim); max-width: 62ch; }
.evidence-head b { color: var(--cream); font-weight: 650; }
.shots { display: grid; gap: 1.5rem; margin-top: 1.25rem; align-items: start; }
.shot img { width: 100%; height: auto; padding: 0.6rem; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r); }
.shot figcaption { margin-top: 0.55rem; font-size: 0.875rem; color: var(--dim); }
/* same zoom for both screenshots: columns in proportion to their pixel widths */
@media (min-width: 768px) { .shots { grid-template-columns: minmax(0, 538fr) minmax(0, 658fr); gap: 1.75rem; } }
