/* ============================================================
   Lastslate — marketing site
   Built on top of ../colors_and_type.css. Adds layout patterns
   that don't belong in the design-system tokens: hero, feature
   bands, testimonial grid, footer.

   The structural language is borrowed from cursor.com:
   - top nav with brand + center menu + sign-in / download CTA
   - giant hero statement with two CTAs and a centered "interactive
     demo" surface (a real iframe of our UI kit)
   - alternating feature bands, each = heading + 1-line body +
     surface card with an iframe of the relevant app surface
   - testimonial wall, big final CTA, multi-column footer

   The brand twist: section markers are sluglines in Courier Prime
   ("INT. THE INDUSTRY - PRESENT DAY"), tying the marketing page
   to the medium the app produces.
   ============================================================ */

@import url("./colors_and_type.css");

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 64px; /* 52px fixed bar + breath */
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Keyboard focus ring in the accent (graphite on light, cloud on dark),
   the app's --focus-ring colour. */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }
/* Light/dark theme toggle button (nav + mobile drawer). */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: transparent; border: none; color: var(--text-muted); cursor: pointer;
  transition: color 120ms ease, background 120ms ease;
}
.theme-toggle:hover { color: var(--text-primary); background: var(--bg-elevated); }
html, body {
  margin: 0; padding: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
* { box-sizing: border-box; }
/* The bar is fixed, not sticky (cursor.com): content starts below it. */
body { padding-top: 52px; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ============ Layout primitives ============ */
.wrap {
  max-width: 1200px; margin: 0 auto;
  padding: 0 28px;
}
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 28px; }

/* ============ Top nav ============
   Measured off cursor.com (2026-09): fixed, 52px, opaque page colour,
   no border, no blur, no shadow, unchanged on scroll. */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: 52px;
  background: var(--bg-base);
}
.nav-inner {
  height: 52px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center; gap: 4px;
  font-weight: 600; letter-spacing: -0.015em; font-size: 21px;
}
/* logo-icon.png's mark fills 67% of the image: 36px draws a 24px mark,
   level with the 21px wordmark. The negative margin keeps the bar 52px. */
.nav-brand img { width: 36px; height: 36px; margin: -5px 0; display: block; }
.nav-links {
  display: flex; align-items: center; gap: 2px;
  font-size: 14px; color: var(--text-primary);
}
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 15px; border-radius: 7px;
  font: 400 14px var(--font-ui); color: var(--text-primary);
  background: transparent; border: 0;
  transition: background .12s, color .12s;
}
.nav-link:hover,
.nav-link[aria-expanded="true"] { background: var(--bg-elevated); }
.nav-link .chev { font-size: 9px; opacity: .6; transform: translateY(1px); transition: transform .12s; }
.nav-link[aria-expanded="true"] .chev { transform: translateY(1px) rotate(180deg); }
/* Current page: a short accent underline, the way .ai-tab.active marks a tab. */
.nav-link[aria-current="page"],
.nav-link[data-current="true"] { position: relative; }
.nav-link[aria-current="page"]::after,
.nav-link[data-current="true"]::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 2px;
  height: 2px; border-radius: 1px; background: var(--text-primary);
}
.nav-right {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
}
.btn.btn-nav { padding: 7px 14px; font-size: 13px; border-radius: 7px; }

/* Dropdown panels (Product, Resources) — disclosure navigation. */
.nav-menu { position: relative; }
.nav-panel {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 260px;
  padding: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
  display: none;
  z-index: 60;
}
.nav-menu[data-open="true"] .nav-panel { display: grid; }
.nav-panel-wide { grid-template-columns: 1fr 1fr; min-width: 560px; }
/* Product: one column per homepage chapter, labelled like the chapters. */
.nav-panel-chapters { grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 720px; gap: 0 4px; }
.nav-panel-col { display: flex; flex-direction: column; min-width: 0; }
.nav-panel-group {
  padding: 8px 12px 4px;
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-muted);
}
.nav-panel-item {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px; border-radius: 8px;
  transition: background .12s;
}
.nav-panel-item:hover,
.nav-panel-item:focus-visible { background: var(--bg-elevated); outline: none; }
.nav-panel-item[aria-current="page"] .nav-panel-name { color: var(--text-primary); font-weight: 600; }
.nav-panel-name { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.nav-panel-desc { font-size: 12px; color: var(--text-muted); line-height: 1.35; }
.nav-panel-foot {
  grid-column: 1 / -1;
  margin: 6px 4px 2px; padding: 10px 8px 4px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px; color: var(--text-secondary);
  display: flex; align-items: center; gap: 6px;
  transition: color .12s;
}
.nav-panel-foot:hover { color: var(--text-primary); }

/* ============ Mobile nav toggle + panel ============ */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent; border: 0;
  align-items: center; justify-content: center;
  border-radius: 8px;
  color: var(--text-primary);
  transition: background .12s;
}
.nav-toggle:hover { background: var(--bg-elevated); }
.nav-toggle svg { display: block; }

/* Closed = invisible AND out of the tab order / accessibility tree.
   visibility, not the hidden attribute: the display:flex below would
   beat [hidden], and opacity alone left 34px links focusable behind
   aria-hidden="true". */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: 100;
  background: var(--bg-base);
  display: flex; flex-direction: column;
  padding: 0 28px 28px;
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity .16s ease, visibility 0s linear .16s;
}
.mobile-menu[data-open="true"] { opacity: 1; visibility: visible; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
  .mobile-menu { transition: none; }
}
.mobile-menu-top {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; flex-shrink: 0;
}
.mobile-menu-close {
  width: 40px; height: 40px;
  background: transparent; border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  color: var(--text-primary);
  transition: background .12s;
}
.mobile-menu-close:hover { background: var(--bg-elevated); }
.mobile-menu-links {
  display: flex; flex-direction: column;
  margin-top: 18px;
}
/* Rows sized like cursor.com's panel: 34px type in 51px rows. */
.mobile-menu-links > a,
.mobile-menu-group {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 51px; padding: 5px 0;
  font: 400 34px var(--font-ui);
  letter-spacing: -0.02em; line-height: 1.1;
  color: var(--text-primary);
  background: transparent; border: 0; text-align: left; width: 100%;
}
.mobile-menu-links > a[aria-current="page"] { color: var(--text-primary); font-weight: 600; }
.mobile-menu-arrow { font-size: 24px; color: var(--text-muted); transition: transform .15s; }
.mobile-menu-group[aria-expanded="true"] .mobile-menu-arrow { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .mobile-menu-arrow { transition: none; } }
.mobile-menu-sub {
  display: flex; flex-direction: column; gap: 4px;
  padding: 2px 0 14px 2px;
}
.mobile-menu-sub[hidden] { display: none; }
.mobile-menu-group-label {
  margin: 10px 0 2px;
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-muted);
}
.mobile-menu-group-label:first-child { margin-top: 2px; }
.mobile-menu-sub a {
  font-size: 18px; color: var(--text-secondary);
  padding: 7px 0; line-height: 1.3;
}
.mobile-menu-sub a[aria-current="page"] { color: var(--text-primary); font-weight: 600; }
.mobile-menu-foot {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 14px;
  padding-top: 24px;
}
.mobile-menu-foot .btn { width: 100%; }
.mobile-menu-foot .mobile-menu-social {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted);
  align-self: flex-start;
  padding: 8px 4px;
}
.mobile-menu-foot .mobile-menu-social svg { color: var(--text-muted); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; font: 500 14px var(--font-ui);
  border: 1px solid transparent; border-radius: 8px; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .06s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--text-primary); color: var(--bg-base);
  border-color: var(--text-primary);
}
.btn-primary:hover { background: #ffffff; border-color: #ffffff; }
/* The #ffffff hover above is tuned for dark mode, where the button text is
   dark. In light mode the button text is light (var(--bg-base) is ivory), so
   a white hover washes the label out. Override with a readable lifted-dark
   background. Covers both the explicit data-theme=light and system-light
   (no explicit theme) paths. */
html[data-theme="light"] .btn-primary:hover {
  background: color-mix(in oklab, var(--text-primary) 86%, var(--bg-base));
  border-color: color-mix(in oklab, var(--text-primary) 86%, var(--bg-base));
}
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) .btn-primary:hover {
    background: color-mix(in oklab, var(--text-primary) 86%, var(--bg-base));
    border-color: color-mix(in oklab, var(--text-primary) 86%, var(--bg-base));
  }
}
.btn-secondary {
  background: var(--bg-elevated); color: var(--text-primary);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--accent-border); }
.btn-ghost {
  background: transparent; color: var(--text-secondary);
  border-color: transparent; padding: 10px 4px;
}
.btn-ghost:hover { color: var(--text-primary); }
.btn-lg { padding: 13px 22px; font-size: 15px; border-radius: 9px; }

/* ============ Sluglines (section markers) ============ */
.slug {
  font-family: var(--font-script);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-surface);
}

/* ============ Hero ============ */
.hero {
  padding: 84px 0 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero > * { position: relative; z-index: 1; }
/* Announcement pill above the headline — one standing link to the newest
   thing, in the shape Linear/Cursor use. Static: it never rotates. */
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 auto 22px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--border-soft); border-radius: 999px;
  background: var(--bg-surface);
  font-family: var(--font-ui); font-size: 13px; color: var(--text-secondary);
  line-height: 1.3; text-align: left;
  transition: border-color .15s, color .15s, background .15s;
}
.hero-pill:hover { border-color: var(--border); color: var(--text-primary); background: var(--bg-elevated); }
.hero-pill-tag {
  flex-shrink: 0;
  padding: 3px 9px; border-radius: 999px;
  background: var(--accent); color: var(--accent-text);
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
}
.hero-pill-arrow { color: var(--text-muted); transition: transform .15s; }
.hero-pill:hover .hero-pill-arrow { transform: translateX(2px); }

/* The platform line under the CTAs: always present, never rewritten by the
   platform-detection script (which owns [data-download-meta] instead). */
.hero-platforms {
  font-size: 13px; color: var(--text-muted);
  margin: 14px 0 0;
}
.hero-platforms a { color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.hero-platforms a:hover { color: var(--text-primary); border-bottom-color: var(--text-muted); }

.hero-h1 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 600;
  max-width: 980px;
  margin: 0 auto 24px;
  color: var(--text-primary);
  text-wrap: balance;
}
/* One face across the site, as in the app: the stress is Inter italic,
   a weight lighter, not a second typeface. */
.hero-h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--text-primary);
}
.hero-sub {
  font-size: 18px; color: var(--text-secondary);
  max-width: 620px; margin: 0 auto 36px;
  text-wrap: pretty;
}
.hero-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 14px;
}
/* The one trust line under the CTAs. */
.hero-trust {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px; padding: 8px 16px;
  max-width: calc(100% - 24px);
  border: 1px solid var(--border-soft); border-radius: 18px;
  font-size: 13px; line-height: 1.4; color: var(--text-secondary); text-align: left;
}
.hero-trust svg { flex-shrink: 0; color: var(--text-primary); }
.hero-trust strong { color: var(--text-primary); font-weight: 600; }
.hero-meta {
  font-size: 12px; color: var(--text-muted);
  font-family: var(--font-script);
}

/* ============ Demo surface ============ */
.demo {
  margin-top: 56px;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  box-shadow:
    0 60px 120px rgba(0,0,0,0.45),
    0 0 0 1px rgba(255,255,255,0.02) inset;
}
.demo-video {
  width: 100%;
  height: auto;
  display: block;
  background: var(--bg-base);
}

/* "windowed" chrome around demo */
.demo-bar {
  height: 36px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 14px; gap: 8px;
}
.demo-bar .tl { width: 11px; height: 11px; border-radius: 50%; }
.demo-bar .tl-close { background: #ff5f57; }
.demo-bar .tl-min { background: #ffbd2e; }
.demo-bar .tl-max { background: #28c840; }
.demo-bar-title {
  flex: 1; text-align: center;
  font-size: 12px; color: var(--text-muted);
  font-family: var(--font-script);
}

/* ============ Feature bands ============ */
.band { padding: 96px 0; border-top: 1px solid var(--border-soft); }
.band-head {
  display: flex; flex-direction: column; align-items: flex-start;
  margin-bottom: 40px;
}
.band-h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
  max-width: 760px;
  margin: 0 0 14px;
  text-wrap: balance;
}
.band-lede {
  font-size: 17px; color: var(--text-secondary);
  max-width: 620px; margin: 0;
}
.band-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px;
  font-size: 14px; color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
}
.band-cta:hover { border-bottom-color: var(--accent); }

/* ============ Chapters ============
   The feature bands read as three chapters. A chapter opener is a short
   band of its own; the sticky bar under the nav says where you are. */
.chapter { padding: 88px 0 8px; border-top: 1px solid var(--border-soft); }
.chapter + .band { border-top: 0; padding-top: 48px; }
.chapter-num {
  display: block; margin-bottom: 10px;
  font-family: var(--font-script); font-size: 13px; color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.chapter-h {
  font-size: clamp(36px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -0.025em;
  font-weight: 600; margin: 0 0 12px;
}
.chapter-lede { font-size: 18px; color: var(--text-secondary); max-width: 640px; margin: 0; text-wrap: pretty; }

.chapter-bar {
  position: sticky; top: 52px; z-index: 40;
  background: color-mix(in srgb, var(--bg-base) 88%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.chapter-bar-inner {
  display: flex; align-items: center; gap: 4px; height: 44px;
  overflow-x: auto; scrollbar-width: none;
}
.chapter-bar-inner::-webkit-scrollbar { display: none; }
.chapter-bar a {
  flex-shrink: 0;
  padding: 6px 12px; border-radius: 7px;
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  white-space: nowrap;
  transition: color .12s, background .12s;
}
.chapter-bar a:hover { color: var(--text-primary); background: var(--bg-elevated); }
.chapter-bar a[aria-current="true"] { color: var(--text-primary); background: var(--bg-elevated); box-shadow: 0 0 0 1px var(--border); }
.chapter-bar .chapter-bar-num { font-family: var(--font-script); font-size: 11px; color: var(--text-muted); margin-right: 6px; }
.chapter-bar-sep { width: 1px; height: 18px; background: var(--border); margin: 0 6px; flex-shrink: 0; }
html:has(.chapter-bar) { scroll-padding-top: 108px; }

/* ============ FAQ ============
   Questions collapse; answers stay in the HTML so search and answer
   engines read every one. #faq-… links open their question (site.js). */
.faq-list { max-width: 820px; border-top: 1px solid var(--border-soft); }
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 4px; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex-shrink: 0; width: 9px; height: 9px; margin-right: 4px;
  border-right: 1.5px solid var(--text-muted); border-bottom: 1.5px solid var(--text-muted);
  transform: translateY(-3px) rotate(45deg);
  transition: transform .15s;
}
.faq-item[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq-item summary h3 { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -0.005em; color: var(--text-primary); }
.faq-item summary:hover h3 { color: var(--text-primary); }
.faq-a { padding: 0 4px 20px; max-width: 72ch; }
.faq-a p { margin: 0 0 10px; font-size: 15px; line-height: 1.6; color: var(--text-secondary); }
.faq-a p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .faq-item summary::after { transition: none; } }

/* Side-by-side feature layout */
.band-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.band-split.reverse > :first-child { order: 2; }
.band-split .copy { padding: 12px 0; }

/* ============ Three-feature grid ============ */
.feat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 24px;
}
.feat-card {
  padding: 28px 26px;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .15s, background .15s;
}
.feat-card:hover { border-color: var(--border); background: var(--bg-elevated); }
.feat-card .slug { margin-bottom: 4px; font-size: 10px; padding: 3px 8px; }
.feat-card h3, .feat-card h4 {
  font-size: 18px; font-weight: 600; margin: 0; letter-spacing: -0.01em;
}
.feat-card p {
  font-size: 14px; color: var(--text-secondary); margin: 0; line-height: 1.55;
}

/* ============ Logos strip ============ */
.logos {
  padding: 56px 0;
  text-align: center;
}
.logos-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 28px;
}
.logos-row {
  display: flex; align-items: center; justify-content: center;
  gap: 56px; flex-wrap: wrap;
  font-family: var(--font-script); font-size: 16px;
  color: var(--text-muted); opacity: 0.78;
}
.logos-row span { white-space: nowrap; }

/* ============ Testimonials ============ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.quote {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 24px 22px;
  display: flex; flex-direction: column; gap: 14px;
  break-inside: avoid;
}
.quote-text {
  font-size: 15px; line-height: 1.55; color: var(--text-primary);
  text-wrap: pretty;
}
.quote-text::before { content: "\201C"; color: var(--text-muted); margin-right: 2px; }
.quote-text::after  { content: "\201D"; color: var(--text-muted); margin-left:  2px; }
.quote-attr {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
}
.quote-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-elevated); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; color: var(--text-primary); font-size: 12px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.quote-meta { display: flex; flex-direction: column; gap: 1px; }
.quote-name { color: var(--text-primary); font-weight: 500; }
.quote-role { color: var(--text-muted); font-family: var(--font-script); font-size: 11px; }

/* ============ Pricing ============ */
/* Generated by scripts/render-prices.mjs from prices.json — two tall
   cards in Cursor's grammar (name, price, lead, check bullets, pill
   button) plus a one-line student pointer. students.html reuses
   .price-card as a compact solo card. */
.price-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
  max-width: 880px; margin: 32px auto 0;
}
.price-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 32px 32px 28px;
  display: flex; flex-direction: column;
}
.price-grid .price-card { min-height: 520px; }
.price-card.feature { border-color: var(--accent-border); }
.price-card h3 { margin: 0; font-size: 26px; font-weight: 500; letter-spacing: -0.01em; }
.price-card .price {
  font-size: 24px; font-weight: 400; color: var(--text-secondary); letter-spacing: -0.01em;
  margin-top: 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px;
}
.price-card .price small { font-size: 15px; color: var(--text-muted); font-weight: 400; }
.price-card .price-alt { margin: 4px 0 0; font-size: 13px; color: var(--text-muted); }
.price-card .price-lead { margin: 40px 0 14px; font-size: 15px; color: var(--text-muted); }
.price-card .price-switch { margin-top: 28px; align-self: flex-start; }
.price-card ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 15px; color: var(--text-primary);
}
.price-card ul li { display: flex; gap: 10px; align-items: baseline; }
.price-card ul li::before { content: "✓"; font-size: 13px; color: var(--text-secondary); }
.price-grid .price-card ul { padding-bottom: 40px; }
.price-card .btn {
  margin-top: auto; align-self: flex-start;
  padding: 12px 24px; border-radius: 999px;
}
.price-switch, .price-cadence {
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: var(--bg-elevated); border: 1px solid var(--border-soft);
}
.price-switch button, .price-cadence button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  padding: 6px 16px; border-radius: 999px; font: 500 14px var(--font-ui);
  color: var(--text-muted);
}
.price-switch button[aria-selected="true"],
.price-cadence button[aria-checked="true"] { background: var(--bg-hover); color: var(--text-primary); }
.price-switch button:focus-visible, .price-cadence button:focus-visible {
  outline: 2px solid var(--accent-border); outline-offset: 2px;
}
/* Monthly / Yearly above the grid. Opens on Monthly; the pill is the yearly pitch. */
.price-cadence-row { text-align: center; margin: 28px 0 0; }
.price-cadence button { display: inline-flex; align-items: center; gap: 8px; }
.price-cadence .price-pill { margin-left: 0; line-height: 1.5; }
.price-students { max-width: 880px; margin: 22px auto 0; font-size: 14px; color: var(--text-secondary); }
.price-students a { color: var(--text-primary); }
/* students.html: a compact single card with Pro's price struck through. */
.price-card-solo { max-width: 360px; padding: 26px 24px; gap: 14px; }
.price-card-solo .price { font-size: 32px; font-weight: 600; color: var(--text-primary); margin: 0; gap: 6px; }
.price-card-solo .price small { font-size: 14px; }
.price-card .price .price-was {
  font-size: 20px; font-weight: 400; color: var(--text-muted); text-decoration: line-through;
}
.price-was { text-decoration: line-through; color: var(--text-muted); font-weight: 400; }
.price-pill {
  font-size: 10px; padding: 1px 7px; border-radius: 999px;
  background: var(--accent-bg); color: var(--text-primary);
  border: 1px solid var(--accent-border);
  letter-spacing: 0.04em; font-weight: 600; text-transform: uppercase;
  margin-left: 8px;
}

/* ============ Final CTA ============ */
.cta-final {
  padding: 120px 0;
  text-align: center;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-surface);
}
.cta-final h2 {
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.025em; font-weight: 600;
  margin: 0 0 28px; line-height: 1.05;
}
.cta-final .hero-actions { margin-bottom: 0; }

/* ============ Footer ============ */
.footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-base);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}
.footer-brand {
  display: flex; flex-direction: column; gap: 14px;
}
.footer-brand .brand-row {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: -0.01em; font-size: 17px;
}
.footer-brand .brand-row img {
  width: 26px; height: 26px; border-radius: 22%;
}
.footer-brand p {
  font-size: 13px; color: var(--text-muted); margin: 0;
  max-width: 280px; line-height: 1.55;
}
.footer-col h4 {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted);
  margin: 0 0 12px;
}
.footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13px;
}
.footer-col ul a { color: var(--text-secondary); transition: color .12s; }
.footer-col ul a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--border-soft);
  font-size: 12px; color: var(--text-muted);
}
.footer-bottom .legal { display: flex; gap: 20px; }
.footer-bottom a {
  color: var(--text-secondary);
  transition: color .12s;
}
.footer-bottom a:hover { color: var(--text-primary); }
.footer-bottom { gap: 16px; flex-wrap: wrap; }
.footer-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px; color: var(--text-muted);
  transition: color .12s, background .12s;
}
.footer-x:hover { color: var(--text-primary); background: var(--bg-elevated); }
/* Transactional pages: brand + legal line only. */
.footer-legal .footer-bottom { border-top: 0; padding-top: 0; }
.footer-legal .brand-row {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-primary); font-weight: 600; letter-spacing: -0.01em;
}
.footer-legal .brand-row img { border-radius: 5px; }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .band-split { grid-template-columns: 1fr; gap: 32px; }
  .band-split.reverse > :first-child { order: 0; }
  .feat-grid { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .price-grid .price-card { min-height: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav, .nav-inner { height: 56px; }
  body { padding-top: 56px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-right { gap: 6px; }
  /* The bar keeps logo · Download · burger; the theme toggle moves into the panel. */
  .nav-right .theme-toggle { display: none; }
}
@media (min-width: 981px) {
  .mobile-menu { display: none; }
}
@media (max-width: 980px) {
  .chapter-bar { top: 56px; }
  html:has(.chapter-bar) { scroll-padding-top: 112px; }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; }
  .chapter { padding-top: 64px; }
  /* Long copy reads left-aligned on a phone; only the headline stays centred. */
  .hero-sub, .chapter-lede, .band-lede { text-align: left; }
}

/* ============ Hero: the sign-in banner (Nov 2026) ============
   The same front door the editor shows: a sign-in column beside a title
   page that types itself. Every sign-in finishes on the editor's own
   address (assets/editor-signin.js). Below 1080px the page is hidden and
   the column stands alone. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
/* claude.com's signed-out scale (owner's call, Nov 2026): the sign-in
   column centred in the left half, a display headline, filled 52px
   buttons (Google, then Apple), and the title page as tall as the window
   under the nav, rounded, edge-aligned with the content column. The
   editor's signed-out window draws the same (src/renderer/css/app.css,
   .welcome.is-split). */
.hero-gate { padding: 20px 0 28px; text-align: center; }
.hero-gate-grid { display: grid; gap: 32px; align-items: center; }
.hero-gate-signin { width: 100%; max-width: 440px; margin: 0 auto; }
.hero-gate-title { margin: 0 auto 16px; max-width: 520px; font: 600 52px/1.06 var(--font-ui); letter-spacing: -0.03em; color: var(--text-primary); }
.hero-gate-sub { margin: 0 auto 36px; max-width: 520px; font-size: 22px; line-height: 1.35; color: var(--text-secondary); }
.hero-gate-stack { display: flex; flex-direction: column; gap: 8px; }
/* A button that started a sign-in: a ring after its label while the
   browser leaves (assets/editor-signin.js). Turns with rotate, still under
   reduced motion. */
.hero-gate-btn.is-busy, .hero-gate-fill.is-busy { cursor: progress; }
.hero-gate-btn.is-busy::after, .hero-gate-fill.is-busy::after {
  content: ''; width: 14px; height: 14px; flex-shrink: 0; border-radius: 50%;
  border: 2px solid color-mix(in srgb, currentColor 28%, transparent); border-top-color: currentColor;
  animation: hero-gate-spin 800ms linear infinite;
}
@keyframes hero-gate-spin { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) { .hero-gate-btn.is-busy::after, .hero-gate-fill.is-busy::after { animation: none; } }
.hero-gate-btn { width: 100%; gap: 10px; }
.hero-gate-btn svg, .hero-gate-fill svg { width: 18px; height: 18px; flex-shrink: 0; }
.hero-gate-fill {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 16px; border-radius: 10px; border: 0;
  background: color-mix(in srgb, var(--text-primary) 8%, var(--bg-base));
  color: var(--text-primary); font: 500 15px var(--font-ui);
  transition: background var(--t-base) ease;
}
/* Google, then Apple: both icons and both labels start on one vertical
   line (owner, Nov 2026). The two buttons share columns: icons in one,
   labels left-aligned in the next, the pair centred by the flexible columns
   either side; a busy ring takes the column after the label. The app's own
   sign-in card does the same (.welcome-providers in its app.css). Without
   subgrid, each button centres its own content. */
.hero-gate-providers { display: flex; flex-direction: column; gap: 8px; }
@supports (grid-template-columns: subgrid) {
  .hero-gate-providers { display: grid; grid-template-columns: 1fr auto auto 1fr; column-gap: 10px; row-gap: 8px; }
  .hero-gate-providers > .hero-gate-fill { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; }
  .hero-gate-providers > .hero-gate-fill > svg { grid-column: 2; }
  .hero-gate-providers > .hero-gate-fill > span { grid-column: 3; text-align: start; }
  .hero-gate-providers > .hero-gate-fill.is-busy::after { grid-column: 4; justify-self: start; }
}
.hero-gate-fill:hover { background: color-mix(in srgb, var(--text-primary) 13%, var(--bg-base)); }
.hero-gate-or { display: flex; align-items: center; justify-content: center; margin: 6px 0 6px; font-size: 12px; letter-spacing: .06em; color: var(--text-muted); }
.hero-gate-email { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.hero-gate-email input[type="email"] {
  width: 100%; box-sizing: border-box; height: 44px; padding: 0 16px;
  font: 400 15px var(--font-ui); color: var(--text-primary);
  background: var(--gate-field); border: 0; border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--gate-line);
}
/* A refused address: a 1px ring inside the field, like claude.ai's, not a
   thicker border that moves the text. */
.hero-gate-email.has-error input[type="email"] { box-shadow: inset 0 0 0 1px var(--gate-error); }
.hero-gate-email input[type="email"]::placeholder { color: var(--text-muted); }
/* Focus is a 1px ring inside the field, stronger than at rest; with an
   error it stays the error's red, so the field never draws a thick edge. */
.hero-gate-email input[type="email"]:focus { outline: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text-primary) 55%, transparent); }
.hero-gate-email.has-error input[type="email"]:focus { box-shadow: inset 0 0 0 1px var(--gate-error); }
.hero-gate-email .hero-gate-btn { height: 44px; font-size: 15px; border-radius: 10px; }
.hero-auth-error { display: flex; align-items: center; gap: 6px; margin: -2px 0 2px 2px; font-size: 13px; line-height: 1.4; color: var(--gate-error-text); text-align: left; }
.hero-auth-error[hidden] { display: none; }
.hero-auth-error svg { width: 14px; height: 14px; flex-shrink: 0; }
.hero-gate-legal { margin: 18px 0 0; font-size: 12px; line-height: 1.55; color: var(--text-muted); }
/* The sign-in group sits on its own card, as on claude.ai/login: a hair
   line (0.5px) and a fill a step off the page, 32px corners, 28px in. */
.hero-gate-card {
  --gate-card-bg: color-mix(in srgb, var(--bg-base) 76%, #000);
  --gate-line: rgba(255, 255, 255, 0.07);
  --gate-hairline: rgba(255, 255, 255, 0.06);
  --gate-field: rgba(255, 255, 255, 0.05);
  --gate-error: #f17778;
  --gate-error-text: #f7a7a7;
  padding: 28px; border-radius: 32px;
  background: var(--gate-card-bg); border: 0.5px solid var(--gate-hairline);
}
@media (prefers-color-scheme: light) {
  .hero-gate-card {
    --gate-card-bg: color-mix(in srgb, var(--bg-base) 40%, #fff);
    --gate-line: rgba(20, 20, 19, 0.10);
    --gate-hairline: rgba(20, 20, 19, 0.08);
    --gate-field: rgba(20, 20, 19, 0.03);
    --gate-error: #c8463f;
    --gate-error-text: #b23a33;
  }
}
html[data-theme="dark"] .hero-gate-card {
  --gate-card-bg: color-mix(in srgb, var(--bg-base) 76%, #000);
  --gate-line: rgba(255, 255, 255, 0.07);
  --gate-hairline: rgba(255, 255, 255, 0.06);
  --gate-field: rgba(255, 255, 255, 0.05);
  --gate-error: #f17778;
  --gate-error-text: #f7a7a7;
}
html[data-theme="light"] .hero-gate-card {
  --gate-card-bg: color-mix(in srgb, var(--bg-base) 40%, #fff);
  --gate-line: rgba(20, 20, 19, 0.10);
  --gate-hairline: rgba(20, 20, 19, 0.08);
  --gate-field: rgba(20, 20, 19, 0.03);
  --gate-error: #c8463f;
  --gate-error-text: #b23a33;
}
.hero-gate-free { margin: 18px 0 14px; font-size: 13px; color: var(--text-muted); }
.hero-gate-legal a { color: var(--text-secondary); border-bottom: 1px solid var(--border); }
/* The download wears the mark of the system it is for (data-os, set by
   assets/title-page.js). The label stays the first text node, which is
   what download-cta.js and site.js rewrite, so the mark is moved ahead of
   it with order. */
.hero-gate-download { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; }
.hero-gate-os { display: none; order: -1; flex-shrink: 0; }
.hero-gate-download[data-os="mac"] .hero-gate-os-mac,
.hero-gate-download[data-os="windows"] .hero-gate-os-windows { display: block; }
.hero-gate-page {
  display: none;
  aspect-ratio: 8.5 / 11;
  height: calc(100vh - 52px - 48px); width: auto; max-width: 48vw; margin-left: auto;
  padding: 21.5em 0 0; box-sizing: border-box;
  /* 12pt Courier on a US Letter page (51 characters across). */
  font: 400 calc((100vh - 100px) * 8.5 / 11 / 51)/1 var(--font-script);
  background: var(--bg-page); border-radius: 14px;
  box-shadow: 0 0 0 1px var(--page-edge, rgba(255,250,235,.08)), 0 12px 36px rgba(0,0,0,.32);
  color: var(--text-primary); text-align: center;
}
.hero-gate-line { margin: 0; min-height: 1em; white-space: pre; }
.hero-gate-line-title { text-decoration: underline; text-underline-offset: 2px; }
.hero-gate-line + .hero-gate-line { margin-top: 3.97em; }
.hero-gate-line + .hero-gate-line + .hero-gate-line { margin-top: 1.98em; }
@media (min-width: 1080px) {
  .hero-gate-grid { grid-template-columns: minmax(0, 1fr) auto; gap: 32px; }
  .hero-gate-page { display: block; }
}
/* A short window: a size down, so the legal line stays on screen. */
@media (max-height: 780px) {
  .hero-gate-title { font-size: 38px; margin-bottom: 8px; }
  .hero-gate-sub { font-size: 18px; margin-bottom: 24px; }
  .hero-gate-fill, .hero-gate-email input[type="email"], .hero-gate-email .hero-gate-btn { height: 44px; }
}
@media (max-width: 640px) {
  .hero-gate-title { font-size: 34px; }
}
html[data-theme="light"] .hero-gate-page { box-shadow: 0 0 0 1px rgba(41,37,28,.08), 0 10px 30px rgba(41,37,28,.07); }

.what { padding: 120px 0 40px; text-align: center; }
.what-eyebrow { margin: 0 0 18px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.what-h1 {
  font-size: clamp(36px, 4.4vw, 60px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 600;
  max-width: 980px; margin: 0 auto 24px; color: var(--text-primary); text-wrap: balance;
}
.what-h1 em { font-style: italic; }
.what-sub { font-size: 18px; color: var(--text-secondary); max-width: 720px; margin: 0 auto 56px; text-wrap: pretty; }

/* The title page's cursor: always blinking, beside whatever is typed. */
.hero-gate-caret {
  display: inline-block; width: 1px; height: 1.05em; margin-left: 1px;
  vertical-align: -2px; background: currentColor;
  animation: hero-gate-blink 1.06s steps(1, end) infinite;
}
@keyframes hero-gate-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-gate-caret { display: none; } }

/* Sign-in states the editor hands back (assets/editor-signin.js). */
.hero-gate-stack[hidden], .hero-gate-sent[hidden], .hero-gate-flash[hidden], .hero-gate-sent-note[hidden],
.hero-gate-waiting[hidden], .hero-gate-legal[hidden] { display: none; }
/* Google or Apple under way: a ring and one line in the buttons' place,
   exactly as tall as what it replaces (the app's own card does the same,
   .welcome-signing in its app.css). */
.hero-gate-waiting { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.hero-gate-waiting-ring {
  width: 22px; height: 22px; margin-bottom: 16px; border-radius: 50%;
  border: 2.5px solid color-mix(in srgb, var(--text-primary) 16%, transparent); border-top-color: var(--text-primary);
  animation: hero-gate-spin 800ms linear infinite;
}
@media (prefers-reduced-motion: reduce) { .hero-gate-waiting-ring { animation: none; } }
.hero-gate-waiting-title { margin: 0; font-size: 15px; color: var(--text-primary); }
.hero-gate-waiting-blurb { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.hero-gate-waiting-back { margin-top: 18px; font-size: 14px; color: var(--text-secondary); text-decoration: none; }
.hero-gate-waiting-back:hover { color: var(--text-primary); }
/* The card's other faces, shown only on lastslate.com (the app's copy of
   this page, where signing in happens): a failed sign-in, and the email
   link sent, in place, as claude.ai/login words it. */
.hero-gate-flash { margin: 0 0 14px; font-size: 14px; color: var(--gate-error-text); text-align: center; }
.hero-gate-sent { margin: 4px 0 0; text-align: center; }
.hero-gate-sent-lead { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-primary); }
.hero-gate-sent-lead strong { display: block; font-weight: 500; word-break: break-all; }
.hero-gate-sent-help { margin: 18px 0 0; font-size: 14px; line-height: 1.7; color: var(--text-secondary); }
.hero-gate-sent-note { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.hero-gate-link {
  padding: 0; border: 0; background: none; font: inherit; color: var(--text-primary); cursor: pointer;
  text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  text-underline-offset: 3px;
}
.hero-gate-link:hover { text-decoration-color: currentColor; }
.hero-gate-link:disabled { opacity: .4; cursor: default; pointer-events: none; }
