:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --surface: #161616;
  --surface-2: #1d1d1d;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .18);
  --text: #f3f1ee;
  --muted: #9b9893;
  --red: #ff3b2f;
  --red-dark: #e02a1f;
  --green: #4ade80;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --sans: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
::selection { background: var(--red); color: #fff; }
h1, h2, h3 { margin: 0 0 .5em; font-weight: 400; }
p { margin: 0 0 1em; }
button { font: inherit; }
.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.label { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.display { font-family: var(--display); text-transform: uppercase; font-size: clamp(3rem, 8vw, 7.4rem); line-height: .9; margin: 0; }
.display--md { font-size: clamp(2.6rem, 6vw, 5.2rem); }
.display em { font-style: normal; color: var(--red); }
.sub { color: var(--muted); font-size: 1.08rem; max-width: 34em; margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; height: 54px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent; font: 600 .98rem var(--sans); text-decoration: none; cursor: pointer; background: transparent; color: var(--text); transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--sm { height: 42px; padding: 0 20px; font-size: .9rem; }
.btn--xs { height: 34px; padding: 0 14px; font-size: .82rem; }
.btn--block { width: 100%; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn--glass { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgba(255,255,255,.16); }
.btn--line { border-color: var(--line-2); }
.btn--line:hover { border-color: var(--text); background: var(--text); color: var(--bg); }
.btn--ghost { color: var(--muted); padding: 0 10px; }
.btn--ghost:hover { color: #fff; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1; flex: none; }
.brand img { height: 26px; width: auto; }
.brand span { font: 400 1.32rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.brand span b { font-weight: 400; color: var(--red); }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; border-bottom: 1px solid transparent; transition: background .35s, border-color .35s; }
.nav.is-scrolled, .nav.is-open, .nav--solid { background: rgba(10,10,10,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a, .nav__login { text-decoration: none; font-size: .92rem; font-weight: 500; color: rgba(255,255,255,.75); transition: color .2s; }
.nav__links a:hover, .nav__login:hover { color: #fff; }
.nav__toggle { display: none; flex: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; transition: transform .25s; }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { display: flex; flex-direction: column; padding: 8px 24px 28px; background: var(--bg); border-top: 1px solid var(--line); min-height: calc(100vh - 76px); }
.mobile-menu a:not(.btn) { padding: 14px 0; text-decoration: none; font: 400 2.2rem/1 var(--display); text-transform: uppercase; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 24px; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 130px 0 64px; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 30%; transform: scale(1.06); animation: zoom 18s ease-out forwards; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.6) 0%, rgba(10,10,10,.25) 35%, rgba(10,10,10,.7) 70%, var(--bg) 100%), linear-gradient(90deg, rgba(10,10,10,.85) 0%, rgba(10,10,10,.1) 70%); }
@keyframes zoom { to { transform: scale(1); } }
.hero .label { color: rgba(255,255,255,.85); }
.hero__title { font-family: var(--display); text-transform: uppercase; font-size: clamp(4.2rem, 13vw, 12.5rem); line-height: .84; margin: 0 0 32px; animation: riseIn 1s var(--ease) both; }
.hero__title span { display: block; color: transparent; -webkit-text-stroke: 2px #fff; }
.hero__title em { font-style: normal; color: var(--red); }
.hero__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px 48px; flex-wrap: wrap; animation: riseIn 1s .2s var(--ease) both; }
.hero__lede { max-width: 34em; font-size: clamp(1.04rem, 1.4vw, 1.22rem); color: rgba(255,255,255,.85); margin: 0; }
.hero__buy { display: grid; gap: 12px; justify-items: start; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__price { margin: 0; font-size: .92rem; color: rgba(255,255,255,.75); }
.hero__price b { color: #fff; font-size: 1.05rem; }
@keyframes riseIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.founding { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(255,59,47,.14); border: 1px solid rgba(255,59,47,.45); color: #fff; font-size: .82rem; font-weight: 600; }
.founding::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* Sections */
.section { padding: clamp(88px, 11vw, 150px) 0; position: relative; }
.section--panel { background: var(--bg-2); border-block: 1px solid var(--line); }
.head { margin-bottom: clamp(44px, 6vw, 72px); }
.head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px 64px; flex-wrap: wrap; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { position: relative; padding: 34px 30px 36px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.pillar__n { font: 400 4.6rem/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--red); margin: 0 0 40px; }
.pillar h3 { font: 400 2.2rem/.95 var(--display); text-transform: uppercase; margin-bottom: 14px; }
.pillar p { color: var(--muted); margin: 0; }
.pillar--hot { background: linear-gradient(160deg, #2a0f0c 0%, var(--surface) 60%); border-color: rgba(255,59,47,.45); }

/* Curriculum */
.curr { border-top: 1px solid var(--line-2); counter-reset: mod; }
.curr details { border-bottom: 1px solid var(--line-2); counter-increment: mod; }
.curr summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 72px 1fr auto 40px; gap: 8px 24px; align-items: center; padding: 26px 0; }
.curr summary::-webkit-details-marker { display: none; }
.curr summary::before { content: counter(mod, decimal-leading-zero); font-size: .85rem; font-weight: 600; color: var(--red); letter-spacing: .1em; }
.curr summary::after { content: "+"; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-2); transition: transform .3s var(--ease), background .3s; }
.curr details[open] summary::after { transform: rotate(45deg); background: var(--red); border-color: var(--red); }
.curr__t { font: 400 clamp(1.7rem, 3.2vw, 2.6rem)/1 var(--display); text-transform: uppercase; }
.curr__t small { display: block; margin-top: 10px; font: 400 1rem/1.5 var(--sans); text-transform: none; color: var(--muted); }
.curr__count { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.curr ol { list-style: none; margin: 0; padding: 0 0 28px 96px; display: grid; gap: 2px; }
.curr li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); color: rgba(255,255,255,.85); }
.curr li span { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.curr__note { margin-top: 24px; color: var(--muted); font-size: .92rem; }

/* For you */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fit__card { padding: 34px 32px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.fit__card h3 { font: 400 2rem/1 var(--display); text-transform: uppercase; margin-bottom: 20px; }
.fit__card--no { background: transparent; border-style: dashed; }
.ticks, .crosses { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li, .crosses li { position: relative; padding-left: 28px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.crosses li { color: var(--muted); }
.crosses li::before { content: "✕"; position: absolute; left: 0; color: #66635f; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { padding: 30px 26px 34px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.step b { display: block; font: 400 3.6rem/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--red); margin-bottom: 30px; }
.step h3 { font: 400 1.7rem/1 var(--display); text-transform: uppercase; }
.step p { color: var(--muted); margin: 0; }

/* Pricing */
.prices { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: clamp(30px, 4vw, 44px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.price-card--hot { background: linear-gradient(160deg, #2a0f0c 0%, var(--surface) 55%); border-color: rgba(255,59,47,.55); }
.price-card__badge { position: absolute; top: -13px; left: 32px; margin: 0; background: var(--red); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.price-card__k { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.price-card--hot .price-card__k { color: var(--red); }
.price-card h3 { font: 400 clamp(2.4rem, 4vw, 3.2rem)/.95 var(--display); text-transform: uppercase; margin-bottom: 18px; }
.price { margin: 0 0 6px; color: var(--muted); font-weight: 500; }
.price span { font: 400 clamp(3.6rem, 6vw, 5.2rem)/.9 var(--display); color: var(--text); margin-right: 6px; }
.price-card--hot .price span { color: var(--red); }
.price-card__alt { margin: 0 0 18px; color: var(--muted); font-size: .92rem; }
.price-card__d { color: var(--muted); }
.price-card .ticks { margin: 8px 0 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.price-card .btn { margin-top: auto; }
.price-card__fine { margin: 14px 0 0; font-size: .85rem; color: var(--muted); text-align: center; }
.founding-note { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 0; padding: 16px 20px; border-radius: 16px; border: 1px dashed rgba(255,59,47,.5); background: rgba(255,59,47,.06); font-size: .95rem; }
.founding-note b { color: var(--red); white-space: nowrap; }

/* Ladder */
.ladder { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.ladder ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.ladder li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--line-2); }
.ladder li b { font: 400 1.5rem/1 var(--display); text-transform: uppercase; }
.ladder li span { color: var(--muted); font-size: .92rem; text-align: right; }
.ladder li.is-here { background: rgba(255,59,47,.08); padding-inline: 16px; border-radius: 12px; border-bottom-color: transparent; margin-top: -1px; }
.ladder li.is-here b { color: var(--red); }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); }
.faq__list { border-top: 1px solid var(--line-2); }
.faq__list details { border-bottom: 1px solid var(--line-2); }
.faq__list summary { list-style: none; cursor: pointer; padding: 26px 56px 26px 0; position: relative; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 1.2rem; font-weight: 400; transition: transform .3s var(--ease), background .3s; }
.faq__list details[open] summary::after { transform: rotate(45deg); background: var(--red); border-color: var(--red); }
.faq__list details p { color: var(--muted); padding: 0 56px 26px 0; margin: 0; }
.faq__list a { color: var(--text); text-decoration-color: var(--red); text-underline-offset: 3px; }

/* Waitlist + closing CTA */
.cta { position: relative; padding: clamp(110px, 13vw, 170px) 0; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.cta__media { position: absolute; inset: 0; z-index: -1; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,.96) 0%, rgba(10,10,10,.85) 55%, rgba(10,10,10,.7) 100%); }
.cta__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.cta .sub { color: rgba(255,255,255,.78); margin-top: 24px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Forms */
.form { background: rgba(16,16,16,.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line-2); border-radius: 22px; padding: clamp(24px, 3.4vw, 36px); display: grid; gap: 16px; }
.form h3 { font: 400 2rem/1 var(--display); text-transform: uppercase; margin: 0; }
.form > p { margin: -6px 0 0; color: var(--muted); font-size: .95rem; }
.field { display: grid; gap: 8px; font-size: .86rem; font-weight: 500; color: rgba(255,255,255,.82); }
.field small { color: var(--muted); font-weight: 400; }
.input, .field input, .field select, .field textarea { width: 100%; background: rgba(255,255,255,.04); border: 1px solid var(--line-2); border-radius: 12px; color: var(--text); padding: 12px 14px; font: 400 1rem var(--sans); transition: border-color .2s, background .2s; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--red); background: rgba(255,255,255,.07); }
.field select { appearance: none; -webkit-appearance: none; background: rgba(255,255,255,.04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23f3f1ee' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center/14px no-repeat; padding-right: 40px; }
.field select option { background: #161616; }
.check { display: flex !important; align-items: center; gap: 10px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--red); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.msg { margin: 0; min-height: 1.3em; font-size: .9rem; }
.msg.is-error { color: #ff8a80; }
.msg.is-ok { color: var(--green); }

/* Footer */
.footer { padding: 64px 0 28px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.footer__top p { color: var(--muted); margin: 14px 0 0; max-width: 26em; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer nav a { text-decoration: none; color: rgba(255,255,255,.8); }
.footer nav a:hover { color: var(--red); }
.footer__word { font: 400 clamp(3.4rem, 13vw, 13rem)/.8 var(--display); text-transform: uppercase; margin: 56px 0 24px; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.16); white-space: nowrap; text-align: center; }
.footer__word span { -webkit-text-stroke-color: rgba(255,59,47,.6); }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); padding-top: 20px; border-top: 1px solid var(--line); }
.footer__bottom p { margin: 0; }
.footer__bottom a { text-decoration: none; }
.footer__bottom a:hover { color: #fff; }

/* Simple centered pages (sign in, welcome) */
.solo { min-height: 100svh; display: grid; place-items: center; padding: 120px 0 64px; position: relative; isolation: isolate; overflow: hidden; }
.solo::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 60vw; height: 60vw; background: radial-gradient(circle, rgba(255,59,47,.16), transparent 60%); z-index: -1; }
.solo__card { width: min(520px, 100% - 32px); padding: clamp(28px, 5vw, 44px); border-radius: 26px; background: var(--surface); border: 1px solid var(--line-2); display: grid; gap: 18px; }
.solo__card h1 { font: 400 clamp(2.6rem, 7vw, 3.6rem)/.92 var(--display); text-transform: uppercase; margin: 0; }
.solo__card h1 em { font-style: normal; color: var(--red); }
.solo__card > p { color: var(--muted); margin: 0; }
.solo__small { font-size: .88rem; color: var(--muted); }
.solo__small a { color: var(--text); text-decoration-color: var(--red); text-underline-offset: 3px; }

/* Toast */
#toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 20px; z-index: 300; padding: 12px 18px; border-radius: 12px; background: #fff; color: #111; font-weight: 600; font-size: .92rem; box-shadow: 0 20px 40px -12px rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .25s, translate .25s; }
#toast.is-on { opacity: 1; translate: -50% 0; }
#toast.toast--error { background: #ff8a80; }

.demo-bar { position: relative; z-index: 120; background: var(--red); color: #fff; text-align: center; font-size: .85rem; font-weight: 600; padding: 8px 16px; }

/* Responsive */
@media (max-width: 1000px) {
  .nav__links, .nav__cta, .nav__login { display: none; }
  .nav__toggle { display: block; }
  .pillars, .steps { grid-template-columns: 1fr 1fr; }
  .pillars .pillar:last-child { grid-column: span 2; }
  .prices, .ladder, .faq, .cta__grid { grid-template-columns: 1fr; }
  .faq { gap: 8px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .brand img { height: 22px; }
  .brand span { font-size: 1.1rem; }
  .hero { padding-bottom: 44px; }
  .hero__buy, .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
  .pillars, .steps, .fit, .row2 { grid-template-columns: 1fr; }
  .pillars .pillar:last-child { grid-column: auto; }
  .curr summary { grid-template-columns: 1fr 36px; }
  .curr summary::before { grid-column: 1 / -1; }
  .curr__count { grid-column: 1; grid-row: 3; }
  .curr summary::after { grid-column: 2; grid-row: 2; }
  .curr ol { padding-left: 0; }
  .ladder li { flex-direction: column; gap: 6px; }
  .ladder li span { text-align: left; }
  .cta__actions .btn { flex: 1 1 100%; }
}
@media (max-width: 360px) { .brand span { font-size: .98rem; } .nav__inner { gap: 14px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ===== Members area ===== */
body.app { min-height: 100svh; }
.appbar { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; gap: 18px; height: 68px; padding: 0 clamp(16px, 3vw, 28px); background: rgba(10,10,10,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.appbar__links { display: flex; gap: 4px; margin-left: auto; }
.appbar__links a, .appbar__links button { height: 38px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; border: 0; background: none; color: rgba(255,255,255,.75); font: 500 .9rem var(--sans); text-decoration: none; cursor: pointer; }
.appbar__links a:hover, .appbar__links button:hover { color: #fff; background: rgba(255,255,255,.06); }
.appbar__links a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.08); }
.appbar__lessons { display: none !important; }
.app__grid { display: grid; grid-template-columns: 340px 1fr; min-height: calc(100svh - 68px); }
.app__grid--solo { grid-template-columns: 1fr; }
.side { position: sticky; top: 68px; height: calc(100svh - 68px); overflow-y: auto; border-right: 1px solid var(--line); background: var(--bg-2); padding: 24px 18px 40px; }
.side__prog { padding: 4px 8px 22px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.side__prog p { display: flex; justify-content: space-between; margin: 0 0 10px; font-size: .85rem; color: var(--muted); }
.side__prog b { color: var(--text); }
.bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--red); border-radius: inherit; transition: width .5s var(--ease); }
.side__mod { margin: 0; }
.side__mod + .side__mod { margin-top: 6px; }
.side__mod summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; padding: 12px 8px; border-radius: 10px; font-weight: 600; font-size: .92rem; }
.side__mod summary::-webkit-details-marker { display: none; }
.side__mod summary:hover { background: rgba(255,255,255,.04); }
.side__mod summary small { color: var(--muted); font-weight: 500; white-space: nowrap; }
.side__mod summary span i { font-style: normal; color: var(--red); margin-right: 8px; font-size: .78rem; }
.side__mod ol { list-style: none; margin: 2px 0 8px; padding: 0; }
.side__mod a { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: start; padding: 9px 8px 9px 10px; border-radius: 10px; text-decoration: none; color: rgba(255,255,255,.78); font-size: .9rem; line-height: 1.35; }
.side__mod a:hover { background: rgba(255,255,255,.05); color: #fff; }
.side__mod a[aria-current="page"] { background: rgba(255,59,47,.12); color: #fff; }
.side__mod a small { color: var(--muted); font-size: .78rem; }
.dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; margin-top: 1px; }
.dot.is-done { background: var(--red); border-color: var(--red); }
.dot.is-done::after { content: ""; width: 8px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.draft { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.1); color: var(--muted); font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; }

.stage { min-width: 0; padding: clamp(28px, 4vw, 56px) clamp(16px, 4vw, 56px) 96px; }
.stage__inner { max-width: 980px; margin: 0 auto; }
.kicker { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin: 0 0 12px; }
.stage h1 { font: 400 clamp(2.4rem, 5vw, 4.2rem)/.92 var(--display); text-transform: uppercase; margin: 0 0 18px; }
.stage__lede { color: var(--muted); font-size: 1.05rem; max-width: 40em; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 28px; }
.card { padding: 26px 26px 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.card--wide { grid-column: 1 / -1; }
.card--hot { background: linear-gradient(150deg, #2a0f0c 0%, var(--surface) 60%); border-color: rgba(255,59,47,.45); }
.card__k { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.card h2 { font: 400 1.9rem/1 var(--display); text-transform: uppercase; margin: 0; }
.card p { color: var(--muted); margin: 0; }
.card .btn { align-self: flex-start; margin-top: 8px; }
.card__row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.card__row .btn { margin: 0; }
.continue { display: grid; grid-template-columns: 1fr auto; gap: 18px 28px; align-items: center; }
.continue h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.continue .bar { grid-column: 1 / -1; }

.player { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; border: 1px solid var(--line); margin: 6px 0 24px; }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__empty, .player__link { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); }
.player__link { color: #fff; font-weight: 600; text-decoration: none; }
.lesson__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.lesson__meta { color: var(--muted); font-size: .9rem; margin: 0; }
.btn--done { border-color: rgba(74,222,128,.55); color: var(--green); }
.notes { color: #d6d3ce; font-size: 1.04rem; max-width: 46em; }
.notes a { color: #fff; text-decoration-color: var(--red); text-underline-offset: 3px; word-break: break-word; }
.lesson__res { margin: 10px 0 0; }
.lesson__nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.lesson__nav a { display: grid; gap: 4px; max-width: 48%; padding: 16px 20px; border-radius: 16px; border: 1px solid var(--line); text-decoration: none; transition: border-color .2s; }
.lesson__nav a:hover { border-color: var(--line-2); }
.lesson__nav a:last-child { text-align: right; margin-left: auto; }
.lesson__nav small { color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.lesson__nav b { font-weight: 600; }

.kv { display: grid; gap: 0; margin: 6px 0 8px; border-top: 1px solid var(--line); }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: rgba(255,255,255,.08); }
.pill--ok { background: rgba(74,222,128,.14); color: var(--green); }
.pill--warn { background: rgba(251,191,36,.14); color: #fbbf24; }
.pill--off { background: rgba(255,255,255,.06); color: var(--muted); }
.loading { color: var(--muted); padding: 40px 0; }
.scrim { display: none; }

@media (max-width: 960px) {
  .app__grid { grid-template-columns: 1fr; }
  .appbar__lessons { display: inline-flex !important; }
  .side { position: fixed; top: 68px; left: 0; bottom: 0; height: auto; width: min(360px, 88vw); z-index: 90; transform: translateX(-102%); transition: transform .3s var(--ease); }
  .side.is-open { transform: none; box-shadow: 30px 0 60px rgba(0,0,0,.6); }
  .scrim.is-on { display: block; position: fixed; inset: 68px 0 0; z-index: 80; background: rgba(0,0,0,.55); }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .appbar { gap: 8px; }
  .appbar .brand span { display: none; }
  .appbar__links a, .appbar__links button { padding: 0 10px; font-size: .85rem; }
  .continue { grid-template-columns: 1fr; }
  .continue .btn { width: 100%; }
  .lesson__nav { flex-direction: column; }
  .lesson__nav a { max-width: none; }
  .lesson__nav a:last-child { text-align: left; margin-left: 0; }
}

/* ===== Society admin ===== */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 28px; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.tabs button { height: 38px; padding: 0 18px; border-radius: 999px; border: 0; background: none; color: var(--muted); font: 600 .9rem var(--sans); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--red); color: #fff; }
.adm-mod { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); margin-bottom: 16px; overflow: hidden; }
.adm-mod__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.adm-mod__head h3 { font: 400 1.5rem/1 var(--display); text-transform: uppercase; margin: 0; }
.adm-mod__head .spacer { flex: 1; }
.adm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 20px; border-top: 1px solid var(--line); }
.adm-row:first-child { border-top: 0; }
.adm-row b { font-weight: 600; }
.adm-row small { color: var(--muted); }
.adm-row .spacer { flex: 1; }
.adm-pos { width: 30px; color: var(--muted); font-size: .85rem; }
.editor { display: grid; gap: 14px; padding: 20px; background: var(--bg-2); border-top: 1px solid var(--line); }
.editor .row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
.editor__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { color: var(--muted); font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.table select { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 8px; font: inherit; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.empty { padding: 28px; color: var(--muted); text-align: center; }
@media (max-width: 640px) { .editor .row3 { grid-template-columns: 1fr; } }
.pillar .pillar__n { margin: 0 0 36px; }
.founding { display: flex; width: fit-content; }
.curr details:not(:has(ol)) summary { cursor: default; }
.curr details:not(:has(ol)) summary::after { visibility: hidden; }
.field { display: block; }
.field > input, .field > select, .field > textarea { margin-top: 8px; }
.field.check { display: flex; }
.field.check > input { margin-top: 0; }
@media (max-width: 640px) { .appbar #admin-link, .appbar #signout { display: none !important; } .appbar__links { gap: 0; } }
