/* ═══════════════════════════════════════════════════════════════════════
   Lamr — shared marketing stylesheet for the search-landing pages
   (/ai-resume-tailor/, /job-application-tracker/, /typst-resume-builder/).

   PART 1 is MIRRORED FROM public/landing.html. Same class names, same
   values, on purpose: these pages must be the same product, not a
   look-alike. landing.html deliberately keeps its CSS inline so its first
   paint stays a single request — it is the one indexable URL — so it does
   NOT link this file. That makes Part 1 a deliberate second copy. If you
   change a component here, change it there too, and vice versa.

   PART 2 is this file's own: components the homepage has no equivalent
   for. They are still built out of landing's primitives (its section
   rhythm, its 1px-gap grid, its mono captions) rather than a new language.
   ═══════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════
   PART 1 — MIRRORED FROM landing.html
   ══════════════════════════════════════════════════ */

:root {
  --bg:        #ffffff;
  --bg-sub:    #fafafa;
  --bg-raise:  #ffffff;
  --border:    #e5e5e5;
  --border-2:  #d4d4d4;
  --text-1:    #0a0a0a;
  --text-2:    #525252;
  --text-3:    #737373;
  --accent:    #0081f7;
  --accent-bg: rgba(0,129,247,.07);
  --accent-bd: rgba(0,129,247,.22);
  /* Brand palette — same 5 vivid hues as the app (see style.css). -ink
     variants are text-safe darkenings for light-mode legibility; dark mode
     flips them to the vivid hex directly. Reserved for content highlights —
     never running typography color (blue stays UI-chrome only). */
  --brand-gold:         #e6c100;
  --brand-gold-ink:     #8f6a00;
  --brand-red:          #f50032;
  --brand-red-ink:      #f50032;
  --brand-blue:         #0081f7;
  --brand-magenta:      #e978ff;
  --brand-magenta-ink:  #b02bc7;
  --brand-green:        #0b854a;
  --brand-green-ink:    #0b854a;
  /* Semantic status palette. These are the only colors used by the
     marketing pipeline; JS reads the same tokens rather than duplicating
     their values. */
  --status-draft:       #9aa0a6;
  --status-generated:   #0081f7;
  --status-applied:     #e978ff;
  --status-interview:   #e6c100;
  --status-offer:       #0b854a;

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: var(--font-sans);
  --mono: var(--font-mono);
  --type-caption: 10.5px;
  --type-meta: 12px;
  --type-ui: 13px;
  --type-control: 13.5px;
  --type-body-sm: 14px;
  --type-button: 14.5px;
  --type-body: 16px;
  --type-body-lg: 17px;
  --type-lede: clamp(15px, 1.9vw, 17.5px);
  --type-display-hero: clamp(34px, 5.6vw, 66px);
  --type-display-page: clamp(34px, 6vw, 68px);
  --type-display-section: clamp(28px, 4.2vw, 46px);
  --type-display-document: clamp(30px, 6vw, 40px);
  --type-display-cta: clamp(36px, 6.5vw, 84px);
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-ui: 550;
  --weight-semibold: 600;
  --weight-bold: 700;
  --leading-tight: 1.1;
  --leading-display: 1.05;
  --leading-heading: 1.12;
  --leading-label: 1.4;
  --leading-body: 1.65;
  --tracking-display: -.035em;
  --tracking-heading: -.03em;
  --tracking-label: .14em;

  /* 4px spacing system */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-24: 96px;

  /* Shape, motion, elevation, and layout */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-menu: 14px;
  --radius-pill: 999px;
  --duration-fast: 160ms;
  --duration-ui: 220ms;
  --duration-slow: 320ms;
  --duration-reveal: 620ms;
  --shadow-lg: 0 24px 70px rgba(0,0,0,.14);
  --shadow-md: 0 10px 34px rgba(0,0,0,.09);
  --shadow-sm: 0 4px 16px rgba(0,0,0,.08);
  --shadow-cta-hover:
    0 1px 2px rgba(0,0,0,.14),
    0 6px 14px rgba(0,0,0,.16),
    0 16px 32px rgba(0,0,0,.14);
  --cta-specular: rgba(255,255,255,.28);
  --glow:      rgba(10,10,10,.035);
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --focus-ring: 0 0 0 3px var(--accent-bg);
  --nav-h: 60px;
  --content-max: 1400px;
  --page-gutter: clamp(20px, 4vw, 48px);
  --grid-step: 88px;
  --selection-ink: #ffffff;
  --mask-solid: #000000;
  color-scheme: light;
}

/* Dark mode is driven by a `data-theme` attribute set by an inline boot
   script in <head> (see the per-page <script> right before this file's
   <link>), NOT a plain prefers-color-scheme media query — mirroring
   landing.html's own mechanism exactly, byte-for-byte down to the values
   below. This is a deliberate second copy for the same reason Part 1 is:
   landing keeps its own inline <style>, so it cannot link this file.
   The attribute approach (vs. a media query) is what makes the live
   .theme-switching cross-fade below possible, and what lets .inkable
   logos invert correctly instead of rendering solid black on a dark
   background — a real bug this fixed (see CLAUDE.md/commit history). */
/* Deep, not grey — matches the app shell's dark palette (public/style.css).
   Each surface here keeps its own ladder DIRECTION while dropping toward
   black; only the values move. */
:root[data-theme="dark"] {
  --bg:        #0d0d0d;
  --bg-sub:    #141414;
  --bg-raise:  #1b1b1b;
  --border:    #282828;
  --border-2:  #3a3a3a;
  --text-1:    #e8e8e8;
  --text-2:    #a0a0a0;
  --text-3:    #8a8a8a;
  --accent:    #4da8ff;
  --accent-bg: rgba(77,168,255,.12);
  --accent-bd: rgba(77,168,255,.3);
  --brand-gold-ink:     #e6c100;
  --brand-red-ink:      #ff5c7a;
  --brand-magenta-ink:  #e978ff;
  --brand-green-ink:    #3ddc84;
  --shadow-lg: 0 30px 80px rgba(0,0,0,.55);
  --shadow-md: 0 12px 38px rgba(0,0,0,.4);
  --shadow-sm: 0 4px 18px rgba(0,0,0,.35);
  --glow:      rgba(232,232,232,.05);
  color-scheme: dark;
}
:root[data-theme="dark"] .inkable { filter: invert(1); }

/* Smooth cross-fade when the OS theme flips while the page is open — the
   boot script's live matchMedia listener toggles this class for ~320ms.
   Verbatim from landing.html. */
html.theme-switching, html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after {
  transition: background-color var(--duration-slow) ease, color var(--duration-slow) ease, border-color var(--duration-slow) ease, box-shadow var(--duration-slow) ease, filter var(--duration-slow) ease !important;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0; overflow-x: hidden;
  background: var(--bg); color: var(--text-1);
  font-family: var(--font-sans); font-size: var(--type-body); line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
::selection { color: var(--selection-ink); background: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-xs); }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  transform: translateY(-160%);
  padding: 8px 12px; border-radius: var(--radius-sm);
  background: var(--text-1); color: var(--bg); font-size: var(--type-ui);
}
.skip-link:focus { transform: none; }

/* ── nav ─────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  isolation: isolate;
  padding: 0 var(--page-gutter);
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-slow);
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.nav-brand .smile { height: 15px; display: block; }
.nav-brand .word {
  height: 16px; display: block; opacity: 1; transform: translateX(0);
  transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}
.nav.scrolled .nav-brand .word { opacity: 0; transform: translateX(-6px); pointer-events: none; }

/* ── nav-links ── mirrored from landing.html byte-for-byte */
.nav-links { display: flex; align-items: center; gap: 24px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-links a { font-size: var(--type-ui); font-weight: var(--weight-medium); color: var(--text-2); text-decoration: none; transition: color var(--duration-fast); }
.nav-links a:hover { color: var(--text-1); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ── nav-dd — the "Product" disclosure that unites all four pages ──
   The raised surface is intentionally opaque. Animated homepage content
   passing behind a translucent dropdown made its labels intermittently
   look washed out and obscured. */
.nav-dd { position: relative; }
.nav-dd-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: var(--type-ui); font-weight: var(--weight-medium); color: var(--text-2);
  background: none; border: 0; padding: 0; cursor: pointer;
  transition: color var(--duration-fast);
}
.nav-dd-btn:hover, .nav-dd[data-open="true"] .nav-dd-btn { color: var(--text-1); }
.nav-dd-btn svg { width: 11px; height: 11px; transition: transform var(--duration-ui) var(--ease-out); }
.nav-dd[data-open="true"] .nav-dd-btn svg { transform: rotate(180deg); }
.nav-dd-panel {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(-6px) scale(.97);
  z-index: 2;
  width: 300px; padding: 8px;
  background: var(--bg-raise);
  border: 1px solid var(--border); border-radius: var(--radius-menu);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out), visibility var(--duration-fast);
}
.nav-dd[data-open="true"] .nav-dd-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}
.nav-dd-item {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px; border-radius: var(--radius-md); text-decoration: none;
  transition: background var(--duration-fast);
}
.nav-dd-item:hover { background: var(--bg-sub); }
.nav-dd-item b { font-size: var(--type-control); font-weight: var(--weight-semibold); color: var(--text-1); letter-spacing: -.01em; }
.nav-dd-item span { font-size: var(--type-meta); color: var(--text-3); line-height: var(--leading-label); }
.nav-dd-item[aria-current="page"] { background: var(--bg-sub); }
.nav-dd-item[aria-current="page"] b::after {
  content: "current page"; margin-left: 8px;
  font-family: var(--font-mono); font-size: var(--type-caption); font-weight: var(--weight-medium); letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-3); vertical-align: middle;
}
@media (max-width: 860px) { .nav-dd { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .nav-dd-panel, .nav-dd-btn svg { transition: none; }
}

/* ── mobile navigation ───────────────────────────── */
.nav-menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  color: var(--text-1); background: var(--bg-raise);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  cursor: pointer;
}
.nav-menu-icon { position: relative; width: 18px; height: 14px; }
.nav-menu-icon span {
  position: absolute; left: 0; width: 18px; height: 1.5px; border-radius: var(--radius-pill);
  background: currentColor;
  transform-origin: center;
  transition: top var(--duration-ui) var(--ease-out), transform var(--duration-ui) var(--ease-out), opacity var(--duration-fast) ease;
}
.nav-menu-icon span:nth-child(1) { top: 0; }
.nav-menu-icon span:nth-child(2) { top: 6px; }
.nav-menu-icon span:nth-child(3) { top: 12px; }
.nav[data-menu-open="true"] .nav-menu-icon span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav[data-menu-open="true"] .nav-menu-icon span:nth-child(2) { opacity: 0; transform: scaleX(.35); }
.nav[data-menu-open="true"] .nav-menu-icon span:nth-child(3) { top: 6px; transform: rotate(-45deg); }
.nav-mobile {
  display: none;
  position: absolute; z-index: 1; top: calc(100% + 8px); left: 12px; right: 12px;
  max-height: calc(100svh - 80px); overflow-y: auto;
  padding: 8px;
  background: var(--bg-raise);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-8px) scale(.985); transform-origin: top center;
  transition: opacity var(--duration-ui) var(--ease-out), transform var(--duration-ui) var(--ease-out), visibility var(--duration-ui);
}
.nav[data-menu-open="true"] .nav-mobile {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0) scale(1);
}
.nav-mobile-primary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.nav-mobile-link {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 44px; padding: 10px 12px; border-radius: var(--radius-md);
  color: var(--text-1); font-size: var(--type-body-sm); font-weight: var(--weight-ui); text-decoration: none;
  transition: background var(--duration-fast) ease;
}
.nav-mobile-link:hover { background: var(--bg-sub); }
.nav-mobile-product {
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border);
}
.nav-mobile-label {
  margin: 5px 12px 7px;
  font-family: var(--font-mono); font-size: var(--type-caption); font-weight: var(--weight-medium); letter-spacing: var(--tracking-label);
  text-transform: uppercase; color: var(--text-3);
}
.nav-mobile-product-link {
  display: flex; flex-direction: column; gap: 1px;
  padding: 9px 12px; border-radius: var(--radius-md); text-decoration: none;
  transition: background var(--duration-fast) ease;
}
.nav-mobile-product-link:hover,
.nav-mobile-product-link[aria-current="page"] { background: var(--bg-sub); }
.nav-mobile-product-link b { font-size: var(--type-control); font-weight: var(--weight-semibold); letter-spacing: -.01em; }
.nav-mobile-product-link span { font-size: var(--type-meta); line-height: var(--leading-label); color: var(--text-3); }
.nav-mobile-cta {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 46px; margin-top: 8px; padding: 10px 14px; border-radius: var(--radius-md);
  color: var(--bg); background: var(--text-1);
  font-size: var(--type-body-sm); font-weight: var(--weight-ui); text-decoration: none;
}
@media (max-width: 860px) {
  .nav-right .nav-cta { display: none; }
  .nav-menu-btn, .nav-mobile { display: flex; }
  .nav-mobile { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-menu-icon span, .nav-mobile { transition: none; }
}

.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--type-control); font-weight: var(--weight-medium); text-decoration: none;
  color: var(--bg); background: var(--text-1);
  padding: 9px 18px; border-radius: var(--radius-pill);
  transition: transform var(--duration-ui) var(--ease-out), opacity var(--duration-ui);
}
.nav-cta:hover { opacity: .88; }

/* ── buttons ─────────────────────────────────────── */
.btn-solid, .btn-line {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--type-button); font-weight: var(--weight-medium); text-decoration: none;
  padding: 13px 26px; border-radius: var(--radius-pill);
  border: 0; cursor: pointer; font-family: inherit;
  transition: transform var(--duration-ui) var(--ease-out), opacity var(--duration-ui), background var(--duration-ui), border-color var(--duration-ui);
}
.btn-solid { background: var(--text-1); color: var(--bg); }
.btn-solid:hover { opacity: .95; }
.btn-line { border: 1px solid var(--border-2); color: var(--text-1); }
.btn-line:hover { background: var(--bg-sub); transform: translateY(-2px); }

/* metal shimmer + realistic hover shadow on primary CTAs */
.btn-solid, .nav-cta {
  position: relative; overflow: hidden;
  transition: transform var(--duration-ui) var(--ease-out), opacity var(--duration-ui), box-shadow var(--duration-slow) ease;
}
.btn-solid::before, .nav-cta::before {
  /* cursor-tracked specular highlight */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(110px circle at var(--bx, -200px) var(--by, -200px), var(--cta-specular), transparent 65%);
  opacity: 0; transition: opacity var(--duration-ui) ease;
}
.btn-solid:hover::before, .nav-cta:hover::before { opacity: 1; }
.btn-solid:hover, .nav-cta:hover {
  box-shadow: var(--shadow-cta-hover);
}
/* magnetic pull + 3D tilt; the class is added by JS so it never applies
   on coarse pointers or under reduced motion */
.mag { transition: transform var(--duration-ui) var(--ease-out), opacity var(--duration-ui), box-shadow var(--duration-slow) ease; will-change: transform; }

/* ── gradient text ───────────────────────────────── */
/* Two identical extra-wide colour cycles make the loop seamless: it ends on
   the same pixels it starts with. The oklab layer smooths the hue ramp; the
   preceding sRGB declaration is the fallback. */
.text-gradient, .hero .sec-eyebrow, .closing .sec-eyebrow, .hero-h1 em {
  background: linear-gradient(90deg,
    var(--brand-blue) 0%, var(--brand-magenta) 12.5%,
    var(--brand-gold) 25%, var(--brand-red) 37.5%,
    var(--brand-blue) 50%, var(--brand-magenta) 62.5%,
    var(--brand-gold) 75%, var(--brand-red) 87.5%,
    var(--brand-blue) 100%);
  background: linear-gradient(90deg in oklab,
    var(--brand-blue) 0%, var(--brand-magenta) 12.5%,
    var(--brand-gold) 25%, var(--brand-red) 37.5%,
    var(--brand-blue) 50%, var(--brand-magenta) 62.5%,
    var(--brand-gold) 75%, var(--brand-red) 87.5%,
    var(--brand-blue) 100%);
  background-size: 400% 100%;
  background-repeat: repeat-x;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: text-gradient-sweep 16s linear infinite;
  will-change: background-position;
}
@keyframes text-gradient-sweep {
  from { background-position: 0% 50%; }
  to   { background-position: 66.6667% 50%; }
}

/* Accessible variant: same seamless-loop structure as .text-gradient above,
   but built from the -ink stops (no blue — chrome-only, per CLAUDE.md) so it
   clears 4.5:1 at caption size. See the "section headings" comment below:
   the raw vivid gradient stays reserved for hero/closing eyebrows only,
   since 8+ shimmering eyebrows on a long document reads as noise, not
   polish. This variant is for ONE targeted eyebrow per page — the one
   introducing that page's own bespoke moment — not a blanket restore. */
.sec-eyebrow--brand {
  background: linear-gradient(90deg,
    var(--brand-green-ink) 0%, var(--brand-magenta-ink) 12.5%,
    var(--brand-gold-ink) 25%, var(--brand-red-ink) 37.5%,
    var(--brand-green-ink) 50%, var(--brand-magenta-ink) 62.5%,
    var(--brand-gold-ink) 75%, var(--brand-red-ink) 87.5%,
    var(--brand-green-ink) 100%);
  background: linear-gradient(90deg in oklab,
    var(--brand-green-ink) 0%, var(--brand-magenta-ink) 12.5%,
    var(--brand-gold-ink) 25%, var(--brand-red-ink) 37.5%,
    var(--brand-green-ink) 50%, var(--brand-magenta-ink) 62.5%,
    var(--brand-gold-ink) 75%, var(--brand-red-ink) 87.5%,
    var(--brand-green-ink) 100%);
  background-size: 400% 100%;
  background-repeat: repeat-x;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: text-gradient-sweep 16s linear infinite;
  will-change: background-position;
}

/* ── section headings ────────────────────────────── */
/* DELIBERATE DIVERGENCE FROM landing.html: there, every .sec-eyebrow carries
   the animated gradient. It works on the homepage, which has a handful of
   them between full-viewport spectacles. These pages are long documents with
   eight or more, used as structural signposts rather than accents — and at
   11px the gradient lands on pale gold and magenta that measure far below
   the 4.5:1 text bar on white, so the labels read as broken rather than
   branded. CLAUDE.md's own rule covers this case: "smaller inline text uses
   a solid ink colour instead of the gradient (gradient at caption/link size
   reads muddy)". The gradient is kept for the one hero eyebrow and the
   closing eyebrow, where it is a display moment. To restore full parity,
   add .sec-eyebrow back to the gradient selector above. */
.sec-eyebrow {
  font-family: var(--font-mono); font-size: var(--type-caption); letter-spacing: var(--tracking-label);
  text-transform: uppercase; margin-bottom: 16px;
  display: block; width: fit-content;
  color: var(--text-2);
}
.sec-title {
  font-weight: var(--weight-semibold); letter-spacing: var(--tracking-heading);
  font-size: var(--type-display-section); line-height: var(--leading-heading);
  max-width: 17em; text-wrap: balance;
  margin: 0;
}

/* ── 1px-gap grid ────────────────────────────────── */
.grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  margin-top: 60px; border-radius: var(--radius-lg); overflow: hidden;
}
@media (max-width: 1020px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .grid { grid-template-columns: 1fr; } }
.cell {
  background: var(--bg); padding: 32px 30px 36px;
  transition: background var(--duration-slow);
  position: relative; overflow: hidden;
}
.cell:hover { background: var(--bg-sub); }
.cell::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), var(--glow), transparent 60%);
  opacity: 0; transition: opacity var(--duration-slow); pointer-events: none;
}
.cell:hover::after { opacity: 1; }
.cell-num {
  font-family: var(--font-mono); font-size: var(--type-caption); letter-spacing: var(--tracking-label);
  color: var(--text-3); display: block; margin-bottom: 16px;
}
.cell h3 { font-size: var(--type-body); font-weight: var(--weight-semibold); margin: 0 0 7px; letter-spacing: -.01em; }
.cell p { font-size: var(--type-body-sm); color: var(--text-2); line-height: var(--leading-body); margin: 0; }
code {
  font-family: var(--mono); font-size: .86em; color: var(--text-1);
  background: var(--bg-sub); border: 1px solid var(--border);
  padding: 1px 6px; border-radius: var(--radius-sm);
}
.band--sub code { background: var(--bg); }

/* ── footer ──────────────────────────────────────────────────────
   One shared footer for all four pages — brand + tagline, then two link
   columns (Product / Company). Same markup and class names everywhere,
   including landing.html's own mirrored copy, so this is a genuine single
   design rather than four independent ones. */
footer {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px;
  padding: 56px clamp(20px, 4vw, 48px) 32px; border-top: 1px solid var(--border);
}
footer a { text-decoration: none; color: var(--text-2); transition: color var(--duration-fast); }
footer a:hover { color: var(--text-1); }
.footer-brand { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.footer-brand .smile { height: 13px; }
.footer-brand .word { height: 14px; }
.footer-tagline { margin: 0; max-width: 34ch; font-size: var(--type-ui); line-height: var(--leading-body); color: var(--text-3); }
.footer-tagline a { color: var(--text-3); text-decoration: underline; text-underline-offset: 2px; }
.footer-tagline a:hover { color: var(--text-1); }
.footer-col-title {
  display: block; margin-bottom: 14px;
  font-family: var(--font-mono); font-size: var(--type-caption); font-weight: var(--weight-medium); letter-spacing: var(--tracking-label);
  text-transform: uppercase; color: var(--text-3);
}
.footer-col { display: flex; flex-direction: column; gap: 11px; font-size: var(--type-control); }
.footer-bottom {
  grid-column: 1 / -1; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-family: var(--font-mono); font-size: var(--type-caption); letter-spacing: .04em; color: var(--text-3);
}
@media (max-width: 760px) {
  footer { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  footer { grid-template-columns: 1fr; }
}

/* Landing clamps every section to a centred 1400px column while letting
   backgrounds stay full-bleed. Same trick here. */
.nav, footer, .band-inner {
  padding-inline: max(clamp(20px, 4vw, 48px), calc((100vw - 1400px) / 2));
}


/* ══════════════════════════════════════════════════
   PART 2 — search-page components
   ══════════════════════════════════════════════════ */

/* ── section bands ───────────────────────────────── */
/* Landing's rhythm: full-bleed band, hairline top border, generous padding,
   and alternating bg so sections read as distinct chapters instead of one
   endless white scroll. */
.band {
  padding-block: clamp(84px, 12vh, 140px);
  border-top: 1px solid var(--border);
}
.band--sub { background: var(--bg-sub); }
.band-inner { max-width: 1400px; margin-inline: auto; }
.band-lede {
  margin: 20px 0 0; max-width: 58ch;
  font-size: var(--type-lede); line-height: var(--leading-body);
  color: var(--text-2); text-wrap: pretty;
}

/* ── hero ────────────────────────────────────────── */
/* Deliberately NOT 100svh. The homepage earns a full-viewport hero because
   it is the front door; these pages are answers to a search query, so the
   first screen has to reach the product, not just a headline. */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(120px, 16vh, 168px) clamp(20px, 5vw, 64px) clamp(56px, 8vh, 88px);
  text-align: center;
}
/* Typesetter baseline grid — the homepage draws this on canvas; a static
   CSS version reads the same and costs nothing. */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(to right, var(--border) 0 1px, transparent 1px var(--grid-step)),
    repeating-linear-gradient(to bottom, var(--border) 0 1px, transparent 1px var(--grid-step));
  opacity: .5;
  -webkit-mask-image: radial-gradient(120% 82% at 50% 32%, #000 32%, transparent 78%);
          mask-image: radial-gradient(120% 82% at 50% 32%, #000 32%, transparent 78%);
}
.hero-inner { position: relative; z-index: 1; max-width: 1000px; margin-inline: auto; }
.breadcrumb {
  font-family: var(--font-mono); font-size: var(--type-caption); letter-spacing: var(--tracking-label);
  text-transform: uppercase; color: var(--text-3);
  display: flex; gap: 9px; justify-content: center; margin-bottom: 22px;
}
.breadcrumb a { text-decoration: none; color: var(--text-3); transition: color var(--duration-fast); }
.breadcrumb a:hover { color: var(--text-1); }
.hero-h1 {
  margin: 0; font-weight: var(--weight-semibold); letter-spacing: var(--tracking-display);
  font-size: var(--type-display-page); line-height: var(--leading-display);
  text-wrap: balance;
}
.hero-h1 em { font-style: italic; }
.hero-lede {
  max-width: 46em; margin: 22px auto 0;
  font-size: var(--type-lede); line-height: var(--leading-body);
  color: var(--text-2); letter-spacing: -.01em; text-wrap: pretty;
}
.hero-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-top: 34px;
}

/* ── proof strip ─────────────────────────────────── */
/* Reuses the .grid 1px-gap treatment rather than inventing a bordered bar. */
.proof-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  max-width: 1180px; margin: 56px auto 0; position: relative; z-index: 1;
}
@media (max-width: 900px) { .proof-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .proof-grid { grid-template-columns: 1fr; } }
.proof-cell { background: var(--bg); padding: 20px 22px; text-align: left; }
.proof-cell b {
  display: block; font-size: var(--type-body-sm); font-weight: var(--weight-semibold); letter-spacing: -.01em;
  margin-bottom: 4px;
}
.proof-cell span {
  font-family: var(--font-mono); font-size: var(--type-caption); letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-3); line-height: var(--leading-label);
}

/* ── product shot ────────────────────────────────── */
/* The screenshots are the strongest asset on these pages and were the most
   under-weighted thing on them: small, boxed, and captioned in a split row.
   Now full-column with landing's paper shadow and its centred mono caption. */
.shot { margin: 60px 0 0; }
.shot-frame {
  border: 1px solid var(--border); border-radius: var(--radius-menu); overflow: hidden;
  background: var(--bg-raise); box-shadow: var(--shadow-lg);
}
.shot-frame img { width: 100%; height: auto; }
.shot figcaption {
  margin-top: 16px; text-align: center;
  font-family: var(--font-mono); font-size: var(--type-caption); letter-spacing: var(--tracking-label);
  text-transform: uppercase; color: var(--text-3);
  display: flex; flex-direction: column; gap: 4px;
}
.shot figcaption strong { color: var(--text-2); font-weight: 500; }

/* ── live fit checklist (ai-resume-tailor's bespoke moment) ─────────
   A real DOM animation of the page's own worked example (the same React /
   TypeScript / GraphQL example used in "Concrete example" below), not just
   a static screenshot. Reveals via the shared IntersectionObserver
   convention in marketing.js (added to its targets list) — .fit-live gets
   the generic .reveal-ready/.in fade, then its own children stagger in on
   top of that once .in lands. The screenshot right below stays as the
   "yes, this is really what it looks like" proof; this is the up-front hook. */
.fit-live {
  margin-top: 60px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 34px; background: var(--bg-sub);
  display: grid; gap: 28px;
}
@media (min-width: 640px) {
  .fit-live { grid-template-columns: auto 1fr; align-items: center; gap: 40px; }
}
.fit-live-score { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.fit-live-num { font-family: var(--font-mono); font-size: 52px; font-weight: var(--weight-semibold); letter-spacing: -0.02em; color: var(--text-1); line-height: 1; }
.fit-live-pct { font-family: var(--font-mono); font-size: 26px; color: var(--text-3); margin-left: 2px; }
.fit-live-tier {
  font-family: var(--font-mono); font-size: var(--type-caption); font-weight: var(--weight-medium);
  letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--radius-pill);
  color: var(--brand-green-ink); background: color-mix(in srgb, var(--brand-green) 14%, var(--bg));
}
.fit-live-reqs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.fit-live-req {
  position: relative; padding-left: 22px;
  font-size: var(--type-body-sm); color: var(--text-2);
  opacity: 0; transform: translateX(-8px);
}
.fit-live-req::before {
  content: ""; position: absolute; left: 0; top: 50%; translate: 0 -50%;
  width: 9px; height: 9px; border-radius: var(--radius-pill);
}
.fit-live-req--met { color: var(--text-1); }
.fit-live-req--met::before { background: var(--brand-green-ink); }
.fit-live-req--missing::before { background: var(--bg); border: 1.5px solid var(--border-2); }
.fit-live-caption {
  grid-column: 1 / -1; margin: 0; font-family: var(--font-mono); font-size: var(--type-caption);
  letter-spacing: var(--tracking-label); color: var(--text-3);
}
.fit-live.in .fit-live-req {
  animation: fit-req-in var(--duration-reveal) var(--ease-out) forwards;
  animation-delay: calc(var(--d) * 90ms);
}
@keyframes fit-req-in { to { opacity: 1; transform: none; } }

/* ── live template swap (typst-resume-builder's bespoke moment) ─────
   Scoped adaptation of landing.html's #story scrollytelling demo (same
   dark-rail-band / centered-header-and-rule mechanism, .tpl-chip → .paper),
   simplified to plain CSS transitions instead of that demo's FLIP/WAAPI
   reflow animation — appropriate for one small standalone mock rather than
   a full interactive scene. Toggled by the page's own inline <script>. */
.tpl-live { margin-top: 60px; }
.tpl-live-chips { display: flex; gap: 8px; margin-bottom: 20px; }
.tpl-live-chip {
  font-family: var(--font-mono); font-size: 11.5px; padding: 8px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-2); background: transparent; color: var(--text-2);
  cursor: pointer; transition: background 200ms, color 200ms, border-color 200ms;
}
.tpl-live-chip:hover { border-color: var(--text-3); color: var(--text-1); }
.tpl-live-chip.is-on { background: var(--text-1); color: var(--bg); border-color: var(--text-1); }
.tpl-live-paper {
  position: relative; overflow: hidden;
  max-width: 420px; padding: 32px 28px;
  border: 1px solid var(--border); border-radius: var(--radius-menu);
  background: var(--bg-raise); box-shadow: var(--shadow-md);
  transition: padding 400ms var(--ease-out);
}
.tpl-live-band {
  position: absolute; top: 0; left: 0; bottom: 0; width: 0;
  background: #1c2733; overflow: hidden;
  transition: width 400ms var(--ease-out);
}
.tpl-live-band i { display: block; height: 5px; border-radius: 3px; background: rgba(255,255,255,.32); margin: 9px 12px; }
.tpl-live-band i:nth-child(1) { margin-top: 40px; width: 60%; }
.tpl-live-band i:nth-child(2) { width: 45%; }
.tpl-live-band i:nth-child(3) { width: 52%; }
.tpl-live-paper.sidebar { padding-left: calc(30% + 18px); }
.tpl-live-paper.sidebar .tpl-live-band { width: 30%; }
.tpl-live-name { font-size: 18px; font-weight: var(--weight-semibold); letter-spacing: -0.01em; color: var(--text-1); transition: text-align 300ms; }
.tpl-live-role { font-size: 13px; color: var(--text-3); margin-top: 3px; transition: text-align 300ms; }
.tpl-live-rule { height: 1.5px; width: 100%; background: var(--border-2); margin: 13px 0 11px; transition: background 300ms, width 300ms, margin 300ms; }
.tpl-live-paper.modern .tpl-live-name, .tpl-live-paper.modern .tpl-live-role { text-align: center; }
.tpl-live-paper.modern .tpl-live-rule { width: 46px; margin: 13px auto 11px; background: var(--accent); }
.tpl-live-sec { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin: 14px 0 8px; }
.tpl-live-bar { height: 7px; border-radius: 3px; background: var(--border-2); margin-bottom: 6px; }
.tpl-live-bar.w1 { width: 92%; }
.tpl-live-bar.w2 { width: 78%; }
.tpl-live-bar.w3 { width: 55%; }
.tpl-live-bar.acc { background: var(--accent); }
.tpl-live-caption {
  margin: 16px 0 0; font-family: var(--font-mono); font-size: var(--type-caption);
  letter-spacing: var(--tracking-label); color: var(--text-3);
}

/* ── ordered walkthrough ─────────────────────────── */
.steps { counter-reset: step; margin-top: 60px; }
.step {
  display: grid; grid-template-columns: 64px 1fr; gap: 0 28px;
  padding: 26px 0; border-top: 1px solid var(--border);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--border); }
.step-n {
  counter-increment: step;
  font-family: var(--font-mono); font-size: var(--type-caption); letter-spacing: var(--tracking-label);
  color: var(--text-3); padding-top: 4px;
}
.step-n::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin: 0 0 6px; font-size: var(--type-body-lg); font-weight: var(--weight-semibold); letter-spacing: -.015em; }
.step p { margin: 0; color: var(--text-2); font-size: var(--type-body-sm); line-height: var(--leading-body); max-width: 62ch; }
@media (max-width: 620px) {
  .step { grid-template-columns: 1fr; gap: 8px; }
  .step-n { padding-top: 0; }
}

/* ── before / after evidence ─────────────────────── */
.evidence { margin-top: 60px; display: grid; gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.ev-row { background: var(--bg); padding: 24px 26px; }
.ev-row label {
  display: block; font-family: var(--font-mono); font-size: var(--type-caption);
  letter-spacing: var(--tracking-label); text-transform: uppercase; margin-bottom: 10px;
  color: var(--text-3);
}
.ev-row p { margin: 0; font-size: var(--type-body); line-height: var(--leading-body); color: var(--text-2); }
.ev-row p strong { color: var(--text-1); font-weight: 600; }
.ev-row--good  label { color: var(--brand-green-ink); }
.ev-row--limit label { color: var(--brand-gold-ink); }
.ev-row--limit { background: color-mix(in srgb, var(--brand-gold) 6%, var(--bg)); }

/* ── dated timeline (job-application-tracker's bespoke moment) ──────
   Only the tracker page uses this — its concrete example is a sequence of
   events over days, which the flat evidence rows above cannot express.
   Dots and the fill line borrow the real --status-* tokens (the pipeline's
   own color language) via a per-item --tl-dot custom property, rather than
   a flat monochrome line — but --mark (filled vs hollow) stays the
   separate, real distinction it always was: a hollow status-colored dot
   ("Recompiled") is a status-relevant event that is deliberately NOT a
   milestone, which is this page's entire thesis. Don't collapse the two. */
.timeline { margin-top: 60px; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px;
  width: 1px; background: var(--border);
}
.tl-fill {
  position: absolute; left: 7px; top: 12px; bottom: 12px; width: 1px;
  background: linear-gradient(to bottom,
    var(--status-draft) 0%, var(--status-applied) 35%,
    var(--status-applied) 70%, var(--status-interview) 100%);
  transform: scaleY(0); transform-origin: top;
  transition: transform 1.1s var(--ease-out);
}
.timeline.in .tl-fill { transform: scaleY(1); }
.tl-item {
  position: relative; padding: 0 0 30px 40px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 3px; top: 7px;
  width: 9px; height: 9px; border-radius: var(--radius-pill);
  background: var(--bg); border: 1.5px solid var(--tl-dot, var(--border-2));
}
.tl-item--mark::before { background: var(--tl-dot, var(--text-1)); border-color: var(--tl-dot, var(--text-1)); }
.tl-when {
  font-family: var(--font-mono); font-size: var(--type-caption); letter-spacing: var(--tracking-label);
  text-transform: uppercase; color: var(--text-3); display: block; margin-bottom: 6px;
}
.tl-item h3 { margin: 0 0 5px; font-size: var(--type-body); font-weight: var(--weight-semibold); letter-spacing: -.015em; }
.tl-item p { margin: 0; font-size: var(--type-body-sm); color: var(--text-2); line-height: var(--leading-body); max-width: 62ch; }

/* ── limitations ─────────────────────────────────── */
.limits { margin-top: 52px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; }
@media (max-width: 760px) { .limits { grid-template-columns: 1fr; } }
.limit { background: var(--bg); padding: 24px 26px; }
.limit strong { display: block; font-size: var(--type-body-sm); margin-bottom: 5px; letter-spacing: -.01em; }
.limit span { font-size: var(--type-body-sm); color: var(--text-2); line-height: var(--leading-body); }

/* ── related pages ───────────────────────────────── */
/* 5 tiles as of the Lamr MCP page (4 tools + MCP) on every page's grid — an
   extra breakpoint keeps the collapse progressive (5 → 3 → 2 → 1) instead of
   dropping straight from 5-across to 2-across. */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; margin-top: 56px; }
@media (max-width: 760px)  { .related { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .related { grid-template-columns: 1fr; } }
.related-link {
  background: var(--bg); padding: 26px 28px 30px; text-decoration: none;
  display: block; transition: background var(--duration-ui);
}
.related-link:hover { background: var(--bg-sub); }
/* "You are here" used to be the same near-invisible --bg-sub tint every
   :hover state already gets, so the current-page tile didn't read as
   distinct from one you were just about to hover. Solid-inverted instead —
   same "raised active state" language as .btn-solid (background: var(--text-1)
   + flipped text), so it's unmistakably the odd one out in the row. */
.related-link[aria-current="page"] {
  background: var(--text-1);
}
.related-link[aria-current="page"]:hover { background: var(--text-1); }
.related-link .kicker {
  font-family: var(--font-mono); font-size: var(--type-caption); letter-spacing: var(--tracking-label);
  text-transform: uppercase; color: var(--text-3);
}
.related-link[aria-current="page"] .kicker { color: color-mix(in srgb, var(--bg) 55%, transparent); }
.related-link h3 { margin: 12px 0 6px; font-size: var(--type-body-lg); font-weight: var(--weight-semibold); letter-spacing: -.015em; }
.related-link[aria-current="page"] h3 { color: var(--bg); }
.related-link p { margin: 0; font-size: var(--type-body-sm); color: var(--text-2); line-height: var(--leading-body); }
.related-link[aria-current="page"] p { color: color-mix(in srgb, var(--bg) 72%, transparent); }

/* ── closing ─────────────────────────────────────── */
.closing {
  text-align: center; padding: clamp(96px, 14vh, 156px) clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--border); background: var(--bg-sub);
}
.closing-mark { height: 26px; margin: 0 auto 26px; opacity: .9; }
.closing h2 {
  margin: 0 auto; font-weight: var(--weight-semibold); letter-spacing: var(--tracking-heading);
  font-size: var(--type-display-section); line-height: var(--leading-heading);
  max-width: 18em; text-wrap: balance;
}
.closing p { margin: 18px auto 0; max-width: 46ch; color: var(--text-2); font-size: var(--type-body); line-height: var(--leading-body); }
.closing .btn-line { margin-top: 18px; }

/* ── waitlist form (ported from landing.html's #waitlist, generalized off
   the form element via marketing.js's joinWaitlist rather than hardcoded
   ids) — every page's own closing section submits an invite request in one
   step instead of linking out to the homepage's waitlist. */
.wl-form { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 32px; }
.wl-input {
  width: min(260px, 68vw); height: 46px; padding: 0 20px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-2); background: var(--bg-raise); color: var(--text-1);
  font-size: 13.5px; font-family: var(--font-sans); outline: none;
  transition: border-color 200ms, box-shadow 200ms;
}
.wl-input::placeholder { color: var(--text-3); }
.wl-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.wl-form .btn-solid { height: 46px; font-size: 13.5px; padding: 0 24px; margin: 0; }
.wl-note { margin-top: 18px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--text-3); min-height: 18px; }
.wl-note a { color: var(--brand-green-ink); }
.wl-note.ok { color: var(--brand-green-ink); }
.wl-note.err { color: var(--brand-red-ink); }

/* ── scroll reveal ───────────────────────────────── */
.reveal-ready { opacity: 0; transform: translateY(14px); }
.reveal-ready.in {
  opacity: 1; transform: none;
  transition: opacity var(--duration-reveal) var(--ease-out), transform var(--duration-reveal) var(--ease-out);
}

/* ── reduced motion ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .text-gradient, .hero .sec-eyebrow, .closing .sec-eyebrow, .hero-h1 em, .sec-eyebrow--brand {
    animation: none; background-position: 0% 50%; will-change: auto;
  }
  .reveal-ready, .reveal-ready.in { opacity: 1; transform: none; transition: none; }
  .btn-line:hover { transform: none; }
  .fit-live-req { opacity: 1; transform: none; animation: none; }
  .tl-fill { transform: scaleY(1); transition: none; }
}
