/* Composer Assistant — the HOME page only (templates/site/home.html), v1 29 Sep 2026.
   ---------------------------------------------------------------------------
   ⚠️ ITS OWN FILE SO THE PAGE CAN BE SWAPPED. Fede redesigns the landing page
   later; the swap is home.html + this file, nothing else. Every selector here
   starts with .home, so nothing leaks into the manual, the legal pages or the
   account pages — and loading it anywhere else would style nothing.

   ⚠️ THE SAME DISCIPLINE AS main.css AND site.css (asserted by test_site.py):
   tokens only, no raw colour, no selector declared twice, no accent fill as text.

   The design, in one line: the real plugin is the hero; everything around it
   is quiet. Brass = the product (the owned half); the plans carry signal teal,
   the design system's colour for what runs and is counted (tokens.css).
   --------------------------------------------------------------------------- */

.home {
  flex: 1 1 auto;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3.25rem 1.5rem 5rem;
}

.home-mono { font-family: var(--data); font-variant-numeric: tabular-nums; }

.home-link {
  color: var(--accent-text);
  font-weight: 500;
  text-underline-offset: 3px;
}

/* ── The launch strip (only while a launch is open) ────────────────────────── */

.home-launch {
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-subtle);
}

.home-launch__inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: .7rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem 1.1rem;
  font-size: .95rem;
}

.home-launch__link {
  color: var(--accent-text);
  font-weight: 500;
  text-underline-offset: 3px;
}

/* ── Hero: the words, then the plugin itself ───────────────────────────────── */

.home-hero { margin: 0 0 5.5rem; }

.home-hero__text { max-width: 43rem; }

.home-hero__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.35rem, 6.4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

.home-hero__lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  text-wrap: pretty;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2rem;
}

.home-hero__cta { margin-top: 0; width: auto; }

/* Owners' entry — secondary to "Watch it work", but a real button, above the fold. */
.home-owners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1rem;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-subtle);
  max-width: 34rem;
}

.home-owners__label { font-weight: 500; }

.home-owners__button {
  margin-top: 0;
  width: auto;
  gap: .75rem;
  padding: .7rem 1.1rem;
  border-color: var(--border-strong);
}

.home-hero__formats {
  margin: 1.4rem 0 0;
  font-size: .92rem;
  color: var(--text-muted);
}

.home-hero__plate {
  margin: 3.25rem 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  background: var(--bg-panel);
}

.home-hero__plate img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Sections ──────────────────────────────────────────────────────────────── */

.home-section { margin: 0 0 5rem; scroll-margin-top: 1rem; }

.home-h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -.03em;
  margin: 0 0 1.75rem;
}

/* ── How it works — numbered because the plugin numbers its own areas ──────── */

.home-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.home-step {
  border-top: 2px solid var(--accent);
  padding-top: 1rem;
}

.home-step__n {
  font-family: var(--data);
  font-size: .9rem;
  color: var(--accent-text);
}

.home-step__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.015em;
  margin: .35rem 0 .5rem;
}

.home-step p {
  margin: 0;
  color: var(--text-muted);
  font-size: .97rem;
}

.home-quote {
  margin: 3rem 0 0;
  max-width: 40rem;
}

.home-quote p {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  line-height: 1.35;
  letter-spacing: -.015em;
}

.home-quote footer {
  margin-top: .6rem;
  color: var(--text-muted);
  font-size: .92rem;
}

/* ── Can I use it in client work? — high on the page, on purpose (Marc) ───── */

.home-client {
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  padding: 2rem 2.25rem 1.75rem;
}

.home-client .home-h2 { margin-bottom: 1.25rem; }

.home-client__list { margin: 0; display: grid; gap: 1rem; max-width: 50rem; }

.home-client__row dt { font-weight: 500; color: var(--text-primary); }

.home-client__row dd { margin: .15rem 0 0; color: var(--text-muted); }

.home-client__more { margin: 1.4rem 0 0; }

/* ── FROM YOUR TRACK: text beside the plugin's own "how it works" film ─────── */

.home-feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2.5rem;
  align-items: center;
}

.home-feature__text p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.home-feature__media { margin: 0; }

/* ── Where the sound comes from ───────────────────────────────────────────── */

.home-source {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  padding: 2rem 2.25rem;
}

.home-source__text {
  max-width: 44rem;
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
}

.home-source__links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.75rem;
  margin: 0;
}

/* ── Videos ────────────────────────────────────────────────────────────────── */

.home-vidgroup { margin: 0 0 2.75rem; }

.home-vidgroup__title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.home-vidgroup__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1.75rem 1.5rem;
}

/* The presentation is the first thing to watch: two wide cards, not three. */
.home-vidgroup__grid--lead { grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr)); }

/* ── Plans — the metered half. The template puts the design system's own
   .surface-run on this section (main.css), which flips all three accent tokens to
   signal for it; nothing here re-declares them. ─────────────────────────────── */

.home-plans__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 44rem;
}

.home-plan {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  padding: 1.5rem 1.6rem;
}

.home-plan--ten { border-color: var(--accent); }

.home-plan__price {
  margin: 0 0 .35rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.home-plan__price .home-mono {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -.03em;
  margin-right: .2rem;
}

.home-plan__body { margin: 0; }

.home-doors { max-width: 44rem; margin-top: 1.75rem; }
.home-doors p { margin: 0; color: var(--text-muted); }

/* ── What's new ───────────────────────────────────────────────────────────── */

.home-new__version {
  margin: -1rem 0 1rem;
  color: var(--text-muted);
  font-size: .95rem;
}

.home-new__update { color: var(--text-muted); max-width: 44rem; }

/* ── Everything else ──────────────────────────────────────────────────────── */

.home-more {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.home-more__item {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  text-decoration: none;
  transition: border-color var(--transition-fast);
}

.home-more__item:hover { border-color: var(--accent); }

.home-more__title { font-weight: 500; color: var(--text-primary); }
.home-more__body { font-size: .92rem; color: var(--text-muted); }

/* ── Smaller screens ──────────────────────────────────────────────────────── */

@media (max-width: 60rem) {
  .home-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1.25rem; }
  .home-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-feature { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
}

@media (max-width: 40rem) {
  .home { padding: 2rem 1rem 3.5rem; }
  .home-launch__inner { padding: .6rem 1rem; }
  .home-hero { margin-bottom: 4rem; }
  .home-hero__plate { margin-top: 2.25rem; border-radius: var(--radius-md); }
  .home-steps,
  .home-more,
  .home-plans__grid { grid-template-columns: minmax(0, 1fr); }
  .home-vidgroup__grid--lead { grid-template-columns: minmax(0, 1fr); }
  .home-source { padding: 1.5rem 1.25rem; }
  .home-client { padding: 1.5rem 1.25rem 1.35rem; }
  .home-section { margin-bottom: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .home-more__item { transition: none; }
}
