/* Right Seat Coach website. The same dark cockpit palette as the desktop app (src/A32xLessons.App/wwwroot). */
:root {
  --bg: #0f1419;
  --card: #1a2129;
  --line: #2b3540;
  --text: #e6edf3;
  --muted: #8b98a5;
  --cyan: #3fd0e8;     /* Airbus: armed/selected; our actions */
  --green: #4ade80;    /* Airbus: active/normal */
  --amber: #f5a524;    /* Airbus: caution */
  --red: #f87171;
  --radius: 10px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--cyan); text-underline-offset: 2px; }
a:hover { color: #7fe3f2; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(30px, 6vw, 46px); letter-spacing: -.01em; }
h2 { font-size: clamp(22px, 4vw, 28px); }
h3 { font-size: 17px; margin-bottom: 6px; }
p { margin: 0 0 12px; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 560px; }
main { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 10; background: var(--card); padding: 8px 12px; border-radius: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .04em; }
.brand:hover { color: var(--text); }
.brand img { display: block; }
.site-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-nav a:not(.button) { color: var(--muted); text-decoration: none; }
.site-nav a:not(.button):hover { color: var(--text); }

/* Buttons: real buttons and links that look like them. */
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1px solid var(--cyan);
  background: var(--cyan);
  color: #00131a;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
button:hover, .button:hover { background: #7fe3f2; border-color: #7fe3f2; color: #00131a; }
.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.ghost:hover { background: var(--card); border-color: var(--cyan); color: var(--text); }
.danger { background: transparent; color: var(--red); border-color: var(--red); }
.danger:hover { background: var(--red); border-color: var(--red); color: #1a0505; }
.compact { padding: 7px 14px; font-size: 15px; }
button:disabled, button:disabled:hover { opacity: .4; cursor: default; background: var(--cyan); border-color: var(--cyan); color: #00131a; }
.ghost:disabled, .ghost:disabled:hover { background: transparent; border-color: var(--line); color: var(--text); }
.danger:disabled, .danger:disabled:hover { background: transparent; border-color: var(--red); color: var(--red); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.pill { display: inline-block; font-size: 13px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.ok { color: var(--green); border-color: var(--green); }
.pill.warn { color: var(--amber); border-color: var(--amber); }

/* Sections */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }
.section-intro { max-width: 640px; margin-bottom: 28px; }
.eyebrow { color: var(--cyan); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Hero */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: grid; gap: 40px; grid-template-columns: 1.1fr .9fr; align-items: center; }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 34em; margin-bottom: 24px; }
.hero .lead strong { color: var(--text); font-weight: 600; }
.hero .actions { margin-bottom: 14px; }

/* The mock lesson step in the hero, drawn like the app's current-step card. */
.demo { margin: 0; }
.demo .card { border-color: var(--cyan); }
.demo .step-no { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.demo .instruction { font-size: 21px; font-weight: 600; margin: 6px 0 8px; }
.demo .where { color: var(--cyan); margin-bottom: 8px; font-size: 15px; }
.demo .why { color: var(--muted); font-size: 15px; }
.demo .checks { list-style: none; padding: 0; margin: 14px 0 0; font-size: 14px; }
.demo .checks li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.demo .checks .ok { color: var(--green); }
.demo .checks .no { color: var(--amber); }
.demo .chips { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.demo .chip { font-size: 14px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); color: var(--text); }
.demo figcaption { color: var(--muted); font-size: 13px; margin-top: 10px; text-align: center; }

/* How it works */
.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 52px; }
.steps .card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; top: 18px; left: 20px;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--cyan); color: var(--cyan);
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.lessons { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.lessons li { border-left: 3px solid var(--green); padding: 4px 0 4px 14px; }
.lessons strong { display: block; }
.planned { margin-top: 20px; }
.planned .pill { margin-right: 6px; }

/* The instructor */
.split { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; align-items: center; }
.talk { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.talk li { padding: 12px 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.talk .you { color: var(--muted); }
.talk .you::before { content: "You: "; }
.talk .ai::before { content: "Instructor: "; color: var(--cyan); }
.ticks { list-style: none; padding: 0; margin: 16px 0; }
.ticks li { padding: 4px 0 4px 26px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 4px; color: var(--green); }

/* Pricing */
.prices { align-items: stretch; }
.price { display: flex; flex-direction: column; }
.price.featured { border-color: var(--cyan); }
.price .amount { font-size: 34px; font-weight: 700; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.price .amount span { font-size: 16px; font-weight: 400; color: var(--muted); }
.price .ticks { flex: 1; }
.price .button { width: 100%; }
.fine { margin-top: 20px; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style-position: outside; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* Forms and the account page */
.page { padding: 48px 0 64px; }
.page h1 { font-size: clamp(26px, 5vw, 34px); }
.stack { display: grid; gap: 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input {
  font: inherit;
  width: 100%;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  min-width: 0;
}
input:focus { border-color: var(--cyan); outline: none; }
.field { margin-bottom: 16px; }
.notice { border: 1px solid var(--line); border-left-width: 3px; border-radius: 8px; padding: 12px 14px; background: var(--card); }
.notice p:last-child { margin-bottom: 0; }
.notice.info { border-left-color: var(--cyan); }
.notice.ok { border-left-color: var(--green); }
.notice.warn { border-left-color: var(--amber); }
.notice.error { border-left-color: var(--red); color: #ffb4b4; }
.message:empty { display: none; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
.big-number { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.card h2 { font-size: 19px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card > .actions { margin-top: 16px; }
.card > .actions + p { margin: 12px 0 0; }

dialog {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  width: min(440px, calc(100vw - 32px));
}
dialog::backdrop { background: rgba(5, 8, 11, .75); }
dialog h2 { font-size: 20px; }

/* Draft legal pages */
.draft-banner { border: 1px dashed var(--amber); color: var(--amber); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 28px; }
.legal h2 { font-size: 19px; margin-top: 28px; }
.legal .todo { color: var(--muted); font-style: italic; }

@media (max-width: 820px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
}

@media (max-width: 520px) {
  section { padding: 40px 0; }
  .site-nav { gap: 14px; }
  .site-nav .optional { display: none; }
  .hero .lead { font-size: 17px; }
  .hero .actions .button { flex: 1 1 100%; }
  .card { padding: 16px; }
  dl.facts { grid-template-columns: 1fr; gap: 2px; }
  dl.facts dd { margin-bottom: 8px; }
  .actions button, .actions .button { flex: 1 1 auto; }
}
