/*
 * Stacked homepage (Bold Stack): the rules only index.html uses.
 *
 * Loaded after css/bold-stack.css, which holds the design system, the header,
 * menus and phone drawer, the kit every Bold Stack page shares and the
 * conversion layouts (hero, splits, FAQ, final card, footer, dock) the homepage
 * shares with the product-page template, and after css/buy-demo.css, the buy
 * demo it shares with /exchange/. Built from the Claude Design canvas "Stacked
 * Redesign": the hero and the three feature cards follow the October boards on
 * page "Redesign" (Main, HomeMobile), and the rest follows page "Site · Homepage"
 * (the 1440 and 390 boards Simon approved on 3 Nov 2026). All mobile content sits
 * in a gold iPhone (Simon, 5 Nov 2026).
 *
 * The board's page container queries are media queries at 1000px (header, in
 * bold-stack.css) and 860px (phone layout); fluid sizes use vw where the board
 * used cqi.
 */

/* ------------------------------------------------------------ page bits */

/* Labels in fixed-height chips and buttons sit on their capitals, like the pills in
   bold-stack.css: text-box trims each label <span> to cap height and the baseline. */
.hp-time:not(.hp-time--long) > span {
  text-box: trim-both cap alphabetic;
}

/* Type */
.hp-h1 { font-size: clamp(50px, 6.3vw, 92px); font-weight: 800; letter-spacing: -0.05em; line-height: 0.92; }
.hp-h3-20 { font-size: 20px; font-weight: 800; letter-spacing: -0.015em; }

/* ----------------------------------------------------------------- hero */

.hp-alt-link { justify-content: center; width: 100%; font-size: 15px; font-weight: 500; }

/* ------------------------------------------- Sovereignty Summit band (campaign, until 3 April 2027) */
/* One link in the advice message's teal (1px teal border, teal-advice fill), not main's gold card:
   Bold Stack keeps amber for problems and has no gold accents. "Join us" is a teal text link
   inside it, not a primary pill, so the hero keeps the page's one primary. */
.hp-summit { padding-bottom: clamp(40px, 4.5vw, 64px); }
.summit-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  padding: 18px 24px;
  border: 1px solid var(--bs-teal);
  border-radius: var(--bs-radius-card);
  background: var(--bs-teal-advice);
  color: var(--bs-white);
  transition: background-color 0.15s ease;
}
.summit-band:hover, .summit-band:focus-visible { background: var(--bs-teal-wash); text-decoration: none; }
.summit-band-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.summit-band-title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; text-wrap: pretty; }
.summit-band-meta { font-size: 13px; font-weight: 500; }
.summit-band-cta { display: inline-flex; align-items: center; gap: 6px; color: var(--bs-teal); font-size: 15px; font-weight: 700; }

/* ------------------------------------------------------ the Stacked Wallet */

.hp-aside { display: flex; gap: 14px; align-items: flex-start; max-width: 34em; }
.hp-aside p { font-size: 15px; font-weight: 500; line-height: 1.55; }

/* The looping recording, with a still of the Stacked Wallet's backup screen for reduced motion (see
   index.html), in the gold phone (.gp, css/bold-stack.css). The caption belongs to the recording, so it
   shows only with data-loop-on. A recording brings its own status bar, so its stage covers the phone's,
   and the still under it is hidden, so it downloads only if the browser reaches it before the script runs. */
.hp-loop { flex: 0 1 440px; min-width: 0; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hp-loop[data-loop-on] .bs-still img { display: none; }
.hp-rec-stage { display: none; position: absolute; inset: 0; z-index: 4; }
.hp-loop[data-loop-on] .hp-rec-stage { display: block; }
.hp-rec-stage img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hp-loop-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hp-loop[data-loop-on] .hp-loop-cap { display: flex; }

/* ----------------------------------------------------------------- fees */

.hp-fee-card {
  flex: 0 1 440px;
  min-width: 0;
  padding: 26px;
  background: var(--bs-slate);
  border: 1px solid var(--bs-hairline);
  border-radius: var(--bs-radius-feature);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hp-fee-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hp-fee-at { font-size: 12px; font-weight: 500; }
.hp-fee-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--bs-hairline); }
.hp-fee-list > div:last-child { border-bottom: 0; }
.hp-fee-list dt { display: flex; flex-direction: column; gap: 2px; font-size: 15px; font-weight: 500; }
.hp-fee-sub { font-size: 12px; font-weight: 500; }
.hp-fee-list dd { font-size: 15px; font-weight: 700; }
.hp-fee-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 18px; border-radius: var(--bs-radius-card); background: var(--bs-teal-wash); font-size: 15px; font-weight: 700; }
.hp-fee-get { display: flex; align-items: baseline; gap: 6px; }
.hp-fee-get .bs-tnum { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.hp-fee-unit { font-size: 14px; font-weight: 500; }
.hp-fee-note { font-size: 12px; font-weight: 500; line-height: 1.5; }

/* ---------------------------------------------------------------- proof */

.hp-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.hp-quote {
  margin: 0;
  padding: 26px;
  background: var(--bs-surface);
  border: 1px solid var(--bs-hairline);
  border-radius: var(--bs-radius-feature);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hp-quote > svg { color: var(--bs-teal); }
.hp-quote blockquote { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.5; }
.hp-quote figcaption { margin-top: auto; font-size: 14px; font-weight: 700; }
.hp-quote figcaption span { font-weight: 500; }
.hp-press { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 16px; }
.hp-press-card { display: flex; align-items: flex-start; gap: 16px; padding: 22px 24px; border: 1px solid var(--bs-hairline); border-radius: var(--bs-radius-card); color: var(--bs-white); }
.hp-press-card:hover { border-color: var(--bs-teal); text-decoration: none; }
.hp-press-copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hp-press-title { font-size: 16px; font-weight: 700; line-height: 1.4; }
.hp-press-cta { display: inline-flex; align-items: center; gap: 6px; color: var(--bs-teal); font-size: 14px; font-weight: 500; }

/* ------------------------------------------------------ more ways to stack */

.hp-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.hp-way { display: flex; flex-direction: column; overflow: hidden; background: var(--bs-surface); border: 1px solid var(--bs-hairline); border-radius: var(--bs-radius-feature); }
/* October's cards (canvas page "Redesign", .hm-feature-shot): a gold phone (.gp, css/bold-stack.css), 250
   wide, clipped at the card's divide, holding a real screen from the Stacked Wallet with no status bar. */
.hp-way-art { height: 330px; padding-top: 30px; overflow: hidden; display: flex; align-items: flex-start; justify-content: center; background: var(--bs-slate); border-bottom: 1px solid var(--bs-hairline); }
.hp-way-phone { --gp-n: 250; }
.hp-way-phone .gp-screen { padding-top: 0; }
.hp-way-phone img { display: block; width: 100%; height: auto; }
.hp-way-body { flex: 1 1 auto; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.hp-way-link { margin-top: auto; padding-top: 8px; }
.hp-more-links { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; font-weight: 500; }

/* ------------------------------------------------------ what happens next */

.hp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.hp-step { padding: 24px; display: flex; flex-direction: column; gap: 12px; background: var(--bs-slate); border: 1px solid var(--bs-hairline); border-radius: var(--bs-radius-card); }
.hp-step-n { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--bs-teal); }
.hp-time { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--bs-outline); border-radius: 13px; font-size: 12px; font-weight: 700; }
.hp-time > svg { flex: 0 0 auto; color: var(--bs-teal); }
.hp-time--long { height: auto; min-height: 28px; padding: 4px 10px; line-height: 1.3; }
.hp-first { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding: 20px 24px; border: 1px solid var(--bs-teal); border-radius: var(--bs-radius-card); background: var(--bs-teal-advice); }
.hp-first p { flex: 1 1 380px; font-size: 15px; font-weight: 500; line-height: 1.55; }
.hp-first strong { font-weight: 700; }
.hp-first-link { font-weight: 700; }

/* ------------------------------------------------------------ final card */

.hp-otc { font-size: 14px; font-weight: 500; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .summit-band { transition: none; }
}

/* ------------------------------------------------- phone layout (≤860px) */

@media (max-width: 860px) {
  .summit-band-meta { display: none; }

  /* Phone CTA: register-first for everyone, with or without JS. ?home_cta=app-first shows the
     app-first variant, parked for a later A/B test. */
  html[data-home-cta="app-first"] .hm-ab-register { display: none !important; }
}
html:not([data-home-cta="app-first"]) .hm-ab-app { display: none !important; }
