/* The landing page. Tokens and sizes come from
   ../nooq-to-skape/design/DESIGN_LANGUAGE.md. Rules use the role tokens (--bg,
   --surface, --text, --line, --code-bg ...), never a raw colour, so the dark
   palette below only has to redefine tokens. The CSP allows no inline style, so
   every rule the page needs lives here, including the SVG diagram's. */

/* IBM Plex, self-hosted under the SIL Open Font License (fonts/OFL.txt). These
   are IBM's own Latin1 subsets, unmodified: the licence reserves the name
   "Plex", so a subset we cut ourselves would have to be renamed. Glyphs outside
   Latin1, like the arrows, fall back to the system font. */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url("/static/fonts/IBMPlexSans-Light-Latin1.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/IBMPlexSans-Regular-Latin1.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/IBMPlexSans-Medium-Latin1.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/IBMPlexSans-SemiBold-Latin1.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/IBMPlexMono-Regular-Latin1.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/IBMPlexMono-Medium-Latin1.woff2") format("woff2"); }

:root {
  color-scheme: light dark;

  --ink: #33322e;
  --paper: #ffffff;

  /* Roles. */
  --bg: var(--paper);
  --surface: var(--paper);
  --surface-2: #fafaf9;
  --text: var(--ink);
  --text2: #5b5a52;
  --text3: #828175;
  --line: rgba(51, 50, 46, 0.1);
  --line-strong: rgba(51, 50, 46, 0.2);
  --wash: rgba(51, 50, 46, 0.04);
  --glass: rgba(255, 255, 255, 0.7);
  /* Code blocks, the share panel's app bar and the security server: dark in both themes. */
  --code-bg: var(--ink);
  /* Text on a rainbow-hue fill, like the share avatars. */
  --on-hue: #ffffff;

  --red: #e2492b;
  --orange: #f0921c;
  --yellow: #e3ba28;
  --green: #4da844;
  --blue: #2394b8;
  --indigo: #5566d6;
  --violet: #a44cba;
  --dev-yellow: #f2ce4e;
  --error: #b3261e;
  /* Call-to-action buttons. Deep enough to carry white 14px text at AA. */
  --cta: #2f7a5c;
  --cta-hover: #25624a;

  --tint-red: #fdeae3;
  --tint-green: #e9f7e2;
  --tint-indigo: #e9ecfd;
  --tint-blue: #e3f3f8;
  /* A hue-coloured edge along the top of each chapter; only dark mode shows it. */
  --chapter-edge: 0px;

  --hill1: #d3ecc0;
  --hill2: #b7e39f;
  --hill3: #9bd67f;
  --sky1: #a5dcf2;
  --sky2: #c2e8ee;
  --sky3: #dcf0dc;
  --sky4: #ecf6dd;
  --green-kick: #2f7a5c;
  --stars: 0;

  --f-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --r-card: 12px;
  --r-btn: 8px;
  --r-inner: 10px;
  --r-art: 9px;

  --shadow-mock: 0 2px 3px rgba(51, 50, 46, 0.05), 0 26px 50px -22px rgba(51, 50, 46, 0.32);
  --shadow-tile: 0 1px 2px rgba(51, 50, 46, 0.05), 0 12px 24px -14px rgba(51, 50, 46, 0.22);

  --gutter: 56px;
  --max: 1240px;
}

/* Night meadow. The same page after dark: a starry indigo sky over dark hills.
   Chapters don't keep their tinted grounds: a large saturated area vibrates on
   a dark page (Material Design's dark theme guidance), so every chapter sits on
   the same night blue and its hue moves to the accents -- the number, the
   kicker and a thin top edge. The two night grounds alternate so neighbouring
   sections stay distinct. The hues are lifted so they still read as text. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151d;
    --surface: #1c2029;
    --surface-2: #242934;
    --text: #ecebe4;
    --text2: #bab9b0;
    --text3: #8f8e86;
    --line: rgba(236, 235, 228, 0.1);
    --line-strong: rgba(236, 235, 228, 0.2);
    --wash: rgba(236, 235, 228, 0.05);
    --glass: rgba(28, 32, 41, 0.7);
    --code-bg: #0b0d12;
    --on-hue: #0b0d12;

    --red: #f2735a;
    --orange: #f5a849;
    --yellow: #edcb52;
    --green: #6fc865;
    --blue: #56b8da;
    --indigo: #8a97ee;
    --violet: #c580d8;
    --error: #f2b8b5;
    --cta-hover: #3a9072;

    --tint-red: #152131;
    --tint-green: var(--bg);
    --tint-indigo: #152131;
    --tint-blue: #152131;
    --chapter-edge: 3px;

    --hill1: #234a35;
    --hill2: #1c3e2b;
    --hill3: #173322;
    --sky1: #0a1230;
    --sky2: #13204a;
    --sky3: #173449;
    --sky4: #1a3a34;
    --green-kick: #82d4a9;
    --stars: 1;

    --shadow-mock: 0 2px 3px rgba(0, 0, 0, 0.3), 0 26px 50px -22px rgba(0, 0, 0, 0.7);
    --shadow-tile: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 24px -14px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }

/* The login and agent-URL scripts show and hide forms with the hidden
   attribute, which any display rule below would otherwise override. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ol, ul, pre { margin: 0; }
ol, ul { padding: 0; list-style: none; }

h1, h2, .wm, .price-amount, .whycard .t {
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.02;
}


a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--red); }

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

.kick {
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
}
.kick-green { color: var(--green-kick); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border: none;
  border-radius: var(--r-btn);
  background: var(--cta);
  color: var(--paper);
  font: 600 14px/1 var(--f-sans);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { color: var(--paper); background: var(--cta-hover); }
.btn:disabled { cursor: not-allowed; background: var(--text3); }
.btn-arrow::after { content: "\2192"; }

.link-button {
  padding: 0;
  border: none;
  background: none;
  color: var(--blue);
  font: inherit;
  cursor: pointer;
}
.link-button:hover { color: var(--red); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ── Hero: the meadow ── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 38%, var(--sky3) 68%, var(--sky4) 100%);
}

/* Drawn in both themes, visible only where --stars is 1. Keep stars out of the
   top-left corner: at phone width one there sits on the wordmark and reads as
   an accent. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 35% 0;
  z-index: 0;
  opacity: calc(var(--stars) * 0.85);
  background-image:
    radial-gradient(1.6px 1.6px at 8% 22%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 17% 58%, #fff 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 31% 30%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 38% 44%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 52% 24%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 56% 32%, #fff 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 64% 16%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 73% 52%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 81% 9%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 88% 36%, #fff 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 95% 20%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 44% 70%, #fff 50%, transparent 51%);
  pointer-events: none;
}

.nav {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--gutter);
}
.nav-links {
  display: flex;
  gap: 30px;
  margin-left: auto;
  font-size: 14.5px;
  font-weight: 600;
}
.nav-links a { color: var(--text2); }
.nav-links a:hover { color: var(--red); }

/* Signed-in menu. A <details>, so it opens without any script. */
.menu { position: relative; }
.menu-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-btn);
  background: var(--glass);
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.menu-button::-webkit-details-marker { display: none; }
.menu[open] .menu-button, .menu-button:hover { background: var(--surface); }
.menu-items {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  padding: 6px;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-mock);
}
.menu-items a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--r-btn);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
}
.menu-items a:hover { background: var(--tint-blue); color: var(--text); }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { display: block; border-radius: 50%; }
.wm { font-size: 27px; letter-spacing: -0.03em; }

.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px var(--gutter) 0;
}
.hero h1 { font-size: 66px; max-width: 640px; }
.lede { margin: 24px 0 30px; max-width: 470px; font-size: 18.5px; color: var(--text2); }
/* The alpaca stands in the hero above phone width and at the very bottom of
   the page below it. Both are backgrounds rather than <img>s, each set only in
   its own media query: a hidden <img> still downloads, a background in a media
   query that doesn't match never does, so each device fetches it once. */
.hero-alpaca, .foot-alpaca { display: none; }
@media (min-width: 761px) {
  .hero-alpaca {
    display: block;
    background: url("/static/alpaca-hero.png") center / contain no-repeat;
  }
}
@media (max-width: 760px) {
  .foot-alpaca {
    display: block;
    width: 180px;
    aspect-ratio: 400 / 525;
    margin: 0 auto 32px;
    background: url("/static/alpaca-hero.png") center / contain no-repeat;
    filter: drop-shadow(0 12px 16px rgba(47, 90, 38, 0.25));
  }
}
.hero-alpaca {
  width: 400px;
  aspect-ratio: 400 / 525;
  margin-bottom: -150px;
  transform: rotate(-2deg);
  filter: drop-shadow(0 18px 24px rgba(47, 90, 38, 0.25));
}

.hills {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 200px;
}
.hill1 { fill: var(--hill1); opacity: 0.85; }
.hill2 { fill: var(--hill2); opacity: 0.9; }
.hill3 { fill: var(--hill3); }

/* ── Three-across band: blue, the hue no chapter uses; one hue per card ── */
.why { padding: 78px 0; background: var(--tint-blue); }
.why .kick { color: var(--blue); }
.why h2 { margin: 16px 0 0; font-size: 48px; }
.whycards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.whycard {
  --hue: var(--red);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-top: 4px solid var(--hue);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-tile);
}
.whycard:nth-child(2) { --hue: var(--green); }
.whycard:nth-child(3) { --hue: var(--indigo); }
.whycard .t { font-size: 23px; letter-spacing: -0.02em; }
.whycard .b { font-size: 13.5px; line-height: 1.55; color: var(--text2); }
.whycard .future {
  display: inline-block;
  margin-right: 4px;
  padding: 1px 7px;
  border-radius: 99px;
  background: var(--wash);
  color: var(--text3);
  font: 500 10px/1.6 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 1px;
}

/* ── Sections ── */
.sec { padding: 78px 0; }
.sec h2 { margin: 0 0 16px; font-size: 46px; }
.body { max-width: 440px; margin-top: 14px; font-size: 16px; color: var(--text2); }

.split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 54px;
  align-items: center;
}
.split.reverse { grid-template-columns: 1.08fr 0.92fr; }
.split.reverse > .split-text { order: 2; }

.chaphead { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.chapno { font-size: 60px; font-weight: 300; line-height: 0.9; letter-spacing: -0.028em; }
.ch-red { background: var(--tint-red); border-top: var(--chapter-edge) solid var(--red); }
.ch-red .chapno, .ch-red .kick { color: var(--red); }
.ch-green { background: var(--tint-green); border-top: var(--chapter-edge) solid var(--green); }
.ch-green .chapno, .ch-green .kick { color: var(--green); }
.ch-indigo { background: var(--tint-indigo); border-top: var(--chapter-edge) solid var(--indigo); }
.ch-indigo .chapno, .ch-indigo .kick { color: var(--indigo); }

.panel {
  padding: 20px;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-mock);
}
.panel-caption {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text2);
}

/* ── First-app flow ── */
.build .split { align-items: start; }
.build .kick { display: block; margin-bottom: 14px; }

.steps { display: grid; gap: 12px; }
.step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  padding: 20px;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-tile);
  transition: opacity 0.3s ease;
}
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font: 500 15px/1 var(--f-mono);
}
.step.is-done .step-num { background: var(--green); }
/* Locked steps stay readable: seeing what comes next is the point. */
.step.is-locked { opacity: 0.45; box-shadow: none; outline: 1px dashed var(--line-strong); }
.step.is-locked .step-num { background: var(--text3); }
.step-body { display: grid; gap: 8px; min-width: 0; }
.step-body > .btn, .login-form > .link-button { justify-self: start; }
/* "Copy prompt with secure URL" is wider than a 320px phone's step. */
.step-body > .btn { max-width: 100%; white-space: normal; line-height: 1.3; text-align: left; }
/* The agent prompt only works once the copy button has filled in a URL, so
   it can't be selected; agent_token.js lifts this if the clipboard refuses. */
.no-select { -webkit-user-select: none; user-select: none; cursor: default; }
.btn svg { flex: none; }
.step-title { font-size: 17px; font-weight: 600; line-height: 1.3; }
.step-sub { font-size: 14px; color: var(--text2); }

.prompt-box {
  overflow-x: auto;
  padding: 12px 14px;
  border-radius: var(--r-art);
  background: var(--code-bg);
  color: #c8ecc9;
  font: 12.5px/1.6 var(--f-mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.prompt-box .dim { opacity: 0.5; }
.prompt-box.result { color: var(--dev-yellow); }

.login-form { display: grid; gap: 8px; }
/* Input and button stay side by side even on a 320px phone. The input's
   width: 0 (in .login-input) is what allows it: otherwise its default
   ~20-character width is the minimum of every grid around it, and the row
   pushes the page wider than the screen. */
.login-row { display: flex; gap: 8px; }
.login-input {
  flex: 1;
  width: 0;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  background: var(--surface);
  color: var(--text);
  font: 15px var(--f-sans);
}
.login-code-input { font-family: var(--f-mono); letter-spacing: 0.15em; text-transform: uppercase; }
.login-text, .login-hint, .login-links { font-size: 14px; color: var(--text2); }
.login-error { font-size: 14px; color: var(--error); }
.login-error:empty, .login-hint:empty { display: none; }

.help { display: grid; gap: 10px; margin-top: 28px; max-width: 440px; }
.help details {
  padding: 12px 16px;
  border-radius: var(--r-inner);
  background: var(--wash);
  font-size: 14px;
  color: var(--text2);
}
.help summary { cursor: pointer; font-weight: 600; color: var(--text); }
.help details p { margin-top: 10px; }
.help code { font-family: var(--f-mono); font-size: 13px; }

/* ── Chapter 01: security diagram ── */
.flow-diagram { display: block; width: 100%; height: auto; }
.fd-label { font-family: var(--f-sans); font-size: 16px; fill: var(--text); text-anchor: middle; }
.fd-step { font-family: var(--f-sans); font-size: 15px; fill: var(--text2); }
.fd-center { text-anchor: middle; }
.fd-num { fill: var(--red); font-weight: 600; }
.fd-zone { font-family: var(--f-sans); font-size: 12.5px; font-weight: 600; fill: var(--text2); text-anchor: middle; }
.fd-zone-note { font-family: var(--f-sans); font-size: 11.5px; fill: var(--text3); text-anchor: middle; }
.fd-arrow { fill: none; stroke: var(--text3); stroke-width: 2; marker-end: url(#flow-arrow); }
.fd-arrow-light { fill: none; stroke: #ffffff; stroke-opacity: 0.45; stroke-width: 2; marker-end: url(#flow-arrow-light); }
.fd-arrowhead { fill: var(--text3); }
.fd-arrowhead-light { fill: #ffffff; fill-opacity: 0.75; }
.fd-person { fill: var(--line-strong); }
.fd-app { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 1.5; }
.fd-divider { stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 6 5; }
.fd-server { fill: var(--code-bg); }
.fd-server-label { font-family: var(--f-mono); font-size: 12.5px; font-weight: 500; fill: #ffffff; }
.fd-wall { stroke: #ffffff; stroke-opacity: 0.3; stroke-width: 2; }
.fd-check-bg { fill: #ffffff; }
.fd-check { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.fd-data { fill: var(--tint-red); }

/* ── Chapter 02: devices ── */
.device-stack { position: relative; max-width: 520px; padding: 20px 0 44px; }
.desktop-frame {
  width: 88%;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-mock);
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.frame-bar i { width: 8px; height: 8px; border-radius: 99px; background: var(--line-strong); }
.frame-bar .u { flex: 1; text-align: center; font-size: 10.5px; font-weight: 600; color: var(--text3); }
.desktop-body { min-height: 180px; padding: 18px; }
.desktop-body .head, .mobile-body .head { font-weight: 500; letter-spacing: -0.02em; }
.desktop-body .head { font-size: 24px; }
.desktop-body .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.desktop-body .grid span { aspect-ratio: 1; border-radius: var(--r-art); background: var(--hill1); }
.desktop-body .grid span:nth-child(3n+2) { background: var(--tint-red); }
.desktop-body .grid span:nth-child(3n) { background: var(--tint-indigo); }
.mobile-frame {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 130px;
  height: 240px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-mock);
}
.mobile-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.mobile-bar::before { content: ""; width: 36px; height: 4px; border-radius: 4px; background: var(--line-strong); }
.mobile-body { padding: 14px; }
.mobile-body .head { font-size: 16px; }
.mobile-body span { display: block; height: 8px; margin-top: 10px; border-radius: 4px; background: var(--hill1); }
.mobile-body span:nth-child(odd) { width: 80%; background: var(--tint-red); }
.mobile-body span:nth-child(3n) { width: 60%; background: var(--tint-indigo); }

/* ── Chapter 03: sharing ── */
.share-app {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-inner);
  background: var(--code-bg);
  font-family: var(--f-mono);
}
.share-app .name { font-size: 14px; color: #ffffff; }
.share-app .url { font-size: 11.5px; color: var(--dev-yellow); }
.share-arrow {
  padding: 10px 0;
  text-align: center;
  font: 10.5px var(--f-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text3);
}
.share-users { display: grid; gap: 10px; }
.share-user {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-inner);
}
.share-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 99px;
  color: var(--on-hue);
  font-size: 12px;
  font-weight: 600;
}
.av-you { background: var(--orange); }
.av-b { background: var(--blue); }
.av-c { background: var(--violet); }
.who { font-size: 13.5px; line-height: 1.3; }
.who .tag { display: block; margin-top: 2px; font-size: 11.5px; color: var(--text3); }
.share-store {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 99px;
  background: var(--tint-indigo);
  color: var(--indigo);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}

/* ── Price band ── */
.price {
  padding: 56px var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.price > .stripe { justify-content: center; margin: 0 0 26px; }
.price-grid { display: flex; align-items: center; justify-content: center; gap: 44px; }
.price-left { text-align: right; }
.price-amount { margin-top: 8px; font-size: 44px; }
.price-note { margin-top: 5px; font-size: 13.5px; color: var(--text2); }
.price-divider { width: 1px; height: 78px; background: var(--line); }
.price-because { max-width: 380px; margin-top: 6px; font-size: 14.5px; color: var(--text2); }

.stripe { display: flex; gap: 4px; margin-top: 16px; }
.stripe span { width: 32px; height: 6px; border-radius: 99px; }
.s-red { background: var(--red); }
.s-orange { background: var(--orange); }
.s-yellow { background: var(--yellow); }
.s-green { background: var(--green); }
.s-blue { background: var(--blue); }
.s-indigo { background: var(--indigo); }
.s-violet { background: var(--violet); }

/* ── Footer ── */
.foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 46px var(--gutter);
}
.foot-cols { display: flex; gap: 54px; }
.foot-col { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; }
.foot-col a { color: var(--text2); }
.foot-col a:hover { color: var(--red); }

/* ── Narrow screens ── */
@media (max-width: 960px) {
  :root { --gutter: 32px; }
  .hero h1 { font-size: 52px; }
  .hero-alpaca { width: 300px; margin-bottom: -110px; }
  .whycards { grid-template-columns: 1fr; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse > .split-text { order: 0; }
  .body, .help { max-width: none; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 12px; padding-top: 12px; }
  .hero h1 { font-size: 40px; }
  .lede { font-size: 17px; }
  .hero-inner { padding-bottom: 24px; }
  .hills { height: 120px; }
  .why, .sec { padding: 56px 0; }
  .why h2, .sec h2 { font-size: 32px; }
  .chapno { font-size: 44px; }
  .step { grid-template-columns: 28px 1fr; gap: 12px; padding: 16px; }
  .step-num { width: 28px; height: 28px; font-size: 13px; }
  .price-grid { flex-direction: column; gap: 20px; text-align: center; }
  .price-left { text-align: center; }
  .price-divider { width: 78px; height: 1px; }
  .foot { flex-direction: column; align-items: flex-start; }
  .share-user { grid-template-columns: auto 1fr; }
  .share-store { grid-column: 2; justify-self: start; }
}

/* The sign-in, "Continue" and "clear your cookies" pages an app sends
   people to. */
.handoff-page {
  display: grid;
  gap: 16px;
  max-width: 28rem;
  margin: 0 auto;
  padding: 48px 16px;
}
.handoff-heading { font-size: 26px; line-height: 1.2; }
.handoff-text { color: var(--text2); }
.handoff-box { display: grid; gap: 8px; }
