/*
  DataEngineerPath landing. White page in light theme, near-black in dark,
  cool slate neutrals and one cobalt accent. Geist from the site's own /fonts,
  system mono for data. One radius for everything (8px).
  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: #f5f6f8;
  --ink: #0f1420;
  --ink-2: #333a48;
  --muted: #586174;
  --line: #e1e4ea;
  --line-2: #c5cad4;
  --accent: #2449c7;
  --accent-hover: #1c3aa3;
  --accent-ink: #ffffff;
  --accent-soft: #e6ecfc;
  --warn-soft: #fdf0d5;
  --warn-ink: #7a4b00;
  --bad-soft: #fde4e1;
  --bad-ink: #9b1c10;
  --danger: #b42318;
  --seg-a: #d3d8e2;
  --seg-a-ink: #0f1420;
  --seg-b: #9aa3b5;
  --seg-b-ink: #0f1420;
  --seg-c: #4d5668;
  --seg-c-ink: #ffffff;
  --cell-ink: #0f1420;
  --cell-ink-text: #f2f4f8;
  --shadow: 0 1px 2px rgba(15, 20, 32, 0.05), 0 20px 44px -26px rgba(15, 20, 32, 0.28);
  --radius: 8px;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
}

[data-theme="dark"] {
  --bg: #0b0e13;
  --surface: #12161e;
  --sunken: #0f131a;
  --ink: #e9ecf2;
  --ink-2: #c2c8d4;
  --muted: #98a1b2;
  --line: #232a36;
  --line-2: #343d4d;
  --accent: #86a6ff;
  --accent-hover: #a5bdff;
  --accent-ink: #0b1020;
  --accent-soft: #19254a;
  --warn-soft: #3a2c10;
  --warn-ink: #f3c46b;
  --bad-soft: #3d1a17;
  --bad-ink: #ff9c90;
  --danger: #ff8a7a;
  --seg-a: #262e3c;
  --seg-a-ink: #e9ecf2;
  --seg-b: #3e4859;
  --seg-b-ink: #e9ecf2;
  --seg-c: #6a7488;
  --seg-c-ink: #0b0e13;
  --cell-ink: #e9ecf2;
  --cell-ink-text: #0b0e13;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 20px 44px -26px rgba(0, 0, 0, 0.7);
}

*, *::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; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

.wrap { width: 100%; max-width: 1180px; 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) 90%, 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; white-space: nowrap; }
.wordmark span { color: var(--accent); }
.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; white-space: nowrap; }
.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: 64px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 4.8vw, 56px); line-height: 1.06; letter-spacing: -0.035em; max-width: 13ch; }
.hero-sub { margin-top: 20px; font-size: 19px; color: var(--ink-2); max-width: 44ch; }

/* Form */
.notify-form { margin-top: 32px; display: grid; gap: 12px; max-width: 520px; }
.field-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; }
.field { display: grid; gap: 6px; }
.field-label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field-input {
  height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; transition: border-color 0.15s;
}
.field-input::placeholder { color: var(--muted); }
.field-input:hover { border-color: var(--muted); }
.field-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; }

/* Pipeline demo: a real working component, four stages of the same 6 orders */
.demo {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; display: grid; gap: 14px; min-width: 0;
}
.demo-title { font-weight: 600; font-size: 16px; }
.demo-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; background: var(--sunken); border-radius: var(--radius); }
.demo-tab {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 8px;
  border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background-color 0.15s, color 0.15s;
}
.demo-tab:hover { color: var(--ink); }
.demo-tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 20, 32, 0.1); }
.demo-tab-n { font: 500 12px var(--mono); color: var(--accent); }
.demo-panel { display: grid; gap: 12px; min-width: 0; }
.js .demo-panel[data-hidden-js] { display: none; }
.demo-panel.is-entering { animation: panel-in 0.35s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.demo-code {
  margin: 0; padding: 12px 14px; border-radius: var(--radius); background: var(--sunken);
  font: 13px/1.55 var(--mono); color: var(--ink-2); overflow-x: auto; white-space: pre;
}
.demo-table-wrap { overflow-x: auto; }
.demo-table { width: 100%; border-collapse: collapse; font: 13px/1.4 var(--mono); }
.demo-table th { text-align: left; font-weight: 600; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.demo-table td { padding: 7px 8px; white-space: nowrap; color: var(--ink); }
.demo-table tbody tr + tr td { border-top: 1px solid var(--line); }
.row--dup td { background: var(--warn-soft); color: var(--warn-ink); text-decoration: line-through; }
.row--bad td { background: var(--bad-soft); color: var(--bad-ink); }
.row--tz td:nth-child(2) { color: var(--accent); font-weight: 600; }
.bar-cell { width: 40%; }
.bar { display: block; height: 10px; width: var(--w); border-radius: 2px; background: var(--accent); transform-origin: left; }
.demo-panel.is-entering .bar { animation: bar-in 0.6s var(--ease); }
@keyframes bar-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.demo-foot { display: grid; gap: 2px; font-size: 14px; color: var(--ink-2); }
.demo-foot strong { font: 600 15px var(--mono); color: var(--ink); }

/* Sections */
.section { padding: 96px 0; }
.section--sunken { background: var(--sunken); }
.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 step, capstone ticks underneath */
.route {
  margin-top: 48px; display: grid; gap: 8px 2px;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
}
.route-seg {
  grid-row: 1; min-height: 104px; 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.08); }
.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; }
.route-short { display: none; }
/* Desktop: short labels, so the 15-step and 19-step segments still read */
@media (min-width: 721px) {
  .route-seg { padding: 10px 6px; container-type: inline-size; }
  .route-full { display: none; }
  .route-short { display: inline; font-size: 13px; }
}
.nw { white-space: nowrap; }
/* The 15-step segment has no room for its range; the title attribute keeps it */
@container (max-width: 52px) { .route-n { visibility: hidden; } }
.route-seg--p1 { background: var(--accent); color: var(--accent-ink); }
.route-seg--p2, .route-seg--p5, .route-seg--p8 { background: var(--seg-a); color: var(--seg-a-ink); }
.route-seg--p3, .route-seg--p6 { background: var(--seg-b); color: var(--seg-b-ink); }
.route-seg--p4, .route-seg--p7 { background: var(--seg-c); color: var(--seg-c-ink); }
.route-cap { grid-row: 2; justify-self: center; width: 2px; height: 14px; background: var(--ink-2); border-radius: 1px; }

/* Step anatomy */
.step-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.step-rules { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; max-width: 52ch; }
.step-rules li { padding-left: 22px; position: relative; color: var(--ink-2); }
.step-rules li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 2px; background: var(--accent); }
.step-line { list-style: none; margin: 0; padding: 0; position: relative; }
.step-line::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 2px; background: var(--line-2); }
.step-line li { position: relative; padding: 0 0 28px 40px; }
.step-line li:last-child { padding-bottom: 0; }
.step-line li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.step-line li:last-child::before { background: var(--accent); }
.step-time { font: 500 13px var(--mono); color: var(--accent); }
.step-line h3 { font-size: 22px; margin: 2px 0 6px; }
.step-line p { color: var(--ink-2); max-width: 46ch; }

/* Capstones: 6 cells. Tall accent cell, four plain, one wide ink cell */
.caps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 12px; }
.caps li {
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  min-height: 150px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.caps li:first-child { grid-row: span 2; background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.caps li:first-child .caps-step { color: inherit; opacity: 0.85; }
.caps li:first-child .caps-text { font-size: 26px; line-height: 1.2; }
.caps li:last-child { grid-column: 1 / -1; min-height: 0; flex-direction: row; justify-content: flex-start; align-items: baseline; background: var(--cell-ink); color: var(--cell-ink-text); border-color: transparent; }
.caps li:last-child .caps-step { color: inherit; opacity: 0.75; }
.caps-step { font: 500 13px var(--mono); color: var(--accent); }
.caps-text { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }

/* Syllabus */
.syl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.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-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; display: grid; place-items: center; width: 38px; height: 34px; 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-steps li.is-cap { color: var(--ink); font-weight: 600; }
.syl-steps li.is-cap .syl-n { color: var(--accent); }
.syl-n { font: 500 13px/1.75 var(--mono); color: var(--muted); }
.tag { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: var(--radius); font-size: 12px; font-weight: 600; line-height: 1.6; vertical-align: 1px; }
.tag-free { background: var(--accent-soft); color: var(--accent); }
.tag-opt { background: var(--sunken); color: var(--muted); border: 1px solid var(--line-2); }

/* Stack: 2 columns of label + tools */
.stack { margin: 40px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.stack div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-2); }
.stack dt { font-weight: 600; }
.stack dd { margin: 0; color: var(--ink-2); font: 15px/1.6 var(--mono); }

/* Who */
.who { margin-top: 40px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; align-items: start; }
.who-item { padding-top: 16px; border-top: 2px solid var(--ink); }
.who-item:first-child { border-top-color: var(--accent); }
.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: 1040px) {
  .site-nav { display: none; }
  .hero-grid, .waitlist, .faq-wrap, .step-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { max-width: 18ch; }
  .stack { grid-template-columns: 1fr; }
  .who { grid-template-columns: 1fr 1fr; }
  .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: 36px 0 56px; }
  .hero-sub { font-size: 17px; }
  .field-row { grid-template-columns: 1fr; }
  .notify-form .btn { justify-self: stretch; }
  .demo { padding: 14px; }
  .demo-tab { font-size: 13px; gap: 4px; padding: 0 4px; }
  .section { padding: 64px 0; }
  .route { grid-template-columns: 1fr; }
  .route-seg { grid-column: auto !important; grid-row: auto; min-height: 0; flex-direction: row; justify-content: flex-start; align-items: baseline; gap: 12px; }
  .route-n { min-width: 64px; }
  .route-name { font-size: 15px; }
  .route-cap { display: none; }
  .caps { grid-template-columns: 1fr; }
  .caps li:first-child { grid-row: auto; }
  .caps li:last-child { flex-direction: column; }
  .syl-head { flex-direction: column; align-items: flex-start; }
  .syl-steps { columns: 1; padding-left: 4px; }
  .stack div { grid-template-columns: 1fr; gap: 4px; }
  .who { grid-template-columns: 1fr; gap: 32px; }
  .footer-copy { margin-left: 0; }
}

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