/* GENERATED by scripts/build-stylesheet.mjs from reference/contract-v3/learn-index.html — DO NOT EDIT.
 *
 * Visual Contract v3: this sheet is the learn-index surface's oracle stylesheet VERBATIM. Refresh
 * the contract file and run `npm run css`; the release gate runs `--check` and fails on drift.
 */
/* CoreVecta Atlas — contract-v4 canonical token sheet (Wave R0, card atlas-redesign-flagship-2026-08-05)
   ONE token generation for all surfaces. Derived from the designers' system
   (/home/sali/atlasv2/redesign/, Calculatordetail generation) with the ratified red-line
   corrections applied. Dark = brand default; light fully covered. Every oracle embeds this
   block verbatim at the top of its stylesheet. */

:root {
  color-scheme: dark;
  /* surfaces */
  --bg: #07110e;
  --bg-elevated: #0b1713;
  --surface: #10201a;
  --surface-2: #142820;
  --surface-3: #193229;
  --surface-soft: rgba(255, 255, 255, .035);
  /* text */
  --text: #f4f8f5;
  --text-soft: #c0ccc5;
  --text-muted: #8fa198;
  /* lines */
  --line: rgba(216, 239, 225, .13);
  --line-strong: rgba(216, 239, 225, .22);
  /* accent — the reader's color: interactive, CTA, active states */
  --accent: #a7f36d;
  --accent-strong: #86df45;
  --accent-ink: #10200b;          /* text ON accent fills */
  --accent-soft: rgba(167, 243, 109, .12);
  --accent-fill: #a7f36d;         /* non-text graphics: bars, chart strokes, fills */
  /* semantic */
  --teal: #77e7cc;                /* engine/verified secondary */
  --warn: #ffd166;
  --danger: #ff8e8e;
  --blue: #8fc7ff;
  --violet: #c7a8ff;
  /* elevation */
  --shadow: 0 24px 64px rgba(0, 0, 0, .30);
  --shadow-soft: 0 14px 36px rgba(0, 0, 0, .18);
  /* geometry */
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;
  --header-h: 72px;
  --max: 1380px;
  /* type — Inter first-in-stack ONLY (no webfont, gate law NO REMOTE FONT) */
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7f2;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f7f1;
  --surface-3: #ebf1e9;
  --surface-soft: rgba(10, 34, 22, .035);
  --text: #102018;
  --text-soft: #3d5146;
  --text-muted: #5c6f64;          /* corrected from #687c71 — 4.98:1 on --bg (was 4.13 FAIL) */
  --line: rgba(15, 42, 27, .12);
  --line-strong: rgba(15, 42, 27, .20);
  --accent: #37791b;              /* corrected from #5dbf2f — 5.37:1 on white as text (was 2.34 FAIL) */
  --accent-strong: #2f6a15;       /* hover/emphasis — 6.58:1 */
  --accent-ink: #ffffff;          /* white on #37791b = 5.37:1 (was 2.34 FAIL) */
  --accent-soft: rgba(82, 181, 38, .12);
  --accent-fill: #4ca224;         /* graphics-only (>=3:1); NEVER as text in light theme */
  --teal: #157d69;                /* 5.04:1 as text — ok */
  --warn: #8f5a00;                /* darkened from #b46f00 (4.03 marginal) for small-text use */
  --danger: #bd3e3e;              /* 5.35:1 — ok */
  --blue: #226dac;
  --violet: #6d4fb0;
  --shadow: 0 24px 64px rgba(41, 63, 49, .13);
  --shadow-soft: 0 14px 36px rgba(41, 63, 49, .09);
}

/* ============================================================================
   Base — authored mobile-first at 390px; ladder: 720 / 1080 / (1360 polish).
   ============================================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 13% -8%, color-mix(in srgb, var(--teal) 10%, transparent), transparent 32rem),
    radial-gradient(circle at 88% 5%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
svg { display: block; }
input { font-size: 16px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }


/* ======================================================================
   SHARED SHELL — canonical, byte-identical across all eight v4 oracles.
   Normalized from calculator.html (THE SHELL IS ONE SHELL, v4). Refresh
   the shell here and re-run the normalizer; drift fails the css build.
   ====================================================================== */

/* ======================================================================
   SHARED SHELL — canonical, byte-identical across all eight v4 oracles.
   Normalized from calculator.html (THE SHELL IS ONE SHELL, v4). Refresh
   the shell here and re-run the normalizer; drift fails the css build.
   ====================================================================== */

/* ======================================================================
   SHARED SHELL — canonical, byte-identical across all eight v4 oracles.
   Normalized from calculator.html (THE SHELL IS ONE SHELL, v4). Refresh
   the shell here and re-run the normalizer; drift fails the css build.
   ====================================================================== */
.skip-link {
  position: fixed; top: 8px; left: 8px; transform: translateY(-150%); z-index: 999;
  padding: 12px 16px; border-radius: var(--radius-xs); background: var(--accent); color: var(--accent-ink); font-weight: 800;
}
.skip-link:focus { transform: none; }
.oracle-note { color: var(--text-muted); font-size: 11px; line-height: 1.45; }
.commercial-slot:empty { display: none; }
.shell-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
}
.header-inner {
  width: min(var(--max), calc(100% - 32px)); height: 100%; margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--accent), var(--teal));
  color: var(--accent-ink);
}
.brand-copy { display: grid; line-height: 1; gap: 4px; }
.brand-copy strong { font-size: 17px; letter-spacing: -.015em; font-weight: 800; }
.brand-copy span { display: none; color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.primary-nav { display: none; align-items: center; gap: 4px; }
.nav-link { padding: 10px 13px; border-radius: 11px; color: var(--text-soft); font-size: 15px; font-weight: 700; }
.nav-link:hover { background: var(--surface-soft); color: var(--text); }
.nav-link.active { background: var(--accent-soft); color: var(--accent); }
.header-tools { display: flex; align-items: center; gap: 8px; justify-self: end; }
.tool-btn, .search-btn {
  min-height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; color: var(--text-soft); font-weight: 700;
  transition: border-color .2s;
}
.tool-btn { width: 42px; padding: 0; }
.tool-btn:hover, .search-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--line-strong); }
.search-btn { width: 42px; padding: 0; }
.search-btn kbd {
  border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px;
  color: var(--text-muted); font-size: 12px; background: var(--surface); font-family: var(--font);
}
.mobile-bottom-nav {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 70;
  display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px;
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--bg-elevated); box-shadow: var(--shadow-soft);
}
.mobile-bottom-nav a {
  min-height: 52px; display: grid; place-items: center; align-content: center; gap: 3px;
  border-radius: 12px; color: var(--text-muted); font-size: 11px; font-weight: 650;
}
.mobile-bottom-nav svg { width: 20px; height: 20px; }
.mobile-bottom-nav a.active { background: var(--accent-soft); color: var(--accent); }
.page { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; padding: 18px 0 24px; }
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  color: var(--text-muted); font-size: 14px; font-weight: 650; margin-bottom: 16px;
}
.breadcrumb a:hover { color: var(--text); }
.breadcrumb strong { color: var(--text-soft); font-weight: 650; }
.crumb-sep { opacity: .5; }
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); background: var(--bg-elevated); }
.refnote { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 16px; color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.search-btn .search-label, .search-btn kbd { display: none; }
.lang-chip { width: auto; padding: 0 12px; font-size: 14px; font-weight: 800; }
.footer-inner { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; padding: 40px 0 120px; display: grid; gap: 28px; }
.footer-copy { color: var(--text-muted); max-width: 480px; font-size: 14px; margin: 14px 0 0; }
.footer-col strong { display: block; margin-bottom: 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); font-weight: 700; }
.footer-col a { display: block; padding: 5px 0; color: var(--text-soft); font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
@media (min-width: 720px) {
.header-inner { width: min(var(--max), calc(100% - 40px)); gap: 28px; }
.brand-copy span { display: block; }
.search-btn { width: auto; padding: 0 13px; }
.page { width: min(var(--max), calc(100% - 40px)); padding-top: 26px; }
.search-btn .search-label, .search-btn kbd { display: inline-block; }
.footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
.primary-nav { display: flex; }
.mobile-bottom-nav { display: none; }
.footer-inner { grid-template-columns: 1.4fr repeat(3, .6fr); gap: 36px; padding-bottom: 48px; }
}
@media (prefers-reduced-motion: reduce) {
.skip-link { transition: none; }
}
@media print {
.site-footer { margin-top: 12pt; background: none; border-top: 0; }
.refnote { border-top: 1px solid var(--line); }
.page, .footer-inner { width: 100%; padding: 0; }
}
/* ==== end shared shell ==== */






































/* ==== end shared shell ==== */




































/* ==== end shared shell ==== */



/* Oracle annotation captions (red-line 6): second-state demonstrations only. */


/* Commercial slots — zero height when empty, never a layout event. */


/* ============================================================================
   Shared shell — header
   ============================================================================ */
















/* ============================================================================
   Page frame + breadcrumb
   ============================================================================ */




/* ============================================================================
   Section 1 — hero (hero-main + start-card aside)
   ============================================================================ */
.hero { display: grid; gap: 16px; align-items: stretch; }
.hero-main, .start-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow-soft);
}
.hero-main {
  padding: 24px 20px;
  background: linear-gradient(126deg, color-mix(in srgb, var(--teal) 8%, transparent), transparent 49%), var(--surface-soft);
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero-main::after {
  content: ""; position: absolute; right: -220px; top: -170px;
  width: 360px; height: 360px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
  box-shadow:
    0 0 0 54px color-mix(in srgb, var(--accent) 3%, transparent),
    0 0 0 108px color-mix(in srgb, var(--accent) 2%, transparent);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px;
  color: var(--accent); font-size: 13px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase;
}
.eyebrow-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}
h1 {
  margin: 0; max-width: 850px;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.04; letter-spacing: -.04em; font-weight: 800;
  text-wrap: balance;
}
.hero-lede {
  max-width: 800px; margin: 18px 0 0;
  color: var(--text-soft);
  font-size: clamp(17px, 1.55vw, 21px); line-height: 1.55;
}
.trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pill {
  min-height: 37px; display: inline-flex; align-items: center; gap: 8px;
  padding: 0 12px; border: 1px solid var(--line); border-radius: 99px;
  background: var(--surface-soft); color: var(--text-soft);
  font-size: 13px; font-weight: 700;
}
.pill svg { color: var(--accent); }
.hero-search { position: relative; z-index: 2; margin-top: 28px; }
.search-shell {
  display: grid; grid-template-columns: 1fr; gap: 8px; padding: 6px;
  border: 1px solid var(--line-strong); border-radius: 18px;
  background: var(--surface); box-shadow: var(--shadow-soft);
}
.search-input-wrap { display: flex; align-items: center; gap: 12px; padding-left: 11px; }
.search-input-wrap svg { color: var(--text-muted); flex: 0 0 auto; }
.search-shell input {
  width: 100%; height: 52px; border: 0; background: transparent;
  color: var(--text); font-size: 16px; font-weight: 700; outline: none; min-width: 0;
}
.search-shell input::placeholder { color: var(--text-muted); font-weight: 400; }
.find-btn {
  min-height: 48px; border: 0; border-radius: 13px;
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  color: var(--accent-ink); font-weight: 800; cursor: pointer;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 16%, transparent);
}
.quick-links {
  display: flex; gap: 8px; overflow-x: auto;
  margin-top: 11px; padding-bottom: 2px; scrollbar-width: none;
}
.quick-links::-webkit-scrollbar { display: none; }
.quick-link {
  flex: 0 0 auto; min-height: 44px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: 99px;
  background: var(--surface-soft); color: var(--text-soft);
  font-size: 13px; font-weight: 700; cursor: pointer;
}
.quick-link:hover { border-color: var(--line-strong); color: var(--text); }
.hero-stats { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 26px; }
.hero-stat {
  padding: 14px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface) 58%, transparent);
}
.hero-stat strong { display: block; font-size: 22px; letter-spacing: -.03em; font-weight: 800; }
.hero-stat span { display: block; margin-top: 2px; color: var(--text-muted); font-size: 12px; font-weight: 650; }

/* --- start-card aside ------------------------------------------------------ */
.start-card { padding: 20px; background: var(--surface); display: flex; flex-direction: column; }
.start-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.start-kicker {
  color: var(--teal); font-size: 12px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
}
.start-head h2 { margin: 5px 0 0; font-size: 25px; line-height: 1.16; letter-spacing: -.035em; font-weight: 800; }
.verified-chip {
  display: none;
  min-height: 31px; align-items: center; gap: 7px; padding: 0 10px;
  border-radius: 99px; background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 800; white-space: nowrap;
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 12%, transparent);
}
.goal-tabs {
  display: grid; grid-template-columns: 1fr; gap: 6px;
  margin: 20px 0 16px; padding: 5px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2);
}
.goal-tab {
  min-height: 44px; display: grid; place-items: center;
  border-radius: var(--radius-xs); color: var(--text-muted);
  font-size: 13px; font-weight: 800; text-align: center;
}
.goal-tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-soft); }
.recommend {
  padding: 20px; border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(130deg, var(--accent-soft), transparent 65%), var(--surface-2);
}
.recommend-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.recommend-domain {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--accent); font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
}
.recommend-time { color: var(--text-muted); font-size: 12px; font-weight: 700; }
.recommend h3 { margin: 11px 0 8px; font-size: 23px; line-height: 1.2; letter-spacing: -.028em; font-weight: 800; }
.recommend p { margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.55; }
.recommend-actions { display: grid; gap: 9px; margin-top: 18px; }
.btn {
  min-height: 47px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 15px; border: 1px solid var(--line); border-radius: 13px;
  background: var(--surface); font-size: 14px; font-weight: 700; cursor: pointer;
}
.btn.primary {
  border: 0;
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  color: var(--accent-ink); font-weight: 800;
}
.mini-loop { margin-top: 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.loop-step {
  position: relative; padding: 13px 10px;
  border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft);
}
.loop-step span { display: block; color: var(--accent); font-size: 11px; font-weight: 800; }
.loop-step strong { display: block; margin-top: 3px; font-size: 12px; font-weight: 700; }
.start-benefits { display: grid; gap: 8px; margin-top: 16px; }
.start-benefit {
  display: grid; grid-template-columns: 35px 1fr; gap: 11px; align-items: center;
  padding: 10px 11px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft);
}
.start-benefit-icon {
  width: 35px; height: 35px; border-radius: var(--radius-xs);
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--teal) 12%, transparent); color: var(--teal);
  font-size: 12px; font-weight: 800;
}
.start-benefit:nth-child(2) .start-benefit-icon { background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--warn); }
.start-benefit:nth-child(3) .start-benefit-icon { background: color-mix(in srgb, var(--blue) 12%, transparent); color: var(--blue); }
.start-benefit strong { display: block; font-size: 13px; font-weight: 700; }
.start-benefit small { display: block; color: var(--text-muted); font-size: 11px; line-height: 1.35; }
.start-note {
  margin-top: auto; padding-top: 16px;
  color: var(--text-muted); font-size: 12px; line-height: 1.45;
  display: flex; gap: 8px; align-items: flex-start;
}
.start-note svg { flex: 0 0 auto; color: var(--accent); margin-top: 2px; }

/* ============================================================================
   Section scaffolding
   ============================================================================ */
.section { margin-top: 58px; }
.section-head { margin-bottom: 18px; }
.section-copy { max-width: 820px; }
.section-kicker {
  color: var(--accent); font-size: 13px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 7px;
}
.section-head h2 {
  margin: 0; font-size: clamp(30px, 4vw, 50px);
  line-height: 1.06; letter-spacing: -.04em; font-weight: 800; text-wrap: balance;
}
.section-head p { margin: 12px 0 0; color: var(--text-soft); font-size: 16px; line-height: 1.55; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 13px;
  color: var(--accent); font-size: 14px; font-weight: 800; white-space: nowrap;
}

/* ============================================================================
   Section 2 — intent cards
   ============================================================================ */
.intent-grid { display: grid; grid-template-columns: 1fr; gap: 13px; }
.intent-card {
  min-height: 198px; padding: 22px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-soft); position: relative; overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.intent-card:hover { transform: translateY(-3px); border-color: var(--line-strong); background: var(--surface); }
.intent-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.intent-card:nth-child(2) .intent-icon { background: color-mix(in srgb, var(--teal) 12%, transparent); color: var(--teal); }
.intent-card:nth-child(3) .intent-icon { background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--warn); }
.intent-card:nth-child(4) .intent-icon { background: color-mix(in srgb, var(--blue) 12%, transparent); color: var(--blue); }
.intent-card h3 { margin: 17px 0 7px; font-size: 21px; line-height: 1.2; letter-spacing: -.025em; font-weight: 800; }
.intent-card p { margin: 0 0 38px; color: var(--text-soft); font-size: 14px; line-height: 1.52; }
.intent-link {
  position: absolute; left: 22px; right: 22px; bottom: 20px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-muted); font-size: 13px; font-weight: 700;
}
.intent-card:hover .intent-link { color: var(--accent); }

/* ============================================================================
   Section 3 — featured path panel (feature-main + stack)
   ============================================================================ */
.featured-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.feature-main, .feature-side {
  border: 1px solid var(--line); border-radius: 22px;
  overflow: hidden; background: var(--surface-soft);
}
.feature-main {
  padding: 21px; position: relative;
  display: grid; grid-template-columns: 1fr; gap: 22px;
}
.feature-main::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(130deg, var(--accent-soft), transparent 48%);
  pointer-events: none;
}
.feature-copy { position: relative; z-index: 1; display: flex; flex-direction: column; }
.card-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  color: var(--text-muted); font-size: 12px; font-weight: 700;
}
.domain-tag {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); text-transform: uppercase; letter-spacing: .08em; font-weight: 800;
}
.feature-main h3 {
  max-width: 690px; margin: 18px 0 12px;
  font-size: clamp(28px, 3.2vw, 45px); line-height: 1.06; letter-spacing: -.04em; font-weight: 800;
  text-wrap: balance;
}
.feature-main p { margin: 0; color: var(--text-soft); font-size: 16px; line-height: 1.6; max-width: 700px; }
.concept-chain { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.concept-chip {
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 99px;
  color: var(--text-soft); background: var(--surface-soft); font-size: 12px; font-weight: 700;
}
.feature-actions { margin-top: auto; padding-top: 22px; display: grid; gap: 10px; }
.feature-actions .btn { min-height: 50px; }

/* featured visual aside — the one figure-bearing panel on this surface */
.visual-card {
  position: relative; z-index: 1; align-self: stretch;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  display: grid; align-content: center; gap: 14px;
}
.visual-title {
  font-size: 12px; color: var(--text-muted); font-weight: 800;
  text-transform: uppercase; letter-spacing: .09em;
}
.material { display: grid; grid-template-columns: 70px 1fr; gap: 10px; align-items: center; }
.material span { color: var(--text-soft); font-size: 12px; font-weight: 700; }
.bar { height: 13px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.fill { height: 100%; border-radius: inherit; }
.fill.cement { width: 23%; background: var(--accent-fill); }
.fill.water { width: 42%; background: var(--blue); }
.fill.sand { width: 66%; background: var(--warn); }
.fill.stone { width: 92%; background: var(--teal); }
.visual-total {
  display: flex; justify-content: space-between; align-items: end; gap: 10px;
  padding-top: 14px; border-top: 1px solid var(--line);
}
.visual-total span { color: var(--text-muted); font-size: 12px; font-weight: 700; }
.visual-total strong {
  font-size: 24px; letter-spacing: 0; font-weight: 700;
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
}
.visual-total.is-pre-intent { border-top: 0; padding-top: 4px; }
.visual-total .status-chip {
  min-height: 24px; display: inline-flex; align-items: center; gap: 6px;
  margin-left: auto; padding: 0 9px; border-radius: 99px;
  background: color-mix(in srgb, var(--teal) 12%, transparent); color: var(--teal);
  font-size: 11px; font-weight: 800;
}
.visual-caption { color: var(--text-muted); font-size: 11px; line-height: 1.45; }

.feature-stack { display: grid; grid-template-columns: 1fr; gap: 12px; }
.feature-side {
  min-height: 220px; padding: 24px;
  display: flex; flex-direction: column;
  transition: transform .2s, border-color .2s;
}
.feature-side:hover { transform: translateY(-2px); border-color: var(--line-strong); background: var(--surface); }
.feature-side.energy { background: linear-gradient(130deg, color-mix(in srgb, var(--teal) 12%, transparent), transparent 70%), var(--surface-soft); }
.feature-side.energy .domain-tag { color: var(--teal); }
.feature-side.finance { background: linear-gradient(130deg, color-mix(in srgb, var(--blue) 12%, transparent), transparent 70%), var(--surface-soft); }
.feature-side.finance .domain-tag { color: var(--blue); }
.feature-side h3 { margin: 14px 0 8px; font-size: 23px; line-height: 1.2; letter-spacing: -.03em; font-weight: 800; }
.feature-side p { margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.53; }
.feature-footer {
  margin-top: auto; padding-top: 16px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-muted); font-size: 12px; font-weight: 700;
}
.feature-side:hover .feature-footer { color: var(--accent); }

/* ============================================================================
   Section 4 — guided-path panels
   ============================================================================ */
.paths-panel {
  border: 1px solid var(--line); border-radius: 22px;
  background: var(--surface-soft); padding: 16px;
}
.path-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
.path-tabs::-webkit-scrollbar { display: none; }
.path-tab {
  flex: 0 0 auto; min-height: 45px; display: inline-flex; align-items: center;
  padding: 0 15px; border: 1px solid var(--line); border-radius: 13px;
  background: var(--surface); color: var(--text-muted); font-weight: 800;
}
.path-tab.active {
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  background: var(--accent-soft); color: var(--accent);
}
.path-body {
  display: grid; grid-template-columns: 1fr; gap: 20px;
  margin-top: 24px; scroll-margin-top: calc(var(--header-h) + 20px);
}
.path-body + .path-body { padding-top: 24px; border-top: 1px solid var(--line); }
.path-summary { padding: 22px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); }
.path-letter {
  width: 48px; height: 48px; border-radius: 15px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  font-size: 20px; font-weight: 800;
}
.path-summary h3 { margin: 16px 0 7px; font-size: 26px; line-height: 1.15; letter-spacing: -.035em; font-weight: 800; }
.path-summary p { margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.55; }
.path-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.path-meta span {
  padding: 6px 9px; border-radius: 99px; background: var(--surface-2);
  color: var(--text-muted); font-size: 11px; font-weight: 800;
}
.path-summary .btn { width: 100%; margin-top: 19px; }
.path-lessons { display: grid; gap: 9px; align-content: start; }
.path-lesson {
  display: grid; grid-template-columns: 38px 1fr auto; gap: 13px; align-items: center;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface);
  transition: transform .2s, border-color .2s;
}
.path-lesson:hover { border-color: var(--line-strong); transform: translateX(2px); }
.lesson-no {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--accent);
  font-size: 11px; font-weight: 800;
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
}
.path-lesson strong { display: block; font-size: 15px; line-height: 1.28; font-weight: 700; }
.path-lesson .lesson-sub { display: block; margin-top: 3px; color: var(--text-muted); font-size: 11px; font-weight: 650; }
.path-arrow { color: var(--text-muted); }
.path-lesson:hover .path-arrow { color: var(--accent); }

/* ============================================================================
   Section 5 — the Atlas learning loop band
   ============================================================================ */
.loop-band {
  display: grid; grid-template-columns: 1fr; gap: 22px;
  padding: 22px; border: 1px solid var(--line); border-radius: 22px;
  background: linear-gradient(125deg, color-mix(in srgb, var(--teal) 12%, transparent), transparent 60%), var(--surface);
}
.loop-copy h2 { margin: 4px 0 10px; font-size: clamp(28px, 3vw, 36px); line-height: 1.1; letter-spacing: -.04em; font-weight: 800; }
.loop-copy p { margin: 0; max-width: 620px; color: var(--text-soft); font-size: 16px; }
.loop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.loop-item { padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-soft); }
.loop-item span { display: block; color: var(--accent); font-size: 11px; font-weight: 800; }
.loop-item strong { display: block; margin-top: 7px; font-size: 14px; font-weight: 700; }
.loop-item small { display: block; margin-top: 4px; color: var(--text-muted); font-size: 11px; line-height: 1.4; }

/* ============================================================================
   Section 6 — explore by domain
   ============================================================================ */
.domains-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.domain-card {
  min-height: 225px; padding: 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-soft); display: flex; flex-direction: column;
  transition: transform .2s, border-color .2s;
}
.domain-card:hover { transform: translateY(-3px); border-color: var(--line-strong); background: var(--surface); }
.domain-head { display: flex; align-items: center; justify-content: space-between; }
.domain-icon { width: 46px; height: 46px; border-radius: var(--radius-sm); display: grid; place-items: center; }
.domain-card.construction .domain-icon { background: color-mix(in srgb, var(--teal) 13%, transparent); color: var(--teal); }
.domain-card.finance .domain-icon { background: color-mix(in srgb, var(--blue) 13%, transparent); color: var(--blue); }
.domain-card.energy .domain-icon { background: color-mix(in srgb, var(--warn) 13%, transparent); color: var(--warn); }
.domain-count { color: var(--text-muted); font-size: 12px; font-weight: 800; }
.domain-card h3 { margin: 18px 0 7px; font-size: 25px; letter-spacing: -.035em; font-weight: 800; }
.domain-card p { margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.55; }
.domain-footer {
  margin-top: auto; padding-top: 18px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-muted); font-size: 13px; font-weight: 700;
}
.domain-card.construction:hover .domain-footer { color: var(--teal); }
.domain-card.finance:hover .domain-footer { color: var(--blue); }
.domain-card.energy:hover .domain-footer { color: var(--warn); }

/* ============================================================================
   Section 7 — learning library (sticky toolbar + build-rendered static grid)
   ============================================================================ */
.library-shell { border: 1px solid var(--line); border-radius: 22px; background: var(--surface-soft); }
.library-toolbar {
  /* Red-line 5: sticky sub-bar = SOLID var(--bg-elevated), no backdrop-filter. */
  position: sticky; top: var(--header-h); z-index: 30;
  padding: 12px; border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: 22px 22px 0 0;
}
.library-top { display: grid; grid-template-columns: 1fr; gap: 10px; }
.library-search {
  display: flex; align-items: center; gap: 11px;
  height: 52px; padding: 0 15px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface);
}
.library-search svg { color: var(--text-muted); flex: 0 0 auto; }
.library-search input {
  width: 100%; border: 0; background: transparent; color: var(--text);
  outline: none; font-size: 16px; font-weight: 700; min-width: 0;
}
.library-search input::placeholder { color: var(--text-muted); font-weight: 400; }
.library-count {
  min-height: 44px; display: grid; place-items: center; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  color: var(--text-soft); font-size: 13px; font-weight: 800;
}
.filter-row { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; padding-bottom: 2px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip {
  flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center;
  padding: 0 13px; border: 1px solid var(--line); border-radius: 99px;
  background: var(--surface); color: var(--text-muted); font-size: 13px; font-weight: 700;
}
.filter-chip:hover { border-color: var(--line-strong); color: var(--text); }
.filter-chip.active {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
  color: var(--accent);
}
.library-group { padding: 14px 12px 4px; scroll-margin-top: calc(var(--header-h) + 150px); }
.library-group:last-of-type { padding-bottom: 16px; }
.group-label {
  margin: 0 4px 10px; color: var(--text-muted);
  font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
}
.lesson-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.lesson-card {
  min-height: 202px; padding: 19px;
  border: 1px solid var(--line); border-radius: 17px; background: var(--surface);
  display: flex; flex-direction: column;
  transition: transform .2s, border-color .2s;
}
.lesson-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-soft); }
.lesson-domain { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.domain-small {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
}
.domain-small.construction { color: var(--teal); }
.domain-small.finance { color: var(--blue); }
.domain-small.energy { color: var(--warn); }
.domain-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.verified { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-size: 11px; font-weight: 800; }
.lesson-card h3 { margin: 15px 0 8px; font-size: 18px; line-height: 1.3; letter-spacing: -.024em; font-weight: 800; }
.lesson-card p { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.lesson-bottom {
  margin-top: auto; padding-top: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  color: var(--text-muted); font-size: 11px; font-weight: 700;
}
.lesson-bottom .open { display: inline-flex; align-items: center; gap: 6px; color: var(--text-soft); font-size: 12px; }
.lesson-card:hover .open { color: var(--accent); }
.library-shell > .oracle-note { padding: 0 16px 16px; margin: 0; }

/* ============================================================================
   Section 8 — apps banner
   ============================================================================ */
.apps-banner {
  margin-top: 58px;
  display: grid; grid-template-columns: 1fr; gap: 22px; align-items: center;
  padding: 22px; border: 1px solid var(--line); border-radius: 22px;
  background: linear-gradient(120deg, var(--accent-soft), transparent 55%), var(--surface);
}
.apps-banner h2 { margin: 5px 0 9px; font-size: clamp(26px, 2.8vw, 34px); line-height: 1.12; letter-spacing: -.04em; font-weight: 800; }
.apps-banner p { margin: 0; max-width: 770px; color: var(--text-soft); font-size: 15px; }
.apps-actions { display: grid; gap: 10px; }

/* ============================================================================
   Shared shell — footer
   ============================================================================ */










/* ============================================================================
   Shared shell — mobile bottom nav (fixed rounded island, solid, no blur)
   ============================================================================ */





/* ============================================================================
   >=720 — two-column moments, wider frame
   ============================================================================ */
@media (min-width: 720px) {
  body { font-size: 17px; }
  
  
  
  
  
  .hero-main { padding: 32px; border-radius: var(--radius-lg); }
  .start-card { padding: 25px; border-radius: var(--radius-lg); }
  .start-head h2 { font-size: 29px; }
  .verified-chip { display: inline-flex; }
  .goal-tabs { grid-template-columns: repeat(3, 1fr); }
  .recommend-actions { display: flex; }
  .search-shell { grid-template-columns: 1fr auto; }
  .search-shell input { height: 54px; font-size: 18px; }
  .find-btn { min-width: 110px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .mini-loop { grid-template-columns: repeat(4, 1fr); }
  .loop-step:not(:last-child)::after {
    content: ""; position: absolute; right: -8px; top: 50%;
    width: 8px; height: 1px; background: var(--line-strong);
  }
  .section { margin-top: 78px; }
  .section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 23px; }
  .section-head p { font-size: 17px; }
  .text-link { margin-top: 0; }
  .intent-grid { grid-template-columns: repeat(2, 1fr); }
  .intent-card { min-height: 215px; }
  .featured-grid { gap: 16px; }
  .feature-main { padding: 30px; border-radius: var(--radius-lg); grid-template-columns: minmax(0, 1fr) 310px; gap: 26px; }
  .feature-actions { display: flex; align-items: center; }
  .feature-stack { grid-template-columns: 1fr 1fr; gap: 16px; }
  .feature-side { min-height: 230px; }
  .paths-panel { padding: 24px; border-radius: var(--radius-lg); }
  .path-summary { min-width: 0; }
  .loop-band { padding: 30px; border-radius: var(--radius-lg); }
  .loop-grid { grid-template-columns: repeat(4, 1fr); }
  .domains-grid { grid-template-columns: repeat(2, 1fr); }
  .domain-card { min-height: 250px; }
  .library-shell, .library-toolbar { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .library-shell { border-radius: var(--radius-lg); }
  .library-toolbar { padding: 18px; }
  .library-top { grid-template-columns: 1fr auto; }
  .library-count { min-width: 130px; }
  .library-group { padding: 18px 18px 6px; }
  .lesson-grid { grid-template-columns: repeat(2, 1fr); }
  .lesson-card { min-height: 214px; }
  .lesson-card h3 { font-size: 19px; }
  .apps-banner { margin-top: 78px; padding: 30px; border-radius: var(--radius-lg); }
  .apps-actions { display: flex; flex-wrap: wrap; }
  
  
  
}

/* ============================================================================
   >=1080 — full desktop geometry; primary nav in, bottom nav out
   ============================================================================ */
@media (min-width: 1080px) {
  
  
  
  
  
  
  .hero { grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr); gap: 24px; }
  .hero-main { padding: 44px; min-height: 562px; }
  .start-card { min-height: 562px; }
  .intent-grid { grid-template-columns: repeat(4, 1fr); }
  .featured-grid { grid-template-columns: minmax(0, 1.4fr) minmax(340px, .6fr); }
  .feature-main { min-height: 490px; }
  .feature-stack { grid-template-columns: 1fr; }
  .feature-side { min-height: 237px; }
  .path-body { grid-template-columns: 310px 1fr; gap: 30px; }
  .loop-band { grid-template-columns: 1.05fr .95fr; gap: 24px; }
  .domains-grid { grid-template-columns: repeat(3, 1fr); }
  .lesson-grid { grid-template-columns: repeat(3, 1fr); }
  .apps-banner { grid-template-columns: 1fr auto; gap: 26px; }
  .apps-actions { justify-content: flex-end; }
  
  
}

/* ============================================================================
   >=1360 — wide polish only
   ============================================================================ */
@media (min-width: 1360px) {
  .hero-main { padding: 48px 52px; }
  .feature-main { padding: 34px; }
}

/* ============================================================================
   Reduced motion
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .intent-card:hover, .feature-side:hover, .path-lesson:hover,
  .domain-card:hover, .lesson-card:hover { transform: none; }
}
