/* The landing page only. App screens (order, code, collect, receipt) get
   their own stylesheet later so this one stays about telling the story. */

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: var(--sp-6);
}

@media (min-width: 768px) {
  .wrap {
    padding-inline: var(--sp-8);
  }
}

/* ---------------------------------------------------------------- nav -- */

/* Full-width bar at the top of the page; once scrolled, the bar inside it
   shrinks into a floating island and reverts the moment the page is back
   at the top. The outer .nav only ever provides the sticky gutter the
   island floats in, so its own box never has a border or shadow. */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-block: 0;
  transition: padding-block var(--dur-base) var(--ease-out);
}

.nav.is-scrolled {
  padding-block: var(--sp-3);
}

.nav-bar {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  max-width: 100%;
  margin-inline: auto;
  transition: max-width var(--dur-base) var(--ease-out), border-radius var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out),
    background var(--dur-base) var(--ease-out);
}

.nav.is-scrolled .nav-bar {
  max-width: 880px;
  border-radius: var(--radius-full);
  border: 1px solid var(--hairline);
  border-bottom-color: var(--hairline);
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  box-shadow: var(--shadow-raised);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  transition: height var(--dur-base) var(--ease-out);
}

.nav.is-scrolled .wrap {
  height: 58px;
  padding-inline: var(--sp-6);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.wordmark img {
  border-radius: 7px;
}

.nav-links {
  display: none;
  gap: var(--sp-8);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--body-sm);
  color: var(--ink-soft);
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  position: relative;
  padding: var(--sp-1) 0;
  transition: color var(--dur-fast) var(--ease-out);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1.5px;
  background: var(--gold);
  transition: right var(--dur-base) var(--ease-out);
}

.nav-links a:hover::after {
  right: 0;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

/* Below this, "Yazo" + a GitHub pill + a primary pill is wider than the
   phone it is on - which is exactly how the page ended up scrolling
   sideways. The GitHub link lives in the footer too, so it is not lost. */
@media (max-width: 480px) {
  .nav-cta .btn-ghost {
    display: none;
  }
  .nav .wrap {
    padding-inline: var(--sp-4);
  }
}

/* ------------------------------------------------------------- buttons -- */

/* .btn and its variants live in buttons.css, shared with the dashboard. */

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

.hero {
  padding-top: var(--sp-24);
  padding-bottom: var(--sp-16);
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* A real photo (credit: Davies Designs Studio, Unsplash License), not a
     synthetic gradient - tinted toward the brand gold and faded out at the
     bottom so it reads as atmosphere behind the hero text, not a banner
     image competing with it, and dissolves into the page before the
     dashboard screenshot begins. */
  background-image: linear-gradient(to bottom, transparent 0%, var(--paper) 78%),
    linear-gradient(140deg, color-mix(in srgb, var(--gold) 55%, transparent) 0%, transparent 55%),
    url("/images/sky.jpg");
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  opacity: 0.8;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-glow {
    opacity: 0.35;
  }
}
:root[data-theme="dark"] .hero-glow {
  opacity: 0.35;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--display-2xl);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: var(--tracking-display);
  max-width: 14ch;
}

.hero p {
  margin-top: var(--sp-6);
  font-size: var(--body-lg);
  color: var(--ink-soft);
  max-width: 44ch;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}

.hero-note {
  margin-top: var(--sp-8);
  font-size: var(--caption);
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

/* --------------------------------------------------------- hero screenshot -- */
/* The demo breaks out of the page's normal 1180px reading column on
   purpose - at that width it photographed as a small card in a lot of
   empty margin next to a reference that runs edge-to-edge below a thin
   nav. This wrapper is the page's only wider column, capped well short
   of full-bleed so it doesn't turn into an absurd ribbon on a 4K
   display. */

.hero-shot-outer {
  max-width: 1520px;
  margin: 0 auto;
  padding-inline: var(--sp-6);
}

@media (min-width: 768px) {
  .hero-shot-outer {
    padding-inline: var(--sp-8);
  }
}

.hero-shot {
  margin-top: var(--sp-16);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--ink) 0%,
    color-mix(in srgb, var(--gold) 45%, var(--ink)) 55%,
    var(--gold) 100%
  );
  /* A shadow that blends into the page behind it rather than cutting a
     hard edge - a soft, wide, gold-tinted glow under the tile, the same
     "floating above the backdrop" effect the reference site uses. */
  box-shadow: 0 40px 80px -20px color-mix(in srgb, var(--gold) 45%, transparent),
    0 16px 32px -12px rgba(24, 20, 15, 0.25);
}

/* --------------------------------------------------- live demo window -- */
/* The hero demo is dressed as the real app, not a bare card floating on
   its own: a sidebar strip echoing the dashboard's nav, with the exact
   .order-list/.order-row the real dashboard renders inside it, so playing
   with it feels like using Yazo rather than watching an ad for it. It's
   sized to read as a full screen of the app, not a thumbnail of one. */

.demo-window {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: 84px 1fr;
  grid-template-rows: auto 1fr;
  min-height: min(580px, 68vh);
  background: var(--paper);
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--paper) 15%, transparent);
  /* Its own shadow, on top of .hero-shot's - this is the "screenshot"
     floating a little off the gold mat behind it, not flush with it. */
  box-shadow: 0 20px 40px -12px rgba(20, 15, 8, 0.45),
    0 4px 10px -4px rgba(20, 15, 8, 0.3);
  overflow: hidden;
}

.demo-window-titlebar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-5);
  background: var(--paper-raised);
  border-bottom: 1px solid var(--hairline);
}

.demo-window-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.demo-window-dot.is-red { background: #ff5f57; }
.demo-window-dot.is-yellow { background: #febc2e; }
.demo-window-dot.is-green { background: #28c840; }

.demo-window-sidebar {
  background: var(--paper-raised);
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-6);
  padding: var(--sp-8) 0;
}

.demo-window-sidebar img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  margin-bottom: var(--sp-2);
}

.demo-nav-item {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
}

.demo-nav-item svg {
  width: 20px;
  height: 20px;
}

.demo-nav-item.is-active {
  background: var(--ink);
  color: var(--paper);
}

.demo-window-main {
  display: flex;
  flex-direction: column;
  padding: var(--sp-12);
  min-width: 0;
}

.demo-window-title {
  font-size: var(--caption);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--sp-3);
}

/* The headline number - the one thing on this card that should read as
   big and certain from across the room, the same job the reference
   site's ticker price does. */
.demo-window-price {
  font-family: var(--font-display);
  font-size: var(--display-xl);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--sp-8);
}

.demo-window-price span {
  font-family: var(--font-mono);
  font-size: var(--body-sm);
  font-weight: 400;
  color: var(--ink-muted);
  margin-left: var(--sp-2);
}

.demo-action {
  margin-top: var(--sp-6);
}

.demo-action label {
  display: block;
  font-size: var(--caption);
  color: var(--ink-muted);
  margin-bottom: var(--sp-2);
}

.demo-code-row {
  display: flex;
  gap: var(--sp-2);
}

.demo-code-row input {
  flex: 1;
  min-width: 0;
  padding: 0 var(--sp-4);
  height: 44px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--body-sm);
  background: var(--paper-raised);
  color: var(--ink);
}

.demo-code-row input:focus-visible {
  border-color: var(--gold);
}

/* :not([hidden]) rather than a bare .demo-result - a plain "display: flex"
   here has the same specificity as the [hidden] UA rule it needs to lose
   to, and author styles win cascade ties, so the result panel would stay
   visible underneath the input row the moment the author rule loaded. */
.demo-result:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-3);
  padding: var(--sp-4) 0;
}

.demo-result svg {
  width: 40px;
  height: 40px;
  padding: var(--sp-2);
  border-radius: var(--radius-full);
  background: var(--state-released-bg);
  color: var(--state-released);
}

.demo-result p {
  font-size: var(--body-sm);
  color: var(--ink-soft);
}

.demo-footnote {
  /* auto rather than a fixed value - with the taller card this is the
     one element that should float down to the bottom edge instead of
     leaving a gap of empty paper underneath it. */
  margin-top: auto;
  padding-top: var(--sp-6);
  border-top: 1px solid var(--hairline);
  font-size: var(--caption);
  color: var(--ink-muted);
  text-align: center;
}

.demo-footnote a {
  color: var(--gold-ink);
  font-weight: 600;
}

/* ---------------------------------------------------------- flow diagram -- */

.flow {
  margin-top: var(--sp-16);
  padding: var(--sp-6);
  border-radius: var(--radius-lg);
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  overflow-x: auto;
}

.flow-row {
  display: flex;
  align-items: stretch;
  gap: var(--sp-3);
  min-width: 640px;
}

.flow-node {
  flex: 1;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

.flow-node:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.flow-node .icon {
  width: 32px;
  height: 32px;
  color: var(--gold-ink);
}

.flow-node .label {
  font-size: var(--caption);
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.flow-node .title {
  font-size: var(--body-sm);
  font-weight: 600;
}

.flow-arrow {
  display: flex;
  align-items: center;
  color: var(--hairline);
  width: 20px;
}

/* ----------------------------------------------------------- section -- */

.section {
  padding-block: var(--sp-24);
  /* The nav is sticky and floats as an island once scrolled, so a bare
     scrollIntoView lands a section's heading right underneath it - which
     reads as the click having done nothing. This is the clearance fix. */
  scroll-margin-top: calc(var(--sp-24) + var(--sp-4));
}

.section-dark {
  background: var(--ink);
  color: var(--paper);
}

.section-dark .section-kicker {
  color: color-mix(in srgb, var(--paper) 55%, transparent);
}

.section-head {
  max-width: 580px;
  margin-bottom: var(--sp-12);
}

.section-kicker {
  font-size: var(--caption);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: var(--display-lg);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  margin-top: var(--sp-3);
}

.section-head p {
  margin-top: var(--sp-4);
  color: var(--ink-soft);
  font-size: var(--body);
  line-height: 1.6;
}

.section-dark .section-head p {
  color: color-mix(in srgb, var(--paper) 75%, transparent);
}

/* -------------------------------------------------------------- contrast line -- */

.contrast-line {
  font-family: var(--font-display);
  font-size: var(--display-xl);
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  line-height: 1.15;
}

.contrast-line .strike {
  color: var(--ink-muted);
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--ink-muted) 60%, transparent);
  text-decoration-thickness: 2px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-12);
}

.stat {
  padding-top: var(--sp-4);
  border-top: 1px solid var(--hairline);
}

.stat .num {
  font-family: var(--font-display);
  font-size: var(--heading-md);
  font-weight: 600;
}

.stat .cap {
  font-size: var(--caption);
  color: var(--ink-muted);
  margin-top: var(--sp-1);
}

/* -------------------------------------------------------------- market shot -- */

.market-shot {
  margin: var(--sp-12) 0 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.market-shot img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  /* The real photo is vivid and busy on purpose - it's a real market, not
     a styled shoot. Toning the saturation down and tinting toward the
     brand palette keeps it from fighting the calm type around it. */
  filter: saturate(0.75) sepia(0.12);
}

/* ------------------------------------------------------------ steps -- */

.steps {
  display: grid;
  gap: var(--sp-4);
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  background: var(--paper);
  /* This card sits inside .section-dark, which sets white text for the
     whole section. Without resetting it here, a white card ends up with
     white text on top of it - invisible, not just low-contrast. */
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  position: relative;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.step-icon-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  margin-bottom: var(--sp-4);
}

.step-icon {
  display: block;
  width: 48px;
  height: 48px;
}

.step .n {
  position: absolute;
  right: -8px;
  bottom: -8px;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  color: var(--paper);
  background: var(--ink);
  width: 20px;
  height: 20px;
  border: 2px solid var(--paper);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.step h3 {
  font-size: var(--heading-sm);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}

.step p {
  font-size: var(--body-sm);
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ------------------------------------------------------------ guarantee -- */

.guarantee-grid {
  display: grid;
  gap: var(--sp-8);
}

@media (min-width: 900px) {
  .guarantee-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.guarantee-title {
  font-family: var(--font-display);
  font-size: var(--display-lg);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  margin-top: var(--sp-3);
}

.guarantee-text {
  margin-top: var(--sp-4);
  color: var(--ink-soft);
  line-height: 1.6;
}

.formula {
  font-family: var(--font-mono);
  font-size: var(--body-sm);
  background: var(--paper-sunken);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  line-height: 1.9;
  /* A code block's line breaks are meaningful; collapsing them is what was
     making this reflow into broken-looking prose on a narrow screen rather
     than scrolling as a block of code should. */
  white-space: pre;
  overflow-x: auto;
}

.formula .op {
  color: var(--ink-muted);
}

.formula .fn {
  color: var(--gold-ink);
}

.who-cant {
  list-style: none;
  margin: var(--sp-6) 0 0;
  padding: 0;
  display: grid;
  gap: var(--sp-3);
}

.who-cant li {
  display: flex;
  gap: var(--sp-3);
  font-size: var(--body-sm);
  color: var(--ink-soft);
  align-items: flex-start;
}

.who-cant .mark {
  color: var(--state-released);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ------------------------------------------------------------- security -- */

.security-card {
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  display: grid;
  gap: var(--sp-8);
  transition: border-color var(--dur-base) var(--ease-out);
}

.security-card:hover {
  border-color: var(--gold);
}

@media (min-width: 820px) {
  .security-card {
    grid-template-columns: auto 1fr;
    align-items: center;
  }
}

.security-count {
  font-family: var(--font-display);
  font-size: clamp(3rem, 2.5rem + 2vw, 5rem);
  font-weight: 600;
  letter-spacing: var(--tracking-display);
  line-height: 1;
  white-space: nowrap;
}

.security-count span {
  display: block;
  font-family: var(--font-body);
  font-size: var(--caption);
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: var(--sp-2);
}

.honesty-list {
  list-style: none;
  margin: var(--sp-6) 0 0;
  padding: 0;
  display: grid;
  gap: var(--sp-2);
  font-size: var(--body-sm);
  color: var(--ink-soft);
}

.honesty-list li::before {
  content: "· ";
  color: var(--ink-muted);
  font-weight: 700;
}

/* ----------------------------------------------------------------- faq -- */

.faq {
  display: grid;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-item {
  background: var(--paper);
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-6);
  font-size: var(--body);
  font-weight: 600;
  text-align: left;
  list-style: none;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}

.faq-q:hover {
  background: var(--paper-raised);
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q .plus {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform var(--dur-base) var(--ease-out);
}

.faq-q .plus::before,
.faq-q .plus::after {
  content: "";
  position: absolute;
  background: var(--ink-muted);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-q .plus::before {
  width: 14px;
  height: 1.5px;
}

.faq-q .plus::after {
  width: 1.5px;
  height: 14px;
  transition: opacity var(--dur-fast) var(--ease-out);
}

.faq-item[open] .plus::after {
  opacity: 0;
}

.faq-a {
  padding: 0 var(--sp-6) var(--sp-6);
  font-size: var(--body-sm);
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 62ch;
}

/* --------------------------------------------------- revealed footer -- */
/* The closing block and footer do not scroll into view - they sit still,
   pinned to the bottom of the viewport behind the page, and the page
   above (which is opaque) slides up off them like a sheet. Scroll back
   up and the sheet slides down and covers them again. */

main {
  position: relative;
  z-index: 1;
  /* Opaque on purpose: this is the sheet. Make it transparent and the
     footer behind it shows through the whole page. */
  background: var(--paper);
}

.reveal-footer {
  position: relative;
  background: var(--ink);
  color: var(--paper);
}

/* Only pinned where the block actually fits the viewport. A sticky
   bottom anchors the bottom edge, so on a short screen the top of it
   would be cut off permanently rather than just scrolled past - on
   those, it scrolls normally instead. */
@media (min-width: 861px) and (min-height: 800px) {
  .reveal-footer {
    position: sticky;
    bottom: 0;
    z-index: 0;
  }
}

/* The wrapper paints the dark background now, so the two blocks inside
   it go transparent - otherwise their own background would cover the
   dot field sitting between them and the wrapper. */
.reveal-footer .closing,
.reveal-footer .footer {
  position: relative;
  z-index: 2;
  background: transparent;
}

/* ------------------------------------------------------- the dot field -- */
/* A grid of dots across the whole dark block, lit only where the cursor
   is: the dots themselves are always painted, and the mask is what
   follows the pointer, so nothing re-renders on move except one
   gradient position. */

.dot-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
  background-image: radial-gradient(
    circle,
    color-mix(in srgb, var(--paper) 90%, transparent) 1.1px,
    transparent 1.6px
  );
  background-size: 12px 12px;
  -webkit-mask-image: radial-gradient(
    300px circle at var(--mx, -500px) var(--my, -500px),
    #000 0%,
    rgba(0, 0, 0, 0.7) 35%,
    transparent 75%
  );
  mask-image: radial-gradient(
    300px circle at var(--mx, -500px) var(--my, -500px),
    #000 0%,
    rgba(0, 0, 0, 0.7) 35%,
    transparent 75%
  );
}

.dot-field.is-live {
  opacity: 1;
}

/* ----------------------------------------------------------- closing -- */

.closing {
  text-align: center;
  /* Tighter than the other sections on purpose: this block and the
     footer under it have to fit a viewport between them, because the
     page uncovers them in place rather than scrolling them past. */
  padding-block: var(--sp-16);
}

.closing h2 {
  font-family: var(--font-display);
  font-size: var(--display-xl);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  max-width: 20ch;
  margin: 0 auto;
}

.closing .hero-actions {
  justify-content: center;
}

/* ------------------------------------------------------------- footer -- */

.footer {
  padding-top: var(--sp-16);
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  padding-bottom: var(--sp-12);
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-brand {
  grid-column: span 1;
}

@media (max-width: 720px) {
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .hero-shot-outer {
    padding-inline: var(--sp-4);
  }
  .hero-shot {
    padding: var(--sp-3);
  }
  /* The sidebar is decorative chrome, not real navigation - on a phone
     it costs width the actual order row needs far more than the look
     of an app window does. Dropped, not shrunk again. */
  .demo-window {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .demo-window-sidebar {
    display: none;
  }
  .demo-window-main {
    padding: var(--sp-4);
  }
  .demo-window-price {
    font-size: var(--display-lg);
  }
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--sp-3);
}

.footer-tagline {
  font-size: var(--body-sm);
  color: var(--ink-soft);
  max-width: 32ch;
  line-height: 1.55;
  margin-bottom: var(--sp-4);
}

.footer-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--hairline);
  font-size: var(--caption);
  font-weight: 600;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

.footer-pill svg {
  width: 15px;
  height: 15px;
}

.footer-pill:hover {
  border-color: var(--gold);
  background: var(--paper-raised);
}

.footer-col {
  display: grid;
  gap: var(--sp-3);
  align-content: start;
}

.footer-col-head {
  font-size: var(--caption);
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-1);
}

.footer-col a {
  font-size: var(--body-sm);
  color: var(--ink-soft);
  transition: color var(--dur-fast) var(--ease-out);
  width: fit-content;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-col a.is-soon {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--ink-muted);
  cursor: default;
  pointer-events: none;
}

.soon {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--paper-sunken);
  color: var(--ink-muted);
  padding: 2px var(--sp-2);
  border-radius: var(--radius-full);
}

.footer-credit {
  border-top: 1px solid var(--hairline);
  padding-block: var(--sp-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.footer-audit-credit {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--caption);
  color: var(--ink-soft);
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-audit-credit svg {
  width: 16px;
  height: 16px;
  color: var(--state-released);
  flex-shrink: 0;
}

.footer-audit-credit:hover {
  color: var(--ink);
}

.footer-copy {
  font-size: var(--caption);
  color: var(--ink-muted);
}

.footer-giant {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.04em;
  font-size: clamp(6rem, 22vw, 14rem);
  line-height: 0.8;
  color: var(--paper-sunken);
  text-align: center;
  margin: 0;
  user-select: none;
  /* Bleeds past the bottom edge on purpose - a closing signature, not
     content meant to be fully read. */
  transform: translateY(18%);
}

/* ------------------------------------------------ dark closing + footer -- */
/* .closing and .footer carry .section-dark for the same reason "how it
   works" does - but every ink/paper-family color inside them still
   needs its own override here, the same way .step resets itself inside
   the dark "how it works" section, because .section-dark only flips the
   section's own background/text, not every descendant's own color. */

.section-dark .btn-primary {
  background: var(--paper);
  color: var(--ink);
}

.section-dark .btn-primary:hover {
  background: var(--gold);
}

.section-dark .btn-ghost {
  color: var(--paper);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--paper) 30%, transparent);
}

.section-dark .btn-ghost:hover {
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--paper) 55%, transparent);
}

.section-dark .footer-tagline {
  color: color-mix(in srgb, var(--paper) 75%, transparent);
}

.section-dark .footer-pill {
  border-color: color-mix(in srgb, var(--paper) 25%, transparent);
}

.section-dark .footer-pill:hover {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--paper) 10%, transparent);
}

.section-dark .footer-col-head {
  color: color-mix(in srgb, var(--paper) 55%, transparent);
}

.section-dark .footer-col a {
  color: color-mix(in srgb, var(--paper) 80%, transparent);
}

.section-dark .footer-col a:hover {
  color: var(--paper);
}

.section-dark .footer-col a.is-soon {
  color: color-mix(in srgb, var(--paper) 50%, transparent);
}

.section-dark .soon {
  background: color-mix(in srgb, var(--paper) 12%, transparent);
  color: color-mix(in srgb, var(--paper) 65%, transparent);
}

.section-dark .footer-credit {
  border-top-color: color-mix(in srgb, var(--paper) 15%, transparent);
}

.section-dark .footer-audit-credit {
  color: color-mix(in srgb, var(--paper) 80%, transparent);
}

.section-dark .footer-audit-credit:hover {
  color: var(--paper);
}

.section-dark .footer-copy {
  color: color-mix(in srgb, var(--paper) 55%, transparent);
}

.section-dark .footer-giant {
  color: color-mix(in srgb, var(--paper) 10%, transparent);
}

/* ------------------------------------------------------- reveal on scroll -- */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-group] > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}

[data-reveal-group].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-group].is-visible > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-group].is-visible > *:nth-child(2) { transition-delay: 70ms; }
[data-reveal-group].is-visible > *:nth-child(3) { transition-delay: 140ms; }
[data-reveal-group].is-visible > *:nth-child(4) { transition-delay: 210ms; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal-group] > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
