/* =========================================================================
   System
   Type: 12 14 16 18 20 24 32 48 display. Radii: 8 controls, 12 cards and rows, 20 panels.
   Spacing: 4 8 12 16 24 32 48 72 96. One split everywhere: 5fr / 7fr, 72px gap.
   Ink outlines only on things you can press or type into.
   Hard offset shadow only on the page's real calls to action.
   Icons are Phosphor Bold, drawn as filled shapes: a 1.5px line at 16px.
   ========================================================================= */
/* The brand faces are served from this site, not Google Fonts: the CSP allows
   only same-origin styles and fonts. They are the same files the web app ships,
   with their licenses in /fonts/. Bricolage keeps its opsz and wdth axes. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/atkinson-hyperlegible-next.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Mono";
  src: url("/fonts/atkinson-hyperlegible-mono.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
/* The fallback face for text and display type while the web fonts load. A
   family name such as Arial resolves to different fonts on each platform, so
   this face names Arial and its metric-identical clones (Liberation Sans on
   Linux, Arimo on ChromeOS) by their installed names. Every platform then
   wraps the fallback text the same way. The face is not scaled. */
@font-face {
  font-family: "Hughie Fallback";
  font-style: normal;
  font-weight: 200 500;
  src:
    local("Arial"), local("ArialMT"), local("Liberation Sans"),
    local("LiberationSans"), local("Arimo"), local("Arimo-Regular");
}
@font-face {
  font-family: "Hughie Fallback";
  font-style: normal;
  font-weight: 501 800;
  src:
    local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"),
    local("LiberationSans-Bold"), local("Arimo Bold"), local("Arimo-Bold");
}
:root {
  --accent: #f2a33a;
  --on-accent: #171717;
  --accent-ring: rgb(242 163 58 / 0.4);
  --font-sans:
    "Atkinson Hyperlegible Next", "Hughie Fallback", ui-sans-serif, system-ui,
    sans-serif;
  --font-display:
    "Bricolage Grotesque", "Hughie Fallback", ui-sans-serif, system-ui,
    sans-serif;
  --font-mono: "Atkinson Hyperlegible Mono", ui-monospace, monospace;
  --fs-12: 12px;
  --fs-14: 14px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-20: 20px;
  --fs-24: 24px;
  --fs-32: 32px;
  --fs-48: 48px;
  --fs-display: clamp(44px, 5.6vw, 80px);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 64px;
  --section-y: 96px;
  --gap: 72px;
  --head-gap: 48px;
}
:root,
[data-theme="light"] .ctx-light {
  --canvas: #fafafa;
  --surface: #fff;
  --surface-2: #f5f5f5;
  --bubble: #efefef;
  --ink: #171717;
  --text-2: #525252;
  --muted: #737373;
  --line: #171717;
  --hair: rgb(0 0 0 / 0.08);
  --hair-strong: rgb(0 0 0 / 0.14);
  --accent-soft: #fde6bd;
  --accent-wash: #fff7ea;
  --good: #1f7a4d;
  --bad: #a3361f;
  --cta-shadow: 3px 3px 0 #171717;
  --cta-border: #171717;
  --ring: 0 0 0 1px rgb(0 0 0 / 0.08), 0 2px 4px rgb(0 0 0 / 0.03);
  --lift: 0 0 0 1px rgb(0 0 0 / 0.08), 0 24px 60px rgb(0 0 0 / 0.08);
  color-scheme: light;
  color: var(--ink);
}
[data-theme="dark"],
[data-theme="light"] .ctx-dark {
  --canvas: #0a0a0a;
  --surface: #151515;
  --surface-2: #0e0e0e;
  --bubble: #262626;
  --ink: #ededed;
  --text-2: #a3a3a3;
  --muted: #8a8a8a;
  --line: rgb(255 255 255 / 0.32);
  --hair: rgb(255 255 255 / 0.08);
  --hair-strong: rgb(255 255 255 / 0.16);
  --accent-soft: rgb(242 163 58 / 0.16);
  --accent-wash: rgb(242 163 58 / 0.06);
  --good: #5fc98f;
  --bad: #f08a70;
  --cta-shadow: 3px 3px 0 #7a4a10;
  --cta-border: #f2a33a;
  --ring: inset 0 0 0 1px rgb(255 255 255 / 0.08);
  --lift: inset 0 0 0 1px rgb(255 255 255 / 0.1), 0 24px 60px rgb(0 0 0 / 0.5);
  color-scheme: dark;
  color: var(--ink);
}
[data-theme="light"] .ctx-dark {
  --canvas: #111;
  --surface: #1a1a1a;
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 var(--fs-16) / 1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
svg.ph {
  fill: currentColor;
  stroke: none;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
main {
  position: relative;
}

/* ---------- Controls ---------- */

.mark {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url(assets/hughie-icon.png) center / contain no-repeat;
  font-size: 0;
  color: transparent;
  flex: none;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 var(--fs-20) / 1 var(--font-display);
  letter-spacing: -0.03em;
}
.logo .wordmark {
  display: block;
  width: auto;
  height: 28px;
  fill: currentColor;
  stroke: none;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  /* Opaque: a translucent bar turns grey over the dark "How it works" band. */
  background: var(--canvas);
  box-shadow: 0 1px 0 var(--hair);
}
.nav .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
}
.nav-links {
  display: flex;
  gap: 32px;
  font-size: var(--fs-14);
  color: var(--text-2);
}
.nav-links a:hover {
  color: var(--ink);
}
.nav .btn {
  justify-self: end;
}
/* The logo link is as wide as the wordmark, not the whole first column. */
.nav .logo {
  justify-self: start;
}
/* On a touch screen the logo and the links get a 44px box; the wordmark
   keeps its size and the bar stays 64px. */
@media (pointer: coarse) {
  .nav .logo,
  .nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .nav-links a {
    justify-content: center;
    min-width: 44px;
  }
}

/* ---------- Sections and type ---------- */
section {
  position: relative;
  padding: var(--section-y) 0;
  scroll-margin-top: var(--nav-h);
}
section + section {
  box-shadow: 0 -1px 0 var(--hair);
}
.band-alt {
  background: var(--surface);
}
/* In dark mode the alternate bands sit one step above the page, and "How
   Hughie works" one step above that, so sections stay distinct as they do in
   light mode. */
[data-theme="dark"] .band-alt {
  background: #111;
}
[data-theme="dark"] .band-ink {
  background: #171717;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--gap);
  align-items: start;
}
h2.h {
  font: 600 var(--fs-48) / 1.08 var(--font-display);
  letter-spacing: -0.03em;
  max-width: 20ch;
  text-wrap: balance;
}
.lede {
  margin-top: 16px;
  max-width: 44ch;
  font-size: var(--fs-18);
  line-height: 1.6;
  color: var(--text-2);
  text-wrap: pretty;
}
.reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity 400ms var(--ease),
    transform 400ms var(--ease);
}
.reveal-ready .reveal:not(.in) {
  opacity: 0;
  transform: translateY(8px);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Hero ---------- */
.waitlist {
  max-width: 520px;
}
.waitlist-fields {
  display: flex;
  gap: 8px;
}
.waitlist.is-checking .cf-turnstile {
  margin-top: 8px;
}
.waitlist .note {
  margin-top: 12px;
  font-size: var(--fs-14);
  color: var(--muted);
}
.waitlist .error {
  display: block;
  margin-top: 8px;
  font-size: var(--fs-14);
  color: var(--bad);
}
.waitlist .error:empty {
  margin-top: 0;
}
.waitlist.ready .waitlist-fallback {
  display: none;
}
.waitlist.has-error .error {
  display: block;
}
.waitlist .done {
  display: none;
  align-items: flex-start;
  gap: 12px;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: var(--accent-wash);
  box-shadow: inset 0 0 0 1px var(--hair-strong);
  text-align: left;
}
.waitlist .done svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  color: var(--good);
  stroke-width: 2;
}
.done-body {
  display: grid;
  gap: 12px;
  min-width: 0;
  font-size: var(--fs-14);
}
.done-body [role="status"] {
  display: grid;
  gap: 6px;
}
.done-title {
  font-size: var(--fs-16);
  font-weight: 600;
}
.done-email {
  overflow-wrap: anywhere;
}
.done-change {
  justify-self: start;
}
.waitlist.is-done form,
.waitlist.is-done .note,
.waitlist.is-done .error {
  display: none;
}
.waitlist.is-done .done {
  display: flex;
  animation: fade-in 300ms var(--ease);
}
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Hero ---------- */
/* The offer sits centered on the page's canvas, and the opening landscape runs
   under it. The scene's paper is transparent, so its empty top slides up
   behind the end of the signup with nothing to hide. At every width the scene
   is sized to fit the room under the copy, which stays centered. The hero ends at the
   scene's street, and the example conversation follows in its own section. */
.hero {
  padding: 0;
  overflow: hidden;
}
.hero h1 {
  font: 640 var(--fs-display) / 1.02 var(--font-display);
  letter-spacing: -0.038em;
}
/* On the smallest phones the headline drops from 44px to 40px so the headline,
   form and note all fit the first screen at 320x568. */
@media (max-width: 359px) {
  .hero h1 {
    font-size: 40px;
  }
}
.hero .lede {
  margin-top: 16px;
}
/* A wider gap above the form than above the lede, so the heading and lede
   read as the message and the form as the action. */
.hero .waitlist {
  margin-top: 32px;
}
/* Above the painting, which comes after it in the page and overlaps it. */
.hero .hero-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - var(--nav-h));
  text-align: center;
}
/* One short sentence at full display size: two lines on a wide screen, three
   even lines on a 320px phone in either font. The lede under it stays short
   enough for two lines there, so the whole signup still fits on the first
   screen. Balancing stops a word being left alone on the last line. */
.hero-center h1 {
  max-width: none;
  text-wrap: balance;
}
/* Placement belongs to the page's initial CSS, not a late component stylesheet. */
.hero-window .chat-preview {
  margin: 0 auto;
}
/* Wide enough that a lede of up to about 140 characters stays on two lines,
   balanced so the second line is not a short tail. The width is in em, not
   ch, so it does not depend on the font's "0": a ch width is narrower in the
   fallback than in Atkinson and would re-wrap the lede when the font loads. */
.hero-center .lede {
  max-width: 38.88em;
  text-wrap: balance;
}
.hero-center .waitlist {
  width: 100%;
}
/* Balanced so a narrow phone never leaves "opens." alone on a line. */
.hero-center .note {
  text-align: center;
  text-wrap: balance;
}
/* On a touch screen the privacy link gets a 44px box, like the footer's
   company link. The negative margins keep the note's line box, so nothing
   moves. The box reaches 10.8px past its line, less than the note's 12px gap
   below the form, so it never covers the button. */
@media (pointer: coarse) {
  .hero-center .note a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-block: calc((1lh - 44px) / 2);
  }
}
/* On a phone "How we use your email." gets its own centered line. Wider
   screens keep it inline after the first sentence. This rule comes after the
   touch rule so its display wins on touch phones. */
@media (max-width: 640px) {
  .hero-center .note a {
    display: flex;
    justify-content: center;
    width: fit-content;
    margin-inline: auto;
  }
}

/* The opening sky, from HeroSky.astro: a faint wash that runs up behind the
   nav, and printed clouds in the top corners. Decorative, out of flow, and
   never over the copy. Dark theme swaps in its own raster, with no filter. */
.home {
  --sky-top: #e9f0f7;
  position: relative;
}
[data-theme="dark"] .home {
  --sky-top: #0d131e;
}
.hero-sky {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  height: calc(var(--nav-h) + min(48svh, 440px));
  overflow: clip;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    var(--sky-top) 0%,
    color-mix(in srgb, var(--sky-top) 82%, transparent) 30%,
    color-mix(in srgb, var(--sky-top) 50%, transparent) 55%,
    color-mix(in srgb, var(--sky-top) 20%, transparent) 78%,
    transparent 100%
  );
}
.hero-sky-clouds {
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% 0;
  width: 140%;
  aspect-ratio: 3 / 1;
  background: var(--sky-sm) top center / 100% 100% no-repeat;
}
[data-theme="dark"] .hero-sky-clouds {
  background-image: var(--sky-sm-dark);
}
@media (min-width: 768px) {
  .hero-sky-clouds {
    width: 100%;
    max-height: 560px;
    background-image: var(--sky-lg);
  }
  [data-theme="dark"] .hero-sky-clouds {
    background-image: var(--sky-lg-dark);
  }
}
/* Sun (light) or moon (dark): a sprite under the clouds, clear of the nav. The
   glow is a soft radial wash from the disc's centre toward the left of the
   headline: no polygon, no edge, fading to nothing. Static, no blur, behind
   the text. The lettering itself is lit by the .hero h1 sheen below. */
.hero-sky {
  --body-size: 52px;
  --body-x: 20%;
  --body-top: calc(var(--nav-h) + 12px);
  --shaft: rgb(255 236 180 / 0.2);
}
[data-theme="dark"] .hero-sky {
  --shaft: rgb(140 170 230 / 0.08);
}
.hero-sky-body {
  position: absolute;
  top: var(--body-top);
  left: var(--body-x);
  width: var(--body-size);
  aspect-ratio: 1;
  translate: -50% 0;
  background: var(--sun-img) center / contain no-repeat;
}
[data-theme="dark"] .hero-sky-body {
  background-image: var(--moon-img);
}
.hero-sky-shaft {
  position: absolute;
  /* Centred on the disc. closest-side puts the ellipse's zero at the nearest
     box edge (the top, then the sides), so no edge of the box ever shows. */
  top: 0;
  left: calc(var(--body-x) - 30vw);
  bottom: 0;
  width: 60vw;
  background: radial-gradient(
    closest-side ellipse at 50% calc(var(--body-top) + var(--body-size) / 2),
    var(--shaft) 0%,
    color-mix(in srgb, var(--shaft) 60%, transparent) 30%,
    color-mix(in srgb, var(--shaft) 22%, transparent) 60%,
    color-mix(in srgb, var(--shaft) 5%, transparent) 85%,
    transparent 100%
  );
}
/* Narrow, short phones (320x568): the copy is centred in a short first screen,
   so the headline starts about 92px down. The whole disc must fit in the gap
   between the nav (64px) and the headline: 24px at nav-h + 2px ends at 90px.
   CSS only, independent of scroll; taller phones keep the 52px disc. */
@media (max-width: 479px) and (max-height: 700px) {
  .hero-sky {
    --body-size: 24px;
    --body-top: calc(var(--nav-h) + 2px);
  }
}
@media (min-width: 768px) {
  .hero-sky {
    --body-size: clamp(64px, 6.2vw, 120px);
    --body-x: 24%;
    --body-top: calc(var(--nav-h) + 6px);
  }
  .hero-sky-shaft {
    left: calc(var(--body-x) - 21vw);
    width: 42vw;
  }
}
/* Glyph sheen: the headline's own ink is a touch brighter on its left, the
   side nearest the disc. Day: #171717 ink warms to #3a2610 (about 14:1 on the
   #e9f0f7 sky). Night: #ededed brightens to #f7faff (cool, still light).
   The base color stays as the fallback; only browsers with background-clip
   text get the gradient, and forced colors keeps plain system text. */
.hero h1 {
  --ink-lit: #3a2610;
}
[data-theme="dark"] .hero h1 {
  --ink-lit: #f7faff;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 {
    background-image: linear-gradient(
      100deg,
      var(--ink-lit) 0%,
      var(--ink-lit) 12%,
      var(--ink) 48%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
@media (forced-colors: active) {
  .hero-sky-shaft {
    display: none;
  }
  .hero h1 {
    background: none;
    color: CanvasText;
  }
}
.home .nav[data-over-sky] {
  background: transparent;
  box-shadow: none;
}

/* The opening scene, from HeroArt.astro: a transparent illustration, the
   same file in both themes, with no mask, gradient or filter. Its height
   follows from its width, so the numbers below are shares of the width. A
   margin percentage is a share of the hero's width, and the hero runs edge
   to edge, so the image's top is pulled up by its empty paper and the
   first shape lands under the copy. The copy is positioned above the
   image, and the image takes no clicks, so its empty top never covers a
   control.
   - Full-width masters, like the sky: the art fills the hero's width at every
     size, with no max-width cap and no fitting to the room under the copy.
   - Below 768px it is the 1659x948 (7:4) phone master, shown whole.
   - From 768px it is the full-width 3:1 panorama (2172x724), see below.
   Under the image, --hero-preview is the same master at 96px, inlined at
   build time and painted with the same crop, so the scene's shapes are in
   place before the full file arrives. It is a plain raster, not a filter.
   A small script in HeroArt.astro adds .is-decoded once the full image has
   decoded, and the preview is removed then, so it cannot halo the paper's
   transparent edges. If the image fails, the preview stays. */
/* The copy group stays centered in the first screen at every width: the
   hero-center box is exactly the screen less the nav, and nothing here
   changes that. The art is full width; only its margins place it, pulling
   it up so its first shapes sit 24px beneath the copy.
   --copy-h is a conservative estimate of the copy's height. --room is half
   the spare height between the copy and the fold. The hero grows past the
   fold as needed, since the art's height follows from the page width. */
.hero-art {
  --copy-h: 440px;
  --room: max(0px, calc((100svh - var(--nav-h) - var(--copy-h)) / 2));
  /* The 1659x948 phone master is shown whole at 7:4, height 0.5714 of its
     width. Its alpha runs 0.18038 to 0.9156 of the height, so the first shapes
     are 0.1031 of the width down and the ground ends 0.5232 down. The paper's
     bottom is about 0.89 of the height, 0.5086 of the width, so the paper's
     height from the first shapes is 0.4055 of the width. */
  /* The scene spans the full page width like the sky. The hero box is the
     page width (no 100vw, so no scrollbar overflow). */
  display: block;
  width: 100%;
  aspect-ratio: 1659 / 948;
  /* Percent margins are shares of the hero's width, which is the art's width. */
  margin: calc(24px - var(--room) - 10.31%) 0 -4.82%;
  background: var(--hero-preview-mobile) center / 100% 100% no-repeat;
  pointer-events: none;
}
.hero-art.is-decoded {
  background: none;
}
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1659 / 948;
  object-fit: fill;
}
/* From 768px the scene is home-panorama.png (2172x724, 3:1, true alpha),
   a wide, low strip of town and trees at the original's quiet scale. Its
   measured ink (alpha >= 16) runs y375..691 of 724: the first ink is 375/2172
   = 17.265% of the width down and 32/2172 = 1.473% of the width is clear
   below the ground, so the visible band is 317/2172 = 0.146 of the width
   (about 210px at 1440, 187px at 1280). Faint alpha-1 specks near y112 are
   invisible and ignored. The negative top margin pulls the transparent top up
   behind the copy so the ink sits 16px under the note, and the negative bottom
   margin removes the clear strip below the ground. --copy-h estimates the
   copy: two display lines (1.02 line height) plus lede 74, form 84 and a note
   allowed two lines 54 (212px). It errs tall, so the gap is never under 16px. */
@media (min-width: 768px) {
  .hero-art {
    --copy-h: calc(var(--fs-display) * 2.04 + 212px);
    margin: calc(16px - var(--room) - 17.265%) 0 -1.473%;
    aspect-ratio: 3 / 1;
    background-image: var(--hero-preview);
  }
  .hero-art img {
    aspect-ratio: 3 / 1;
  }
}

/* ---------- Board ---------- */
.sticky-copy {
  position: sticky;
  top: calc(var(--nav-h) + 48px);
}
.scale {
  margin-top: 48px;
}

/* ---------- How it works ---------- */
.band-ink {
  background: var(--canvas);
}
/* Five scenes over about two and three-quarter screens of scroll (the
   track's height less one sticky screen): each scene gets a little over half
   a screen of scrolling, plays through about two-thirds of it, then holds
   before the next. Taller than it was so each scene turns more slowly;
   scrolling still scrubs it directly, forward and back. */
.how-track {
  position: relative;
  height: 375vh;
  margin-top: var(--head-gap);
}
.how-sticky {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  min-height: 600px;
  display: flex;
  align-items: center;
}
.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--gap);
  align-items: start;
  width: 100%;
}
.steps {
  list-style: none;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding-left: 32px;
}
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 14px;
  width: 2px;
  border-radius: 2px;
}
.steps::before {
  bottom: 14px;
  background: var(--hair-strong);
}
/* The script sets --fill so the line's tip reaches each step's dot as its
   scene starts; --progress is the fallback before it runs. */
.steps::after {
  height: var(--fill, calc((100% - 28px) * var(--progress, 0)));
  background: var(--accent);
}
.step {
  position: relative;
}
.step::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--canvas);
  box-shadow: inset 0 0 0 2px var(--hair-strong);
  transition:
    background 300ms,
    box-shadow 300ms;
}
.step.is-done::before {
  background: var(--accent);
  box-shadow: none;
}
.step.is-active::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgb(242 163 58 / 0.25);
}
.step h3 {
  font: 600 var(--fs-24) / 1.2 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--muted);
  transition: color 400ms var(--ease);
}
/* The step text changes on the same 400ms curve as its scene, so they turn together. */
.step p {
  margin-top: 8px;
  max-width: 40ch;
  color: var(--muted);
  font-size: var(--fs-16);
  transition: color 400ms var(--ease);
}
.step.is-active h3 {
  color: var(--ink);
}
.step.is-active p {
  color: var(--text-2);
}

.stage {
  position: relative;
  height: 680px;
}
.scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 400ms var(--ease),
    transform 400ms var(--ease);
  pointer-events: none;
}
.scene.is-active {
  opacity: 1;
  transform: none;
}
.scene.is-past {
  transform: translateY(-16px);
}
.appear {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 300ms var(--ease),
    transform 400ms var(--ease);
}
.appear.on {
  opacity: 1;
  transform: none;
}
.example-user-message {
  display: flex;
  align-self: flex-end;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  max-width: 85%;
}
.bub-user {
  width: fit-content;
  padding: 8px 16px;
  border-radius: 16px 16px 4px 16px;
  background: var(--surface-2);
  line-height: 1.7;
  overflow-wrap: anywhere;
}
/* Lighter than the panel, like the app's bubble in dark mode. */
[data-theme="dark"] .bub-user {
  background: #1f1f1f;
}
.bub-bot {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
}
.bub-bot > div {
  padding-top: 2px;
}
.bub-bot > img {
  width: 24px;
  height: 24px;
}
.indent {
  margin-left: 36px;
}

/* ---------- Ask Hughie ---------- */
.prompts {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 32px;
}
.askstage {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 620px;
  overflow: clip;
}
/* "Edit my resume for this job" under an answer, like the app's outline button. */
.example-action {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  margin: -8px 0 0 36px;
  padding: 4px 12px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-weight: 500;
  transition: background 150ms var(--ease);
}
.example-action.is-pressed {
  background: var(--accent-soft);
}
/* The saved copy and "Edit again", as the app shows them under the answer. */
.example-saved {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: -8px 0 0 36px;
}
/* The file stays on one line; "Edit again" wraps under it when there is no room. */
.example-saved .example-action {
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
}
.example-saved .example-action.is-ghost {
  border-color: transparent;
  background: none;
}
/* A file name on one line. A long one loses letters from the middle, so its
   ending, like "(edited).pdf", stays readable. */
.file-name {
  display: flex;
  min-width: 0;
}
.file-name > span {
  white-space: pre;
}
.file-name > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-name > span:last-child {
  flex: none;
}
/* A new chat in the app: a question, a line about Hughie, and suggestions. */
.example-empty {
  display: grid;
  gap: 6px;
  padding-top: 24px;
  color: var(--text-2);
}
.example-empty-title {
  color: var(--ink);
  font: 600 20px / 1.3 var(--font-sans);
}
.example-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.example-suggestion {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid var(--hair-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
  transition: background 150ms var(--ease);
}
.example-suggestion.is-pressed {
  background: var(--accent-soft);
}
.example-sheet-job {
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
}
.example-sheet-job strong {
  font-weight: 600;
}
.example-sheet-job span,
.example-sheet-note {
  color: var(--text-2);
}
.example-sheet-working {
  display: grid;
  gap: 12px;
}
.example-sheet-working > p {
  display: flex;
  align-items: center;
  gap: 8px;
}
.example-sheet[hidden] {
  display: none;
}
.example-saved svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: currentColor;
  color: var(--accent);
}
/* The app's resume editor sheet, inside the example frame. */
.example-sheet {
  position: absolute;
  z-index: 4;
  inset: 0 0 0 auto;
  display: flex;
  flex-direction: column;
  width: min(100%, 520px);
  border-left: 1px solid var(--hair);
  background: var(--surface);
  font-size: 14px;
  line-height: 1.5;
  animation: example-sheet-in 380ms var(--ease);
}
@keyframes example-sheet-in {
  from {
    transform: translateX(24px);
    opacity: 0;
  }
}
.example-sheet svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: currentColor;
  stroke: none;
}
.example-sheet-head {
  position: relative;
  padding: 20px 48px 16px 20px;
  border-bottom: 1px solid var(--hair);
}
.example-sheet-head > svg {
  position: absolute;
  top: 24px;
  right: 20px;
}
.example-sheet-head strong {
  font-size: 16px;
  font-weight: 600;
}
.example-sheet-head p {
  margin-top: 4px;
  color: var(--text-2);
}
.example-sheet-body {
  display: grid;
  align-content: start;
  gap: 12px;
  flex: 1;
  min-height: 0;
  padding: 16px 20px;
  overflow: hidden;
}
.example-spinner {
  width: 16px;
  height: 16px;
  flex: none;
  border: 2px solid var(--hair-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: example-spin 800ms linear infinite;
}
@keyframes example-spin {
  to {
    transform: rotate(360deg);
  }
}
.example-sheet-review {
  display: none;
  gap: 12px;
}
.example-sheet:not([data-state="working"]) .example-sheet-working {
  display: none;
}
.example-sheet:not([data-state="working"]) .example-sheet-review {
  display: grid;
}
.example-doc {
  overflow: hidden;
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
}
.example-doc-head {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hair);
}
.example-doc-head strong {
  display: block;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.example-doc-head span {
  color: var(--text-2);
}
.example-doc-body {
  padding: 10px 14px;
}
.example-doc-name {
  font-size: 20px;
  font-weight: 600;
}
.example-doc-section {
  margin-top: 8px;
  font-weight: 600;
}
.example-revision {
  margin-top: 8px;
  padding: 8px 8px 8px 12px;
  border-left: 2px solid #1d4ed8;
  background: rgb(29 78 216 / 6%);
}
.example-new-wording {
  color: #1d4ed8;
}
.example-old-wording {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 13px;
}
.example-old-wording span {
  font-weight: 500;
}
[data-theme="dark"] .example-new-wording {
  color: #93c5fd;
}
[data-theme="dark"] .example-revision {
  border-color: #93c5fd;
  background: rgb(147 197 253 / 6%);
}
.example-sheet-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.example-sheet-check > span {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: none;
  border: 1.5px solid var(--line);
  border-radius: 4px;
}
.example-sheet-check svg {
  width: 12px;
  height: 12px;
  opacity: 0;
}
.example-sheet[data-state="confirmed"] .example-sheet-check > span {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}
.example-sheet[data-state="confirmed"] .example-sheet-check svg {
  opacity: 1;
}
.example-sheet-foot {
  display: none;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--hair);
}
.example-sheet:not([data-state="working"]) .example-sheet-foot {
  display: flex;
}
.example-sheet-button {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid var(--hair-strong);
  border-radius: var(--r-sm);
  font-weight: 500;
  white-space: nowrap;
}
.example-sheet-button.is-primary {
  border: 1.5px solid var(--line);
  background: var(--accent);
  color: var(--on-accent);
  opacity: 0.5;
}
.example-sheet[data-state="confirmed"] .example-sheet-button.is-primary {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .example-sheet,
  .example-spinner {
    animation: none;
  }
}
.example-chat-body {
  position: relative;
  flex: 1;
  min-height: 0;
}
.askstage .log {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  overflow-anchor: none;
  font-size: var(--fs-14);
}
.log-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}
/* Each new message, card, and file fades up as it arrives. Job cards follow one another. */
@keyframes example-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.askstage .log-content > :not(.example-carousel),
.askstage .example-answer > * + *,
.askstage .example-carousel-head,
.askstage .example-job,
.askstage .composer-documents,
.askstage .composer-upload,
.askstage .composer-attachment {
  animation: example-enter 400ms var(--ease) both;
}
.askstage .example-job:nth-child(2) {
  animation-delay: 100ms;
}
.askstage .example-job:nth-child(3) {
  animation-delay: 200ms;
}
@media (prefers-reduced-motion: reduce) {
  .askstage .log-content > *,
  .askstage .example-answer > *,
  .askstage .example-carousel-head,
  .askstage .example-job,
  .askstage .composer-documents,
  .askstage .composer-upload,
  .askstage .composer-attachment {
    animation: none;
  }
}
.example-jump {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  white-space: nowrap;
  border: 1px solid var(--hair);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 8px #00000014;
}
.example-jump[hidden] {
  display: none;
}
.example-jump svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
}
.example-chat-heading {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--hair);
  font: 700 20px / 1.2 var(--font-display);
}
.example-chat-heading img {
  flex: none;
  width: 28px;
  height: 28px;
}
/* Like the app: 28px icon boxes, tucked under the answer. */
.example-reply-actions {
  display: flex;
  gap: 2px;
  margin: -8px 0 0 30px;
  color: var(--text-2);
}
.example-reply-actions > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
}
.example-reply-actions svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
}
@media (pointer: coarse) {
  /* Bigger boxes, pulled further left so the icons still line up with the answer. */
  .example-reply-actions {
    margin-left: 20px;
  }
  .example-reply-actions > span {
    width: 48px;
    height: 48px;
  }
  .askstage .log {
    overscroll-behavior-y: auto;
  }
}
.example-answer {
  display: grid;
  gap: 12px;
}
.example-answer p {
  white-space: pre-wrap;
}
.example-topic {
  display: grid;
  gap: 4px;
}
.example-topic-title {
  font-weight: 500;
  color: var(--ink);
}
.example-answer ul {
  padding-left: 20px;
  list-style: disc;
}
.example-answer ul ul {
  margin-top: 4px;
  list-style: circle;
}
.example-answer li + li {
  margin-top: 4px;
}
.example-mention {
  border-radius: 3px;
  background: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.example-attachment {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 14px;
}
.example-attachment svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: currentColor;
  stroke: none;
  color: var(--text-2);
}
.example-attachment span {
  min-width: 0;
  overflow-wrap: anywhere;
}
/* The app's job cards: side by side when they fit. */
.example-carousel {
  display: grid;
  gap: 8px;
  margin-left: 36px;
}
.example-carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
}
.example-carousel-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.example-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--ink);
}
.example-arrow svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.example-arrow.is-off {
  opacity: 0.4;
}
@media (pointer: coarse) {
  .example-arrow {
    display: none;
  }
}
/* One row that runs past the chat's edge, so the next card peeks in. */
.example-jobs {
  display: flex;
  gap: 12px;
  margin-right: -24px;
  overflow: hidden;
}
.example-job {
  display: flex;
  flex: 0 0 20rem;
  flex-direction: column;
  min-width: 0;
  container-type: inline-size;
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  padding: 16px;
  background: var(--surface);
}
.example-job > strong {
  font-weight: 600;
  line-height: 20px;
}
.example-job > span {
  margin-top: 4px;
  color: var(--text-2);
}
.example-job > .example-job-employer {
  margin: 0 0 4px;
  font-size: 12px;
}
.example-job-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}
.example-job-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  margin-top: 8px;
}
.example-job-facts b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.example-exposure {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 12px;
  white-space: nowrap;
}
.example-meter {
  display: inline-flex;
  gap: 2px;
}
.example-meter i {
  width: 8px;
  height: 12px;
  border-radius: 2px;
  background: var(--hair-strong);
}
.example-meter .is-on {
  background: var(--accent);
}
.example-view {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 8px;
  white-space: nowrap;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
}
.example-view svg {
  width: 14px;
  height: 14px;
  flex: none;
  fill: currentColor;
}
.example-sources {
  margin: -4px 0 0 36px;
  color: var(--text-2);
  font-size: 12px;
}
.example-sources-title {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  cursor: pointer;
  min-height: 32px;
}
.example-sources-title svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  stroke: none;
  transform: rotate(-90deg);
}
.example-sources[open] .example-sources-title svg {
  transform: none;
}
.example-sources[open] .example-sources-title {
  margin-bottom: 8px;
}
.example-source-content {
  padding: 12px;
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  line-height: 1.6;
}
.example-source-content strong {
  font-weight: 500;
  color: var(--ink);
}
.example-source-content p {
  margin-top: 8px;
}
@media (pointer: coarse) {
  .example-sources-title {
    min-height: 44px;
  }
}
.dots {
  display: inline-flex;
  gap: 4px;
  padding: 8px 0;
}
.dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: dot 1s infinite;
}
.dots i:nth-child(2) {
  animation-delay: 150ms;
}
.dots i:nth-child(3) {
  animation-delay: 300ms;
}
@keyframes dot {
  0%,
  100% {
    opacity: 0.3;
  }
  40% {
    opacity: 1;
  }
}
.example-activity {
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: var(--fs-14);
  font-weight: 500;
}
.example-activity-ring {
  width: 14px;
  height: 14px;
  flex: none;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0 3px, transparent 3.5px);
  animation: dot 1s 2;
}
/* ---------- Plans ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 960px;
  margin-top: var(--head-gap);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--ring);
  overflow: hidden;
}
.plan {
  padding: 32px;
}
/* Free and Plus side by side, split by a hairline; the waitlist action spans
   both, because joining is not a plan choice. */
.plan + .plan {
  border-left: 1px solid var(--hair);
}
.plans > .plan-action {
  grid-column: 1 / -1;
  margin-top: 0;
  padding: 24px 32px 32px;
}
.plans-note {
  max-width: 960px;
  margin-top: 16px;
  color: var(--muted);
  font-size: var(--fs-14);
}
/* The heading, card, and note sit as one centered column in the wrap. Text
   inside the card stays left-aligned. On phones the card and note already
   fill the wrap, so only the heading and note center. */
.plans-group > h2.h {
  max-width: 24ch;
  margin-inline: auto;
  text-align: center;
}
.plans-group > .plans,
.plans-group > .plans-note {
  margin-inline: auto;
}
.plans-group > .plans-note {
  text-align: center;
  text-wrap: balance;
}
.plans-note a,
.faq-contact a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-contact {
  margin-top: 16px;
  color: var(--text-2);
}
.plan h3 {
  font-size: var(--fs-16);
  font-weight: 600;
}
.plan-for {
  margin-top: 4px;
  font-size: var(--fs-14);
  color: var(--muted);
}
.price {
  margin-top: 8px;
  color: var(--muted);
}
.price b {
  color: var(--ink);
  font: 600 clamp(var(--fs-48), 4.4vw, 60px) / 1 var(--font-display);
  letter-spacing: -0.03em;
  margin-right: 6px;
}
.plan ul {
  list-style: none;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
  display: grid;
  gap: 12px;
}
.plan li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
}
.plan li svg {
  margin-top: 5px;
  color: var(--good);
}
.plan-action {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
}
.plan-action p {
  margin-top: 12px;
  font-size: var(--fs-14);
  color: var(--muted);
}

/* ---------- Closing call to action ---------- */
/* Centered like the hero, so the page opens and closes on the same signup. */
.closing-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.closing-center .h {
  max-width: 16ch;
  text-wrap: balance;
}
.closing-center .waitlist {
  width: 100%;
  margin-top: 32px;
}
.closing-center .note {
  text-align: center;
  text-wrap: balance;
}
#waitlist {
  scroll-margin-top: calc(var(--nav-h) + 48px);
}
/* The arrival scene, from ArrivalArt.astro, ends the closing section: its
   street is the section's bottom edge, so the section has no bottom padding.
   The art is a direct child of the full-width section (outside .wrap), so
   it is exactly the page width, like the hero, with no 100vw and no
   scrollbar mismatch. A margin percentage is a share of that same width, so
   --arrival-pull (the transparent top above the first shapes) and
   --arrival-cut (the empty strip below the street) are alpha-bound shares
   of the width and hold at any viewport. 48px of bare paper stays under the
   note. Same file in both themes, no mask or filter. */
#waitlist.closing {
  padding-bottom: 0;
  /* The image's cut bottom is clipped at the street, so it cannot paint or
     catch clicks over the footer below. */
  overflow: clip;
}
.home > .site-footer {
  position: relative;
  z-index: 1;
}
.arrival-art {
  --arrival-pull: 44.1%;
  --arrival-cut: 17.5%;
  display: block;
  width: 100%;
  margin: calc(48px - var(--arrival-pull)) 0 calc(-1 * var(--arrival-cut));
  pointer-events: none;
}
.arrival-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
}
/* Above 640px: the 2172x724 (3:1) panorama at the section's full width.
   Shapes start 333/2172 = 15.33149% of the width down; the empty bottom
   54/2172 = 2.48619% is cut. 48px clears the note. */
@media (min-width: 641px) {
  .arrival-art {
    --arrival-pull: 15.33149%;
    --arrival-cut: 2.48619%;
  }
  .arrival-art img {
    aspect-ratio: 3 / 1;
  }
}
/* Up to 640px the square 1254x1254 phone file is used: shapes start 44.1%
   down and the ground ends 82.5% down, so the pull is 44.1% and the cut is
   the bottom 17.5%. */
@media (max-width: 640px) {
  .arrival-art {
    --arrival-pull: 44.1%;
    --arrival-cut: 17.5%;
  }
  .arrival-art img {
    aspect-ratio: 1 / 1;
  }
}
/* Home page only: the footer takes the closing section's surface and drops
   its hairline, so the street runs into it with no seam. Other pages keep
   their footer as it is. On the confirmed-return page the closing section is
   hidden, so the footer keeps its usual look there too. */
html:not([data-waitlist-return="confirmed"]) .home > .site-footer {
  background: var(--surface);
  box-shadow: none;
}
[data-theme="dark"]:not([data-waitlist-return="confirmed"])
  .home
  > .site-footer {
  background: #111;
}

.hughie-marketing-accordion a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Footer ---------- */
footer {
  padding: 48px 0 64px;
  box-shadow: 0 -1px 0 var(--hair);
  color: var(--muted);
  font-size: var(--fs-14);
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
footer .left {
  display: flex;
  align-items: center;
  gap: 24px;
}
footer .logo {
  font-size: var(--fs-18);
  color: var(--ink);
}
footer .logo .wordmark {
  height: 24px;
}
footer nav {
  display: flex;
  gap: 24px;
}
footer a:hover {
  color: var(--ink);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  :root {
    --gap: 48px;
  }
  .split,
  .how-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .sticky-copy {
    position: static;
  }
  .how-track {
    height: auto;
  }
  .how-sticky {
    position: static;
    height: auto;
    min-height: 0;
    display: block;
  }
  .stage {
    display: none;
  }
  /* Stacked, each scene sits under its step, so the steps drop the progress line and dots. */
  .steps {
    gap: 48px;
    padding-left: 0;
  }
  .steps::before,
  .steps::after,
  .step::before {
    display: none;
  }
  .step h3 {
    color: var(--ink);
  }
  .step p {
    color: var(--text-2);
  }
  .step .scene {
    position: relative;
    inset: auto;
    margin-top: 24px;
    opacity: 1;
    transform: none;
  }
  .nav-links {
    display: none;
  }
  .nav .wrap {
    grid-template-columns: 1fr auto;
  }
}
@media (max-height: 700px) {
  .how-track {
    height: auto;
  }
  .how-sticky {
    position: static;
    height: auto;
    min-height: 0;
    display: block;
  }
  .how-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .stage {
    display: none;
  }
  .steps {
    gap: 48px;
    padding-left: 0;
  }
  .steps::before,
  .steps::after,
  .step::before {
    display: none;
  }
  .step h3 {
    color: var(--ink);
  }
  .step p {
    color: var(--text-2);
  }
  .step .scene {
    position: relative;
    inset: auto;
    max-width: 680px;
    margin-top: 24px;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  :root {
    --section-y: 72px;
    --head-gap: 32px;
  }

  .wrap {
    padding: 0 20px;
  }
  h2.h {
    font-size: var(--fs-32);
  }
  .lede {
    font-size: var(--fs-16);
  }
  .waitlist-fields {
    flex-direction: column;
  }
  /* The stacked form already reads as its own group, so phones keep the 24px
     gap above it. The opening scene's first shape starts 24px under the note,
     so on a 320x568 screen the whole signup still fits above the fold. */
  .hero .waitlist {
    margin-top: 24px;
  }
  .indent {
    margin-left: 0;
  }
  .plan {
    padding: 24px;
  }
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
  .plan + .plan {
    border-left: 0;
    border-top: 1px solid var(--hair);
  }
  .plans > .plan-action {
    padding: 24px;
  }
  footer .wrap,
  footer .left {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
}
html.shot .how-track {
  height: auto;
}
html.shot .how-sticky {
  position: static;
  height: auto;
  min-height: 0;
  padding-bottom: 24px;
}
html.shot .reveal {
  opacity: 1;
  transform: none;
}

footer nav button {
  color: inherit;
  font-size: inherit;
}
footer nav button:hover {
  color: var(--ink);
}
.waitlist .note a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.confirmation-message {
  max-width: 52ch;
  margin-top: 24px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: var(--accent-wash);
  box-shadow: inset 0 0 0 1px var(--hair-strong);
  font-size: var(--fs-14);
}
html[data-waitlist-return="confirmed"] [data-waitlist],
html[data-waitlist-return="confirmed"] [data-waitlist-action],
html[data-waitlist-return="confirmed"] [data-to-waitlist],
html[data-waitlist-return="confirmed"] #waitlist {
  display: none;
}
/* Programmatic focus announces completion; the heading is not a control. */
html[data-waitlist-return="confirmed"] #hero h1:focus {
  outline: none;
}

.privacy-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  font-size: var(--fs-14);
}
.privacy-nav img {
  display: block;
  max-width: 110px;
  height: auto;
}
.privacy-content {
  max-width: 760px;
  padding-top: 96px;
  padding-bottom: 120px;
}
.privacy-content h1 {
  font: 800 clamp(40px, 5vw, 60px) / 1.05 var(--font-display);
  letter-spacing: -0.035em;
}
.privacy-content h2 {
  margin-top: 48px;
  font: 700 var(--fs-24) / 1.2 var(--font-display);
}
.privacy-content p {
  margin-top: 16px;
  color: var(--text-2);
  font-size: var(--fs-18);
  line-height: 1.7;
}
.privacy-content a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.privacy-content .privacy-updated {
  margin-top: 56px;
  font-size: var(--fs-14);
  color: var(--muted);
}

/* The 404 and 500 pages: one centered message, a little above the middle. */
.simple-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 760px;
  /* Center in the visible screen, not behind a phone browser's toolbars. */
  min-height: calc(100svh - var(--nav-h));
  padding-top: 64px;
  padding-bottom: 160px;
  text-align: center;
}
.simple-page h1 {
  font: 800 clamp(40px, 5vw, 60px) / 1.05 var(--font-display);
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.simple-page p {
  max-width: 44ch;
  margin: 24px 0 32px;
  color: var(--text-2);
  font-size: var(--fs-18);
  text-wrap: pretty;
}
.simple-page p a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.simple-page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
@media (pointer: coarse) {
  .privacy-nav .logo {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

.privacy-nav .wordmark-dark {
  display: none;
}
[data-theme="dark"] .privacy-nav .wordmark-light {
  display: none;
}
[data-theme="dark"] .privacy-nav .wordmark-dark {
  display: block;
}

.information-body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
.information-body .nav {
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
}
.information-body .privacy-nav {
  display: flex;
}
.information-content {
  flex: 1;
  width: 100%;
}
.information-content a {
  overflow-wrap: anywhere;
}
.information-content table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  text-align: left;
  font-size: var(--fs-16);
}
.information-content th,
.information-content td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--hair-strong);
  vertical-align: top;
}
.information-content th:first-child,
.information-content td:first-child {
  padding-left: 0;
}
.site-footer {
  padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
}
.footer-identity {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex-shrink: 0;
  line-height: 1.25;
}
.footer-identity > :first-child {
  color: var(--ink);
  font-weight: 600;
}
.site-footer nav {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
.site-footer a {
  text-underline-offset: 4px;
}
.site-footer a:hover {
  text-decoration: underline;
}
@media (pointer: coarse) {
  .site-footer nav a,
  .information-body .privacy-nav > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  /* Short words like About and Terms still get a 44px-wide box; the text
     stays at the column's left edge. */
  .site-footer nav a {
    min-width: 44px;
  }
  /* Keep the company link's 44px target without stretching the caption's
     line box. The other caption line is plain text, not another target. */
  .footer-identity a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-block: calc((1lh - 44px) / 2);
  }
}
.site-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.site-footer .footer-mark {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: contain;
}
.site-footer .footer-identity {
  flex-shrink: 1;
  min-width: 0;
}
/* The links sit in short unlabeled columns beside the identity. */
.site-footer .wrap {
  align-items: flex-start;
}
.site-footer .footer-nav {
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 64px;
}
.footer-group {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.5;
}
.footer-group [data-theme-toggle] {
  font-size: inherit;
  line-height: inherit;
}
/* Each link is 44px tall on a touch screen, which spaces them already. */
@media (pointer: coarse) {
  .footer-group {
    gap: 0;
  }
}
@media (max-width: 640px) {
  .site-footer .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
    width: 100%;
  }
  .site-footer .footer-group:last-child {
    grid-column: 1 / -1;
  }
}
/* On a phone one job card fills most of the row and the next one peeks in, as in the app.
   The cards run under Hughie's icon instead of beside it, as the app's do. */
@media (max-width: 640px) {
  .example-chat-heading,
  .log-content {
    padding-inline: 16px;
  }
  .example-carousel {
    margin-left: 0;
  }
  .example-job {
    flex-basis: 86%;
  }
  .example-jobs {
    margin-right: -16px;
  }
}
/* A card too narrow for both reactions side by side stacks them. */
@container (max-width: 290px) {
  .example-job-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Keeps a hyphenated name like Job-ish on one line. */
.nowrap {
  white-space: nowrap;
}
