/* ---------------------------------------------------------------------------
   AviHawk marketing stylesheet.

   Replaces the neo-brutalist teal treatment on the public pages (20 Oct 2026).
   That style was confident and it was wrong for who reads these pages: a flight
   school owner in their fifties deciding whether to trust a stranger with the
   operation's data. Hard black borders, all-caps body copy and a 12px offset
   shadow read as a design exercise, and the thing being sold here is competence.

   The app behind the login keeps its existing look for now. A marketing site and
   an application looking different is normal; a sales page that undercuts the
   sale is not.

   Self-contained on purpose — no Tailwind CDN, no webfonts, no network at all.
   The CDN build is a development tool that ships a compiler to the browser and
   flashes unstyled content on a slow connection, which is the first impression.
--------------------------------------------------------------------------- */

:root {
  --ink:        #0b1726;
  --body:       #37485c;
  --muted:      #6b7b8d;
  --line:       #e3e9ef;
  --line-soft:  #eef2f6;
  --bg:         #ffffff;
  --bg-soft:    #f7f9fb;
  --brand:      #0e4c75;
  --brand-dark: #0a3a5a;
  --brand-tint: #eaf2f8;
  --good:       #0f7a4f;
  --warn:       #9a6b00;
  --bad:        #a32020;
  --radius:     8px;
  --radius-sm:  5px;
  --shadow:     0 1px 2px rgba(11,23,38,.05), 0 8px 24px -12px rgba(11,23,38,.18);
  --maxw:       1080px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); letter-spacing: -0.022em; }
h3 { font-size: 1.0625rem; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

strong { color: var(--ink); font-weight: 650; }

/* Visible focus everywhere. The buyers are older and some of them keyboard. */
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; top: -60px; left: 12px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; transition: top .15s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ------------------------------------------------------------------ header */

.site-header { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(8px); position: sticky; top: 0; z-index: 40; }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand svg { display: block; color: var(--brand); }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
/* Scoped to :not(.btn) because `.site-nav a` outranks `.btn-primary` on specificity — without
   it the header's Start free button rendered body-grey text on brand-blue, which is the one
   control on the page that has to be legible. */
.site-nav a:not(.btn) { color: var(--body); padding: 8px 12px; border-radius: var(--radius-sm); font-size: .95rem; font-weight: 500; }
.site-nav a:not(.btn):hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius); border: 1px solid transparent;
  font-size: 1rem; font-weight: 600; cursor: pointer; text-align: center;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: #c6d2de; background: var(--bg-soft); }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------ hero */

.hero { padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 16ch; }
.hero .lede { font-size: 1.2rem; max-width: 56ch; color: var(--body); }
.hero .btn-row { margin-top: 28px; }
.hero .under { margin-top: 16px; font-size: .9rem; color: var(--muted); }

.eyebrow {
  display: inline-block; margin-bottom: 18px; padding: 5px 12px;
  background: var(--brand-tint); color: var(--brand-dark);
  border-radius: 99px; font-size: .8rem; font-weight: 650; letter-spacing: .01em;
}

/* ------------------------------------------------------------------ sections */

section { padding: 64px 0; }
section.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 6px; }
.card p { font-size: .95rem; color: var(--body); }
.card .ico { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: var(--brand-tint); color: var(--brand); margin-bottom: 14px; }

/* ------------------------------------------------------------------ price */

.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.price-card.featured { border-color: var(--brand); border-width: 2px; }
.price-big { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 4px; }
.price-big .amount { font-size: 3rem; font-weight: 700; color: var(--ink); letter-spacing: -0.04em; line-height: 1; }
.price-big .per { color: var(--muted); font-size: 1rem; }
.price-note { color: var(--muted); font-size: .92rem; }

ul.ticks { list-style: none; margin: 22px 0 0; padding: 0; }
ul.ticks li { position: relative; padding: 7px 0 7px 28px; font-size: .97rem; border-top: 1px solid var(--line-soft); }
ul.ticks li:first-child { border-top: 0; }
ul.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 15px; width: 11px; height: 6px;
  border-left: 2px solid var(--good); border-bottom: 2px solid var(--good);
  transform: rotate(-45deg);
}

/* ------------------------------------------------------------------ table */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.compare { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
table.compare th, table.compare td { text-align: left; padding: 12px 18px; border-top: 1px solid var(--line-soft); }
table.compare thead th { border-top: 0; background: var(--bg-soft); color: var(--muted); font-weight: 600; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
table.compare td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.compare tr.us td { background: var(--brand-tint); font-weight: 650; color: var(--ink); }
table.compare td.quote { color: var(--warn); font-style: italic; }

/* ------------------------------------------------------------------ board */

/* A schematic of the ops board, drawn in CSS. It shows what the product does —
   an open squawk is what stops an aircraft being bookable — rather than a
   screenshot, because a screenshot of a demo school is a photograph of nothing. */
.board { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.board-head { padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--bg-soft); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.board-row { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-top: 1px solid var(--line-soft); font-size: .95rem; }
.board-row:first-of-type { border-top: 0; }
.board-row .tail { font-weight: 650; color: var(--ink); min-width: 74px; font-variant-numeric: tabular-nums; }
.board-row .what { color: var(--muted); flex: 1; min-width: 0; }
.pill { font-size: .78rem; font-weight: 650; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.pill.free { background: #e8f5ee; color: var(--good); }
.pill.out  { background: var(--brand-tint); color: var(--brand-dark); }
.pill.due  { background: #fdf3e0; color: var(--warn); }
.pill.gnd  { background: #fbeaea; color: var(--bad); }

/* ------------------------------------------------------------------ faq */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 34px 18px 0; font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 25px; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 28px; }
.faq .answer { padding: 0 0 20px; color: var(--body); font-size: .97rem; }

/* ------------------------------------------------------------------ cta band */

.band { background: var(--brand); color: #fff; padding: 56px 0; text-align: center; }
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,.86); max-width: 54ch; margin-inline: auto; }
.band .btn-primary { background: #fff; color: var(--brand-dark); }
.band .btn-primary:hover { background: #eef4f9; color: var(--brand-dark); }
.band .btn-row { justify-content: center; margin-top: 26px; }

/* ------------------------------------------------------------------ footer */

.site-footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: .9rem; color: var(--muted); }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer .legal { width: 100%; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: .84rem; line-height: 1.55; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 48px 0 44px; }
  section { padding: 48px 0; }
  .site-nav a { padding: 8px 9px; font-size: .9rem; }
}

/* ------------------------------------------------------------------ auth */

/* Sign-up and log-in share the marketing chrome rather than the app's, because they sit at
   the exact point the sale is won or lost. A landing page in one visual language handing
   over to a form in another reads as a different company. */
.auth { max-width: 460px; margin: 0 auto; padding: 56px 20px 72px; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.auth h1 { font-size: 1.7rem; margin-bottom: 6px; }
.auth .sub { color: var(--muted); font-size: .97rem; margin-bottom: 24px; }

.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field > span .opt { color: var(--muted); font-weight: 400; }
.field input {
  width: 100%; padding: 11px 13px; font-size: 1rem; font-family: inherit; color: var(--ink);
  background: #fff; border: 1px solid #ccd6e0; border-radius: var(--radius-sm);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14,76,117,.14); }
.field .hint { display: block; margin-top: 5px; margin-bottom: 0; font-size: .82rem; font-weight: 400; color: var(--muted); }

.auth .btn { width: 100%; }
.auth .alt { margin-top: 20px; font-size: .92rem; color: var(--muted); text-align: center; }

.alert { padding: 12px 14px; border-radius: var(--radius-sm); font-size: .93rem; margin-bottom: 20px; }
.alert-bad  { background: #fbeaea; color: #7d1a1a; border: 1px solid #f0cdcd; }
.alert-good { background: #e8f5ee; color: #11583a; border: 1px solid #c9e6d6; }

.reassure { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: .88rem; color: var(--muted); }
.reassure li { margin-bottom: 5px; }
.reassure ul { margin: 0; padding-left: 18px; }
