/* ==========================================================================
   AETHER FLIGHT: the unified range (Aether Planner, Planchette, Vertex).
   Dedicated stylesheet, linked after /assets/site.css from /flight/ pages
   (generated by scripts/build-flight.js). Everything is prefixed .fl-.
   Uses the site tokens (--bg, --bg-soft, --text, --text-muted, --border,
   --accent, --gutter), so the dark theme follows the site.
   ========================================================================== */
.fl { --fl-ink: #0A1428; --fl-sky: #2252CC; --fl-sky-2: #7EA0FF; --fl-green: #2E9E6B; --fl-amber: #B45309; --fl-line: var(--border); overflow-x: clip; }
.fl h1, .fl h2, .fl h3 { font-family: 'Sora', ui-sans-serif, system-ui, sans-serif; letter-spacing: -0.02em; }
.fl-wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin: 0 auto; }
.fl-sec { padding: clamp(56px, 8vw, 96px) 0; }
.fl-sec--soft { background: var(--bg-soft); }
.fl-eyebrow { display: inline-block; font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.fl-head { max-width: 680px; margin: 0 0 32px; }
.fl-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.fl-head h2 { margin: 0 0 12px; font-size: clamp(26px, 4.4vw, 40px); line-height: 1.12; }
.fl-head p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text-muted); text-wrap: pretty; }

/* ---------- hero ---------- */
.fl-hero { position: relative; color: #EAF0FF; padding: clamp(64px, 10vw, 120px) 0 clamp(72px, 9vw, 110px); background: radial-gradient(1200px 500px at 85% -10%, rgba(126, 160, 255, 0.35), transparent 60%), linear-gradient(180deg, #0A1428 0%, #112456 70%, #17387F 100%); overflow: hidden; isolation: isolate; }
.fl-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(circle, rgba(255, 255, 255, 0.5) 1px, transparent 1.4px), radial-gradient(circle, rgba(255, 255, 255, 0.3) 1px, transparent 1.4px); background-size: 90px 90px, 140px 140px; background-position: 0 0, 45px 60px; opacity: 0.35; }
/* Vertex hero: the board render is the background, a navy veil keeps the copy readable. */
.fl-hero--pcb { background: #0A1428; padding: clamp(72px, 11vw, 140px) 0 clamp(80px, 11vw, 140px); }
.fl-hero--pcb::before { z-index: -1; background-image: linear-gradient(90deg, rgba(10, 20, 40, 0.92) 0%, rgba(10, 20, 40, 0.84) 46%, rgba(10, 20, 40, 0.22) 76%, rgba(10, 20, 40, 0.06) 100%), linear-gradient(180deg, rgba(10, 20, 40, 0.3) 0%, transparent 26%, transparent 74%, rgba(10, 20, 40, 0.5) 100%); background-size: auto; background-position: 0 0; opacity: 1; }
.fl-hero-bg { position: absolute; inset: 0; z-index: -2; display: block; }
.fl-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 38%; display: block; }
.fl-hero-copy { max-width: 640px; }
.fl-hero--pcb .fl-lead { color: #D5E0FA; }
.fl-hero--pcb .fl-btn--ghost { background: rgba(10, 20, 40, 0.5); }
.fl-hero .fl-eyebrow { color: #9DB8FF; }
.fl-hero h1 { margin: 0 0 18px; font-size: clamp(38px, 8vw, 76px); line-height: 1.02; color: #fff; text-wrap: balance; }
.fl-hero h1 em { font-style: normal; color: var(--fl-sky-2); }
.fl-lead { margin: 0 0 28px; max-width: 620px; font-size: clamp(16px, 2.2vw, 19px); line-height: 1.6; color: #C9D6F5; text-wrap: pretty; }
.fl-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.fl-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 100px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: transform 0.2s ease, background 0.2s ease; }
.fl-btn:hover { transform: translateY(-1px); }
.fl-btn--primary { background: #fff; color: var(--fl-ink); }
.fl-btn--ghost { color: #EAF0FF; border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.06); }
.fl-btn--solid { background: var(--accent); color: #fff; }
.fl-btn--line { color: var(--text); border-color: var(--border); background: var(--bg); }
.fl-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.fl-hero-art { display: flex; justify-content: center; }
.fl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.fl-chip { padding: 5px 12px; border-radius: 100px; font-size: 12.5px; font-weight: 600; background: rgba(255, 255, 255, 0.1); color: #DDE6FF; border: 1px solid rgba(255, 255, 255, 0.18); }
.fl-chip--beta { background: rgba(242, 178, 99, 0.16); color: #F5C682; border-color: rgba(242, 178, 99, 0.45); }
.fl-chip--wip { background: rgba(242, 178, 99, 0.16); color: #F5C682; border-color: rgba(242, 178, 99, 0.45); }
.fl-chip--live { background: rgba(92, 201, 138, 0.16); color: #9FE3BD; border-color: rgba(92, 201, 138, 0.4); }

/* ---------- the chain (Préparer, Voler, Analyser) ---------- */
.fl-chain { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.fl-chain::before { content: ''; position: absolute; left: 6%; right: 6%; top: 34px; height: 3px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 16px); opacity: 0.35; }
.fl-step { position: relative; padding: 22px 20px 20px; border: 1px solid var(--border); border-radius: 20px; background: var(--bg); box-shadow: 0 18px 40px -30px rgba(10, 20, 40, 0.5); }
.fl-step-n { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 50%; font: 700 18px 'Sora', sans-serif; color: #fff; background: linear-gradient(135deg, var(--fl-sky), #0F2B7A); box-shadow: 0 0 0 6px var(--bg); position: relative; z-index: 1; }
.fl-step h3 { margin: 0 0 4px; font-size: 22px; }
.fl-step .fl-who { margin: 0 0 10px; font: 600 12.5px 'IBM Plex Mono', monospace; letter-spacing: 0.04em; color: var(--accent); text-transform: uppercase; }
.fl-step p { margin: 0 0 14px; font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.fl-link { font-weight: 600; font-size: 14.5px; color: var(--accent); text-decoration: none; }
.fl-link:hover { text-decoration: underline; }
.fl-step-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* ---------- product cards ---------- */
.fl-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.fl-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--border); border-radius: 22px; background: var(--bg); }
.fl-card-top { display: flex; align-items: center; gap: 12px; }
.fl-card-top img { width: 52px; height: 52px; border-radius: 13px; flex: none; }
.fl-card h3 { margin: 0; font-size: 20px; }
.fl-card .fl-tag { margin: 0; font-size: 13px; color: var(--text-muted); }
.fl-card ul { margin: 4px 0 8px; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 14.5px; line-height: 1.45; }
.fl-card li { display: flex; gap: 9px; }
.fl-card li::before { content: ''; flex: none; width: 7px; height: 7px; margin-top: 7px; border-radius: 50%; background: var(--accent); }
.fl-card .fl-card-act { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.fl-badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font: 600 11px 'IBM Plex Mono', monospace; letter-spacing: 0.05em; text-transform: uppercase; background: var(--bg-soft); color: var(--text-muted); border: 1px solid var(--border); }
.fl-badge--live { color: #15803D; border-color: #15803D; background: transparent; }
.fl-badge--beta, .fl-badge--wip { color: var(--fl-amber); border-color: var(--fl-amber); background: transparent; }
html[data-theme="dark"] .fl-badge--live { color: #5CC98A; border-color: #5CC98A; }
html[data-theme="dark"] .fl-badge--beta, html[data-theme="dark"] .fl-badge--wip { color: #F2B263; border-color: #F2B263; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .fl-badge--live { color: #5CC98A; border-color: #5CC98A; } html:not([data-theme="light"]) .fl-badge--beta, html:not([data-theme="light"]) .fl-badge--wip { color: #F2B263; border-color: #F2B263; } }

/* ---------- start here ---------- */
.fl-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fl-path { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border: 1px solid var(--border); border-radius: 18px; background: var(--bg); color: inherit; text-decoration: none; transition: border-color 0.2s ease, transform 0.2s ease; }
.fl-path:hover { border-color: var(--accent); transform: translateY(-2px); }
.fl-path-q { margin: 0 0 4px; font-weight: 600; font-size: 16.5px; }
.fl-path-a { margin: 0; font-size: 14px; color: var(--text-muted); }
.fl-path-a b { color: var(--accent); }
.fl-path-ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-soft); color: var(--accent); }
.fl-path-go { margin-left: auto; font-size: 20px; color: var(--accent); }

/* ---------- account band ---------- */
.fl-account { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
.fl-hub { position: relative; aspect-ratio: 1.15; max-width: 420px; margin: 0 auto; width: 100%; }
.fl-hub svg { width: 100%; height: auto; display: block; }
.fl-hub .fl-core { fill: var(--accent); } .fl-hub .fl-ring { fill: none; stroke: var(--accent); stroke-opacity: 0.35; stroke-dasharray: 4 6; animation: flSpin 40s linear infinite; transform-origin: 200px 175px; }
.fl-hub .fl-node { fill: var(--bg); stroke: var(--accent); stroke-width: 2; } .fl-hub text { font: 600 13px 'Work Sans', sans-serif; fill: var(--text); } .fl-hub .fl-core-t { fill: #fff; font: 700 15px 'Sora', sans-serif; }
.fl-checks { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.fl-checks li { display: flex; gap: 10px; font-size: 15.5px; line-height: 1.5; }
.fl-checks li::before { content: '✓'; flex: none; font-weight: 700; color: var(--fl-green); }

/* ---------- comparison table ---------- */
.fl-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 18px; background: var(--bg); }
.fl-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
.fl-table th, .fl-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.fl-table thead th { font: 600 12px 'IBM Plex Mono', monospace; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); background: var(--bg-soft); }
.fl-table tbody tr:last-child td, .fl-table tbody tr:last-child th { border-bottom: 0; }
.fl-table th[scope="row"] { font-weight: 600; white-space: nowrap; }
.fl-table td small { display: block; color: var(--text-muted); margin-top: 2px; }

/* ---------- notes, faq, final ---------- */
.fl-note { padding: 18px 20px; border-radius: 16px; border: 1px solid var(--border); background: var(--bg-soft); font-size: 15px; line-height: 1.6; }
.fl-note strong { color: var(--text); }
.fl-faq { display: grid; gap: 10px; max-width: 800px; margin: 0 auto; }
.fl-faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--bg); padding: 0 18px; }
.fl-faq summary { cursor: pointer; padding: 15px 0; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.fl-faq summary::-webkit-details-marker { display: none; }
.fl-faq summary::after { content: '+'; font-size: 20px; color: var(--accent); flex: none; }
.fl-faq details[open] summary::after { content: '−'; }
.fl-faq p { margin: 0 0 16px; font-size: 15.5px; line-height: 1.6; color: var(--text-muted); }
.fl-final { position: relative; text-align: center; color: #EAF0FF; padding: clamp(56px, 8vw, 96px) 0; background: radial-gradient(900px 400px at 50% 120%, rgba(126, 160, 255, 0.35), transparent 60%), linear-gradient(180deg, #0F2457, #0A1428); }
.fl-final h2 { margin: 0 0 12px; font-size: clamp(28px, 5vw, 44px); color: #fff; }
.fl-final p { margin: 0 auto 24px; max-width: 560px; color: #C9D6F5; font-size: 17px; line-height: 1.6; }
.fl-final .fl-cta { justify-content: center; }

/* ---------- feature grid and showcases (Planner) ---------- */
.fl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fl-feat { padding: 20px; border: 1px solid var(--border); border-radius: 18px; background: var(--bg); }
.fl-feat svg { color: var(--accent); margin-bottom: 10px; }
.fl-feat h3 { margin: 0 0 6px; font-size: 17px; }
.fl-feat p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text-muted); }
.fl-show { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
.fl-show--rev .fl-show-art { order: -1; }
.fl-show-art { display: flex; gap: 14px; justify-content: center; align-items: flex-start; }
.fl-shot { margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); background: #0C1830; box-shadow: 0 30px 60px -34px rgba(10, 20, 40, 0.7); }
.fl-shot img { display: block; width: 100%; height: auto; }
.fl-shot--sm { max-width: 300px; }
.fl-steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.fl-steps li { counter-increment: s; padding: 18px; border-radius: 18px; border: 1px solid var(--border); background: var(--bg); }
.fl-steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 10px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 15px 'Sora', sans-serif; }
.fl-steps b { display: block; margin-bottom: 4px; font-size: 16px; }
.fl-steps span { font-size: 14.5px; line-height: 1.5; color: var(--text-muted); }
.fl-list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.fl-list li { display: flex; gap: 10px; font-size: 15.5px; line-height: 1.5; }
.fl-list li::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--accent); }
.fl-sources { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.fl-sources li { padding: 7px 14px; border-radius: 100px; border: 1px solid var(--border); background: var(--bg); font-size: 14px; }

/* ---------- Vertex spec table ---------- */
.fl-spec { width: 100%; border-collapse: collapse; font-size: 15px; }
.fl-spec th, .fl-spec td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.fl-spec th { width: 38%; font-weight: 600; color: var(--text-muted); }
.fl-spec tr:last-child th, .fl-spec tr:last-child td { border-bottom: 0; }

/* ---------- motion ---------- */
.fl-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fl-reveal.is-in { opacity: 1; transform: none; }
@keyframes flSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fl-reveal { opacity: 1; transform: none; transition: none; } .fl-hub .fl-ring { animation: none; } .fl-btn, .fl-path { transition: none; } }
html[data-motion="reduce"] .fl-reveal { opacity: 1; transform: none; transition: none; }
html[data-motion="reduce"] .fl-hub .fl-ring { animation: none; }
.fl-no-js .fl-reveal { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .fl-hero-grid, .fl-account, .fl-show { grid-template-columns: minmax(0, 1fr); }
  .fl-show--rev .fl-show-art { order: 0; }
  .fl-chain, .fl-cards, .fl-grid { grid-template-columns: minmax(0, 1fr); }
  .fl-chain::before { display: none; }
  .fl-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fl-paths { grid-template-columns: minmax(0, 1fr); }
  .fl-hero-art { order: -1; }
}
@media (max-width: 900px) { .fl-hero--pcb::before { background-image: linear-gradient(180deg, rgba(10, 20, 40, 0.88) 0%, rgba(10, 20, 40, 0.72) 100%); } .fl-hero-bg img { object-position: 72% 50%; } }
@media (min-width: 640px) and (max-width: 900px) { .fl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .fl-steps { grid-template-columns: minmax(0, 1fr); } .fl-btn { width: 100%; justify-content: center; } .fl-show-art { flex-direction: column; align-items: center; } }
