/*
  GenAIPath landing. Monochrome: zinc neutrals, black accent in light, white in dark, Geist from the
  site's own /fonts. One radius for everything (10px), one accent per theme.
  Theme comes from data-theme on <html> (set pre-paint by the device clock).
*/

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --sunken: #fafafa;
  --ink: #0a0a0a;
  --ink-2: #3f3f46;
  --muted: #5f5f68;
  --line: #e4e4e7;
  --line-2: #d4d4d8;
  --accent: #0a0a0a;
  --accent-hover: #3f3f46;
  --accent-ink: #ffffff;
  --accent-soft: #f1f1f3;
  --danger: #b42318;
  --tok-0: #e4e4e7;
  --tok-1: #f4f4f5;
  --tok-2: #d4d4d8;
  --seg-1: #e4e4e7;
  --seg-1-ink: #0a0a0a;
  --seg-2: #a1a1aa;
  --seg-2-ink: #0a0a0a;
  --seg-3: #3f3f46;
  --seg-3-ink: #ffffff;
  --shadow: 0 1px 2px rgba(10, 10, 10, 0.04), 0 18px 40px -24px rgba(10, 10, 10, 0.18);
  --radius: 10px;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
}

[data-theme="dark"] {
  --bg: #09090b;
  --surface: #141416;
  --sunken: #0f0f11;
  --ink: #f4f4f5;
  --ink-2: #c8c8cd;
  --muted: #a1a1aa;
  --line: #26262b;
  --line-2: #3a3a40;
  --accent: #fafafa;
  --accent-hover: #d4d4d8;
  --accent-ink: #09090b;
  --accent-soft: #232326;
  --danger: #ff8a7a;
  --tok-0: #3f3f46;
  --tok-1: #27272a;
  --tok-2: #52525b;
  --seg-1: #27272a;
  --seg-1-ink: #f4f4f5;
  --seg-2: #3f3f46;
  --seg-2-ink: #f4f4f5;
  --seg-3: #71717a;
  --seg-3-ink: #09090b;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -24px rgba(0, 0, 0, 0.6);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }

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

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.skip-link { position: absolute; left: 12px; top: -48px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: var(--radius); z-index: 30; }
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.wordmark { font-weight: 700; font-size: 19px; letter-spacing: -0.03em; text-decoration: none; }
.wordmark span { color: var(--muted); }
.wordmark--sm { font-size: 16px; }
.site-nav { display: flex; gap: 22px; margin-left: 12px; }
.site-nav a { font-size: 15px; color: var(--muted); text-decoration: none; transition: color 0.15s; }
.site-nav a:hover { color: var(--ink); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn, .lang-switch {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--radius); background: transparent;
  color: var(--ink-2); cursor: pointer; text-decoration: none; font-size: 14px; font-weight: 600;
  transition: border-color 0.15s, color 0.15s;
}
.icon-btn:hover, .lang-switch:hover { border-color: var(--line-2); color: var(--ink); }
[data-theme="light"] .theme-icon--sun, [data-theme="dark"] .theme-icon--moon { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: var(--radius); border: 1px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.7; cursor: progress; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-quiet { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-quiet:hover { border-color: var(--ink-2); }
.btn-sm { height: 44px; padding: 0 16px; font-size: 15px; }

/* Hero */
.hero { padding: 72px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.05; letter-spacing: -0.035em; max-width: 13ch; }
.hero-sub { margin-top: 20px; font-size: 19px; color: var(--ink-2); max-width: 44ch; }
.hero .notify-form { margin-top: 32px; }

/* Form */
.notify-form { display: grid; gap: 12px; max-width: 520px; }
.field-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.field { display: grid; gap: 6px; }
.field-label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field-input, .demo-input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  font: 400 16px var(--font); transition: border-color 0.15s;
}
.field-input::placeholder { color: var(--muted); }
.field-input:hover { border-color: var(--muted); }
.field-input:focus-visible, .demo-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field-input.is-invalid { border-color: var(--danger); }
.field-error { min-height: 1.4em; font-size: 14px; color: var(--danger); }
.notify-form .btn { justify-self: start; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.notify-success {
  display: flex; gap: 12px; align-items: center; max-width: 520px; margin-top: 32px;
  padding: 16px 18px; border-radius: var(--radius); background: var(--accent-soft); color: var(--ink);
}
.notify-success svg { color: var(--accent); flex: none; }
.waitlist .notify-success { margin-top: 0; }

/* Token demo: a real working component, not a picture of one */
.demo {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; display: grid; gap: 10px;
}
.demo-title { font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.demo-input { height: auto; min-height: 76px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.demo-tokens {
  min-height: 92px; padding: 14px; border-radius: var(--radius); background: var(--sunken);
  font: 15px/2.1 var(--mono); white-space: pre-wrap; word-break: break-word;
}
.tok { padding: 3px 1px; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.tok--0 { background: var(--tok-0); }
.tok--1 { background: var(--tok-1); }
.tok--2 { background: var(--tok-2); }
.demo-stats { font-size: 15px; color: var(--muted); display: flex; gap: 8px; align-items: baseline; }
.demo-stats strong { font: 600 22px var(--mono); color: var(--ink); }
.demo-stats span { color: var(--line-2); }
.demo-note { font-size: 13px; color: var(--muted); }

/* Sections */
.section { padding: 96px 0; }
.section--sunken { background: var(--sunken); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; }
.lead { margin-top: 14px; font-size: 18px; color: var(--ink-2); max-width: 62ch; }

[data-reveal] { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(16px); }

/* Route map: one grid column per main step */
.route {
  margin-top: 48px; display: grid; gap: 10px 3px;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-template-rows: auto auto auto;
}
.route-seg {
  grid-row: 1; min-height: 96px; padding: 10px 8px; border-radius: var(--radius);
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
  text-decoration: none; overflow: hidden; transition: filter 0.15s;
}
.route-seg:hover { filter: brightness(1.06); }
.route-n { font: 500 12px var(--mono); opacity: 0.85; white-space: nowrap; }
.route-name { font-size: 14px; font-weight: 600; line-height: 1.25; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
.route-seg--p1 { background: var(--accent); color: var(--accent-ink); }
.route-seg--p2, .route-seg--p5, .route-seg--p8 { background: var(--seg-1); color: var(--seg-1-ink); }
.route-seg--p3, .route-seg--p6 { background: var(--seg-2); color: var(--seg-2-ink); }
.route-seg--p4, .route-seg--p7 { background: var(--seg-3); color: var(--seg-3-ink); }
.route-seg--nc { grid-row: 2; min-height: 72px; background: var(--surface); color: var(--ink); border: 1px dashed var(--line-2); }
.route-join { grid-row: 2; align-self: center; border-top: 2px dashed var(--line-2); }
.route-join-label { grid-row: 3; justify-self: end; font: 500 13px var(--mono); color: var(--muted); }

/* Capstones */
.caps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; counter-reset: cap; }
.caps li { display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.caps li:nth-child(-n+2) { border-top-color: var(--ink-2); }
.caps-step { font: 500 14px/1.6 var(--mono); color: var(--accent); }
.caps-text { font-size: 17px; }

/* Syllabus */
.syl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.syl-part { margin-top: 36px; }
.syl-part-title { font-size: 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.syl-part-title > span:first-child { color: var(--accent); }
.syl-part-range { font: 500 14px var(--mono); color: var(--muted); }
.syl-note { color: var(--muted); font-size: 15px; margin: -4px 0 12px; }
.syl-part--nc { padding: 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.syl-mod { border-top: 1px solid var(--line); }
.syl-part .syl-mod:last-child { border-bottom: 1px solid var(--line); }
.syl-mod summary, .faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 10px 4px;
}
.syl-mod summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.syl-letter {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--radius);
  background: var(--accent-soft); color: var(--accent); font: 600 14px var(--mono);
}
.syl-name { font-weight: 600; font-size: 17px; }
.syl-range { margin-left: auto; font: 500 14px var(--mono); color: var(--muted); }
.syl-chev { flex: none; color: var(--muted); transition: transform 0.2s var(--ease); }
details[open] > summary .syl-chev { transform: rotate(180deg); }
.syl-mod summary:hover .syl-name { color: var(--accent); }
.syl-steps { list-style: none; margin: 0; padding: 4px 4px 22px 52px; columns: 2; column-gap: 40px; }
.syl-steps li { break-inside: avoid; display: grid; grid-template-columns: 40px 1fr; gap: 8px; padding: 5px 0; font-size: 15px; color: var(--ink-2); }
.syl-n { font: 500 13px/1.75 var(--mono); color: var(--muted); }
.tag-free { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; line-height: 1.6; vertical-align: 1px; }

/* Practice: one wide item, three narrow */
.prac { margin-top: 40px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.prac-item { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.prac-item--main { grid-row: span 2; background: var(--accent); color: var(--accent-ink); border-color: transparent; display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px; }
.prac-item--main h3 { font-size: 28px; line-height: 1.15; }
.prac-item--main p { color: inherit; opacity: 0.92; font-size: 17px; }
.prac-item:last-child { grid-column: span 2; }
.prac-item h3 { font-size: 18px; margin-bottom: 8px; }
.prac-item p { font-size: 15px; color: var(--ink-2); }
.prac-item--main p { color: inherit; }

/* Who */
.who { display: grid; grid-template-columns: 0.8fr 1fr 1fr; gap: 48px; align-items: start; }
.who-item { padding-top: 16px; border-top: 2px solid var(--ink); }
.who-item h3 { font-size: 20px; margin-bottom: 10px; }
.who-item p { color: var(--ink-2); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 2fr; gap: 48px; align-items: start; }
.faq details { border-top: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: 1px solid var(--line-2); }
.faq summary { justify-content: space-between; font-weight: 600; font-size: 17px; }
.faq p { padding: 0 4px 20px; color: var(--ink-2); max-width: 66ch; }

/* Waitlist */
.waitlist { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-size: 14px; color: var(--muted); }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a, .footer-copy a { color: var(--muted); }
.footer-legal a:hover, .footer-copy a:hover { color: var(--ink); }
.footer-copy { margin-left: auto; }

/* Tablet */
@media (max-width: 960px) {
  .site-nav { display: none; }
  .hero-grid, .waitlist, .faq-wrap { grid-template-columns: 1fr; gap: 40px; }
  .who { grid-template-columns: 1fr 1fr; }
  .who .section-title { grid-column: 1 / -1; }
  .prac { grid-template-columns: 1fr 1fr; }
  .prac-item--main { grid-row: auto; grid-column: 1 / -1; min-height: 200px; }
  .prac-item:last-child { grid-column: auto; }
  .route-name { font-size: 12px; }
}

/* Phone: the route map becomes a list, everything single-column */
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .header-tools .btn { display: none; }
  .hero { padding: 40px 0 56px; }
  .hero-sub { font-size: 17px; }
  .field-row { grid-template-columns: 1fr; }
  .notify-form .btn { justify-self: stretch; }
  .section { padding: 64px 0; }
  .route { display: grid; grid-template-columns: 1fr; }
  .route-seg, .route-seg--nc { grid-column: auto !important; grid-row: auto; min-height: 0; flex-direction: row; justify-content: flex-start; align-items: baseline; gap: 12px; }
  .route-seg--nc { order: 1; margin-left: 20px; }
  .route-seg--p1 { order: 0; }
  .route-seg--p2, .route-seg--p3, .route-seg--p4, .route-seg--p5, .route-seg--p6, .route-seg--p7, .route-seg--p8 { order: 2; }
  .route-join { display: none; }
  .route-join-label { grid-column: auto !important; order: 1; justify-self: start; margin: -4px 0 4px 20px; }
  .route-name { font-size: 15px; }
  .caps { grid-template-columns: 1fr; }
  .caps li:nth-child(2) { border-top-color: var(--line); }
  .caps li { grid-template-columns: 72px 1fr; }
  .syl-head { flex-direction: column; align-items: flex-start; }
  .syl-steps { columns: 1; padding-left: 4px; }
  .syl-part--nc { padding: 14px; }
  .prac, .who { grid-template-columns: 1fr; }
  .prac-item:last-child { grid-column: auto; }
  .footer-copy { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .js [data-reveal]:not(.is-visible) { opacity: 1; transform: none; }
}
