/* Night Session: the Ski Bum Trading design system.
   Graphite where the chart lives, white where you read and choose, and one
   blue that marks the level that matters and the way in: Ice on dark,
   Deep on white. Host Grotesk for words, Fragment Mono for numbers only. */

:root {
  --night: #0A0D12; --graphite: #11151C; --slate: #171C25; --line-d: #1A202A; --rule-d: #232A35;
  --steel: #667085; --ash: #8C96A6; --mist: #B4BDCA; --frost: #ECEFF4;
  --ice: #7CC8FF; --ice-hi: #A8DAFF;
  --white: #FFFFFF; --powder: #F5F7FA; --haze: #E4E8EE; --soft: #EEF1F4;
  --shale: #5B6474; --granite: #3A4250; --ink: #0A0D12;
  --deep: #1F6FC2; --deep-hi: #185A9E; --tint: #EEF5FC;
  --trail-green: #1A9A4B; --trail-blue: #1F4FE0;
  --sans: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --display: "Instrument Serif", Georgia, serif;
  --mono: "Fragment Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r-sm: 6px; --r: 8px; --r-lg: 14px;
  --gut: 32px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
@media (max-width: 640px) { :root { --gut: 20px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--night); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
main { background: var(--white); }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, h4, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: rgb(124 200 255 / .35); }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 4px; }
.band-light :focus-visible, .band-powder :focus-visible { outline-color: var(--deep); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; padding: 10px 14px; background: var(--ice); color: var(--night); border-radius: var(--r-sm); }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 820px; }
.stack-sm > * + * { margin-top: 10px; }
.stack-md > * + * { margin-top: 20px; }
.stack-lg > * + * { margin-top: 28px; }
.stack-xl > * + * { margin-top: 48px; }
.center { text-align: center; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 64px; align-items: center; }
.split-end { align-items: end; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.actions-end { justify-content: flex-end; }
@media (max-width: 900px) { .actions-end { justify-content: flex-start; } }

.band-dark { background: var(--night); color: var(--frost); }
.band-light { background: var(--white); color: var(--ink); }
.band-powder { background: var(--powder); color: var(--ink); }
.sec { padding: 120px 0; }
.sec-sm { padding: 80px 0; }
.sec-top-rule { border-top: 1px solid var(--haze); padding-top: 96px; }
@media (max-width: 640px) { .sec { padding: 80px 0; } .sec-sm { padding: 56px 0; } }

/* ---------- type ---------- */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--shale); }
.band-dark .eyebrow { color: var(--ash); }
.h1 { font-size: clamp(42px, 6vw, 68px); line-height: 1; font-weight: 500; letter-spacing: -.04em; }
.h1-xl { font-size: clamp(46px, 7.2vw, 80px); line-height: .98; }
.h1-md { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.04; letter-spacing: -.035em; }
.h2 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.04; font-weight: 500; letter-spacing: -.035em; }
.h2-sm { font-size: 32px; }
.h3 { display: block; font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.h4 { display: block; font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.lead { font-size: 19px; line-height: 1.55; color: var(--granite); max-width: 600px; }
.band-dark .lead { color: var(--mist); }
.muted { color: var(--shale); }
.band-dark .muted { color: var(--ash); }
.note { font-size: 14px; color: var(--ash); }
.note-light { font-size: 14px; color: var(--shale); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.ac { color: var(--deep); }
.band-dark .ac { color: var(--ice); }
.link { color: var(--deep); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.band-dark .link { color: var(--ice); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link:hover .ic-arrow, .btn:hover .ic-arrow { transform: translateX(3px); }
.ic-arrow { transition: transform 160ms var(--ease); }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--shale); }
.meta-dark { gap: 16px; font-size: 14px; color: var(--ash); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 22px; border-radius: var(--r); border: 1px solid transparent; font: 600 16px/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 120ms, border-color 120ms, color 120ms, transform 80ms; }
.btn:active { transform: scale(.985); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 15px; border-radius: var(--r-sm); }
.btn-lg { height: 56px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }
.btn-ice { background: var(--ice); color: var(--night); }
.btn-ice:hover { background: var(--ice-hi); }
.btn-line { border-color: var(--steel); color: var(--frost); font-weight: 500; }
.btn-line:hover { border-color: var(--mist); background: rgb(236 239 244 / .05); }
.btn-ice-line { border-color: var(--ice); color: var(--ice); }
.btn-ice-line:hover { background: rgb(124 200 255 / .1); }
.btn-deep { background: var(--deep); color: var(--white); }
.btn-deep:hover { background: var(--deep-hi); }
.btn-outline { border-color: var(--steel); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: rgb(10 13 18 / .88); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line-d); color: var(--frost); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { display: block; width: auto; }
.brand-logo { height: 44px; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 15px; }
.nav-links > a:not(.btn) { color: var(--mist); text-decoration: none; }
.nav-links > a:not(.btn):hover, .nav-links > a[aria-current] { color: var(--frost); }
.nav-rule { width: 1px; height: 20px; background: var(--rule-d); }
.nav-menu { display: none; position: relative; }
.nav-menu summary { list-style: none; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; color: var(--frost); }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-drop { position: absolute; right: 0; top: 52px; width: min(320px, calc(100vw - 2 * var(--gut))); display: flex; flex-direction: column; padding: 8px; border-radius: var(--r-lg); background: var(--graphite); border: 1px solid var(--rule-d); }
.nav-drop a:not(.btn) { padding: 14px 12px; color: var(--frost); text-decoration: none; border-radius: var(--r-sm); }
.nav-drop a:not(.btn):hover { background: var(--slate); }
.nav-drop .btn { margin: 8px 4px 4px; }
@media (max-width: 860px) { .nav-links { display: none; } .nav-menu { display: block; } .brand-logo { height: 40px; } }

/* ---------- footer ---------- */
.foot { background: var(--night); color: var(--mist); padding: 72px 0 48px; }
.foot-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.foot-logo { height: 112px; }
.foot-brand p { margin-top: 18px; color: var(--ash); font-size: 15px; }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; font-size: 15px; }
.foot-cols nav { display: flex; flex-direction: column; gap: 12px; }
.foot-cols p { font-size: 13px; color: var(--ash); }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { color: var(--frost); }
.foot-legal { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-d); font-size: 13px; color: var(--ash); }
.foot-legal p:first-child { max-width: 760px; }

/* ---------- hero ---------- */
.hero { padding: 88px 0 40px; }
.hero-sm { padding: 88px 0 72px; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 48px; align-items: end; padding-bottom: 56px; }
.hero-side .lead { max-width: 480px; }

/* ---------- the chart ---------- */
.chart-panel { border: 1px solid var(--rule-d); border-radius: var(--r-lg); background: var(--graphite); overflow: hidden; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding: 16px 24px; border-bottom: 1px solid var(--line-d); font-size: 14px; }
.chart-id { display: flex; gap: 14px; flex-wrap: wrap; align-items: baseline; color: var(--frost); }
.legend { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mist); }
.key { display: inline-block; width: 14px; height: 10px; border-radius: 2px; }
.key + * { margin-right: 10px; }
.key-pocket { background: rgb(124 200 255 / .3); border-top: 1px solid var(--ice); border-bottom: 1px solid var(--ice); }
.key-band { background: rgb(180 189 202 / .2); border-top: 1px solid var(--mist); margin-left: 8px; }
.hero-svg { width: 100%; height: auto; }
.grid path { stroke: var(--line-d); stroke-width: 1; }
.pocket { fill: var(--ice); fill-opacity: .2; }
.pocket-edge { stroke: var(--ice); stroke-width: 1; fill: none; }
.lv-edge { stroke: #4A5262; stroke-width: 1; }
.lv { stroke: #3A4250; stroke-width: 1; stroke-dasharray: 3 4; }
.tool { stroke: var(--ash); stroke-width: 1; stroke-dasharray: 2 5; opacity: .55; }
.band { fill: var(--mist); fill-opacity: .12; }
.band-line { fill: none; stroke: var(--mist); stroke-width: 1.4; opacity: .6; }
.c-wick { stroke: var(--shale); stroke-width: 1; fill: none; }
.c-up { fill: var(--graphite); stroke: var(--mist); stroke-width: 1; }
.c-dn { fill: #6B7585; }
.anchor { fill: var(--night); stroke: var(--frost); stroke-width: 1.5; }
.lbl, .lbl-px { font-family: var(--mono); font-size: 13px; fill: var(--ash); }
.lbl-px { fill: var(--mist); }
.lbl-ac { fill: var(--ice); }
.years text { font-family: var(--mono); font-size: 12px; fill: var(--ash); }
.chart-phone { display: none; padding: 12px 0 4px; }
.mini-svg { width: 100%; height: 160px; }
.mini-line { fill: none; stroke: var(--mist); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.mini-svg .pocket-edge { vector-effect: non-scaling-stroke; }
@media (max-width: 720px) { .chart-desk { display: none; } .chart-phone { display: block; } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-top: 1px solid var(--line-d); }
.stats div { padding: 16px 24px; border-right: 1px solid var(--line-d); }
.stats div:last-child { border-right: 0; }
.stats dt { font-size: 13px; color: var(--ash); }
.stats dd { margin-top: 4px; font: 20px var(--mono); color: var(--frost); font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } .stats div:nth-child(2) { border-right: 0; } .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line-d); } .stats dd { font-size: 17px; } }

/* The chart draws itself once: candles, then the band, then the pocket. */
@media (prefers-reduced-motion: no-preference) {
  .hero-svg .candles { animation: rise 700ms var(--ease) both; }
  .hero-svg .band, .hero-svg .band-line { animation: fade 600ms 400ms var(--ease) both; }
  .hero-svg .fib { animation: fade 600ms 700ms var(--ease) both; }
  .hero-svg .labels, .hero-svg .anchor { animation: fade 400ms 1000ms both; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
}

.trust { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 28px 0 8px; font-size: 14px; color: var(--ash); }

/* ---------- section heads ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; }
.sec-head .lead { max-width: 640px; }

/* ---------- trail symbols ---------- */
.sym { flex: none; }
.sym-green { fill: var(--trail-green); }
.sym-blue { fill: var(--trail-blue); }
.sym-black, .sym-double { fill: var(--ink); }
.band-dark .sym-black, .band-dark .sym-double { fill: var(--frost); }

/* ---------- lesson rows ---------- */
.rows { display: flex; flex-direction: column; }
.rows-boxed, .curr .rows { border: 1px solid var(--haze); border-radius: var(--r-lg); background: var(--white); overflow: hidden; }
.row { display: grid; grid-template-columns: 26px 18px minmax(0, 1fr) auto 72px 16px; align-items: center; gap: 14px; min-height: 60px; padding: 12px 22px; text-decoration: none; color: var(--ink); border-top: 1px solid var(--soft); }
.rows > li:first-child .row { border-top: 0; }
a.row:hover { background: var(--powder); }
a.row:hover .row-title { color: var(--deep); }
.row-n { font: 13px var(--mono); color: var(--shale); display: flex; }
.row-title { font-size: 16px; font-weight: 500; }
.row-access { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--shale); white-space: nowrap; }
.row-free { font-size: 13px; font-weight: 600; color: #167A3E; white-space: nowrap; }
.row-dur { font: 13px var(--mono); color: var(--shale); text-align: right; }
.row-tag { justify-self: end; font-size: 12px; color: var(--shale); padding: 3px 8px; border: 1px dashed var(--haze); border-radius: 99px; white-space: nowrap; }
.row-off .row-title { color: var(--granite); font-weight: 400; }
.row .ic-arrow { color: var(--deep); }
.row-done .row-n { color: var(--trail-green); }
.row-current { box-shadow: inset 3px 0 0 var(--ice); }
@media (max-width: 640px) {
  .row { grid-template-columns: 22px 16px minmax(0, 1fr) auto; padding: 12px 16px; gap: 10px; }
  .row-access, .row .ic-arrow, .row-go { display: none; }
}
.rows-dark .row { color: var(--frost); border-top-color: var(--line-d); grid-template-columns: 26px 18px minmax(0, 1fr) auto; padding: 12px 16px; }
.rows-dark .row-access, .rows-dark .row-free, .rows-dark .ic-arrow, .rows-dark .row-go { display: none; }
.rows-dark .row-off .row-title { color: var(--ash); }
.rows-dark a.row:hover { background: var(--slate); }
.rows-dark a.row:hover .row-title { color: var(--frost); }
.rows-dark .row-tag { display: none; }
.rows-dark .row-current { background: var(--slate); }

/* ---------- free lessons ---------- */
.feature-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { display: flex; flex-direction: column; border: 1px solid var(--haze); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color 160ms; }
.feature:hover { border-color: var(--steel); }
.feature-media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--graphite); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.play-badge { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 99px; background: rgb(10 13 18 / .82); color: var(--frost); font: 13px var(--mono); }
.feature-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; }

/* ---------- course sections teaser ---------- */
.sections-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.sec-card { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--haze); text-decoration: none; color: var(--ink); transition: border-color 160ms, transform 160ms var(--ease); }
.sec-card:hover { border-color: var(--steel); }
.sec-card .muted { font-size: 15px; flex-grow: 1; }
.sec-card-foot { padding-top: 8px; border-top: 1px solid var(--soft); }

/* ---------- discord preview ---------- */
.server { border-radius: var(--r-lg); background: var(--night); border: 1px solid var(--rule-d); color: var(--frost); padding: 8px; }
.server-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 14px; margin: 0 -8px 6px; border-bottom: 1px solid var(--line-d); font-weight: 600; }
.server-head img { margin-left: 8px; }
.server-group { padding: 12px 12px 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ash); }
.server-rooms li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 12px; border-radius: var(--r); font-size: 15px; }
.server-rooms li span:last-child { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ash); }
.server-rooms li.on { background: var(--slate); }
.server-rooms li.locked span:first-child { color: var(--mist); }

/* ---------- tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 1100px) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tiers { grid-template-columns: 1fr; } }
.tier { display: flex; flex-direction: column; gap: 18px; padding: 28px; border: 1px solid var(--haze); border-radius: var(--r-lg); background: var(--white); }
.tier-primary { border: 2px solid var(--deep); padding: 27px; }
.tier-dark { background: var(--night); border-color: var(--night); color: var(--frost); }
.tier h3 { font-size: 19px; font-weight: 600; }
.tier-price { margin-top: 6px; font-size: 44px; font-weight: 500; letter-spacing: -.035em; line-height: 1; }
.tier-price span { margin-left: 6px; font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--shale); }
.tier-dark .tier-price span { color: var(--ash); }
.tier-access { font-size: 15px; color: var(--granite); }
.tier-dark .tier-access { color: var(--mist); }
.ticks { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--granite); flex-grow: 1; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ic-check { margin-top: 3px; color: var(--deep); flex: none; }
.tier-dark .ticks, .ticks-dark { color: var(--mist); }
.tier-dark .ticks .ic-check, .ticks-dark .ic-check { color: var(--ice); }
.tier-terms { font-size: 12px; color: var(--shale); text-align: center; }
.tier-dark .tier-terms { color: var(--ash); }
.ticket { color: var(--ink); }
.ticket-body { fill: none; stroke: currentColor; }
.ticket-perf { stroke: currentColor; }
.ticket-punch { fill: currentColor; }
.ticket-course { color: var(--deep); }
.tier-dark .ticket { color: var(--frost); }
.tier-dark .ticket-solid .ticket-body { fill: var(--frost); stroke: var(--frost); }
.tier-dark .ticket-solid .ticket-perf { stroke: var(--night); }
.tier-dark .ticket-solid .ticket-punch { fill: var(--night); }

/* ---------- course page ---------- */
.course-hero { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
@media (max-width: 1000px) { .course-hero { grid-template-columns: 1fr; } }
.trailer { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--rule-d); background: var(--graphite); margin-top: 32px; }
.trailer img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.trailer:hover img { transform: scale(1.015); }
.trailer-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--night); color: var(--frost); display: grid; place-items: center; }
.buy-box { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; padding: 30px; border-radius: 16px; background: var(--graphite); border: 1px solid var(--rule-d); }
.buy-price { font-size: 60px; font-weight: 500; letter-spacing: -.04em; line-height: 1; color: var(--frost); }
.buy-box .btn { margin-top: 8px; }
.buy-box .ticks { padding: 8px 0 4px; font-size: 15px; }
.buy-alt { padding-top: 16px; border-top: 1px solid var(--rule-d); font-size: 14px; line-height: 1.55; color: var(--ash); }
.buy-alt a { color: var(--ice); font-weight: 600; text-decoration: none; }
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1px; background: var(--haze); border: 1px solid var(--haze); border-radius: var(--r-lg); overflow: hidden; }
.skills li { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--white); }
.skills .muted { font-size: 15px; }
.legend-trail { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--granite); }
.legend-trail span { display: inline-flex; align-items: center; gap: 6px; }
.curr + .curr { margin-top: 24px; }
.curr-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 4px 12px; }
.curr-head h2, .curr-head h3 { font-size: 18px; font-weight: 600; }
.curr-cta { display: flex; align-items: center; gap: 8px; padding: 14px 4px 0; font-size: 14px; color: var(--shale); }
.curr-cta a { color: var(--deep); font-weight: 600; text-decoration: none; }
.curr-cta a:hover { text-decoration: underline; }
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.way { display: flex; flex-direction: column; gap: 16px; padding: 36px; border-radius: 16px; border: 1px solid var(--haze); }
.way h3 { font-size: 20px; font-weight: 600; }
.way-price { font-size: 52px; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.way-price span { margin-left: 8px; font-size: 17px; font-weight: 400; letter-spacing: 0; color: var(--shale); }
.way p:not(.way-price) { color: var(--granite); }
.way-primary { border: 2px solid var(--deep); padding: 35px; }
.way-dark { background: var(--night); border-color: var(--night); color: var(--frost); }
.way-dark p:not(.way-price) { color: var(--mist); }
.way-dark .way-price span { color: var(--ash); }
.way .btn { margin-top: auto; }
.months { display: flex; align-items: center; gap: 8px; }
.months span { flex: 1; height: 6px; border-radius: 3px; background: var(--rule-d); }
.months span.on { background: var(--ice); }
.months em { font-style: normal; font-size: 13px; color: var(--ash); margin-left: 6px; }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--haze); }
.faq details:last-child { border-bottom: 1px solid var(--haze); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 300; color: var(--shale); transition: transform 160ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; color: var(--shale); max-width: 680px; }

/* ---------- lesson page ---------- */
.lesson-top { padding: 40px 0 56px; }
.crumbs { display: flex; gap: 10px; font-size: 14px; color: var(--ash); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--frost); }
.lesson-title { padding: 18px 0 32px; }
.lesson-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
@media (max-width: 1000px) { .lesson-grid { grid-template-columns: 1fr; } }
.player { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--rule-d); background: #000; aspect-ratio: 16 / 9; }
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player-empty { display: grid; place-items: center; background: var(--graphite); }
.player-empty p { display: flex; align-items: center; gap: 12px; color: var(--mist); }
.rail { border-radius: var(--r-lg); border: 1px solid var(--rule-d); background: var(--graphite); overflow: hidden; }
.rail-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line-d); font-weight: 600; font-size: 15px; }
.rail-foot { display: flex; align-items: center; gap: 6px; padding: 14px 18px; border-top: 1px solid var(--line-d); font-size: 14px; color: var(--ice); text-decoration: none; font-weight: 600; }
.lesson-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
@media (max-width: 1000px) { .lesson-cols { grid-template-columns: 1fr; } }
.quiz { padding: 28px; border-radius: var(--r-lg); background: var(--powder); border: 1px solid var(--haze); }
.quiz details { border-top: 1px solid var(--haze); }
.quiz h2 + details { margin-top: 16px; }
.quiz summary { list-style: none; cursor: pointer; display: flex; gap: 14px; align-items: baseline; padding: 16px 0; font-weight: 600; }
.quiz summary::-webkit-details-marker { display: none; }
.quiz summary::after { content: "Show answer"; margin-left: auto; font-size: 13px; font-weight: 500; color: var(--deep); white-space: nowrap; }
.quiz details[open] summary::after { content: "Hide"; }
.quiz details p { padding: 0 0 16px 30px; color: var(--granite); }
.transcript p:not(.eyebrow) { font-size: 17px; line-height: 1.75; color: var(--granite); }
.transcript > * + * { margin-top: 16px; }
.card { padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--haze); background: var(--white); }
.card-soft { background: var(--powder); border-color: var(--powder); }
.card-soft p { display: flex; gap: 12px; align-items: flex-start; color: var(--granite); font-size: 15px; }
.card-soft .ic { margin-top: 3px; flex: none; }

/* ---------- membership ---------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--haze); border-radius: var(--r-lg); }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 16px 20px; border-top: 1px solid var(--soft); text-align: center; }
.compare thead th { border-top: 0; background: var(--powder); font-weight: 600; font-size: 15px; vertical-align: bottom; }
.compare thead th span { display: block; margin-top: 4px; font-weight: 400; font-size: 13px; color: var(--shale); }
.compare tbody th { text-align: left; font-weight: 500; color: var(--granite); }
.compare .ic-check { margin: 0 auto; color: var(--deep); }
.compare .dash { color: var(--haze); }
.cell-note { font-size: 13px; color: var(--shale); }

/* ---------- my course ---------- */
.demo-chip { display: inline-block; padding: 6px 12px; border-radius: 99px; border: 1px dashed var(--steel); font-size: 13px; color: var(--mist); }
.progress-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1px; margin-top: 32px; border-radius: var(--r-lg); overflow: hidden; background: var(--rule-d); border: 1px solid var(--rule-d); }
.progress-card > div { padding: 26px; background: var(--graphite); }
.progress-card .btn { margin-top: 14px; }
.bar { height: 6px; border-radius: 3px; background: var(--rule-d); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--ice); min-width: 6px; }
.bar-0 { width: 0; } .bar-5 { width: 5%; } .bar-10 { width: 10%; } .bar-15 { width: 15%; } .bar-20 { width: 20%; } .bar-25 { width: 25%; } .bar-30 { width: 30%; } .bar-35 { width: 35%; } .bar-40 { width: 40%; } .bar-45 { width: 45%; } .bar-50 { width: 50%; } .bar-55 { width: 55%; } .bar-60 { width: 60%; } .bar-65 { width: 65%; } .bar-70 { width: 70%; } .bar-75 { width: 75%; } .bar-80 { width: 80%; } .bar-85 { width: 85%; } .bar-90 { width: 90%; } .bar-95 { width: 95%; } .bar-100 { width: 100%; }

/* ---------- switch ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.steps li { display: flex; flex-direction: column; gap: 10px; padding: 28px; border: 1px solid var(--haze); border-radius: var(--r-lg); }

/* ---------- system pages (demo steps, errors, welcome) ---------- */
.sys { padding: 96px 0 120px; min-height: 60vh; }
.sys-card { max-width: 640px; padding: 40px; border-radius: 16px; background: var(--graphite); border: 1px solid var(--rule-d); }
.sys-card h1 { font-size: 36px; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.sys-card > p { color: var(--mist); }
.sys-card > * + * { margin-top: 18px; }
.demo-flag { display: inline-block; padding: 5px 10px; border-radius: 99px; border: 1px dashed var(--steel); font-size: 12px; color: var(--mist); }
.sys-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule-d); color: var(--mist); }
.sys-row span:last-child { font-family: var(--mono); color: var(--frost); }
.sys-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.btn-signal { background: var(--ice); color: var(--night); }
.btn-signal:hover { background: var(--ice-hi); }
.btn-ghost { border-color: var(--steel); color: var(--frost); }
code { font-family: var(--mono); font-size: .9em; }

/* ---------- landing (SITE_MODE=landing) ---------- */
.foot-landing { padding: 40px 0 40px; }
.foot-social { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 32px; font-size: 15px; }
.foot-social a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--mist); }
.foot-social a:hover { color: var(--frost); }
.foot-landing .foot-legal { margin-top: 32px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ice); }
div.sec-card:hover { border-color: var(--haze); }
/* The teaser: one screen, centred, a slow ice glow behind the logo. */
.teaser { position: relative; background: var(--night); min-height: min(calc(100svh - 80px), 860px); display: grid; place-items: center; padding: 96px 0 72px; overflow: hidden; isolation: isolate; }
.teaser::before { content: ""; position: absolute; inset: -20% -10% auto; height: 90%; z-index: -1; background: radial-gradient(closest-side, rgb(124 200 255 / .10), rgb(124 200 255 / 0)); }
.teaser-in { display: flex; flex-direction: column; align-items: center; gap: 28px; max-width: 980px; padding: 0 var(--gut); text-align: center; }
.teaser-logo { height: 168px; width: auto; margin-bottom: 12px; }
.teaser-mark { display: inline-flex; align-items: center; gap: 10px; font: 400 12px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--ash); }
.teaser-h1 { font: 400 clamp(48px, 7vw, 96px)/1 var(--display); letter-spacing: -.01em; color: var(--frost); max-width: 18ch; margin: 0; text-wrap: balance; }
.teaser-line { font-size: 18px; line-height: 1.55; color: var(--mist); max-width: 40ch; margin: 0; text-wrap: balance; }
.teaser-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 8px; }
.teaser-link { font-size: 14px; color: var(--ash); text-decoration: none; }
.teaser-link:hover { color: var(--frost); }
.teaser-status { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 14px; color: var(--mist); }
.teaser-form { display: flex; gap: 10px; width: min(460px, 100%); }
.teaser-form input[type="email"] { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid var(--rule-d); border-radius: var(--r); background: var(--graphite); color: var(--frost); font: 400 16px var(--sans); }
.teaser-form input[type="email"]::placeholder { color: var(--steel); }
.teaser-form input[type="email"]:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 3px rgb(124 200 255 / .18); }
.teaser-form input[aria-invalid="true"] { border-color: #E5797A; }
.teaser-form .btn { height: 48px; white-space: nowrap; }
.teaser-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.teaser-note { margin: 0; font-size: 13px; color: var(--steel); }
.teaser-note.is-error { color: #F0A3A4; }
.teaser-done { margin: 0; padding: 14px 20px; border: 1px solid rgb(124 200 255 / .35); border-radius: var(--r); background: rgb(124 200 255 / .08); color: var(--frost); font-size: 16px; }
.teaser-proof a { display: inline-flex; align-items: center; gap: 6px; color: var(--mist); text-decoration: none; }
.teaser-proof a:hover { color: var(--frost); }
.skill-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1px; background: var(--haze); border: 1px solid var(--haze); border-radius: var(--r-lg); overflow: hidden; }
.skill { display: flex; flex-direction: column; gap: 10px; padding: 32px 28px; background: var(--white); }
.skill-n { font: 400 13px/1 var(--mono); color: var(--deep); }
.skill .muted { font-size: 16px; line-height: 1.5; }
.sec-top-rule-0 { padding-top: 0; }
.inside-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.inside { display: flex; flex-direction: column; gap: 12px; padding: 26px; border: 1px solid var(--haze); border-radius: var(--r-lg); }
.inside-head { display: flex; justify-content: space-between; margin: 0; font: 400 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--shale); }
.inside ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; color: var(--granite); }
.inside li { padding-left: 14px; position: relative; }
.inside li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--steel); }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px; }
.how { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--rule-d); color: var(--mist); font-size: 16px; line-height: 1.5; }
.how .h3 { color: var(--frost); }
.how-for { font-size: 18px; color: var(--ash); }
.teaser-close { border-top: 1px solid var(--line-d); text-align: center; }
.teaser-close .teaser-in { margin: 0 auto; }
.teaser-proof { margin: 24px 0 0; padding-top: 24px; border-top: 1px solid var(--rule-d); font: 400 13px/1.5 var(--mono); letter-spacing: .04em; color: var(--steel); }
@media (prefers-reduced-motion: no-preference) {
  .teaser::before { animation: teaser-breathe 9s ease-in-out infinite alternate; }
  .teaser-in > * { animation: teaser-rise 1.1s var(--ease) both; }
  .teaser-in > :nth-child(2) { animation-delay: .15s; } .teaser-in > :nth-child(3) { animation-delay: .3s; }
  .teaser-in > :nth-child(4) { animation-delay: .45s; } .teaser-in > :nth-child(5) { animation-delay: .6s; }
  @keyframes teaser-breathe { from { opacity: .55; transform: scale(.94); } to { opacity: 1; transform: scale(1.06); } }
  @keyframes teaser-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: no-preference) {
  .status-dot { animation: status-pulse 2.4s var(--ease) infinite; }
  @keyframes status-pulse {
    0% { box-shadow: 0 0 0 0 rgb(124 200 255 / .55); }
    70%, 100% { box-shadow: 0 0 0 10px rgb(124 200 255 / 0); }
  }
}
@media (max-width: 640px) {
  .teaser { padding: 72px 0 48px; }
  .teaser-logo { height: 132px; }
  .teaser-line { font-size: 17px; }
  .teaser-form { flex-direction: column; }
  .teaser-proof a { display: flex; justify-content: center; margin: 8px 0 0; }
}

/* Headlines in Instrument Serif. */
.h1, .h2, .teaser-h1 { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; }

/* Custom course icons in the original Night Session palette. */
.skill-top { display: flex; align-items: center; justify-content: space-between; color: var(--deep); margin-bottom: 8px; }
.field-icon { flex: none; }
