/*
 * Landing page (`/`) — `.hp-*` components, served by the `/onboard/static`
 * mount alongside the wizard's stylesheets. Reuses the ported design tokens and
 * the shared `.button` family (`onboarding.css`); adds no new tokens or fonts.
 * Neo-brutalist dark look — do not restyle the shared pieces.
 */

/* --- Header --- */
.hp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 30px;
  border-bottom: 1px solid var(--color-border-shell);
  flex-wrap: wrap;
}

.hp-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.hp-brand__dot {
  width: 26px;
  height: 26px;
  background: var(--color-accent);
  border-radius: 7px;
  box-shadow: 0 0 16px rgba(194, 242, 74, 0.5);
}

.hp-brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 22px;
}

/* Reserved account slot — empty this round (future "Log in" link). Holds its
 * line so the header keeps its height whether or not it renders a link. */
.hp-account {
  min-height: 26px;
}

/* --- Layout --- */
.hp-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 30px;
}

/* --- Hero --- */
.hp-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 64px;
}

.hp-hero__headline {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  /* Fluid so the headline scales down with the column between the 720px
   * single-column collapse and the 960px max-width: a fixed 46px wraps to four
   * tight lines once the two-column hero squeezes below ~800px (768px worst).
   * Floors at 34px, ceilings at the original 46px. */
  font-size: clamp(34px, 5vw, 46px);
  line-height: 1.05;
  margin: 0 0 18px;
}

.hp-hero__subhead {
  color: var(--color-muted);
  font-size: var(--text-large);
  line-height: 1.5;
  margin: 0 0 28px;
  max-width: 34ch;
}

/* Link styled as the shared primary button — inline-block so padding/box-shadow
 * apply, and no underline from the anchor default. */
.hp-cta {
  display: inline-block;
  text-decoration: none;
}

/* --- Hero page-mock (CSS-only, decorative) --- */
.hp-mock {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-accent-ink);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-offset) var(--color-ink);
}

.hp-mock__bar {
  width: 45%;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
}

.hp-mock__art {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-pink), var(--color-coral));
}

.hp-mock__tracks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hp-mock__track {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hp-mock__track-title {
  flex: 1;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-border-mut);
}

.hp-mock__track-title--short {
  flex: 0 0 55%;
}

.hp-mock__track-dur {
  flex: none;
  width: 22px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-border-mut);
}

/* --- Value props --- */
.hp-props {
  display: grid;
  /* auto-fit lets the props choose their column count from the available
   * width: 3-up at the 960px max-width, 2-up through the tablet band (768px
   * gets two comfortable ~340px cards instead of three cramped ~220px ones),
   * 1-up on phones — with no breakpoint to maintain. */
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  padding: 8px 0 64px;
}

.hp-prop {
  padding: 22px;
  background: var(--color-surface);
  border: var(--border-width-thin) solid var(--color-border-sub);
  border-radius: var(--radius-lg);
}

.hp-prop__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 8px;
}

.hp-prop__body {
  color: var(--color-muted);
  font-size: var(--text-default);
  line-height: 1.5;
  margin: 0;
}

.hp-prop__code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-accent);
}

/* --- How it works --- */
.hp-how {
  padding: 8px 0 64px;
}

.hp-how__heading {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 26px;
  margin: 0 0 24px;
}

.hp-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hp-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--color-surface);
  border: var(--border-width-thin) solid var(--color-border-sub);
  border-radius: var(--radius-lg);
}

.hp-step__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--color-accent-ink);
  background: var(--color-accent);
  border-radius: var(--radius-pill);
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hp-step__label {
  font-weight: 600;
  font-size: var(--text-default);
}

/* The terminal "Publish" step reads as the payoff, not another numbered step. */
.hp-step--publish {
  background: var(--color-accent-wash);
  border-color: var(--color-accent);
}

.hp-step--publish .hp-step__label {
  color: var(--color-accent);
  font-weight: 700;
}

/* --- Repeat CTA --- */
.hp-repeat {
  text-align: center;
  padding: 40px 0 72px;
}

.hp-repeat__heading {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 26px;
  margin: 0 0 20px;
}

/* --- Footer --- */
.hp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 30px 0;
  border-top: 1px solid var(--color-border-shell);
}

.hp-brand--footer .hp-brand__dot {
  width: 20px;
  height: 20px;
  box-shadow: 0 0 12px rgba(194, 242, 74, 0.4);
}

.hp-brand--footer .hp-brand__name {
  font-size: 18px;
}

.hp-footer__note {
  color: var(--color-muted-2);
  font-size: 13px;
  margin: 0;
}

.hp-footer__link {
  color: var(--color-accent);
  text-decoration: none;
}

.hp-footer__link:hover {
  text-decoration: underline;
}

/* --- Responsive: collapse to a single column on narrow viewports --- */
@media (max-width: 720px) {
  .hp-hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 48px 0 48px;
  }

  .hp-hero__headline {
    font-size: 36px;
  }

  /* The mock's square cover art scales with the now full-width column,
   * which would otherwise make it (and the whole mock) markedly taller on
   * narrow viewports than the two-column desktop layout ever was. Capping
   * the height instead of letting `aspect-ratio` govern it keeps the mock's
   * mobile footprint in line with what it was before. */
  .hp-mock {
    padding: 16px;
    gap: 10px;
  }

  .hp-mock__art {
    aspect-ratio: auto;
    height: 140px;
  }

  .hp-mock__tracks {
    gap: 8px;
  }
}
