/* =========================================================================
   Page — the public home page (index.html, U-2278, redesign R8b)
   -------------------------------------------------------------------------
   Only what the home page has and the public frame does not. The frame —
   measure, marketing type, sections, cards, bands, the closing band — is
   pages/marketing.css and the components (U-2277); this sheet adds the large
   hero with its graphic, the about block's checklist, the steps as atoms on
   a bond, and the developer block's code beside its questions.

   The header is the themed, sticky panel of every other public page: the
   canvas draws one white bar above the dark hero. The hero no longer sits
   under it, so the page needs no out-of-flow header and no magic number for
   its height.

   No literal colour here; every value comes from tokens.css.
   ========================================================================= */

.splash-page {
  background: var(--doc-bg);
}

/* ---- The hero ------------------------------------------------------------ *
 * Dark in both themes, so it carries `.on-brand` and the theme-invariant inks
 * of DESIGN_TOKENS.md §8.2 — the ground, blooms and contrast figures of
 * `.page-hero` in pages/marketing.css. The text stands above the graphic below
 * 1024 px and beside it from there, the graphic at most 600 px wide.
 * ------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 520px at 85% 40%, var(--hero-glow), transparent 70%),
    radial-gradient(520px 420px at 0% 100%, var(--hero-glow-deep), transparent 70%),
    var(--hero-ground);
  color: var(--brand-on-dark);
}

/* The lattice of the motif, fading out to the left. An image, so it is
   decorative by construction; the mask reads only the alpha of the band's
   own ink. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../../img/motif/mol-tile-dark.svg") repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, currentColor);
  mask-image: linear-gradient(90deg, transparent, currentColor);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
  padding-block: clamp(48px, 8vw, 88px) clamp(56px, 9vw, 96px);
}

/* The canvas's 1fr and 600 px at the full 1200 px measure are 552 : 600 of its
   1152 px after the gap; held as that ratio, so the text keeps its share down to
   1024 px instead of shrinking to what a fixed 600 px leaves it. */
@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 552fr) minmax(0, 600fr);
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-lg);
}

/* The tag above the title: the mark and one line, on a mint tint. */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: 32px;
  margin: 0;
  padding: 4px 12px 4px 4px;
  border: var(--border-w) solid color-mix(in srgb, var(--brand-mint) 30%, transparent);
  border-radius: 9999px;
  background: color-mix(in srgb, var(--brand-mint) 12%, transparent);
  color: var(--brand-mint-hover);
  font: var(--font-eyebrow);
}

.hero-tag img {
  width: 24px;
  height: 24px;
  border-radius: 9999px;
}

.hero h1 {
  margin: 0;
  font: var(--font-display-xl);
  letter-spacing: var(--display-xl-tracking);
  color: var(--brand-on-dark);
}

/* The one word the canvas sets in the mint. */
.hero h1 em {
  font-style: normal;
  color: var(--brand-mint);
}

.hero-lede {
  margin: 0;
  font: var(--font-lead);
  color: var(--hero-ink-lead);
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* The trust line, its check mark in the mint. A glyph and no word, so it is
   the same in every language. */
.hero-audience {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: var(--text-caption);
  line-height: var(--text-caption-lh);
  color: var(--hero-ink-quiet);
}

.hero-audience::before {
  content: "\2713";
  color: var(--brand-mint);
}

/* The graphic: an image file whose colours are burnt in (DESIGN_TOKENS.md §8.2),
   framed by a mint hairline. */
.hero-visual {
  margin: 0;
  max-width: 600px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 var(--border-w) color-mix(in srgb, var(--brand-mint) 25%, transparent);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* Below the hero the sections restore the themed ink. */
.splash-sections {
  color: var(--doc-ink);
}

/* ---- What this is: prose and a checklist --------------------------------- */

/* No reading cap: text runs to its container (U-1647), so the block is as wide
   as the section, not the canvas's 760 px. */
.home-about {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.home-about > p {
  margin: 0;
}

/* Five items run in two columns from 640 px — a column flow, not a grid, so
   the fifth ends a column and stands as no lone tile. */
.home-facts {
  margin: var(--space-sm) 0 0;
  padding: 0;
  list-style: none;
  column-gap: var(--space-lg);
}

@media (min-width: 640px) {
  .home-facts {
    columns: 2;
  }
}

.home-facts li {
  display: flex;
  gap: var(--space-sm);
  break-inside: avoid;
  padding-block: var(--space-xs);
}

.home-facts li::before {
  content: "\2713";
  font-weight: 700;
  color: var(--sd-secondary);
}

/* ---- Who builds here: the card's closing line ---------------------------- */

.card-more {
  margin-top: auto;
  font-weight: 600;
  color: var(--sd-secondary);
}

/* ---- How a partner ships: four atoms on one bond -------------------------- *
 * The motif quoted (the canvas's note): each step's number is an atom, the
 * fourth in the primary, and one bond runs through them when they stand in a
 * row. The `<ol>` still carries the sequence; the counter of
 * components/steps.css is drawn as the atom. Four close as 4, 2+2 or 1, the
 * four-card rule of DESIGN_TOKENS.md §8.2.
 * ------------------------------------------------------------------------- */

.steps-bond {
  position: relative;
  gap: var(--space-lg) var(--space-md);
}

.steps-bond > li,
.section-alt .steps-bond > li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 var(--space-sm);
  text-align: center;
  background: transparent;
  border: 0;
}

.steps-bond > li::before {
  content: counter(step);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0;
  border: var(--border-w-strong) solid var(--sd-secondary);
  border-radius: 9999px;
  background: var(--doc-panel);
  font: 700 20px/1 var(--font);
  letter-spacing: 0;
  color: var(--sd-secondary);
}

/* The atom's highlight. */
.steps-bond > li::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 6px;
  left: calc(50% - 18px);
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--sd-primary);
  opacity: .8;
}

.steps-bond > li:last-child::before {
  background: var(--sd-primary);
  border-color: var(--sd-primary);
  color: var(--sd-on-primary);
}

.steps-bond h3,
.steps-bond p {
  margin: 0;
}

@media (min-width: 1024px) {
  .steps-bond:has(> :nth-child(4):last-child) {
    grid-template-columns: repeat(4, 1fr);
  }

  /* The bond, from the first atom's centre to the last one's. */
  .steps-bond::before {
    content: "";
    position: absolute;
    top: 27px;
    left: 12.5%;
    right: 12.5%;
    height: var(--border-w-strong);
    background: linear-gradient(90deg, var(--sd-secondary), var(--sd-primary));
  }
}

/* ---- Getting started: the code beside its questions ----------------------- */

.home-dev {
  display: grid;
  gap: var(--space-lg);
  align-items: start;
}

/* A grid item's minimum is its content; the code's long lines scroll inside
   the panel rather than widen the page. */
.home-dev > * {
  min-width: 0;
}

@media (min-width: 1024px) {
  .home-dev {
    grid-template-columns: 1.15fr 1fr;
  }
}

/* The code block is dark in both themes on the public site (§8.2), its ink
   the hero's lead ink, which the print layer of tokens.css pins for paper. */
.splash-page .code-panel {
  background: var(--code-ground);
  border-color: transparent;
  border-radius: var(--radius);
  box-shadow: 0 0 0 var(--border-w) color-mix(in srgb, var(--brand-mint) 18%, transparent);
}

.splash-page .code-head {
  background: transparent;
  border-bottom-color: color-mix(in srgb, var(--brand-on-dark) 8%, transparent);
}

.splash-page .code-label {
  color: var(--brand-on-dark);
}

.splash-page .code-head .method {
  background: var(--brand-mint);
  border-color: var(--brand-mint);
  color: var(--brand-mint-ink);
}

.splash-page .code-body {
  font-size: var(--text-caption);
  line-height: 20px;
  color: var(--hero-ink-lead);
}

/* The questions as rows on the card surface; `details` needs no script. */
.home-faq {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.home-faq .accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.home-faq .accordion details {
  padding: 0 var(--space-md);
  border-bottom: 0;
  border-radius: var(--radius);
  background: var(--doc-panel);
}

.home-faq .accordion summary {
  min-height: 52px;
  padding: 14px 0;
  font-size: var(--text-body);
  line-height: var(--text-body-lh);
}

.home-faq .accordion details > :not(summary) {
  margin: 0 0 var(--space-md);
  font-size: var(--text-body);
  line-height: var(--text-body-lh);
}

.home-faq > p {
  margin: var(--space-sm) 0 0;
  font-weight: 600;
}
