/*
 * Bold Stack: the design system for every page of stackedbitcoin.com.
 *
 * Tokens, type, the kit components the site uses, the site header, menus and
 * phone drawer, and the conversion layouts and footer that the homepage shares
 * with the templates.
 * Each page then loads its own sheet: css/home.css (the homepage),
 * css/product-page.css (the product-page template) or css/guide-page.css (the
 * guide template, and with css/plain-page.css the plain template); each product
 * page and the homepage also load their hero demo's sheet (css/buy-demo.css and
 * so on). The Bold Stack homepage built these
 * rules from the Claude Design canvas: board "Main" (1440px) and board
 * "HomeMobile" (390px), whose container queries became media queries at:
 *   1000px  header collapses to Sign In + menu button
 *    860px  phone layout (hm-only-wide / hm-only-narrow swap)
 * Fluid sizes use vw where the board used cqi (its container was the page).
 *
 * Design-system values come from the Bold Stack kit (styles/bold-stack.css)
 * and RULES.md §1-§3: teal is the only accent, there is no red or green,
 * every string is solid white and hierarchy is size and weight, text at or
 * under 16px sets at 500, and tabular figures never touch a string with "BTC".
 *
 * The hm- prefix is historical (these rules started on the homepage); the
 * classes are site-wide now. Pages still on css/style.css don't load this.
 */

/* ---------------------------------------------------------------- fonts */

@font-face { font-family: "Stacked Gotham"; src: url("/fonts/Gotham-Book.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; ascent-override: 85%; descent-override: 15%; }
@font-face { font-family: "Stacked Gotham"; src: url("/fonts/Gotham-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; ascent-override: 85%; descent-override: 15%; }
@font-face { font-family: "Stacked Gotham"; src: url("/fonts/Gotham-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; ascent-override: 85%; descent-override: 15%; }
@font-face { font-family: "Stacked Gotham"; src: url("/fonts/Gotham-Black.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; ascent-override: 85%; descent-override: 15%; }

/* Arial, resized per weight to Gotham's measured set width (Book 1.123x, Medium
   1.142x, Black 1.061x against Arial Bold) with the same 85/15 vertical metrics,
   so text barely moves if it paints before the preloaded webfonts arrive. */
@font-face { font-family: "Stacked Gotham Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 400; size-adjust: 112.3%; ascent-override: 75.7%; descent-override: 13.4%; line-gap-override: 0%; }
@font-face { font-family: "Stacked Gotham Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 500; size-adjust: 114.2%; ascent-override: 74.4%; descent-override: 13.1%; line-gap-override: 0%; }
@font-face { font-family: "Stacked Gotham Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 700 800; size-adjust: 106.1%; ascent-override: 80.1%; descent-override: 14.1%; line-gap-override: 0%; }

/* --------------------------------------------------------------- tokens */

:root {
  --bs-teal: #14afac;
  --bs-slate: #161718;
  --bs-white: #ffffff;
  --bs-surface: #1d1f1f;
  --bs-icon-tile: #222323;
  --bs-hairline: rgba(255, 255, 255, 0.07);
  --bs-outline: rgba(255, 255, 255, 0.18);
  --bs-teal-wash: rgba(20, 175, 172, 0.15);
  --bs-teal-advice: rgba(20, 175, 172, 0.1);
  --bs-scrim: rgba(10, 11, 11, 0.74);
  --bs-space-base: 8px;
  --bs-radius-feature: 22px;
  --bs-radius-card: 16px;
  --bs-radius-input: 14px;
  --bs-radius-icon-tile: 13px;
  --bs-height-cta: 54px;
  --bs-height-secondary: 51px;
  --bs-height-inline: 40px;
  --bs-height-circular: 38px;
  --bs-height-icon-tile: 44px;
  --bs-font: "Stacked Gotham", "Stacked Gotham Fallback", "Gotham", system-ui, sans-serif;

  --hm-pad: clamp(20px, 5vw, 64px);          /* page gutter */
  --hm-section-y: clamp(64px, 7vw, 104px);   /* section padding */
  color-scheme: dark;
}

/* ----------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bs-slate);
  color: var(--bs-white);
  font-family: var(--bs-font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
main:focus { outline: none; }

a { color: var(--bs-teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a.bs-pill:hover, a.hm-badge:hover, a.hm-menu-link:hover, .hm-logo:hover { text-decoration: none; }
/* Links inside running text are underlined, so colour isn't their only cue (WCAG 1.4.1). */
:is(p, td, .gd-sec li, .gd-sources li, .pl-doc li) a:not([class]) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
:is(p, td, .gd-sec li, .gd-sources li, .pl-doc li) a:not([class]):hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--bs-teal);
  outline-offset: 3px;
}

.hm-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.hm-skip {
  position: absolute; left: 16px; top: -120px; z-index: 100;
  padding: 12px 18px; border-radius: 12px;
  background: var(--bs-teal); color: var(--bs-slate);
  font-size: 15px; font-weight: 700;
}
.hm-skip:focus { top: 12px; text-decoration: none; }
/* Trimmed to its capitals like the pill labels below; the padding grows by the 0.25em the trim
   takes off each side, so the link stays 42px tall. */
@supports (text-box: trim-both cap alphabetic) {
  .hm-skip { text-box: trim-both cap alphabetic; padding-block: calc(12px + 0.25em); }
}

/* ------------------------------------------------------- Bold Stack kit */

.bs-card { background: var(--bs-surface); border: 1px solid var(--bs-hairline); border-radius: var(--bs-radius-card); }
.bs-card--feature { border-radius: var(--bs-radius-feature); }

.bs-eyebrow {
  margin: 0;
  color: var(--bs-white);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.bs-eyebrow--teal { color: var(--bs-teal); }
.bs-row-subtitle { font-size: 12px; font-weight: 400; }

/* Digit-only strings only: Gotham's tnum collapses a capital C ("1 BTC" -> "1 BT"). */
.bs-tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
/* The dollar sign: Gotham's dollar.tab, whose bar leans about 7°, reached only through tnum.
   On the "$" alone, never a whole string (tnum collapses the C in "BTC"). */
.bs-dollar { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

.bs-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--bs-space-base);
  font-family: var(--bs-font);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  padding: 0 24px;
}
.bs-pill--cta { width: 100%; height: var(--bs-height-cta); border-radius: calc(var(--bs-height-cta) / 2); }

.bs-pill--inline { height: var(--bs-height-inline); border-radius: calc(var(--bs-height-inline) / 2); padding: 0 18px; }
.bs-pill--primary { background: var(--bs-teal); color: var(--bs-slate); font-size: 15.5px; font-weight: 800; }
.bs-pill--secondary { background: transparent; border-color: var(--bs-outline); color: var(--bs-white); font-size: 15.5px; font-weight: 700; }
.bs-pill--secondary:hover { border-color: var(--bs-teal); }

/* Labels sit on the centre line of their pill. Centring the line box leaves Gotham's capitals
   high: Safari ignores the ascent/descent overrides above (about 0.05em high) and Chrome rounds
   them to whole pixels (about 0.4px high). text-box trims the label to cap height and the
   alphabetic baseline, so the flex centring lands on the capitals themselves (Chrome 133+,
   Safari 18.2+; other browsers keep the line box). It only reaches an element, never a flex
   container's bare text, so every label is a <span>. Page sheets add their own labels. */
:is(.bs-pill, .bs-preset, .bs-tabs__tab, .hm-nav-trigger) > span {
  text-box: trim-both cap alphabetic;
}

.bs-circular {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: var(--bs-height-circular);
  height: var(--bs-height-circular);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bs-icon-tile);
  color: var(--bs-white);
  cursor: pointer;
}

.bs-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: var(--bs-height-icon-tile);
  height: var(--bs-height-icon-tile);
  border-radius: var(--bs-radius-icon-tile);
  background: var(--bs-icon-tile);
  color: var(--bs-teal);
}
.bs-tile--wash { background: var(--bs-teal-wash); }

.bs-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 68px;
  padding: 12px 16px;
  color: var(--bs-white);
  text-align: left;
}
.bs-row__body { flex: 1 1 auto; min-width: 0; }
.bs-row__title { display: block; font-size: 15.5px; font-weight: 500; }
.bs-row__subtitle { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; }

.bs-presets { display: flex; gap: var(--bs-space-base); width: 100%; }
.bs-preset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  height: 44px;
  padding-block: 0; /* Safari pads buttons 0 on top and 1px below, which lifts the label half a pixel */
  border: 0;
  border-radius: 13px;
  background: var(--bs-surface);
  color: var(--bs-white);
  font-family: var(--bs-font);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}

.bs-tabs { display: flex; gap: 4px; padding: 4px; border-radius: var(--bs-radius-input); background: var(--bs-surface); }
.bs-tabs__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
}

/* ------------------------------------------------------------ utilities */

.hm-teal { color: var(--bs-teal); }
.hm-nowrap { white-space: nowrap; }

.hm-wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--hm-pad); }

.hm-note { font-size: 12.5px; font-weight: 500; line-height: 1.5; }

.hm-lead { max-width: 31em; font-size: clamp(17px, 1.5vw, 21px); font-weight: 400; line-height: 1.45; }

.hm-h1 { font-size: clamp(40px, 6.2vw, 92px); font-weight: 800; letter-spacing: -0.045em; line-height: 0.95; text-wrap: balance; }

.hm-h3-18 { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.hm-h3-700 { font-weight: 700; }

.hm-arrow-link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; }

/* ------------------------------------------------- header */

.hm-header { position: sticky; top: 0; z-index: 40; background: var(--bs-slate); border-bottom: 1px solid var(--bs-hairline); }
.hm-header-inner {
  position: relative;
  max-width: 1280px;
  height: 76px;
  margin: 0 auto;
  padding: 0 var(--hm-pad);
  display: flex;
  align-items: center;
  gap: 24px;
}
.hm-logo { display: flex; align-items: center; flex: 0 0 auto; }
.hm-logo img { width: auto; height: 30px; }
.hm-nav { display: flex; align-self: stretch; flex: 1 1 auto; min-width: 0; }
.hm-nav-list { display: flex; align-items: stretch; gap: 2px; }
.hm-nav-item { display: flex; align-items: center; }
.hm-nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--bs-white);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.hm-nav-trigger svg { transition: transform 0.15s ease; }
.hm-nav-trigger:hover, .hm-nav-trigger[aria-expanded="true"] { background: var(--bs-surface); }
.hm-nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.hm-header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: 0 0 auto; }
.hm-menu-btn { display: none; }

/* Menu panels: the Bold Stack popout (surface, hairline, 22px radius, no shadow). */
.hm-nav-panel {
  position: absolute;
  top: calc(100% - 6px);
  left: 50%;
  z-index: 45;
  width: min(940px, calc(100vw - 40px));
  padding: 12px;
  background: var(--bs-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--bs-radius-feature);
  transform: translate(-50%, 6px);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.hm-nav-panel--narrow { width: min(660px, calc(100vw - 40px)); }
.hm-nav-trigger[aria-expanded="true"] + .hm-nav-panel { visibility: visible; opacity: 1; transform: translate(-50%, 0); }
@media (hover: hover) and (pointer: fine) {
  .hm-nav-item:hover .hm-nav-panel { visibility: visible; opacity: 1; transform: translate(-50%, 0); }
  .hm-nav-item:hover .hm-nav-trigger { background: var(--bs-surface); }
}
.hm-menu { display: grid; gap: 2px 8px; }
.hm-menu--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hm-menu--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hm-menu-label { margin: 8px 12px 0; padding: 16px 0 6px; border-top: 1px solid var(--bs-hairline); }
.hm-menu-link { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: var(--bs-radius-card); color: var(--bs-white); }
.hm-menu-link:hover { background: var(--bs-icon-tile); }
.hm-menu-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hm-menu-title { font-size: 15.5px; font-weight: 500; }
.hm-menu-sub { font-size: 12px; font-weight: 400; line-height: 1.4; }

/* Phone menu */
.hm-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bs-scrim);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.hm-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 91;
  width: min(380px, 88vw);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bs-slate);
  border-left: 1px solid var(--bs-hairline);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0.25s;
}
.hm-drawer-overlay.is-open { opacity: 1; visibility: visible; }
/* Visible at once on opening (it slides in; only closing waits for the slide), so js/site-nav.js
   can move focus to Close in the same frame: a hidden element can't take focus. */
.hm-drawer.is-open { transform: none; visibility: visible; transition: transform 0.25s ease, visibility 0s; }
html.hm-drawer-open { overflow: hidden; }
.hm-drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 6px; }
.hm-drawer-head img { width: auto; height: 26px; }
.hm-drawer-group { border-bottom: 1px solid var(--bs-hairline); }
.hm-drawer-trigger {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--bs-white);
  font-size: 17px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.hm-drawer-trigger svg { color: var(--bs-teal); transition: transform 0.2s ease; }
.hm-drawer-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.hm-drawer-list { display: flex; flex-direction: column; gap: 2px; padding-bottom: 10px; }
.hm-drawer-list .hm-menu-label { margin: 6px 12px 0; padding: 12px 0 4px; }
.hm-drawer-sublist { display: flex; flex-direction: column; gap: 2px; }
.hm-drawer-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 10px; }

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

/* The hero shell: copy beside a visual, wrapping under it on narrow screens. */
.hm-hero { position: relative; overflow: hidden; }
.hm-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(36px, 5.5vw, 80px) var(--hm-pad) clamp(56px, 7vw, 104px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(40px, 5vw, 64px);
}

/* Store badges: the stores' own artwork (images/app-store-badge.svg, images/google-play-badge.png,
   downloaded 2 Nov 2026), never redrawn or recoloured. 48px tall, the site's control height. */
.hm-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.hm-badge { display: inline-flex; border-radius: 8px; }
.hm-badge img { display: block; width: auto; height: 48px; }

/* ------------------------------------------------------------ sections */

.hm-grid { display: grid; gap: 14px; }
.hm-grid--250 { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }

/* FAQ */

.hm-faq { flex: 2 1 560px; min-width: 0; border-top: 1px solid var(--bs-hairline); }
.hm-faq details { border-bottom: 1px solid var(--bs-hairline); }
.hm-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-chev { display: inline-flex; flex: 0 0 auto; color: var(--bs-teal); transition: transform 0.2s ease; }
.hm-faq details[open] .hm-chev { transform: rotate(180deg); }
.hm-faq details p { max-width: 46em; margin: 0 0 24px; font-size: 16px; font-weight: 500; line-height: 1.6; }

/* -------------------------------------------------- conversion layouts */
/*
 * The page layouts the homepage and the product-page template share, built from the "Site ·
 * Homepage" and "Site · Product page" boards (approved 3 Nov 2026). The hp- prefix is historical,
 * like hm-: these rules started in css/home.css. Each page sheet keeps only its own rules on top:
 * css/home.css (the homepage) and css/product-page.css (the template). The buy demo they share
 * is css/buy-demo.css.
 */

.hm-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* The Pause button's label sits on its capitals, like the pills above. */
.hp-loop-btn > span { text-box: trim-both cap alphabetic; }

/* Type */
.hp-h2 { font-size: clamp(32px, 3.5vw, 48px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
.hp-h3-17 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.hp-h3-18 { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.hp-lead { max-width: 29em; font-size: clamp(17px, 1.45vw, 20px); font-weight: 400; line-height: 1.5; }
.hp-p17 { max-width: 34em; font-size: 17px; font-weight: 400; line-height: 1.55; }
.hp-p15 { font-size: 15px; font-weight: 500; line-height: 1.55; }
.hp-p14 { font-size: 14px; font-weight: 500; line-height: 1.55; }
.hp-p13 { font-size: 13px; font-weight: 500; line-height: 1.5; }

/* Section rhythm */
.hp-sec { padding: clamp(56px, 6.5vw, 96px) 0; }
.hp-sec--line { border-top: 1px solid var(--bs-hairline); }
.hp-sec--surface { background: var(--bs-surface); border-top: 1px solid var(--bs-hairline); border-bottom: 1px solid var(--bs-hairline); }
.hp-stack { display: flex; flex-direction: column; gap: 36px; }
.hp-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.hp-split { display: flex; align-items: center; gap: 72px; }
.hp-split--top { align-items: flex-start; }
.hp-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hp-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 4px; }

/* Hero: copy beside the 580px demo stage; where they don't fit side by side (below about 1210px)
   the demo wraps under the copy, centred. */
.hp-hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px 56px;
  padding-top: clamp(36px, 5vw, 72px);
  padding-bottom: clamp(40px, 4.5vw, 64px);
}
.hp-hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hp-hero-demo { flex: 0 1 580px; min-width: 0; margin-inline: auto; }
.hp-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 4px; }
.hp-cta { width: auto; padding: 0 34px; font-size: 16px; }
.hp-trust { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 4px; }
.hp-trust li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.hp-trust li > svg { flex: 0 0 auto; color: var(--bs-teal); }
.hp-trust a { display: inline-flex; align-items: center; gap: 5px; }

/* A recording's caption and Pause button (js/video-loop.js unhides the button once a <video> is
   there). Each page decides when the caption shows. */
.hp-loop-cap { display: none; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; font-weight: 500; }
.hp-loop-label { display: inline-flex; align-items: center; gap: 8px; }
.hp-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--bs-teal); }
.hp-loop-btn {
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--bs-outline);
  border-radius: 22px;
  background: transparent;
  color: var(--bs-white);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.hp-loop-btn:hover { border-color: var(--bs-teal); }
.hp-loop-btn .hp-i-play, .hp-loop-btn[data-paused] .hp-i-pause { display: none; }
.hp-loop-btn[data-paused] .hp-i-play { display: block; }

/* Fees: the "Is 1% all I pay?" answer under the fee copy. */

/* FAQ: the shared .hm-faq accordion, set a size smaller as on the boards. */
.hp-faq-intro { flex: 0 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.hp-faq { flex: 1 1 560px; }
.hp-faq summary { min-height: 64px; padding: 14px 0; font-size: 17px; letter-spacing: normal; line-height: normal; }
.hp-faq details p { max-width: 40em; margin: 0 0 20px; font-size: 15px; line-height: 1.6; }
.hp-links--faq { margin-top: 0; }
.hp-links--faq a { font-size: 15px; font-weight: 500; }

/* Final card: the one action again, a risk line, and the Stacked Wallet's QR code and badges. */
.hp-final .hm-wrap { padding-bottom: clamp(56px, 6.5vw, 96px); }
.hp-final-card {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 56px;
  background: var(--bs-surface);
  border: 1px solid var(--bs-hairline);
  border-radius: 28px;
}
.hp-final-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hp-final-copy .hp-p17 { max-width: 30em; }
.hp-final-copy .bs-pill { align-self: flex-start; }
.hp-final-risk { max-width: 34em; }
.hp-get {
  flex: 0 1 380px;
  min-width: 0;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bs-slate);
  border: 1px solid var(--bs-hairline);
  border-radius: var(--bs-radius-feature);
  scroll-margin-top: 100px;
}
.hp-get-head { display: flex; align-items: center; gap: 20px; }
.hp-get-copy { display: flex; flex-direction: column; gap: 6px; }
/* Paper behind the code only: a scanner needs the light ground. */
.hp-qr { position: relative; flex: 0 0 auto; width: 120px; height: 120px; padding: 9px; background: #ffffff; border-radius: 14px; }
.hp-qr > img { width: 100%; height: 100%; }
.hp-qr-mark { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; display: flex; align-items: center; justify-content: center; background: #ffffff; border-radius: 7px; }
.hp-badges { gap: 12px; }
.hp-badges .hm-badge img { height: 40px; }

/* Footer, as on the homepage board. */
.hp-footer { border-top: 1px solid var(--bs-hairline); }
.hp-footer-inner { padding-top: 56px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 40px; }
.hp-footer-top { display: flex; flex-wrap: wrap; gap: 40px 56px; }
.hp-footer-brand { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hp-footer-brand img { align-self: flex-start; width: auto; height: 26px; }
.hp-footer-blurb { max-width: 30em; font-size: 13px; font-weight: 500; line-height: 1.6; }
.hp-footer-legal { max-width: 30em; font-size: 12px; font-weight: 500; line-height: 1.6; }
.hp-footer-mail { align-self: flex-start; font-size: 13px; font-weight: 500; }
.hp-footer-nav { flex: 2 1 640px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); gap: 28px 24px; }
.hp-footer-nav > div { display: flex; flex-direction: column; gap: 10px; }
.hp-footer-nav .bs-eyebrow { margin: 0 0 4px; }
.hp-footer-nav a { color: var(--bs-white); font-size: 13px; font-weight: 500; }
.hp-footer-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 22px; border-top: 1px solid var(--bs-hairline); font-size: 12px; font-weight: 500; }

/* Docked phone button. The homepage shows it with js/home.js once the hero button scrolls away;
   css/product-page.css does it in CSS. */
.hm-sticky {
  position: sticky;
  bottom: 0;
  z-index: 50;
  align-items: center;
  padding: 12px 20px 16px;
  background: var(--bs-slate);
  border-top: 1px solid var(--bs-hairline);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.22s ease, visibility 0.22s;
}
.hm-sticky.is-visible { transform: none; visibility: visible; }
.hm-sticky .bs-pill { flex: 1 1 auto; }

/* Phone layout: a split stacks, each side full width. The !important (as on the boards) lets it
   win over each side's own flex basis, whichever sheet sets that. */
@media (max-width: 860px) {
  .hp-split { flex-direction: column; align-items: stretch; gap: 36px; }
  .hp-split > * { flex: 0 0 auto !important; width: 100% !important; max-width: none !important; }
  .hp-cta { width: 100%; }
  .hp-final-card { flex-direction: column; align-items: stretch; padding: 32px 22px; }
  .hp-final-card > * { flex: 0 0 auto !important; width: 100% !important; max-width: none !important; }
}

/* ------------------------------------------------------- the gold iPhone */

/*
 * Every phone on the site is the gold iPhone 17 Pro, and all mobile content sits in it: a design
 * requirement (Simon, 5 Nov 2026). The frame is images/phone-frame-iphone17pro-gold.webp, 998 by 2048
 * with a clear screen, so it goes over the screen, and the screen's box is the frame's own opening.
 *
 *   <div class="gp"><div class="gp-screen">...</div></div>
 *
 * --gp-n is the phone's width in pixels as a plain number. The screen's top padding is the board's: October's phones have no status bar, and their first row is centred
 * about 18% of the phone's width down. A recording brings its own status bar, so its stage fills the
 * screen (z-index 4).
 *
 * gp--still is a phone only while it's small. On a computer the same markup is a browser window,
 * because Stacked Web's desktop layout isn't mobile content. It goes by the screen (560px, where a
 * recording swaps to its phone capture).
 */
.gp { --gp-n: 288; position: relative; flex: 0 0 auto; width: calc(var(--gp-n) * 1px); aspect-ratio: 998 / 2048; }
.gp::after { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; background: url("/images/phone-frame-iphone17pro-gold.webp") center / 100% 100% no-repeat; }
.gp-screen { position: absolute; top: 1.51%; left: 3.51%; width: 92.99%; height: 96.97%; box-sizing: border-box; padding-top: 9%; overflow: hidden; border-radius: 13.7% / 6.4%; background: var(--bs-slate); }
/* A phone's width: the largest that fits the narrowest screens' 276px slot. */
@media (max-width: 359px) {
  .gp { --gp-n: 272; }
}

/* A browser window's bar, on the stills. */
.bs-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #1a1c1c; border-bottom: 1px solid var(--bs-hairline); }
.bs-bar-dot { width: 8px; height: 8px; border: 1px solid var(--bs-outline); border-radius: 50%; }
.bs-bar-url { flex: 1 1 auto; min-width: 0; height: 20px; margin-left: 8px; padding: 0 8px; overflow: hidden; border-radius: 10px; background: var(--bs-slate); font-size: 10px; font-weight: 500; line-height: 20px; text-align: center; white-space: nowrap; text-overflow: ellipsis; }

/* A still rendered from the app (images/stills/, preview-tools/record/stills.cjs), under the window's bar. A wallet
   screen brings its own status bar, so it covers the phone's. */
.bs-still img { display: block; width: 100%; height: auto; }
.bs-still--phone { position: absolute; inset: 0; }
.bs-still--phone img { height: 100%; object-fit: cover; object-position: top; }

/* Big enough for the window: no phone, just what's in it. */
@media (min-width: 561px) {
  .gp--still, .gp--still > .gp-screen { display: contents; }
  .gp--still::after { content: none; }
}
/* In the phone: what's in the window is the whole screen. The window's bar stays on computers: no board
   has one on a phone. */
@media (max-width: 560px) {
  .gp--still > .gp-screen > * { height: 100%; overflow: hidden; background: none; border: 0; border-radius: 0; box-shadow: none; }
  .gp--still .bs-bar { display: none; }
  .gp--still .bs-still { flex: 1 1 0; min-height: 0; height: 100%; }
  .gp--still .bs-still img { height: 100%; object-fit: cover; object-position: top; }
}
/* end gold iPhone */

/* ----------------------------------------------------- responsive swaps */

.hm-only-narrow { display: none !important; }

@media (max-width: 1000px) {
  .hm-desktop-only { display: none !important; }
  .hm-menu-btn { display: inline-flex; }
}

@media (max-width: 860px) {
  .hm-only-wide { display: none !important; }
  .hm-only-narrow { display: flex !important; }
}

/* No JS: the menu button could not open anything. */
html:not(.hm-js) .hm-menu-btn { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .hm-nav-panel, .hm-nav-trigger svg, .hm-drawer, .hm-drawer.is-open, .hm-drawer-overlay, .hm-drawer-trigger svg,
  .hm-chev, .hm-sticky { transition: none; }
}
