/* Landing layout. Colors, fonts and radii are shared with the chart in theme.css. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--panel);
  color: var(--text);
  font: 15px/1.6 var(--f-ui);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:disabled { cursor: default; }
img, svg { display: block; max-width: 100%; }
figure, p { margin: 0; }
button[hidden], [role="tabpanel"][hidden] { display: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { color: var(--accent); background: var(--accent-soft); }
.container { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.section-border { border-top: 1px solid var(--rule); }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 20; padding: 10px 16px; color: var(--on-primary); background: var(--primary); border-radius: var(--radius); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

/* Quiet navigation, with the chart always one click away. */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--glass); border-bottom: 1px solid var(--rule); backdrop-filter: blur(16px); }
.header-inner { min-height: 84px; display: flex; align-items: center; gap: 32px; justify-content: space-between; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; line-height: 1.2; letter-spacing: -.045em; }
.brand-symbol { width: 30px; height: 30px; stroke: var(--accent); stroke-width: 1.35; flex-shrink: 0; }
.site-nav { display: flex; gap: 28px; margin-left: auto; font-size: 12px; color: var(--muted); }
.site-nav a:hover, .text-link:hover { color: var(--accent); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 24px; min-height: 48px; padding: 12px 20px; border: 1px solid transparent; border-radius: var(--radius); background: var(--primary); color: var(--on-primary); font-size: 13px; font-weight: 500; line-height: 1.4; }
.button:hover { background: #3e453f; }
.button-small { min-height: 38px; padding: 8px 14px; gap: 14px; font-size: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 500; }
.text-link span { font-size: 16px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 11px; font-weight: 500; letter-spacing: .02em; }
.status-dot { display: inline-block; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* The actual chart imagery anchors the hero. */
.hero { padding-top: 84px; }
.hero-copy { max-width: 760px; margin: 0 auto; text-align: center; }
.hero .eyebrow { justify-content: center; }
h1 { margin: 24px 0; font-size: clamp(46px, 6.4vw, 80px); font-weight: 500; line-height: 1.06; letter-spacing: -.065em; }
h1 span { color: #777e77; }
.hero-description { max-width: 520px; margin-inline: auto; color: var(--muted); font-size: 16px; line-height: 1.8; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 24px; margin-top: 30px; }
.hero-note { margin-top: 16px; color: var(--muted); font-size: 10px; }
.product-figure { margin-top: 58px; }
.product-preview { overflow: hidden; border: 1px solid var(--rule); border-radius: 16px; box-shadow: 0 20px 64px rgba(31, 46, 37, .08), 0 2px 8px rgba(31, 46, 37, .04); }
.preview-topbar { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; background: var(--field); border-bottom: 1px solid var(--rule); color: var(--muted); font-size: 10px; }
.preview-title { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; }
.preview-divider { padding: 0 8px; color: var(--rule-hover); }
.preview-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.preview-chart { position: relative; min-width: 0; min-height: 414px; overflow: hidden; background: #9cc2d2; }
.preview-chart > svg { width: 100%; height: 100%; position: absolute; inset: 0; }
.map-caption { position: absolute; bottom: 18px; left: 18px; padding: 8px 12px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 7px; background: var(--glass); color: var(--text); font-size: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); }
.preview-notebook { padding: 20px; border-left: 1px solid var(--rule); background: var(--panel); }
.preview-tabs { display: flex; gap: 4px; padding: 3px; margin-bottom: 26px; border: 1px solid var(--rule); border-radius: 8px; background: var(--panel2); }
.preview-tabs button { display: flex; align-items: center; justify-content: center; gap: 5px; flex: 1; min-height: 32px; padding: 5px; border: 0; border-radius: 5px; background: none; color: var(--muted); font-size: 10px; }
.preview-tabs button[aria-selected="true"] { background: var(--panel); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .05); }
.preview-tabs button span { padding: 0 4px; border-radius: 3px; background: var(--accent-soft); color: var(--accent); font-size: 9px; }
.preview-kicker { color: var(--accent); font-size: 10px; }
.preview-notebook h2 { margin: 8px 0 10px; font-size: 23px; font-weight: 500; letter-spacing: -.04em; line-height: 1.2; }
.preview-notebook p { color: var(--muted); font-size: 11px; line-height: 1.75; }
.preview-checklist { display: grid; gap: 12px; margin: 20px 0; padding: 0; list-style: none; font-size: 10px; color: var(--muted); }
.preview-checklist li { display: flex; align-items: center; gap: 8px; }
.preview-checklist li > span { display: grid; place-items: center; flex: 0 0 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 9px; }
.preview-checklist .current { color: var(--text); }
.preview-checklist .current > span { background: var(--primary); color: var(--on-primary); }
.preview-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 11px; font-weight: 500; }
.preview-link:hover { color: var(--accent); }
.preview-exam-list { display: grid; margin: 18px 0; gap: 8px; }
.preview-exam-list > span { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: var(--radius-sm); font-size: 11px; }
.preview-exam-list strong { color: var(--muted); font-size: 10px; font-weight: 400; }
figcaption { margin-top: 12px; text-align: center; font-size: 10px; color: var(--muted); }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 46px 0 0; padding: 0 0 64px; }
.hero-facts > div { padding-left: 24px; border-left: 1px solid var(--rule); }
.hero-facts dt { font-size: 27px; line-height: 1.3; letter-spacing: -.04em; }
.hero-facts dd { margin: 6px 0 0; font-size: 11px; color: var(--muted); }

/* Three distinct learning paths, rather than a long mixed feature list. */
.practice-section { padding: 96px 0; background: var(--bg); }
.practice-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 100px; }
.section-heading h2 { margin: 18px 0 24px; font-size: clamp(30px, 3.5vw, 43px); font-weight: 500; line-height: 1.16; letter-spacing: -.055em; text-wrap: balance; }
.section-heading > p:not(.eyebrow) { max-width: 390px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.practice-paths { display: grid; }
.practice-path { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 16px; padding: 28px 0; border-top: 1px solid var(--rule); }
.practice-path:first-child { padding-top: 0; border-top: 0; }
.practice-path:last-child { padding-bottom: 0; }
.path-number { padding-top: 2px; font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.path-label { font-size: 10px; color: var(--accent); }
.practice-path h3 { margin: 6px 0 10px; font-size: 20px; font-weight: 500; line-height: 1.4; letter-spacing: -.035em; }
.practice-path p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.practice-path .text-link { margin-top: 16px; }

/* A small, working example makes the guided flow concrete. */
.how-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 100px; padding-block: 104px; }
.how-heading .text-link { margin-top: 26px; }
.guide-demo { padding: 26px; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--field); }
.demo-topline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 10px; color: var(--muted); }
.demo-topline > span:first-child { color: var(--text); font-weight: 500; }
.demo-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.demo-tabs button { padding: 8px 0; border: 0; border-bottom: 2px solid var(--rule); background: none; color: var(--muted); font-size: 10px; text-align: left; }
.demo-tabs button[aria-selected="true"] { color: var(--accent); border-color: var(--accent); }
.demo-label { margin-top: 26px; color: var(--muted); font-size: 10px; }
.demo-equation { display: flex; flex-wrap: wrap; align-items: baseline; gap: 9px; margin: 18px 0; font-size: 14px; }
.demo-equation strong { font-size: 30px; font-weight: 500; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.demo-equation > span { color: var(--muted); padding: 0 5px; }
#demo-panel { min-height: 240px; }
#demo-description { min-height: 63px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.demo-feedback { padding: 12px; margin-top: 18px; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--panel); font-size: 11px; line-height: 1.7; }
.demo-feedback.is-correct { border-color: transparent; background: var(--ok-soft); color: var(--ok); }
.demo-next { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 38px; padding: 10px 0 0; margin-top: 18px; border: 0; border-top: 1px solid var(--rule); background: none; color: var(--accent); font-size: 11px; font-weight: 500; }

/* The simulator gets a real chart example and its own place in the story. */
.simulator-section { padding-block: 96px; background: var(--bg); }
.simulator-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 100px; margin-bottom: 40px; }
.simulator-heading h2 { margin-bottom: 0; }
.simulator-copy > p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.simulator-copy .text-link { margin-top: 20px; }
.simulator-frame { overflow: hidden; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--panel); }
.simulator-toolbar { min-height: 46px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; font-size: 10px; }
.simulator-toolbar > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.simulator-toolbar > span:last-child { color: var(--muted); }
.simulator-frame > svg { width: 100%; aspect-ratio: 2.1; }
.tool-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; margin-top: 40px; }
.tool-notes h3 { font-size: 15px; font-weight: 500; letter-spacing: -.025em; }
.tool-notes p { color: var(--muted); font-size: 12px; line-height: 1.8; }

/* Details stay native, accessible and useful without JavaScript. */
.faq-section { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 100px; padding-block: 104px; }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list details:first-child { border-top: 1px solid var(--rule); }
.faq-list summary { position: relative; list-style: none; padding: 22px 28px 22px 0; cursor: pointer; font-size: 13px; font-weight: 500; line-height: 1.5; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; top: 20px; right: 0; content: "+"; font-size: 18px; font-weight: 400; color: var(--muted); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 24px 24px 0; color: var(--muted); font-size: 12px; line-height: 1.85; }
.closing-section { padding-block: 84px; background: var(--field); }
.closing-inner { text-align: center; }
.closing-inner .eyebrow { justify-content: center; }
.closing-inner h2 { margin: 20px 0 28px; font-size: clamp(36px, 4.8vw, 58px); font-weight: 500; letter-spacing: -.06em; line-height: 1.12; }
.closing-inner > p:last-child { margin-top: 16px; font-size: 11px; color: var(--muted); }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 30px; }
.site-footer .site-brand { font-size: 14px; }
.site-footer > p { font-size: 10px; line-height: 1.7; color: var(--muted); }
.site-footer .text-link { font-size: 10px; }

@media (max-width: 1000px) {
  .container { width: calc(100% - 48px); }
  .header-inner { gap: 24px; }
  .site-nav { gap: 18px; }
  .practice-layout, .how-section, .simulator-heading, .faq-section { gap: 48px; }
  .tool-notes { gap: 48px; }
  .preview-workspace { grid-template-columns: minmax(0, 1fr) 270px; }
  .preview-notebook { padding: 18px; }
}

@media (max-width: 760px) {
  .site-nav { display: none; }
  .header-inner { min-height: 70px; }
  .site-brand { font-size: 16px; }
  .hero { padding-top: 58px; }
  h1 { font-size: clamp(40px, 7vw, 58px); }
  .hero-description { max-width: 440px; font-size: 14px; }
  .product-figure { margin-top: 40px; }
  .preview-workspace { grid-template-columns: minmax(0, 1fr) 240px; }
  .preview-chart { min-height: 410px; }
  .preview-topbar > span:last-child { display: none; }
  .hero-facts { gap: 18px; padding-bottom: 48px; }
  .hero-facts > div { padding-left: 14px; }
  .hero-facts dt { font-size: 23px; }
  .hero-facts dd { font-size: 10px; }
  .practice-section, .simulator-section { padding-block: 64px; }
  .practice-layout, .how-section, .simulator-heading, .faq-section { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .how-section, .faq-section { padding-block: 64px; }
  .section-heading h2 { max-width: 480px; font-size: 35px; }
  .section-heading > p:not(.eyebrow) { max-width: 500px; }
  .how-heading .text-link { margin-top: 18px; }
  .practice-paths { max-width: 560px; }
  .guide-demo { max-width: 560px; }
  .simulator-heading { gap: 24px; }
  .simulator-copy { max-width: 500px; }
  .tool-notes { gap: 30px; }
  .simulator-frame > svg { aspect-ratio: 1.7; }
  .site-footer { gap: 18px; }
}

@media (max-width: 520px) {
  .container { width: calc(100% - 36px); }
  .header-inner { gap: 12px; min-height: 66px; }
  .site-brand { font-size: 14px; gap: 7px; }
  .brand-symbol { width: 24px; height: 24px; }
  .button-small { font-size: 10px; padding: 8px 10px; gap: 8px; }
  .hero { padding-top: 44px; }
  h1 { font-size: clamp(36px, 9vw, 48px); margin: 20px -6px; }
  .hero-description { font-size: 13px; }
  .hero-actions { flex-direction: column; gap: 18px; }
  .hero-note { font-size: 9px; }
  .product-preview { border-radius: 12px; }
  .preview-topbar { min-height: 40px; padding: 10px 14px; }
  .preview-workspace { grid-template-columns: minmax(0, 1fr); }
  .preview-chart { min-height: 225px; }
  .map-caption { bottom: 12px; left: 12px; font-size: 9px; }
  .preview-notebook { border-top: 1px solid var(--rule); border-left: 0; padding: 18px; }
  .preview-tabs { margin-bottom: 18px; }
  .preview-notebook h2 { font-size: 22px; }
  .preview-checklist { margin: 16px 0; gap: 8px; }
  .preview-notebook p { font-size: 12px; }
  .preview-exam-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  figcaption { font-size: 9px; line-height: 1.7; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
  .hero-facts > div:last-child { grid-column: 1 / -1; }
  .hero-facts dt { font-size: 23px; }
  .hero-facts > div:last-child dt { font-size: 18px; }
  .hero-facts dd { font-size: 11px; }
  .section-heading h2 { font-size: 31px; margin-block: 14px 20px; }
  .practice-path { gap: 10px; grid-template-columns: 22px minmax(0, 1fr); }
  .practice-path h3 { font-size: 19px; }
  .guide-demo { padding: 18px; }
  .demo-equation { gap: 7px; font-size: 12px; }
  .demo-equation strong { font-size: 26px; }
  .demo-tabs { gap: 6px; }
  .demo-tabs button { font-size: 9px; }
  #demo-panel { min-height: 250px; }
  .simulator-toolbar { padding: 12px; }
  .simulator-toolbar > span:last-child { display: none; }
  .simulator-frame > svg { aspect-ratio: 1.3; }
  .tool-notes { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 24px; }
  .tool-notes h3 { margin-bottom: 8px; }
  .closing-section { padding-block: 64px; }
  .closing-inner h2 { font-size: 36px; }
  .site-footer > p { flex-basis: 100%; order: 3; }
  .site-footer { padding-block: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .button, .text-link, button { transition: background-color .15s, color .15s, border-color .15s; }
}
