:root {
  --bg: #FFFFFF;
  --bg-soft: #F7F8FA;
  --border: #E2E5EA;
  --text: #101317;
  --text-muted: #6B7280;
  --text-faint: #5B6371;
  --accent: #2252CC;
  --accent-dark: #163a94;
  --surface: #FFFFFF;
  --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-links > a, .nav-dd-btn { white-space: nowrap; }
.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 carousel (photo / visual slides with overlaid text), assets/js/hero-carousel.js */
.hero-wrap { padding: 32px var(--gutter) 88px; }
.hero-card {
  position: relative; max-width: 1160px; margin: 0 auto; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border); background: #0B1224; isolation: isolate;
}
.hero-track { display: flex; transition: transform 0.75s cubic-bezier(0.65, 0, 0.2, 1); will-change: transform; transform: translateX(calc(var(--hero-i, 0) * -100%)); touch-action: pan-y; }
.hero-slide {
  position: relative; flex: 0 0 100%; min-width: 0; overflow: hidden;
  min-height: clamp(460px, 56vw, 660px); display: flex; align-items: flex-end;
}
.hero-slide > img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; transform: scale(1.06); transition: transform 7s ease-out; }
.hero-slide.is-active > img.hero-bg { transform: scale(1); }
.hero-slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(8,10,14,0.88) 0%, rgba(8,10,14,0.58) 42%, rgba(8,10,14,0) 72%);
}
.hero-slide--photo > img.hero-bg { object-position: 82% 35%; }
.hero-slide--blue { background: radial-gradient(120% 90% at 85% 20%, #3A6BEA 0%, #2253CC 45%, #16348A 100%); }
.hero-slide--blue::after { background: linear-gradient(to right, rgba(10,22,70,0.35) 0%, rgba(10,22,70,0) 55%); }
.hero-slide--navy { background: #0B1224; }
.hero-slide--navy > img.hero-bg { left: auto; right: 0; width: 58%; object-position: 70% 50%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 32%); mask-image: linear-gradient(to right, transparent 0%, #000 32%); }
.hero-slide--navy::after { background: linear-gradient(to right, rgba(8,12,26,0.92) 0%, rgba(8,12,26,0.55) 45%, rgba(8,12,26,0) 75%); }
.hero-phones { position: absolute; z-index: 1; right: 1.5%; bottom: -7%; width: 54%; height: auto; pointer-events: none; transform: translateY(40px); opacity: 0; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s, opacity 0.7s ease 0.2s; }
.hero-slide.is-active .hero-phones { transform: none; opacity: 1; }
.hero-content {
  position: relative; z-index: 1;
  padding: 56px 40px 52px; max-width: 640px;
  display: flex; flex-direction: column; gap: 16px;
}
.hero-slide--blue .hero-content { max-width: 46%; }
.hero-content > * { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.hero-slide.is-active .hero-content > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-content > :nth-child(2) { transition-delay: 0.12s; }
.hero-slide.is-active .hero-content > :nth-child(3) { transition-delay: 0.22s; }
.hero-slide.is-active .hero-content > :nth-child(4) { transition-delay: 0.32s; }
.hero-slide.is-active .hero-content > :nth-child(5) { transition-delay: 0.42s; }
.hero-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.85); }
.hero-new { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 100px; background: #fff; color: var(--accent); font-size: 10px; letter-spacing: 0.06em; vertical-align: 1px; }
.hero-content h1, .hero-content .hero-title {
  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; }
.hero-slide--blue .btn-primary { background: #fff; color: var(--accent); }
.hero-slide--blue .btn-primary:hover { background: #EAF0FF; color: var(--accent-dark); }

/* Controls: story-style progress bars on top, arrows on the sides */
.hero-bars { position: absolute; z-index: 3; top: 18px; left: 40px; right: 40px; display: flex; gap: 8px; }
.hero-seg { flex: 1 1 0; height: 22px; padding: 10px 0; background: none; border: 0; cursor: pointer; position: relative; }
.hero-seg::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 3px; border-radius: 3px; background: rgba(255,255,255,0.28); }
.hero-seg-fill { position: absolute; left: 0; top: 10px; height: 3px; border-radius: 3px; background: #fff; width: 0; }
.hero-seg.is-done .hero-seg-fill { width: 100%; }
.hero-seg.is-current .hero-seg-fill { animation: hero-fill var(--hero-dur, 7s) linear forwards; }
.hero-card.is-paused .hero-seg.is-current .hero-seg-fill, .hero-card.is-still .hero-seg.is-current .hero-seg-fill { animation-play-state: paused; }
.hero-card.no-motion .hero-seg.is-current .hero-seg-fill { animation: none; width: 100%; }
@keyframes hero-fill { from { width: 0; } to { width: 100%; } }
.hero-seg:focus-visible, .hero-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 6px; }
.hero-arrow {
  position: absolute; z-index: 3; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35); background: rgba(8,10,14,0.35); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.2s ease, background 0.2s ease;
}
.hero-arrow svg { width: 18px; height: 18px; }
.hero-arrow.prev { left: 14px; } .hero-arrow.next { right: 14px; }
.hero-card:hover .hero-arrow, .hero-card:focus-within .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: rgba(8,10,14,0.6); }
html:not(.js) .hero-bars, html:not(.js) .hero-arrow { display: none; }
html:not(.js) .hero-slide:not(:first-child) { display: none; }
.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; }
@media (prefers-reduced-motion: reduce) {
  .hero-track, .hero-slide > img.hero-bg, .hero-phones, .hero-content > * { transition: none; }
  .hero-slide > img.hero-bg { transform: none; }
}

/* 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: var(--surface); 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: var(--surface);
  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: var(--surface); 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; height: var(--screen-h, 400px); border-radius: 22px; overflow: hidden; border: 1px solid var(--border);
  scroll-snap-align: start; background: var(--bg-soft);
}
.screen-frame img { height: 100%; width: auto; 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: var(--surface); 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: var(--surface); 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: color-mix(in srgb, var(--bg) 94%, transparent); 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: var(--surface); 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: var(--surface);
}
.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: var(--surface);
  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: var(--surface); 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: color-mix(in srgb, var(--bg) 94%, transparent); 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: minmax(0, 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: minmax(0, 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: var(--surface); 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: var(--surface); 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: var(--surface); 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); }


/* 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: var(--surface); 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(6, 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; }
/* Social icons (lib/social.js, scripts/apply-footer-social.js) */
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.footer-social a { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); color: var(--text-muted); background: var(--bg); transition: color .15s ease, border-color .15s ease, background .15s ease, transform .15s ease; }
.footer-social a:hover, .footer-social a:focus-visible { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.footer-social svg { display: block; }
.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: var(--surface); 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: var(--surface); 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: var(--surface); 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: var(--surface);
}
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: var(--surface); 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: var(--surface); }
.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: var(--surface); 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: var(--surface); }
.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: var(--surface); }
.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: var(--surface); }
.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: var(--surface); 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: var(--surface); }
.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: var(--surface); }
.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: var(--surface); 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: var(--surface);
  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: var(--surface); }
.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: var(--surface);
  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: var(--surface);
}
.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: var(--surface); 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: var(--surface); }
.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: var(--surface); 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: var(--surface); 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; }
}

/* Launch waitlist (plan cards) — dark premium band by default, light on the homepage */
button.btn-outline-light { background: none; font-family: inherit; cursor: pointer; }
.waitlist-form { display: flex; flex-direction: column; gap: 8px; }
.waitlist-label { font-size: 12.5px; font-weight: 600; color: #F5F6F7; }
.waitlist-row { display: flex; gap: 8px; }
.waitlist-row input {
  flex: 1; min-width: 0; padding: 11px 14px; border-radius: 100px; font-family: inherit; font-size: 14px;
  border: 1px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.06); color: #fff;
}
.waitlist-row input::placeholder { color: rgba(255,255,255,0.45); }
.waitlist-row input:focus { outline: 2px solid #6E93FF; outline-offset: 1px; }
.waitlist-row button {
  border: none; border-radius: 100px; padding: 0 18px; font-family: inherit; font-size: 14px; font-weight: 700;
  background: #2252CC; color: #fff; cursor: pointer;
}
.waitlist-row button:disabled { opacity: 0.6; cursor: default; }
.waitlist-note { margin: 0; font-size: 11.5px; color: var(--pb-muted, #8D9BBD); }
.waitlist-note.error { color: #FF8A80; }
.waitlist-done { font-size: 13.5px; font-weight: 600; line-height: 1.5; color: #7FD6A0; padding: 10px 0; }
.academy-band .waitlist-label { color: var(--text); }
.academy-band .waitlist-row input { border-color: var(--border); background: var(--surface); color: var(--text); }
.academy-band .waitlist-row input::placeholder { color: var(--text-faint); }
.academy-band .waitlist-row input:focus { outline-color: var(--accent); }
.academy-band .waitlist-note { color: var(--text-muted); }
.academy-band .waitlist-note.error { color: #B42318; }
.academy-band .waitlist-done { color: #1E7A45; }

/* Boutique — digital book shop */
.shop-demo-banner { background: #FFF8EC; color: #8A5A00; border-bottom: 1px solid #FDE68A; text-align: center; font-size: 13px; font-weight: 500; padding: 10px var(--gutter); }
/* Site-wide header icons (account, cart with item count) — e-commerce style,
   always visible, including on mobile next to the menu button. */
.nav { gap: 20px; }
.nav-links { margin-left: auto; }
.nav-icons { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.nav-icon {
  position: relative; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: var(--text); border: 1px solid transparent; transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.nav-icon svg { width: 20px; height: 20px; }
.nav-icon:hover { background: var(--bg-soft); border-color: var(--border); color: var(--accent); }
.nav-cart-count {
  position: absolute; top: 1px; right: -1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 100px;
  background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff;
}
.nav-cart-count[hidden] { display: none; }
.nav-cart.bump .nav-cart-count { animation: cartBump .45s ease; }
@keyframes cartBump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .nav-cart.bump .nav-cart-count { animation: none; } }
@media (max-width: 900px) {
  .nav-icons { order: 1; margin-left: auto; gap: 2px; }
  .nav-links { margin-left: 0; }
}

.shop-wrap { padding-bottom: 88px; }
.shop-prep { max-width: 760px; padding-top: 88px; padding-bottom: 96px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.shop-prep h1 { margin: 0; font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.02em; }
.shop-prep > p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--text-muted); max-width: 600px; }
.shop-prep-cats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; width: 100%; margin-top: 18px; text-align: left; }
.shop-prep-cats div { background: var(--surface); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.shop-prep-cats strong { font-family: 'Sora', sans-serif; font-size: 14.5px; }
.shop-prep-cats span { font-size: 13px; line-height: 1.55; color: var(--text-muted); }
.shop-prep-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
@media (max-width: 560px) { .shop-prep-cats { grid-template-columns: 1fr; } }
.shop-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 32px; }
.shop-filter { border: 1px solid var(--border); background: var(--surface); border-radius: 100px; padding: 8px 15px; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.shop-filter span { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-faint); margin-left: 4px; }
.shop-filter:hover { border-color: var(--accent); color: var(--accent); }
.shop-filter.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.shop-filter.is-active span { color: rgba(255,255,255,0.75); }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.shop-card[hidden] { display: none; }
.shop-card-cat { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); }
.shop-card-meta { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-faint); }

.book-cover {
  position: relative; aspect-ratio: 2 / 3; border-radius: 4px 10px 10px 4px; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, var(--from) 0%, var(--to) 100%);
  box-shadow: 0 12px 28px rgba(10,20,50,0.2), inset 6px 0 0 rgba(255,255,255,0.08), inset 7px 0 0 rgba(0,0,0,0.12);
  display: flex; flex-direction: column; padding: 18px 16px 16px 22px; transition: transform .2s ease, box-shadow .2s ease;
}
.book-motif { position: absolute; inset: 0; width: 100%; height: 100%; }
.book-cat { position: relative; font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.book-title { position: relative; margin-top: auto; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 19px; line-height: 1.2; letter-spacing: -0.01em; }
.book-brand { position: relative; margin-top: 14px; display: flex; align-items: center; gap: 6px; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 10.5px; opacity: 0.85; }
.book-brand img { border-radius: 3px; background: #fff; }
.book-cover.large { max-width: 340px; margin: 0 auto; padding: 28px 26px 24px 34px; }
.book-cover.large .book-title { font-size: 28px; }
.book-cover.large .book-cat { font-size: 11px; }
.book-cover.large .book-brand { font-size: 12.5px; }

/* Product photos (cut-out PNG mockups on a soft studio background) */
.shop-stock { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 10px; border-radius: 100px; }
.shop-stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.shop-stock.out { background: rgba(180,83,9,0.1); color: #B45309; }

.shop-gallery { display: flex; flex-direction: column; gap: 14px; }
.shop-gallery-stage {
  position: relative; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; outline: none;
  background: radial-gradient(85% 75% at 50% 42%, #FFFFFF 0%, #EEF0F4 68%, #E2E6EC 100%);
}
.shop-gallery-stage:focus-visible { box-shadow: 0 0 0 3px rgba(34,82,204,0.4); }
.shop-gallery-track { position: absolute; inset: 0; }
.shop-gallery-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(0.97); transition: opacity .45s ease, transform .45s ease; cursor: zoom-in; pointer-events: none; }
.shop-gallery-slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.shop-gallery-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.shop-gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 94%, transparent); color: var(--text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(10,20,50,0.1);
  opacity: 0; transition: opacity .2s ease, color .15s ease, border-color .15s ease; z-index: 2;
}
.shop-gallery-nav svg { width: 18px; height: 18px; }
.shop-gallery-nav.prev { left: 14px; }
.shop-gallery-nav.next { right: 14px; }
.shop-gallery-stage:hover .shop-gallery-nav, .shop-gallery-stage:focus-within .shop-gallery-nav { opacity: 1; }
.shop-gallery-nav:hover { color: var(--accent); border-color: var(--accent); }
.shop-gallery-zoom { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 94%, transparent); color: var(--text-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; z-index: 2; }
.shop-gallery-zoom svg { width: 16px; height: 16px; }
.shop-gallery-zoom:hover { color: var(--accent); border-color: var(--accent); }
.shop-gallery-count { position: absolute; left: 14px; bottom: 14px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-muted); background: color-mix(in srgb, var(--bg) 94%, transparent); border: 1px solid var(--border); padding: 4px 10px; border-radius: 100px; z-index: 2; }
.shop-gallery-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; }
.shop-gallery-thumb { aspect-ratio: 1 / 1; padding: 0; border-radius: 10px; border: 1.5px solid var(--border); background: #EEF0F4; cursor: pointer; overflow: hidden; opacity: 0.7; transition: opacity .15s ease, border-color .15s ease; }
.shop-gallery-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.shop-gallery-thumb:hover { opacity: 1; }
.shop-gallery-thumb.is-active { opacity: 1; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34,82,204,0.12); }

.shop-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(8,12,22,0.96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 40px; }
.shop-lightbox img { max-width: min(92vw, 1400px); max-height: 88vh; object-fit: contain; }
.shop-lightbox .shop-gallery-nav { opacity: 1; background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); color: #fff; box-shadow: none; }
.shop-lightbox .shop-gallery-nav.prev { left: 24px; }
.shop-lightbox .shop-gallery-nav.next { right: 24px; }
.shop-lightbox-close { position: absolute; top: 20px; right: 24px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.12); color: #fff; font-size: 16px; cursor: pointer; }
.shop-lightbox-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: rgba(255,255,255,0.7); }

.shop-dot { color: var(--accent); }
.shop-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.shop-tags span { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); background: rgba(34,82,204,0.08); border: 1px solid rgba(34,82,204,0.18); padding: 4px 9px; border-radius: 100px; }
.shop-product-price.pending { font-size: 20px; font-weight: 600; color: var(--text-muted); }
.shop-stock-box { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; border: 1px solid rgba(180,83,9,0.22); background: rgba(180,83,9,0.05); border-radius: 12px; }
.shop-stock-box p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }
.shop-add:disabled { background: var(--border); color: var(--text-faint); cursor: not-allowed; }
.shop-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-top: 56px; }
.shop-stats div { background: var(--surface); padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.shop-stats strong { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 34px; color: var(--accent); line-height: 1; }
.shop-stats span { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-faint); }
.shop-product-body h2.shop-tagline { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.shop-features { margin-top: 48px; border-radius: 14px; overflow: hidden; }
@media (max-width: 860px) {
  .shop-gallery-nav { opacity: 1; width: 38px; height: 38px; }
}
@media (max-width: 560px) {
  .shop-gallery-thumbs { gap: 6px; }
  .shop-stats { grid-template-columns: 1fr; }
  .shop-stats div { flex-direction: row; align-items: baseline; gap: 10px; padding: 14px 18px; }
  .shop-stats strong { font-size: 26px; }
  .shop-lightbox { padding: 12px; }
  .shop-lightbox .shop-gallery-nav.prev { left: 8px; }
  .shop-lightbox .shop-gallery-nav.next { right: 8px; }
}

/* Format picker (Numérique / Papier / Les deux) */
.shop-formats { border: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.shop-formats legend { padding: 0; margin-bottom: 10px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.shop-format { position: relative; cursor: pointer; display: block; }
.shop-format input { position: absolute; opacity: 0; pointer-events: none; }
.shop-format-card {
  position: relative; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 16px 14px 14px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease, transform .15s ease;
}
.shop-format input:disabled + .shop-format-card { opacity: 0.5; cursor: not-allowed; }
.shop-format:has(input:disabled) { cursor: not-allowed; }
.shop-format:has(input:disabled):hover .shop-format-card { transform: none; border-color: var(--border); }
.shop-test-notice { font-size: 12.5px; line-height: 1.55; color: #8A5A00; background: #FFF8EC; border: 1px solid #FDE68A; border-radius: 10px; padding: 10px 12px; }
.shop-test-notice strong { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; margin-right: 6px; }
.shop-format:hover .shop-format-card { border-color: #B9C6E6; transform: translateY(-1px); }
.shop-format input:focus-visible + .shop-format-card { box-shadow: 0 0 0 3px rgba(34,82,204,0.3); }
.shop-format input:checked + .shop-format-card { border-color: var(--accent); background: linear-gradient(180deg, rgba(34,82,204,0.05), rgba(34,82,204,0.01)); box-shadow: 0 0 0 3px rgba(34,82,204,0.12); }
.shop-format-icon { width: 42px; height: 42px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-soft); color: var(--text-muted); margin-bottom: 6px; transition: background .15s ease, color .15s ease; }
.shop-format-icon svg { width: 26px; height: 26px; }
.shop-format input:checked + .shop-format-card .shop-format-icon { background: var(--accent); color: #fff; }
.shop-format input:checked + .shop-format-card .shop-format-icon rect[fill="#fff"] { fill: var(--accent); }
.shop-format-title { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 14.5px; color: var(--text); }
.shop-format-line { font-size: 12px; line-height: 1.45; color: var(--text-muted); }
.shop-format-price { margin-top: auto; padding-top: 8px; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15px; color: var(--text); }
.shop-format-check { position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--surface); color: transparent; display: inline-flex; align-items: center; justify-content: center; transition: all .15s ease; }
.shop-format-check svg { width: 12px; height: 12px; }
.shop-format input:checked + .shop-format-card .shop-format-check { background: var(--accent); border-color: var(--accent); color: #fff; }
.shop-format-flag { position: absolute; top: -10px; left: 12px; font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; background: #101317; color: #fff; padding: 3px 8px; border-radius: 100px; }
.shop-format-perks { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.shop-format-perks li { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-muted); }
.shop-format-perks li[hidden] { display: none; }
.shop-format-perks svg { width: 14px; height: 14px; color: #1E7A45; }
.shop-product-price small { font-size: 13px; font-weight: 500; color: var(--text-faint); }
@media (max-width: 560px) {
  .shop-formats { grid-template-columns: 1fr; }
  .shop-format-card { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; padding: 14px 44px 14px 14px; }
  .shop-format-icon { margin: 0; }
  .shop-format-title { flex: 1; }
  .shop-format-line { flex-basis: 100%; }
  .shop-format-price { margin: 0; padding: 0; }
}

/* Homepage shop feature */
.shop-home-new { font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 3px 9px; border-radius: 100px; }
.aer-mini { font-family: 'Sora', sans-serif; font-weight: 800; color: var(--text); }
.aer-mini i { font-family: 'Caveat', cursive; font-style: normal; font-weight: 700; font-size: 1.3em; color: var(--accent); margin-left: 1px; }
.shop-home-empty { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.shop-home-empty h2 { margin: 0; font-family: 'Sora', sans-serif; font-weight: 600; font-size: clamp(24px, 4vw, 32px); }
.shop-home-empty p { margin: 0; color: var(--text-muted); max-width: 520px; }

/* Shop: licence categories, filters, cards */
.shop-hero { padding-bottom: 32px; }
.shop-licences { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin: 8px 0 40px; }
.shop-licence { display: flex; align-items: center; gap: 14px; padding: 18px 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.shop-licence:hover { border-color: var(--accent); box-shadow: 0 12px 28px rgba(10,20,50,0.08); transform: translateY(-2px); color: var(--text); }
.shop-licence.is-current { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34,82,204,0.12); }
.shop-licence-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 13px; background: linear-gradient(160deg, #2252CC, #163A94); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.shop-licence-icon svg { width: 26px; height: 26px; }
.shop-licence.soon .shop-licence-icon { background: var(--bg-soft); color: var(--text-faint); border: 1px solid var(--border); }
.shop-licence-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.shop-licence-name { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 17px; }
.shop-licence-tag { font-size: 12.5px; color: var(--text-muted); }
.shop-licence-count { font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; color: var(--accent); background: rgba(34,82,204,0.08); padding: 4px 9px; border-radius: 100px; white-space: nowrap; }
.shop-licence.soon .shop-licence-count { color: #B45309; background: rgba(180,83,9,0.1); }
.shop-licences.compact { margin: 0 0 32px; }
.shop-licences.compact .shop-licence { padding: 12px 14px; }
.shop-licences.compact .shop-licence-icon { width: 38px; height: 38px; border-radius: 10px; }
.shop-licences.compact .shop-licence-icon svg { width: 21px; height: 21px; }
.shop-licences.compact .shop-licence-name { font-size: 15px; }

.shop-licence-page { padding-top: 28px; }
.shop-licence-hero { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 28px; }
.shop-licence-icon.big { width: 72px; height: 72px; border-radius: 20px; }
.shop-licence-icon.big svg { width: 38px; height: 38px; }
.shop-licence-hero h1 { margin: 4px 0 8px; font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(30px, 4.5vw, 42px); letter-spacing: -0.02em; }
.shop-licence-hero p { margin: 0; max-width: 640px; font-size: 15.5px; line-height: 1.65; color: var(--text-muted); }
.shop-licence-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.shop-licence-meta span { font-size: 12.5px; color: var(--text-muted); background: var(--bg-soft); border: 1px solid var(--border); padding: 5px 11px; border-radius: 100px; }
.shop-licence-meta strong { color: var(--accent); }
.shop-soon { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 56px 24px; border: 1px dashed var(--border); border-radius: 18px; background: var(--bg-soft); margin-bottom: 48px; }
.shop-soon h2 { margin: 0; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 26px; }
.shop-soon p { margin: 0; max-width: 520px; color: var(--text-muted); line-height: 1.65; }
.shop-soon .waitlist-form { width: min(420px, 100%); }

.shop-browser { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 36px; align-items: start; }
.shop-side { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 20px; padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.shop-side-head { display: flex; align-items: center; justify-content: space-between; }
.shop-side-head strong { font-family: 'Sora', sans-serif; font-size: 15px; }
.shop-side-head [hidden] { display: none; }
.shop-facet { border: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.shop-facet legend { padding: 0; margin-bottom: 8px; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); }
.shop-check { display: flex; align-items: center; gap: 10px; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; font-size: 14px; color: var(--text); cursor: pointer; }
.shop-check:hover { background: var(--bg-soft); }
.shop-check input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.shop-check span { flex: 1; }
.shop-check em { font-style: normal; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-faint); }
.shop-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.shop-search { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); }
.shop-search:focus-within { border-color: var(--accent); }
.shop-search svg { width: 18px; height: 18px; color: var(--text-faint); flex-shrink: 0; }
.shop-search input { flex: 1; min-width: 0; border: none; outline: none; padding: 12px 0; font-family: inherit; font-size: 14.5px; background: none; }
.shop-sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.shop-sort select { padding: 11px 12px; border: 1.5px solid var(--border); border-radius: 12px; font-family: inherit; font-size: 13.5px; background: var(--surface); color: var(--text); }
.shop-filter-toggle { display: none; align-items: center; gap: 8px; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.shop-filter-toggle svg { width: 18px; height: 18px; }
.shop-filter-toggle [data-filter-count] { background: var(--accent); color: #fff; font-size: 11px; min-width: 18px; height: 18px; border-radius: 100px; display: inline-flex; align-items: center; justify-content: center; }
.shop-filter-toggle [hidden] { display: none; }
.shop-active { display: flex; flex-wrap: wrap; gap: 6px; }
.shop-active:empty { display: none; }
.shop-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(34,82,204,0.3); background: rgba(34,82,204,0.06); color: var(--accent); border-radius: 100px; padding: 5px 10px 5px 12px; font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.shop-chip:hover { background: rgba(34,82,204,0.12); }
.shop-count { margin: 10px 0 18px; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--text-faint); }
.shop-empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--border); border-radius: 16px; color: var(--text-muted); }
.shop-empty[hidden] { display: none; }
.shop-empty p { margin: 0 0 14px; }
.shop-empty .btn-outline { cursor: pointer; background: var(--surface); font-family: inherit; }
.shop-browser .shop-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.shop-card-flag { position: absolute; right: 10px; top: 10px; font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #B45309; background: #FFF8EC; border: 1px solid #FDE68A; padding: 3px 8px; border-radius: 100px; }

@media (max-width: 960px) {
  .shop-browser { grid-template-columns: 1fr; gap: 0; }
  .shop-side { position: static; display: none; margin-bottom: 16px; }
  .shop-side.is-open { display: flex; }
  .shop-filter-toggle { display: inline-flex; }
  .shop-browser .shop-results { order: 2; }
  .shop-browser .shop-side { order: 1; }
}
@media (max-width: 760px) {
  .shop-licences { grid-template-columns: 1fr; gap: 10px; }
  .shop-toolbar { flex-wrap: wrap; }
  .shop-search { flex-basis: 100%; }
  .shop-sort span { display: none; }
  .shop-licence-hero { flex-direction: column; gap: 14px; }
  .shop-card-more { display: none; }
  .shop-browser .shop-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
  .shop-card-formats span { font-size: 10.5px; padding: 2px 6px; }
  .shop-card-vol { left: 6px; top: 6px; font-size: 9.5px; }
}

.shop-reassure { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-top: 56px; }
.shop-reassure div { background: var(--bg-soft); padding: 18px 20px; display: flex; flex-direction: column; gap: 3px; }
.shop-reassure strong { font-family: 'Sora', sans-serif; font-size: 14px; }
.shop-reassure span { font-size: 12.5px; color: var(--text-muted); }

.shop-product { padding-top: 32px; padding-bottom: 88px; }
.shop-crumbs { font-size: 13px; color: var(--text-faint); margin-bottom: 28px; }
.shop-crumbs a { color: var(--text-muted); }
.shop-crumbs span { margin: 0 6px; }
.shop-product-grid { display: grid; grid-template-columns: minmax(0,0.9fr) minmax(0,1.1fr); gap: 56px; align-items: center; }
.shop-product-info { display: flex; flex-direction: column; gap: 12px; }
.shop-product-info h1 { margin: 0; font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.015em; line-height: 1.15; }
.shop-product-sub { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.shop-product-price { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 32px; margin-top: 6px; }
.shop-product-price small { font-size: 13px; font-weight: 500; color: var(--text-faint); }
.shop-product-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
button.btn-primary { cursor: pointer; font-family: inherit; }
.shop-add.is-added { background: #1E7A45; }
.shop-go-cart[hidden] { display: none; }
.shop-specs { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--border); }
.shop-specs li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.shop-specs li span { width: 90px; flex-shrink: 0; font-family: 'IBM Plex Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); padding-top: 2px; }
.shop-product-body { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 56px; margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--border); }
.shop-product-body h2, .shop-related-title { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 20px; margin: 0 0 14px; }
.shop-product-body p { font-size: 15px; line-height: 1.75; color: var(--text-muted); margin: 0 0 12px; }
.shop-highlights li { color: var(--text); font-size: 14px; }
.shop-highlights li svg { color: var(--accent); }
.shop-related-title { margin-top: 72px; margin-bottom: 24px; }

.shop-cart { padding-top: 48px; padding-bottom: 96px; }
.shop-cart h1 { margin: 0 0 28px; font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(28px, 4vw, 36px); }
.shop-cart-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: 40px; align-items: start; }
.shop-cart-items { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.shop-cart-item { display: grid; grid-template-columns: 64px minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--border); }
.mini-cover { width: 64px; aspect-ratio: 2 / 3; border-radius: 3px 7px 7px 3px; background: linear-gradient(160deg, var(--from), var(--to)); box-shadow: 0 6px 14px rgba(10,20,50,0.18); }
.mini-cover.photo { background: #EEF0F4; box-shadow: none; border-radius: 8px; aspect-ratio: 1 / 1; overflow: hidden; }
.mini-cover.photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.shop-cart-item .info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.shop-cart-item .title { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15.5px; color: var(--text); }
.shop-cart-item .meta { font-size: 12.5px; color: var(--text-faint); }
.shop-cart-item .price { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 16px; }
.shop-cart-item .remove { background: none; border: none; padding: 0; font-family: inherit; font-size: 12px; font-weight: 500; color: var(--text-faint); text-decoration: underline; cursor: pointer; }
.shop-cart-item .remove:hover { color: #B42318; }
.shop-cart-empty { padding: 48px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; color: var(--text-muted); }
.shop-cart-empty p { margin: 0; font-size: 15px; }
.shop-cart-summary { position: sticky; top: 24px; border: 1px solid var(--border); border-radius: 14px; padding: 24px; background: var(--bg-soft); display: flex; flex-direction: column; gap: 14px; }
.shop-cart-summary[hidden] { display: none; }
.shop-cart-summary .row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-muted); }
.shop-cart-summary .row.total { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 20px; color: var(--text); padding-top: 12px; border-top: 1px solid var(--border); }
.shop-ship { display: flex; flex-direction: column; gap: 10px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.shop-ship[hidden] { display: none; }
.shop-ship-country { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; color: var(--text); }
.shop-ship-dest { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; font-weight: 600; color: var(--text-muted); background: var(--bg-soft); border: 1px solid var(--border); padding: 4px 9px; border-radius: 100px; }
.shop-ship-country select { padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 13px; background: var(--surface); }
.shop-ship-options { display: flex; flex-direction: column; gap: 6px; }
.shop-ship-option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; }
.shop-ship-option:has(input:checked) { border-color: var(--accent); background: rgba(34,82,204,0.04); }
.shop-ship-option input { accent-color: var(--accent); margin: 0; }
.shop-ship-option .t { flex: 1; display: flex; flex-direction: column; }
.shop-ship-option strong { font-size: 13px; }
.shop-ship-option small { font-size: 11.5px; color: var(--text-faint); }
.shop-ship-option .p { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 13.5px; }
.shop-ship-note { margin: 0; font-size: 12px; color: var(--text-faint); }
.shop-ship-note.error { color: #B42318; }
.shop-waiver { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.55; color: var(--text-muted); cursor: pointer; }
.shop-waiver input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; }
.shop-cart-login { display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--text-muted); }
.shop-cart-login[hidden], .shop-pay[hidden] { display: none; }
.shop-cart-login p { margin: 0; }
.shop-cart-login .btn-outline { text-align: center; }
.shop-pay { width: 100%; text-align: center; border: none; }
.shop-pay:disabled { opacity: 0.5; cursor: not-allowed; }
.shop-cart-note { margin: 0; font-size: 12px; line-height: 1.55; color: var(--text-faint); }
.shop-cart-note.error { color: #B42318; }

/* Ma librairie (compte) */
.library-brand b { font-family: 'Sora', sans-serif; font-weight: 800; color: var(--text); }
.library-brand i { font-family: 'Caveat', cursive; font-style: normal; font-weight: 700; font-size: 1.3em; color: var(--accent); margin-left: 1px; }
.library-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; margin: 4px 0 18px; }
.library-book {
  display: flex; gap: 16px; align-items: stretch; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.library-book:hover { border-color: var(--accent); box-shadow: 0 12px 28px rgba(10,20,50,0.1); transform: translateY(-2px); color: var(--text); }
.library-cover { width: 92px; flex-shrink: 0; aspect-ratio: 1 / 1; border-radius: 10px; background: radial-gradient(90% 80% at 50% 40%, #FFFFFF 0%, #EEF0F4 70%, #E4E7ED 100%); overflow: hidden; }
.library-cover img { width: 100%; height: 100%; object-fit: contain; display: block; }
.library-info { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
.library-kicker { font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); }
.library-title { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.library-progress { height: 4px; border-radius: 4px; background: #E3E7EE; overflow: hidden; margin-top: auto; }
.library-progress span { display: block; height: 100%; background: linear-gradient(90deg, #2252CC, #6E93FF); border-radius: 4px; }
.library-meta { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--text-faint); }
.library-cta { font-size: 13px; font-weight: 700; color: var(--accent); }
.library-empty { padding: 22px; border: 1px dashed var(--border); border-radius: 14px; background: var(--bg-soft); }
.library-empty p { margin: 0 0 4px; font-weight: 600; font-size: 14px; }
.library-empty span { font-size: 13px; color: var(--text-muted); }
.library-orders { margin: 0 0 18px; }
.library-orders h3 { margin: 0 0 10px; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 14px; }
.library-orders .purchase-row + .purchase-row { margin-top: 8px; }

.purchases-list { display: flex; flex-direction: column; gap: 10px; margin: 0 0 16px; }
.purchase-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-soft); }
.purchase-title { font-size: 14px; font-weight: 600; color: var(--text); }
.purchase-meta { font-size: 11.5px; color: var(--text-faint); margin-top: 2px; }
#purchasesSub.is-error { color: #B42318; }

@media (max-width: 860px) {
  .shop-product-grid, .shop-product-body, .shop-cart-grid { grid-template-columns: 1fr; gap: 32px; }
  .book-cover.large { max-width: 260px; }
  .shop-cart-summary { position: static; }
}
@media (max-width: 560px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
  .book-cover { padding: 12px 10px 12px 15px; }
  .book-title { font-size: 14px; }
  .shop-reassure { grid-template-columns: 1fr; }
  .shop-cart-item { grid-template-columns: 52px minmax(0,1fr); }
  .mini-cover { width: 52px; }
  .shop-cart-item .price { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Back office — /admin/commandes/ */
.adm-body { background: var(--bg-soft); }
.adm-body .nav { background: var(--surface); }
.adm-gate[hidden], #admApp[hidden] { display: none; }
.nav-brand .adm-badge, .adm-badge { margin-left: 10px; font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: #101317; padding: 4px 9px; border-radius: 100px; white-space: nowrap; }
.adm-wrap { padding-top: 40px; padding-bottom: 96px; }
.adm-gate { text-align: center; padding: 80px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--text-muted); }
.adm-gate h1 { margin: 0; font-family: 'Sora', sans-serif; color: var(--text); }
.adm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.adm-head h1 { margin: 0; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 32px; }
.adm-head p { margin: 6px 0 0; color: var(--text-muted); font-size: 14px; }
.adm-head .btn-outline { background: var(--surface); cursor: pointer; font-family: inherit; }
.adm-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 24px; }
.adm-stats div { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.adm-stats strong { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 28px; line-height: 1; }
.adm-stats span { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-faint); }
.adm-stats .hot { border-color: rgba(180,83,9,0.35); background: #FFF8EC; }
.adm-stats .hot strong { color: #B45309; }
.adm-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.adm-tab { border: 1px solid var(--border); background: var(--surface); border-radius: 100px; padding: 8px 15px; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.adm-tab span { font-family: 'IBM Plex Mono', monospace; font-size: 11px; margin-left: 4px; color: var(--text-faint); }
.adm-tab.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.adm-tab.is-active span { color: rgba(255,255,255,0.75); }
.adm-list { display: flex; flex-direction: column; gap: 14px; }
.adm-empty { background: var(--surface); border: 1px dashed var(--border); border-radius: 14px; padding: 40px; text-align: center; color: var(--text-muted); }
.adm-order { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.adm-order > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.adm-order > header div { display: flex; align-items: center; gap: 12px; }
.adm-id { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; }
.adm-date { font-size: 12.5px; color: var(--text-faint); }
.adm-total { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 16px; }
.adm-body-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 24px; padding: 18px 20px; }
.adm-body-grid h3 { margin: 0 0 8px; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); }
.adm-body-grid h3 + p, .adm-items + h3 { margin-top: 0; }
.adm-items { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.adm-items li { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 10px; align-items: center; font-size: 13.5px; }
.adm-items .fmt { font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 600; text-transform: uppercase; padding: 3px 8px; border-radius: 100px; background: var(--bg-soft); color: var(--text-muted); }
.adm-items .fmt.paper, .adm-items .fmt.bundle { background: rgba(34,82,204,0.08); color: var(--accent); }
.adm-items .amt { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--text-muted); }
.adm-client { margin: 0; font-size: 13.5px; line-height: 1.6; }
.adm-address { margin: 0 0 6px; font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; line-height: 1.65; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; white-space: pre-wrap; }
.link-btn { background: none; border: none; padding: 0; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--accent); cursor: pointer; }
.link-btn:disabled { opacity: 0.5; }
.adm-order > footer { padding: 14px 20px; border-top: 1px solid var(--border); background: var(--bg-soft); }
.adm-ship { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.adm-ship select, .adm-ship input[name=tracking] { padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; font-family: inherit; font-size: 13.5px; background: var(--surface); }
.adm-ship input[name=tracking] { flex: 1; min-width: 200px; }
.adm-notify { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-muted); }
.adm-ship .btn-primary, .adm-row-actions .btn-primary { border: none; padding: 11px 20px; font-size: 13.5px; }
.adm-shipped-info { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.adm-shipped-info code { font-family: 'IBM Plex Mono', monospace; background: var(--bg-soft); padding: 2px 6px; border-radius: 5px; color: var(--text); }
.adm-row-actions { display: flex; align-items: center; gap: 18px; }
.adm-lulu { margin: 0 20px 16px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft); display: flex; flex-direction: column; gap: 6px; }
.adm-lulu.has-error { border-color: rgba(180,35,24,0.35); background: #FFF6F5; }
.adm-lulu-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.adm-lulu-brand { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 14px; }
.adm-lulu-env { font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 600; letter-spacing: 0.05em; color: #B45309; background: #FFF8EC; border: 1px solid #FDE68A; padding: 2px 7px; border-radius: 100px; }
.adm-lulu-job { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--text-muted); }
.adm-lulu-msg { margin: 0; font-size: 13px; color: var(--text-muted); }
.adm-lulu-err { margin: 0; font-size: 12.5px; color: #B42318; font-family: 'IBM Plex Mono', monospace; }
.adm-lulu-meta { font-size: 12px; color: var(--text-faint); }
.adm-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 30; background: #101317; color: #fff; font-size: 13px; padding: 10px 16px; border-radius: 100px; box-shadow: 0 10px 30px rgba(10,20,50,0.25); }
.adm-toast[hidden] { display: none; }
@media (max-width: 760px) {
  .adm-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .adm-body-grid { grid-template-columns: 1fr; }
  .adm-head { flex-direction: column; align-items: flex-start; }
}

/* Academy lesson -> book chapter link */
.book-link {
  display: flex; gap: 20px; align-items: center; margin: 40px 0 8px; padding: 18px 22px 18px 18px;
  border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(135deg, #F7F9FC 0%, #EEF2F8 100%);
}
.book-link.wide { margin-top: 32px; }
.book-link-after { max-width: 760px; margin: 24px auto 88px; padding: 0 var(--gutter); box-sizing: border-box; }
.book-link-after .book-link { margin: 0; }
.book-link-media { width: 104px; flex-shrink: 0; aspect-ratio: 1 / 1; border-radius: 12px; background: radial-gradient(85% 75% at 50% 42%, #FFFFFF 0%, #EEF0F4 70%, #E2E6EC 100%); overflow: hidden; }
.book-link-media img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .3s ease; }
.book-link:hover .book-link-media img { transform: translateY(-3px) rotate(-1deg); }
.book-link-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.book-link-kicker { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.book-link-title { margin: 0; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15.5px; color: var(--text); }
.book-link-title em { font-style: normal; color: var(--accent); }
.book-link-text { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--text-muted); }
.book-link ul { list-style: none; margin: 2px 0 4px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.book-link li { display: grid; grid-template-columns: 26px minmax(0,1fr) auto; gap: 8px; align-items: baseline; font-size: 13.5px; }
.book-link li .n { font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; color: var(--accent); }
.book-link li .t { color: var(--text); }
.book-link li .p { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-faint); }
.book-link .link { font-size: 13px; font-weight: 700; }
@media (max-width: 560px) {
  .book-link { flex-direction: column; align-items: flex-start; }
  .book-link-media { width: 88px; }
}

/* Thank-you page (/boutique/merci/) */
.merci { padding-top: 24px; padding-bottom: 88px; }
.merci-scene { position: relative; width: 560px; height: 230px; margin: 0 auto; }
.merci-scene > svg { width: 100%; height: 100%; display: block; overflow: visible; }
.merci-trail { stroke-dashoffset: 0; animation: merciTrail 1.8s ease-out both; }
@keyframes merciTrail { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.merci-plane { position: absolute; left: 0; top: 0; width: 34px; height: 34px; offset-path: path("M60 190 C 150 186, 200 150, 250 118 S 340 44, 410 52"); offset-rotate: auto 90deg; offset-distance: 100%; animation: merciFly 1.8s cubic-bezier(.45,.05,.3,1) both; }
.merci-plane svg { width: 100%; height: 100%; display: block; }
@keyframes merciFly { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.merci-check { transform-box: fill-box; transform-origin: center; animation: merciPop .5s 1.55s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes merciPop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
.merci-ring { stroke-dasharray: 240; stroke-dashoffset: 240; animation: merciDraw .7s 1.7s ease-out forwards; }
.merci-tick { stroke-dasharray: 60; stroke-dashoffset: 60; animation: merciDraw .45s 2.25s ease-out forwards; }
@keyframes merciDraw { to { stroke-dashoffset: 0; } }
.merci-clouds path { animation: merciCloud 9s ease-in-out infinite alternate; }
.merci-clouds path:nth-child(2) { animation-duration: 11s; }
@keyframes merciCloud { from { transform: translateX(-8px); } to { transform: translateX(10px); } }
.merci-confetti { position: absolute; left: 478px; top: 128px; width: 0; height: 0; }
.merci-confetti i { position: absolute; width: 7px; height: 7px; border-radius: 2px; background: #2252CC; opacity: 0; animation: merciBurst 1.1s 2.2s ease-out forwards; }
.merci-confetti i:nth-child(2n) { background: #6E93FF; width: 5px; height: 9px; }
.merci-confetti i:nth-child(3n) { background: #1E7A45; border-radius: 50%; }
.merci-confetti i:nth-child(1) { --x: -70px; --y: -60px; } .merci-confetti i:nth-child(2) { --x: 60px; --y: -70px; }
.merci-confetti i:nth-child(3) { --x: 80px; --y: 10px; } .merci-confetti i:nth-child(4) { --x: -80px; --y: 20px; }
.merci-confetti i:nth-child(5) { --x: -30px; --y: -90px; } .merci-confetti i:nth-child(6) { --x: 30px; --y: 70px; }
.merci-confetti i:nth-child(7) { --x: -50px; --y: 70px; } .merci-confetti i:nth-child(8) { --x: 20px; --y: -95px; }
@keyframes merciBurst { 0% { opacity: 1; transform: translate(0,0) rotate(0); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(200deg); } }
@media (prefers-reduced-motion: reduce) {
  .merci-trail, .merci-plane, .merci-check, .merci-clouds path, .merci-confetti i { animation: none; }
  .merci-ring, .merci-tick { animation: none; stroke-dashoffset: 0; }
}
.merci-head { text-align: center; max-width: 640px; margin: 8px auto 36px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.merci-head h1 { margin: 0; font-family: 'Sora', sans-serif; font-weight: 800; font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.025em; }
.merci-head p { margin: 0; font-size: 16px; color: var(--text-muted); line-height: 1.6; }
.merci-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 20px; align-items: start; }
.merci-main, .merci-side { display: flex; flex-direction: column; gap: 20px; }
.merci-card { border: 1px solid var(--border); border-radius: 18px; background: var(--surface); padding: 24px; }
.merci-card[hidden] { display: none; }
.merci-card h2 { margin: 0 0 12px; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 18px; }
.merci-kicker { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.merci-loading { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 14px; }
.merci-loading .spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--accent); animation: aerSpin .8s linear infinite; }
@keyframes aerSpin { to { transform: rotate(360deg); } }
.merci-delay { display: flex; gap: 16px; }
.merci-delay + .merci-delay { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.merci-delay-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; background: rgba(34,82,204,0.08); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.merci-delay-icon svg { width: 28px; height: 28px; }
.merci-delay h2 { font-size: 17px; margin-bottom: 6px; }
.merci-delay p { margin: 0 0 8px; font-size: 14px; line-height: 1.65; color: var(--text-muted); }
.merci-eta { color: var(--text) !important; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.merci-small { font-size: 12.5px !important; color: var(--text-faint) !important; }
.merci-read { display: inline-block; margin: 6px 8px 0 0; }
.merci-order-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.merci-order-head strong { font-family: 'IBM Plex Mono', monospace; font-size: 18px; }
.merci-total { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 22px; }
.merci-items { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.merci-items li { display: flex; align-items: center; gap: 12px; }
.merci-items img, .merci-items .ph { width: 52px; height: 52px; border-radius: 10px; object-fit: contain; background: radial-gradient(85% 75% at 50% 42%, #FFFFFF 0%, #EEF0F4 70%, #E2E6EC 100%); flex-shrink: 0; }
.merci-items .t { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.merci-items .t strong { font-family: 'Sora', sans-serif; font-size: 14.5px; }
.merci-items .t small { font-size: 12px; color: var(--text-faint); }
.merci-items .t .link { font-size: 12.5px; font-weight: 700; }
.merci-items .p { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 14px; }
.merci-line { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--text-muted); padding: 6px 0; border-top: 1px solid var(--border); }
.merci-line.total { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 16px; color: var(--text); }
.merci-quiz h2 { font-size: 17px; }
.merci-q { margin: 0 0 12px; font-size: 14.5px; font-weight: 600; line-height: 1.5; }
.merci-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.merci-choices button { padding: 11px 10px; border: 1.5px solid var(--border); border-radius: 11px; background: var(--surface); font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.merci-choices button:hover:not(:disabled) { border-color: var(--accent); transform: translateY(-1px); }
.merci-choices button:disabled { cursor: default; opacity: 0.6; }
.merci-choices button.is-right { opacity: 1; border-color: #1E7A45; background: rgba(30,122,69,0.08); color: #1E7A45; }
.merci-choices button.is-wrong { opacity: 1; border-color: #B42318; background: rgba(180,35,24,0.06); color: #B42318; }
.merci-feedback { margin-top: 12px; font-size: 13px; line-height: 1.6; color: var(--text-muted); border-radius: 11px; padding: 11px 13px; animation: aerToastIn .3s ease; }
.merci-feedback.ok { background: rgba(30,122,69,0.07); }
.merci-feedback.ko { background: #FFF8EC; }
.merci-feedback strong { display: block; color: var(--text); margin-bottom: 3px; }
@keyframes aerToastIn { from { opacity: 0; transform: translateY(4px); } }
.merci-fact { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); font-size: 13px; line-height: 1.6; color: var(--text-muted); }
.merci-fact strong { color: var(--accent); }
.merci-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

/* Status timeline */
.otl { list-style: none; margin: 16px 0 0; padding: 0; }
.otl-step { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.otl-step:last-child { padding-bottom: 0; }
.otl-step:not(:last-child)::before { content: ""; position: absolute; left: 10px; top: 24px; bottom: 0; width: 2px; background: var(--border); }
.otl-step.is-done:not(:last-child)::before { background: var(--accent); }
.otl-dot { position: relative; width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--border); background: var(--surface); }
.otl-step.is-done .otl-dot { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2 6 9.6l4.5-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }
.otl-step.is-current .otl-dot { border-color: var(--accent); box-shadow: 0 0 0 5px rgba(34,82,204,0.14); }
.otl-step.is-current .otl-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--accent); animation: otlPulse 1.6s ease-in-out infinite; }
.otl-step.is-problem .otl-dot { border-color: #B45309; background: #FFF8EC; }
@keyframes otlPulse { 50% { transform: scale(0.6); opacity: 0.6; } }
@media (prefers-reduced-motion: reduce) { .otl-step.is-current .otl-dot::after { animation: none; } }
.otl-step div { display: flex; flex-direction: column; gap: 2px; padding-top: 1px; }
.otl-step strong { font-family: 'Sora', sans-serif; font-size: 14.5px; }
.otl-step.is-todo strong { color: var(--text-faint); }
.otl-step span { font-size: 13px; line-height: 1.55; color: var(--text-muted); }
.otl-track { margin-top: 4px; }
.otl-track code { font-family: 'IBM Plex Mono', monospace; background: var(--bg-soft); padding: 2px 6px; border-radius: 5px; }
.otl-track a { font-weight: 700; margin-left: 6px; }

/* Order tracking (/compte/commandes/) */
.orders-page { padding-top: 28px; padding-bottom: 88px; }
.orders-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.orders-head h1 { margin: 0; font-family: 'Sora', sans-serif; font-weight: 800; font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.02em; }
.orders-head p { margin: 0; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--text-faint); }
.orders-list { display: flex; flex-direction: column; gap: 10px; }
.orders-row { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.orders-row:hover { border-color: var(--accent); box-shadow: 0 10px 24px rgba(10,20,50,0.08); transform: translateY(-1px); color: var(--text); }
.orders-thumbs { display: flex; flex-shrink: 0; }
.orders-thumbs img, .orders-thumbs .ph { width: 56px; height: 56px; border-radius: 11px; object-fit: contain; background: radial-gradient(85% 75% at 50% 42%, #FFFFFF 0%, #EEF0F4 70%, #E2E6EC 100%); border: 2px solid #fff; }
.orders-thumbs > * + * { margin-left: -18px; }
.orders-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.orders-no { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--text-faint); }
.orders-titles { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15px; }
.orders-titles small { font-family: 'Work Sans', sans-serif; font-weight: 500; font-size: 12px; color: var(--text-muted); }
.orders-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.orders-right strong { font-family: 'Sora', sans-serif; font-size: 15px; }
.orders-go { color: var(--accent); font-weight: 700; }
.orders-empty { text-align: center; padding: 56px 20px; border: 1px dashed var(--border); border-radius: 18px; display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--text-muted); }
.orders-detail { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 20px; align-items: start; }
.orders-side { display: flex; flex-direction: column; gap: 20px; }
.orders-address { margin: 0; font-size: 14px; line-height: 1.7; }
.orders-invoice { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; }
.orders-back { margin-top: 28px; }
.purchase-row.is-link { color: var(--text); transition: border-color .15s ease; }
.purchase-row.is-link:hover { border-color: var(--accent); color: var(--text); }
.library-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.library-orders-link { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 700; }

@media (max-width: 860px) {
  .merci-grid, .orders-detail { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  /* The scene keeps its 560 px coordinates (plane path, confetti): centred on the column, then scaled down. */
  .merci-scene { margin-left: calc(50% - 280px); margin-right: 0; transform: scale(0.62); transform-origin: top center; margin-bottom: -88px; }
}
@media (max-width: 560px) {
  .merci-card { padding: 18px; }
  .orders-row { flex-wrap: wrap; }
  .orders-right { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
  .orders-go { display: none; }
  .merci-choices { grid-template-columns: 1fr; }
}

/* 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: 900px) {
  .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-slide { min-height: 0; }
  .hero-content { padding: 232px 22px 30px; gap: 14px; }
  .hero-slide--blue .hero-content, .hero-slide--navy .hero-content { max-width: none; }
  .hero-slide::after { background: linear-gradient(to top, rgba(8,10,14,0.9) 0%, rgba(8,10,14,0.72) 45%, rgba(8,10,14,0.15) 75%, rgba(8,10,14,0) 88%); }
  .hero-slide--blue::after { background: linear-gradient(to top, rgba(10,22,70,0.55) 0%, rgba(10,22,70,0) 45%); }
  .hero-slide--navy::after { background: linear-gradient(to top, rgba(8,12,26,0.95) 0%, rgba(8,12,26,0.75) 50%, rgba(8,12,26,0) 85%); }
  .hero-slide > img.hero-bg { object-position: 58% 30%; }
  .hero-slide--navy > img.hero-bg { left: 0; right: auto; width: 100%; object-position: 70% 50%; height: 62%; -webkit-mask-image: none; mask-image: none; }
  .hero-phones { right: auto; left: 50%; bottom: auto; top: 34px; width: auto; height: 205px; margin-left: -150px; max-width: none; }
  .hero-bars { left: 22px; right: 22px; top: 14px; }
  .hero-arrow { display: none; }
  .hero-cta .btn-primary, .hero-cta .btn-outline-light { flex: 1 1 100%; text-align: center; }
  .hero-chips { gap: 8px; }
  .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: var(--surface); 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: var(--surface); 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: var(--surface); 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: var(--surface);
  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: var(--surface); 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: var(--surface); 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, transparent, 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; }
.lesson-paywall-more { display: block; margin-top: 14px; font-size: 13px; font-weight: 600; }

.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: var(--surface); 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: var(--surface); 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: var(--surface); 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: var(--surface); 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: minmax(0, 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%; }
}

/* Account dashboard v2 (/compte/): header, tabs, subscription, plans */
.acc { max-width: 1040px; margin: 32px auto 96px; }
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.acc-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.acc-avatar { width: 56px; height: 56px; font-size: 20px; border: none; }
.acc-id-text { min-width: 0; }
.acc-id h1 { margin: 0; font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(21px, 3vw, 27px); letter-spacing: -0.01em; }
.acc-id p { margin: 3px 0 0; font-size: 13px; color: var(--text-faint); overflow-wrap: anywhere; }
.acc-dot { margin: 0 7px; }
.acc-plan-chip { font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 7px 14px; border-radius: 100px; background: var(--bg-soft); border: 1px solid var(--border); color: var(--text-muted); white-space: nowrap; }
.acc-plan-chip.is-premium { background: linear-gradient(135deg, #FDE68A, #FACC15); border-color: #EAB308; color: #78350F; }
.acc-plan-chip.is-warn { background: rgba(217,119,6,0.12); border-color: rgba(217,119,6,0.35); color: #B45309; }

.acc-tabs { position: sticky; top: 0; z-index: 20; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); margin-bottom: 26px; }
.acc-tabs::-webkit-scrollbar { display: none; }
.acc-tabs a { flex-shrink: 0; padding: 14px 14px 12px; font-size: 14px; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.acc-tabs a:hover { color: var(--text); }
.acc-tabs a.active { color: var(--accent); border-bottom-color: var(--accent); }
.acc-panel[hidden] { display: none; }

.acc-skeleton { height: 150px; border-radius: 12px; background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.1), rgba(255,255,255,0.04)); }
.acc-dbf-mini .acc-skeleton { background: var(--bg-soft); }

.acc-overview { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 18px; margin-bottom: 18px; }
.acc-sub-hero { position: relative; border-radius: 18px; padding: 26px 28px; color: #F5F6F7; background: radial-gradient(120% 120% at 90% 0%, #1B3366 0%, #0E1D3B 55%, #0A1428 100%); border: 1px solid #1E3155; display: flex; flex-direction: column; gap: 16px; }
.acc-kicker { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.acc-sub-hero .acc-kicker { color: #8FB0FF; }
.acc-sub-hero h2 { margin: 4px 0 0; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 24px; line-height: 1.2; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acc-sub-hero p { margin: 0; font-size: 14px; line-height: 1.6; color: #B3BFDB; }
.acc-sub-hero .auth-status-pill.active { background: rgba(110,231,183,0.16); color: #6EE7B7; }
.acc-sub-hero .auth-status-pill.pending { background: rgba(251,191,36,0.16); color: #FBBF24; }
.acc-keyfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.acc-keyfact { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 12px 14px; }
.acc-keyfact span { display: block; font-size: 11.5px; color: #93A1C2; }
.acc-keyfact strong { display: block; margin-top: 3px; font-family: 'Sora', sans-serif; font-size: 16px; color: #fff; }
.acc-keyfact em { display: block; font-style: normal; font-size: 12px; color: #B3BFDB; margin-top: 1px; }
.acc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: auto; }
.acc-actions .btn-primary { padding: 11px 20px; font-size: 14px; border: none; cursor: pointer; font-family: inherit; }
.acc-sub-hero .acc-actions .btn-primary { background: #fff; color: #0E1D3B; }
.acc-sub-hero .acc-actions .btn-primary:hover { background: #E6ECFA; }
.acc-sub-hero .acc-actions .link { color: #C9D6F5; font-size: 13.5px; font-weight: 600; }
.acc-btn-ghost { background: none; border: 1px solid var(--border); color: var(--text); font-family: inherit; font-size: 13.5px; font-weight: 600; padding: 10px 18px; border-radius: 100px; cursor: pointer; }
.acc-btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.acc-btn-ghost:disabled { opacity: 0.6; cursor: default; }
.acc-btn-danger { background: none; border: none; padding: 0; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text-faint); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.acc-btn-danger:hover { color: #B42318; }
.acc-btn-danger.confirming { color: #fff; background: #A31E1E; text-decoration: none; padding: 9px 16px; border-radius: 100px; }
.acc-btn-danger:disabled { opacity: 0.6; cursor: default; }

.acc-dbf-mini { border-radius: 18px; padding: 24px 24px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.acc-dbf-mini h3 { margin: 0; font-family: 'Sora', sans-serif; font-size: 18px; line-height: 1.3; }
.acc-dbf-mini p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--text-muted); }
.acc-dbf-brand { display: flex; align-items: center; gap: 10px; }
.acc-dbf-brand img { width: 30px; height: 30px; padding: 6px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); }
.acc-dbf-brand b { font-family: 'Sora', sans-serif; font-size: 15px; }
.acc-dbf-brand b i { font-style: normal; color: var(--accent); }
.acc-dbf-mini.is-promo { background: linear-gradient(160deg, #F3F6FF 0%, #FFFFFF 70%); border-color: #C7D7FE; }
.acc-dbf-mini ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.acc-dbf-mini li { font-size: 13px; color: var(--text); padding-left: 22px; position: relative; line-height: 1.45; }
.acc-dbf-mini li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.acc-dbf-ready { display: flex; align-items: baseline; gap: 10px; }
.acc-dbf-ready strong { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 38px; color: var(--accent); line-height: 1; }
.acc-dbf-ready strong small { font-size: 18px; color: var(--text-faint); }
.acc-dbf-ready span { font-size: 13px; color: var(--text-muted); }
.acc-dbf-prio { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--bg-soft); }
.acc-dbf-prio span { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); }
.acc-dbf-prio strong { font-family: 'Sora', sans-serif; font-size: 14.5px; }
.acc-dbf-mini .acc-actions .btn-primary { padding: 10px 18px; font-size: 13.5px; }

.acc-quick { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.acc-quick-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-soft); color: var(--text); transition: border-color .15s ease, background .15s ease; }
.acc-quick-item:hover { border-color: var(--accent); background: var(--surface); color: var(--text); }
.acc-quick-ic { width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 17px; color: var(--accent); font-weight: 700; }
.acc-quick-item strong { display: block; font-size: 14px; }
.acc-quick-item em { display: block; font-style: normal; font-size: 12px; color: var(--text-faint); margin-top: 1px; }

/* Subscription detail */
.acc-sub-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px 28px; margin-bottom: 18px; }
.acc-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.acc-sub-card h2, .acc-invoices h2 { margin: 0; font-family: 'Sora', sans-serif; font-size: 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acc-sub-card .acc-card-sub { margin: 4px 0 0; font-size: 13.5px; color: var(--text-muted); }
.acc-alert { margin: 18px 0 0; padding: 12px 14px; border-radius: 10px; font-size: 13.5px; line-height: 1.55; }
.acc-alert.warn { background: rgba(217,119,6,0.08); border: 1px solid rgba(217,119,6,0.25); color: #92400E; }
.acc-alert.info { background: rgba(34,82,204,0.06); border: 1px solid rgba(34,82,204,0.18); color: #1E3A8A; }
.acc-facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; margin: 22px 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.acc-fact { padding: 14px 16px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.acc-fact:nth-child(3n) { border-right: none; }
.acc-fact:nth-last-child(-n+3) { border-bottom: none; }
.acc-fact span { display: block; font-size: 11.5px; color: var(--text-faint); }
.acc-fact strong { display: block; margin-top: 3px; font-size: 15px; font-weight: 600; color: var(--text); }
.acc-fact em { display: block; font-style: normal; font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.acc-fact.is-key { background: rgba(34,82,204,0.05); }
.acc-fact.is-key strong { color: var(--accent); font-family: 'Sora', sans-serif; font-size: 17px; }

.acc-timeline { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); position: relative; }
.acc-timeline::before { content: ""; position: absolute; left: 7px; right: 7px; top: 7px; height: 2px; background: var(--border); }
.acc-timeline li { position: relative; padding-top: 24px; padding-right: 10px; }
.acc-timeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border); box-sizing: border-box; }
.acc-timeline li.done::before { background: var(--accent); border-color: var(--accent); }
.acc-timeline li.next::before { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(34,82,204,0.15); }
.acc-timeline li:last-child { text-align: right; padding-right: 0; }
.acc-timeline li:last-child::before { left: auto; right: 0; }
.acc-timeline span { display: block; font-size: 11.5px; color: var(--text-faint); }
.acc-timeline strong { display: block; font-size: 13.5px; font-weight: 600; margin-top: 2px; }
.acc-period { margin: -6px 0 22px; }
.acc-period-bar { height: 6px; border-radius: 6px; background: var(--bg-soft); border: 1px solid var(--border); overflow: hidden; }
.acc-period-bar i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.acc-period p { margin: 6px 0 0; font-size: 12px; color: var(--text-faint); }
.acc-sub-card .acc-actions { padding-top: 18px; border-top: 1px solid var(--border); }
.acc-sub-card .acc-actions .acc-note { font-size: 12.5px; color: var(--text-faint); flex-basis: 100%; }

.acc-invoices { margin-bottom: 18px; }
.acc-inv-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.acc-inv-table th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-faint); padding: 0 10px 10px 0; border-bottom: 1px solid var(--border); }
.acc-inv-table td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--border); vertical-align: middle; }
.acc-inv-table tr:last-child td { border-bottom: none; }
.acc-inv-table .num { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--text-muted); }
.acc-inv-table .amt { font-weight: 600; white-space: nowrap; }
.acc-inv-table .dl { text-align: right; white-space: nowrap; padding-right: 0; }
.acc-inv-table .dl a { font-weight: 600; font-size: 13px; }

/* Plans */
.acc-plans { margin-top: 34px; }
.acc-plans-head { max-width: 640px; margin-bottom: 22px; }
.acc-plans-head h2 { margin: 6px 0 8px; font-family: 'Sora', sans-serif; font-size: clamp(22px, 3vw, 28px); }
.acc-plans-head p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-muted); }
.acc-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; align-items: stretch; }
.acc-plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px 22px; }
.acc-plan.is-featured { border: 2px solid var(--accent); box-shadow: 0 16px 40px -20px rgba(34,82,204,0.45); }
.acc-plan.is-current { background: var(--bg-soft); }
.acc-plan-ribbon { position: absolute; top: -11px; left: 22px; font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--accent); color: #fff; padding: 4px 10px; border-radius: 100px; }
.acc-plan-current-tag { position: absolute; top: -11px; right: 22px; font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: #1E7A45; color: #fff; padding: 4px 10px; border-radius: 100px; }
.acc-plan-top { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.acc-plan-name { display: block; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15px; }
.acc-plan-price { display: block; margin-top: 10px; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 32px; line-height: 1; }
.acc-plan-price small { font-size: 14px; font-weight: 500; color: var(--text-faint); }
.acc-plan-bill { display: block; margin-top: 8px; font-size: 12.5px; color: var(--text-muted); line-height: 1.45; min-height: 36px; }
.acc-plan ul { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.acc-plan li { position: relative; padding-left: 24px; font-size: 13.5px; line-height: 1.45; }
.acc-plan li.yes::before { content: "✓"; position: absolute; left: 0; color: #1E7A45; font-weight: 700; }
.acc-plan li.no { color: var(--text-faint); }
.acc-plan li.no::before { content: "—"; position: absolute; left: 0; color: #B6BDC8; }
.acc-plan-foot { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.acc-plan-cta { text-align: center; font-size: 14px; font-weight: 600; padding: 12px 18px; border-radius: 100px; }
.acc-plan-cta.btn-primary { display: block; }
.acc-plan-cta.is-current { background: rgba(30,122,69,0.1); color: #1E7A45; }
.acc-plan-cta.is-soon { background: var(--bg-soft); border: 1px dashed var(--border); color: var(--text-muted); }
.acc-plan-cta.is-muted { background: var(--bg-soft); color: var(--text-faint); }
.acc-plan-more { text-align: center; font-size: 13px; font-weight: 600; }
.acc-plan-note { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--border); font-size: 13px; line-height: 1.55; color: var(--text-muted); }
.acc-other-plans { margin-top: 26px; }
.acc-other-plans h3 { margin: 0 0 10px; font-family: 'Sora', sans-serif; font-size: 15px; }
.acc-other { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; }
.acc-other strong { display: block; font-size: 14px; }
.acc-other span:not(.auth-status-pill) { display: block; font-size: 12.5px; color: var(--text-faint); margin-top: 1px; }
.acc-faq { margin-top: 26px; border-top: 1px solid var(--border); }
.acc-faq details { border-bottom: 1px solid var(--border); }
.acc-faq summary { cursor: pointer; padding: 14px 0; font-size: 14px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.acc-faq summary::-webkit-details-marker { display: none; }
.acc-faq summary::after { content: "+"; color: var(--text-faint); font-weight: 400; font-size: 18px; line-height: 1; }
.acc-faq details[open] summary::after { content: "−"; }
.acc-faq p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.65; color: var(--text-muted); }
.acc-cgv { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600; }

.acc-switch { margin-top: 18px; padding: 24px 26px; border: 2px solid var(--accent); border-radius: 18px; background: var(--surface); box-shadow: 0 16px 40px -24px rgba(34,82,204,0.5); }
.acc-switch .dbf-loading { padding: 24px 0; }
.acc-switch-head h3 { margin: 6px 0 16px; font-family: 'Sora', sans-serif; font-size: 20px; }
.acc-switch-lines { margin: 0; border-top: 1px solid var(--border); }
.acc-switch-lines div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.acc-switch-lines dt { font-size: 14px; color: var(--text); }
.acc-switch-lines dd { margin: 0; font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.acc-switch-lines .credit dt { color: var(--text-muted); }
.acc-switch-lines .credit dd { color: #1E7A45; }
.acc-switch-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0 4px; }
.acc-switch-total span { font-size: 15px; font-weight: 600; }
.acc-switch-total strong { font-family: 'Sora', sans-serif; font-size: 26px; color: var(--accent); }
.acc-switch-facts { list-style: none; margin: 14px 0 20px; padding: 14px 16px; border-radius: 12px; background: var(--bg-soft); display: flex; flex-direction: column; gap: 6px; }
.acc-switch-facts li { font-size: 13.5px; line-height: 1.5; color: var(--text-muted); padding-left: 18px; position: relative; }
.acc-switch-facts li::before { content: "•"; position: absolute; left: 4px; color: var(--accent); }
.acc-switch-note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--text-faint); }
.acc-switch .acc-alert { margin: 0 0 14px; }
button.acc-plan-cta { border: none; cursor: pointer; font-family: inherit; width: 100%; }
/* Offer cards of /compte/ (assets/js/compte-offers.js): Essentiel / Pilote with a Mensuel / Annuel switch. */
.acc-offers[data-rythme="annuel"] [data-when="mensuel"], .acc-offers[data-rythme="mensuel"] [data-when="annuel"] { display: none !important; }
.acc-offers-bar { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 22px; }
.acc-offers-title h3 { margin: 4px 0 0; font-family: 'Sora', sans-serif; font-size: 18px; line-height: 1.3; }
.acc-offers-switch { display: inline-flex; padding: 4px; border-radius: 100px; background: var(--bg-soft); border: 1px solid var(--border); }
.acc-offers-switch button { appearance: none; border: 0; background: transparent; color: var(--text-muted); cursor: pointer; font: 600 13.5px/1 'Work Sans', sans-serif; padding: 9px 16px; border-radius: 100px; display: inline-flex; align-items: center; gap: 7px; }
.acc-offers-switch button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(16,19,23,0.12); }
.acc-offers-save { font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 100px; background: #DDF5E6; color: #145C33; }
.acc-offers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.acc-offers.is-single .acc-offers-grid { grid-template-columns: minmax(0, 1fr); }
.acc-offer-pitch { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--text-muted); }
.acc-offer-price .acc-plan-price s { font-size: 16px; font-weight: 600; color: var(--text-faint); margin-right: 4px; }
.acc-offer-price .acc-plan-bill b { color: #1E7A45; }
.acc-offer-disc { display: inline-block; margin-top: 8px; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 100px; background: rgba(30,122,69,0.1); color: #1E7A45; }
.acc-plan-foot > span { display: flex; flex-direction: column; }
.acc-plan-cta.is-ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.acc-plan-cta.is-ghost:hover { background: var(--accent); color: #fff; }
.acc-offer.is-pilote { background: linear-gradient(180deg, #13296B 0%, #0B1838 100%); border: 1px solid #2A4CB0; color: #F5F7FB; box-shadow: 0 18px 44px -24px rgba(22,52,138,0.6); }
.acc-offer.is-pilote .acc-plan-top { border-bottom-color: rgba(255,255,255,0.14); }
.acc-offer.is-pilote .acc-offer-pitch, .acc-offer.is-pilote .acc-plan-bill, .acc-offer.is-pilote .acc-plan-price small, .acc-offer.is-pilote .acc-plan-price s { color: rgba(245,247,251,0.7); }
.acc-offer.is-pilote .acc-plan-bill b { color: #7DDBA3; }
.acc-offer.is-pilote li { color: rgba(245,247,251,0.92); }
.acc-offer.is-pilote li.yes::before { color: #7DA6FF; }
.acc-offer.is-pilote .acc-plan-ribbon { background: #A9C0FF; color: #0B1838; }
.acc-offer.is-pilote .acc-plan-cta.btn-primary { background: #fff; color: #0B1838; }
.acc-offer.is-pilote .acc-plan-cta.btn-primary:hover { background: #A9C0FF; }
.acc-offer.is-pilote .acc-plan-cta.is-current { background: rgba(125,219,163,0.16); color: #7DDBA3; }
.acc-offer.is-pilote .acc-plan-cta.is-soon { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.2); color: rgba(245,247,251,0.75); }
.acc-offer.is-pilote .acc-offer-disc { background: rgba(125,219,163,0.16); color: #7DDBA3; }
.acc-offer.is-current:not(.is-pilote) { background: var(--bg-soft); }
.acc-offers.is-compact .acc-plan { padding: 20px 18px; }
.acc-offers.is-compact .acc-plan-price { font-size: 28px; }
.acc-offers.is-compact .acc-plan ul { margin-bottom: 16px; }
.acc-offers-mini { margin-top: 16px; }
.acc-offers-mini .acc-offers-bar { margin-bottom: 18px; }
@media (max-width: 760px) {
  .acc-offers-grid { grid-template-columns: 1fr; }
  .acc-offers-bar { align-items: flex-start; }
}
a.acc-btn-ghost { display: inline-block; }

/* Debrief tab */
.acc-dbf-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.acc-dbf-head h2 { margin: 0; font-family: 'Sora', sans-serif; font-size: 22px; }
.acc-dbf-head p { margin: 4px 0 0; font-size: 13.5px; color: var(--text-muted); }
.acc-dbf-promo { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 22px; padding: 28px 30px; border-radius: 18px; color: #F5F6F7; background: radial-gradient(120% 110% at 85% 0%, #16284D 0%, #0C1830 55%, #091223 100%); border: 1px solid #1E3155; margin-bottom: 22px; }
.acc-dbf-promo h2 { margin: 6px 0 8px; font-family: 'Sora', sans-serif; font-size: 22px; }
.acc-dbf-promo p { margin: 0; font-size: 14px; line-height: 1.6; color: #B3BFDB; max-width: 560px; }
.acc-dbf-promo .acc-kicker { color: #8FB0FF; }
.acc-dbf-promo .acc-actions { flex-direction: column; align-items: stretch; }
.acc-dbf-promo .btn-primary { background: var(--surface); color: #0C1830; text-align: center; }
.acc-dbf-promo .link { color: #C9D6F5; font-size: 13px; font-weight: 600; text-align: center; }
.acc-dbf-preview { position: relative; max-height: 560px; overflow: hidden; pointer-events: none; user-select: none; }
.acc-dbf-preview::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 260px; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 85%); }
.acc-dbf-preview .dbf-app { margin-top: 0; }

@media (max-width: 860px) {
  .acc-overview { grid-template-columns: 1fr; }
  .acc-plan-grid { grid-template-columns: 1fr; gap: 20px; }
  .acc-plan-bill { min-height: 0; }
  .acc-facts { grid-template-columns: 1fr 1fr; }
  .acc-fact:nth-child(3n) { border-right: 1px solid var(--border); }
  .acc-fact:nth-child(2n) { border-right: none; }
  .acc-fact:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .acc-fact:nth-last-child(-n+2) { border-bottom: none; }
  .acc-dbf-promo { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .acc-quick { grid-template-columns: 1fr; }
  .acc-sub-hero, .acc-sub-card { padding: 22px 18px; }
  .acc-timeline { grid-auto-flow: row; gap: 14px; }
  .acc-timeline::before { left: 7px; right: auto; top: 7px; bottom: 7px; width: 2px; height: auto; }
  .acc-timeline li, .acc-timeline li:last-child { padding: 0 0 0 28px; text-align: left; }
  .acc-timeline li::before, .acc-timeline li:last-child::before { left: 0; right: auto; }
  .acc-inv-table .num { display: none; }
  .acc-facts { grid-template-columns: 1fr; }
  .acc-fact, .acc-fact:nth-child(3n), .acc-fact:nth-child(2n) { border-right: none; border-bottom: 1px solid var(--border); }
  .acc-fact:last-child { border-bottom: none; }
}

/* 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: var(--surface); 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; }
}

/* ---------- Back office shell (/admin/) ---------- */
.adm-shell { display: grid; grid-template-columns: 248px minmax(0,1fr); min-height: 100vh; }
.adm-side { position: sticky; top: 0; height: 100vh; background: #0E1116; color: #AEB7C4; padding: 22px 14px 18px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.adm-side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px; color: #fff; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15px; text-decoration: none; }
.adm-side-kicker { padding: 0 10px 14px; font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: #6B7686; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 8px; }
.adm-side-nav { display: flex; flex-direction: column; gap: 2px; }
.adm-side-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: #AEB7C4; font-size: 14px; font-weight: 500; text-decoration: none; transition: background .15s, color .15s; }
.adm-side-nav a svg { width: 18px; height: 18px; flex: none; }
.adm-side-nav a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.adm-side-nav a.is-active { background: rgba(78,124,255,0.16); color: #fff; }
.adm-side-nav a.is-active svg { color: #7EA2FF; }
.adm-side-badge { margin-left: auto; font-style: normal; font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 100px; display: inline-flex; align-items: center; justify-content: center; background: #F59E0B; color: #111; }
.adm-side-badge.is-red { background: #E5484D; color: #fff; }
.adm-side-badge[hidden] { display: none; }
.adm-side-env { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 10px 10px; }
.adm-env { font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 600; letter-spacing: 0.05em; padding: 3px 8px; border-radius: 100px; }
.adm-env.is-test { background: rgba(245,158,11,0.15); color: #FBBF24; }
.adm-env.is-live { background: rgba(34,197,94,0.15); color: #4ADE80; }
.adm-side-foot { display: flex; flex-direction: column; gap: 4px; padding: 12px 10px 0; border-top: 1px solid rgba(255,255,255,0.07); font-size: 12px; }
.adm-side-foot span { color: #6B7686; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-side-foot a { color: #AEB7C4; text-decoration: none; }
.adm-side-foot a:hover { color: #fff; }
.adm-main { min-width: 0; padding: 36px 40px 96px; max-width: 1180px; width: 100%; }
.adm-shell .adm-gate { padding: 120px 0; }

/* Alerts and Lulu payment badge */
.adm-alert { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-radius: 14px; margin-bottom: 20px; border: 1px solid rgba(229,72,77,0.35); background: #FFF4F4; color: #8F1D21; font-size: 14px; }
.adm-alert strong { font-family: 'Sora', sans-serif; }
.adm-alert .adm-alert-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.adm-alert[hidden] { display: none; }
.adm-btn-red { display: inline-flex; align-items: center; gap: 6px; background: #E5484D; color: #fff !important; border: none; border-radius: 100px; padding: 9px 16px; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; font-family: inherit; }
.adm-btn-red:hover { background: #CE3A3F; }
.adm-btn-ghost { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); color: var(--text) !important; border: 1px solid var(--border); border-radius: 100px; padding: 8px 15px; font-size: 13px; font-weight: 600; text-decoration: none; }
.adm-pay-badge { display: inline-flex; align-items: center; gap: 6px; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; background: #E5484D; padding: 4px 10px; border-radius: 100px; animation: admPulse 2s ease-in-out infinite; }
.adm-pay-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--surface); }
@keyframes admPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(229,72,77,0.45); } 50% { box-shadow: 0 0 0 6px rgba(229,72,77,0); } }
@media (prefers-reduced-motion: reduce) { .adm-pay-badge { animation: none; } }
.adm-order.is-unpaid { border-color: rgba(229,72,77,0.45); box-shadow: 0 0 0 3px rgba(229,72,77,0.08); }
.adm-lulu.is-unpaid { border-color: rgba(229,72,77,0.35); background: #FFF6F6; }
.adm-lulu-pay { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #8F1D21; }
.adm-tab.is-red span { color: #E5484D; font-weight: 700; }
.adm-tab.is-red.is-active { background: #E5484D; border-color: #E5484D; }
.adm-tab.is-red.is-active span { color: rgba(255,255,255,0.85); }

/* Dashboard */
.adm-kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 20px; }
.adm-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.adm-kpi:hover { border-color: rgba(34,82,204,0.35); transform: translateY(-1px); }
.adm-kpi > span { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-faint); }
.adm-kpi strong { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 26px; line-height: 1.05; }
.adm-kpi small { font-size: 12px; color: var(--text-muted); }
.adm-kpi.is-red { border-color: rgba(229,72,77,0.4); background: #FFF6F6; }
.adm-kpi.is-red strong { color: #D0353A; }
.adm-kpi.is-warn { border-color: rgba(180,83,9,0.35); background: #FFF8EC; }
.adm-kpi.is-warn strong { color: #B45309; }
.adm-grid2 { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 14px; margin-bottom: 14px; }
.adm-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; min-width: 0; }
.adm-card h2 { margin: 0 0 14px; font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.adm-card h2 a { font-family: 'Work Sans', sans-serif; font-size: 12.5px; font-weight: 600; color: var(--accent); text-decoration: none; }
.adm-bars { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px; align-items: end; height: 180px; }
.adm-bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.adm-bar i { display: block; width: 100%; max-width: 44px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #4E7CFF, #2252CC); min-height: 3px; }
.adm-bar b { font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; color: var(--text); }
.adm-bar span { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--text-faint); text-transform: uppercase; }
.adm-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.adm-rows li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 13.5px; }
.adm-rows li:first-child { border-top: none; padding-top: 0; }
.adm-rows .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-rows .muted { color: var(--text-faint); font-size: 12px; white-space: nowrap; }
.adm-rows .mono { font-family: 'IBM Plex Mono', monospace; font-size: 12px; }
.adm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 100px; background: var(--bg-soft); border: 1px solid var(--border); font-size: 13px; }
.adm-chip b { font-family: 'IBM Plex Mono', monospace; }
.adm-muted { color: var(--text-muted); font-size: 13.5px; margin: 0; }

/* Tables (subscribers, waitlist, catalogue) */
.adm-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.adm-toolbar input[type=search] { flex: 1; min-width: 200px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; font: inherit; font-size: 14px; background: var(--surface); }
.adm-table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.adm-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: 12px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--border); white-space: nowrap; }
.adm-table td { padding: 12px 16px; border-top: 1px solid var(--border); vertical-align: middle; }
.adm-table tr:first-child td { border-top: none; }
.adm-table .num { text-align: right; font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; white-space: nowrap; }
.adm-table .sub { display: block; font-size: 12px; color: var(--text-faint); }
.adm-table img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: var(--bg-soft); }
.adm-book { display: flex; align-items: center; gap: 12px; }
.adm-table a { color: var(--accent); text-decoration: none; }

@media (max-width: 1020px) {
  .adm-kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .adm-grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .adm-shell { grid-template-columns: minmax(0,1fr); }
  .adm-side { min-width: 0; position: sticky; z-index: 20; height: auto; flex-direction: row; align-items: center; padding: 10px 16px; gap: 10px; overflow-x: auto; }
  .adm-side-kicker, .adm-side-env, .adm-side-foot, .adm-side-brand span { display: none; }
  .adm-side-nav { flex-direction: row; gap: 4px; }
  .adm-side-nav a { white-space: nowrap; padding: 8px 10px; font-size: 13px; }
  .adm-main { padding: 24px 16px 80px; }
  .adm-order > header, .adm-order > header div { flex-wrap: wrap; }
  .adm-alert .adm-alert-actions { margin-left: 0; }
}

/* Book card (shop grids, related books) */
.shop-card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.shop-card::before, .shop-card::after { content: ""; position: absolute; width: 9px; height: 9px; border: 0 solid var(--accent); z-index: 2; }
.shop-card::before { top: -1px; left: -1px; border-top-width: 1.5px; border-left-width: 1.5px; border-top-left-radius: 2px; }
.shop-card::after { bottom: -1px; right: -1px; border-bottom-width: 1.5px; border-right-width: 1.5px; border-bottom-right-radius: 2px; }
.shop-card:hover { transform: translateY(-4px); border-color: rgba(34,82,204,0.35); box-shadow: 0 22px 44px -20px rgba(10,20,50,0.3); color: var(--text); }
.shop-card-media { position: relative; display: block; margin: 8px 8px 0; border-radius: 7px; overflow: hidden; }
.shop-card-photo { position: relative; aspect-ratio: 1 / 1; background: radial-gradient(90% 75% at 50% 40%, #FFFFFF 0%, #EEF1F6 65%, #E1E6EE 100%); }
.shop-card-photo::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 9%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(74,120,255,0.3), rgba(74,120,255,0)); filter: blur(6px); }
.shop-card-photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; display: block; transform: scale(1.08); transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.shop-card:hover .shop-card-photo img { transform: scale(1.13) translateY(-3%) rotate(-1.5deg); }
.shop-card-media .book-cover { transition: transform .3s ease; }
.shop-card:hover .shop-card-media .book-cover { transform: translateY(-4px) rotate(-0.6deg); }
.shop-card-vol { position: absolute; left: 10px; top: 10px; z-index: 2; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 600; color: #fff; background: rgba(16,19,23,0.82); padding: 3px 8px; border-radius: 100px; backdrop-filter: blur(4px); }
.shop-card-avail { position: absolute; right: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 8px; border-radius: 100px; backdrop-filter: blur(4px); }
.shop-card-avail::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.shop-card-avail.is-soon { color: #B45309; background: rgba(255,248,236,0.92); border: 1px solid #FDE68A; }
.shop-card-avail.is-on { color: #047857; background: rgba(236,253,245,0.92); border: 1px solid #A7F3D0; }
.shop-card-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 0; flex: 1; }
.shop-card-title { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 16.5px; line-height: 1.25; }
.shop-card-sub { font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.shop-card-formats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.shop-card-formats span { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-muted); background: var(--bg-soft); border: 1px solid var(--border); padding: 2px 8px; border-radius: 100px; }
.shop-card-formats svg { width: 12px; height: 12px; color: var(--accent); }
.shop-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 16px; margin-top: 14px; border-top: 1px dashed var(--border); }
.shop-price { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 17px; white-space: nowrap; }
.shop-price small { font-family: 'Work Sans', sans-serif; font-weight: 500; font-size: 12px; color: var(--text-faint); }
.shop-card-go { width: 30px; height: 30px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--border); font-size: 13px; color: var(--text-muted); transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.shop-card:hover .shop-card-go { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateX(2px); }
.shop-card[hidden] { display: none; }

/* Homepage shop teaser (#boutique) */
.shop-home { padding: 88px 0; scroll-margin-top: 72px; }
.shop-stage {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 22px; border: 1px solid var(--border);
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 24px; padding: 56px 40px 56px 56px; min-height: 480px;
  background: radial-gradient(70% 90% at 78% 50%, #E4ECFF 0%, #F2F5FB 45%, #F8F9FC 100%);
}
.shop-stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(34,82,204,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(34,82,204,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(60% 80% at 75% 50%, #000 0%, transparent 80%); mask-image: radial-gradient(60% 80% at 75% 50%, #000 0%, transparent 80%);
}
.shop-stage-copy { display: flex; flex-direction: column; gap: 18px; max-width: 500px; position: relative; z-index: 2; }
.shop-stage-kicker { display: flex; align-items: center; gap: 10px; }
.shop-stage-kicker .section-tag { justify-content: flex-start; }
.shop-stage h2 { margin: 0; font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(32px, 4.4vw, 50px); letter-spacing: -0.03em; line-height: 1.04; }
.shop-stage h2 span { background: linear-gradient(120deg, #2252CC 0%, #6E93FF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.shop-stage-copy > p { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--text-muted); }
.shop-stage-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.shop-stage-points li { font-size: 13px; color: var(--text-muted); background: rgba(255,255,255,0.8); border: 1px solid var(--border); padding: 6px 12px; border-radius: 100px; }
.shop-stage-points strong { font-family: 'Sora', sans-serif; color: var(--text); }
.shop-stage-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.shop-stage-cta .btn-primary { padding: 14px 24px; font-size: 15px; box-shadow: 0 14px 30px -12px rgba(34,82,204,0.6); }
.shop-stage-from { font-size: 13.5px; color: var(--text-muted); }
.shop-stage-from strong { font-family: 'Sora', sans-serif; font-size: 16px; color: var(--text); }

.shop-fan { --rx: 0deg; --ry: 0deg; position: relative; display: block; height: 440px; perspective: 1400px; color: var(--text); text-decoration: none; }
.shop-fan-glow { position: absolute; left: 20%; right: 10%; top: 18%; bottom: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(74,120,255,0.35), rgba(74,120,255,0)); filter: blur(20px); }
.shop-fan img {
  position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; object-fit: contain; margin: -160px 0 0 -150px;
  transform-origin: 50% 95%;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) translateX(calc(var(--i) * 40px)) rotate(calc(var(--i) * 5.5deg)) translateY(calc(var(--i) * var(--i) * 4px));
  z-index: calc(10 - var(--i) * var(--i)); filter: drop-shadow(0 24px 30px rgba(10,20,50,0.28));
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.shop-fan:hover img { transform: rotateX(var(--rx)) rotateY(var(--ry)) translateX(calc(var(--i) * 54px)) rotate(calc(var(--i) * 7.5deg)) translateY(calc(var(--i) * var(--i) * 6px - 10px)); }
.shop-fan:hover img:hover { transform: rotateX(var(--rx)) rotateY(var(--ry)) translateX(calc(var(--i) * 54px)) rotate(calc(var(--i) * 7.5deg)) translateY(calc(var(--i) * var(--i) * 6px - 34px)); }
.shop-fan-hint { position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%); z-index: 20; white-space: nowrap; font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); background: var(--surface); border: 1px solid rgba(34,82,204,0.25); padding: 7px 14px; border-radius: 100px; box-shadow: 0 8px 20px -10px rgba(10,20,50,0.3); transition: background .2s ease, color .2s ease; }
.shop-fan-hint b { display: inline-block; transition: transform .2s ease; }
.shop-fan:hover .shop-fan-hint { background: var(--accent); color: #fff; }
.shop-fan:hover .shop-fan-hint b { transform: translateX(3px); }

.shop-quiz { margin-top: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px 28px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.25fr); gap: 14px 32px; align-items: center; }
.shop-quiz-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.shop-quiz-badge { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: #101317; padding: 4px 10px; border-radius: 100px; }
.shop-quiz-from { font-size: 13px; color: var(--text-faint); }
.shop-quiz-next { margin-left: auto; border: none; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--accent); cursor: pointer; padding: 4px 0; }
.shop-quiz-next:hover { text-decoration: underline; }
.shop-quiz-q { margin: 0; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 19px; line-height: 1.4; }
.shop-quiz-choices { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.shop-quiz-choices button { display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid var(--border); background: var(--bg-soft); border-radius: 12px; padding: 11px 13px; font: inherit; font-size: 13.5px; line-height: 1.35; color: var(--text); cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.shop-quiz-choices button:hover:not(:disabled) { border-color: var(--accent); background: var(--surface); transform: translateY(-1px); }
.shop-quiz-choices .letter { flex: none; width: 24px; height: 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; font-weight: 700; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); }
.shop-quiz-choices button:disabled { cursor: default; opacity: 0.55; }
.shop-quiz-choices button.is-right { opacity: 1; border-color: #10B981; background: #ECFDF5; }
.shop-quiz-choices button.is-right .letter { background: #10B981; border-color: #10B981; color: #fff; }
.shop-quiz-choices button.is-wrong { opacity: 1; border-color: #E5484D; background: #FFF4F4; }
.shop-quiz-choices button.is-wrong .letter { background: #E5484D; border-color: #E5484D; color: #fff; }
.shop-quiz-result { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 16px 18px; border-radius: 12px; font-size: 14px; line-height: 1.6; color: var(--text-muted); animation: quizIn .35s ease; }
.shop-quiz-result[hidden] { display: none; }
.shop-quiz-result > div { flex: 1; min-width: 260px; }
.shop-quiz-result strong { color: var(--text); }
.shop-quiz-result.ok { background: #F0FDF7; border: 1px solid #A7F3D0; }
.shop-quiz-result.ko { background: #FFF8EC; border: 1px solid #FDE68A; }
.shop-quiz-result .btn-primary { white-space: nowrap; }
@keyframes quizIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .shop-fan img, .shop-quiz-result { transition: none; animation: none; } }

@media (max-width: 960px) {
  .shop-stage { grid-template-columns: 1fr; padding: 40px 28px 28px; min-height: 0; }
  .shop-fan { height: 360px; }
  .shop-fan img { width: 260px; height: 260px; margin: -140px 0 0 -130px; transform: translateX(calc(var(--i) * 34px)) rotate(calc(var(--i) * 5.5deg)) translateY(calc(var(--i) * var(--i) * 3.5px)); }
  .shop-quiz { grid-template-columns: 1fr; padding: 22px 20px; }
}
@media (max-width: 560px) {
  .shop-home { padding: 64px 0; }
  .shop-stage { padding: 32px 20px 20px; }
  .shop-fan { height: 300px; }
  .shop-fan img { width: 210px; height: 210px; margin: -115px 0 0 -105px; transform: translateX(calc(var(--i) * 22px)) rotate(calc(var(--i) * 5deg)) translateY(calc(var(--i) * var(--i) * 3px)); }
  .shop-quiz-choices { grid-template-columns: 1fr; }
  .shop-quiz-result .btn-primary { white-space: normal; width: 100%; text-align: center; }
}
.shop-stock.soon { background: rgba(34,82,204,0.08); color: var(--accent); }
.shop-card-avail.is-out { color: #B42318; background: rgba(255,244,244,0.92); border: 1px solid #FECACA; }
.shop-card-avail.is-soon { color: var(--accent); background: rgba(239,244,255,0.92); border: 1px solid #C7D7FE; }

/* Back office: products & prices, accounting */
.adm-head-actions { display: flex; align-items: center; gap: 10px; }
.adm-select { padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; font: inherit; font-size: 14px; background: var(--surface); }
.adm-footnote { margin: 18px 2px 0; font-size: 12px; line-height: 1.6; color: var(--text-faint); }
.adm-mt { margin-top: 14px; }
.adm-flat { border: none; border-radius: 0; margin: 0 -20px -18px; }
.adm-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; cursor: pointer; user-select: none; }
.adm-switch input { appearance: none; -webkit-appearance: none; width: 34px; height: 20px; border-radius: 100px; background: #D5DAE2; position: relative; cursor: pointer; transition: background .2s ease; margin: 0; flex: none; }
.adm-switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform .2s ease; }
.adm-switch input:checked { background: var(--accent); }
.adm-switch input:checked::after { transform: translateX(14px); }

.adm-publish { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-radius: 14px; margin-bottom: 18px; border: 1px solid #A7F3D0; background: #F0FDF7; font-size: 13.5px; color: var(--text-muted); }
.adm-publish[hidden] { display: none; }
.adm-publish > div { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 240px; }
.adm-publish strong { color: var(--text); font-family: 'Sora', sans-serif; }
.adm-publish-dot { width: 10px; height: 10px; border-radius: 50%; background: #10B981; flex: none; }
.adm-publish.is-pending { border-color: #FDE68A; background: #FFFBEB; }
.adm-publish.is-pending .adm-publish-dot { background: #F59E0B; box-shadow: 0 0 0 4px rgba(245,158,11,0.18); }
.adm-publish .btn-primary { border: none; padding: 11px 20px; font-size: 13.5px; }

.adm-prod-list { display: flex; flex-direction: column; gap: 14px; }
.adm-prod { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.adm-prod.is-dirty { border-color: rgba(34,82,204,0.45); box-shadow: 0 0 0 3px rgba(34,82,204,0.08); }
.adm-prod-head { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.adm-prod-head img { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; background: radial-gradient(85% 75% at 50% 42%, #FFFFFF 0%, #EEF0F4 70%, #E2E6EC 100%); flex: none; }
.adm-prod-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.adm-prod-title strong { font-family: 'Sora', sans-serif; font-size: 17px; }
.adm-prod-title .adm-muted { font-size: 12.5px; }
.adm-prod-title a { color: var(--accent); text-decoration: none; }
.adm-prod-vol { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 600; color: var(--text-faint); }
.adm-prod-status { display: flex; flex-direction: column; gap: 4px; }
.adm-prod-status > span { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); }
.adm-status-select { padding: 9px 30px 9px 12px; border-radius: 10px; border: 1px solid var(--border); font: inherit; font-size: 13.5px; font-weight: 600; background-color: var(--surface); cursor: pointer; }
.adm-status-select.is-on { color: #047857; border-color: #A7F3D0; background-color: #ECFDF5; }
.adm-status-select.is-out { color: #B42318; border-color: #FECACA; background-color: #FFF4F4; }
.adm-status-select.is-soon { color: var(--accent); border-color: #C7D7FE; background-color: #EFF4FF; }
.adm-status-select.is-hidden { color: var(--text-muted); background-color: var(--bg-soft); }
.adm-prod-body { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 24px; padding: 16px 20px 18px; }
.adm-fmt-toggles { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 12px; }
.adm-fmt-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.adm-fmt-table th { text-align: left; font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-faint); padding: 6px 8px; border-bottom: 1px solid var(--border); }
.adm-fmt-table td { padding: 10px 8px; border-bottom: 1px dashed var(--border); vertical-align: middle; }
.adm-fmt-table tr:last-child td { border-bottom: none; }
.adm-fmt-table .num { text-align: right; font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; white-space: nowrap; color: var(--text-muted); }
.adm-fmt-table tr.is-off td { opacity: 0.4; }
.adm-hint { display: block; font-size: 11px; color: var(--text-faint); margin-top: 2px; }
.adm-price { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); padding: 0 10px 0 0; transition: border-color .15s ease, box-shadow .15s ease; }
.adm-price:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34,82,204,0.12); }
.adm-price input { width: 74px; border: none; outline: none; background: transparent; padding: 8px 4px 8px 10px; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15px; text-align: right; }
.adm-price em { font-style: normal; font-weight: 600; color: var(--text-faint); }
.adm-m { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.adm-m strong { font-family: 'Sora', sans-serif; font-size: 15px; }
.adm-m em { font-style: normal; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; font-weight: 600; padding: 1px 6px; border-radius: 100px; }
.adm-m.good strong { color: #047857; } .adm-m.good em { background: #ECFDF5; color: #047857; }
.adm-m.mid strong { color: #1D4ED8; } .adm-m.mid em { background: #EFF4FF; color: #1D4ED8; }
.adm-m.low strong { color: #B45309; } .adm-m.low em { background: #FFF8EC; color: #B45309; }
.adm-m.bad strong, .adm-m.bad { color: #B42318; } .adm-m.bad em { background: #FFF4F4; color: #B42318; }
.adm-m-bar { display: block; height: 4px; border-radius: 4px; background: var(--bg-soft); margin-top: 5px; max-width: 140px; overflow: hidden; }
.adm-m-bar i { display: block; height: 100%; border-radius: 4px; transition: width .2s ease; }
.adm-m-bar.good i { background: #10B981; } .adm-m-bar.mid i { background: #4E7CFF; } .adm-m-bar.low i { background: #F59E0B; } .adm-m-bar.bad i { background: #E5484D; }
.adm-m-none { color: var(--text-faint); }
.adm-prod-side { display: flex; flex-direction: column; gap: 12px; }
.adm-stock { display: flex; flex-direction: column; gap: 5px; }
.adm-stock > span { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); }
.adm-stock input { padding: 9px 12px; border: 1px solid var(--border); border-radius: 9px; font: inherit; font-size: 14px; }
.adm-stock small { font-size: 11.5px; line-height: 1.45; color: var(--text-faint); }
.adm-quote-box { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--bg-soft); font-size: 13px; }
.adm-quote-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.adm-quote-head strong { font-family: 'Sora', sans-serif; }
.adm-quote-head .link-btn { margin-left: auto; font-size: 12.5px; }
.adm-quote { display: grid; grid-template-columns: auto 1fr; gap: 5px 10px; margin: 0; }
.adm-quote dt { color: var(--text-faint); font-size: 12px; }
.adm-quote dd { margin: 0; text-align: right; font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; }
.adm-quote dd small { display: block; font-family: 'Work Sans', sans-serif; font-size: 11px; color: var(--text-faint); }
.adm-quote-date { margin: 8px 0 0; font-size: 11px; color: var(--text-faint); word-break: break-all; }
.adm-prod-foot { display: flex; align-items: center; gap: 16px; padding: 12px 20px; border-top: 1px solid var(--border); background: var(--bg-soft); }
.adm-prod-foot .adm-muted { flex: 1; font-size: 12px; }
.adm-dirty-note { display: none; font-size: 12.5px; font-weight: 600; color: var(--accent); }
.adm-prod.is-dirty .adm-dirty-note { display: inline; }
.adm-prod-foot .btn-primary { border: none; padding: 10px 20px; font-size: 13.5px; }
.adm-prod-foot .btn-primary:disabled { opacity: 0.45; cursor: default; }

.adm-compta-bar { gap: 14px; }
.adm-toolbar-grow { flex: 1; }
.adm-compta-bar .btn-outline { background: var(--surface); cursor: pointer; font-family: inherit; padding: 9px 14px; font-size: 13px; }
.adm-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); padding: 3px; }
.adm-seg button { border: none; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--text-muted); padding: 7px 12px; border-radius: 7px; cursor: pointer; }
.adm-seg button.is-active { background: var(--accent); color: #fff; }
.adm-alert-info { border-color: #C7D7FE; background: #EFF4FF; color: #1E3A8A; }
.adm-quarters { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.adm-quarter { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.adm-quarter span { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--text-faint); text-transform: uppercase; }
.adm-quarter strong { font-family: 'Sora', sans-serif; font-size: 18px; }
.adm-quarter small { font-size: 11.5px; color: var(--text-faint); }
.adm-table .mono { font-family: 'IBM Plex Mono', monospace; font-size: 12px; white-space: nowrap; }
.adm-table .sub-inline { font-size: 11px; color: var(--text-faint); }
.adm-total-row td { background: var(--bg-soft); font-weight: 600; }
.adm-test-tag { font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; font-weight: 700; text-transform: uppercase; color: #B45309; background: #FFF8EC; border: 1px solid #FDE68A; padding: 1px 5px; border-radius: 100px; }
@media (max-width: 1020px) {
  .adm-prod-body { grid-template-columns: 1fr; }
  .adm-quarters { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .adm-prod-head { flex-wrap: wrap; }
  .adm-fmt-table thead { display: none; }
  .adm-fmt-table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
  .adm-fmt-table td { border: none; padding: 0; }
  .adm-fmt-table td.num { display: none; }
}
.adm-card:has(.adm-flat) { overflow: hidden; }
.adm-publish.is-building { border-color: #C7D7FE; background: #EFF4FF; }
.adm-publish-spin { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid rgba(34,82,204,0.25); border-top-color: var(--accent); animation: admSpin .8s linear infinite; }
@keyframes admSpin { to { transform: rotate(360deg); } }

/* About (/a-propos/) */
.about-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.about-hero { padding-top: 88px; padding-bottom: 72px; max-width: 900px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.about-hero h1 { margin: 0; font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(34px, 5.6vw, 60px); letter-spacing: -0.03em; line-height: 1.04; }
.about-hero h1 span { background: linear-gradient(120deg, #2252CC 0%, #6E93FF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-lead { margin: 0; max-width: 640px; font-size: 17px; line-height: 1.7; color: var(--text-muted); }
.about-story { padding-bottom: 88px; display: grid; grid-template-columns: minmax(0,0.8fr) minmax(0,1.2fr); gap: 56px; align-items: start; }
.about-story .section-head h2 { font-size: clamp(26px, 3.4vw, 36px); }
.about-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.about-timeline::before { content: ""; position: absolute; left: 60px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(180deg, var(--accent), rgba(34,82,204,0.1)); }
.about-timeline li { display: grid; grid-template-columns: 60px minmax(0,1fr); gap: 28px; padding-bottom: 32px; position: relative; }
.about-timeline li::after { content: ""; position: absolute; left: 55px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.about-when { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; font-weight: 600; color: var(--accent); padding-top: 2px; }
.about-timeline h3 { margin: 0 0 6px; font-family: 'Sora', sans-serif; font-size: 18px; }
.about-timeline p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--text-muted); }
.about-band { background: var(--bg-soft); padding: 88px 0; }
.about-pillars { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 44px; }
.about-pillar { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; color: var(--text); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.about-pillar::before, .about-pillar::after { content: ""; position: absolute; width: 9px; height: 9px; border: 0 solid var(--accent); }
.about-pillar::before { top: -1px; left: -1px; border-top-width: 1.5px; border-left-width: 1.5px; }
.about-pillar::after { bottom: -1px; right: -1px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.about-pillar:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -18px rgba(10,20,50,0.3); border-color: rgba(34,82,204,0.35); color: var(--text); }
.about-pillar-icon { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(34,82,204,0.08); color: var(--accent); }
.about-pillar-icon svg { width: 24px; height: 24px; }
.about-pillar strong { font-family: 'Sora', sans-serif; font-size: 18px; }
.about-pillar p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-muted); flex: 1; }
.about-pillar-link { font-size: 13.5px; font-weight: 700; color: var(--accent); }
.about-figures { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.about-figures div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.about-figures strong { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 30px; color: var(--accent); line-height: 1; }
.about-figures span { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-faint); }
.about-values { padding-top: 88px; padding-bottom: 72px; }
.about-values-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; margin-top: 44px; }
.about-value { border-top: 1px solid var(--border); padding-top: 18px; }
.about-value-n { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; color: var(--accent); }
.about-value h3 { margin: 8px 0 8px; font-family: 'Sora', sans-serif; font-size: 18px; }
.about-value p { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--text-muted); }
.about-team { padding-bottom: 72px; }
.about-founder { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 36px; align-items: center; padding: 36px; border: 1px solid var(--border); border-radius: 20px; background: radial-gradient(80% 120% at 0% 0%, #EEF3FF 0%, #fff 60%); }
.about-founder-photo { width: 180px; height: 180px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #16284D, #2252CC); color: #fff; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 48px; }
.about-founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-founder h2 { margin: 8px 0 10px; font-family: 'Sora', sans-serif; font-size: 28px; letter-spacing: -0.02em; }
.about-founder p { margin: 0 0 10px; font-size: 15.5px; line-height: 1.75; color: var(--text-muted); }
.about-cta { padding-bottom: 96px; }
.about-social { margin: 16px 0 0; font-size: 14px; color: var(--text-muted); text-align: center; }
.about-social a { color: var(--accent); font-weight: 600; }
.about-cta-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 36px 40px; border-radius: 18px; color: #F5F6F7; background: radial-gradient(120% 110% at 85% 0%, #16284D 0%, #0C1830 55%, #091223 100%); border: 1px solid #1E3155; }
.about-cta-card h2 { margin: 0 0 6px; font-family: 'Sora', sans-serif; font-size: 26px; letter-spacing: -0.02em; }
.about-cta-card p { margin: 0; color: #B3BFDB; }
@media (max-width: 900px) {
  .about-story { grid-template-columns: 1fr; gap: 28px; }
  .about-pillars, .about-values-grid { grid-template-columns: 1fr; }
  .about-figures { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .about-founder { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 28px 22px; }
  .about-founder-photo { width: 140px; height: 140px; font-size: 38px; }
}

/* Contact (/contact/) */
.contact { padding-top: 72px; padding-bottom: 96px; }
.contact-head { max-width: 640px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.contact-head h1 { margin: 0; font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.03em; }
.contact-head p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--text-muted); }
.contact-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 28px; align-items: start; }
.contact-form, .contact-sent { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 20px 44px -30px rgba(10,20,50,0.25); }
.contact-form[hidden], .contact-sent[hidden] { display: none; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-field { display: flex; flex-direction: column; gap: 6px; }
.contact-field[hidden] { display: none; }
.contact-field label { font-size: 13px; font-weight: 600; color: var(--text); }
.contact-field label small { font-weight: 400; color: var(--text-faint); }
.contact-field input, .contact-field select, .contact-field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 11px; font: inherit; font-size: 15px; color: var(--text); background: var(--surface); transition: border-color .15s ease, box-shadow .15s ease; }
.contact-field textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
.contact-field input:focus, .contact-field select:focus, .contact-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34,82,204,0.12); }
.contact-field .is-invalid { border-color: #E5484D; }
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.55; color: var(--text-muted); cursor: pointer; }
.contact-consent input { margin-top: 3px; accent-color: var(--accent); }
.contact-error { margin: 0; font-size: 13.5px; color: #B42318; background: #FFF4F4; border: 1px solid #FECACA; border-radius: 10px; padding: 10px 12px; }
.contact-error[hidden] { display: none; }
.contact-submit { align-self: flex-start; border: none; cursor: pointer; padding: 14px 26px; font-size: 15px; }
.contact-submit:disabled { opacity: 0.6; cursor: default; }
.contact-sent { align-items: flex-start; }
.contact-sent-icon { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #ECFDF5; color: #047857; }
.contact-sent-icon svg { width: 26px; height: 26px; }
.contact-sent h2 { margin: 0; font-family: 'Sora', sans-serif; font-size: 26px; }
.contact-sent p { margin: 0; color: var(--text-muted); line-height: 1.7; }
.contact-side { display: flex; flex-direction: column; gap: 14px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.contact-card h2 { margin: 0 0 8px; font-family: 'Sora', sans-serif; font-size: 16px; }
.contact-card a { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-top: 1px solid var(--border); color: var(--text); text-decoration: none; }
.contact-card a:hover strong { color: var(--accent); }
.contact-card a strong { font-size: 14.5px; transition: color .15s ease; }
.contact-card a span { font-size: 12.5px; color: var(--text-faint); }
.contact-card-dark { flex-direction: row; align-items: flex-start; gap: 12px; color: #D6E0FF; background: radial-gradient(120% 110% at 85% 0%, #16284D 0%, #0C1830 55%, #091223 100%); border-color: #1E3155; }
.contact-card-dark p { margin: 0; font-size: 13.5px; line-height: 1.6; }
.contact-card-dark strong { color: #fff; }
.contact-card-dark .flag { margin-top: 3px; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-row { grid-template-columns: 1fr; }
  .contact-form, .contact-sent { padding: 22px; }
}
.contact-card-dark .flag { width: 16px; height: 11px; border-radius: 2px; overflow: hidden; display: flex; flex-shrink: 0; }
.contact-card-dark .flag span { flex: 1; height: 100%; }
.contact-card-dark .flag span:nth-child(1) { background: #002395; }
.contact-card-dark .flag span:nth-child(2) { background: var(--surface); }
.contact-card-dark .flag span:nth-child(3) { background: #ED2939; }
.adm-side-badge.is-blue { background: #4E7CFF; color: #fff; }
.adm-msg { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.adm-msg.is-new { border-color: rgba(78,124,255,0.45); box-shadow: 0 0 0 3px rgba(78,124,255,0.08); }
.adm-msg > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--border); background: var(--bg-soft); font-size: 14px; }
.adm-msg > header div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.adm-msg > header a { color: var(--accent); text-decoration: none; font-size: 13px; }
.adm-msg-topic { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); background: var(--bg-soft); border: 1px solid var(--border); padding: 3px 8px; border-radius: 100px; }
.adm-msg-body { margin: 0; padding: 18px 20px; font-size: 14.5px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.adm-msg > footer { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--border); background: var(--bg-soft); }
.adm-msg > footer .btn-primary { padding: 9px 16px; font-size: 13px; }
.about-story { grid-template-columns: minmax(0,0.85fr) minmax(0,1.15fr); }
.about-story-intro { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; }
.about-story-intro p { margin: 0; font-size: 15.5px; line-height: 1.75; color: var(--text-muted); }
.about-timeline::before { left: 104px; }
.about-timeline li { grid-template-columns: 104px minmax(0,1fr); }
.about-timeline li::after { left: 99px; }
.about-timeline a { font-weight: 600; }
.about-timeline li.is-now::after { background: var(--accent); box-shadow: 0 0 0 5px rgba(34,82,204,0.15); }
.about-notice { padding-bottom: 88px; }
.about-notice-card { display: flex; gap: 20px; align-items: flex-start; padding: 28px 32px; border-radius: 18px; border: 1px solid #FDE68A; background: #FFFBEB; }
.about-notice-icon { width: 44px; height: 44px; flex: none; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #FEF3C7; color: #B45309; }
.about-notice-icon svg { width: 24px; height: 24px; }
.about-notice-card h2 { margin: 0 0 10px; font-family: 'Sora', sans-serif; font-size: 20px; color: #78350F; }
.about-notice-card p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.7; color: #7C4A12; }
.about-notice-card p:last-child { margin-bottom: 0; }
.about-next { padding-bottom: 64px; }
@media (max-width: 900px) {
  .about-story-intro { position: static; }
  .about-timeline::before { left: 84px; }
  .about-timeline li { grid-template-columns: 84px minmax(0,1fr); gap: 22px; }
  .about-timeline li::after { left: 79px; }
  .about-notice-card { flex-direction: column; padding: 22px; }
}
.section-head.left .section-tag { justify-content: flex-start; }

/* "Not a school / not an ATO" notices */
.academy-disclaimer { border-top: 1px solid #FDE68A; background: #FFFBEB; }
.academy-disclaimer-inner { display: flex; align-items: flex-start; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
.academy-disclaimer-icon { flex: none; color: #B45309; margin-top: 1px; }
.academy-disclaimer-icon svg { width: 20px; height: 20px; display: block; }
.academy-disclaimer p { margin: 0; font-size: 13.5px; line-height: 1.6; color: #7C4A12; }
.academy-disclaimer strong { color: #78350F; }
.academy-disclaimer a, .academy-promo-note a, .shop-study-note a { font-weight: 600; white-space: nowrap; }
.academy-promo-note { margin: 14px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--text-faint); }
.shop-study-note { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: #FFFBEB; border: 1px solid #FDE68A; font-size: 12.5px; line-height: 1.55; color: #7C4A12; }
.shop-stock-box.soon { border-color: #C7D7FE; background: #F5F8FF; }
.about-founder { grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); gap: 40px; padding: 20px 40px 20px 20px; }
.about-founder-photo { width: auto; height: auto; margin: 0; border-radius: 14px; aspect-ratio: 1200 / 1038; background: #E8EDF5; box-shadow: 0 24px 50px -28px rgba(10,20,50,0.45); }
.about-founder-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .about-founder { grid-template-columns: 1fr; padding: 16px 16px 26px; text-align: left; justify-items: stretch; }
  .about-founder-photo { width: 100%; height: auto; }
}
.about-letter { margin-top: 6px; }
.about-letter p { margin: 0 0 12px; font-family: 'Caveat', cursive; font-weight: 500; font-size: 25px; line-height: 1.32; color: #1E2B4A; }
@media (max-width: 900px) { .about-letter p { font-size: 23px; } }
.about-signature { display: block; width: 210px; height: auto; margin: 4px 0 0 -6px; color: #1E3A8A; overflow: visible; }
.about-signature path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.about-signature circle { fill: currentColor; opacity: 0; transition: opacity .3s ease 1.9s; }
.about-signature.is-drawn path { animation: sigDraw 1.5s cubic-bezier(.6,.05,.3,1) forwards; }
.about-signature.is-drawn path + path { animation-delay: 1.2s; animation-duration: .8s; }
.about-signature.is-drawn circle { opacity: 1; }
@keyframes sigDraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .about-signature path { stroke-dashoffset: 0; animation: none !important; } .about-signature circle { opacity: 1; transition: none; } }
.shop-notify { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.shop-notify label { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15px; }
.shop-notify-row { display: flex; gap: 8px; }
.shop-notify-row input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 100px; font: inherit; font-size: 14.5px; }
.shop-notify-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34,82,204,0.12); }
.shop-notify-row .btn-primary { border: none; cursor: pointer; padding: 12px 20px; white-space: nowrap; }
.shop-notify-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.shop-notify-note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--text-faint); }
.shop-notify-note.is-error { color: #B42318; }
.shop-notify.is-done { border-color: #A7F3D0; background: #F0FDF7; }
.shop-notify-done { margin: 0; font-size: 14px; line-height: 1.6; color: #065F46; }
@media (max-width: 480px) { .shop-notify-row { flex-direction: column; } }
.adm-waiting { color: var(--accent); font-weight: 600; }
.adm-status-select.is-small { padding: 7px 26px 7px 10px; font-size: 12.5px; border-radius: 9px; }
.adm-auto-status { display: inline-block; font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; padding: 4px 9px; border-radius: 100px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text-muted); }
.adm-auto-status.is-on { color: #047857; border-color: #A7F3D0; background: #ECFDF5; }
.adm-auto-status.is-out { color: #B42318; border-color: #FECACA; background: #FFF4F4; }
.adm-auto-status.is-soon { color: var(--accent); border-color: #C7D7FE; background: #EFF4FF; }
.adm-prod.is-hidden-book .adm-prod-body { opacity: 0.55; }
.adm-fmt-table tr.is-off td:not(:nth-child(2)) { opacity: 0.4; }
.adm-fmt-table tr.is-off td { opacity: 1; }
.shop-card-formats span.is-off { opacity: 0.6; }
.shop-card-formats span em { font-style: normal; font-weight: 600; color: var(--accent); margin-left: 2px; }
.shop-format-state { display: inline-block; margin-left: 6px; font-style: normal; font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; padding: 2px 7px; border-radius: 100px; vertical-align: middle; }
.shop-format-state.coming_soon { color: var(--accent); background: #EFF4FF; }
.shop-format-state.out_of_stock { color: #B42318; background: #FFF4F4; }
.shop-notify.is-compact { padding: 12px 14px; }
.shop-notify.is-compact label { font-size: 13.5px; }
.adm-prod-title .adm-waiting { font-family: inherit; font-size: inherit; color: var(--accent); }

/* RogerDebrief (/academy/debrief/) */
.dbf-annual-chip { background: rgba(34,82,204,0.08); border-color: rgba(34,82,204,0.25); color: var(--accent); }
.dbf-signals { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 40px; }
.dbf-signal { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.dbf-signal-ic { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(34,82,204,0.08); color: var(--accent); font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 16px; }
.dbf-signal strong { font-family: 'Sora', sans-serif; font-size: 16px; }
.dbf-signal p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-muted); }

.dbf-app-band { background: var(--bg-soft); padding: 88px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.dbf-app { position: relative; margin-top: 40px; display: flex; flex-direction: column; gap: 14px; }
.dbf-app.is-sample { padding-top: 14px; }
.dbf-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 60px 0; color: var(--text-muted); }
.dbf-loading .spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(34,82,204,0.25); border-top-color: var(--accent); animation: admSpin .8s linear infinite; }
.dbf-sample-ribbon { position: absolute; top: -6px; right: 0; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: #101317; padding: 5px 12px; border-radius: 100px; z-index: 2; }
.dbf-callout { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 32px; padding: 18px 22px; border-radius: 16px; color: #F5F6F7; background: radial-gradient(120% 110% at 85% 0%, #16284D 0%, #0C1830 55%, #091223 100%); border: 1px solid #1E3155; }
.dbf-callout div { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 260px; }
.dbf-callout strong { font-family: 'Sora', sans-serif; font-size: 16px; }
.dbf-callout span { font-size: 13.5px; line-height: 1.55; color: #B3BFDB; }
.dbf-callout .btn-primary { white-space: nowrap; }
.dbf-callout + .dbf-app { margin-top: 18px; }

.dbf-roger { display: flex; align-items: flex-start; gap: 14px; }
.dbf-avatar { width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px -12px rgba(10,20,50,0.35); }
.dbf-avatar img { width: 24px; height: 24px; }
.dbf-bubble { position: relative; flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 4px 16px 16px 16px; padding: 14px 18px; }
.dbf-who { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.dbf-bubble p { margin: 4px 0 6px; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 18px; line-height: 1.35; }
.dbf-meta { font-size: 12.5px; color: var(--text-faint); }

.dbf-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: 14px; }
.dbf-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px; min-width: 0; }
.dbf-card h3 { margin: 0 0 14px; font-family: 'Sora', sans-serif; font-size: 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.dbf-card h3 span { font-family: 'Work Sans', sans-serif; font-weight: 400; font-size: 12.5px; color: var(--text-faint); }
.dbf-ready-big { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.dbf-ready-big strong { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 44px; line-height: 1; color: var(--accent); }
.dbf-ready-big strong small { font-size: 22px; color: var(--text-faint); font-weight: 700; }
.dbf-ready-big span { font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.dbf-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.dbf-bars li { display: grid; grid-template-columns: 56px minmax(0,1fr) 44px; align-items: center; gap: 10px; }
.dbf-bar-label { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; font-weight: 600; color: var(--text); }
.dbf-bar-label em { display: none; }
.dbf-bar { position: relative; height: 10px; border-radius: 10px; background: var(--bg-soft); overflow: visible; }
.dbf-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 10px; transition: width .6s cubic-bezier(.2,.7,.2,1); }
.dbf-bar b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #101317; border-radius: 2px; opacity: 0.55; }
.dbf-bar-val { font-family: 'IBM Plex Mono', monospace; font-size: 12px; text-align: right; color: var(--text-muted); }
.dbf-bar i.solid, .dbf-cell.solid { background: #10B981; }
.dbf-bar i.ok, .dbf-cell.ok { background: #6EE7B7; }
.dbf-bar i.mid, .dbf-cell.mid { background: #FBBF24; }
.dbf-bar i.bad, .dbf-cell.bad { background: #F87171; }
.dbf-bar i.none { background: #CBD2DC; }

.dbf-plan ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.dbf-plan li { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft); }
.dbf-plan-n { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--accent); color: #fff; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.dbf-plan li > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dbf-plan strong { font-family: 'Sora', sans-serif; font-size: 15px; }
.dbf-key { display: inline-block; margin-left: 4px; font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); background: #EFF4FF; border: 1px solid #C7D7FE; padding: 1px 6px; border-radius: 100px; vertical-align: middle; }
.dbf-plan-sub { font-size: 12px; color: var(--text-faint); }
.dbf-plan p { margin: 4px 0 6px; font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }
.dbf-actions { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.dbf-actions a { font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; }
.dbf-actions a:hover { text-decoration: underline; }

.dbf-insights { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.dbf-insight { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.dbf-insight p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--text-muted); }
.dbf-insight-ic { width: 26px; height: 26px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.dbf-insight.warn { border-color: #FDE68A; background: #FFFBEB; } .dbf-insight.warn .dbf-insight-ic { background: #FEF3C7; color: #B45309; }
.dbf-insight.good { border-color: #A7F3D0; background: #F0FDF7; } .dbf-insight.good .dbf-insight-ic { background: #D1FAE5; color: #047857; }
.dbf-insight.info .dbf-insight-ic { background: #EFF4FF; color: var(--accent); }

.dbf-map-row { display: grid; grid-template-columns: 56px minmax(0,1fr); align-items: center; gap: 10px; padding: 4px 0; }
.dbf-map-label { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; font-weight: 600; }
.dbf-map-cells { display: flex; flex-wrap: wrap; gap: 5px; }
.dbf-cell { position: relative; width: 34px; height: 22px; border-radius: 6px; background: #E6EAF0; transition: transform .15s ease, box-shadow .15s ease; }
.dbf-cell span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dbf-cell.is-key { box-shadow: inset 0 0 0 2px rgba(16,19,23,0.35); }
.dbf-cell:hover { transform: translateY(-2px) scale(1.06); box-shadow: 0 6px 14px -6px rgba(10,20,50,0.4); }
.dbf-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: 12px; color: var(--text-muted); }
.dbf-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dbf-legend span::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: #E6EAF0; }
.dbf-legend .solid::before { background: #10B981; } .dbf-legend .ok::before { background: #6EE7B7; } .dbf-legend .mid::before { background: #FBBF24; } .dbf-legend .bad::before { background: #F87171; }
.dbf-legend .key::before { background: var(--surface); box-shadow: inset 0 0 0 2px rgba(16,19,23,0.35); }

.dbf-review details { border-top: 1px solid var(--border); padding: 12px 0; }
.dbf-review details:first-of-type { border-top: none; padding-top: 0; }
.dbf-review summary { cursor: pointer; font-size: 14.5px; line-height: 1.5; font-weight: 600; list-style: none; }
.dbf-review summary::-webkit-details-marker { display: none; }
.dbf-review-meta { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: #B45309; margin-bottom: 3px; }
.dbf-review-answer { margin: 10px 0 4px; font-size: 14px; color: #065F46; }
.dbf-review-expl { margin: 0 0 8px; font-size: 13.5px; line-height: 1.6; color: var(--text-muted); }
.dbf-review details a { font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; }
.dbf-empty { margin: 0; color: var(--text-muted); font-size: 14px; }

.dbf-annual { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 48px; align-items: center; }
.dbf-annual h2 { margin: 14px 0 12px; font-family: 'Sora', sans-serif; font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -0.01em; }
.dbf-annual p { margin: 0 0 12px; font-size: 15px; line-height: 1.7; color: var(--text-muted); }
.dbf-compare { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); }
.dbf-compare li { display: grid; grid-template-columns: minmax(0,1fr) 86px 86px; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); font-size: 13.5px; }
.dbf-compare li:first-child { border-top: none; }
.dbf-compare li span:not(:first-child) { text-align: center; }
.dbf-compare .head { background: var(--bg-soft); font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); }
.dbf-compare .head span:last-child { color: var(--accent); }
.dbf-compare .yes { color: #059669; font-weight: 800; }
.dbf-compare .no { color: var(--text-faint); }
.dbf-compare .foot { background: var(--bg-soft); font-family: 'Sora', sans-serif; font-weight: 700; }
.dbf-compare .foot em { display: block; font-style: normal; font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 600; text-transform: uppercase; color: var(--accent); }
.dbf-limits { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; margin-top: 32px; }
.dbf-limits > div { border-top: 1px solid var(--border); padding-top: 16px; }
.dbf-limits strong { font-family: 'Sora', sans-serif; font-size: 16px; }
.dbf-limits p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.7; color: var(--text-muted); }

@media (max-width: 960px) {
  .dbf-signals, .dbf-limits { grid-template-columns: 1fr; }
  .dbf-grid, .dbf-annual { grid-template-columns: 1fr; }
  .dbf-cell { width: 28px; }
}
.dbf-session { display: flex; gap: 14px; align-items: flex-start; margin: 18px 0; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid rgba(34,82,204,0.25); box-shadow: 0 16px 36px -26px rgba(10,20,50,0.4); }
.dbf-session-body { flex: 1; min-width: 0; }
.dbf-session-body p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.6; }
.dbf-session-body p a { font-weight: 600; }
.dbf-session-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; font-size: 13.5px; color: var(--text-muted); }
.dbf-session-cta a { font-weight: 600; }
.dbf-session-cta .btn-primary { padding: 10px 18px; font-size: 13.5px; }
.dbf-lesson-hint { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 28px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-soft); }
.dbf-lesson-hint .dbf-avatar { width: 38px; height: 38px; }
.dbf-lesson-hint .dbf-avatar img { width: 20px; height: 20px; }
.dbf-lesson-hint p { margin: 3px 0 6px !important; font-size: 14px !important; line-height: 1.55 !important; color: var(--text) !important; }
.dbf-lesson-hint.bad { border-color: #FECACA; background: #FFF6F6; }
.dbf-lesson-hint.mid { border-color: #FDE68A; background: #FFFBEB; }
.dbf-lesson-hint.solid, .dbf-lesson-hint.ok { border-color: #A7F3D0; background: #F0FDF7; }
.dbf-lesson-hint .dbf-actions a { font-weight: 600; }
.dbf-academy-card { margin-top: 20px; min-height: 300px; }

/* Homepage technology band: RogerDebrief, full width under Roger and RogerWX */
.tech-feature-card.is-wide { grid-column: 1 / -1; min-height: 340px; align-items: center; }
.tech-feature-card.is-wide .tech-feature-body { flex: 1 1 58%; max-width: 640px; }
.tech-feature-aside { flex: 0 1 380px; margin: 32px 40px 32px 0; padding: 18px 20px; border-radius: 16px; background: rgba(9,18,35,0.72); border: 1px solid rgba(143,176,255,0.22); backdrop-filter: blur(6px); display: flex; flex-direction: column; gap: 14px; transition: transform .3s ease; }
.tech-feature-card.is-wide:hover .tech-feature-aside { transform: translateY(-4px); }
.tfa-bubble { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15px; line-height: 1.4; color: #fff; }
.tfa-bubble span { display: block; margin-bottom: 4px; font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #8FB0FF; }
.tfa-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.tfa-bars li { display: grid; grid-template-columns: 40px minmax(0,1fr) 40px; align-items: center; gap: 10px; }
.tfa-bars b { font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; color: #D6E0FF; }
.tfa-bars i { position: relative; height: 8px; border-radius: 8px; background: rgba(143,176,255,0.14); }
.tfa-bars em { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; }
.tfa-bars em.solid { background: #10B981; } .tfa-bars em.ok { background: #6EE7B7; } .tfa-bars em.mid { background: #FBBF24; } .tfa-bars em.bad { background: #F87171; }
.tfa-bars s { position: absolute; left: 75%; top: -3px; bottom: -3px; width: 2px; background: var(--surface); opacity: 0.6; border-radius: 2px; }
.tfa-bars small { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #B3BFDB; text-align: right; }
.tfa-note { font-size: 11.5px; color: #8C9CC0; }
@media (max-width: 820px) {
  .tech-feature-card.is-wide { flex-direction: column; align-items: stretch; }
  .tech-feature-aside { margin: 0 22px 26px; }
}
.tech-feature-card.is-wide canvas {
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.28) 40%, #000 72%);
  mask-image: linear-gradient(90deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.28) 40%, #000 72%);
}
@media (max-width: 820px) {
  .tech-feature-aside { flex: none; }
  .tech-feature-card.is-wide canvas { -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.3) 55%, #000 85%); mask-image: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.3) 55%, #000 85%); }
}

/* ---------- News (/actualites/, generated by scripts/build-news.js) ---------- */
.news-hero { padding-bottom: 0; }
.news-hero .gallery-count a { color: inherit; }
.news-hero .gallery-count a:hover { color: var(--accent-dark); }
.news-hero-meta { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 18px; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--text-faint); }
.news-hero-meta a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-faint); font-weight: 600; }
.news-hero-meta a:hover { color: var(--accent); }
.news-hero-meta svg, .news-follow .btn-outline svg { width: 13px; height: 13px; color: #E8792B; }
.news-pills { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }
.news-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border: 1px solid var(--border); border-radius: 100px;
  background: var(--surface); color: var(--text-muted); font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.news-pill span { font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 500; opacity: .7; }
.news-pill:hover { border-color: var(--accent); color: var(--accent); }
.news-pill[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.news-pill.ghost { border-style: dashed; }
.news-subnav { border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.news-pills.compact { margin: 0; padding: 12px 0; }
.news-pills.compact .news-pill { padding: 6px 13px; font-size: 12.5px; }

.news-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 0 rgba(229,72,77,.5); animation: news-pulse 2s infinite; }
@keyframes news-pulse { 70% { box-shadow: 0 0 0 7px rgba(229,72,77,0); } 100% { box-shadow: 0 0 0 0 rgba(229,72,77,0); } }
@media (prefers-reduced-motion: reduce) { .news-live { animation: none; } }

.news-ticker { display: flex; align-items: center; gap: 18px; min-height: 46px; margin-top: 28px; padding: 0 18px; border: 1px solid var(--border); border-radius: 100px; background: var(--bg-soft); }
/* Visually hidden label, still read by screen readers */
.news-region .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Regional edition (assets/js/regional-news.js): headlines from other sites around the pilot's aerodrome */
.news-region { margin-top: 28px; padding: 22px 24px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); position: relative; }
.news-region::before, .news-region::after { content: ''; position: absolute; width: 10px; height: 10px; border: 1.5px solid var(--accent); }
.news-region::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.news-region::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.news-region-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.news-region-tag { margin: 0 0 4px; font-family: 'Work Sans', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.news-region-tag span { font-family: 'IBM Plex Mono', monospace; color: var(--accent); margin-right: 6px; }
.news-region h2 { margin: 0; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 22px; letter-spacing: -0.01em; }
.news-region-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.news-region-form input { width: 92px; min-height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: 100px; background: var(--bg-soft); color: var(--text); font-family: 'IBM Plex Mono', monospace; font-size: 14px; text-transform: uppercase; }
.news-region-form .btn-outline { min-height: 40px; padding: 0 16px; font-size: 13.5px; }
.news-region-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.news-region-list li { border-top: 1px solid var(--border); }
.news-region-list a { display: block; padding: 12px 0; color: var(--text); text-decoration: none; }
.news-region-list a:hover .nr-title { color: var(--accent); }
.nr-title { display: block; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15px; line-height: 1.35; }
.nr-meta { display: block; margin-top: 4px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-muted); }
.nr-empty { padding: 14px 0; color: var(--text-muted); font-size: 14px; }
.news-region-msg { margin: 10px 0 0; font-size: 13.5px; color: var(--text-muted); min-height: 1em; }
.news-region-note { margin: 6px 0 0; font-size: 12px; color: var(--text-muted); }
@media (max-width: 760px) { .news-region { padding: 18px 16px; } .news-region-list { grid-template-columns: 1fr; } }
.news-ticker-label {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text);
}
.news-ticker ul { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.news-ticker ul::-webkit-scrollbar { display: none; }
.news-ticker li { font-size: 13.5px; }
.news-ticker time { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--accent); margin-right: 8px; }
.news-ticker a { color: var(--text); }
.news-ticker a:hover { color: var(--accent); }

.news-wrap { padding-top: 36px; padding-bottom: 96px; }
.news-kicker { display: inline-block; font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); }
.news-meta { display: flex; flex-wrap: wrap; gap: 6px;
}
.news-une-side .news-side:not(:first-child) .news-min, .home-news-list .news-min { display: none; }
.news-meta { font-size: 12.5px; color: var(--text-faint); }
.news-media { display: block; overflow: hidden; border-radius: 12px; background: var(--bg-soft); aspect-ratio: 16 / 9; }
.news-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
article:hover .news-media img { transform: scale(1.03); }
.news-lead h2 a, .news-lead h3 a, .news-side h3 a, .news-row h3 a, .news-card h3 a { color: var(--text); }
.news-lead h2 a:hover, .news-lead h3 a:hover, .news-side h3 a:hover, .news-row h3 a:hover, .news-card h3 a:hover { color: var(--accent); }

.news-une { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 36px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.news-lead { display: flex; flex-direction: column; gap: 18px; }
.news-lead-text { display: flex; flex-direction: column; gap: 10px; }
.news-lead h2, .news-lead h3 { margin: 0; font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; letter-spacing: -0.015em; }
.news-dek { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--text-muted); }
.news-une-side { display: flex; flex-direction: column; border-left: 1px solid var(--border); padding-left: 32px; }
.news-side { display: flex; flex-direction: column; gap: 10px; padding: 0 0 22px; }
.news-side + .news-side { padding-top: 22px; border-top: 1px solid var(--border); }
.news-side > div { display: flex; flex-direction: column; gap: 6px; }
.news-side h3 { margin: 0; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 16.5px; line-height: 1.3; letter-spacing: -0.01em; }
.news-une-side .news-side:first-child .news-media { display: block; }
.news-une-side .news-side:not(:first-child) { flex-direction: row-reverse; align-items: flex-start; gap: 14px; }
.news-une-side .news-side:not(:first-child) .news-media { flex: 0 0 96px; aspect-ratio: 1; }

.news-section-title { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }
.news-section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.news-columns { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding-top: 40px; }
.news-latest { min-width: 0; }
.news-row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.news-row > div { display: flex; flex-direction: column; gap: 7px; }
.news-row h3 { margin: 0; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 19px; line-height: 1.28; letter-spacing: -0.01em; }
.news-row p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-muted); }
.news-latest > .news-lead { padding: 22px 0 28px; border-bottom: 1px solid var(--border); }
.news-latest > .news-lead:first-child { padding-top: 0; }
.news-more { display: inline-block; margin-top: 22px; font-size: 14px; font-weight: 600; }
.news-empty { color: var(--text-muted); padding: 22px 0; }

.news-aside { display: flex; flex-direction: column; gap: 22px; }
.news-aside > section { position: relative; }
.news-fil { border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px 6px; background: var(--surface); }
.news-fil li:last-child { border-bottom: 0; }
.news-fil h2, .news-box h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 6px; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 16px; }
.news-fil ol { list-style: none; margin: 0; padding: 0; }
.news-fil li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); position: relative; }
.news-fil time { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; font-weight: 600; color: var(--accent); padding-top: 2px; }
.news-fil li > div { display: flex; flex-direction: column; gap: 3px; }
.news-fil-cat { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); }
.news-fil a { font-size: 13.5px; line-height: 1.45; color: var(--text); }
.news-fil a:hover { color: var(--accent); }
.news-box { border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; background: var(--bg-soft); }
.news-rubrics { list-style: none; margin: 0; padding: 0; }
.news-rubrics li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.news-rubrics li:last-child { border-bottom: 0; }
.news-rubrics a { color: var(--text); font-weight: 600; }
.news-rubrics a:hover { color: var(--accent); }
.news-rubrics span { font-size: 12.5px; color: var(--text-faint); }
.news-follow p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }
.news-follow .btn-outline { display: inline-flex; align-items: center; }

.news-band { padding-top: 48px; }
.news-band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.news-band-head .news-section-title { flex: 1; margin: 0; }
.news-band-head a { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.news-band-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.news-card { display: flex; flex-direction: column; gap: 9px; }
.news-card .news-media { margin-bottom: 4px; }
.news-card h3 { margin: 0; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 16.5px; line-height: 1.32; letter-spacing: -0.01em; }

.news-crumbs { font-size: 13px; color: var(--text-faint); }
.news-crumbs a { color: var(--text-muted); font-weight: 500; }
.news-crumbs span { margin: 0 6px; color: var(--border); }


/* Article page */
.news-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.news-progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.news-article { padding-bottom: 96px; }
.news-article-head { max-width: 760px; margin: 0 auto; padding: 48px var(--gutter) 0; }
.news-article-head h1 { margin: 16px 0 14px; font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(28px, 4.5vw, 42px); line-height: 1.15; letter-spacing: -0.015em; }
.news-chapo { margin: 0; font-size: clamp(17px, 2vw, 19.5px); line-height: 1.55; color: var(--text); font-weight: 500; }
.news-byline { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 20px; margin-top: 26px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.news-author { display: flex; align-items: center; gap: 12px; }
.news-author img { border-radius: 50%; border: 1px solid var(--border); padding: 7px; background: var(--surface); }
.news-author div { display: flex; flex-direction: column; gap: 2px; }
.news-author strong { font-size: 14px; }
.news-author span { font-size: 12.5px; color: var(--text-faint); }
.news-share { display: flex; align-items: center; gap: 6px; }
.news-share a, .news-share button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; min-width: 36px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 100px; background: var(--surface); color: var(--text-muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.news-share a:hover, .news-share button:hover { color: var(--accent); border-color: var(--accent); }
.news-share button.is-done { color: #1C7C4A; border-color: #1C7C4A; }
.news-share svg { width: 16px; height: 16px; }
.news-figure { max-width: 1000px; margin: 32px auto 0; padding: 0 var(--gutter); }
.news-figure img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; background: var(--bg-soft); }
.news-figure figcaption { margin-top: 10px; font-size: 12.5px; color: var(--text-faint); }
.news-prose { padding-top: 40px; padding-bottom: 24px; }
.news-prose > p:first-child { font-size: 17px; color: var(--text); }
.article.news-prose p, .article.news-prose ul { font-size: 16.5px; line-height: 1.78; }
.article.news-prose h2 { font-size: 22px; margin-top: 44px; letter-spacing: -0.01em; }
.news-note { font-size: 13px !important; color: var(--text-faint) !important; }
.news-prose .news-table { width: 100%; border-collapse: collapse; margin: 22px 0 8px; font-size: 15px; }
.news-prose .news-table th, .news-prose .news-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.news-prose .news-table thead th { font: 600 12px/1.3 'IBM Plex Mono', monospace; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); border-bottom: 2px solid var(--border); }
.news-prose .news-table tbody tr:hover { background: var(--bg-soft); }
@media (max-width: 520px) { .news-prose .news-table { font-size: 13.5px; } .news-prose .news-table th, .news-prose .news-table td { padding: 8px 6px; } }
.news-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 28px 0; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft); }
.news-figures div { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; }
.news-figures div + div { border-left: 1px solid var(--border); }
.news-figures strong { font-family: 'Sora', sans-serif; font-weight: 800; font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.03em; color: var(--text); }
.news-figures span { font-size: 13px; color: var(--text-faint); }
.news-article-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); }
.news-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.news-tags li { padding: 5px 11px; border-radius: 100px; background: var(--bg-soft); border: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--text-muted); }
.news-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; margin-top: 24px; }
.news-pager a { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15px; line-height: 1.35; }
.news-pager a:hover { border-color: var(--accent); color: var(--accent); }
.news-pager span { font-family: 'Work Sans', sans-serif; font-size: 12.5px; font-weight: 600; color: var(--text-faint); }
.news-pager .next { text-align: right; }
.news-related { padding-top: 64px; }

/* Homepage news block */
.home-news { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 36px; margin: 48px 0 96px; text-align: left; }
.home-news .news-lead h3 { font-size: clamp(22px, 2.6vw, 30px); }
.home-news-list { display: flex; flex-direction: column; }
.home-news-list .news-side { flex-direction: row-reverse; align-items: flex-start; gap: 14px; }
.home-news-list .news-side .news-media { flex: 0 0 104px; aspect-ratio: 1; }
.home-news-list .btn-outline { align-self: flex-start; margin-top: 8px; }

@media (max-width: 1000px) {
  .news-columns { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .news-aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; align-items: start; }
}
@media (max-width: 860px) {
  .news-une, .home-news { grid-template-columns: minmax(0, 1fr); }
  .news-une-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 22px; }
  .news-une-side .news-side:first-child { flex-direction: row-reverse; align-items: flex-start; gap: 14px; }
  .news-une-side .news-side:first-child .news-media { flex: 0 0 96px; aspect-ratio: 1; }
  .news-band-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .news-band-grid > :nth-child(3) { display: none; }
}
@media (max-width: 640px) {
  .news-pills { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); }
  .news-pills::-webkit-scrollbar { display: none; }
  .news-ticker { border-radius: 12px; }
  .news-row { grid-template-columns: minmax(0, 1fr) 96px; gap: 14px; }
  .news-row .news-media { order: 2; aspect-ratio: 1; }
  .news-row p { display: none; }
  .news-row h3 { font-size: 16.5px; }
  .news-band-grid { grid-template-columns: minmax(0, 1fr); }
  .news-band-grid > :nth-child(3) { display: flex; }
  .news-pager { grid-template-columns: minmax(0, 1fr); }
  .news-pager .next { text-align: left; }
  .news-share [data-share-label] { display: none; }
  .news-figure { padding: 0; }
  .news-figure img { border-radius: 0; }
  .news-figure figcaption { padding: 0 var(--gutter); }
  .news-figures strong { font-size: 24px; }
}

/* ==========================================================================
   Account preferences: display settings (set by assets/js/prefs.js on <html>),
   the Paramètres cards, the "Pour vous" cards on Aperçu, and the plan
   comparison page (/academy/formules/).
   ========================================================================== */

/* Dark theme: token overrides. `dark` is forced, `auto` follows the device. */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E1217; --bg-soft: #151B22; --border: #2A323D; --text: #E9ECF1;
  --text-muted: #A1ABB9; --text-faint: #8E99A8; --accent: #7EA0FF; --accent-dark: #A9C0FF; --surface: #171D25;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    color-scheme: dark;
    --bg: #0E1217; --bg-soft: #151B22; --border: #2A323D; --text: #E9ECF1;
    --text-muted: #A1ABB9; --text-faint: #8E99A8; --accent: #7EA0FF; --accent-dark: #A9C0FF; --surface: #171D25;
  }
}

/* Text size and reading comfort. Sizes are mostly px, so scale the page. */
html[data-text="large"] body { zoom: 1.1; }
html[data-text="xlarge"] body { zoom: 1.22; }
html[data-comfort="on"] .article { max-width: 700px; }
html[data-comfort="on"] .article p,
html[data-comfort="on"] .article li { line-height: 1.95; font-size: 16.5px; letter-spacing: 0.003em; }
html[data-comfort="on"] .article h2 { margin-top: 48px; }
html[data-comfort="on"] .article p { margin-bottom: 18px; }

/* Reduced motion, chosen in the account settings (the OS setting is honoured separately above). */
html[data-motion="reduce"] *,
html[data-motion="reduce"] *::before,
html[data-motion="reduce"] *::after {
  animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important; scroll-behavior: auto !important;
}

/* Paramètres */
.set-intro { margin: 0 0 6px; font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }
.set-intro a { font-weight: 600; }
.set-group { margin: 30px 0 14px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); }
.set-card { position: relative; }
.set-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.set-head > div { min-width: 0; }
.set-tier {
  flex-shrink: 0; font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 100px; background: rgba(34,82,204,0.1); color: var(--accent); white-space: nowrap;
}
.set-tier.is-annual { background: #0E1D3B; color: #fff; }
.set-tier[hidden] { display: none; }
.set-body { display: flex; flex-direction: column; gap: 14px; transition: opacity .15s ease; }
.set-card.is-locked .set-body { opacity: 0.42; filter: grayscale(0.4); user-select: none; }
.set-lock { margin-top: 14px; padding: 11px 14px; border-radius: 10px; background: var(--bg-soft); border: 1px dashed var(--border); font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.set-lock[hidden] { display: none; }
.set-lock a { font-weight: 600; }
.set-saved { position: absolute; right: 22px; bottom: 14px; font-size: 12px; font-weight: 600; color: #1E7A45; opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.set-saved.is-on { opacity: 1; }
.set-saved.is-error { color: #A31E1E; }
.set-label { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-muted); margin-bottom: 8px; }

.set-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft); align-self: flex-start; max-width: 100%; }
.set-seg button {
  border: none; background: transparent; padding: 8px 14px; border-radius: 9px; font: inherit; font-size: 13px; font-weight: 600;
  color: var(--text-muted); cursor: pointer; transition: background .15s ease, color .15s ease;
}
.set-seg button:hover { color: var(--text); }
.set-seg button.is-on { background: var(--accent); color: #fff; }
html[data-theme="dark"] .set-seg button.is-on { color: #0E1217; }

.set-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.set-chips button {
  border: 1px solid var(--border); background: var(--surface); padding: 8px 14px; border-radius: 100px; font: inherit; font-size: 13px; font-weight: 500;
  color: var(--text-muted); cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.set-chips button:hover { border-color: var(--accent); color: var(--text); }
.set-chips button.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
html[data-theme="dark"] .set-chips button.is-on { color: #0E1217; }

.set-switches { display: flex; flex-direction: column; gap: 12px; }
.set-switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.set-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.set-switch-ui { flex-shrink: 0; width: 38px; height: 22px; border-radius: 100px; background: var(--border); position: relative; transition: background .18s ease; margin-top: 1px; }
.set-switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .18s ease; box-shadow: 0 1px 2px rgba(0,0,0,0.25); }
.set-switch input:checked + .set-switch-ui { background: var(--accent); }
.set-switch input:checked + .set-switch-ui::after { transform: translateX(16px); }
.set-switch input:focus-visible + .set-switch-ui { outline: 2px solid var(--accent); outline-offset: 2px; }
.set-switch-text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--text); line-height: 1.4; }
.set-switch-text strong { font-weight: 600; font-size: 14px; }
.set-switch-text em { font-style: normal; font-size: 12.5px; color: var(--text-faint); }

.set-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.set-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.set-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.set-field label { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-muted); }
.set-field input, .set-field select {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px;
  font-family: 'Work Sans', sans-serif; font-size: 14px; background: var(--surface); color: var(--text);
}
.set-field input:focus, .set-field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.set-row .set-field { flex: 1 1 220px; }
.set-clear { cursor: pointer; background: transparent; font-family: inherit; }
.set-form { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.set-form[hidden] { display: none; }
.set-form .btn-outline { cursor: pointer; background: transparent; font-family: inherit; }
.set-note { margin: 12px 0 0; font-size: 13px; color: var(--text-muted); line-height: 1.55; }
.set-note.is-ok { color: #1E7A45; }
.set-note.is-error { color: #A31E1E; }
.set-card .btn-outline { cursor: pointer; background: transparent; font-family: inherit; }
.set-card .dash-delete-btn.confirming { background: #A31E1E; border-color: #A31E1E; color: #fff; }
@media (max-width: 640px) {
  .set-grid, .set-grid-3 { grid-template-columns: 1fr; }
  .set-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .set-head { flex-direction: column; gap: 8px; }
  .set-saved { position: static; display: block; margin-top: 10px; }
}

/* Aperçu: "Pour vous" */
.acc-foryou { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 0 0 18px; }
.acc-foryou[hidden] { display: none; }
.acc-fy-card {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); color: var(--text); transition: border-color .15s ease, transform .15s ease;
}
.acc-fy-card:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.acc-fy-card strong { font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 700; line-height: 1.3; }
.acc-fy-card em { font-style: normal; font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.acc-fy-card.is-count strong { font-size: 30px; letter-spacing: -0.02em; color: var(--accent); }
.acc-fy-card.is-soft { background: var(--bg-soft); border-style: dashed; }
.acc-fy-card.is-wide { grid-column: 1 / -1; }

/* Small notes under forms (gift page) */
.fm-note { margin: 22px 0 0; font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.faq-wrap { max-width: 720px; margin: 48px auto 96px; }

/* Decorative overflow (signature drawing) must never create a horizontal scrollbar. */
main.about { overflow-x: clip; }
.acc-fy-bar { display: block; height: 6px; margin-top: 10px; border-radius: 100px; background: var(--border); overflow: hidden; }
.acc-fy-bar i { display: block; height: 100%; border-radius: 100px; background: var(--accent); transition: width .3s ease; }
.acc-fy-card.is-streak strong { color: var(--accent); }
.acc-fy-card.is-nudge { border-color: #E5A23B; background: color-mix(in srgb, #E5A23B 9%, var(--surface)); }

/* Back office stays light whatever the account theme. */
body.adm-body {
  color-scheme: light;
  --bg: #FFFFFF; --bg-soft: #F7F8FA; --border: #E2E5EA; --text: #101317; --text-muted: #6B7280;
  --text-faint: #5B6371; --accent: #2252CC; --accent-dark: #163a94; --surface: #FFFFFF;
}

/* Academy home: progress rings */
.acad-ring { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 32px; margin: 32px 0 0; padding: 18px 22px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.acad-ring[hidden] { display: none; }
.ring-item { display: flex; align-items: center; gap: 14px; }
.ring-item strong { display: block; font-family: 'Sora', sans-serif; font-size: 14px; }
.ring-item span { display: block; font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.ring-next { margin-left: auto; display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--border); color: var(--text); max-width: 100%; }
.ring-next span { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.ring-next strong { font-size: 14px; }
.ring-next:hover { border-color: var(--accent); color: var(--text); }
@media (max-width: 640px) { .ring-next { margin-left: 0; width: 100%; } }

/* Paramètres → Visites guidées */
.set-tours { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.set-tour-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.set-tour-row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.set-tour-row strong { font-size: 14px; font-weight: 600; }
.set-tour-row span { font-size: 12.5px; color: var(--text-muted); line-height: 1.45; }
.set-tour-row .btn-outline { flex-shrink: 0; cursor: pointer; background: transparent; font-family: inherit; }
.set-tour-note { font-size: 12px !important; color: var(--text-faint) !important; max-width: 220px; text-align: right; }
@media (max-width: 640px) { .set-tour-row { flex-direction: column; align-items: flex-start; } .set-tour-note { text-align: left; max-width: none; } }

/* Account deletion guard */
.del-block { margin: 0 0 16px; padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, #E5A23B 10%, var(--surface)); border: 1px solid color-mix(in srgb, #E5A23B 45%, var(--border)); font-size: 13px; line-height: 1.6; color: var(--text-muted); }
.del-block[hidden] { display: none; }
.del-block strong { display: block; margin-bottom: 4px; font-size: 14px; color: var(--text); }
.del-block p { margin: 6px 0 0; }
.del-block a, .del-block .link-btn { font-weight: 600; }
.link-btn { background: none; border: none; padding: 0; font: inherit; font-weight: 600; color: var(--accent); cursor: pointer; text-decoration: underline; }
.dash-delete-btn.is-blocked, .dash-delete-btn:disabled { opacity: .55; cursor: not-allowed; }

/* Account closure (accounts with purchases): /compte/ > Paramètres. Tokens only, so dark mode follows. */
.close-block { margin: 0 0 16px; padding: 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; line-height: 1.6; color: var(--text-muted); }
.close-block[hidden] { display: none; }
.close-title { margin: 0 0 6px; font-family: 'Sora', sans-serif; font-size: 16px; color: var(--text); }
.close-lead { margin: 0 0 8px; }
.close-list { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 6px; }
.close-list strong { color: var(--text); }
.close-note { margin: 0 0 12px; font-size: 12.5px; color: var(--text-faint); }
.close-blocker, .close-warn, .close-error { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; font-size: 13px; }
.close-blocker, .close-warn { background: color-mix(in srgb, #E5A23B 10%, var(--surface)); border: 1px solid color-mix(in srgb, #E5A23B 45%, var(--border)); color: var(--text); }
.close-error { background: color-mix(in srgb, #C22828 9%, var(--surface)); border: 1px solid color-mix(in srgb, #C22828 35%, var(--border)); color: var(--text); }
.close-error[hidden] { display: none; }
.close-blocker a { font-weight: 600; }
.close-confirm { padding-top: 4px; }
.close-confirm p { margin: 0 0 10px; color: var(--text); }
.close-label { display: block; margin: 0 0 4px; font-size: 12px; color: var(--text-faint); }
.close-input { box-sizing: border-box; width: 100%; max-width: 280px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; font-size: 16px; letter-spacing: 0.04em; }
.close-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
@media (max-width: 560px) { .close-actions .btn-outline, .close-input { width: 100%; max-width: none; } }
.auth-message.warn { background: color-mix(in srgb, #E5A23B 12%, var(--surface)); color: var(--text); border: 1px solid color-mix(in srgb, #E5A23B 50%, var(--border)); }


/* Promo code box (cart + subscription checkout), see PromoBox in assets/js/shop.js */
.promo { margin: 0 0 14px; font-size: 13px; }
.promo-toggle { background: none; border: none; padding: 4px 0; font: inherit; font-size: 13px; font-weight: 500; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.promo-body { margin-top: 8px; }
.promo-label { display: block; margin-bottom: 6px; font-size: 12px; color: var(--text-muted); }
.promo-input { display: block; width: 100%; box-sizing: border-box; min-width: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font-family: 'IBM Plex Mono', monospace; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.promo-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.promo-input[aria-invalid="true"] { border-color: #B42318; }
.promo-msg { margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; color: #B42318; overflow-wrap: anywhere; }
.checkout-card .promo { text-align: center; }
.checkout-card .promo-label { text-align: left; }
.checkout-card .promo-msg { text-align: left; }

/* ==========================================================================
   Installable app (PWA) and Web Push — assets/js/pwa.js, assets/js/compte-push.js
   ========================================================================== */
.pwa-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 480;
  max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 14px; box-shadow: 0 12px 32px rgba(16,19,23,0.18);
}
.pwa-banner img { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
.pwa-banner-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 180px; min-width: 0; }
.pwa-banner-text strong { font-size: 14px; font-weight: 600; }
.pwa-banner-text span { font-size: 12.5px; line-height: 1.45; color: var(--text-muted); }
.pwa-banner-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.pwa-banner .btn-primary { padding: 8px 16px; font-size: 13px; cursor: pointer; border: none; font-family: inherit; }
.pwa-later { background: none; border: none; color: var(--text-muted); font: inherit; font-size: 13px; padding: 8px 10px; cursor: pointer; border-radius: 8px; }
.pwa-later:hover { color: var(--text); }
.pwa-sheet {
  position: fixed; inset: 0; z-index: 600; background: rgba(16,19,23,0.55);
  display: flex; align-items: flex-end; justify-content: center; padding: 16px;
}
.pwa-sheet-card {
  width: 100%; max-width: 440px; background: var(--surface); color: var(--text); border-radius: 18px;
  padding: 22px 20px 20px; box-shadow: 0 20px 48px rgba(0,0,0,0.3);
}
.pwa-sheet-card h2 { margin: 0 0 14px; font-family: 'Sora', sans-serif; font-size: 18px; }
.pwa-steps { margin: 0 0 12px; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; line-height: 1.5; }
.pwa-steps svg { vertical-align: -4px; color: var(--accent); }
.pwa-note { margin: 0 0 16px; font-size: 12.5px; line-height: 1.55; color: var(--text-muted); }
.pwa-sheet .btn-primary { width: 100%; text-align: center; cursor: pointer; border: none; font-family: inherit; }
html[data-theme="dark"] .pwa-sheet .btn-primary, html[data-theme="dark"] .pwa-banner .btn-primary { color: #0E1217; }
@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] .pwa-sheet .btn-primary, html[data-theme="auto"] .pwa-banner .btn-primary { color: #0E1217; }
}
@media (min-width: 640px) { .pwa-sheet { align-items: center; } }
@media (max-width: 480px) { .pwa-banner-actions { width: 100%; justify-content: flex-end; } }

.push-slot { grid-column: 1 / -1; min-width: 0; }
.push-card .push-sub { margin: 18px 0 10px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-faint); }
.push-card .push-actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.push-card .set-switch.is-disabled { opacity: 0.5; cursor: not-allowed; }
.push-card .push-main + .push-main { margin-top: 0; }
.push-card .set-note.push-state { margin: 0 0 12px; }

/* Library: re-attach an order by number (compte/index.html #libraryClaim) */
.library-claim { margin: 22px 0 6px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-soft); overflow: hidden; }
.library-claim > summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; }
.library-claim > summary::-webkit-details-marker { display: none; }
.library-claim > summary:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.library-claim > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 16px; }
.lc-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, var(--bg)); color: var(--accent); }
.lc-title { flex: 1; min-width: 0; display: grid; gap: 2px; }
.lc-title strong { font-size: 15px; color: var(--text); }
.lc-title em { font-style: normal; font-size: 13px; color: var(--text-muted); }
.lc-chevron { flex: none; width: 9px; height: 9px; border-right: 2px solid var(--text-faint); border-bottom: 2px solid var(--text-faint); transform: rotate(45deg); transition: transform .2s; margin-right: 4px; }
.library-claim[open] > summary .lc-chevron { transform: rotate(-135deg); }
.library-claim[open] > summary { border-bottom: 1px solid var(--border); }
.lc-form { padding: 18px; display: grid; gap: 18px; }
.lc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: none; }
.lc-steps li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.lc-steps li > span { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--accent); color: #fff; }
.lc-steps a { color: var(--accent); font-weight: 600; }
.lc-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.lc-field { display: grid; gap: 6px; min-width: 0; }
.lc-field label { font-size: 13px; font-weight: 600; color: var(--text); }
.lc-field input { font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface, var(--bg)); color: var(--text); min-width: 0; width: 100%; box-sizing: border-box; transition: border-color .15s, box-shadow .15s; }
.lc-field input#claimOrder { font-family: 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: .06em; font-weight: 600; }
.lc-field input::placeholder { color: var(--text-faint); font-weight: 400; }
.lc-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.lc-hint { font-size: 12px; color: var(--text-faint); }
.lc-field.is-invalid input { border-color: #c4352b; }
.lc-field.is-invalid .lc-hint { color: #c4352b; font-weight: 600; }
.lc-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lc-btn { display: inline-flex; align-items: center; gap: 8px; }
.lc-btn[disabled] { opacity: .75; cursor: progress; }
.lc-spin { display: none; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: lc-rot .7s linear infinite; }
.lc-btn.is-busy .lc-spin { display: inline-block; }
@keyframes lc-rot { to { transform: rotate(360deg); } }
.lc-privacy { flex: 1; min-width: 200px; font-size: 12px; line-height: 1.45; color: var(--text-faint); }
.lc-result { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid; font-size: 14px; line-height: 1.5; }
.lc-result[hidden] { display: none; }
.lc-result p { margin: 2px 0 0; }
.lc-result .lc-tip { font-size: 13px; opacity: .85; margin-top: 6px; }
.lc-result-icon { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800; color: #fff; }
.lc-result.is-ok { background: #eaf7ef; border-color: #b6e2c7; color: #14532d; }
.lc-result.is-ok .lc-result-icon { background: #1b7a43; }
.lc-result.is-error { background: #fdeceb; border-color: #f3c0bc; color: #7a1f19; }
.lc-result.is-error .lc-result-icon { background: #c4352b; }
.lc-result.is-warn { background: #fff6e0; border-color: #f0d796; color: #6b4a00; }
.lc-result.is-warn .lc-result-icon { background: #b7791f; }
.lc-link { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.lc-books { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.lc-books li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.65); }
.lc-books span { font-size: 12px; opacity: .75; }
html[data-theme="dark"] .lc-result.is-ok { background: #12301f; border-color: #1f5a37; color: #bdf0d0; }
html[data-theme="dark"] .lc-result.is-error { background: #3a1613; border-color: #6e2a25; color: #ffc9c4; }
html[data-theme="dark"] .lc-result.is-warn { background: #3a2c0b; border-color: #6b5214; color: #f6dc9b; }
html[data-theme="dark"] .lc-books li { background: rgba(255,255,255,.07); }
@media (prefers-reduced-motion: reduce) { .lc-chevron, .lc-spin { transition: none; animation-duration: 2s; } }
@media (max-width: 480px) { .library-claim > summary { padding: 12px 14px; gap: 10px; } .lc-form { padding: 14px; } .lc-actions .btn-primary { width: 100%; justify-content: center; } }
@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] .lc-result.is-ok { background: #12301f; border-color: #1f5a37; color: #bdf0d0; }
  html[data-theme="auto"] .lc-result.is-error { background: #3a1613; border-color: #6e2a25; color: #ffc9c4; }
  html[data-theme="auto"] .lc-result.is-warn { background: #3a2c0b; border-color: #6b5214; color: #f6dc9b; }
  html[data-theme="auto"] .lc-books li { background: rgba(255,255,255,.07); }
}

/* ==========================================================================
   Communication (/communication/): hero, section nav, documents (bento), messages (mockups),
   tracked link + QR, ambassadors band, FAQ.  Everything is scoped under .comm.
   Dark mode: tokens only (forced dark and auto), the dark bands are dark in both themes.
   ========================================================================== */
.comm {
  --navy: #0A1228; --navy-2: #0F1D45; --blue: #2F62E8; --sky: #9DB8FF;
  --on-accent: #fff;
  --comm-err: #B42318; --comm-err-bg: #FFF4F4; --comm-err-bd: #FECACA; --comm-ok: #047857; --comm-ok-bg: #ECFDF5;
  --shadow-lg: 0 34px 70px -38px rgba(10, 18, 40, 0.45); --shadow-md: 0 18px 40px -26px rgba(10, 18, 40, 0.35);
  --paper: #fff; --soft-2: #EEF2FB; --dots: rgba(34, 82, 204, 0.16);
  --wa-bg: #ECE5DD; --wa-bubble: #D9FDD3; --wa-text: #111B21; --wa-meta: #54656F;
  --sms-bg: #F3F5F9; --sms-bubble: #2F62E8; --sms-text: #fff;
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.5 3 3 6-7'/%3E%3C/svg%3E");
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236B7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  --sec-y: clamp(40px, 4.4vw, 52px);
  overflow-x: clip;
}
html[data-theme="dark"] .comm {
  --on-accent: #0E1217;
  --comm-err: #FF8F8F; --comm-err-bg: #3a1613; --comm-err-bd: #6e2a25; --comm-ok: #5CC98A; --comm-ok-bg: #12301f;
  --shadow-lg: 0 34px 70px -38px rgba(0, 0, 0, 0.8); --shadow-md: 0 18px 40px -26px rgba(0, 0, 0, 0.7);
  --paper: #1E2630; --soft-2: #121A27; --dots: rgba(126, 160, 255, 0.14);
  --wa-bg: #0B141A; --wa-bubble: #005C4B; --wa-text: #E9EDEF; --wa-meta: #9FB3BD;
  --sms-bg: #11171F; --sms-bubble: #3F6FEA;
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230E1217' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.5 3 3 6-7'/%3E%3C/svg%3E");
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23A1ABB9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] .comm {
    --on-accent: #0E1217;
    --comm-err: #FF8F8F; --comm-err-bg: #3a1613; --comm-err-bd: #6e2a25; --comm-ok: #5CC98A; --comm-ok-bg: #12301f;
    --shadow-lg: 0 34px 70px -38px rgba(0, 0, 0, 0.8); --shadow-md: 0 18px 40px -26px rgba(0, 0, 0, 0.7);
    --paper: #1E2630; --soft-2: #121A27; --dots: rgba(126, 160, 255, 0.14);
    --wa-bg: #0B141A; --wa-bubble: #005C4B; --wa-text: #E9EDEF; --wa-meta: #9FB3BD;
    --sms-bg: #11171F; --sms-bubble: #3F6FEA;
    --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230E1217' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.5 3 3 6-7'/%3E%3C/svg%3E");
    --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23A1ABB9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  }
}

.comm .i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.comm-wrap { max-width: 1160px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.comm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.comm code { font-family: 'IBM Plex Mono', monospace; font-size: 0.88em; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
.comm :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.comm-hero :focus-visible, .comm-amb :focus-visible, .comm-lk-qr :focus-visible, .comm-doc-stage :focus-visible { outline-color: #fff; }
.comm-doc .comm-dl:focus-visible { outline-color: var(--accent); }

/* Scroll reveal: hidden only once JS runs (class set by communication.js), never under reduced motion */
.comm-js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.comm-js .rv.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.comm-hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; background: radial-gradient(110% 100% at 80% 35%, #17316F 0%, var(--navy-2) 38%, var(--navy) 78%); }
.comm-hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.comm-hero-photo { position: absolute; right: 0; bottom: 0; width: min(78%, 1100px); height: 100%; object-fit: cover; object-position: 55% 70%; opacity: .5; mix-blend-mode: luminosity;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%), linear-gradient(0deg, #000 30%, transparent 100%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%), linear-gradient(0deg, #000 30%, transparent 100%); mask-composite: intersect; }
.comm-radar { position: absolute; right: -6%; top: 50%; width: min(860px, 80vw); aspect-ratio: 1; transform: translateY(-50%); color: rgba(157, 184, 255, .22); }
.comm-radar-ping { transform-origin: 400px 400px; animation: comm-ping 7s ease-out infinite; opacity: 0; }
.comm-radar-ping.p2 { animation-delay: 3.5s; }
@keyframes comm-ping { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(6.5); opacity: 0; } }
.comm-sweep { position: absolute; right: -6%; top: 50%; width: min(860px, 80vw); aspect-ratio: 1; margin-top: calc(min(860px, 80vw) / -2); border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(79, 124, 255, 0) 0deg, rgba(79, 124, 255, 0) 300deg, rgba(79, 124, 255, .22) 358deg, rgba(157, 184, 255, .5) 360deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, #000 45%, transparent 71%); mask-image: radial-gradient(circle, #000 0%, #000 45%, transparent 71%); animation: comm-spin 22s linear infinite; }
@keyframes comm-spin { to { transform: rotate(360deg); } }
.comm-hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 24px; align-items: center; padding-top: clamp(32px, 4vw, 48px); padding-bottom: clamp(36px, 4.4vw, 52px); }
.comm-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.comm-kicker { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sky); }
.comm-kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: #5CC98A; box-shadow: 0 0 0 4px rgba(92, 201, 138, .2); }
.comm-hero h1 { margin: 0; font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(36px, 4.8vw, 58px); letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; overflow-wrap: anywhere; }
.comm-grad { background: linear-gradient(100deg, #fff 0%, #9DB8FF 55%, #6E95FF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.comm-lead { margin: 0; max-width: 540px; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.65; color: rgba(255, 255, 255, .82); }
.comm-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.comm-btn-main, .comm-btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 20px; border-radius: 100px; font-size: 14.5px; font-weight: 600; transition: transform .2s, box-shadow .2s, background .2s; }
.comm-btn-main { background: linear-gradient(180deg, #3D6DF0, #2552D2); color: #fff; box-shadow: 0 14px 30px -12px rgba(47, 98, 232, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.comm-btn-main:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(47, 98, 232, .95), inset 0 1px 0 rgba(255, 255, 255, .25); }
.comm-btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .38); background: rgba(255, 255, 255, .06); }
.comm-btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.comm-btn-main .i, .comm-btn-ghost .i { transition: transform .2s; }
.comm-btn-main:hover .i, .comm-btn-ghost:hover .i { transform: translateX(3px); }
.comm-btn-main:hover .i[href], .comm-press .comm-btn-main:hover { color: #fff; }
.comm-chips { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.comm-chips li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 100px; font-size: 12.5px; font-weight: 500; color: rgba(255, 255, 255, .92); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(6px); }
.comm-chips .i { width: 16px; height: 16px; color: var(--sky); }
.comm-chips b { font-family: 'IBM Plex Mono', monospace; font-weight: 600; color: #fff; }
.comm-chips .comm-counter { font-family: 'IBM Plex Mono', monospace; font-weight: 600; letter-spacing: .02em; color: #BFFFD8; border-color: rgba(92, 201, 138, .5); }
.comm-chips .comm-counter[hidden] { display: none; }

.comm-stage { position: relative; height: clamp(330px, 31vw, 400px); }
.comm-mock { position: absolute; margin: 0; border-radius: 8px; transform: translate3d(calc(var(--mx, 0) * var(--d) * -.5px), calc(var(--my, 0) * var(--d) * -.4px + var(--sy, 0) * var(--d) * 2.6px), 0) rotate(var(--r)); transition: transform .35s ease-out; animation: comm-rise .9s cubic-bezier(.2, .7, .2, 1) both; will-change: transform; }
.comm-mock img { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 40px 70px -28px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .12); }
.m-poster { right: 3%; top: 0; width: 36%; z-index: 1; animation-delay: .1s; }
.m-brochure { left: 0; top: 16%; width: 72%; z-index: 2; animation-delay: .25s; }
.m-flyer { right: 12%; bottom: -2%; width: 31%; z-index: 3; animation-delay: .4s; }
@keyframes comm-rise { from { opacity: 0; translate: 0 34px; } to { opacity: 1; translate: 0 0; } }
.comm-float { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 100px; font-size: 12.5px; font-weight: 600; color: #fff; background: rgba(10, 18, 40, .72); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(10px); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6);
  transform: translate3d(0, calc(var(--sy, 0) * var(--d) * 2.6px), 0); animation: comm-bob 6s ease-in-out infinite; }
.comm-float .i { width: 16px; height: 16px; color: var(--sky); }
.f-pdf { left: 4%; bottom: 8%; }
.f-qr { right: 0; top: 52%; animation-delay: -3s; }
@keyframes comm-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* ---------- Sticky section nav ---------- */
.comm-subnav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.comm-subnav-in { list-style: none; margin-top: 0; margin-bottom: 0; display: flex; gap: 6px; padding-top: 8px; padding-bottom: 8px; overflow-x: auto; scrollbar-width: none; }
.comm-subnav-in::-webkit-scrollbar { display: none; }
.comm-subnav-in li:first-child { margin-left: auto; }
.comm-subnav-in li:last-child { margin-right: auto; }
.comm-subnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 100px; font-size: 14px; font-weight: 600; color: var(--text-muted); white-space: nowrap; transition: background .2s, color .2s; }
.comm-subnav a:hover { color: var(--text); background: var(--bg-soft); }
.comm-subnav a[aria-current="true"] { background: var(--accent); color: var(--on-accent); }

/* ---------- Sections ---------- */
.comm-sec { padding: var(--sec-y) 0; scroll-margin-top: 56px; }
.comm-amb, .comm-press, .comm-how { scroll-margin-top: 56px; }
.comm-sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 4px 48px; align-items: center; margin-bottom: 26px; }
.comm-sec-head > .comm-eyebrow { grid-column: 1 / -1; }
.comm-eyebrow { margin: 0 0 10px; display: flex; align-items: center; gap: 12px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.comm-eyebrow::after { content: ""; width: 44px; height: 1px; background: currentColor; opacity: .5; }
.comm-sec-head h2, .comm-press h2 { margin: 0 0 4px; font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(27px, 3.6vw, 40px); letter-spacing: -0.028em; line-height: 1.12; text-wrap: balance; }
.comm-sec-head p:not(.comm-eyebrow), .comm-press p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--text-muted); }

/* ---------- How it works ---------- */
.comm-how { padding: clamp(34px, 4vw, 48px) 0 0; }
.comm-flow { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: flow; }
.comm-flow::before { content: ""; position: absolute; left: 8%; right: 8%; top: 28px; height: 0; border-top: 2px dashed color-mix(in srgb, var(--accent) 45%, transparent); }
.comm-flow li { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-right: 8px; font-size: 14.5px; line-height: 1.6; color: var(--text-muted); }
.comm-flow strong { font-family: 'Sora', sans-serif; font-size: 18px; letter-spacing: -.01em; color: var(--text); margin-top: 6px; }
.comm-flow-node { position: relative; width: 56px; height: 56px; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(145deg, #4A78F2, #2252CC); box-shadow: 0 16px 30px -16px rgba(34, 82, 204, .85); }
.comm-flow li:nth-child(2) .comm-flow-node { background: linear-gradient(145deg, #3A6BF0, #1B3C9C); border-radius: 50%; }
.comm-flow li:nth-child(3) .comm-flow-node { background: linear-gradient(145deg, #5C86F5, #2F62E8); border-radius: 22px 22px 22px 6px; }
.comm-flow-node .i { width: 24px; height: 24px; }
.comm-flow-node em { position: absolute; top: -8px; right: -10px; font-style: normal; font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 100px; background: var(--surface); color: var(--accent); border: 1px solid var(--border); }
html[data-theme="dark"] .comm-flow-node { color: #0E1217; background: linear-gradient(145deg, #9DB8FF, #6E95FF); }
html[data-theme="dark"] .comm-flow li:nth-child(n) .comm-flow-node { background: linear-gradient(145deg, #9DB8FF, #6E95FF); }
@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] .comm-flow-node, html[data-theme="auto"] .comm-flow li:nth-child(n) .comm-flow-node { color: #0E1217; background: linear-gradient(145deg, #9DB8FF, #6E95FF); }
}

/* ---------- Documents (bento) ---------- */
.comm-docs-sec { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); }
.comm-filters { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 4px; margin-bottom: 18px; border-radius: 100px; background: var(--surface); border: 1px solid var(--border); }
.comm-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; background: transparent; color: var(--text-muted); border-radius: 100px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.comm-chip .i { width: 17px; height: 17px; }
.comm-chip:hover { color: var(--text); background: var(--bg-soft); }
.comm-chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.comm-docs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; transition: opacity .16s ease, transform .16s ease; }
.comm-docs.is-out { opacity: 0; transform: translateY(8px); }
.comm-loading { grid-column: 1 / -1; margin: 0; color: var(--text-faint); font-size: 14px; }
.sp-12 { grid-column: span 12; } .sp-7 { grid-column: span 7; } .sp-6 { grid-column: span 6; } .sp-5 { grid-column: span 5; } .sp-4 { grid-column: span 4; } .sp-3 { grid-column: span 3; }
.comm-doc.is-xl { grid-row: span 2; }
.comm-doc.is-xl.sp-12 { grid-row: auto; }
.comm-doc.is-tall { grid-row: span 2; }
.comm-doc.is-m.is-tall { flex-direction: column; }
.comm-doc.is-m.is-tall .comm-doc-stage { width: auto; flex: 1 1 auto; min-height: 260px; }
.comm-doc.is-m.is-tall .comm-doc-body { flex: none; }
.comm-doc.is-m.is-tall .comm-doc-who { display: block; }
.comm-doc.is-m.is-tall .comm-doc-desc { display: block; -webkit-line-clamp: unset; }
.comm-doc.is-m.is-tall .comm-dl { align-self: flex-start; }
.comm-doc { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset; transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, border-color .3s; animation: comm-in .55s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes comm-in { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
.comm-doc:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.comm-doc.is-m { flex-direction: row; }
.comm-doc-stage { position: relative; flex: none; height: 148px; overflow: hidden; background: radial-gradient(120% 120% at 70% 20%, #1B3A86 0%, var(--navy-2) 50%, var(--navy) 100%); }
.comm-doc.is-xl .comm-doc-stage { flex: 1 1 auto; height: auto; min-height: 300px; }
.comm-doc.is-m .comm-doc-stage { width: 34%; height: auto; min-height: 230px; }
.comm-doc-rings { position: absolute; inset: 0; background: repeating-radial-gradient(circle at 50% 55%, transparent 0 34px, rgba(157, 184, 255, .13) 34px 35px); pointer-events: none; }
.comm-sheet { position: absolute; left: 50%; top: 50%; width: auto; height: auto; max-width: 62%; max-height: 80%; border-radius: 5px; background: #fff; box-shadow: 0 26px 44px -18px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .1); transition: transform .45s cubic-bezier(.2, .7, .2, 1);
  --tx: 0%; --rot: 0deg; transform: translate(calc(-50% + var(--tx)), -50%) rotate(var(--rot)); }
.comm-doc.is-xl .comm-sheet { max-width: 58%; max-height: 86%; }
.comm-sheet.is-solo { --rot: -3deg; }
.comm-sheet.is-front { --tx: -9%; --rot: -4deg; z-index: 2; }
.comm-sheet.is-back { --tx: 17%; --rot: 5deg; max-width: 52%; z-index: 1; filter: brightness(.9); }
.comm-doc.is-m .comm-sheet { max-width: 70%; }
.comm-doc.is-m .comm-sheet.is-back { max-width: 60%; --tx: 20%; }
.comm-doc:hover .comm-sheet.is-solo { --rot: 0deg; }
.comm-doc:hover .comm-sheet.is-front { --tx: -13%; --rot: -6deg; }
.comm-doc:hover .comm-sheet.is-back { --tx: 22%; --rot: 8deg; }
.comm-illo { position: absolute; inset: 0; display: grid; place-items: center; }
.comm-illo svg { width: min(60%, 220px); height: auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .4)); }
.comm-doc-body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 18px 20px 20px; }
.comm-doc.is-m .comm-doc-body { padding: 18px; }
.comm-doc.is-xl .comm-doc-body { flex: none; padding: 22px 26px 26px; gap: 10px; }
.comm-doc-body h3 { margin: 0; font-family: 'Sora', sans-serif; font-size: 18px; letter-spacing: -.01em; line-height: 1.25; }
.comm-doc.is-xl h3 { font-size: 26px; letter-spacing: -.02em; }
.comm-doc-tags { position: absolute; left: 12px; top: 12px; right: 12px; z-index: 3; display: flex; flex-wrap: wrap; gap: 6px; }
.comm-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 9px; border-radius: 100px; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; background: rgba(10, 18, 40, .62); color: #fff; border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.comm-tag .i { width: 13px; height: 13px; }
.comm-tag.is-print { background: rgba(47, 98, 232, .78); border-color: rgba(157, 184, 255, .6); }
.comm-doc-desc, .comm-doc-who { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-muted); }
.comm-doc.is-s .comm-doc-desc, .comm-doc.is-m .comm-doc-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.comm-doc-who strong { color: var(--text); font-weight: 600; }
.comm-doc.is-s .comm-doc-who, .comm-doc.is-m .comm-doc-who { display: none; }
.comm-doc-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.comm-doc.is-s .comm-doc-meta li:nth-child(n+3), .comm-doc.is-m .comm-doc-meta li:nth-child(n+3) { display: none; }
.comm-doc-meta li { padding: 3px 9px; border-radius: 8px; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--text-muted); background: var(--bg-soft); border: 1px solid var(--border); }
.comm-doc-body.is-swap .comm-doc-desc, .comm-doc-body.is-swap .comm-doc-meta, .comm-doc-body.is-swap .comm-dl { animation: comm-fade .4s ease both; }
@keyframes comm-fade { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
.comm-seg { display: inline-flex; flex-wrap: nowrap; max-width: 100%; padding: 3px; gap: 2px; border-radius: 100px; background: var(--bg-soft); border: 1px solid var(--border); }
.comm-seg button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 100px; background: transparent; color: var(--text-muted); font: inherit; font-size: 13px; white-space: nowrap; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.comm-doc.is-m .comm-seg { display: flex; align-self: stretch; }
.comm-doc.is-m .comm-seg button { flex: 1 1 0; min-width: 0; padding: 0 6px; font-size: 12.5px; white-space: normal; line-height: 1.15; }
.comm-seg button:hover { color: var(--text); }
.comm-seg button[aria-pressed="true"] { background: var(--surface); color: var(--accent); box-shadow: 0 2px 8px rgba(10, 18, 40, .18), 0 0 0 1px var(--border); }
.comm-dl { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; white-space: nowrap; border-radius: 100px; background: var(--accent); color: var(--on-accent); font-size: 14.5px; font-weight: 600; transition: transform .2s, box-shadow .2s, background .2s; box-shadow: 0 12px 24px -14px var(--accent); }
.comm-dl:hover { color: var(--on-accent); background: var(--accent-dark); transform: translateY(-2px); }
.comm-dl .i { transition: transform .2s; }
.comm-dl:hover .i { transform: translateY(2px); }
.comm-dl-size { white-space: nowrap; margin-left: 6px; padding-left: 12px; border-left: 1px solid currentColor; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; font-weight: 500; opacity: .85; }
.comm-dl-size:empty { display: none; }
.comm-doc.is-s .comm-dl, .comm-doc.is-m .comm-dl { align-self: stretch; justify-content: center; }
.comm-doc.is-xl .comm-dl { min-width: 280px; }
.comm-fallback-note { margin: 18px 0 0; font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }
.comm-fallback-note[hidden] { display: none; }

/* ---------- Messages ---------- */
.comm-linkbar { margin: 0 0 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 13.5px; color: var(--text-muted); }
.comm-linkbar .i { width: 18px; height: 18px; color: var(--accent); }
.comm-linkbar code { background: color-mix(in srgb, var(--accent) 9%, transparent); border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); color: var(--text); padding: 4px 10px; border-radius: 100px; font-size: 12px; }
.comm-linkbar a { font-weight: 600; }
.comm-msgs { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: start; }
.comm-tabs { display: flex; flex-direction: column; gap: 6px; }
.comm-tab { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border: 1px solid transparent; border-radius: 16px; background: transparent; color: var(--text-muted); font: inherit; font-size: 14.5px; font-weight: 600; text-align: left; cursor: pointer; transition: background .2s, color .2s, border-color .2s, box-shadow .2s; }
.comm-tab:hover { background: var(--bg-soft); color: var(--text); }
.comm-tab .i { color: var(--text-faint); transition: color .2s; }
.comm-tab[aria-selected="true"] { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-md); }
.comm-tab[aria-selected="true"] .i { color: var(--accent); }
.comm-msg-stage { border-radius: 28px; border: 1px solid var(--border); background: radial-gradient(circle at 1px 1px, var(--dots) 1px, transparent 1.5px) 0 0 / 22px 22px, linear-gradient(160deg, var(--soft-2), var(--bg-soft)); padding: clamp(16px, 2.4vw, 26px); min-width: 0; }
.comm-msg[hidden] { display: none; }
.comm-msg { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); grid-template-areas: "top mock" "foot mock"; grid-template-rows: auto 1fr; gap: 22px 32px; align-items: start; animation: comm-fade .45s ease both; }
.comm-msg-top { grid-area: top; }
.comm-msg-top h3 { margin: 0 0 8px; font-family: 'Sora', sans-serif; font-size: 19px; line-height: 1.3; letter-spacing: -.01em; }
.comm-msg-hint { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.comm-mock-wrap { grid-area: mock; min-width: 0; }
.comm-msg-foot { grid-area: foot; align-self: end; display: flex; flex-direction: column; gap: 16px; }
.comm-msg-meter { display: flex; flex-direction: column; gap: 8px; }
.comm-msg-count { margin: 0; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--text-muted); }
.comm-meter { display: block; height: 6px; border-radius: 6px; background: var(--border); overflow: hidden; }
.comm-meter i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--accent), #5C86F5); transition: width .4s ease; }
.mk { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); transform: rotate(.6deg); transition: transform .4s; }
.comm-msg:hover .mk { transform: rotate(0); }
.mk .comm-msg-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 14.5px; line-height: 1.6; }
.mk-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.mk-bar strong { display: block; font-size: 14.5px; line-height: 1.2; }
.mk-bar small { display: block; font-size: 12px; opacity: .75; margin-top: 2px; }
.mk-av { width: 38px; height: 38px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15px; color: #fff; background: linear-gradient(145deg, #4A78F2, #1B3C9C); }
.mk-chat { background: var(--wa-bg); }
.mk-chat .mk-bar { background: var(--paper); color: var(--text); border-bottom: 1px solid var(--border); }
.mk-chat .mk-body { padding: 22px 16px 26px; display: flex; justify-content: flex-end; }
.mk-bubble { position: relative; max-width: 94%; padding: 11px 14px 24px; border-radius: 16px 16px 4px 16px; background: var(--wa-bubble); color: var(--wa-text); box-shadow: 0 1px 1px rgba(0, 0, 0, .12); }
.mk-time { position: absolute; right: 12px; bottom: 6px; font-size: 11px; color: var(--wa-meta); }
.mk-chat.is-sms { background: var(--sms-bg); }
.mk-chat.is-sms .mk-bubble { background: var(--sms-bubble); color: var(--sms-text); }
.mk-chat.is-sms .mk-time { color: rgba(255, 255, 255, .85); }
.mk-mail, .mk-news, .mk-post { background: var(--paper); color: var(--text); }
.mk-dots { display: flex; gap: 6px; padding: 12px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.mk-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mk-dots i:first-child { background: #FF6B6B; } .mk-dots i:nth-child(2) { background: #FFC24A; } .mk-dots i:nth-child(3) { background: #4CD08B; }
.mk-fields { margin: 0; padding: 12px 18px 4px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; font-size: 13px; }
.mk-fields dt { color: var(--text-faint); font-weight: 500; }
.mk-fields dd { margin: 0; color: var(--text-muted); overflow-wrap: anywhere; }
.mk-fields .mk-subj { color: var(--text); font-weight: 600; }
.mk-mail .comm-msg-text { padding: 12px 18px 20px; border-top: 1px solid var(--border); margin-top: 8px; }
.mk-mast { margin: 0; padding: 12px 20px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: linear-gradient(100deg, var(--navy), #1B3C9C); }
.mk-news h4 { margin: 16px 20px 0; padding-bottom: 10px; font-family: 'Sora', sans-serif; font-size: 17px; border-bottom: 2px solid var(--accent); }
.mk-news .comm-msg-text { padding: 14px 20px 22px; }
.mk-post .mk-bar { padding: 16px 18px 6px; }
.mk-post .comm-msg-text { padding: 6px 18px 16px; }
.mk-acts { display: flex; justify-content: space-around; padding: 10px 12px; border-top: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text-muted); }

/* ---------- Buttons shared by link, QR and messages ---------- */
.comm-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 100px; border: 1px solid transparent; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: transform .2s, background .2s, color .2s, box-shadow .2s; }
.comm-btn:disabled { opacity: .5; cursor: default; }
.comm-btn:not(:disabled):hover { transform: translateY(-2px); }
.comm-btn-solid { background: var(--accent); color: var(--on-accent); box-shadow: 0 12px 24px -14px var(--accent); }
.comm-btn-solid:not(:disabled):hover { background: var(--accent-dark); }
.comm-btn .ic-ok { display: none; }
.comm-btn.is-done, .comm-btn.is-done:not(:disabled):hover { background: #047857; color: #fff; box-shadow: 0 0 0 5px rgba(4, 120, 87, .22); }
.comm-btn.is-fail { background: var(--comm-err); color: #fff; }
.comm-btn.is-done .ic-copy { display: none; }
.comm-btn.is-done .ic-ok { display: inline-block; animation: comm-pop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes comm-pop { from { transform: scale(.2) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }
.comm-btn-light { background: #fff; color: #0A1228; }
.comm-btn-dark { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .35); }
.comm-btn-dark:not(:disabled):hover { background: rgba(255, 255, 255, .18); }

/* ---------- Link + QR ---------- */
.comm-lk-sec { background: var(--bg-soft); }
.comm-lk { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); border-radius: 30px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.comm-lk-form { padding: clamp(24px, 3.4vw, 36px); display: flex; flex-direction: column; justify-content: center; gap: 18px; min-width: 0; }
.comm-lk-qr { position: relative; isolation: isolate; padding: clamp(24px, 3.4vw, 34px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: #fff; background: radial-gradient(100% 100% at 50% 0%, #1B3A86 0%, var(--navy-2) 45%, var(--navy) 100%); min-width: 0; }
.comm-lk-qr::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-radial-gradient(circle at 50% 38%, transparent 0 46px, rgba(157, 184, 255, .1) 46px 47px); }
.comm-qr-frame { position: relative; width: min(100%, 216px); padding: 16px; transition: transform .4s; }
.comm-qr-frame i { position: absolute; width: 28px; height: 28px; border: 0 solid var(--sky); transition: border-color .3s, transform .4s; }
.comm-qr-frame .c1 { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 10px; }
.comm-qr-frame .c2 { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 10px; }
.comm-qr-frame .c3 { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 10px; }
.comm-qr-frame .c4 { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 10px; }
.comm-qr-frame.is-ok i { border-color: #5CC98A; }
.comm-qr-frame.is-ok { transform: scale(1.03); }
.comm-qr-box { position: relative; width: 100%; aspect-ratio: 1; background: #fff; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #333; font-size: 13px; box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .7); }
.comm-qr-box svg { width: 100%; height: 100%; display: block; }
.comm-qr-box.is-tick { animation: comm-tick .5s ease; }
@keyframes comm-tick { from { opacity: .3; transform: scale(.97); } to { opacity: 1; transform: none; } }
.comm-qr-box::after { content: ""; position: absolute; left: 0; right: 0; height: 36px; top: -36px; background: linear-gradient(180deg, transparent, rgba(47, 98, 232, .22)); border-bottom: 2px solid rgba(47, 98, 232, .6); animation: comm-scan 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes comm-scan { 0% { top: -36px; opacity: 0; } 15% { opacity: 1; } 70% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.comm-qr-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; }
.comm-qr-actions .comm-btn { flex: 1 1 100%; }
.comm-qr-note { margin: 0; max-width: 340px; text-align: center; font-size: 12.5px; line-height: 1.6; color: rgba(255, 255, 255, .72); }
.comm-note { margin: 0; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.6; color: var(--text-muted); }
.comm-note .i { width: 18px; height: 18px; margin-top: 2px; color: var(--comm-ok); }

/* ---------- Form controls ---------- */
.comm-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; border: 0; padding: 0; margin: 0; }
.comm-field label, .comm-field legend { font-size: 13px; font-weight: 600; color: var(--text); padding: 0; }
.comm-field label small, .comm-field legend small { font-weight: 400; color: var(--text-faint); }
.comm-field input[type="text"], .comm-field input:not([type]), .comm-field input[type="email"], .comm-field select, .comm-field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; font: inherit; font-size: 15px; color: var(--text); background: var(--bg); min-width: 0; transition: border-color .2s, box-shadow .2s; }
.comm-field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: var(--bg) var(--chev) no-repeat right 14px center / 16px; text-overflow: ellipsis; }
.comm-field textarea { resize: vertical; min-height: 76px; line-height: 1.6; }
.comm-field input:focus, .comm-field select:focus, .comm-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.comm-field .is-invalid { border-color: #E5484D; background-color: var(--comm-err-bg); }
.comm-help { font-size: 12.5px; color: var(--text-faint); line-height: 1.5; font-weight: 400; }
.comm-count { align-self: flex-end; font-family: 'IBM Plex Mono', monospace; }
.comm-copyrow { display: flex; gap: 8px; align-items: stretch; }
.comm-copyrow input { flex: 1; font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; }
.comm-copyrow .comm-btn { min-width: 132px; border-radius: 12px; }

/* ---------- Ambassadors band ---------- */
.comm-amb { position: relative; isolation: isolate; overflow: hidden; padding: var(--sec-y) 0; color: #fff; background: linear-gradient(170deg, #0F1D45 0%, var(--navy) 55%, #070C1B 100%); }
.comm-amb-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.comm-amb-bg svg { position: absolute; left: -12%; top: -8%; width: 70%; max-width: 900px; color: rgba(157, 184, 255, .12); animation: comm-spin 140s linear infinite; }
.comm-amb .comm-eyebrow { color: var(--sky); }
.comm-amb .comm-sec-head p:not(.comm-eyebrow) { color: rgba(255, 255, 255, .8); }
.comm-perks { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.comm-perks li { position: relative; display: block; padding: 14px 16px 14px 74px; min-height: 76px; border-radius: 18px; font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, .8); background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .14); transition: transform .3s, border-color .3s; }
.comm-perks li:hover { transform: translateX(4px); border-color: rgba(157, 184, 255, .55); }
.comm-perks strong { display: block; margin-bottom: 2px; font-family: 'Sora', sans-serif; font-size: 15px; line-height: 1.3; letter-spacing: -.01em; color: #fff; }
.comm-perk-ic { position: absolute; left: 16px; top: 16px; width: 42px; height: 42px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(145deg, #4A78F2, #2252CC); box-shadow: 0 14px 24px -12px rgba(47, 98, 232, .9); }
.comm-perk-ic .i { width: 21px; height: 21px; }
.comm-amb-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
.comm-amb-info h3 { margin: 0 0 14px; font-family: 'Sora', sans-serif; font-size: 18px; letter-spacing: -.01em; }
.comm-amb-info h3:not(:first-child) { margin-top: 26px; }
.comm-steps { list-style: none; margin: 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: 18px; counter-reset: s; }
.comm-steps::before { content: ""; position: absolute; left: 17px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(180deg, var(--sky), rgba(157, 184, 255, .15)); }
.comm-steps li { position: relative; display: flex; align-items: flex-start; gap: 16px; font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, .86); }
.comm-steps b { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 14px; color: #fff; background: #2252CC; box-shadow: 0 0 0 5px #0B1635; }
.comm-steps li span { padding-top: 6px; }
.comm-amb-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 56px); align-items: start; margin-top: 30px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .14); }
.comm-amb-foot h3 { margin: 0 0 12px; font-family: 'Sora', sans-serif; font-size: 18px; letter-spacing: -.01em; }
.comm-honest { margin-top: 0; display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 18px; background: rgba(92, 201, 138, .1); border: 1px solid rgba(92, 201, 138, .35); }
.comm-honest .i { width: 22px; height: 22px; margin-top: 2px; color: #5CC98A; }
.comm-honest p { margin: 0; font-size: 14px; line-height: 1.65; color: rgba(255, 255, 255, .86); }
.comm-honest strong { color: #fff; }
.comm-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .8); }
.comm-rules li { display: flex; gap: 10px; align-items: flex-start; }
.comm-rules .i { width: 18px; height: 18px; margin-top: 2px; color: var(--sky); }
.comm-form-card { color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: clamp(20px, 3vw, 30px); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .75); min-width: 0; }
.comm-form { display: flex; flex-direction: column; gap: 13px; }
.comm-form[hidden], .comm-sent[hidden] { display: none; }
.comm-form-title { margin: 0 0 2px; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.comm-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.comm-checks.is-invalid .comm-toggle span { border-color: #E5484D; }
.comm-toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.comm-toggle { position: relative; display: inline-flex; }
.comm-toggle input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.comm-toggle span { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 100px; border: 1px solid var(--border); background: var(--bg); color: var(--text-muted); font-size: 14px; font-weight: 500; transition: background .2s, border-color .2s, color .2s, transform .15s; }
.comm-toggle span::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; border: 1.5px solid var(--text-faint); background: transparent center / 12px no-repeat; transition: background-color .2s, border-color .2s; }
.comm-toggle:hover span { border-color: var(--accent); color: var(--text); }
.comm-toggle input:checked + span { background: color-mix(in srgb, var(--accent) 12%, var(--bg)); border-color: var(--accent); color: var(--text); font-weight: 600; }
.comm-toggle input:checked + span::before { background-color: var(--accent); background-image: var(--tick); border-color: var(--accent); }
.comm-toggle input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.comm-toggle input:active + span { transform: scale(.97); }
.comm-check { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.55; color: var(--text-muted); cursor: pointer; }
.comm-check[hidden] { display: none; }
.comm-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.comm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.comm-error { margin: 0; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; font-weight: 500; color: var(--comm-err); background: var(--comm-err-bg); border: 1px solid var(--comm-err-bd); border-radius: 12px; padding: 12px 14px; animation: comm-fade .3s ease both; }
.comm-error .i { width: 18px; height: 18px; margin-top: 1px; }
.comm-error[hidden] { display: none; }
.comm-submit { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 0 28px; border: 0; border-radius: 100px; cursor: pointer; font: inherit; font-size: 15.5px; font-weight: 600; color: var(--on-accent); background: var(--accent); box-shadow: 0 16px 30px -16px var(--accent); transition: transform .2s, background .2s; }
.comm-submit:not(:disabled):hover { transform: translateY(-2px); background: var(--accent-dark); }
.comm-submit:not(:disabled):hover .i { transform: translateX(3px) rotate(-6deg); }
.comm-submit .i { transition: transform .2s; }
.comm-submit:disabled { opacity: .65; cursor: default; }
.comm-sent { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; padding: 8px 0; }
.comm-sent-art { width: 200px; max-width: 100%; color: var(--accent); }
.comm-sent-art .art-disc { fill: var(--comm-ok); animation: comm-pop .6s cubic-bezier(.3, 1.6, .5, 1) both; transform-origin: 80px 64px; }
.comm-sent h3 { margin: 0; font-family: 'Sora', sans-serif; font-size: 26px; letter-spacing: -.02em; }
.comm-sent p { margin: 0; max-width: 440px; color: var(--text-muted); line-height: 1.7; font-size: 15px; }

/* ---------- FAQ ---------- */
.comm-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; align-items: start; }
.comm-faq details { border: 1px solid var(--border); border-radius: 18px; background: var(--surface); transition: border-color .25s, box-shadow .25s; }
.comm-faq details[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: var(--shadow-md); }
.comm-faq summary { position: relative; cursor: pointer; min-height: 56px; display: flex; align-items: center; padding: 14px 64px 14px 22px; font-weight: 600; font-size: 15.5px; line-height: 1.4; list-style: none; border-radius: 18px; }
.comm-faq summary::-webkit-details-marker { display: none; }
.comm-faq summary::before, .comm-faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 14px; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--accent); transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.comm-faq summary::after { transform: rotate(90deg); }
.comm-faq details[open] summary::after { transform: rotate(0deg); }
.comm-faq details[open] summary::before { transform: rotate(180deg); }
.comm-faq details > p { margin: 0; padding: 0 22px 20px; font-size: 14.5px; line-height: 1.7; color: var(--text-muted); animation: comm-fade .35s ease both; }
.comm-faq summary:hover { color: var(--accent); }

/* ---------- Press / partner ---------- */
.comm-press { padding: clamp(28px, 4vw, 40px) 0; background: var(--bg-soft); border-top: 1px solid var(--border); }
.comm-press-in { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.comm-press-in > div { flex: 1 1 420px; max-width: 760px; }
.comm-press h2 { font-size: clamp(21px, 2.6vw, 26px); margin-bottom: 8px; }
.comm-press p { font-size: 15px; }
.comm-press .comm-btn-main { background: var(--accent); color: var(--on-accent); box-shadow: 0 14px 28px -14px var(--accent); }
.comm-press .comm-btn-main:hover { color: var(--on-accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .comm-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comm-msg { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "mock" "foot"; }
  .comm-msg-foot { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; align-self: stretch; }
  .comm-msg-meter { flex: 1 1 200px; }
}
@media (max-width: 980px) {
  .comm-sec-head { grid-template-columns: minmax(0, 1fr); }
  .comm-sec-head p:not(.comm-eyebrow) { max-width: 620px; margin-top: 10px; }
  .comm-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .comm-stage { height: clamp(300px, 62vw, 440px); max-width: 560px; width: 100%; margin: 0 auto; }
  .comm-radar, .comm-sweep { right: -30%; top: 62%; }
  .comm-docs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sp-12, .sp-7, .sp-5 { grid-column: span 6; }
  .sp-3, .sp-4, .sp-6 { grid-column: span 3; }
  .comm-doc.is-xl, .comm-doc.is-tall { grid-row: auto; }
  .comm-doc.is-xl .comm-doc-stage { min-height: 300px; }
  .comm-lk, .comm-amb-grid, .comm-amb-foot { grid-template-columns: minmax(0, 1fr); }
  .comm-msgs { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .comm-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; scroll-snap-type: x proximity; }
  .comm-tabs::-webkit-scrollbar { display: none; }
  .comm-tab { flex: none; scroll-snap-align: start; min-height: 46px; border-color: var(--border); background: var(--surface); }
  .comm-faq { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .comm-flow { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .comm-flow::before { left: 31px; right: auto; top: 30px; bottom: 30px; height: auto; border-top: 0; border-left: 2px dashed color-mix(in srgb, var(--accent) 45%, transparent); }
  .comm-flow li { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 18px; row-gap: 2px; align-items: start; }
  .comm-flow-node { grid-row: span 2; }
  .comm-flow strong { margin-top: 4px; }
  .comm-subnav a { padding: 0 14px; }
  .comm-row { grid-template-columns: minmax(0, 1fr); }
  .comm-copyrow { flex-direction: column; }
  .comm-copyrow .comm-btn { width: 100%; }
  .comm-mock-wrap { margin: 0 -4px; }
  .comm-float { font-size: 11.5px; padding: 7px 11px; }
}
@media (max-width: 620px) {
  .comm-docs { grid-template-columns: minmax(0, 1fr); }
  .sp-12, .sp-7, .sp-5, .sp-3, .sp-4, .sp-6 { grid-column: auto; }
  .comm-doc.is-m { flex-direction: column; }
  .comm-doc.is-m .comm-doc-stage { width: auto; min-height: 220px; }
  .comm-doc.is-xl .comm-doc-stage { min-height: 250px; }
  .comm-doc.is-xl .comm-dl { min-width: 0; align-self: stretch; justify-content: center; }
  .comm-doc.is-xl h3 { font-size: 22px; }
  .comm-doc-body, .comm-doc.is-xl .comm-doc-body { padding: 20px; }
  .comm-perks { grid-template-columns: minmax(0, 1fr); }
  .comm-seg { align-self: stretch; }
  .comm-seg button { flex: 1 1 auto; padding: 0 10px; }
  .comm-filters { display: flex; width: 100%; }
  .comm-chip { flex: 1 1 auto; justify-content: center; padding: 0 12px; }
  .comm-btn-main, .comm-btn-ghost { flex: 1 1 100%; }
  .comm-sheet { max-width: 56%; }
  .comm-msg-stage { padding: 14px; border-radius: 22px; }
  .comm-msg-foot .comm-btn { width: 100%; }
}
@media (max-width: 420px) {
  .comm-chip .i { display: none; }
  .comm-chip { padding: 0 8px; }
  .comm-form-card { padding: 20px 16px; border-radius: 22px; }
  .comm-lk { border-radius: 24px; }
  .comm-faq summary { padding-right: 56px; padding-left: 16px; }
  .comm-faq details > p { padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .comm *, .comm *::before, .comm *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .comm-mock { transform: rotate(var(--r)) !important; }
  .comm-float { transform: none !important; }
  .comm-doc:hover, .comm-perks li:hover, .comm-btn:not(:disabled):hover, .comm-dl:hover { transform: none; }
  .comm-radar-ping, .comm-qr-box::after { display: none; }
}
.comm-linkbar a { display: inline-flex; align-items: center; min-height: 44px; }

/* Homepage shop card (.shop-stage) and quiz: dark theme. */
html[data-theme="dark"] .shop-stage { background: radial-gradient(70% 90% at 78% 50%, #1F2C4D 0%, #151D2E 45%, #121820 100%); border-color: #2A323D; }
html[data-theme="dark"] .shop-stage::before { background-image: linear-gradient(rgba(126,160,255,0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(126,160,255,0.09) 1px, transparent 1px); }
html[data-theme="dark"] .shop-stage h2 span { background: linear-gradient(120deg, #8FAEFF 0%, #C2D3FF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="dark"] .shop-stage-points li { background: rgba(255,255,255,0.06); border-color: #2A323D; }
html[data-theme="dark"] .shop-stage-cta .btn-primary { color: #0E1217; box-shadow: 0 14px 30px -12px rgba(126,160,255,0.45); }
html[data-theme="dark"] .shop-home-new { color: #0E1217; }
html[data-theme="dark"] .shop-fan-glow { background: radial-gradient(closest-side, rgba(126,160,255,0.28), rgba(126,160,255,0)); }
html[data-theme="dark"] .shop-fan img { filter: drop-shadow(0 24px 30px rgba(0,0,0,0.55)); }
html[data-theme="dark"] .shop-fan-hint { border-color: rgba(126,160,255,0.35); box-shadow: 0 8px 20px -10px rgba(0,0,0,0.6); }
html[data-theme="dark"] .shop-fan:hover .shop-fan-hint { color: #0E1217; }
html[data-theme="dark"] .shop-quiz-badge { background: #2A323D; color: #E9ECF1; }
html[data-theme="dark"] .shop-quiz-choices button.is-right { background: #12301f; border-color: #1f8f5f; }
html[data-theme="dark"] .shop-quiz-choices button.is-wrong { background: #3a1613; border-color: #b8484d; }
html[data-theme="dark"] .shop-quiz-result.ok { background: #12301f; border-color: #1f5a37; }
html[data-theme="dark"] .shop-quiz-result.ko { background: #3a2c0b; border-color: #6b5214; }
@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] .shop-stage { background: radial-gradient(70% 90% at 78% 50%, #1F2C4D 0%, #151D2E 45%, #121820 100%); border-color: #2A323D; }
  html[data-theme="auto"] .shop-stage::before { background-image: linear-gradient(rgba(126,160,255,0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(126,160,255,0.09) 1px, transparent 1px); }
  html[data-theme="auto"] .shop-stage h2 span { background: linear-gradient(120deg, #8FAEFF 0%, #C2D3FF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
  html[data-theme="auto"] .shop-stage-points li { background: rgba(255,255,255,0.06); border-color: #2A323D; }
  html[data-theme="auto"] .shop-stage-cta .btn-primary { color: #0E1217; box-shadow: 0 14px 30px -12px rgba(126,160,255,0.45); }
  html[data-theme="auto"] .shop-home-new { color: #0E1217; }
  html[data-theme="auto"] .shop-fan-glow { background: radial-gradient(closest-side, rgba(126,160,255,0.28), rgba(126,160,255,0)); }
  html[data-theme="auto"] .shop-fan img { filter: drop-shadow(0 24px 30px rgba(0,0,0,0.55)); }
  html[data-theme="auto"] .shop-fan-hint { border-color: rgba(126,160,255,0.35); box-shadow: 0 8px 20px -10px rgba(0,0,0,0.6); }
  html[data-theme="auto"] .shop-fan:hover .shop-fan-hint { color: #0E1217; }
  html[data-theme="auto"] .shop-quiz-badge { background: #2A323D; color: #E9ECF1; }
  html[data-theme="auto"] .shop-quiz-choices button.is-right { background: #12301f; border-color: #1f8f5f; }
  html[data-theme="auto"] .shop-quiz-choices button.is-wrong { background: #3a1613; border-color: #b8484d; }
  html[data-theme="auto"] .shop-quiz-result.ok { background: #12301f; border-color: #1f5a37; }
  html[data-theme="auto"] .shop-quiz-result.ko { background: #3a2c0b; border-color: #6b5214; }
}

/* Aether Debrief project page (/academy/debrief/aether-debrief/) */
.adb-hero { position: relative; overflow: hidden; color: #F5F6F7; padding: 72px var(--gutter) 80px; background: #0C1830 url("/assets/aether-debrief/pcb-bg.svg") center / cover no-repeat; }
.adb-hero-grid { position: relative; max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,0.95fr); gap: 48px; align-items: center; }
.adb-hero h1 { margin: 18px 0 0; font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(40px, 7vw, 64px); letter-spacing: -0.02em; line-height: 1.04; }
.adb-hero h1 span { color: #8FB4FF; }
.adb-hero .tagline { margin: 18px 0 0; font-size: 17.5px; line-height: 1.65; color: #D5DDF0; max-width: 540px; }
.adb-hero-note { margin: 14px 0 22px; font-size: 14.5px; line-height: 1.65; color: #B3BFDB; max-width: 540px; }
.adb-hero-note strong { color: #fff; font-weight: 600; }
.adb-hero .link { color: #BFD0FF; }
.adb-alpha-badge { display: inline-flex; align-items: center; gap: 9px; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #FFE2A8; background: rgba(255,190,70,0.12); border: 1px solid rgba(255,190,70,0.4); padding: 7px 14px; border-radius: 100px; }
.adb-alpha-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #FFB93E; box-shadow: 0 0 0 3px rgba(255,185,62,0.22); }
.adb-hero-art img { display: block; width: 100%; height: auto; border-radius: 20px; }

.adb-alpha { background: #FFF6E2; border-top: 1px solid #F0D9A4; border-bottom: 1px solid #F0D9A4; padding: 26px 0; color: #4B3A10; }
.adb-alpha-inner { display: flex; gap: 16px; align-items: flex-start; }
.adb-alpha-ic { flex: none; width: 34px; height: 34px; color: #9A6A00; }
.adb-alpha-ic svg { width: 100%; height: 100%; }
.adb-alpha strong { font-family: 'Sora', sans-serif; font-size: 16px; color: #3A2B05; }
.adb-alpha p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.7; max-width: 820px; }

.adb-steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 40px; }
.adb-step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.adb-step-n { position: absolute; top: 18px; right: 20px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--text-faint); }
.adb-step-ic, .adb-card-ic { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(34,82,204,0.08); color: var(--accent); }
.adb-step-ic svg, .adb-card-ic svg { width: 24px; height: 24px; }
.adb-step strong, .adb-card strong { font-family: 'Sora', sans-serif; font-size: 17px; margin-top: 6px; }
.adb-step p, .adb-card p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--text-muted); }

.adb-photo-band { position: relative; overflow: hidden; background: #0C1830; color: #fff; padding: 72px 0; }
.adb-photo-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.adb-photo-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,16,34,0.9) 0%, rgba(8,16,34,0.55) 60%, rgba(8,16,34,0.25) 100%); }
.adb-photo-grid { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 48px; align-items: center; }
.adb-photo-band .kicker { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #BFD0FF; }
.adb-photo-band h2 { margin: 10px 0 0; font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.01em; }
.adb-photo-band p { margin: 14px 0 0; font-size: 15.5px; line-height: 1.7; color: rgba(255,255,255,0.85); max-width: 520px; }
.adb-case { margin: 0; }
.adb-case img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid rgba(143,180,255,0.35); box-shadow: 0 24px 50px -24px rgba(0,0,0,0.7); }
.adb-case figcaption { margin-top: 10px; font-size: 12.5px; color: #B3BFDB; }

.adb-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 40px; }
.adb-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }

.adb-board-band { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 88px 0; }
.adb-board-inner { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr); gap: 48px; align-items: center; }
.adb-board-inner h2 { margin: 14px 0 0; font-family: 'Sora', sans-serif; font-weight: 600; font-size: clamp(24px, 4vw, 32px); letter-spacing: -0.01em; }
.adb-board-inner > div > p { margin: 16px 0 0; font-size: 15px; line-height: 1.7; color: var(--text-muted); }
.adb-ticks { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.adb-ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.6; }
.adb-ticks svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: #1E7A45; }
.adb-trace-card { border-radius: 18px; padding: 22px; color: #F5F6F7; background: radial-gradient(120% 110% at 85% 0%, #16284D 0%, #0C1830 55%, #091223 100%); border: 1px solid #1E3155; box-shadow: 0 24px 50px -28px rgba(10,20,50,0.6); }
.adb-trace-tag { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #8FB4FF; }
.adb-trace-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid rgba(143,180,255,0.18); }
.adb-trace-row .dot { flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; }
.adb-trace-row .dot.ok { background: #3DBA78; box-shadow: 0 0 0 3px rgba(61,186,120,0.2); }
.adb-trace-row .dot.warn { background: #FFB93E; box-shadow: 0 0 0 3px rgba(255,185,62,0.2); }
.adb-trace-row strong { font-family: 'Sora', sans-serif; font-size: 15px; }
.adb-trace-row p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.55; color: #B3BFDB; }
.adb-trace-foot { margin: 14px 0 0; font-size: 12px; color: #8D9BBE; }

.adb-roadmap-band { padding: 88px 0; }
.adb-roadmap { list-style: none; margin: 44px auto 0; padding: 0; max-width: 760px; position: relative; }
.adb-roadmap::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.adb-roadmap li { position: relative; padding: 0 0 28px 44px; }
.adb-roadmap li:last-child { padding-bottom: 0; }
.adb-rm-dot { position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 2px solid var(--border); }
.adb-roadmap li.done .adb-rm-dot { background: #1E7A45; border-color: #1E7A45; }
.adb-roadmap li.now .adb-rm-dot { border-color: #FFB93E; background: #FFB93E; box-shadow: 0 0 0 5px rgba(255,185,62,0.22); }
.adb-roadmap strong { font-family: 'Sora', sans-serif; font-size: 17px; }
.adb-roadmap li.now strong::after { content: "En cours"; margin-left: 10px; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #8A5A00; background: #FFF0CC; padding: 3px 9px; border-radius: 100px; vertical-align: 2px; }
.adb-roadmap p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.65; color: var(--text-muted); }
.adb-option { max-width: 760px; margin: 40px auto 0; padding: 18px 22px; border: 1px dashed var(--border); border-radius: 14px; background: var(--surface); }
.adb-option strong { font-family: 'Sora', sans-serif; font-size: 15.5px; }
.adb-option p { margin: 6px 0 0; font-size: 14px; line-height: 1.65; color: var(--text-muted); }

.adb-follow { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.adb-follow > div:first-child { flex: 1; min-width: 280px; max-width: 680px; }
.adb-follow h2 { margin: 14px 0 0; font-family: 'Sora', sans-serif; font-weight: 600; font-size: clamp(24px, 4vw, 32px); letter-spacing: -0.01em; }
.adb-follow p { margin: 14px 0 0; font-size: 15px; line-height: 1.7; color: var(--text-muted); }
.adb-follow-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* teaser on /academy/debrief/ */
.adb-teaser { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr); gap: 0; border-radius: 20px; overflow: hidden; color: #F5F6F7; background: #0C1830 url("/assets/aether-debrief/pcb-bg.svg") center / cover no-repeat; border: 1px solid #1E3155; }
.adb-teaser-copy { padding: 36px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.adb-teaser-copy h2 { margin: 0; font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(24px, 4vw, 32px); letter-spacing: -0.01em; }
.adb-teaser-copy p { margin: 0; font-size: 15px; line-height: 1.7; color: #D5DDF0; max-width: 520px; }
.adb-teaser-copy .btn-primary { margin-top: 8px; }
.adb-teaser-art { display: flex; align-items: center; justify-content: center; padding: 24px; }
.adb-teaser-art img { display: block; width: 100%; max-width: 420px; height: auto; border-radius: 14px; }

@media (max-width: 860px) {
  .adb-hero { padding: 48px var(--gutter) 56px; }
  .adb-hero-grid, .adb-photo-grid, .adb-board-inner, .adb-teaser { grid-template-columns: 1fr; gap: 32px; }
  .adb-steps, .adb-cards { grid-template-columns: 1fr; }
  .adb-photo-band::after { background: linear-gradient(180deg, rgba(8,16,34,0.85), rgba(8,16,34,0.6)); }
  .adb-teaser-copy { padding: 26px 22px 6px; }
  .adb-teaser-art { padding: 8px 22px 26px; }
}

/* wikiAE promo card on the application pages (links to /wikiae/) */
.wk-promo-wrap { padding-top: 8px; padding-bottom: 56px; }
.wk-promo { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 38px; border-radius: 18px; overflow: hidden; color: #fff; background: radial-gradient(ellipse 70% 120% at 100% 0%, #16294f, transparent 60%), linear-gradient(135deg, #0C1830, #0A1428 55%, #091223); border: 1px solid #1E3155; transition: transform .2s, border-color .2s, box-shadow .2s; }
.wk-promo::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(160, 190, 255, .3) 1px, transparent 1.4px); background-size: 30px 30px; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%); mask-image: linear-gradient(90deg, transparent 30%, #000 100%); opacity: .6; pointer-events: none; }
.wk-promo:hover { transform: translateY(-3px); border-color: #A0BEFF; box-shadow: 0 22px 50px -28px rgba(10, 20, 40, .8); color: #fff; }
.wk-promo-copy { position: relative; max-width: 560px; }
.wk-promo-tag { display: inline-block; margin-bottom: 12px; padding: 3px 11px; border: 1px solid rgba(160, 190, 255, .4); border-radius: 100px; font: 600 11px 'IBM Plex Mono', monospace; letter-spacing: .04em; color: #A0BEFF; }
.wk-promo h2 { margin: 0 0 8px; font: 700 clamp(24px, 3.4vw, 34px)/1.12 'Sora', sans-serif; letter-spacing: -.01em; color: #fff; }
.wk-promo p { margin: 0 0 18px; color: rgba(255, 255, 255, .72); font-size: 15.5px; line-height: 1.6; }
.wk-promo-cta { font-weight: 600; font-size: 15px; color: #fff; }
.wk-promo-art { position: relative; flex: none; }
.wk-promo-art img { border-radius: 18px; border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .7); }
@media (max-width: 640px) { .wk-promo { padding: 26px 22px; flex-direction: column-reverse; align-items: flex-start; } }

/* App pages: intro, free / premium comparison, who + FAQ */
.app-intro { padding-bottom: 56px; }
.app-intro .section-head { max-width: 720px; }
.app-intro .section-head p { font-size: 15.5px; }
.app-detail-head { max-width: 720px; }
.app-detail-head + .detail-grid { margin-top: 28px; }
.app-plans { padding-bottom: 72px; }
.plans-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.plan-card { border: 1px solid var(--border); border-radius: 14px; padding: 26px 28px; background: var(--surface); }
.plan-card.is-premium { border-color: var(--accent); background: linear-gradient(180deg, rgba(34,82,204,0.05), transparent 70%), var(--surface); }
.plan-label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.plan-card.is-premium .plan-label { color: var(--accent); }
.plan-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 11px; }
.plan-list li { position: relative; padding-left: 24px; font-size: 14px; line-height: 1.55; color: var(--text-muted); }
.plan-list li::before { content: ''; position: absolute; left: 2px; top: 5px; width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.pilote-encadre { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 720px; margin: 28px auto 0; padding: 20px 22px; border-radius: 14px; border: 1px solid var(--border); border-left: 3px solid var(--accent); background: var(--bg-soft); text-align: left; }
.pilote-encadre-k { font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.pilote-encadre p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.pilote-encadre p strong { color: var(--text); }
.pilote-encadre .pilote-encadre-s { font-size: 13px; }
.pilote-encadre a { font-size: 13.5px; font-weight: 600; }
.premium-band .pilote-encadre { background: var(--pb-elev); border-color: var(--pb-border); border-left-color: #7EA0FF; }
.premium-band .pilote-encadre-k, .premium-band .pilote-encadre a { color: #A9C0FF; }
.premium-band .pilote-encadre p { color: var(--pb-muted); }
.premium-band .pilote-encadre p strong { color: #fff; }
.plan-foot { margin: 18px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--text-faint); }
.app-faq { padding-bottom: 88px; }
.app-who { border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; margin-bottom: 52px; max-width: 720px; }
.app-who-label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.app-who p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.65; }
.app-faq-list { margin-top: 24px; max-width: 760px; }
.app-faq-list .faq-item h3 { margin: 0 0 8px; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 16px; }
.app-faq-list .faq-item p { font-size: 14.5px; line-height: 1.65; color: var(--text-muted); }
.app-note { margin: 32px 0 0; max-width: 760px; font-size: 13px; line-height: 1.6; color: var(--text-faint); }
.app-note strong { color: var(--text-muted); }
.premium-grid.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.premium-grid.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 900px) { .premium-grid.cols-3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 700px) { .plans-grid { grid-template-columns: 1fr; } .app-intro { padding-bottom: 40px; } }
@media (max-width: 560px) { .premium-grid.cols-3, .premium-grid.cols-2 { grid-template-columns: 1fr; } .plan-card { padding: 22px 20px; } }
.port-grid > .tech-card:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* News articles: application card with its advertising visual */
.news-apps { display: grid; gap: 20px; margin: 40px 0; }
.news-app { display: grid; grid-template-columns: 200px minmax(0,1fr); gap: 28px; align-items: center; border: 1px solid var(--border); border-radius: 18px; padding: 16px; background: var(--surface); }
.news-app-img { display: block; border-radius: 12px; overflow: hidden; }
.news-app-img img { display: block; width: 100%; height: auto; }
.news-app-tag { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.news-app h3 { margin: 8px 0 0; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.news-app p { margin: 10px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--text-muted); }
.news-app-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 16px; }
.news-app-links a:not(.btn-primary) { font-weight: 600; font-size: 14px; }
@media (max-width: 560px) { .news-app { grid-template-columns: 1fr; padding: 12px; } .news-app-img { max-width: 260px; } .news-app-body { padding: 4px 6px 8px; } }

/* Screenshots: a wrapping mosaic, every image shown whole (no crop, no scroll) */
.screens-track { justify-content: center; flex-wrap: wrap; overflow-x: visible; align-items: center; gap: 20px; max-width: 1160px; margin: 0 auto; scroll-snap-type: none; }
.screen-frame { --screen-h: 440px; box-shadow: 0 18px 44px rgba(14,22,48,0.12); }
@media (max-width: 700px) {
  .screens-track { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; gap: 12px; scroll-snap-type: x proximity; }
  .screen-frame { --screen-h: 380px; border-radius: 18px; }
}

/* News articles: two-column layout with a sticky portrait visual (app articles) */
.news-split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; align-items: start; max-width: 1140px; }
.news-split .news-article-head { max-width: none; margin: 0; padding: 48px 0 0; }
.news-split .article.news-prose { max-width: none; margin: 0; padding: 36px 0 0; }
.news-split-side { position: sticky; top: 96px; padding-top: 56px; }
.news-side-figure { margin: 0; }
.news-side-figure img { display: block; width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--border); box-shadow: 0 28px 70px rgba(14,22,48,0.2); }
.news-side-figure figcaption { margin-top: 12px; font-size: 12.5px; color: var(--text-faint); }
.news-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 40px 0 0; padding: 20px 22px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-soft); }
.news-cta strong { display: block; font-family: 'Sora', sans-serif; font-size: 17px; }
.news-cta span { font-size: 13.5px; color: var(--text-muted); }
.news-cta-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.news-cta-links a:not(.btn-primary) { font-weight: 600; font-size: 14px; }
@media (max-width: 960px) {
  .news-split { grid-template-columns: 1fr; gap: 8px; }
  .news-split-side { position: static; order: -1; padding-top: 28px; max-width: 340px; }
  .news-split-main { order: 2; }
  .news-split .news-article-head { padding-top: 24px; }
}
.article.news-prose p, .article.news-prose li { color: #2f3441; } .article.news-prose .callout p { color: inherit; }

/* Home: scroll motion (same grammar as wikiAE: sticky scene, reveal once, reduced-motion safe) */
[data-hm] { opacity: 1; transform: none; }
.hm-js [data-hm] { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.6,.2,1), transform .6s cubic-bezier(.2,.6,.2,1); transition-delay: calc(var(--hm-i, 0) * 70ms); }
.hm-js [data-hm].is-in { opacity: 1; transform: none; }
.hm-scene { position: relative; background: linear-gradient(180deg, #0B1224 0%, #101A33 100%); color: #F5F6F7; padding: 72px 0 64px; overflow: hidden; }
.hm-stick { display: block; }
.hm-head { max-width: 1160px; margin: 0 auto; }
.hm-tag { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #8FA9FF; }
.hm-head h2 { margin: 14px 0 0; font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(30px, 4.6vw, 52px); letter-spacing: -0.03em; line-height: 1.08; color: #fff; }
.hm-head p { margin: 14px 0 0; max-width: 560px; font-size: 16px; line-height: 1.6; color: rgba(245,246,247,.72); }
.hm-track { display: flex; gap: 22px; margin-top: 40px; padding: 4px var(--gutter) 18px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.hm-track::-webkit-scrollbar { height: 6px; } .hm-track::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 100px; }
.hm-card { flex: 0 0 272px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; color: inherit; text-decoration: none; }
.hm-card-img { display: block; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 24px 60px rgba(0,0,0,.4); transition: transform .5s cubic-bezier(.2,.6,.2,1); }
.hm-card-img img { display: block; width: 100%; height: auto; }
.hm-card:hover .hm-card-img { transform: translateY(-6px); }
.hm-card-cap { display: flex; align-items: center; gap: 12px; }
.hm-card-cap img { width: 32px; height: 32px; border-radius: 8px; background: #fff; }
.hm-card-cap strong { display: block; font-family: 'Sora', sans-serif; font-size: 15px; color: #fff; }
.hm-card-cap em { display: block; font-style: normal; font-size: 12.5px; color: rgba(245,246,247,.62); }
.hm-card-go { margin-left: auto; font-size: 18px; color: #8FA9FF; }
.hm-progress { display: none; }
/* Wide screens with JS: the track is pinned and driven by the scroll position */
.hm-js.hm-wide .hm-scene { height: var(--hm-h, 300vh); padding: 0; overflow: visible; }
.hm-js.hm-wide .hm-stick { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 64px 0 40px; box-sizing: border-box; }
.hm-js.hm-wide .hm-head { width: 100%; padding-left: var(--gutter); padding-right: var(--gutter); box-sizing: border-box; }
.hm-js.hm-wide .hm-track { overflow: visible; scroll-snap-type: none; padding: 0; margin-top: 32px; gap: 28px; will-change: transform; transform: translate3d(var(--hm-x, 0px), 0, 0); padding-left: max(var(--gutter), calc((100vw - 1160px) / 2 + var(--gutter))); padding-right: 24vw; }
.hm-js.hm-wide .hm-card { flex: 0 0 calc(min(46vh, 520px) * .8); }
.hm-js.hm-wide .hm-progress { display: block; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 22px; height: 2px; background: rgba(255,255,255,.14); border-radius: 2px; max-width: 1160px; margin: 0 auto; }
.hm-js.hm-wide .hm-progress span { display: block; height: 100%; width: 100%; background: #6E93FF; border-radius: 2px; transform-origin: left; transform: scaleX(var(--hm-p, 0)); }
@media (prefers-reduced-motion: reduce) {
  .hm-js [data-hm] { opacity: 1; transform: none; transition: none; }
  .hm-card-img, .hm-card:hover .hm-card-img { transition: none; transform: none; }
}
html[data-motion="reduce"] .hm-js [data-hm], html[data-motion="reduce"] [data-hm] { opacity: 1; transform: none; transition: none; }
.cookie-actions { display: flex; gap: 8px; flex: 0 0 auto; }
/* Trust badge (European flag), footer + cards: lib/trust.js */
.footer-legal { display: inline-flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; }
.footer-trust { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--text-muted, var(--text)); text-decoration: none; }
.footer-trust:hover { color: var(--accent); }
.footer-trust .eu-flag { flex: 0 0 auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); }
.footer-cookie-link { font-size: 12.5px; color: var(--text-faint); text-decoration: underline; text-underline-offset: 3px; }
.footer-cookie-link:hover { color: var(--accent); }
.trust-card { display: flex; align-items: center; gap: 18px; border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px; background: var(--bg-soft); margin: 24px 0; }
.trust-card .eu-flag { flex: 0 0 auto; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); }
.trust-card strong { display: block; font-family: 'Sora', sans-serif; font-size: 15px; color: var(--text); margin-bottom: 4px; }
.trust-card p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--text-muted, var(--text)); }
.trust-card a { color: var(--accent); font-weight: 600; white-space: nowrap; }
@media (max-width: 520px) { .trust-card { flex-direction: column; align-items: flex-start; } }
.sec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 18px 0 8px; }
.sec-grid > div { border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; background: var(--bg); }
.sec-grid h3 { font-size: 14.5px; margin: 0 0 6px; }
.sec-grid p { margin: 0; font-size: 13.5px; line-height: 1.55; }
.sec-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 14px 0; }
.sec-table th, .sec-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.sec-table th { font-family: 'IBM Plex Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); }
@media (max-width: 640px) { .sec-table { display: block; overflow-x: auto; } }

/* Main navigation v2: one set of links everywhere, Applications dropdown, active section */
.nav-back.is-active, .nav-dd.is-active > .nav-dd-btn { color: var(--text); font-weight: 600; }
.nav-back.is-active { box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 3px; }
.nav-dd { position: relative; }
.nav-dd-btn { display: inline-flex; align-items: center; gap: 5px; padding: 0; background: none; border: 0; cursor: pointer; font: 500 13px 'Work Sans', sans-serif; color: var(--text-muted); }
.nav-dd-btn:hover, .nav-dd.is-open > .nav-dd-btn { color: var(--text); }
.nav-dd-btn svg { transition: transform .2s ease; }
.nav-dd.is-open .nav-dd-btn svg { transform: rotate(180deg); }
.nav-dd.is-active > .nav-dd-btn { box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 3px; }
.nav-dd-panel { position: absolute; left: -16px; top: calc(100% + 14px); z-index: 900; min-width: 320px; padding: 8px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: 0 24px 60px rgba(14,22,48,.16); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.nav-dd::after { content: ''; position: absolute; left: -16px; right: -16px; top: 100%; height: 16px; }
.nav-dd.is-open .nav-dd-panel, .nav-dd:has(:focus-visible) .nav-dd-panel { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 901px) { .nav-dd:hover .nav-dd-panel { opacity: 1; visibility: visible; transform: none; } }
.nav-dd-panel a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text); }
.nav-dd-panel a:hover { background: var(--bg-soft); }
.nav-dd-panel img { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--border); background: #fff; flex: none; }
.nav-dd-panel strong { display: block; font: 600 14px 'Sora', sans-serif; }
.nav-dd-panel em { display: block; font-style: normal; font-size: 12.5px; color: var(--text-muted); }
.nav-dd-panel .nav-dd-all { margin-top: 4px; padding: 10px 12px; border-top: 1px solid var(--border); border-radius: 0 0 10px 10px; font-size: 13px; font-weight: 600; color: var(--accent); }
@media (max-width: 760px) {
  .nav-dd { width: 100%; }
  .nav-dd-btn { width: 100%; padding: 10px 0; justify-content: space-between; font-size: 15px; }
  .nav-dd-panel { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; border: 0; box-shadow: none; padding: 0 0 6px 6px; display: none; background: transparent; }
  .nav-dd.is-open .nav-dd-panel { display: block; }
  .nav-dd::after { display: none; }
  .nav-back.is-active { box-shadow: none; padding-bottom: 10px; color: var(--accent); }
}

/* Home: photo band with gentle parallax */
.hm-photos { padding: 88px var(--gutter); background: var(--bg-soft); overflow: hidden; }
.hm-photos-grid { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.25fr 1fr; grid-template-areas: "a copy" "b c"; gap: 20px; align-items: stretch; }
.hm-ph { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px rgba(14,22,48,.16); transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.hm-ph img { display: block; width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.hm-ph-a { grid-area: a; } .hm-ph-b { grid-area: b; } .hm-ph-c { grid-area: c; }
.hm-photos-copy { grid-area: copy; align-self: center; padding: 8px 8px 8px 24px; }
.hm-photos-copy .hm-tag { color: var(--accent); }
.hm-photos-copy h2 { margin: 12px 0 0; font: 700 clamp(26px, 3.4vw, 40px)/1.1 'Sora', sans-serif; letter-spacing: -.025em; }
.hm-photos-copy p { margin: 16px 0 22px; font-size: 16px; line-height: 1.65; color: var(--text-muted); max-width: 46ch; }
@media (max-width: 860px) {
  .hm-photos { padding: 56px var(--gutter); }
  .hm-photos-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "copy copy" "a a" "b c"; }
  .hm-photos-copy { padding: 0 0 8px; }
  .hm-ph img { min-height: 160px; }
}
@media (prefers-reduced-motion: reduce) { .hm-ph { transform: none; } }
html[data-motion="reduce"] .hm-ph { transform: none; }
/* About: wide photo under the hero */
.about-photo { max-width: 1160px; margin: 0 auto 72px; padding: 0 var(--gutter); }
.about-photo img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; object-position: center 35%; border-radius: 22px; }


/* /compte/ › Abonnement : carte « Remise abonnés iOS » (-30 % Academy) */
.app-discount { position: relative; margin-bottom: 18px; padding: 26px 28px; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.app-discount--on { color: #fff; border-color: #1E3155; background: radial-gradient(120% 140% at 100% 0%, #16284F 0%, rgba(22,40,79,0) 55%), linear-gradient(180deg, #0C1830 0%, #0A1428 55%, #091223 100%); box-shadow: 0 10px 30px rgba(9, 18, 35, 0.18); }
.app-discount-head { display: flex; align-items: center; gap: 16px; }
.app-discount-badge { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 76px; height: 76px; padding: 0 8px; border-radius: 50%; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--accent, #2252CC); background: rgba(34, 82, 204, 0.1); border: 1px solid rgba(34, 82, 204, 0.25); }
.app-discount--on .app-discount-badge { color: #fff; background: #2252CC; border-color: #4A78FF; box-shadow: 0 0 0 6px rgba(74, 120, 255, 0.18); }
.app-discount-kicker { display: block; font: 600 12px 'Work Sans', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted, #5B6371); }
.app-discount--on .app-discount-kicker { color: #8FB0FF; }
.app-discount h2 { margin: 4px 0 0; font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(20px, 3.4vw, 26px); letter-spacing: -0.02em; line-height: 1.2; color: inherit; }
.app-discount-body { margin: 16px 0 0; font-size: 15px; line-height: 1.6; }
.app-discount--on .app-discount-body { color: #E6ECFA; }
.app-discount-detail { margin: 8px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--text-muted, #5B6371); }
.app-discount--on .app-discount-detail { color: #B3BFDB; }
.app-discount-apps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.app-discount-apps li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-soft, #F7F8FA); }
.app-discount--on .app-discount-apps li { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); }
.app-discount-app { font: 600 14px 'Sora', sans-serif; }
.app-discount-state { font: 500 11px 'IBM Plex Mono', monospace; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 8px; border-radius: 100px; }
.app-discount-state.is-on { color: #1E7A45; background: rgba(30, 122, 69, 0.12); }
.app-discount--on .app-discount-state.is-on { color: #7BE0A8; background: rgba(61, 190, 122, 0.16); }
.app-discount-state.is-off, .app-discount-state.is-none { color: #5B6371; background: rgba(91, 99, 113, 0.12); }
.app-discount--on .app-discount-state.is-off, .app-discount--on .app-discount-state.is-none { color: #B3BFDB; background: rgba(255, 255, 255, 0.08); }
.app-discount-when { flex-basis: 100%; font: 400 11px 'IBM Plex Mono', monospace; color: var(--text-muted, #5B6371); }
.app-discount--on .app-discount-when { color: #93A1C2; }
.app-discount-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.app-discount--on .app-discount-btn { color: #fff; border-color: rgba(255, 255, 255, 0.6); background: transparent; }
.app-discount--on .app-discount-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.14); }
.app-discount-btn:disabled { opacity: 0.6; cursor: progress; }
.app-discount-note { min-height: 1.4em; margin: 12px 0 0; font: 500 13px 'IBM Plex Mono', monospace; color: var(--text-muted, #5B6371); }
.app-discount--on .app-discount-note { color: #8FB0FF; }
.app-discount-note.is-err { color: #B42318; }
.app-discount--on .app-discount-note.is-err { color: #FF7A6B; }
.app-discount-fine { margin: 6px 0 0; font-size: 12px; line-height: 1.5; color: var(--text-muted, #5B6371); }
.app-discount--on .app-discount-fine { color: #93A1C2; }
@media (max-width: 520px) { .app-discount { padding: 20px 18px; } .app-discount-badge { min-width: 64px; height: 64px; font-size: 19px; } }
@media (prefers-reduced-motion: no-preference) { .app-discount { animation: appDiscountIn 0.6s ease both; } }
@keyframes appDiscountIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Shop: « Nouveau » badge for books added in the last 15 days (hidden by assets/js/shop-new.js once expired) */
.shop-new { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 100px; background: var(--accent); color: #fff; font: 600 10.5px 'IBM Plex Mono', monospace; letter-spacing: .06em; text-transform: uppercase; }
.shop-card-media .shop-new { position: absolute; left: 10px; top: 10px; z-index: 2; box-shadow: 0 4px 12px rgba(34,82,204,.35); }
.shop-card-cat .shop-new { margin-left: 10px; vertical-align: 1px; }
/* Changelog (/nouveautes/): current versions, filters and a month-by-month timeline of release notes */
.cl-page { max-width: 920px; margin: 0 auto; padding: 64px var(--gutter) 96px; }
.cl-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.cl-hero h1 { margin: 12px 0 0; font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(34px, 6vw, 52px); letter-spacing: -0.03em; line-height: 1.05; }
.cl-intro { margin: 14px 0 0; max-width: 600px; font-size: 17px; line-height: 1.6; color: var(--text-muted); }
.cl-status { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--text-faint); }
.cl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); flex-shrink: 0; }
.cl-status.is-live .cl-dot { background: #2F9E62; box-shadow: 0 0 0 4px rgba(47,158,98,.16); }
.cl-label { margin: 0 0 12px; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.cl-now { margin: 40px 0 0; }
.cl-now-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.cl-now-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: inherit; transition: border-color .15s ease, transform .15s ease; }
.cl-now-card:hover { border-color: var(--accent); color: inherit; transform: translateY(-2px); }
.cl-now-card img { width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--border); background: #fff; }
.cl-now-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cl-now-txt strong { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 14.5px; color: var(--text); }
.cl-now-v { font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 600; color: var(--accent); }
.cl-now-d { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-faint); }
.cl-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; margin: 28px 0 0; border-radius: 20px; overflow: hidden; background: #0D1630; color: #fff; }
.cl-feature:hover { color: #fff; }
.cl-feature img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.cl-feature-txt { display: flex; flex-direction: column; gap: 10px; padding: 28px 30px; }
.cl-feature-tag { font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #9DB4F5; }
.cl-feature-txt strong { font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -0.02em; line-height: 1.1; }
.cl-feature-txt > span:not([class]) { font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,.78); }
.cl-feature-link { margin-top: 4px; font-weight: 600; font-size: 14px; color: #B9CBFF; }
.cl-feature:hover .cl-feature-link { color: #fff; }
.cl-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 44px 0 0; }
.cl-filter { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 100px; background: var(--surface); color: var(--text-muted); font: 600 13px 'Work Sans', sans-serif; cursor: pointer; transition: border-color .15s ease, color .15s ease, background .15s ease; }
.cl-filter img { width: 18px; height: 18px; border-radius: 5px; background: #fff; }
.cl-filter span { font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 500; opacity: .7; }
.cl-filter span:empty { display: none; }
.cl-filter:hover { border-color: var(--accent); color: var(--accent); }
.cl-filter[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
html[data-theme="dark"] .cl-filter[aria-pressed="true"] { color: #0E1217; }
.cl-month { display: flex; align-items: center; gap: 14px; margin: 36px 0 14px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.cl-month::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.changelog-item { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; margin: 0 0 12px; padding: 22px 24px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); transition: border-color .15s ease; }
.changelog-item:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.changelog-item[hidden], .cl-month[hidden] { display: none; }
.changelog-item .app-icon { width: 52px; height: 52px; border-radius: 13px; border: 1px solid var(--border); background: #fff; }
.changelog-item .ch-head { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.changelog-item .app-name { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 17px; color: var(--text); }
.changelog-item .version { padding: 3px 9px; border-radius: 100px; background: color-mix(in srgb, var(--accent) 11%, transparent); color: var(--accent); font: 600 12px 'IBM Plex Mono', monospace; }
.changelog-item .date { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--text-faint); }
.changelog-item .ch-new { padding: 3px 8px; border-radius: 100px; background: var(--accent); color: #fff; font: 600 10.5px 'IBM Plex Mono', monospace; letter-spacing: .06em; text-transform: uppercase; }
html[data-theme="dark"] .changelog-item .ch-new { color: #0E1217; }
.changelog-item .ch-store { margin-left: auto; font-size: 13px; font-weight: 600; white-space: nowrap; }
.changelog-item [data-body] { margin-top: 10px; }
.changelog-item [data-body].is-clamped { max-height: 300px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 65%, transparent); mask-image: linear-gradient(#000 65%, transparent); }
.changelog-item [data-body] p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.7; color: var(--text-muted); }
.changelog-item [data-body] .ch-lead { margin-top: 0; font-size: 15.5px; font-weight: 500; color: var(--text); }
.changelog-item [data-body] ul { margin: 10px 0 0; padding: 0; list-style: none; }
.changelog-item [data-body] li { position: relative; margin: 0 0 7px; padding-left: 18px; font-size: 14.5px; line-height: 1.65; color: var(--text-muted); }
.changelog-item [data-body] li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .7; }
.changelog-item [data-body] strong { color: var(--text); font-weight: 600; }
.changelog-item .ch-sep { margin: 14px 0; border: 0; border-top: 1px dashed var(--border); }
.changelog-item .ch-more { margin-top: 8px; padding: 0; border: 0; background: none; color: var(--accent); font: 600 13.5px 'Work Sans', sans-serif; cursor: pointer; }
.changelog-item .ch-more:hover { color: var(--accent-dark); }
.cl-empty { margin: 24px 0 0; font-size: 14.5px; color: var(--text-muted); }
@media (max-width: 820px) {
  .cl-now-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cl-feature { grid-template-columns: minmax(0, 1fr); }
  .cl-feature img { order: -1; aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
  .cl-page { padding-top: 44px; }
  .cl-now-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cl-now-card { flex-direction: row; align-items: center; gap: 10px; padding: 12px; }
  .cl-now-card img { width: 36px; height: 36px; border-radius: 9px; }
  .cl-now-d { display: none; }
  .cl-feature-txt { padding: 22px 20px; }
  .changelog-item { grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 4px 12px; padding: 18px 16px; }
  .changelog-item .ch-main { display: contents; }
  .changelog-item [data-body], .changelog-item .ch-more { grid-column: 1 / -1; }
  .changelog-item .ch-more { justify-self: start; }
  .changelog-item .app-icon { width: 40px; height: 40px; border-radius: 10px; }
  .changelog-item .ch-store { margin-left: 0; }
}

/* News: screenshots inside an article (full image, not cropped) */
.news-shot { margin: 28px 0; }
.news-shot img { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--bg-soft); }
.news-shot--tall { max-width: 420px; margin-left: auto; margin-right: auto; }
.news-shot figcaption { margin-top: 10px; font-size: 12.5px; color: var(--text-faint); }

.dev-h { margin: 18px 0 6px; font: 600 14px 'Sora', sans-serif; }
.dev-events { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.dev-events li { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-soft); }
.dev-ev-t { font-weight: 600; font-size: 14px; }
.dev-ev-m { font-size: 12.5px; color: var(--text-muted); }

/* ---------- Shop marketing (assets/js/shop-marketing.js, back office /admin/marketing/) ---------- */
.mk-t-sky { --mk-a: #1d4fd8; --mk-b: #4f86f7; --mk-fg: #fff; }
.mk-t-night { --mk-a: #0a1228; --mk-b: #1f3a8a; --mk-fg: #fff; }
.mk-t-sun { --mk-a: #c2410c; --mk-b: #f59e0b; --mk-fg: #fff; }
.mk-t-rose { --mk-a: #9f1239; --mk-b: #e11d62; --mk-fg: #fff; }
.mk-t-forest { --mk-a: #14532d; --mk-b: #16a34a; --mk-fg: #fff; }
.mk-slot:empty { display: none; }
.mk-slot { margin: 24px 0 0; }
.mk-banner { position: relative; display: flex; align-items: center; justify-content: center; background: linear-gradient(90deg, var(--mk-a), var(--mk-b)); color: var(--mk-fg); font-size: 14px; line-height: 1.35; }
.mk-banner[hidden], .mk-hero[hidden] { display: none; }
.mk-banner-link { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: center; padding: 9px 44px 9px var(--gutter); color: inherit; text-decoration: none; text-align: center; }
.mk-banner-text span { opacity: 0.9; }
.mk-close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: transparent; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; border-radius: 8px; }
.mk-close:hover { background: rgba(255, 255, 255, 0.18); }
.mk-pill { display: inline-block; font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 10px; border-radius: 100px; background: #fff; color: var(--mk-a); white-space: nowrap; }
.mk-pill-big { position: absolute; right: 12px; top: 12px; font-size: 14px; padding: 6px 14px; }
.mk-count { display: inline-flex; gap: 6px; font-family: 'IBM Plex Mono', monospace; font-variant-numeric: tabular-nums; }
.mk-count span { display: inline-flex; align-items: baseline; gap: 2px; padding: 3px 7px; border-radius: 8px; background: rgba(255, 255, 255, 0.18); font-size: 11px; }
.mk-count b { font-size: 14px; }
.mk-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: 22px; color: var(--mk-fg); background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.22), transparent 55%), linear-gradient(120deg, var(--mk-a), var(--mk-b)); overflow: hidden; box-shadow: var(--shadow-md, 0 18px 40px -26px rgba(10, 18, 40, 0.35)); }
.mk-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.mk-kicker { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.9; }
.mk-hero h2 { margin: 0; font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(26px, 4.4vw, 42px); line-height: 1.1; letter-spacing: -0.01em; color: inherit; overflow-wrap: anywhere; }
.mk-hero p { margin: 0; font-size: 16px; line-height: 1.55; opacity: 0.95; max-width: 520px; }
.mk-hero .mk-hero-ship { font-size: 14px; font-weight: 600; }
.mk-cta { display: inline-block; margin-top: 4px; padding: 12px 22px; border-radius: 100px; background: #fff; color: var(--mk-a); font-weight: 600; text-decoration: none; }
.mk-cta:hover { transform: translateY(-1px); }
.mk-hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 160px; }
.mk-hero-visual img { max-width: 100%; max-height: 280px; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.35)); }
.mk-hero-mark span { font-family: 'Sora', sans-serif; font-weight: 800; font-size: clamp(48px, 9vw, 96px); line-height: 1; letter-spacing: -0.03em; text-align: center; text-shadow: 0 6px 30px rgba(0, 0, 0, 0.25); transform: rotate(-4deg); }
.mk-was { color: var(--text-faint); font-weight: 400; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.mk-now { color: #B42318; font-weight: 700; }
.mk-flag { position: absolute; left: 10px; bottom: 10px; z-index: 2; font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 100px; background: #B42318; color: #fff; }
.mk-flag-inline { position: static; display: inline-block; vertical-align: middle; margin-left: 6px; }
.mk-until { margin: 6px 0 0; font-size: 13px; color: #B42318; font-weight: 600; }
.mk-nudge { margin: 6px 0 10px; font-size: 13px; color: var(--accent); font-weight: 600; }
.mk-nudge[hidden] { display: none; }
html[data-theme="dark"] .mk-now { color: #FF8F8F; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .mk-now { color: #FF8F8F; } }
@media (max-width: 720px) {
  .mk-hero { grid-template-columns: minmax(0, 1fr); }
  .mk-hero-visual { min-height: 120px; order: -1; }
  .mk-banner-link { font-size: 13px; }
}
.shop-card-foot .shop-price:has(.mk-was) { white-space: normal; min-width: 0; font-size: 16px; }
.shop-card-foot .shop-price .mk-was { font-size: 13px; }

/* Roger page: application sections (hero panel, demo card, feature cards) */
.roger-app-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; align-items: center; padding: 40px; border-radius: 28px; border: 1px solid var(--border); background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface) 62%); box-shadow: 0 18px 50px rgba(20, 40, 90, .08); }
.roger-app-hero .roger-app-head { margin-bottom: 18px; }
.roger-app-hero .roger-app-head .app-icon { width: 60px; height: 60px; border-radius: 15px; box-shadow: 0 8px 22px rgba(34, 82, 204, .25); }
.roger-app-hero h2 { margin: 0; font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.12; letter-spacing: -.02em; }
.roger-app-hero p { margin: 14px 0 0; font-size: 16px; line-height: 1.65; color: var(--text-muted); max-width: 560px; }
.roger-app-hero .roger-quote { margin: 22px 0 0; font-size: 15px; max-width: 560px; }
.roger-app-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 26px !important; }
.roger-demo { margin: 0; border-radius: 22px; border: 1px solid var(--border); background: var(--surface); box-shadow: 0 26px 60px rgba(20, 40, 90, .16); overflow: hidden; transform: rotate(1.2deg); transition: transform .4s ease, box-shadow .4s ease; }
.roger-demo:hover { transform: rotate(0) translateY(-4px); box-shadow: 0 34px 70px rgba(20, 40, 90, .22); }
.roger-demo-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
.roger-demo-bar strong { color: var(--text); font-family: 'Sora', sans-serif; }
.roger-demo-dot { width: 9px; height: 9px; border-radius: 50%; background: #1e9e5a; box-shadow: 0 0 0 0 rgba(30, 158, 90, .5); animation: rogerPulse 2.2s ease-out infinite; }
.roger-demo-body { padding: 16px; display: grid; gap: 12px; }
.roger-demo-metar { padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--text) 5%, var(--surface)); font: 500 12px/1.5 'IBM Plex Mono', monospace; color: var(--text); }
.roger-demo-metar span { display: block; font-size: 10.5px; letter-spacing: .08em; color: var(--text-faint); }
.roger-demo-msg { padding: 12px 14px; border-radius: 4px 16px 16px 16px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border)); font-size: 14px; line-height: 1.55; animation: rogerIn .7s ease both .2s; }
.roger-demo-msg p { margin: 0 !important; font-size: 14px !important; color: var(--text) !important; }
.roger-demo-msg p + p { margin-top: 6px !important; color: var(--text-muted) !important; }
.roger-demo-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.roger-demo-chips span { padding: 5px 11px; border-radius: 99px; border: 1px solid var(--border); font: 600 12px 'Work Sans', sans-serif; color: var(--text-muted); animation: rogerIn .6s ease both .5s; }
.roger-demo-chips span.is-go { background: #1e9e5a; border-color: #1e9e5a; color: #fff; }
.roger-demo-chips span.is-watch { background: #e08a00; border-color: #e08a00; color: #fff; }
.roger-demo-chips span.is-bad { background: #d92d20; border-color: #d92d20; color: #fff; }
.roger-demo figcaption { padding: 0 16px 12px; font: 500 11px 'IBM Plex Mono', monospace; color: var(--text-faint); text-align: right; }
.roger-app-section .detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; background: none; border: 0; margin-top: 28px; }
.roger-app-section .detail-cell { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; padding: 24px; gap: 8px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.roger-app-section .detail-cell::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--accent), transparent); opacity: 0; transition: opacity .25s ease; }
.roger-app-section .detail-cell:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: 0 16px 36px rgba(20, 40, 90, .12); }
.roger-app-section .detail-cell:hover::before { opacity: 1; }
.roger-app-section .detail-cell .idx { position: absolute; top: 18px; right: 20px; }
.roger-app-section .detail-cell svg { box-sizing: content-box; width: 24px; height: 24px; padding: 10px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 11%, var(--surface)); margin-bottom: 6px; align-self: flex-start; transition: transform .3s ease, background .3s ease; }
.roger-app-section .detail-cell:hover svg { transform: rotate(-6deg) scale(1.06); background: color-mix(in srgb, var(--accent) 18%, var(--surface)); }
.roger-app-section .detail-grid.is-visible .detail-cell { animation: rogerIn .55s ease both; }
.roger-app-section .detail-grid.is-visible .detail-cell:nth-child(2) { animation-delay: .06s; } .roger-app-section .detail-grid.is-visible .detail-cell:nth-child(3) { animation-delay: .12s; }
.roger-app-section .detail-grid.is-visible .detail-cell:nth-child(4) { animation-delay: .18s; } .roger-app-section .detail-grid.is-visible .detail-cell:nth-child(5) { animation-delay: .24s; } .roger-app-section .detail-grid.is-visible .detail-cell:nth-child(6) { animation-delay: .3s; }
.roger-app-section .spec-band { border-radius: 16px; }
@keyframes rogerIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes rogerPulse { 70% { box-shadow: 0 0 0 9px rgba(30, 158, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(30, 158, 90, 0); } }
@media (max-width: 960px) { .roger-app-hero { grid-template-columns: minmax(0, 1fr); padding: 26px 20px; gap: 26px; } .roger-demo { transform: none; } .roger-app-section .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .roger-app-section .detail-grid { grid-template-columns: minmax(0, 1fr); } .roger-app-hero { border-radius: 20px; } }
@media (prefers-reduced-motion: reduce) { .roger-demo, .roger-app-section .detail-cell, .roger-app-section .detail-cell svg { transition: none; } .roger-demo-dot, .roger-demo-msg, .roger-demo-chips span, .roger-app-section .detail-grid.is-visible .detail-cell { animation: none; } .roger-demo { transform: none; } }

/* E-mail preferences card: groups of switches */
.set-group-t { margin: 18px 0 8px; font: 700 13.5px/1.3 'Sora', sans-serif; color: var(--text); }
.set-group-t:first-child { margin-top: 4px; }
.set-group-s { font-weight: 500; font-size: 12px; color: var(--text-muted); }
.checkout-compare { margin: 14px 0 0; font-size: 14px; }

/* ---------- News: compact header, hero card, rubric cards, scrollers with a real right margin ---------- */
.news-top { padding: clamp(36px, 5vw, 64px) 0 0; }
.news-top-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px 40px; flex-wrap: wrap; }
.news-top-text { max-width: 720px; }
.news-top .gallery-count { display: block; margin-bottom: 10px; }
.news-top .gallery-count a { color: inherit; }
.news-top h1 { margin: 0 0 10px; font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(28px, 4.2vw, 44px); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.news-top p { margin: 0; font-size: clamp(15px, 1.8vw, 17px); line-height: 1.55; color: var(--text-muted); }
.news-top-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--text-faint); }
.news-top-meta a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-weight: 600; }
.news-top-meta a:hover { color: var(--accent); }
.news-top-meta svg { width: 13px; height: 13px; color: #E8792B; }

/* Rubric pills: one scrolling row. The trailing spacer is the right margin at the end of the scroll. */
.news-pills { position: relative; display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 8px; margin: 24px 0 0; padding: 2px 0 6px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); }
.news-pills::-webkit-scrollbar { display: none; }
.news-pills::after { content: ''; flex: 0 0 var(--gutter); }
.news-pill { flex: 0 0 auto; scroll-snap-align: start; }
.news-pills.compact { padding: 12px 0; margin: 0; }
@media (max-width: 1100px) {
  .news-pills { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding-left: var(--gutter); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 22px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 22px), transparent 100%); }
  .news-pills.compact { margin-top: 0; }
}
.news-pills::after { margin-left: -8px; }

/* Ticker ("En bref") */
.news-ticker { margin: 8px 0 0; }
.news-ticker ul { padding-right: 28px; }
.news-ticker li.is-important a { font-weight: 600; }
.news-important { display: inline-block; margin-right: 8px; padding: 2px 7px; border-radius: 100px; background: #E5484D; color: #fff; font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; vertical-align: 1px; }

.news-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 100px; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; line-height: 1.2; white-space: nowrap; }
.news-badge[hidden] { display: none; }
.news-badge--une { background: #fff; color: #0A1428; }
.news-badge--une::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #E5484D; }
.news-badge--une.is-past { background: rgba(255, 255, 255, 0.16); color: #fff; }
.news-badge--une.is-past::before { display: none; }
.news-badge--new { background: #E8792B; color: #fff; }

/* Hero card */
.news-spot { padding-bottom: 8px; }
.news-hero-card { position: relative; display: flex; align-items: flex-end; min-height: clamp(400px, 46vw, 540px); border-radius: 24px; overflow: hidden; color: #fff; background: #0A1428; isolation: isolate; box-shadow: 0 30px 60px -36px rgba(10, 20, 40, 0.65); }
.news-hero-media { position: absolute; inset: 0; z-index: -2; display: block; }
.news-hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s ease; }
.news-hero-card:hover .news-hero-media img { transform: scale(1.03); }
.news-hero-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 16, 36, 0.96) 0%, rgba(8, 16, 36, 0.88) 40%, rgba(8, 16, 36, 0.5) 66%, rgba(8, 16, 36, 0.12) 100%), linear-gradient(90deg, rgba(8, 16, 36, 0.6) 0%, transparent 65%); }
.news-hero-card::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--rub, var(--accent)); z-index: 1; }
.news-hero-body { display: flex; flex-direction: column; gap: 14px; width: min(100%, 780px); padding: clamp(22px, 4vw, 52px); padding-top: 120px; }
.news-hero-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.news-hero-kicker { font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #C9D6F5; }
.news-hero-kicker:hover { color: #fff; }
.news-hero-card h2 { margin: 0; font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(26px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.news-hero-card h2 a { color: #fff; }
.news-hero-card h2 a::after { content: ''; position: absolute; inset: 0; z-index: 2; }
.news-hero-dek { margin: 0; max-width: 640px; font-size: clamp(15px, 1.7vw, 17.5px); line-height: 1.6; color: rgba(255, 255, 255, 0.86); text-wrap: pretty; }
.news-hero-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; margin-top: 4px; }
.news-hero-cta { position: relative; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 100px; background: #fff; color: #0A1428; font-weight: 600; font-size: 14.5px; transition: transform 0.2s ease; }
.news-hero-cta:hover { transform: translateX(2px); color: #0A1428; }
.news-hero-card .news-meta { color: rgba(255, 255, 255, 0.72); }
.news-hero-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.news-hero-tags li { padding: 3px 10px; border-radius: 100px; border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.85); font-size: 12px; }

/* Three secondary stories under the hero */
.news-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 22px; }
.news-trio-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: var(--surface); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.news-trio-card:hover { transform: translateY(-2px); border-color: var(--rub, var(--accent)); box-shadow: 0 18px 34px -24px rgba(10, 20, 40, 0.5); }
.news-trio-card .news-media { position: relative; border-radius: 0; }
.news-trio-card .news-media .news-badge { position: absolute; top: 10px; left: 10px; }
.news-trio-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.news-trio-body h3 { margin: 0; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; }
.news-trio-body h3 a { color: var(--text); }
.news-trio-body h3 a::after { content: ''; position: absolute; inset: 0; }
.news-trio-body p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-trio-body .news-kicker { color: var(--rub, var(--accent)); }

/* Rubric cards */
.news-explore { padding-top: 40px; }
.news-explore-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 14px 0 0; padding: 0; list-style: none; }
.news-explore-card { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 18px 18px 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text); overflow: hidden; transition: border-color 0.2s ease, transform 0.2s ease; }
.news-explore-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--rub, var(--accent)); }
.news-explore-card:hover { border-color: var(--rub, var(--accent)); transform: translateY(-2px); color: var(--text); }
.news-explore-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.news-explore-top strong { font-family: 'Sora', sans-serif; font-size: 16px; }
.news-explore-top span { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-faint); white-space: nowrap; }
.news-explore-desc { font-size: 13.5px; line-height: 1.5; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-explore-last { margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--border); font-size: 13px; line-height: 1.4; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-explore-last em { display: block; margin-bottom: 2px; font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-style: normal; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--rub, var(--accent)); }

@media (max-width: 1000px) {
  .news-trio { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .news-trio > :nth-child(3) { grid-column: 1 / -1; flex-direction: row; }
  .news-trio > :nth-child(3) .news-media { flex: 0 0 38%; aspect-ratio: auto; }
  .news-explore-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-top-meta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
}
@media (max-width: 640px) {
  .news-top-in { gap: 16px; }
  .news-hero-card { min-height: 440px; border-radius: 20px; }
  .news-hero-body { padding-top: 150px; gap: 12px; }
  .news-hero-dek { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .news-hero-foot { gap: 10px 16px; }
  .news-hero-tags { display: none; }
  /* secondary stories and rubric cards become swipeable rows, with the right margin kept at the end */
  .news-trio, .news-explore-list { display: flex; gap: 12px; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 4px 0 10px var(--gutter); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .news-trio::-webkit-scrollbar, .news-explore-list::-webkit-scrollbar { display: none; }
  .news-trio::after, .news-explore-list::after { content: ''; flex: 0 0 calc(var(--gutter) - 12px); }
  .news-trio > *, .news-explore-list > * { flex: 0 0 min(80%, 300px); scroll-snap-align: start; }
  .news-trio > :nth-child(3) { flex-direction: column; grid-column: auto; }
  .news-trio > :nth-child(3) .news-media { flex: none; aspect-ratio: 16 / 9; }
  .news-trio-card { height: auto; }
}
@media (prefers-reduced-motion: reduce) { .news-hero-media img, .news-trio-card, .news-explore-card, .news-hero-cta { transition: none; } }

/* Opened from an iOS app (?depuis=app, assets/js/prefs.js): no offer, price or checkout link (App Store rule 3.1.1). */
html[data-from-app] a[href^="/academy/formules"], html[data-from-app] a[href^="/academy/abonnement"],
html[data-from-app] a[href="#formules"], html[data-from-app] a[href*="aether-digital.eu/academy/formules"],
html[data-from-app] a[href*="aether-digital.eu/academy/abonnement"], html[data-from-app] .cga-tile--upsell,
html[data-from-app] #accOffers, html[data-from-app] #accOffersMini, html[data-from-app] #formules,
html[data-from-app] #accIosNote, html[data-from-app] .ckp-lock, html[data-from-app] .app-discount--offer { display: none !important; }

/* App pages with six phone screenshots: one row on desktop */
@media (min-width: 1000px) { .screens-track.is-six .screen-frame { --screen-h: 336px; } .screens-track.is-four .screen-frame { --screen-h: 328px; } }

/* ---------- Main navigation v3: larger, darker, pills; four panels (lib/nav.js) ---------- */
.nav { gap: 24px; }
.nav-links { gap: 2px; }
.nav-back, .nav-dd-btn { font: 500 14.5px 'Work Sans', sans-serif; line-height: 1; color: var(--text); padding: 9px 13px; border-radius: 100px; transition: background .15s ease, color .15s ease; }
.nav-back:hover, .nav-dd-btn:hover, .nav-dd.is-open > .nav-dd-btn { background: var(--bg-soft); color: var(--text); }
.nav-back.is-active, .nav-dd.is-active > .nav-dd-btn { box-shadow: none; padding-bottom: 9px; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, transparent); }
.nav-dd-btn { gap: 6px; }
.nav-dd-panel { left: 0; top: calc(100% + 10px); min-width: 340px; }
.nav-dd::after { left: 0; right: 0; height: 12px; }
.nav-dd--end .nav-dd-panel { left: auto; right: 0; }
.nav-dd-ico { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; flex: none; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
@media (max-width: 1100px) {
  .nav { gap: 14px; }
  .nav-back, .nav-dd-btn { font-size: 14px; padding: 8px 10px; }
  .nav-back.is-active, .nav-dd.is-active > .nav-dd-btn { padding-bottom: 8px; }
}
@media (min-width: 901px) and (max-width: 1000px) {
  .nav { gap: 8px; padding-left: 20px; padding-right: 20px; }
  .nav-back, .nav-dd-btn { padding: 8px 7px; font-size: 13.5px; }
  .nav-dd-btn { gap: 4px; }
}
@media (max-width: 900px) {
  .nav-links > .nav-back { padding: 12px; border-radius: 12px; font-size: 16px; }
  .nav-dd { width: 100%; }
  .nav-dd-btn { width: 100%; padding: 12px; justify-content: space-between; font-size: 16px; border-radius: 12px; }
  .nav-dd-panel { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; border: 0; box-shadow: none; padding: 2px 0 8px 10px; display: none; background: transparent; }
  .nav-dd.is-open .nav-dd-panel { display: block; }
  .nav-dd::after { display: none; }
  .nav-back.is-active { padding-bottom: 12px; }
  .nav-dd.is-active > .nav-dd-btn { padding-bottom: 12px; }
}

/* ---------- Home hero, slide "Six applications": a clean tile grid instead of the phone collage ---------- */
.hero-slide--blue { align-items: center; }
.hero-slide--blue .hero-content { max-width: 46%; padding-top: 64px; padding-bottom: 56px; }
.hero-apps { position: relative; z-index: 1; list-style: none; margin: 0; padding: 64px 40px 56px 0; flex: 1 1 0; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: center; }
.hero-app { display: flex; align-items: center; gap: 14px; height: 100%; padding: 14px 16px; border-radius: 18px; color: #fff; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .2s ease, transform .2s ease, border-color .2s ease; }
.hero-app:hover { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.4); transform: translateY(-2px); color: #fff; }
.hero-app img { width: 48px; height: 48px; border-radius: 12px; flex: none; background: #fff; box-shadow: 0 6px 14px rgba(8, 16, 60, 0.3); }
.hero-app span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hero-app strong { font: 600 16px 'Sora', sans-serif; line-height: 1.2; }
.hero-app em { font-style: normal; font-size: 12.5px; line-height: 1.4; color: rgba(255, 255, 255, 0.8); }
.hero-apps li { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s cubic-bezier(0.2, 0.7, 0.2, 1); }
.hero-slide.is-active .hero-apps li { opacity: 1; transform: none; }
.hero-slide.is-active .hero-apps li:nth-child(2) { transition-delay: .08s; } .hero-slide.is-active .hero-apps li:nth-child(3) { transition-delay: .16s; }
.hero-slide.is-active .hero-apps li:nth-child(4) { transition-delay: .24s; } .hero-slide.is-active .hero-apps li:nth-child(5) { transition-delay: .32s; }
.hero-slide.is-active .hero-apps li:nth-child(6) { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) { .hero-apps li, .hero-app { transition: none; } }
/* arrows in the bottom-right corner: they no longer cover the text on the left */
.hero-arrow { top: auto; bottom: 20px; margin-top: 0; width: 40px; height: 40px; }
.hero-arrow.next { right: 20px; } .hero-arrow.prev { left: auto; right: 68px; }
@media (max-width: 900px) {
  .hero-slide--blue { flex-direction: column; align-items: stretch; }
  .hero-slide--blue .hero-content { max-width: none; padding: 60px 22px 18px; }
  .hero-apps { padding: 0 22px 64px; grid-template-columns: minmax(0, 1fr); }
  .hero-app { padding: 12px 14px; }
}
@media (min-width: 560px) and (max-width: 900px) { .hero-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) {
  .hero-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-bottom: 60px; }
  .hero-app { padding: 10px 12px; gap: 10px; border-radius: 14px; }
  .hero-app img { width: 38px; height: 38px; border-radius: 10px; }
  .hero-app strong { font-size: 14.5px; }
  .hero-app em { display: none; }
}
@media (max-width: 900px) { .hero-slide--blue { justify-content: center; } .hero-apps { flex: 0 0 auto; } }

/* AElog: public verification of a signed flight (/verifier/) and remote signature landing (/signer/) */
.verify-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0; }
.verify-form label { width: 100%; font-weight: 600; }
.verify-form input { flex: 1 1 180px; min-width: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; font-family: 'IBM Plex Mono', monospace; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; background: var(--surface); color: var(--text); }
.verify-form button { border: 0; cursor: pointer; }
.verify-card { border: 1px solid var(--border); border-radius: 16px; padding: 20px; background: var(--bg-soft); margin: 18px 0; }
.verify-badge { display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 100px; background: rgba(22, 163, 74, .12); color: #15803d; font-weight: 600; font-size: 13px; }
.verify-badge.is-revoked { background: rgba(220, 38, 38, .12); color: #b91c1c; }
.verify-dl { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 8px 16px; margin: 0; }
.verify-dl dt { color: var(--text-muted); }
.verify-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.verify-hash { margin: 14px 0 0; font-size: 12px; color: var(--text-muted); overflow-wrap: anywhere; }
.verify-hash code { font-family: 'IBM Plex Mono', monospace; }
.verify-note { color: var(--text-muted); font-size: 14px; }
#openInApp[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* Back office: Vertex shop (/admin/vertex/) */
.vxa-banner { border: 1px solid rgba(180,83,9,0.35); background: #FFF8EC; border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-size: 13.5px; color: #7A4A0A; }
.vxa-banner p { margin: 4px 0; }
.vxa-sec { margin: 26px 0; }
.vxa-sec h2 { font-size: 16px; margin: 0 0 10px; }
.vxa-help { font-size: 13px; color: var(--text-muted); margin: 0 0 10px; }
.vxa-table { display: grid; gap: 10px; }
.vxa-row { display: grid; grid-template-columns: minmax(160px, 1.4fr) repeat(3, minmax(110px, 1fr)) auto; gap: 10px 12px; align-items: end; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface); }
.vxa-row--ship { grid-template-columns: repeat(4, minmax(110px, 1fr)); }
.vxa-row--ship .vxa-wide { grid-column: span 2; }
.vxa-row label { display: grid; gap: 4px; font-size: 11.5px; color: var(--text-muted); }
.vxa-row input, .vxa-row select, .vxa-ship input { font: inherit; font-size: 13.5px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); width: 100%; }
.vxa-pair { display: flex; gap: 6px; }
.vxa-check { display: flex !important; align-items: center; gap: 6px; }
.vxa-check input { width: auto; }
.vxa-name small { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-faint); }
.vxa-del { background: none; border: 0; color: #D0353A; font-size: 12.5px; cursor: pointer; text-decoration: underline; justify-self: start; }
.vxa-order { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; background: var(--surface); }
.vxa-order header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vxa-order header small { margin-left: auto; color: var(--text-muted); }
.vxa-order p { margin: 8px 0 0; font-size: 13.5px; }
.vxa-small { font-size: 12.5px !important; color: var(--text-muted); }
.vxa-attn { color: #B45309; font-weight: 600; }
.vxa-pill { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 99px; background: var(--bg-soft); border: 1px solid var(--border); }
.vxa-order.is-paid .vxa-pill, .vxa-order.is-attention .vxa-pill { background: #FFF8EC; border-color: rgba(180,83,9,.35); color: #7A4A0A; }
.vxa-order.is-shipped .vxa-pill { background: #EEF8F1; border-color: rgba(22,128,60,.3); color: #166534; }
.vxa-pill.is-test { background: #EEF2FF; }
.vxa-ship { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 8px; margin-top: 10px; }
.vxa-ship button { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 760px) { .vxa-row, .vxa-row--ship, .vxa-ship { grid-template-columns: 1fr; } .vxa-row--ship .vxa-wide { grid-column: auto; } }
