/* The Jabbersnap site's shared visual system:
   the brand book's and the app's tokens (marketing/BRAND_BOOK.md,
   host/ui/src/tokens/tokens.css), warm paper and white bands for reading,
   charcoal "welcome" bands for the hero and films, neutral pill buttons,
   Helvetica with an Instrument Serif italic turn in two-part headlines.
   Light and dark. Each page adds its own sections' styles after this file;
   a rule that more than one page uses belongs here. */
:root {
  color-scheme: light;
  --bg: #F7F5F0;            /* Paper */
  --bg-alt: #FFFFFF;        /* app surface */
  --panel: #EEECE6;         /* Warm Silver */
  --ink: #141414;           /* Near Black */
  --ink-2: #3A3A37;
  --muted: #6B6B66;         /* Field Gray */
  --rule: #E6E4DE;
  --rule-strong: #D2CFC8;
  --accent: #B79CFF;        /* restrained lavender */
  --accent-ink: #5B40C4;
  --accent-wash: rgb(183 156 255 / 0.18);
  --btn-bg: #141414;
  --btn-bg-hover: #2A2A28;
  --btn-ink: #FFFFFF;
  --ph-bg: #EEECE6;
  --ph-line: rgb(20 20 20 / 0.13);
  --ph-mark: rgb(20 20 20 / 0.32);
  --ph-ink: #5A5A55;
  --header-solid: rgb(247 245 240 / 0.92);
  /* Welcome bands: the same in both appearances */
  --charcoal: #151515;
  --graphite: #2A2A28;
  --ivory: #F4F2EC;
  --warm-gray: #A8A59D;
  --night-rule: rgb(244 242 236 / 0.16);

  --sans: "Helvetica Neue", -apple-system, system-ui, Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --t-display: clamp(40px, 4.2vw, 60px);
  --t-h2: clamp(32px, 4.2vw, 52px);
  --t-lede: clamp(18px, 1.6vw, 21px);
  --t-read: clamp(18px, 1.4vw, 20px);
  --t-body: 17px;
  --t-label: 13px;
  --track-tight: -0.035em;
  --r-lg: 24px;
  --r-md: 18px;
  --col: 1120px;
  --header-h: 76px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1C1B19; --bg-alt: #232220; --panel: #2A2926;
    --ink: #F2F0EB; --ink-2: #D7D4CD; --muted: #A9A69F;
    --rule: #343330; --rule-strong: #4F4D48;
    --accent-ink: #C9B8FF;
    --btn-bg: #F2F0EB; --btn-bg-hover: #E2E0DA; --btn-ink: #1C1B19;
    --ph-bg: #262522; --ph-line: rgb(255 255 255 / 0.09); --ph-mark: rgb(255 255 255 / 0.3); --ph-ink: #B9B6AF;
    --header-solid: rgb(28 27 25 / 0.92);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1C1B19; --bg-alt: #232220; --panel: #2A2926;
  --ink: #F2F0EB; --ink-2: #D7D4CD; --muted: #A9A69F;
  --rule: #343330; --rule-strong: #4F4D48;
  --accent-ink: #C9B8FF;
  --btn-bg: #F2F0EB; --btn-bg-hover: #E2E0DA; --btn-ink: #1C1B19;
  --ph-bg: #262522; --ph-line: rgb(255 255 255 / 0.09); --ph-mark: rgb(255 255 255 / 0.3); --ph-ink: #B9B6AF;
  --header-solid: rgb(28 27 25 / 0.92);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--t-body)/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, canvas { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; text-wrap: balance; }
p, ul, ol, figure { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }
.night a:focus-visible, .night button:focus-visible, .hero a:focus-visible, .hero button:focus-visible { outline-color: var(--accent); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 30; background: var(--btn-bg); color: var(--btn-ink); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Column and bands */
.wrap {
  max-width: var(--col);
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 520px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}
.band { padding-block: 112px; }
.band--alt { background: var(--bg-alt); }
.night {
  background: var(--charcoal) radial-gradient(120% 90% at 50% 0%, var(--graphite) 0%, var(--charcoal) 62%);
  color: var(--ivory);
}
@media (max-width: 700px) { .band { padding-block: 76px; } }

.intro { display: flex; flex-direction: column; gap: 18px; }
.h2 { font-size: var(--t-h2); line-height: 1.05; letter-spacing: var(--track-tight); max-width: 22ch; }
.h2--turn { max-width: 30ch; }
.h2--turn .serif { display: block; font-size: 1.1em; line-height: 1; margin-top: 4px; }
.lede { font-size: var(--t-lede); line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.night .lede { color: var(--warm-gray); }

/* Buttons: neutral, inverse primary actions; quiet ghost and text links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  font: 700 16px/1.15 var(--sans); letter-spacing: -0.01em;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn--primary:hover { background: var(--btn-bg-hover); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--panel); }
.night .btn--primary, .hero .btn--primary { background: var(--ivory); color: var(--charcoal); }
.night .btn--primary:hover, .hero .btn--primary:hover { background: #FFFFFF; }
.btn--lg { min-height: 58px; font-size: 17px; padding: 0 32px; }
.btn--block { width: 100%; }
@media (max-width: 480px) { .btn--lg { padding: 0 20px; font-size: 16px; } }
.textlink { font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.textlink:hover { text-decoration-thickness: 2.5px; }

/* Lockup */
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.lockup svg { display: block; flex: none; }
.lockup__word { font: 700 25px/1 var(--sans); letter-spacing: -0.045em; transform: translateY(-1px); }

/* Header: clear at the top of the page, dark glass while the hero scrolls
   under it, paper once the hero has gone by */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  color: var(--ivory);
  transition: background-color .25s ease, box-shadow .25s ease, color .25s ease;
}
.site-header__row { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.btn--header { min-height: 44px; padding: 0 20px; font-size: 15px; background: var(--ivory); color: var(--charcoal); }
.btn--header:hover { background: #FFFFFF; }
.site-header.is-over {
  background: rgb(21 21 21 / 0.72);
  -webkit-backdrop-filter: saturate(1.2) blur(14px); backdrop-filter: saturate(1.2) blur(14px);
  box-shadow: 0 1px 0 rgb(244 242 236 / 0.12);
}
.site-header.is-solid {
  background: var(--header-solid); color: var(--ink);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--rule);
}
.site-header.is-solid .btn--header { background: var(--btn-bg); color: var(--btn-ink); }
.site-header.is-solid .btn--header:hover { background: var(--btn-bg-hover); }
@media (max-width: 480px) {
  :root { --header-h: 64px; }
  .site-header .lockup__word { font-size: 21px; }
  .btn--header { min-height: 40px; padding: 0 14px; font-size: 13px; }
}
@media (max-width: 400px) {
  .site-header .lockup__word { display: none; }
}

/* Hero */
.hero { position: relative; display: flex; flex-direction: column; min-height: clamp(700px, 100svh, 940px); overflow: hidden; background: var(--charcoal); color: #FFFFFF; }
.hero__media { position: absolute; inset: 0; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to left, rgb(21 21 21 / 0.9) 0%, rgb(21 21 21 / 0.8) 40%, rgb(21 21 21 / 0.4) 56%, rgb(21 21 21 / 0) 74%),
    linear-gradient(to bottom, rgb(21 21 21 / 0.6) 0%, rgb(21 21 21 / 0) 18%, rgb(21 21 21 / 0) 78%, rgb(21 21 21 / 0.5) 100%);
}
.hero__body { position: relative; z-index: 1; flex: 1; display: flex; align-items: center; }
.hero__body .wrap { width: 100%; display: flex; justify-content: flex-end; padding-block: calc(var(--header-h) + 40px) 88px; }
.hero__copy { max-width: 580px; display: flex; flex-direction: column; gap: 24px; text-shadow: 0 1px 24px rgb(0 0 0 / 0.3); }
.hero h1 { font-size: var(--t-display); line-height: 1; letter-spacing: var(--track-tight); }
.hero h1 .serif { display: block; font-size: 1.1em; line-height: 0.98; letter-spacing: -0.015em; margin-top: 6px; }
.hero__lede { font-size: 20px; line-height: 1.5; color: #ECEAE4; }
.hero__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 4px; text-shadow: none; }
.hero__price { font-size: 16px; color: #DAD7CF; text-shadow: 0 1px 12px rgb(0 0 0 / 0.4); }
.hero__price strong { color: #FFFFFF; font-size: 18px; }
.hero__alt { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 1px solid rgb(244 242 236 / 0.22); }
.hero__alt .textlink { align-self: flex-start; font-size: 17px; color: #FFFFFF; }
.hero__alt p { font-size: 15px; line-height: 1.5; color: #CFCCC4; }
.video-toggle {
  position: absolute; z-index: 2;
  right: max(24px, env(safe-area-inset-right, 0px)); bottom: 20px;
  min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.5); background: rgb(21 21 21 / 0.4); color: #FFFFFF;
  font: 600 13px/1 var(--sans); cursor: pointer;
}
.video-toggle:hover { background: rgb(21 21 21 / 0.65); }
/* Phones: the reel becomes a square above the words, held at its left
   edge so the person and the device stay in frame in every clip: the
   desk speaker's head sits at the frame's far left, the café speaker's
   device near its middle. */
@media (max-width: 760px) {
  .hero { min-height: 0; }
  .hero__media { position: relative; inset: auto; width: 100%; aspect-ratio: 1 / 1; max-height: 64svh; }
  .hero__video { object-position: 4% 40%; }
  .hero__shade { background: linear-gradient(to bottom, rgb(21 21 21 / 0.55) 0%, rgb(21 21 21 / 0) 24%, rgb(21 21 21 / 0) 66%, rgb(21 21 21 / 1) 100%); }
  .hero__body { margin-top: -56px; }
  .hero__body .wrap { padding-block: 0 64px; }
  .hero__copy { gap: 20px; }
  .hero__lede { font-size: 18px; }
  .hero__buy .btn { width: 100%; }
  .hero__buy { gap: 10px; }
  .video-toggle { top: calc(var(--header-h) + 4px); bottom: auto; right: max(16px, env(safe-area-inset-right, 0px)); }
}

/* Reading column: one constrained column of prose */
.reading { max-width: 680px; margin-inline: auto; display: flex; flex-direction: column; gap: 22px; }
.reading > p { font-size: var(--t-read); line-height: 1.7; color: var(--ink-2); }
.reading .h2 { margin-bottom: 14px; }
.reading .btn { align-self: flex-start; margin-top: 18px; }

/* The device in 3D (live, with its still as fallback) beside a list of benefits */
.value__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px 64px; align-items: center; margin-top: 56px; }
.remote-stage {
  position: relative; min-height: 600px; border-radius: var(--r-lg);
  background: radial-gradient(70% 60% at 50% 45%, var(--bg-alt) 0%, var(--panel) 100%);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.band--alt .remote-stage { background: radial-gradient(70% 60% at 50% 45%, var(--bg) 0%, var(--panel) 100%); }
.remote-stage__poster { position: absolute; inset: 4%; width: 92%; height: 92%; object-fit: contain; }
.remote-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.remote-stage__hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  font-size: var(--t-label); color: var(--muted); letter-spacing: 0.02em; white-space: nowrap; display: none;
}
.remote-stage[data-live] .remote-stage__hint { display: block; }
.value__side { display: flex; flex-direction: column; gap: 36px; align-items: flex-start; }
.benefits { list-style: none; padding: 0; width: 100%; }
.benefits li { border-top: 1px solid var(--rule-strong); padding-block: 26px; display: flex; flex-direction: column; gap: 8px; }
.benefits li:last-child { border-bottom: 1px solid var(--rule-strong); }
.benefits h3 { font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; }
.benefits p { color: var(--ink-2); line-height: 1.6; }
@media (max-width: 860px) {
  .value__grid { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .remote-stage { min-height: 0; aspect-ratio: 4 / 5; max-height: 560px; }
  .value__side .btn { width: 100%; }
}

/* Stories: cards with a headshot (or its placeholder) */
.guide__group { margin-top: 64px; padding-top: 22px; border-top: 2px solid var(--ink); font-size: 22px; line-height: 1.3; letter-spacing: -0.015em; }
.stories { display: grid; gap: 24px; margin-top: 28px; }
.stories--featured { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stories--short { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.story { background: var(--bg-alt); border: 1px solid var(--rule); border-radius: 20px; padding: 32px 30px; display: flex; flex-direction: column; gap: 14px; }
.story h4 { font-size: 23px; line-height: 1.2; letter-spacing: -0.02em; margin-top: 6px; }
.story p:not(.ph-tag) { font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.story--short { flex-direction: row; align-items: flex-start; gap: 24px; }
.story__text { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.story--short .headshot { width: 64px; height: 64px; font-size: 26px; }
.story--short .story__text h4 { margin-top: 0; }
.headshot {
  flex: none; width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ph-bg); border: 1.5px dashed var(--ph-mark); color: var(--ph-ink);
  font: italic 400 30px/1 var(--serif);
}
@media (max-width: 980px) {
  .stories--featured { grid-template-columns: minmax(0, 1fr); }
  .story { padding: 28px 24px; }
}
@media (max-width: 760px) {
  .stories--short { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 460px) {
  .story--short { flex-direction: column; gap: 14px; }
}

/* Offer: one prominent purchase card, then a quieter early-access panel */
.buycard {
  margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  background: var(--bg); border: 1px solid var(--rule); border-radius: 28px; overflow: hidden;
  box-shadow: 0 1px 2px rgb(20 20 20 / 0.04), 0 18px 48px -24px rgb(20 20 20 / 0.18);
}
.buycard__photo { background: radial-gradient(80% 70% at 50% 50%, var(--bg-alt) 0%, var(--panel) 100%); display: flex; align-items: center; justify-content: center; padding: 36px; }
.buycard__photo img { width: 100%; height: auto; object-fit: contain; }
.buycard__body { padding: 44px 44px 40px; display: flex; flex-direction: column; gap: 26px; }
.buycard__name { font-size: 30px; line-height: 1.1; letter-spacing: -0.03em; }
.buycard__price { display: flex; flex-direction: column; gap: 8px; margin-top: -12px; }
.buycard__now { font-size: 18px; font-weight: 700; color: var(--ink-2); }
.buycard__now strong { font-size: 56px; line-height: 1; letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 6px; }
.buycard__retail { font-size: 16px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.save { font-size: 14px; font-weight: 700; background: var(--accent); color: #141414; padding: 6px 11px; border-radius: 999px; }
.buycard h4 { font-size: 17px; letter-spacing: -0.01em; }
.buycard__get { display: flex; flex-direction: column; gap: 10px; }
.checklist { list-style: none; padding: 0; display: flex; flex-direction: column; }
.checklist li { position: relative; padding: 11px 0 11px 32px; border-top: 1px solid var(--rule); line-height: 1.5; color: var(--ink-2); }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 15px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.5L13 6.4' fill='none' stroke='%235B40C4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.buycard__act { display: flex; flex-direction: column; gap: 10px; }
.assure { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 14px; background: var(--bg-alt); border: 1px solid var(--rule); }
.assure p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.early {
  margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px 48px; align-items: center;
  border: 1.5px solid var(--rule-strong); border-radius: 22px; padding: 32px 36px;
}
.early h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.015em; margin-bottom: 8px; }
.early__text p { line-height: 1.6; color: var(--ink-2); }
.early__act { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.early__act p { font-size: 14px; line-height: 1.5; color: var(--muted); }
@media (max-width: 900px) {
  .buycard { grid-template-columns: minmax(0, 1fr); }
  .buycard__photo { padding: 24px; }
  .buycard__body { padding: 30px 24px 28px; }
  .early { grid-template-columns: minmax(0, 1fr); padding: 26px 24px; }
  .early__act .btn { width: 100%; }
}

/* Footer: quieter than the offer */
.footer { border-top: 1px solid var(--rule); background: var(--bg); color: var(--ink-2); }
.footer__grid { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 40px 64px; padding-block: 56px 72px; }
.footer .lockup__word { font-size: 21px; }
.footer__nav { display: grid; grid-template-columns: repeat(3, minmax(160px, auto)); gap: 32px 64px; }
/* A footer column's label: a plain line, since it is not a section of
   the page */
.footer__label { margin: 0; font-weight: 700; }
.footer__label { font-size: var(--t-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer__nav ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) {
  .footer__grid { flex-direction: column; padding-block: 44px 56px; }
  .footer__nav { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* Placeholders and open decisions: direction for the team, never copy.
   Lavender mono marks an open decision; dashed and gridded marks a
   picture or film still to make. */
.tbd { font-family: var(--mono); font-size: 0.82em; line-height: 1.5; color: var(--accent-ink); background: rgb(183 156 255 / 0.14); padding: 2px 6px; border-radius: 4px; }
.tbd--night { color: #CDBDFF; background: rgb(183 156 255 / 0.16); }
.tbd-line { font-size: 15px; }
.ph-tag {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  font: 700 10.5px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ph-ink); border: 1px dashed var(--ph-mark); border-radius: 999px; padding: 6px 9px;
}
.ph-tag--night { color: var(--ivory); border-color: rgb(244 242 236 / 0.4); background: rgb(21 21 21 / 0.4); }
.story .ph-tag { margin-top: -4px; }
.ph-note { font-size: 13px; line-height: 1.5; color: var(--warm-gray); }
.ph-note strong { color: var(--ivory); }
.ph-corner { position: absolute; width: 22px; height: 22px; border: 0 solid rgb(244 242 236 / 0.3); }
.ph-corner--tl { top: 14px; left: 14px; border-top-width: 2px; border-left-width: 2px; }
.ph-corner--tr { top: 14px; right: 14px; border-top-width: 2px; border-right-width: 2px; }
.ph-corner--bl { bottom: 14px; left: 14px; border-bottom-width: 2px; border-left-width: 2px; }
.ph-corner--br { bottom: 14px; right: 14px; border-bottom-width: 2px; border-right-width: 2px; }

/* Draft-only notice for links whose destination doesn't exist yet */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 40;
  max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px;
  background: var(--charcoal); color: var(--ivory); border: 1px solid var(--night-rule);
  font: 600 14px/1.4 var(--mono); box-shadow: 0 12px 32px rgb(0 0 0 / 0.3);
}
