:root {
  --bg: #FFFFFF;
  --bg-soft: #F7F8FA;
  --border: #E2E5EA;
  --text: #101317;
  --text-muted: #6B7280;
  --text-faint: #5B6371;
  --accent: #2252CC;
  --accent-dark: #163a94;
  --gutter: clamp(20px, 5.5vw, 48px);
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Work Sans', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
img, svg { max-width: 100%; }
.container { max-width: 1160px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter); border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.nav-brand span { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 16px; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-back { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.nav-back:hover { color: var(--text); }
.nav-toggle-input { display: none; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 34px; height: 34px; cursor: pointer; flex-shrink: 0; background: none; border: none; padding: 0;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle-input:checked ~ .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle-input:checked ~ .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-toggle-input:checked ~ .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.btn-outline {
  border: 1px solid var(--accent); color: var(--accent);
  padding: 9px 18px; border-radius: 100px; font-size: 13px; font-weight: 600;
  white-space: nowrap;
}
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-primary {
  background: var(--accent); color: #fff;
  padding: 14px 26px; border-radius: 100px; font-size: 15px; font-weight: 600;
  display: inline-block;
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; }

/* Hero card (photo banner with overlaid text) */
.hero-wrap { padding: 32px var(--gutter) 88px; }
.hero-card {
  position: relative; max-width: 1160px; margin: 0 auto; border-radius: 20px; overflow: hidden;
  height: clamp(440px, 56vw, 660px); border: 1px solid var(--border);
}
.hero-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,10,14,0.85) 0%, rgba(8,10,14,0.5) 38%, rgba(8,10,14,0) 68%);
}
.hero-content {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 40px 40px 44px; max-width: 640px;
  display: flex; flex-direction: column; gap: 16px;
}
.hero-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.85); }
.hero-content h1 {
  margin: 0; font-family: 'Sora', sans-serif; font-weight: 700; color: #fff;
  font-size: clamp(28px, 4.2vw, 42px); line-height: 1.15; letter-spacing: -0.015em;
}
.hero-content p { margin: 0; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,0.82); max-width: 480px; }
.hero-cta { display: flex; align-items: center; gap: 16px; margin-top: 4px; flex-wrap: wrap; }
.hero-chips { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px; padding: 6px 12px;
}
.hero-chip svg { width: 13px; height: 13px; color: #fff; flex-shrink: 0; }
.btn-outline-light {
  border: 1px solid rgba(255,255,255,0.6); color: #fff;
  padding: 13px 24px; border-radius: 100px; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.14); color: #fff; }

/* Section header */
.section-head { max-width: 560px; margin: 0 auto; text-align: center; }
.section-tag { display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.section-tag .mono { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--accent); }
.section-tag .label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.section-head h2 { margin: 14px 0 0; font-family: 'Sora', sans-serif; font-weight: 600; font-size: clamp(24px, 4vw, 32px); letter-spacing: -0.01em; }
.section-head p { margin: 16px 0 0; font-size: 15px; line-height: 1.65; color: var(--text-muted); }
.section-head.left { margin: 0; text-align: left; }

/* Portfolio */
.portfolio { background: var(--bg-soft); }
.portfolio-inner { padding-top: 88px; padding-bottom: 88px; }
.port-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; margin-top: 48px; }
.highlights { margin-top: 4px; font-size: 12.5px; color: var(--text-faint); }
.tech-card {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: 8px;
  display: flex; flex-direction: column; gap: 16px; padding: 26px;
}
.tech-card::before, .tech-card::after {
  content: ""; position: absolute; width: 9px; height: 9px; border-color: var(--accent); border-style: solid; border-width: 0; z-index: 1;
}
.tech-card::before { top: -1px; left: -1px; border-top-width: 1.5px; border-left-width: 1.5px; }
.tech-card::after { bottom: -1px; right: -1px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.tech-card.muted::before, .tech-card.muted::after { border-color: #C7CBD3; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-icon { width: 46px; height: 46px; border-radius: 11px; border: 1px solid var(--border); overflow: hidden; flex-shrink: 0; }
.app-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.status-mono { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.04em; white-space: nowrap; }
.status-live { color: var(--accent); }
.status-pending { color: #9AA3B2; }
.tech-card .name { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 17px; }
.tech-card .name.muted-text { color: #9CA3AF; }
.tech-card .desc { margin-top: 6px; font-size: 13px; line-height: 1.55; color: var(--text-muted); }
.tech-card .desc.muted-text { color: #AEB4BD; }
.tech-card .link { font-size: 13px; font-weight: 600; }
.link-row { display: flex; align-items: center; gap: 18px; }
.link-row .secondary-link { font-size: 13px; font-weight: 500; color: var(--text-faint); }
.link-row .secondary-link:hover { color: var(--text-muted); }

/* Homepage Academy promo band */
.academy-band { padding: 88px 0; }
.academy-promo {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 0;
  margin-top: 48px; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; background: #fff;
  box-shadow: 0 20px 48px rgba(16,19,23,0.08); transition: box-shadow 0.25s ease;
}
.academy-promo:hover { box-shadow: 0 26px 60px rgba(16,19,23,0.12); }
.academy-promo-media { position: relative; min-height: 320px; background: var(--bg-soft); }
.academy-promo-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.academy-promo-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(16,19,23,0.55) 0%, rgba(16,19,23,0) 34%);
}
.academy-promo-price-tag {
  position: absolute; left: 20px; bottom: 20px; z-index: 1; display: flex; flex-direction: column; gap: 2px;
  background: #fff; color: var(--text); font-family: 'Sora', sans-serif; font-weight: 800; font-size: 19px;
  padding: 11px 18px; border-radius: 12px; box-shadow: 0 10px 28px rgba(16,19,23,0.28);
}
.academy-promo-price-tag .from { font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--text-faint); }
.academy-promo-price-tag .unit { font-family: 'Work Sans', sans-serif; font-weight: 500; font-size: 12px; color: var(--text-faint); }
.academy-promo-body { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.academy-promo-body .path-name { margin-bottom: 4px; }
.academy-promo-list { list-style: none; margin: 18px 0 28px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.academy-promo-list li { font-size: 14px; line-height: 1.5; color: var(--text-muted); display: flex; align-items: flex-start; gap: 10px; }
.academy-promo-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 7px; flex-shrink: 0; }
.academy-promo-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.academy-promo-cta .link { white-space: nowrap; }
@media (max-width: 800px) {
  .academy-promo { grid-template-columns: 1fr; }
  .academy-promo-media { min-height: 220px; }
  .academy-promo-body { padding: 32px 28px; }
}

/* App detail hero */
.app-hero {
  position: relative; max-width: 720px; margin: 0 auto; padding: 88px var(--gutter) 64px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px;
  overflow: hidden;
}
.app-hero::before {
  content: ""; position: absolute; top: -140px; left: 50%; transform: translateX(-50%);
  width: 640px; height: 420px; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(34,82,204,0.13) 0%, rgba(34,82,204,0) 70%);
}
.app-hero-bg {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-repeat: no-repeat; background-position: center; background-size: cover;
}
.app-hero-bg.planecalc { background-image: url('/assets/patterns/planecalc-bg.svg'); }
.app-hero-bg.cirrus { background-image: url('/assets/patterns/cirrus-bg.svg'); }
.app-hero-bg.aelog { background-image: url('/assets/patterns/aelog-bg.svg'); }
.app-hero-bg.notam { background-image: url('/assets/patterns/notam-bg.svg'); }
.app-hero > *:not(.app-hero-bg) { position: relative; z-index: 1; }
.app-hero .app-icon {
  width: 92px; height: 92px; border-radius: 22px;
  box-shadow: 0 12px 28px rgba(16,19,23,0.10), 0 1px 2px rgba(16,19,23,0.06);
}
.app-hero h1 { margin: 0; font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(30px, 5vw, 42px); letter-spacing: -0.015em; }
.app-hero .tagline { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text-muted); max-width: 480px; }
.app-hero .meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--text-faint); }

/* Screenshots */
.screens { padding: 0 0 88px; }
.screens-track { display: flex; justify-content: center; gap: 18px; overflow-x: auto; padding: 4px var(--gutter) 12px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.screens-track::-webkit-scrollbar { height: 6px; }
.screens-track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 100px; }
.screen-frame {
  flex: 0 0 auto; width: 220px; border-radius: 22px; overflow: hidden; border: 1px solid var(--border);
  scroll-snap-align: start; background: var(--bg-soft);
}
.screen-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Detail / spec sections */
.detail { padding-bottom: 88px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); margin-top: 40px; }
.detail-cell { background: #fff; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.detail-cell .idx { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-faint); }
.detail-cell svg { color: var(--accent); }
.detail-cell .title { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15.5px; }
.detail-cell .desc { font-size: 13.5px; line-height: 1.6; color: var(--text-muted); }

.spec-band {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 1px; border: 1px solid var(--border); border-top: none; background: #fff; padding: 20px 24px;
}
.spec-band .codes { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--text-muted); }
.spec-band .codes span { color: var(--text-faint); }
.spec-tag {
  padding: 8px 14px; border: 1px solid var(--accent); border-radius: 100px; color: var(--accent);
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; white-space: nowrap;
}

/* Aircraft gallery */
.gallery-head { max-width: 640px; margin: 0 auto; text-align: center; padding: 72px var(--gutter) 8px; }
.gallery-count { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--accent); }
.gallery-head h1 { margin: 14px 0 0; font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(28px, 4.5vw, 40px); letter-spacing: -0.01em; }
.gallery-head p { margin: 16px 0 0; font-size: 15px; line-height: 1.7; color: var(--text-muted); }
.gallery-stats {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 20px;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--text-faint);
}
.gallery-stats span.sep { color: var(--border); }

.gallery-controls {
  position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,0.92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border); padding: 16px 0; margin-top: 40px;
}
.gallery-controls-inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: space-between; }
.filter-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-tab {
  border: 1px solid var(--border); background: #fff; color: var(--text-muted);
  padding: 7px 14px; border-radius: 100px; font-size: 12.5px; font-weight: 600; cursor: pointer;
  font-family: inherit;
}
.filter-tab:hover { border-color: var(--accent); color: var(--accent); }
.filter-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.filter-tab .count { opacity: 0.7; font-weight: 500; }
.search-input {
  border: 1px solid var(--border); border-radius: 100px; padding: 8px 16px; font-size: 13px;
  font-family: 'Work Sans', sans-serif; color: var(--text); min-width: 200px; background: #fff;
}
.search-input:focus { outline: none; border-color: var(--accent); }
.no-results { text-align: center; padding: 48px 24px; color: var(--text-faint); font-size: 14px; display: none; }

.aircraft-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px;
  padding: 40px 0 96px;
}
.aircraft-card {
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff;
  padding: 0; text-align: left; cursor: pointer; font-family: inherit; display: block; width: 100%;
  transition: border-color .15s ease, transform .15s ease;
}
.aircraft-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.aircraft-card[hidden] { display: none; }
.aircraft-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); }
.aircraft-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aircraft-card .card-body { padding: 12px 14px; }
.aircraft-card .label { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 14px; }
.aircraft-card .spec-line { margin-top: 3px; font-size: 12px; color: var(--text-faint); }

/* Aircraft detail modal */
.plane-modal-backdrop {
  position: fixed; inset: 0; background: rgba(8,10,14,0.55); z-index: 50;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.plane-modal-backdrop[hidden] { display: none; }
.plane-modal {
  background: #fff; border-radius: 16px; max-width: 560px; width: 100%; max-height: 90vh; overflow: auto;
  position: relative;
}
.plane-modal .thumb { aspect-ratio: 16 / 9; background: var(--bg-soft); }
.plane-modal .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plane-modal-close {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 100px;
  background: rgba(255,255,255,0.92); border: none; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text);
}
.plane-modal-body { padding: 24px 28px 28px; }
.plane-modal-cat { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--accent); }
.plane-modal-body h2 { margin: 10px 0 16px; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 24px; }
.plane-modal-specs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.plane-modal-specs div { border-top: 1px solid var(--border); padding-top: 10px; }
.plane-modal-specs .k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); }
.plane-modal-specs .v { margin-top: 4px; font-size: 14px; font-weight: 600; }
.plane-modal-note { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* Premium upsell band (deep navy, full-bleed) */
.premium-band {
  --pb-bg: #0A1428;
  --pb-elev: #101E38;
  --pb-border: #1E3155;
  --pb-muted: #8D9BBD;
  background: linear-gradient(180deg, #0C1830 0%, #0A1428 55%, #091223 100%);
  color: #F5F6F7; width: 100vw; position: relative;
  left: 50%; transform: translateX(-50%); padding: 96px 0; margin-bottom: 88px;
}
.premium-head { max-width: 600px; margin: 0 auto; text-align: center; }
.premium-badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 100px;
  background: rgba(66,120,255,0.18); border: 1px solid rgba(66,120,255,0.4);
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; color: #F5F6F7;
}
.premium-badge svg { color: #6E93FF; }
.premium-head h2 { margin: 16px 0 0; font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(28px, 4.5vw, 38px); letter-spacing: -0.01em; }
.premium-head p { margin: 14px 0 0; font-size: 15px; line-height: 1.65; color: var(--pb-muted); }

.premium-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 1px;
  background: var(--pb-border); border: 1px solid var(--pb-border); margin-top: 56px;
}
.premium-cell { background: var(--pb-elev); padding: 26px 20px; display: flex; flex-direction: column; gap: 12px; }
.premium-cell svg { color: #6E93FF; }
.premium-cell .title { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 14.5px; color: #F5F6F7; }
.premium-cell .desc { font-size: 12.5px; line-height: 1.55; color: var(--pb-muted); }

.premium-pricing { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; max-width: 620px; margin: 56px auto 0; }
.premium-pricing.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); max-width: 860px; }
@media (max-width: 900px) {
  .premium-pricing.cols-3 { grid-template-columns: repeat(2, minmax(0,1fr)); max-width: 620px; }
}
@media (max-width: 640px) {
  .premium-pricing.cols-3 { grid-template-columns: 1fr; }
}
.price-card { position: relative; border: 1px solid var(--pb-border); border-radius: 14px; padding: 28px; background: var(--pb-elev); text-align: center; }
.price-card.highlight { border-color: #4A78FF; box-shadow: 0 0 0 1px rgba(74,120,255,0.25), 0 16px 40px rgba(10,20,50,0.45); }
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: #2252CC; color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px;
  border-radius: 100px; font-family: 'IBM Plex Mono', monospace; white-space: nowrap;
}
.price-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--pb-muted); }
.price-value { margin-top: 10px; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 30px; color: #fff; }
.price-value span { font-size: 14px; font-weight: 500; color: var(--pb-muted); }
.price-sub { margin-top: 8px; font-size: 12.5px; color: var(--pb-muted); }

.premium-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 40px; }
.premium-cta .secondary-link-light { font-size: 13px; color: var(--pb-muted); }
.premium-cta .secondary-link-light:hover { color: #F5F6F7; }

/* Two-plan comparison (PPL / ATPL) */
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; max-width: 820px; margin: 56px auto 0; }
.plan-card {
  position: relative; border: 1px solid var(--pb-border); border-radius: 16px; padding: 32px 28px;
  background: var(--pb-elev); display: flex; flex-direction: column; gap: 22px;
}
.plan-card.highlight { border-color: #4A78FF; box-shadow: 0 0 0 1px rgba(74,120,255,0.25), 0 16px 40px rgba(10,20,50,0.45); }
.plan-card.pending { border-style: dashed; }
.plan-badge {
  position: absolute; top: -13px; left: 28px; background: #2252CC; color: #fff;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 5px 13px; border-radius: 100px; font-family: 'IBM Plex Mono', monospace; white-space: nowrap;
}
.plan-badge.soon { background: var(--pb-border); color: var(--pb-muted); }
.plan-head { padding-top: 6px; }
.plan-name { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 20px; color: #fff; }
.plan-sub { font-size: 12.5px; color: var(--pb-muted); margin-top: 4px; line-height: 1.5; }
.plan-price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan-price { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 32px; color: #fff; }
.plan-price span { font-size: 13px; font-weight: 500; color: var(--pb-muted); }
.plan-price-strike { font-size: 15px; color: var(--pb-muted); text-decoration: line-through; }
.plan-price-soon { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 22px; color: var(--pb-muted); }
.plan-discount-note { font-size: 12px; color: #6E93FF; }
.plan-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.plan-features li { font-size: 13px; color: #F5F6F7; display: flex; align-items: flex-start; gap: 9px; line-height: 1.5; }
.plan-features li svg { flex-shrink: 0; margin-top: 2px; color: #6E93FF; width: 15px; height: 15px; }
.plan-features li.muted { color: var(--pb-muted); }
.plan-features li.muted svg { color: var(--pb-muted); }
.plan-card .btn-primary, .plan-card .btn-outline-light { width: 100%; text-align: center; }
@media (max-width: 700px) {
  .plan-grid { grid-template-columns: 1fr; }
}

.plan-grid.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); max-width: 1080px; }
@media (max-width: 900px) {
  .plan-grid.cols-3 { grid-template-columns: repeat(2, minmax(0,1fr)); max-width: 820px; }
}
@media (max-width: 700px) {
  .plan-grid.cols-3 { grid-template-columns: 1fr; }
}

/* Simple article pages (FAQ / CGU / CGV) */
.article { max-width: 760px; margin: 0 auto; padding: 72px var(--gutter) 96px; }
.article .eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.article h1 { margin: 14px 0 8px; font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(28px, 4.5vw, 38px); letter-spacing: -0.01em; }
.article .updated { font-size: 13px; color: var(--text-faint); margin: 0 0 40px; }
.article h2 { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 20px; margin: 40px 0 12px; }
.article p { font-size: 15px; line-height: 1.75; color: var(--text-muted); margin: 0 0 14px; }
.article ul { margin: 0 0 14px; padding-left: 20px; color: var(--text-muted); font-size: 15px; line-height: 1.75; }
.article li { margin-bottom: 4px; }
.article a { font-weight: 600; }
.faq-item { border-top: 1px solid var(--border); padding: 22px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item h2 { margin: 0 0 8px; font-size: 16.5px; }
.faq-item p { margin: 0; }

/* Guide extras: callouts, code blocks, cross-link card */
.callout { border: 1px solid var(--border); border-radius: 8px; padding: 18px 22px; background: var(--bg-soft); margin: 20px 0; }
.callout .callout-label { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.callout p { margin: 0; font-size: 14px; color: var(--text); }
.code-block {
  font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; line-height: 1.8; color: var(--text);
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px;
  padding: 16px 18px; overflow-x: auto; margin: 20px 0; white-space: pre;
}
.article table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 13.5px; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.article th { font-family: 'IBM Plex Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-faint); font-weight: 600; }
.guide-app-card {
  display: flex; align-items: center; gap: 16px; border: 1px solid var(--border); border-radius: 10px;
  padding: 20px 22px; margin: 40px 0 0;
}
.guide-app-card .app-icon { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; }
.guide-app-card .body { flex: 1; min-width: 0; }
.guide-app-card .body .name { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15px; color: var(--text); }
a.guide-app-card:hover { border-color: var(--accent); }
.guide-app-card .body p { margin: 3px 0 0; font-size: 13px; color: var(--text-muted); }
.guide-app-card .link { font-size: 13px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
@media (max-width: 560px) {
  .guide-app-card { flex-wrap: wrap; }
  .guide-app-card .body { flex-basis: 100%; }
  .guide-app-card .link { margin-left: 60px; }
}

/* In-lesson interactive mini-tools (cross-promote apps) */
.app-tool { border: 1px solid var(--border); border-radius: 12px; padding: 26px 24px; margin: 32px 0; background: var(--bg-soft); }
.app-tool-eyebrow { display: flex; align-items: center; gap: 8px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); margin-bottom: 10px; }
.app-tool-eyebrow img { width: 18px; height: 18px; border-radius: 5px; }
.app-tool h3 { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 17px; margin: 0 0 6px; }
.app-tool-intro { font-size: 13.5px; color: var(--text-muted); margin: 0 0 18px; line-height: 1.6; }
.app-tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px 16px; margin-bottom: 18px; }
.app-tool-field label { display: block; font-size: 11.5px; color: var(--text-muted); margin-bottom: 5px; }
.app-tool-field .unit { color: var(--text-faint); font-weight: 400; }
.app-tool-field input[type="number"], .app-tool-field input[type="text"] { width: 100%; box-sizing: border-box; padding: 9px 10px; border: 1px solid var(--border); border-radius: 7px; font-family: 'IBM Plex Mono', monospace; font-size: 14px; background: #fff; color: var(--text); }
.app-tool-field input[type="number"]:focus, .app-tool-field input[type="text"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.app-tool-field.full { grid-column: 1 / -1; }
.app-tool-badge { display: inline-flex; align-items: center; padding: 5px 14px; border-radius: 999px; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 13px; margin-bottom: 14px; border: 1px solid; }
.app-tool-decode { margin: 4px 0 16px; border: 1px solid var(--border); border-radius: 9px; background: #fff; overflow: hidden; }
.app-tool-decode-row { display: flex; gap: 14px; align-items: flex-start; padding: 9px 14px; border-bottom: 1px solid var(--border); font-size: 13px; }
.app-tool-decode-row:last-child { border-bottom: none; }
.app-tool-decode-code { font-family: 'IBM Plex Mono', monospace; font-weight: 600; color: var(--accent); min-width: 118px; flex-shrink: 0; }
.app-tool-decode-desc { color: var(--text); }
.app-tool-decode-row.trend .app-tool-decode-code { color: #8A6100; }
.app-tool-decode-row.unmatched .app-tool-decode-code { color: var(--text-faint); }
.app-tool-decode-row.unmatched .app-tool-decode-desc { color: var(--text-faint); font-style: italic; }
.app-tool-figure { margin: 4px 0 18px; text-align: center; }
.app-tool-figure svg { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.app-tool-figure-caption { margin-top: 10px; font-size: 12px; color: var(--text-faint); }
.app-tool-result { display: flex; flex-wrap: wrap; gap: 22px; padding: 16px 18px; background: #fff; border: 1px solid var(--border); border-radius: 9px; margin-bottom: 12px; }
.app-tool-stat .k { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-faint); }
.app-tool-stat .v { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 19px; color: var(--text); margin-top: 2px; }
.app-tool-stat.ok .v { color: #1E7A45; }
.app-tool-stat.warn .v { color: #C22828; }
.app-tool-note { font-size: 12px; color: var(--text-faint); margin: 0 0 16px; }
.app-tool-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--border); }
.app-tool-cta .txt { font-size: 12.5px; color: var(--text-faint); }
.app-tool-cta a { font-size: 13px; font-weight: 600; white-space: nowrap; }

/* Need pill + hover lift for the app portfolio cards */
.need-pill {
  display: inline-block; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.03em; text-transform: uppercase; color: var(--accent);
  background: rgba(34,82,204,0.08); padding: 5px 10px; border-radius: 100px; margin-bottom: 12px;
}
.tech-card { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.tech-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(16,19,23,0.08); }

/* Changelog */
.changelog-item { display: flex; gap: 16px; border-top: 1px solid var(--border); padding: 28px 0; }
.changelog-item:last-child { border-bottom: 1px solid var(--border); }
.changelog-item .app-icon { width: 40px; height: 40px; border-radius: 9px; flex-shrink: 0; }
.changelog-item .ch-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.changelog-item .app-name { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15px; color: var(--text); }
.changelog-item .version, .changelog-item .date { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-faint); }
.changelog-item p { margin: 8px 0 0; font-size: 14px; line-height: 1.65; color: var(--text-muted); }

/* Resource hub */
.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; margin-top: 48px; }
.resource-card { border: 1px solid var(--border); border-radius: 10px; padding: 28px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.resource-card .tag { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; }
.resource-card h2 { margin: 0; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 18px; color: var(--text); }
.resource-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.resource-card .link { margin-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--accent); }
a.resource-card:hover { border-color: var(--accent); }

.actu-articles { margin-top: 56px; }
.actu-articles-title { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 22px; margin: 0 0 4px; }

/* Footer */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); margin-top: 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr repeat(5, 1fr); gap: 28px;
  padding-top: 64px; padding-bottom: 48px;
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; padding-right: 24px; }
.footer-logo { display: flex; align-items: center; gap: 9px; color: var(--text); }
.footer-logo img { display: block; }
.footer-logo span { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15px; }
.footer-brand p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-muted); max-width: 230px; }
.footer-col { display: flex; flex-direction: column; gap: 13px; min-width: 0; }
.footer-col-title {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 3px;
}
.footer-col a { font-size: 13.5px; color: var(--text-muted); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 22px; padding-bottom: 22px; border-top: 1px solid var(--border);
}
.footer-copy { font-size: 12.5px; color: var(--text-faint); }
.footer-top-link { font-size: 13px; font-weight: 600; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; padding-right: 0; }
  .footer-brand p { max-width: 420px; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); padding-top: 48px; padding-bottom: 32px; gap: 30px 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 18px; padding-bottom: 32px; }
}

/* Responsive */
@media (max-width: 1023px) {
  .screens-track { justify-content: flex-start; }
}
@media (max-width: 900px) {
  .port-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .premium-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .nav-links { gap: 20px; }
}
/* Academy (training course) */
.formation-hero { max-width: 720px; margin: 0 auto; text-align: center; padding: 72px var(--gutter) 8px; }
.formation-hero .gallery-count { display: block; margin-bottom: 14px; }
.formation-hero h1 { margin: 0; font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(28px, 4.5vw, 40px); letter-spacing: -0.01em; }
.formation-hero p { margin: 16px 0 0; font-size: 15px; line-height: 1.7; color: var(--text-muted); }

/* Subject hub page: photo band + floating stat cards */
.subject-photo-band { position: relative; width: 100%; height: 520px; overflow: hidden; background: var(--bg-soft); }
.subject-photo-band img { width: 100%; height: 100%; object-fit: cover; display: block; }
.subject-photo-fade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.55) 45%, rgba(255,255,255,0.94) 68%, #fff 82%); pointer-events: none; }
.subject-hero-text {
  position: absolute; top: 48px; left: 50%; transform: translateX(-50%); z-index: 1;
  max-width: 640px; width: calc(100% - 48px); text-align: center;
  background: #fff; border-radius: 18px; padding: 30px 36px; box-shadow: 0 16px 40px rgba(16,19,23,0.14);
}
.subject-hero-text .gallery-count { display: block; margin-bottom: 12px; }
.subject-hero-text h1 { margin: 0; font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(26px, 4.2vw, 36px); letter-spacing: -0.01em; }
.subject-hero-text p { margin: 14px 0 0; font-size: 14.5px; line-height: 1.7; color: var(--text-muted); }
.subject-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin: -100px 0 40px; position: relative; z-index: 2; }
.subject-stat {
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  box-shadow: 0 10px 26px rgba(16,19,23,0.07);
}
.subject-stat svg { width: 20px; height: 20px; color: var(--accent); }
.subject-stat-value { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 20px; color: var(--text); }
.subject-stat-label { font-family: 'IBM Plex Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-faint); }
@media (max-width: 640px) {
  .subject-photo-band { height: 620px; }
  .subject-hero-text { top: 28px; width: calc(100% - 28px); padding: 24px 22px; border-radius: 16px; }
  .subject-stats { grid-template-columns: 1fr; margin: -64px 0 32px; gap: 12px; }
}

/* PPL programme page: photo-led subject cards */
.subject-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; margin: 48px 0 56px; }
.subject-card {
  display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; background: #fff; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.subject-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(16,19,23,0.09); }
.subject-card-img { aspect-ratio: 4 / 3; background: var(--bg-soft); }
.subject-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.subject-card-icon {
  aspect-ratio: 16 / 7; background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
}
.subject-card-icon .path-icon { width: 52px; height: 52px; }
.subject-card.disabled { background: var(--bg-soft); }
.subject-card.disabled .subject-card-icon .path-icon { background: var(--border); color: #9AA3B2; }
.subject-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.subject-card .num { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-faint); }
.subject-card h2 { margin: 0; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 17px; }
.subject-card p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-muted); flex-grow: 1; }
.subject-card .row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; }
@media (max-width: 900px) {
  .subject-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .subject-grid { grid-template-columns: 1fr; gap: 18px; margin: 36px 0 48px; }
}

/* Academy landing: duo photo banner + PPL/ATPL path selector */
.academy-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 40px 0 72px; }
.academy-duo-img { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4 / 3; background: var(--bg-soft); }
.academy-duo-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) {
  .academy-duo { grid-template-columns: 1fr; margin: 28px 0 56px; }
}

.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 40px 0 96px; }
.path-card {
  display: flex; flex-direction: column; gap: 16px; position: relative;
  border: 1px solid var(--border); border-radius: 14px; padding: 32px 28px 28px; background: #fff;
}
a.path-card:hover { border-color: var(--accent); }
.path-card.disabled { background: var(--bg-soft); }
.path-card .status-mono { position: absolute; top: 30px; right: 28px; }
.path-icon {
  width: 52px; height: 52px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: rgba(34,82,204,0.08); color: var(--accent);
}
.path-card.disabled .path-icon { background: var(--border); color: #9AA3B2; }
.path-icon svg { width: 28px; height: 28px; }
.path-name { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 20px; display: flex; align-items: baseline; gap: 9px; color: var(--text); }
.path-name .path-sub { font-family: 'Work Sans', sans-serif; font-weight: 400; font-size: 13px; color: var(--text-muted); }
.path-card p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--text-muted); }
@media (max-width: 640px) {
  .path-grid { grid-template-columns: 1fr; margin: 32px 0 64px; }
  .path-card .status-mono { position: static; margin-top: -6px; }
}

/* 3-column variant (used instead of an inline style, so these media
   queries — not just the base rule — can actually override it on
   narrower screens; an inline style would out-rank them every time). */
.path-grid.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 900px) {
  .path-grid.cols-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .path-grid.cols-3 { grid-template-columns: 1fr; }
}

/* Academy landing: aggregate stats band */
.academy-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin: 40px 0 96px; }
.academy-stat { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 26px 16px; text-align: center; }
.academy-stat-value { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 28px; color: var(--accent); }
.academy-stat-label { margin-top: 6px; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-faint); }
@media (max-width: 900px) {
  .academy-stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 480px) {
  .academy-stats-grid { grid-template-columns: 1fr; }
}

.academy-stats-grid.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 700px) {
  .academy-stats-grid.cols-3 { grid-template-columns: 1fr; }
}

/* Academy landing: wide single-card banner (exam teaser) */
.path-card.wide {
  flex-direction: row; align-items: center; gap: 24px; margin: 40px 0 96px; padding: 30px 32px;
}
.path-card.wide .path-icon { margin: 0; }
.path-card.wide .path-card-body { flex: 1; }
.path-card.wide .status-mono { position: static; flex-shrink: 0; }
@media (max-width: 640px) {
  .path-card.wide { flex-direction: column; align-items: flex-start; gap: 16px; margin: 32px 0 64px; }
  .path-card.wide .status-mono { position: absolute; top: 30px; right: 28px; }
}

.module-list { margin: 40px 0 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.module-item { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.module-item:last-child { border-bottom: none; }
.module-item .mnum { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--text-faint); width: 22px; flex-shrink: 0; }
.module-item .mbody { flex: 1; }
.module-item .mbody .mtitle { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 14.5px; }
.module-item .mbody .mdesc { margin-top: 2px; font-size: 12.5px; color: var(--text-muted); }
.module-item.disabled .mtitle, .module-item.disabled .mnum { color: var(--text-faint); }
.module-item .marrow { flex-shrink: 0; font-size: 13px; font-weight: 600; }

.module-lock-badge {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.03em; padding: 3px 8px; border-radius: 100px; white-space: nowrap; flex-shrink: 0;
}
.module-lock-badge.locked { background: var(--border); color: var(--text-faint); }
.module-lock-badge.unlocked { background: rgba(30,122,69,0.12); color: #1E7A45; }

.subject-status-banner {
  display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 500;
  padding: 13px 22px; flex-wrap: wrap;
}
.subject-status-banner .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.subject-status-banner.locked { background: #FFF8EC; color: #8A5A00; }
.subject-status-banner.locked .dot { background: #D97706; }
.subject-status-banner.unlocked { background: rgba(30,122,69,0.08); color: #1E7A45; }
.subject-status-banner.unlocked .dot { background: #1E7A45; }
.subject-status-banner a { color: inherit; text-decoration: underline; font-weight: 700; }

.lesson-unlocked-badge {
  display: inline-flex; align-items: center; gap: 6px; font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
  padding: 5px 11px; border-radius: 100px; background: rgba(30,122,69,0.1); color: #1E7A45; margin-bottom: 14px;
}
.lesson-unlocked-badge.sample { background: var(--bg-soft); color: var(--text-faint); }

.qcm-status-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 14px 20px; border-radius: 12px; margin-bottom: 22px; font-size: 13px; font-weight: 500;
}
.qcm-status-banner.locked { background: #FFF8EC; color: #8A5A00; }
.qcm-status-banner.unlocked { background: rgba(30,122,69,0.08); color: #1E7A45; }
.qcm-status-banner a.btn-primary { flex-shrink: 0; padding: 8px 16px; font-size: 12.5px; }

.home-subscriber-card {
  display: flex; align-items: center; gap: 18px; padding: 22px 26px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(30,122,69,0.10), rgba(30,122,69,0.03));
  border: 1px solid rgba(30,122,69,0.25);
}
.home-subscriber-card .icon {
  width: 44px; height: 44px; border-radius: 12px; background: #1E7A45; color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.home-subscriber-card .icon svg { width: 22px; height: 22px; }
.home-subscriber-card .body { flex: 1; min-width: 0; }
.home-subscriber-card .name { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15px; color: var(--text); }
.home-subscriber-card p { margin: 4px 0 0; font-size: 13px; color: var(--text-muted); }
.home-subscriber-card .link { flex-shrink: 0; font-weight: 700; }
.home-subscriber-card[hidden] { display: none; }
#academyPricing[hidden] { display: none; }

/* Plan cards on the light homepage Academy band (they default to the dark premium palette) */
.academy-band .plan-card { background: #fff; border-color: var(--border); box-shadow: 0 6px 20px rgba(16,19,23,0.05); }
.academy-band .plan-card.highlight { border-color: #4A78FF; box-shadow: 0 0 0 1px rgba(74,120,255,0.25), 0 16px 40px rgba(34,82,204,0.12); }
.academy-band .plan-card.pending { background: var(--bg-soft); border: 1px dashed var(--border); box-shadow: none; }
.academy-band .plan-badge.soon { background: var(--border); color: var(--text-muted); }
.academy-band .plan-name,
.academy-band .plan-price { color: var(--text); }
.academy-band .plan-sub,
.academy-band .plan-price span,
.academy-band .plan-price-soon { color: var(--text-muted); }
.academy-band .plan-discount-note { color: var(--accent); }
.academy-band .plan-features li { color: var(--text); }
.academy-band .plan-features li svg { color: var(--accent); }
.academy-band .plan-features li.muted,
.academy-band .plan-features li.muted svg { color: var(--text-muted); }
.academy-band .plan-card .btn-outline-light { border-color: var(--border); color: var(--text); }
.academy-band .plan-card .btn-outline-light:hover { background: var(--bg-soft); color: var(--text); }
#academySubscriberCard { margin-top: 56px; }

@media (max-width: 560px) {
  .home-subscriber-card { flex-direction: column; align-items: flex-start; text-align: left; }
}

.lesson-meta { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--text-faint); margin-bottom: 6px; }
.lesson-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13.5px; }

.lesson-box { border-radius: 8px; padding: 18px 22px; margin: 24px 0; border: 1px solid; }
.lesson-box-label { display: flex; align-items: center; gap: 7px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.lesson-box-label svg { width: 16px; height: 16px; flex-shrink: 0; }
.lesson-box p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--text); }
.lesson-box p + p { margin-top: 8px; }
.lesson-box.retenir { background: rgba(34,82,204,0.05); border-color: rgba(34,82,204,0.3); }
.lesson-box.retenir .lesson-box-label { color: var(--accent); }
.lesson-box.important { background: rgba(200,40,40,0.05); border-color: rgba(200,40,40,0.3); }
.lesson-box.important .lesson-box-label { color: #C22828; }
.lesson-box.astuce { background: rgba(255,179,0,0.09); border-color: rgba(255,179,0,0.35); }
.lesson-box.astuce .lesson-box-label { color: #8A6100; }

.lesson-figure { margin: 28px 0; padding: 20px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.lesson-figure svg { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.lesson-figure figcaption { margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--text-faint); font-style: italic; }

/* Interactive altitude slider (ISA) */
.isa-slider-block { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--border); }
.isa-slider-block label { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; }
.isa-slider-block input[type="range"] { width: 100%; accent-color: var(--accent); }
.isa-readout { display: flex; gap: 28px; margin-top: 16px; flex-wrap: wrap; }
.isa-readout .stat .value { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 19px; color: var(--accent); }
.isa-readout .stat .label { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px; }

/* Guided step-by-step exercise */
.exercise-block { border: 1px solid var(--border); border-radius: 10px; padding: 22px 24px; margin: 32px 0; background: #fff; }
.exercise-block .exercise-tag { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); margin-bottom: 10px; }
.exercise-block .exercise-statement { font-size: 14.5px; line-height: 1.65; margin: 0 0 16px; }
.exercise-reveal-btn { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; font-weight: 600; color: #fff; background: var(--accent); border: none; border-radius: 6px; padding: 9px 16px; cursor: pointer; }
.exercise-reveal-btn:hover { background: var(--accent-dark); }
.exercise-steps { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border); display: flex; flex-direction: column; gap: 12px; }
.exercise-steps[hidden] { display: none; }
.exercise-step { display: flex; gap: 12px; align-items: flex-start; }
.exercise-step .step-num { font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.exercise-step p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--text); }
.exercise-result { margin: 0; font-size: 14px; font-weight: 600; color: var(--accent); }

/* End-of-module quiz */
.quiz-block { margin: 48px 0 8px; }
.quiz-block > h2 { margin-bottom: 6px; }
.quiz-block > .quiz-intro { margin: 0 0 24px; font-size: 13.5px; color: var(--text-muted); }
.quiz-question { border: 1px solid var(--border); border-radius: 10px; padding: 20px 22px; margin-bottom: 16px; background: #fff; }
.quiz-question .qnum { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-faint); margin-bottom: 6px; }
.quiz-question .qtext { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15px; margin: 0 0 14px; }
.quiz-options { display: flex; flex-direction: column; gap: 8px; }
.quiz-option { text-align: left; border: 1px solid var(--border); border-radius: 7px; padding: 10px 14px; font-size: 13.5px; background: #fff; cursor: pointer; font-family: 'Work Sans', sans-serif; color: var(--text); transition: border-color 0.15s, background 0.15s; }
.quiz-option:hover:not(:disabled) { border-color: var(--accent); }
.quiz-option:disabled { cursor: default; }
.quiz-option.correct { border-color: #2A9D5C; background: rgba(42,157,92,0.08); color: #1E7A45; font-weight: 600; }
.quiz-option.incorrect { border-color: #C22828; background: rgba(200,40,40,0.06); color: #C22828; font-weight: 600; }
.quiz-option.selected { border-color: var(--accent); background: rgba(34,82,204,0.06); color: var(--accent); font-weight: 600; }
.quiz-explanation { margin: 12px 0 0; padding-top: 12px; border-top: 1px dashed var(--border); font-size: 13.5px; line-height: 1.6; color: var(--text-muted); }
.quiz-explanation[hidden] { display: none; }

/* Examen blanc (mock exam trainer) */
.exam-loading { text-align: center; font-size: 13.5px; color: var(--text-faint); padding: 32px 0; }
.exam-loading[hidden] { display: none; }
.exam-loading.exam-loading-error { color: #C22828; }
#modeSelect[hidden] { display: none; }

.examen-mode-card { cursor: pointer; text-align: left; width: 100%; font: inherit; color: inherit; background: #fff; }
.examen-mode-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.examen-mode-card.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.examen-mode-card.active .path-icon { background: var(--accent); color: #fff; }

.exam-config-panel[hidden] { display: none; }
.exam-config-panel { margin-top: 40px; }
.exam-config-panel .academy-stats-grid { margin: 24px 0 28px; }
.exam-config-note { font-size: 13px; color: var(--text-faint); line-height: 1.6; margin: 4px 0 28px; padding: 14px 18px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px; }

.exam-accordion { margin-top: 12px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.exam-subject { border-bottom: 1px solid var(--border); }
.exam-subject:last-child { border-bottom: none; }
.exam-subject > summary { list-style: none; cursor: pointer; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.exam-subject > summary::-webkit-details-marker { display: none; }
.exam-subject > summary .subj-label { display: flex; align-items: center; gap: 10px; }
.exam-subject > summary .subj-label span.txt { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 14.5px; }
.exam-subject > summary .subj-count { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-faint); white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.exam-subject > summary .chev { transition: transform .15s ease; color: var(--text-faint); flex-shrink: 0; }
.exam-subject[open] > summary .chev { transform: rotate(90deg); }
.exam-chapter-list { padding: 2px 20px 18px 48px; display: flex; flex-direction: column; gap: 11px; }
.exam-chapter-list label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--text-muted); cursor: pointer; }
.exam-chapter-list label .chap-avail { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--accent); white-space: nowrap; }
.exam-subject input[type="checkbox"], .exam-chapter-list input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
.exam-subject > summary label { display: flex; align-items: center; gap: 10px; cursor: pointer; }

.exam-filters { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.exam-filter-group .flabel { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); margin-bottom: 10px; }
.exam-filter-group .filter-tabs { gap: 8px; }

.exam-count-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.exam-count-row input[type="number"] { width: 90px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 7px; font-family: 'IBM Plex Mono', monospace; font-size: 14px; background: #fff; color: var(--text); }
.exam-count-row input[type="number"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.exam-count-hint { font-size: 12.5px; color: var(--text-faint); }

.exam-generate-row { margin-top: 32px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.exam-empty-msg { color: #C22828; font-size: 13px; margin-top: 12px; display: none; }
.exam-empty-msg.visible { display: block; }

button.btn-primary, button.btn-secondary { font-family: inherit; cursor: pointer; }
button.btn-primary { border: none; }
button.btn-primary:disabled { opacity: 0.45; cursor: default; }
.btn-secondary {
  border: 1px solid var(--border); color: var(--text); background: #fff;
  padding: 11px 22px; border-radius: 100px; font-size: 13.5px; font-weight: 600;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-secondary:disabled { opacity: 0.4; cursor: default; }

.quiz-runner[hidden] { display: none; }
.quiz-runner { margin-top: 56px; }
.quiz-top-bar { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.quiz-progress-label { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--text-faint); white-space: nowrap; }
.quiz-progress-bar { flex: 1; height: 4px; background: var(--border); border-radius: 100px; overflow: hidden; min-width: 60px; }
.quiz-progress-fill { height: 100%; background: var(--accent); border-radius: 100px; transition: width .25s ease; }
.quiz-timer { font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.quiz-timer.low { color: #C22828; }

.quiz-meta-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.qbadge {
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 600; letter-spacing: 0.03em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 100px; border: 1px solid var(--border); color: var(--text-faint);
}
.qbadge.subject { color: var(--accent); border-color: rgba(34,82,204,0.3); background: rgba(34,82,204,0.06); }

.quiz-nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; flex-wrap: wrap; }
.quiz-nav-row .spacer { flex: 1; }
.quiz-abandon { font-size: 12.5px; color: var(--text-faint); background: none; border: none; font-family: inherit; cursor: pointer; padding: 0; }
.quiz-abandon:hover { color: #C22828; }

.quiz-results[hidden] { display: none; }
.quiz-results { margin-top: 56px; }
.results-score-band { text-align: center; padding: 40px 24px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-soft); }
.results-score-value { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 44px; color: var(--accent); }
.results-score-sub { margin-top: 6px; font-size: 13.5px; color: var(--text-muted); }
.results-pass-badge { display: inline-block; margin-top: 14px; padding: 6px 16px; border-radius: 100px; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; font-weight: 700; }
.results-pass-badge[hidden] { display: none; }
.results-pass-badge.pass { background: rgba(42,157,92,0.1); color: #1E7A45; border: 1px solid rgba(42,157,92,0.35); }
.results-pass-badge.fail { background: rgba(200,40,40,0.08); color: #C22828; border: 1px solid rgba(200,40,40,0.3); }

.results-table { width: 100%; border-collapse: collapse; margin-top: 32px; font-size: 13.5px; }
.results-table th, .results-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.results-table th { font-family: 'IBM Plex Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-faint); font-weight: 600; }

.results-review { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; }
.results-review-item { border: 1px solid var(--border); border-radius: 10px; padding: 20px 22px; background: #fff; }
.results-review-item .rq { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 14.5px; margin: 8px 0 12px; }
.results-review-item .rline { font-size: 13px; line-height: 1.6; margin: 4px 0; }
.results-review-item .rline.wrong { color: #C22828; }
.results-review-item .rline.right { color: #1E7A45; }
.results-review-item .rexpl { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.results-review-item .rlink { margin-top: 10px; display: inline-block; font-size: 12.5px; font-weight: 600; }

.results-actions { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.results-legal-note { text-align: center; font-size: 12px; color: var(--text-faint); margin-top: 24px; }

@media (max-width: 640px) {
  .quiz-top-bar { flex-wrap: wrap; }
  .quiz-progress-bar { order: 3; flex-basis: 100%; }
  .exam-chapter-list { padding-left: 32px; }
  .results-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* Roger AI assistant page */
.roger-hero {
  position: relative; width: 100%; overflow: hidden;
  padding: 96px var(--gutter) 48px;
}
.roger-neural-canvas {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 100vw; height: 100%; z-index: 0; display: block; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 60% 85% at 50% 38%, #000 0%, #000 35%, transparent 78%);
  mask-image: radial-gradient(ellipse 60% 85% at 50% 38%, #000 0%, #000 35%, transparent 78%);
}
.roger-hero-content {
  position: relative; z-index: 1; max-width: 760px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px;
}

.roger-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.roger-hero h1 { margin: 0; font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(38px, 7vw, 60px); letter-spacing: -0.02em; }
.roger-hero .tagline { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text-muted); max-width: 560px; }
.roger-hero .meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--text-faint); }

.roger-pillnav { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.roger-pill {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 100px;
  padding: 7px 16px 7px 8px; font-size: 13px; font-weight: 600; color: var(--text); background: #fff;
  transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.roger-pill:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.roger-pill img { width: 22px; height: 22px; border-radius: 6px; display: block; }

.roger-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-top: 40px; }

.roger-app-section { padding: 72px 0; border-top: 1px solid var(--border); }
.roger-app-section:first-of-type { border-top: none; }
.roger-app-head { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.roger-app-head .app-icon { width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0; }
.roger-app-head .name-block .eyebrow { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); }
.roger-app-head .name-block .name { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 20px; margin-top: 2px; }

.roger-quote {
  border-left: 3px solid var(--accent); padding: 2px 0 2px 20px; margin: 28px 0 40px;
  font-family: 'Sora', sans-serif; font-weight: 500; font-size: 16px; line-height: 1.6; color: var(--text); font-style: italic;
}

.roger-cta-apps { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

/* RogerWX weather-engine page */
.wx-hero { padding-bottom: 64px; }
.wx-hero h1 { display: inline-flex; align-items: baseline; gap: 2px; }
.wx-mark {
  font-family: 'Caveat', cursive; font-weight: 700; font-size: 1.28em; line-height: 0.8; color: var(--accent);
  display: inline-block; transform: rotate(-6deg) translateY(2px); margin-left: 4px;
  /* the script glyphs overhang their box; pad it so background-clip:text doesn't crop the X */
  padding: 0.08em 0.22em 0.12em 0.06em; margin-right: -0.16em;
  background: linear-gradient(120deg, #2252CC 0%, #4A78FF 60%, #6E93FF 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.wx-inline-mark { font-family: 'Caveat', cursive; font-weight: 700; font-size: 1.25em; color: var(--accent); }
.wx-source-chip {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 100px;
  padding: 6px 14px; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--text-muted); background: #fff;
}
.wx-source-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: #1E7A45; box-shadow: 0 0 0 3px rgba(30,122,69,0.15); }

.wx-photo-band {
  position: relative; width: 100vw; left: 50%; transform: translateX(-50%);
  min-height: 440px; display: flex; align-items: flex-end; overflow: hidden; color: #fff;
}
.wx-photo-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wx-photo-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,16,34,0.05) 0%, rgba(8,16,34,0.35) 45%, rgba(8,16,34,0.85) 100%); }
.wx-photo-band .inner { position: relative; z-index: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 56px var(--gutter); }
.wx-photo-band .kicker { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #BFD0FF; }
.wx-photo-band h2 { margin: 10px 0 0; font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(26px, 4.5vw, 40px); letter-spacing: -0.01em; max-width: 720px; }
.wx-photo-band p { margin: 14px 0 0; font-size: 15.5px; line-height: 1.65; color: rgba(255,255,255,0.85); max-width: 620px; }

.wx-section { padding-top: 88px; padding-bottom: 88px; }
.wx-section + .wx-section { border-top: 1px solid var(--border); }

.wx-source-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 40px; align-items: start; margin-top: 40px; }
.wx-source-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.wx-source-list li { display: flex; gap: 12px; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.wx-source-list li strong { color: var(--text); font-weight: 600; }
.wx-source-list .code { flex-shrink: 0; min-width: 74px; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; font-weight: 600; color: var(--accent); padding-top: 2px; }

.wx-terminal {
  background: #0B1428; color: #D8E2FF; border-radius: 12px; padding: 22px 22px 18px;
  font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; line-height: 1.7; overflow-x: auto;
  box-shadow: 0 18px 40px rgba(10,20,50,0.18);
}
.wx-terminal .bar { display: flex; gap: 6px; margin-bottom: 14px; }
.wx-terminal .bar span { width: 9px; height: 9px; border-radius: 50%; background: #25375E; }
.wx-terminal .c { color: #6F80A8; }
.wx-terminal .k { color: #8FB0FF; }
.wx-terminal .s { color: #9BE3B4; }
.wx-terminal .n { color: #FFC98B; }
.wx-terminal pre { margin: 0; white-space: pre; }

.wx-pipeline { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 0; margin-top: 48px; counter-reset: wxstep; }
.wx-step { position: relative; padding: 0 18px 0 0; }
.wx-step .node {
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--accent); background: #fff; color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600;
  position: relative; z-index: 1;
}
.wx-step::before { content: ""; position: absolute; top: 19px; left: 38px; right: 0; height: 1.5px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 11px); opacity: 0.5; }
.wx-step:last-child::before { display: none; }
.wx-step .title { margin-top: 16px; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15px; }
.wx-step ul { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.wx-step li { font-size: 12.5px; line-height: 1.55; color: var(--text-muted); padding-left: 12px; position: relative; }
.wx-step li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 1.5px; background: var(--accent); }

.wx-decode { margin-top: 44px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #fff; }
.wx-decode-raw { display: flex; flex-wrap: wrap; gap: 8px; padding: 24px; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.wx-token {
  font-family: 'IBM Plex Mono', monospace; font-size: 15px; font-weight: 600; padding: 6px 10px; border-radius: 7px;
  background: #fff; border: 1px solid var(--border); color: var(--text); cursor: default;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.wx-token:hover, .wx-token:focus, .wx-token.is-active { border-color: var(--accent); color: var(--accent); background: rgba(34,82,204,0.05); outline: none; }
.wx-decode-rows { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
.wx-decode-row { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 14px; padding: 14px 24px; border-bottom: 1px solid var(--border); font-size: 13.5px; line-height: 1.55; transition: background .15s ease; }
.wx-decode-row:nth-child(odd) { border-right: 1px solid var(--border); }
.wx-decode-row .tok { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; color: var(--accent); padding-top: 1px; }
.wx-decode-row .val { color: var(--text); }
.wx-decode-row .val small { display: block; color: var(--text-faint); font-size: 12px; margin-top: 2px; }
.wx-decode-row.is-active { background: rgba(34,82,204,0.06); }

.wx-results { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--border); border-top: 1px solid var(--border); }
.wx-result { background: #fff; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.wx-result .lbl { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-faint); }
.wx-result .big { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 22px; color: var(--text); }
.wx-result .sub { font-size: 12px; line-height: 1.5; color: var(--text-muted); }
.wx-badge { display: inline-block; font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 100px; vertical-align: middle; }
.wx-badge.vfr { background: rgba(30,122,69,0.12); color: #1E7A45; }
.wx-badge.mvfr { background: rgba(34,82,204,0.12); color: #2252CC; }
.wx-badge.ifr { background: rgba(194,40,40,0.12); color: #B42318; }
.wx-badge.lifr { background: rgba(160,40,160,0.12); color: #8E24AA; }
.wx-badge.warn { background: rgba(217,119,6,0.14); color: #B45309; }

.wx-formula { margin-top: 4px; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; line-height: 1.6; color: var(--text); background: var(--bg-soft); border: 1px solid var(--border); border-radius: 7px; padding: 8px 10px; }
.wx-thresholds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

.wx-split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 48px; align-items: center; }
.wx-split.reverse .wx-split-media { order: 2; }
.wx-split-media { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 18px 40px rgba(10,20,50,0.14); }
.wx-split-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wx-split-media .caption { position: absolute; left: 14px; bottom: 14px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #fff; background: rgba(8,16,34,0.6); padding: 5px 10px; border-radius: 100px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.wx-split-body h2 { margin: 12px 0 0; font-family: 'Sora', sans-serif; font-weight: 600; font-size: clamp(22px, 3.6vw, 30px); letter-spacing: -0.01em; }
.wx-split-body > p { margin: 14px 0 0; font-size: 15px; line-height: 1.65; color: var(--text-muted); }
.wx-table { width: 100%; border-collapse: collapse; margin-top: 22px; font-size: 13px; }
.wx-table th { text-align: left; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-faint); padding: 0 10px 8px 0; border-bottom: 1px solid var(--border); }
.wx-table td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--border); color: var(--text-muted); vertical-align: top; line-height: 1.5; }
.wx-table td:first-child { color: var(--text); font-weight: 500; white-space: nowrap; }

.wx-apps { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; margin-top: 40px; }
.wx-apps .tech-card ul { margin: 4px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.7; color: var(--text-muted); }

.wx-isobar-band { overflow: hidden; }
.wx-isobar-band .wx-isobar-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.6;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, #000 20%, transparent 80%); }
.wx-isobar-band .container { position: relative; z-index: 1; }

.wx-credits { font-size: 11.5px; line-height: 1.7; color: var(--text-faint); padding-bottom: 72px; }
.wx-credits a { color: var(--text-muted); }

@media (max-width: 960px) {
  .wx-pipeline { grid-template-columns: 1fr; gap: 26px; }
  .wx-step { padding: 0 0 0 54px; min-height: 38px; }
  .wx-step .node { position: absolute; left: 0; top: 0; }
  .wx-step .title { margin-top: 8px; }
  .wx-step::before { top: 38px; bottom: -26px; left: 19px; right: auto; width: 1.5px; height: auto; background: repeating-linear-gradient(180deg, var(--accent) 0 6px, transparent 6px 11px); }
  .wx-results { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .wx-source-grid, .wx-split, .wx-apps { grid-template-columns: 1fr; gap: 28px; }
  .wx-split.reverse .wx-split-media { order: 0; }
  .wx-decode-rows { grid-template-columns: 1fr; }
  .wx-decode-row:nth-child(odd) { border-right: none; }
}
@media (max-width: 520px) {
  .wx-results { grid-template-columns: 1fr; }
  .wx-decode-row { grid-template-columns: 76px minmax(0,1fr); padding: 12px 16px; }
  .wx-decode-raw { padding: 16px; }
  .wx-token { font-size: 13px; }
  .wx-photo-band { min-height: 380px; }
  .wx-table td:first-child { white-space: normal; }
}

/* Homepage technology cards (Roger / RogerWX) */
.tech-band { padding-top: 88px; padding-bottom: 8px; }
.tech-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; margin-top: 48px; }
.tech-feature-card {
  position: relative; overflow: hidden; border-radius: 18px; min-height: 380px; display: flex; align-items: flex-end;
  background: radial-gradient(120% 90% at 80% 0%, #16284D 0%, #0C1830 55%, #091223 100%);
  border: 1px solid #1E3155; color: #F5F6F7; isolation: isolate;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tech-feature-card:hover { transform: translateY(-3px); border-color: #4A78FF; box-shadow: 0 22px 50px rgba(10,20,50,0.28); color: #F5F6F7; }
.tech-feature-card canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 35%, rgba(0,0,0,0.25) 75%, rgba(0,0,0,0.15) 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 35%, rgba(0,0,0,0.25) 75%, rgba(0,0,0,0.15) 100%);
}
.tech-feature-body { padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.tech-feature-body .eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8FB0FF; }
.tech-feature-body .title { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 38px; letter-spacing: -0.02em; line-height: 1.1; }
.tech-feature-body .title .wx-mark { background: linear-gradient(120deg, #6E93FF 0%, #A9C1FF 100%); -webkit-background-clip: text; background-clip: text; }
.tech-feature-body p { margin: 0; font-size: 14px; line-height: 1.65; color: #B3BFDB; max-width: 480px; }
.tech-feature-body .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tech-feature-body .chips span { font-family: 'IBM Plex Mono', monospace; font-size: 11px; padding: 5px 11px; border-radius: 100px; border: 1px solid rgba(143,176,255,0.3); background: rgba(66,120,255,0.1); color: #D6E0FF; }
.tech-feature-body .cta { margin-top: 8px; font-size: 14px; font-weight: 700; color: #8FB0FF; }
.tech-feature-card:hover .cta { color: #fff; }
@media (max-width: 820px) {
  .tech-feature-grid { grid-template-columns: 1fr; }
  .tech-feature-card { min-height: 340px; }
  .tech-feature-body { padding: 26px 22px; }
  .tech-feature-body .title { font-size: 32px; }
}

/* Scroll-reveal utility */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 900px) {
  .roger-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .roger-hero { padding: 64px var(--gutter) 40px; }
  .roger-app-section { padding: 56px 0; }
}

@media (max-width: 760px) {
  .nav { flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
  .nav-toggle { display: flex; order: 2; }
  .nav-links {
    display: none; order: 3; flex-basis: 100%; width: 100%;
    flex-direction: column; align-items: flex-start; gap: 2px;
    padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--border);
  }
  .nav-toggle-input:checked ~ .nav-links { display: flex; }
  .nav-links a, .nav-links .btn-outline { width: 100%; padding-top: 10px; padding-bottom: 10px; }
  .nav-links .btn-outline { text-align: center; margin-top: 6px; }
}

@media (max-width: 640px) {
  .nav { padding-left: var(--gutter); padding-right: var(--gutter); }
  .hero-wrap { padding: 20px var(--gutter) 56px; }
  .hero-content { padding: 28px 24px 32px; }
  .app-hero { padding: 56px var(--gutter) 40px; }
  .portfolio-inner { padding-top: 64px; padding-bottom: 64px; }
  .article { padding: 56px var(--gutter) 72px; }
  .gallery-controls-inner { flex-direction: column; align-items: stretch; }
  .search-input { width: 100%; }
  .plane-modal-specs { grid-template-columns: 1fr; }
  .premium-band { padding: 72px 0; margin-bottom: 56px; }
  .premium-grid { grid-template-columns: 1fr; }
  .premium-pricing { grid-template-columns: 1fr; }
  .lesson-nav { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Account / auth page */
.nav-account {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text);
  padding: 8px 14px; border-radius: 100px; border: 1px solid var(--border); background: var(--bg-soft);
  transition: border-color .15s ease, background .15s ease;
}
.nav-account svg { width: 15px; height: 15px; color: var(--accent); }
.nav-account:hover { border-color: var(--accent); background: #fff; color: var(--text); }

/* Clusters the page links near the brand and pushes the account/CTA
   group to the right edge, without needing separate wrapper markup
   per page: whichever of .nav-account / .btn-outline appears first
   inside .nav-links claims the free space via margin-left:auto, and
   a .btn-outline right after .nav-account rides along at the normal
   gap instead of claiming its own share. */
.nav-links .nav-account,
.nav-links .btn-outline { margin-left: auto; }
.nav-links .nav-account ~ .btn-outline { margin-left: 0; }
@media (max-width: 760px) {
  .nav-links .nav-account,
  .nav-links .btn-outline,
  .nav-links .nav-account ~ .btn-outline { margin-left: 0; }
}

.auth-hero { max-width: 560px; margin: 0 auto; text-align: center; padding: 72px var(--gutter) 8px; }
.auth-hero .gallery-count { display: block; margin-bottom: 14px; }
.auth-hero h1 { margin: 0; font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(26px, 4.2vw, 36px); letter-spacing: -0.01em; }
.auth-hero p { margin: 14px 0 0; font-size: 15px; line-height: 1.65; color: var(--text-muted); }

.auth-shell { max-width: 420px; margin: 40px auto 96px; }
.auth-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 32px; box-shadow: 0 10px 30px rgba(16,19,23,0.05); }

.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 100px; padding: 4px; margin-bottom: 28px; }
.auth-tab {
  border: none; background: none; cursor: pointer; padding: 9px 12px; border-radius: 100px;
  font-family: 'Work Sans', sans-serif; font-size: 13.5px; font-weight: 600; color: var(--text-muted);
}
.auth-tab.active { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(16,19,23,0.08); }

.oauth-stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  padding: 11px 16px; border-radius: 10px; border: 1px solid var(--border); background: #fff;
  font-family: 'Work Sans', sans-serif; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer;
}
.oauth-btn:hover { border-color: var(--text-muted); background: var(--bg-soft); }
.oauth-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 4px 0 22px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: 12px; color: var(--text-faint); white-space: nowrap; }

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form[hidden] { display: none; }
.auth-field label { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; }
.auth-field input {
  width: 100%; box-sizing: border-box; padding: 11px 13px; border: 1px solid var(--border); border-radius: 9px;
  font-family: 'Work Sans', sans-serif; font-size: 14.5px; background: #fff; color: var(--text);
}
.auth-field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.auth-submit { width: 100%; border: none; cursor: pointer; }
.auth-forgot { text-align: center; font-size: 13px; color: var(--text-faint); margin: 4px 0 0; }
.auth-forgot button { background: none; border: none; padding: 0; font: inherit; font-weight: 600; color: var(--accent); cursor: pointer; }

.auth-message { border-radius: 9px; padding: 11px 14px; font-size: 13px; line-height: 1.55; margin-bottom: 18px; }
.auth-message.error { background: rgba(194,40,40,0.08); color: #A31E1E; border: 1px solid rgba(194,40,40,0.2); }
.auth-message.success { background: rgba(30,122,69,0.08); color: #1E7A45; border: 1px solid rgba(30,122,69,0.2); }

.auth-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 16px; flex-shrink: 0;
}

.auth-status-list { display: flex; flex-direction: column; gap: 10px; margin: 0 0 24px; }
.auth-status-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-soft);
}
.auth-status-row > div:first-child { min-width: 0; }
.auth-status-row .label { font-size: 13.5px; font-weight: 500; color: var(--text); }
.auth-status-row .sub { display: block; font-size: 11.5px; color: var(--text-faint); margin-top: 1px; }
@media (max-width: 560px) {
  .auth-status-row { flex-direction: column; align-items: flex-start; }
  .auth-status-actions { align-items: flex-start; }
}
.auth-status-pill {
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.03em; padding: 4px 9px; border-radius: 100px; white-space: nowrap;
}
.auth-status-pill.inactive { background: var(--border); color: var(--text-faint); }
.auth-status-pill.active { background: rgba(30,122,69,0.12); color: #1E7A45; }
.auth-status-pill.pending { background: rgba(217,119,6,0.12); color: #B45309; }

.auth-status-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.auth-status-cancel-btn {
  background: none; border: none; padding: 0; font-family: inherit; font-size: 11px; font-weight: 600;
  color: var(--text-faint); cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
  flex-shrink: 0; white-space: nowrap;
}
.auth-status-cancel-btn:hover { color: #B42318; }
.auth-status-cancel-btn:disabled { cursor: default; opacity: 0.6; text-decoration: none; }

.auth-status-portal-btn {
  border: 1px solid var(--border); color: var(--text); background: #fff; font-family: inherit;
  padding: 6px 14px; border-radius: 100px; font-size: 11.5px; font-weight: 600;
  white-space: nowrap; cursor: pointer; flex-shrink: 0;
}
.auth-status-portal-btn:hover { border-color: var(--accent); color: var(--accent); }
.auth-status-portal-btn:disabled { opacity: 0.6; cursor: default; }

.lesson-locked { position: relative; max-height: 640px; overflow: hidden; }
.lesson-locked::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 240px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), var(--bg) 75%); pointer-events: none;
}
.lesson-paywall { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; padding: 40px 20px 32px; z-index: 2; }
.lesson-paywall-card {
  max-width: 420px; text-align: center; background: var(--bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px 26px; box-shadow: 0 12px 32px rgba(16,19,23,0.1);
}
.lesson-paywall-card h2 { font-family: 'Sora', sans-serif; font-size: 18px; margin: 0 0 10px; }
.lesson-paywall-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; margin: 0 0 18px; }

.auth-signout { width: 100%; text-align: center; }

@media (max-width: 480px) {
  .auth-card { padding: 24px 20px; }
}

/* Checkout (subscription pre-registration ahead of Stripe going live) */
.checkout-shell { max-width: 480px; margin: 48px auto 96px; }
.checkout-badge {
  display: inline-flex; align-items: center; gap: 6px; font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent);
  background: rgba(34,82,204,0.08); border-radius: 100px; padding: 5px 12px; margin-bottom: 14px;
}
.checkout-card h1 { margin: 0 0 6px; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 22px; }
.checkout-card .sub { margin: 0 0 28px; font-size: 13.5px; color: var(--text-muted); line-height: 1.55; }

.checkout-interval-toggle { display: flex; gap: 4px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 4px; margin-bottom: 18px; }
.checkout-interval-toggle button {
  flex: 1; border: none; background: none; padding: 8px 10px; border-radius: 7px; font-family: inherit;
  font-size: 12.5px; font-weight: 600; color: var(--text-faint); cursor: pointer;
}
.checkout-interval-toggle button.active { background: var(--bg); color: var(--text); box-shadow: 0 1px 2px rgba(16,19,23,0.08); }
.checkout-interval-save { font-size: 10.5px; font-weight: 700; color: #1E7A45; }

.checkout-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.checkout-price { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 34px; color: var(--text); }
.checkout-price span { font-size: 14px; font-weight: 500; color: var(--text-faint); }
.checkout-price-strike { font-size: 16px; color: var(--text-faint); text-decoration: line-through; }
.checkout-discount-note { font-size: 12.5px; color: #1E7A45; font-weight: 600; margin-bottom: 22px; }
.checkout-discount-note.pending { color: var(--text-faint); font-weight: 500; }

.checkout-features { list-style: none; margin: 0 0 28px; padding: 20px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 11px; }
.checkout-features li { font-size: 13.5px; color: var(--text); display: flex; align-items: flex-start; gap: 9px; line-height: 1.5; }
.checkout-features li svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); width: 16px; height: 16px; }

.checkout-login-prompt {
  text-align: center; padding: 22px; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 12px; margin-bottom: 8px;
}
.checkout-login-prompt p { margin: 0 0 14px; font-size: 13.5px; color: var(--text-muted); }

.checkout-user-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 12.5px; color: var(--text-faint); margin-bottom: 16px;
}

.checkout-confirm-btn { width: 100%; text-align: center; border: none; cursor: pointer; }
.checkout-note { margin: 14px 0 0; font-size: 12px; line-height: 1.6; color: var(--text-faint); text-align: center; }

.checkout-success { text-align: center; padding: 12px 0 4px; }
.checkout-success-icon {
  width: 52px; height: 52px; border-radius: 50%; background: rgba(30,122,69,0.1); color: #1E7A45;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.checkout-success-icon svg { width: 24px; height: 24px; }
.checkout-success h1 { font-size: 20px; margin-bottom: 10px; }
.checkout-success p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin: 0 0 24px; }

/* Account dashboard (logged-in /compte/) */
.dash-shell { max-width: 980px; margin: 40px auto 96px; }

.dash-hero {
  position: relative; border-radius: 20px; overflow: hidden; margin-bottom: 28px;
  background: #101317;
  min-height: 200px; display: flex; align-items: center;
}
.dash-hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dash-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,13,18,0.88) 0%, rgba(10,13,18,0.55) 45%, rgba(10,13,18,0.25) 100%);
}
.dash-hero-content { position: relative; z-index: 1; display: flex; align-items: center; gap: 18px; padding: 28px 32px; width: 100%; }
.dash-avatar {
  width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 22px;
  flex-shrink: 0; border: 2px solid rgba(255,255,255,0.85); overflow: hidden;
}
.dash-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dash-greeting { margin: 0; font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(20px, 3vw, 26px); color: #fff; }
.dash-email { margin: 3px 0 0; font-size: 13px; color: rgba(255,255,255,0.75); }
.dash-since { margin: 2px 0 0; font-size: 11.5px; color: rgba(255,255,255,0.55); }

.dash-fr-badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: var(--text);
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 100px; padding: 6px 12px 6px 8px; margin-bottom: 24px;
}
.dash-fr-badge .flag { width: 16px; height: 11px; border-radius: 2px; overflow: hidden; display: flex; flex-shrink: 0; }
.dash-fr-badge .flag span { flex: 1; height: 100%; }
.dash-fr-badge .flag span:nth-child(1) { background: #002395; }
.dash-fr-badge .flag span:nth-child(2) { background: #fff; }
.dash-fr-badge .flag span:nth-child(3) { background: #ED2939; }

.dash-premium-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: #78350F;
  background: linear-gradient(135deg, #FDE68A, #FACC15); border: 1px solid #EAB308; border-radius: 100px;
  padding: 6px 14px; margin: 0 0 24px 10px;
}

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.dash-card-wide { grid-column: 1 / -1; }
.dash-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 26px 28px;
}
.dash-card h2 { margin: 0; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 16px; }
.dash-card-sub { margin: 6px 0 20px; font-size: 13px; color: var(--text-muted); line-height: 1.55; }
.dash-card > .dash-card-sub:last-child,
.dash-card > h2 + .dash-card-sub { margin-bottom: 20px; }

.goal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.goal-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left;
  border: 1px solid var(--border); border-radius: 12px; padding: 16px 14px; background: var(--bg-soft);
  cursor: pointer; font: inherit; color: inherit; transition: border-color .15s ease, background .15s ease;
}
.goal-card:hover { border-color: var(--accent); }
.goal-card.selected { background: rgba(34,82,204,0.06); border-color: var(--accent); }
.goal-icon {
  width: 34px; height: 34px; border-radius: 9px; background: #fff; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0;
}
.goal-card.selected .goal-icon { background: var(--accent); color: #fff; border-color: var(--accent); }
.goal-icon svg { width: 17px; height: 17px; }
.goal-title { font-size: 13px; font-weight: 600; color: var(--text); }
.goal-desc { font-size: 11.5px; color: var(--text-faint); line-height: 1.4; }

.dash-placeholder { text-align: center; padding: 20px 10px 8px; }
.dash-placeholder .dash-placeholder-icon {
  width: 42px; height: 42px; border-radius: 50%; background: var(--bg-soft); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--text-faint); margin: 0 auto 14px;
}
.dash-placeholder .dash-placeholder-icon svg { width: 19px; height: 19px; }
.dash-placeholder p { margin: 0 0 12px; font-size: 12.5px; color: var(--text-muted); line-height: 1.55; }
.dash-placeholder .link { font-size: 12.5px; font-weight: 600; }

.qcm-last-session {
  margin: 0 0 18px; font-size: 12px; color: var(--text-faint); padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.qcm-score-row { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.qcm-score-big { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.qcm-score-value { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 30px; color: var(--accent); line-height: 1; }
.qcm-score-label { font-size: 10.5px; color: var(--text-faint); margin-top: 4px; }
.qcm-score-meta { font-size: 12.5px; color: var(--text-muted); line-height: 1.6; }

.qcm-bars { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.qcm-bar-row { display: grid; grid-template-columns: 100px 1fr 34px; align-items: center; gap: 10px; }
.qcm-bar-label { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qcm-bar-track { height: 6px; border-radius: 4px; background: var(--bg-soft); border: 1px solid var(--border); overflow: hidden; }
.qcm-bar-fill { height: 100%; background: var(--accent); border-radius: 4px; }
.qcm-bar-fill.weak { background: #C25A1E; }
.qcm-bar-pct { font-size: 11px; font-family: 'IBM Plex Mono', monospace; color: var(--text-faint); text-align: right; }

.badge-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.badge-item {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  border: 1px solid var(--border); border-radius: 12px; padding: 16px 10px; background: var(--bg-soft); opacity: 0.5;
}
.badge-item.unlocked { opacity: 1; background: #fff; border-color: rgba(34,82,204,0.25); }
.badge-icon {
  width: 36px; height: 36px; border-radius: 50%; background: var(--border); color: var(--text-faint);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.badge-item.unlocked .badge-icon { background: var(--accent); color: #fff; }
.badge-icon svg { width: 17px; height: 17px; }
.badge-title { font-size: 11px; font-weight: 700; color: var(--text); line-height: 1.3; }
.badge-desc { font-size: 10px; color: var(--text-faint); line-height: 1.35; }

@media (max-width: 760px) {
  .badge-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .badge-grid { grid-template-columns: repeat(2, 1fr); }
  .qcm-bar-row { grid-template-columns: 80px 1fr 30px; }
}

.sessions-list { display: flex; flex-direction: column; gap: 10px; }
.session-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--bg-soft);
}
.session-icon {
  width: 38px; height: 38px; border-radius: 10px; background: #fff; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent);
}
.session-icon svg { width: 18px; height: 18px; }
.session-body { flex: 1; min-width: 0; }
.session-device { font-size: 13.5px; font-weight: 600; color: var(--text); }
.session-meta { font-size: 11.5px; color: var(--text-faint); margin-top: 1px; }
.session-empty { font-size: 13px; color: var(--text-faint); padding: 4px 0; }

.dash-rgpd p { margin: 0 0 16px; font-size: 13px; color: var(--text-muted); line-height: 1.65; }
.dash-rgpd-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.dash-delete-btn { border-color: rgba(194,40,40,0.35); color: #A31E1E; }
.dash-delete-btn:hover { background: rgba(194,40,40,0.06); border-color: #A31E1E; }
.dash-delete-btn.confirming { background: #A31E1E; border-color: #A31E1E; color: #fff; }

.dash-signout-row { text-align: center; margin-top: 8px; }
.dash-signout-row .auth-signout { width: auto; padding-left: 28px; padding-right: 28px; }

@media (max-width: 760px) {
  .dash-grid { grid-template-columns: 1fr; }
  .goal-grid { grid-template-columns: 1fr 1fr; }
  .dash-hero-content { padding: 22px; flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .goal-grid { grid-template-columns: 1fr; }
  .dash-card { padding: 22px 18px; }
  .dash-rgpd-actions { flex-direction: column; align-items: stretch; }
  .dash-rgpd-actions .dash-delete-btn { width: 100%; }
}

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 500;
  max-width: 640px; margin: 0 auto; background: #101317; color: #fff;
  border-radius: 14px; padding: 18px 20px; box-shadow: 0 12px 32px rgba(16,19,23,0.28);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.cookie-banner p { margin: 0; font-size: 12.5px; line-height: 1.6; color: rgba(255,255,255,0.85); flex: 1; min-width: 200px; }
.cookie-banner p a { color: #fff; text-decoration: underline; }
.cookie-banner button {
  flex-shrink: 0; background: #fff; color: var(--text); border: none; border-radius: 100px;
  padding: 9px 18px; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit;
}
@media (max-width: 480px) {
  .cookie-banner { padding: 16px; }
}
