/* =================================================================
   SolidCite landing — dark glassmorphism overhaul
   Brand palette mirrors the extension (moss / blue / saffron)
   ================================================================= */

:root {
  color-scheme: dark;
  --bg: #0a0c0e;
  --bg-2: #0d1013;
  --ink: #ededec;
  --ink-soft: #b9bcc0;
  --muted: #7c8086;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.05);
  --surface-3: rgba(255, 255, 255, 0.075);

  /* Single signature accent + neutral status colors */
  --accent: #8fcfae;
  --accent-deep: #4a8a6a;
  --moss: #8fcfae;
  --moss-deep: #4a8a6a;
  --blue: #7eaef0;
  --blue-deep: #4d7fc2;
  --saffron: #d8b173;
  --saffron-deep: #a07c34;
  --danger: #d97a7a;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.4),
    0 10px 30px -14px rgba(0, 0, 0, 0.55);
  --shadow-lift: 0 18px 50px -22px rgba(0, 0, 0, 0.75),
    0 2px 10px -4px rgba(0, 0, 0, 0.45);

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "ss01", "cv11";
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #08090b;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  letter-spacing: -0.005em;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background: color-mix(in srgb, var(--moss) 35%, transparent);
  color: var(--ink);
}

/* ============================== AURORA BACKDROP ============================== */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.aurora__blob {
  position: absolute;
  width: 80vmax;
  height: 80vmax;
  border-radius: 50%;
  filter: blur(180px);
  opacity: 0.08;
  mix-blend-mode: screen;
  will-change: transform;
}
.aurora__blob--moss {
  top: -40vmax;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
}
.aurora__blob--blue,
.aurora__blob--saffron { display: none; }

@keyframes aurora-float {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(-50%); }
}

.aurora__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(
    ellipse 60% 40% at 50% 0%,
    black 0%,
    transparent 70%
  );
  opacity: 0.6;
}

.aurora__noise { display: none; }

/* ============================== SHELL ============================== */
.site-shell {
  margin: 0 auto;
  max-width: 1200px;
  padding: 22px 22px 64px;
}

/* ============================== TOPBAR ============================== */
.topbar {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px 16px;
  position: sticky;
  top: 14px;
  z-index: 30;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-2) 70%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.brand img {
  height: 30px;
  width: 30px;
  border-radius: 8px;
}
.brand__pill {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.topbar nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}
.topbar nav a {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.topbar nav a:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.topbar nav .external-link {
  background: var(--surface);
  border: 1px solid var(--line);
}

/* ============================== BUTTONS ============================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-weight: 660;
  font-size: 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease;
}
.btn svg { width: 16px; height: 16px; }

.btn-primary {
  color: #0a0c0e;
  background: #f5f5f3;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 10px 28px -14px rgba(0, 0, 0, 0.7);
}
.btn-primary:hover {
  transform: translateY(-1px);
  background: #ffffff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 16px 36px -16px rgba(0, 0, 0, 0.7);
}

.btn-ghost {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: color-mix(in srgb, var(--moss) 45%, transparent);
}

.btn-primary-sm {
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #f5f5f3;
  color: #0a0c0e;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-primary-sm:hover { transform: translateY(-1px); background: #ffffff; }

.btn-secondary {
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 660;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
}
.btn-secondary:hover { background: var(--surface-3); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 14px; height: 14px; }

/* ============================== TYPOGRAPHY HELPERS ============================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 660;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.eyebrow__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
@keyframes pulse-dot { 0%,100% { opacity: 1; } }

.ink-serif {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
}

.ink-gradient {
  color: var(--ink);
}

/* ===== Cycling word ===== */
.word-cycle {
  display: inline-flex;
  vertical-align: baseline;
  height: 1.05em;
  overflow: hidden;
  position: relative;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  min-width: 5.2ch;
  color: var(--ink);
}
.word-cycle__track {
  display: flex;
  flex-direction: column;
  will-change: transform;
}
.word-cycle__word {
  display: block;
  height: 1.05em;
  line-height: 1.05;
  color: var(--ink);
}
.word-cycle__word[data-tone] { color: var(--ink); background: none; -webkit-text-fill-color: currentColor; }

@keyframes word-cycle {
  /* 6 unique words, hold then slide. Track has 7 items (last duplicates first). */
  0%, 13%   { transform: translateY(0); }
  16.67%, 30% { transform: translateY(calc(-1 * 1.05em)); }
  33.33%, 47% { transform: translateY(calc(-2 * 1.05em)); }
  50%, 63%    { transform: translateY(calc(-3 * 1.05em)); }
  66.67%, 80% { transform: translateY(calc(-4 * 1.05em)); }
  83.33%, 97% { transform: translateY(calc(-5 * 1.05em)); }
  100%        { transform: translateY(calc(-6 * 1.05em)); }
}

.word-cycle__track {
  animation: word-cycle 14s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}

h1, h2, h3 {
  font-weight: 720;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

/* ============================== HERO ============================== */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 88px 4px 72px;
}

.hero-copy h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  margin-bottom: 22px;
}

.hero-lede {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.55;
  max-width: 52ch;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 18px 6px 0;
  border-top: 1px solid var(--line);
}
.hero-stats > div { margin: 0; }
.hero-stats dt {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.hero-stats dd {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-suffix {
  color: var(--muted);
  margin-left: 2px;
  font-size: 22px;
}

/* ===== Hero app surface (mock) ===== */
.hero-app {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #101418 0%, #0c0f12 100%);
  box-shadow: var(--shadow-lift),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transform: perspective(1600px) rotateY(-4deg) rotateX(1deg);
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero-app:hover {
  transform: perspective(1600px) rotateY(-1deg) rotateX(0deg) translateY(-2px);
}

.hero-app__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.hero-app__chrome span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface-3);
}
.hero-app__chrome span:nth-child(1) { background: #ff5f56; }
.hero-app__chrome span:nth-child(2) { background: #ffbd2e; }
.hero-app__chrome span:nth-child(3) { background: #27c93f; }
.hero-app__chrome p {
  margin: 0 0 0 12px;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.hero-app__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 560px;
  overflow-y: auto;
}

/* Custom scrollbar mirroring extension */
.solidcite-scrollbar { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.18) transparent; }
.solidcite-scrollbar::-webkit-scrollbar { width: 8px; }
.solidcite-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.16);
  border-radius: 999px;
}

.voice-coach {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  background: rgba(20, 24, 28, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 10px 28px -12px rgba(0, 0, 0, 0.7);
  max-width: calc(100% - 32px);
  z-index: 2;
}
.voice-coach svg { width: 13px; height: 13px; color: var(--ink-soft); }
.voice-coach__pulse {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.voice-coach__pulse::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0;
  animation: voice-ring 2.4s ease-out infinite;
}
@keyframes voice-ring {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.8); opacity: 0; }
}
@keyframes voice-bob { 0%,100% { transform: none; } }

/* ============================== APP-LIKE PRIMITIVES ============================== */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}
.card-glow::before { display: none; }

.section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.card-title {
  font-size: 16px;
  margin: 6px 0 4px;
  line-height: 1.2;
}
.card-sub {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

.row-between {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.gap-2 { gap: 8px; }
.min-w-0 { min-width: 0; }

.score-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.score-badge {
  position: relative;
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #1c2227, #14181c);
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.score-badge__ring { display: none; }
@keyframes orbit { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.chip-info {
  background: var(--surface-2);
  color: var(--ink-soft);
  border-color: var(--line-strong);
}
.chip-tone-good {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 25%, transparent);
}
.chip-tone-careful {
  background: var(--surface-2);
  color: var(--ink-soft);
  border-color: var(--line-strong);
}
.py-0 { padding-top: 2px; padding-bottom: 2px; }

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.why-box {
  margin-top: 12px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.why-box strong { color: var(--ink); }

.divider {
  height: 1px;
  background: var(--line);
  margin: 14px 0;
}

.next-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 660;
  margin: 0;
}
.next-title svg {
  width: 14px; height: 14px;
  color: var(--ink-soft);
}
.next-sub {
  margin: 6px 0 12px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}
.next-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Trail */
.trail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
}
.trail__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.trail__row:hover { background: var(--surface-2); }
.trail__row strong { font-size: 13px; }
.trail__row p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.trail__row time {
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.status-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  position: relative;
}
.status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.45;
}
.status-dot.accepted { background: var(--moss); color: var(--moss); }
.status-dot.careful { background: var(--saffron); color: var(--saffron); }
.status-dot.review { background: var(--blue); color: var(--blue); }

/* ============================== MARQUEE ============================== */
.marquee {
  margin: 24px 0 12px;
  border-block: 1px solid var(--line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 16px 0;
  width: max-content;
  animation: marquee 60s linear infinite;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.marquee__track span[aria-hidden] { color: rgba(255,255,255,0.15); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================== SECTIONS ============================== */
.section {
  padding: 96px 4px;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 14px;
}
.section-lede {
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
  max-width: 56ch;
}

/* ============================== STEPS (METHOD) ============================== */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.step {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.step::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.step:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}
.step:hover::before { opacity: 1; }

.step__index {
  font-family: var(--serif);
  font-size: 38px;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1;
}
.step h3 {
  font-size: 22px;
  margin-bottom: 10px;
}
.step p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}
.step__bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.step__bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 12.5px;
  color: var(--muted);
}
.step__bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ink-soft);
}

/* ============================== PREVIEW GRID ============================== */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.preview-card {
  position: relative;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.preview-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}
.preview-card--wide { grid-column: span 2; }
.preview-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.preview-card__head h3 {
  font-size: 15px;
  font-weight: 660;
}

/* Citation tiles */
.cite-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.cite-tile {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  transition: transform 0.2s ease, background 0.2s ease;
}
.cite-tile:hover {
  transform: translateY(-2px);
  background: var(--surface-3);
}
.cite-tile p { margin: 0; }
.cite-tile em { color: var(--ink); font-family: var(--serif); font-style: italic; }
.cite-tile__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.cite-tile__style {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

/* Claim card */
.claim-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.claim-card__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
}
.claim-card__quote {
  margin: 12px 0 10px;
  padding-left: 12px;
  border-left: 2px solid var(--line-strong);
  font-family: var(--serif);
  font-style: italic;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.5;
}
.claim-card__meta {
  display: flex;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
}

/* Checklist */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  color: var(--ink-soft);
}
.checklist .check {
  width: 16px; height: 16px;
  border-radius: 5px;
  border: 1.5px solid var(--line-strong);
  background: var(--bg-2);
  flex-shrink: 0;
  position: relative;
}
.checklist .is-done {
  color: var(--ink);
  background: var(--surface-2);
  border-color: var(--line-strong);
}
.checklist .is-done .check {
  background: var(--accent);
  border-color: var(--accent);
}
.checklist .is-done .check::after {
  content: "";
  position: absolute;
  left: 4px; top: 1px;
  width: 4px; height: 8px;
  border-right: 2px solid #0a0c0e;
  border-bottom: 2px solid #0a0c0e;
  transform: rotate(45deg);
}

/* Metadata grid */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.meta-grid > div {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}
.meta-grid dt {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.meta-grid dd {
  margin: 0;
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
  word-break: break-word;
}

/* ============================== PILOT ============================== */
.pilot-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.pilot-card::after { display: none; }
.pilot-card__copy h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin: 0 0 14px;
}
.pilot-card__copy p {
  color: var(--ink-soft);
  margin: 0 0 24px;
  line-height: 1.6;
}

.pilot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pilot-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--ink);
  transition: background 0.15s, transform 0.15s;
}
.pilot-list li:hover { background: var(--surface-3); transform: translateX(4px); }
.pilot-list__icon {
  color: var(--accent);
  font-size: 8px;
}

/* ============================== CONTACT ============================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-grid h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin: 0 0 14px;
}

.contact-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.contact-meta > div {
  padding: 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.contact-meta__label {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lift);
}
.contact-form label {
  display: grid;
  gap: 6px;
}
.contact-form label span {
  font-size: 11.5px;
  font-weight: 660;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  appearance: none;
  width: 100%;
  background: var(--bg-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.contact-form button:disabled {
  cursor: wait;
  opacity: 0.74;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--moss) 60%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--moss) 22%, transparent);
  background: color-mix(in srgb, var(--moss) 4%, var(--bg-2));
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { justify-self: start; }

.form-status {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  min-height: 20px;
}

.form-status-error {
  color: var(--danger);
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

/* ============================== FOOTER ============================== */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 32px 4px 8px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 660;
}
.footer__brand img {
  height: 22px; width: 22px; border-radius: 6px;
}
.footer__copy {
  font-variant-numeric: tabular-nums;
}
.footer__links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer__links span { color: var(--line-strong); }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ============================== REVEAL ANIMATIONS ============================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.is-visible.delay-1 { transition-delay: 0.08s; }
.reveal.is-visible.delay-2 { transition-delay: 0.16s; }
.reveal.is-visible.delay-3 { transition-delay: 0.24s; }

/* ============================== TRAIL SECTION ============================== */
.trail-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 32px;
  align-items: start;
}

/* Document mock */
.trail-doc {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #11151a 0%, #0d1115 100%);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.trail-doc::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 31px,
      rgba(255, 255, 255, 0.025) 31px,
      rgba(255, 255, 255, 0.025) 32px
    );
  pointer-events: none;
  opacity: 0.7;
}
.trail-doc > * { position: relative; }

.trail-doc__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.trail-doc__kicker {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.trail-doc__title {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
}
.trail-doc__meta {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.trail-doc__seal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.trail-doc__seal svg { width: 14px; height: 14px; }

.trail-doc__entries {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.trail-doc__entries li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.trail-doc__entries li:last-child { border-bottom: none; }
.trail-doc__time {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--muted);
  padding-top: 1px;
}
.trail-doc__entry-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.trail-doc__entry-sub {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.trail-doc__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
}
.trail-doc__hash {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.trail-doc__verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 10.5px;
}
.trail-doc__verified .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

/* Benefits */
.trail-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.trail-benefit {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.trail-benefit:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
.trail-benefit__icon {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.trail-benefit__icon svg { width: 18px; height: 18px; }
.trail-benefit__icon { grid-row: span 2; }
.trail-benefit h3 {
  margin: 0 0 4px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.trail-benefit p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ============================== THANK-YOU PAGE ============================== */
.thanks-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 220px);
  padding: 80px 0 64px;
}
.thanks-card {
  width: 100%;
  max-width: 640px;
  padding: 56px 48px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, #0d1115 100%);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lift);
  text-align: left;
}
.thanks-check {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-bottom: 28px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  color: var(--accent);
}
.thanks-check svg { width: 32px; height: 32px; }
.thanks-title {
  margin: 14px 0 18px;
  font-size: clamp(34px, 5vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--ink);
}
.thanks-title .ink-serif {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0;
}
.thanks-lede {
  margin: 0 0 32px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 52ch;
}
.thanks-list {
  list-style: none;
  margin: 0 0 36px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
}
.thanks-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
}
.thanks-list__step {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.thanks-list strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.thanks-list p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.thanks-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .thanks-main { padding: 40px 0 32px; min-height: 0; }
  .thanks-card { padding: 36px 24px; }
  .thanks-check { width: 48px; height: 48px; margin-bottom: 20px; }
  .thanks-check svg { width: 26px; height: 26px; }
  .thanks-title { font-size: clamp(28px, 7vw, 36px); }
  .thanks-list { padding: 18px 0; gap: 14px; }
  .thanks-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ============================== RESPONSIVE ============================== */
@media (max-width: 1100px) {
  .hero { gap: 40px; }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 48px; }
  .hero-app { transform: none; max-width: 560px; margin: 0 auto; width: 100%; }
  .hero-app:hover { transform: none; }
  .hero-copy h1 { font-size: clamp(36px, 7vw, 56px); }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .preview-grid { grid-template-columns: 1fr; }
  .preview-card--wide { grid-column: auto; }
  .cite-stack { grid-template-columns: 1fr; }
  .meta-grid { grid-template-columns: repeat(2, 1fr); }
  .pilot-card { grid-template-columns: 1fr; padding: 32px; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .trail-layout { grid-template-columns: 1fr; gap: 20px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
}
@media (max-width: 720px) {
  .topbar { padding: 8px 10px; gap: 8px; }
  .topbar nav { gap: 0; flex-wrap: nowrap; overflow-x: auto; max-width: 60%;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .topbar nav::-webkit-scrollbar { display: none; }
  .topbar nav a { padding: 6px 10px; font-size: 12.5px; white-space: nowrap; }
  .topbar nav .external-link { display: none; }
  .brand span { font-size: 14px; }
  .brand img { height: 26px; width: 26px; }
  .brand__pill { display: none; }
}
@media (max-width: 600px) {
  .site-shell { padding: 12px 14px 40px; }
  .topbar { border-radius: 16px; top: 8px; }
  .hero { padding-top: 32px; padding-bottom: 32px; gap: 32px; }
  .hero-copy h1 { font-size: clamp(32px, 9vw, 44px); line-height: 1.05; }
  .hero-lede { font-size: 15px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 16px; }
  .hero-stats dt { font-size: 10px; }
  .hero-stats dd { font-size: 22px; }
  .hero-app__body { padding: 14px; max-height: 460px; }
  .meta-grid { grid-template-columns: 1fr; }
  .voice-coach { right: 10px; bottom: 10px; padding: 6px 10px 6px 8px; font-size: 11px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: clamp(24px, 6vw, 32px); }
  .pilot-card { padding: 24px; }
  .pilot-card__copy h2,
  .contact-grid h2 { font-size: clamp(24px, 6vw, 32px); }
  .contact-form { padding: 20px; }
  .contact-meta { grid-template-columns: 1fr; }
  .marquee__track { gap: 32px; padding: 12px 0; font-size: 11px; }
  .step { padding: 22px 20px; }
  .preview-card { padding: 18px; }
  .trail-doc { padding: 22px; }
  .trail-doc__head { flex-direction: column; gap: 12px; }
  .trail-doc__title { font-size: 19px; }
  .trail-doc__entries li { grid-template-columns: 48px 1fr; gap: 10px; }
  footer { flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; }
}
@media (max-width: 380px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats > div:last-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-app { transform: none; }
}
