/* AI Pilot Academy — landing page. Tokens from the brand system (marketing/brand/tokens.json). */
:root {
  --ink: #14213D;
  --brand: #1F6AD0;
  --brand-hover: #1858AE;
  --accent: #FF8A3D;
  --sky: #DCEBFF;
  --surface: #FFF8EE;
  --card: #FFFFFF;
  --muted: #5B6478;
  --success: #15834F;
  --line: #E6DCCB;
  --space-2: 8px; --space-4: 16px; --space-6: 24px; --space-10: 40px;
  --radius-sm: 8px; --radius-md: 14px; --radius-pill: 999px;
  --display: "Plus Jakarta Sans", "Noto Sans", system-ui, sans-serif;
  --sans: "Inter", "Noto Sans", system-ui, sans-serif;
  --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--space-6)); margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; max-width: 22ch; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 700; }
p { margin: 0; }
.lead { color: var(--muted); font-size: 18px; max-width: 60ch; margin-top: var(--space-4); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: var(--space-6); gap: var(--space-4); }
.top .logo img { height: 44px; width: auto; }
.top nav { display: flex; align-items: center; gap: var(--space-6); }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:hover { color: var(--brand); }
.lang { border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 4px 12px; }
@media (max-width: 720px) { .top nav .hide-sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); font: 700 16px/1 var(--display); text-decoration: none; border-radius: var(--radius-md); padding: 15px 20px; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--surface); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-10); align-items: center; padding-block: var(--space-10) 72px; }
@media (max-width: 920px) { .hero { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(40px, 6.2vw, 68px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; max-width: 13ch; }
.hero .lead { font-size: 19px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-6); }
.hero .reassure { margin-top: var(--space-4); color: var(--muted); font-size: 15px; }

/* The prompt demo: the page's one memorable element */
.demo { background: var(--ink); color: var(--surface); border-radius: 22px; padding: var(--space-6); position: relative; }
.demo-switch { display: inline-flex; background: rgba(255,255,255,.08); border-radius: var(--radius-pill); padding: 4px; gap: 4px; }
.demo-switch button { font: 600 14px/1 var(--sans); color: var(--surface); background: transparent; border: 0; border-radius: var(--radius-pill); padding: 10px 16px; cursor: pointer; }
.demo-switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); }
.bubble { border-radius: 18px; padding: 14px 16px; font-size: 15px; line-height: 1.55; margin-top: var(--space-4); }
.bubble-you { background: var(--brand); color: #fff; margin-left: 15%; border-bottom-right-radius: 6px; }
.bubble-ai { background: var(--card); color: var(--ink); margin-right: 8%; border-bottom-left-radius: 6px; }
.who { display: block; font-size: 12px; font-weight: 600; opacity: .75; margin-bottom: 4px; }
.verdict { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-4); font-size: 14px; color: var(--sky); }
.verdict .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.demo[data-mode="good"] .verdict .dot { background: #4ADE80; }
.demo .tag { color: var(--accent); font-weight: 700; }
.demo-panel[hidden] { display: none; }

/* Sections */
section.block { padding-block: 72px; }
.on-card { background: var(--card); border-block: 1px solid var(--line); }

/* Personas */
.personas { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); margin-top: var(--space-10); }
@media (max-width: 860px) { .personas { grid-template-columns: 1fr; } }
.persona { border-top: 4px solid var(--ink); padding-top: var(--space-4); }
.persona .age { color: var(--muted); font-size: 15px; }
.persona p { margin-top: var(--space-2); }
.persona q { display: block; font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.3; margin-bottom: var(--space-4); quotes: "«\00a0" "\00a0»"; }
html[lang="en"] .persona q { quotes: "“" "”"; }

/* Flight plan */
.plan { list-style: none; padding: 0; margin: var(--space-10) 0 0; position: relative; display: grid; gap: 0; }
.plan::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; border-left: 3px dotted var(--accent); }
.plan li { display: grid; grid-template-columns: 48px 1fr auto; gap: var(--space-4); align-items: start; padding-block: var(--space-4); position: relative; }
.plan .n { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--surface); display: grid; place-items: center; font: 800 18px/1 var(--display); position: relative; z-index: 1; }
.plan li:first-child .n { background: var(--accent); color: var(--ink); }
.plan h3 { margin-top: 4px; }
.plan p { color: var(--muted); font-size: 16px; margin-top: 2px; max-width: 62ch; }
.plan .time { color: var(--muted); font-size: 14px; white-space: nowrap; margin-top: 6px; }
.free { display: inline-block; background: var(--sky); color: var(--ink); font-size: 13px; font-weight: 600; border-radius: var(--radius-pill); padding: 2px 10px; margin-left: var(--space-2); vertical-align: middle; }

/* Inside a module */
.inside { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-4); margin-top: var(--space-10); }
@media (max-width: 900px) { .inside { grid-template-columns: repeat(2, 1fr); } }
.inside div { background: var(--surface); border-radius: var(--radius-md); padding: var(--space-6) var(--space-4); }
.inside .ico { font-size: 28px; line-height: 1; }
.inside h3 { margin-top: var(--space-4); font-size: 17px; }
.inside p { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* Offer */
.offer { display: grid; grid-template-columns: 1fr 420px; gap: var(--space-10); align-items: start; }
@media (max-width: 920px) { .offer { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: grid; gap: var(--space-4); }
.checklist li { padding-left: 34px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--success); }
.checklist li::after { content: ""; position: absolute; left: 7px; top: 9px; width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.price-card { background: var(--ink); color: var(--surface); border-radius: 22px; padding: var(--space-10) var(--space-6); }
.price-card h3 { color: var(--surface); }
.price { font: 800 56px/1 var(--display); margin-top: var(--space-4); letter-spacing: -0.03em; }
.price small { font-size: 18px; font-weight: 600; opacity: .8; letter-spacing: 0; }
.price-card .btn { width: 100%; margin-top: var(--space-6); }
.price-card .fine { font-size: 14px; color: var(--sky); margin-top: var(--space-4); }

/* Free module form */
.freebie { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-10); align-items: center; }
@media (max-width: 860px) { .freebie { grid-template-columns: 1fr; } }
.form { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.form label { width: 100%; font-weight: 600; font-size: 15px; }
.form input { flex: 1 1 240px; font: 400 17px var(--sans); padding: 14px 16px; border: 2px solid var(--muted); border-radius: var(--radius-md); background: var(--card); color: var(--ink); }
.form .note { width: 100%; color: var(--muted); font-size: 14px; }

/* FAQ */
.faq { margin-top: var(--space-10); max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding-block: var(--space-4); }
.faq summary { font: 700 18px/1.4 var(--display); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: var(--space-2); max-width: 64ch; }

/* Footer */
footer { background: var(--ink); color: var(--sky); padding-block: var(--space-10); margin-top: 72px; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: var(--space-6); justify-content: space-between; align-items: center; }
footer a { color: var(--surface); }
footer nav { display: flex; flex-wrap: wrap; gap: var(--space-6); }

/* Legal pages */
.legal { max-width: 760px; padding-block: var(--space-10); }
.legal h1 { font-size: 40px; margin-bottom: var(--space-6); }
.legal h2 { font-size: 22px; margin-top: var(--space-10); }
.legal p, .legal li { margin-top: var(--space-2); }
.todo { background: var(--sky); border-radius: var(--radius-sm); padding: 2px 6px; font-weight: 600; }
.price-card .launch { display: inline-block; margin-top: var(--space-4); background: var(--accent); color: var(--ink); font-weight: 700; font-size: 14px; border-radius: var(--radius-pill); padding: 4px 12px; }
.price-card .launch + .price { margin-top: var(--space-2); }
.price-card .later { color: var(--sky); font-size: 15px; margin-top: var(--space-2); }
