/*
 * Late Class: components
 * Needs tokens.css first. Every class starts with "lc-" so it can sit next to any other CSS.
 */

/* Base */
.lc { margin: 0; background: var(--lc-black); color: var(--lc-white); font-family: var(--lc-sans); font-size: var(--lc-text-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.lc *, .lc *::before, .lc *::after { box-sizing: border-box; }
:where(.lc img, .lc svg) { max-width: 100%; display: block; }
:where(.lc a) { color: inherit; }
.lc-container { width: min(100% - 2 * var(--lc-gutter), var(--lc-container)); margin-inline: auto; }
.lc-narrow { width: min(100% - 40px, var(--lc-narrow)); margin-inline: auto; }
.lc-center { text-align: center; }
.lc-center .lc-lead { margin-inline: auto; }

/* Sections */
.lc-section { padding-block: var(--lc-section); }
.lc-section--coal { background: var(--lc-coal); border-block: var(--lc-border); }
.lc-section--red { background: var(--lc-red); color: var(--lc-white); }
.lc-section--red .lc-lead { color: rgba(255, 255, 255, .86); }
.lc-rule { height: 1px; border: 0; background: var(--lc-line); margin: 0; }

/* Type: heavy sans, sentence case, short lines */
.lc-hero-title, .lc-h2, .lc-h3 { margin: 0; font-family: var(--lc-sans); color: inherit; }
.lc-hero-title { font-size: var(--lc-text-hero); font-weight: 800; letter-spacing: var(--lc-tracking-hero); line-height: 1.08; text-shadow: var(--lc-shadow-text); }
.lc-h2 { font-size: var(--lc-text-h2); font-weight: 800; letter-spacing: var(--lc-tracking-h2); line-height: 1.12; }
.lc-h3 { font-size: var(--lc-text-h3); font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.lc-kicker { display: block; margin: 0 0 14px; font-size: var(--lc-text-kicker); font-weight: 700; letter-spacing: -.01em; text-shadow: var(--lc-shadow-text); }
.lc-lead { max-width: 600px; margin: 18px 0 0; color: var(--lc-soft); font-size: var(--lc-text-lead); line-height: 1.55; }
.lc-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--lc-red); font-family: var(--lc-mono); font-size: var(--lc-text-micro); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.lc-mono { font-family: var(--lc-mono); font-size: var(--lc-text-micro); color: var(--lc-soft); }
.lc-accent { color: var(--lc-red); }

/* Notice strip: one line on black above the nav, closable */
.lc-notice { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 18px; padding: 11px 48px; border-bottom: var(--lc-border); background: var(--lc-black); font-size: var(--lc-text-small); }
.lc-notice strong { font-weight: 700; }
.lc-notice span { color: var(--lc-soft); }
.lc-notice a { color: var(--lc-red); font-weight: 600; text-decoration: none; white-space: nowrap; }
.lc-notice__close { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 0; background: none; color: var(--lc-soft); font-size: 20px; line-height: 1; cursor: pointer; }

/* Nav: logo, quiet links, a red join button and a plain login link */
.lc-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px var(--lc-gutter); }
.lc-nav--over { position: absolute; inset: 0 0 auto; z-index: 3; }
.lc-logo { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.lc-logo__mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--lc-radius); background: var(--lc-red); color: var(--lc-white); font-size: 17px; font-weight: 800; }
.lc-nav__links { display: flex; align-items: center; gap: 30px; margin-right: auto; margin-left: 24px; font-size: 16px; font-weight: 500; }
.lc-nav__links a { color: var(--lc-white); text-decoration: none; opacity: .88; text-shadow: var(--lc-shadow-text); }
.lc-nav__links a:hover { opacity: 1; color: var(--lc-white); }
.lc-nav__actions { display: flex; align-items: center; gap: 18px; }
.lc-nav__login { font-weight: 500; text-decoration: none; white-space: nowrap; }
.lc-live { display: inline-flex; align-items: center; gap: 7px; }
.lc-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lc-red); box-shadow: 0 0 0 3px var(--lc-red-soft); }
@media (max-width: 900px) { .lc-nav__links { display: none; } }

/* Buttons: flat, small corners. Red to join, white for the main action on a stage, outline for the rest */
.lc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border: 1px solid transparent; border-radius: var(--lc-radius); font-family: var(--lc-sans); font-size: 17px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .18s var(--lc-ease), color .18s var(--lc-ease), border-color .18s var(--lc-ease); }
.lc-btn--red { background: var(--lc-red); color: var(--lc-white); }
.lc-btn--red:hover { background: var(--lc-red-dark); }
.lc-btn--white { background: var(--lc-white); color: var(--lc-black); }
.lc-btn--white:hover { background: #ffffff; }
.lc-btn--outline { border-color: var(--lc-line-2); background: transparent; color: var(--lc-white); }
.lc-btn--outline:hover { border-color: var(--lc-white); }
.lc-btn--sm { padding: 9px 16px; font-size: 15px; }
.lc-btn--block { width: 100%; }
.lc-btn__icon { width: 20px; height: 20px; flex: none; }
.lc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 28px; }
.lc-center .lc-actions { justify-content: center; }

/* Caret link: white text ending in a small solid triangle. The signature link style */
.lc-caret { display: inline-flex; align-items: center; gap: 8px; color: var(--lc-white); font-size: 17px; font-weight: 600; text-decoration: none; white-space: nowrap; text-shadow: var(--lc-shadow-text); }
.lc-caret::after { content: ""; width: 0; height: 0; border-block: 6px solid transparent; border-left: 7px solid currentColor; transition: transform .18s var(--lc-ease); }
.lc-caret:hover::after { transform: translateX(3px); }
.lc-caret--red { color: var(--lc-red); text-shadow: none; }

/* Stage: the full-bleed hero. A drawn scene, a left shade, copy on the left and a docked panel on the right */
.lc-stage { position: relative; overflow: hidden; min-height: 680px; display: flex; align-items: center; isolation: isolate; background: var(--lc-black); }
.lc-stage__scene { position: absolute; inset: 0; z-index: -2; }
.lc-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lc-shade); }
.lc-stage::after { content: ""; position: absolute; inset: auto 0 0; height: 120px; z-index: -1; background: linear-gradient(transparent, var(--lc-black)); }
.lc-stage__copy { width: min(100% - 2 * var(--lc-gutter), 700px); margin-left: var(--lc-gutter); padding-block: 140px 200px; }
.lc-stage--short { min-height: 420px; }
.lc-stage--short .lc-stage__copy { padding-block: 130px 90px; }

/* Docked panel: dark glass, flush to the right edge, a red quote mark at the top right */
.lc-dock { position: absolute; right: 0; bottom: 96px; width: min(720px, 52%); padding: 30px 84px 30px 36px; background: var(--lc-glass); backdrop-filter: blur(6px); }
.lc-dock__mark { position: absolute; top: 22px; right: 26px; color: var(--lc-red); font-size: 54px; font-weight: 800; line-height: .8; font-family: Georgia, serif; }
.lc-dock p { margin: 0; font-size: 18px; line-height: 1.5; }
.lc-dock__by { display: flex; gap: 12px; margin-top: 14px; font-size: 17px; }
.lc-dock__by strong { font-weight: 700; }
.lc-dock__by span { color: var(--lc-soft); }
@media (max-width: 900px) {
  .lc-stage { flex-direction: column; align-items: stretch; min-height: 0; }
  .lc-stage__copy { padding-block: 120px 40px; }
  .lc-dock { position: relative; bottom: auto; width: auto; margin: 0 0 40px var(--lc-gutter); padding: 24px 64px 24px 22px; }
}

/* Ticket rail: kitchen-pass style tickets hanging from a steel bar. Draw any queue with it */
.lc-rail { position: relative; display: flex; gap: 18px; padding-top: 22px; }
.lc-rail::before { content: ""; position: absolute; inset: 8px -40px auto; height: 8px; border-radius: 4px; background: linear-gradient(#7b7e86, var(--lc-steel) 60%, #2c2e33); }
.lc-ticket { position: relative; width: 150px; flex: none; padding: 16px 14px 18px; border-radius: 2px; background: #efe9dc; color: #1b1a18; font-family: var(--lc-mono); font-size: 11.5px; line-height: 1.55; transform: rotate(var(--tilt, 0deg)); transform-origin: top center; box-shadow: 0 18px 30px rgba(0, 0, 0, .45); }
.lc-ticket::before { content: ""; position: absolute; top: -8px; left: 50%; width: 26px; height: 12px; margin-left: -13px; border-radius: 2px; background: #9a9da5; }
.lc-ticket b { display: block; margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px dashed #b9b2a3; font-weight: 500; }
.lc-ticket__fire { color: var(--lc-red); font-weight: 500; }

/* Logo row: plain wordmarks in soft gray */
.lc-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; padding-block: 40px; color: var(--lc-soft); font-size: 20px; font-weight: 800; letter-spacing: -.01em; }

/* Lesson card: a video thumbnail with chapter time, a title and a progress bar */
.lc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.lc-lesson { display: flex; flex-direction: column; border: var(--lc-border); border-radius: var(--lc-radius-lg); background: var(--lc-coal); overflow: hidden; text-decoration: none; transition: border-color .18s var(--lc-ease); }
.lc-lesson:hover { border-color: var(--lc-line-2); }
.lc-lesson__thumb { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(90% 120% at 30% 100%, rgba(232, 135, 58, .45), transparent 60%), linear-gradient(160deg, #2a2a30, #121215); }
.lc-lesson__thumb::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: -12px 0 0 -7px; border-block: 12px solid transparent; border-left: 18px solid var(--lc-white); opacity: .9; }
.lc-lesson__time { position: absolute; right: 10px; bottom: 10px; padding: 2px 7px; border-radius: var(--lc-radius-sm); background: rgba(0, 0, 0, .72); font-family: var(--lc-mono); font-size: 11px; }
.lc-lesson__body { padding: 18px 20px 22px; }
.lc-lesson__title { margin: 6px 0 6px; font-size: 19px; font-weight: 700; line-height: 1.3; }
.lc-lesson__text { margin: 0; color: var(--lc-soft); font-size: 15px; }
.lc-progress { height: 4px; margin-top: 16px; border-radius: 2px; background: var(--lc-line); overflow: hidden; }
.lc-progress i { display: block; height: 100%; background: var(--lc-red); }

/* Path: a numbered vertical route through a course */
.lc-path { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.lc-path li { position: relative; display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; align-items: baseline; padding: 22px 0; border-bottom: var(--lc-border); counter-increment: step; }
.lc-path li::before { content: counter(step, decimal-leading-zero); color: var(--lc-red); font-family: var(--lc-mono); font-size: 14px; }
.lc-path h3 { margin: 0; font-size: 20px; font-weight: 700; }
.lc-path p { margin: 4px 0 0; color: var(--lc-soft); font-size: 15px; }
.lc-path .lc-mono { white-space: nowrap; }
@media (max-width: 560px) { .lc-path li { grid-template-columns: 40px 1fr; } .lc-path li .lc-mono { grid-column: 2; } }

/* Teacher card: a drawn portrait tile, name and kitchen */
.lc-teacher { display: flex; gap: 16px; align-items: center; padding: 18px; border: var(--lc-border); border-radius: var(--lc-radius-lg); background: var(--lc-coal); }
.lc-avatar { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: var(--lc-radius); background: var(--lc-coal-2); color: var(--lc-white); font-weight: 800; font-size: 18px; border: 1px solid var(--lc-line-2); }
.lc-avatar--sm { width: 38px; height: 38px; font-size: 14px; }
.lc-teacher strong { display: block; font-size: 17px; }
.lc-teacher span { color: var(--lc-soft); font-size: 14px; }

/* Stats: big heavy numbers with a short gray label */
.lc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 28px; }
.lc-stat strong { display: block; font-size: clamp(38px, 4.4vw, 56px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.lc-stat span { display: block; margin-top: 8px; color: var(--lc-soft); font-size: 15px; }

/* Badge: small mono labels */
.lc-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid var(--lc-line-2); border-radius: var(--lc-radius-sm); color: var(--lc-soft); font-family: var(--lc-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.lc-badge--red { border-color: var(--lc-red); background: var(--lc-red); color: var(--lc-white); }

/* Pricing */
.lc-toggle { display: inline-flex; padding: 4px; border: var(--lc-border); border-radius: var(--lc-radius); background: var(--lc-coal); }
.lc-toggle button { padding: 8px 18px; border: 0; border-radius: var(--lc-radius-sm); background: none; color: var(--lc-soft); font: 600 15px var(--lc-sans); cursor: pointer; white-space: nowrap; }
.lc-toggle button[aria-pressed="true"] { background: var(--lc-white); color: var(--lc-black); }
.lc-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; align-items: stretch; }
.lc-plan { display: flex; flex-direction: column; padding: 30px 28px; border: var(--lc-border); border-radius: var(--lc-radius-lg); background: var(--lc-coal); }
.lc-plan--featured { border-color: var(--lc-red); box-shadow: inset 0 3px 0 var(--lc-red); }
.lc-plan__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lc-plan__name { margin: 0; font-size: 22px; font-weight: 800; }
.lc-plan__desc { margin: 8px 0 0; color: var(--lc-soft); font-size: 15px; }
.lc-plan__price { margin: 24px 0 4px; font-size: 48px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.lc-plan__price small { color: var(--lc-soft); font-size: 16px; font-weight: 500; letter-spacing: 0; }
.lc-plan__list { flex: 1; margin: 22px 0 26px; padding: 22px 0 0; border-top: var(--lc-border); list-style: none; }
.lc-plan__list li { position: relative; padding: 5px 0 5px 22px; font-size: 15px; }
.lc-plan__list li::before { content: ""; position: absolute; left: 2px; top: 12px; border-block: 5px solid transparent; border-left: 6px solid var(--lc-red); }
.lc-table-wrap { overflow-x: auto; border: var(--lc-border); border-radius: var(--lc-radius-lg); }
.lc-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.lc-table th, .lc-table td { padding: 14px 18px; border-bottom: var(--lc-border); text-align: left; }
.lc-table thead th { background: var(--lc-coal-2); font-weight: 700; }
.lc-table tbody tr:last-child td { border-bottom: 0; }
.lc-table td:not(:first-child), .lc-table th:not(:first-child) { text-align: center; }
.lc-table__yes { color: var(--lc-red); font-weight: 800; }
.lc-table__no { color: var(--lc-faint); }
.lc-faq details { border-bottom: var(--lc-border); }
.lc-faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 18px; font-weight: 700; list-style: none; cursor: pointer; }
.lc-faq summary::-webkit-details-marker { display: none; }
.lc-faq summary::after { content: ""; flex: none; margin-top: 8px; border-inline: 6px solid transparent; border-top: 7px solid var(--lc-red); transition: transform .18s var(--lc-ease); }
.lc-faq details[open] summary::after { transform: rotate(180deg); }
.lc-faq p { margin: 0 0 22px; color: var(--lc-soft); }

/* Article */
.lc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--lc-soft); font-size: 14px; }
.lc-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--lc-faint); }
.lc-author { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.lc-author strong { display: block; font-size: 16px; }
.lc-author--card { margin-top: 56px; padding: 26px; border: var(--lc-border); border-left: 3px solid var(--lc-red); border-radius: var(--lc-radius); background: var(--lc-coal); align-items: flex-start; }
.lc-author--card p { margin: 6px 0 0; color: var(--lc-soft); font-size: 15px; }
.lc-prose { font-size: 18px; line-height: 1.75; color: #dedbd5; }
.lc-prose > * + * { margin-top: 1.1em; }
.lc-prose h2 { margin-top: 2em; color: var(--lc-white); font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.lc-prose h3 { margin-top: 1.6em; color: var(--lc-white); font-size: 21px; font-weight: 700; }
.lc-prose p { margin-bottom: 0; }
.lc-prose a { color: var(--lc-white); text-decoration-color: var(--lc-red); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.lc-prose ul { padding-left: 0; list-style: none; }
.lc-prose ul li { position: relative; padding-left: 24px; }
.lc-prose ul li + li { margin-top: .4em; }
.lc-prose ul li::before { content: ""; position: absolute; left: 2px; top: .62em; border-block: 5px solid transparent; border-left: 7px solid var(--lc-red); }
.lc-prose blockquote { position: relative; margin: 2em 0; padding: 26px 70px 26px 28px; background: var(--lc-coal-2); color: var(--lc-white); font-size: 22px; font-weight: 600; line-height: 1.45; }
.lc-prose blockquote::after { content: "\201C"; position: absolute; top: 18px; right: 22px; color: var(--lc-red); font: 800 54px/0.9 Georgia, serif; }
.lc-prose code { padding: 2px 6px; border-radius: var(--lc-radius-sm); background: var(--lc-coal-2); font-family: var(--lc-mono); font-size: .82em; }
.lc-prose pre { overflow-x: auto; padding: 20px 22px; border: var(--lc-border); border-radius: var(--lc-radius); background: #09090a; font-family: var(--lc-mono); font-size: 14px; line-height: 1.7; }
.lc-prose pre code { padding: 0; background: none; font-size: inherit; }
.lc-prose figure { margin: 2em 0; }
.lc-prose figcaption { margin-top: 10px; color: var(--lc-soft); font-size: 14px; }
.lc-callout { padding: 18px 22px; border: 1px solid var(--lc-red); border-radius: var(--lc-radius); background: var(--lc-red-soft); font-size: 16px; line-height: 1.6; }
.lc-callout strong { color: var(--lc-white); }

/* Forms */
.lc-form { display: grid; gap: 18px; }
.lc-field { display: grid; gap: 7px; }
.lc-label { font-size: 14px; font-weight: 600; }
.lc-input, .lc-select { width: 100%; padding: 13px 14px; border: 1px solid var(--lc-line-2); border-radius: var(--lc-radius); background: var(--lc-coal-2); color: var(--lc-white); font: 400 16px var(--lc-sans); appearance: none; }
.lc-input::placeholder { color: var(--lc-faint); }
.lc-input:focus, .lc-select:focus { outline: 0; border-color: var(--lc-white); box-shadow: 0 0 0 3px rgba(245, 243, 239, .14); }
.lc-select { background-image: linear-gradient(45deg, transparent 50%, var(--lc-soft) 50%), linear-gradient(135deg, var(--lc-soft) 50%, transparent 50%); background-position: calc(100% - 20px) 54%, calc(100% - 15px) 54%; background-size: 5px 5px; background-repeat: no-repeat; }
.lc-input-wrap { position: relative; }
.lc-input-wrap .lc-input { padding-right: 70px; }
.lc-input-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 6px 8px; border: 0; background: none; color: var(--lc-soft); font: 600 13px var(--lc-sans); cursor: pointer; }
.lc-help { color: var(--lc-faint); font-size: 13px; }
.lc-error { color: #ff6b5f; font-size: 13px; font-weight: 600; }
.lc-field--error .lc-input { border-color: var(--lc-red); }
.lc-check { display: flex; gap: 12px; align-items: flex-start; color: var(--lc-soft); font-size: 14px; line-height: 1.5; cursor: pointer; }
.lc-check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--lc-red); }
.lc-btn--social { gap: 10px; border-color: var(--lc-line-2); background: var(--lc-coal-2); color: var(--lc-white); font-size: 15px; }
.lc-btn--social:hover { border-color: var(--lc-white); }
.lc-btn__letter { display: grid; place-items: center; width: 22px; height: 22px; border-radius: var(--lc-radius-sm); background: var(--lc-white); color: var(--lc-black); font-size: 12px; font-weight: 800; }
.lc-divider-text { display: flex; align-items: center; gap: 14px; color: var(--lc-faint); font-size: 13px; }
.lc-divider-text::before, .lc-divider-text::after { content: ""; flex: 1; height: 1px; background: var(--lc-line); }

/* Footer */
.lc-footer { padding: 64px 0 34px; border-top: var(--lc-border); background: var(--lc-black); font-size: 15px; }
.lc-footer__cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
.lc-footer__cols h4 { margin: 0 0 14px; font-family: var(--lc-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--lc-faint); }
.lc-footer__cols ul { margin: 0; padding: 0; list-style: none; }
.lc-footer__cols li + li { margin-top: 9px; }
.lc-footer__cols a { color: var(--lc-soft); text-decoration: none; }
.lc-footer__cols a:hover { color: var(--lc-white); }
.lc-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 52px; padding-top: 24px; border-top: var(--lc-border); color: var(--lc-faint); font-size: 13px; }
@media (max-width: 760px) { .lc-footer__cols { grid-template-columns: 1fr 1fr; } }

/* Motion */
.lc-rise { animation: lc-rise .7s var(--lc-ease) both; }
@keyframes lc-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lc-rise { animation: none; } .lc * { transition: none !important; } }
