/*
 * The home page under the hero: what the words mean, the app's own screens, who it is for, how it works and the
 * price. Scoped to body.home; every colour, size and duration comes from theme.css.
 */
.home h1 { hyphens: manual; }                  /* "every" never breaks as "ev-ery" */
.home-kicker, .feature-kicker {
  margin: 0 0 var(--space-4); font-size: var(--size-micro); font-weight: var(--weight-strong);
  letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--red);
}
.home .home-line { font-size: var(--size-lede); line-height: var(--lead-body); max-width: var(--measure-copy); margin: 0 0 var(--space-6); }
.home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); }
.home-try {
  display: inline-flex; align-items: center; min-height: var(--touch); color: var(--text); text-decoration: underline;
  text-underline-offset: .25em; text-decoration-color: var(--red);
}
.home-try::after { content: "\2192"; margin-left: var(--space-2); }
.home-try:focus-visible { outline: 2px solid var(--green); outline-offset: var(--space-1); }
.home-legend {
  list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; gap: var(--space-2);
  font-size: var(--size-small); color: var(--text-dim);
}
.home-legend li { display: flex; align-items: center; gap: var(--space-3); margin: 0; }
.key { width: var(--key); height: var(--key); border-radius: var(--radius-bar); flex: none; }
.key-lit { background: var(--light); box-shadow: var(--glow-light); }
.key-empty { border: 1px solid var(--glass); }
.key-gain { background: var(--green); box-shadow: var(--glow-green); }

/* A band: one idea, full width. Rink still life: each band is one lit object beside its words (concept B). */
.home .home-band { background: none; border-radius: 0; margin: 0; padding: var(--space-8) var(--edge); }
.band-inner { max-width: var(--measure-wide); margin: 0 auto; }
.home .band-title {
  margin: 0 0 var(--space-5); max-width: 16ch; font-family: var(--font-serif); font-size: var(--size-band); line-height: 1.04;
  font-weight: var(--weight-regular); letter-spacing: var(--track-serif);
}
.home .band-title-center { margin-inline: auto; text-align: center; }
.band-lede { margin: 0; max-width: var(--measure-copy); font-size: var(--size-lede); line-height: var(--lead-body); color: var(--text-dim); }
.home-band h3 { margin: 0 0 var(--space-2); font-size: var(--size-title); font-weight: var(--weight-strong); line-height: var(--lead-tight); }
.home-band p { line-height: var(--lead-body); }

/* Copy on one side, the object on the other; .still-flip puts the object first. */
.still-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--object-wide)); align-items: center; gap: var(--space-7); }
.still-flip { grid-template-columns: minmax(0, var(--object-wide)) minmax(0, 1fr); }
.still-flip .still-object { order: -1; }
.still-object {
  display: block; width: 100%; height: auto; justify-self: center;
  -webkit-mask-image: var(--object-fade); mask-image: var(--object-fade);   /* the photo's dark edges melt into the page */
}

/* What the words mean: three columns under the puck, each opened by a red rule. */
.terms, .people, .steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); }
.terms { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: var(--space-6); }
.term p, .person p, .step p { margin: 0; color: var(--text-dim); font-size: var(--size-body); }
.term h3::before { content: ""; display: block; width: var(--space-6); height: var(--line-bold); background: var(--red); margin-bottom: var(--space-4); }

/* The app: three real screens fanned as one lit object under a spotlight. */
.fan {
  position: relative; display: flex; justify-content: center; align-items: flex-end; margin: var(--space-7) 0 var(--space-8);
  padding-top: var(--space-6); background: var(--spot);
}
.phone {
  margin: 0; width: var(--phone-wide); border-radius: var(--radius-phone); overflow: hidden; flex: none;
  border: 6px solid var(--card-ice); outline: 1px solid var(--phone-edge); box-shadow: var(--shadow-phone); background: var(--card-ice);
}
.phone img { display: block; width: 100%; height: auto; }
.phone-center { position: relative; z-index: 1; margin-bottom: var(--fan-lift); }
.phone-left { transform: rotate(calc(-1 * var(--fan-tilt))); margin-right: calc(-1 * var(--fan-overlap)); opacity: var(--fan-side); }
.phone-right { transform: rotate(var(--fan-tilt)); margin-left: calc(-1 * var(--fan-overlap)); opacity: var(--fan-side); }
.feature-grid { display: grid; gap: var(--space-7) var(--space-6); grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.feature-copy h3 { font-size: var(--size-feature-sm); margin-bottom: var(--space-3); }
.feature-copy p { margin: 0 0 var(--space-4); color: var(--text-dim); font-size: var(--size-body); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.ticks li { margin: 0; padding-left: var(--space-6); position: relative; color: var(--text); font-size: var(--size-small); }
.ticks li::before { content: "\2713"; position: absolute; left: 0; color: var(--green); font-weight: var(--weight-heavy); }

/* Who it is for: under the goal lamp, a red mark on each. */
.people { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--space-5) var(--space-6); }
.person { padding-left: var(--space-4); border-left: var(--line-bold) solid var(--red); }

/* How it works: numbered steps beside the tape, numerals in the headline serif. */
.steps { counter-reset: step; gap: var(--space-5); }
.step { counter-increment: step; display: grid; grid-template-columns: var(--step-numeral) minmax(0, 1fr); column-gap: var(--space-4); }
.step::before { content: counter(step); grid-row: span 2; font-family: var(--font-serif); font-size: var(--size-band); line-height: 1; color: var(--red); font-variant-numeric: tabular-nums; }

/* Free and Pro side by side beside the PRO scoreboard, then the price and the button. */
.plans { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin-bottom: var(--space-5); }
.plan { margin: 0; padding: var(--space-5); background: var(--card-ice); border: 1px solid var(--card-edge); border-radius: var(--radius-card); }
.plan h3 { font-family: var(--font-serif); font-weight: var(--weight-regular); font-size: var(--size-feature); margin-bottom: var(--space-4); }
.plan-pro { border-color: var(--red); }
.plan-pro h3 { color: var(--red); }
.plan-price { margin: 0 0 var(--space-5); color: var(--text-dim); font-size: var(--size-small); }

@media (max-width: 820px) {
  .home .home-band { padding: var(--space-7) var(--edge); }
  .still-row, .still-flip { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .still-object, .still-flip .still-object { order: -1; width: var(--object-phone); }
  .fan { --phone-wide: var(--phone-fan-phone); }
}
