/* =============================================================================
   site.css — the public pages (home, how it works, FAQ).
   =============================================================================
   Plain, fast, no framework: these pages are read on a hangar floor on a
   phone as often as on a desk. The verify (/v), share (/s) and tool pages
   keep their own styles; this file is only for the marketing pages.

   THE LOOK (ui-refresh, owner, 14 Nov 2026) is the app's: a light grey
   page, white cards with large rounded corners, pill-shaped buttons, one
   blue for actions, and the app's STATUS PANEL colours — deep green for
   airworthy, a light yellow-green for airworthy with deferred items, amber
   for cautions. Headings in Space Grotesk, text in Inter.

   FONTS ARE SERVED FROM THIS SITE (assets/fonts/, from the @fontsource
   packages 5.3.0, SIL Open Font License — the licence files sit beside
   them): no page loads anything from another site, and nobody's browser
   tells a font service which page they read. Latin only; other scripts
   fall back to the system font.
   ========================================================================== */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
             src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
             src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
             src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
             src: url("/assets/fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap;
             src: url("/assets/fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap;
             src: url("/assets/fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap;
             src: url("/assets/fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }

:root {
  --paper: #f4f6f8; --card: #ffffff; --ink: #14202b; --text: #3b4854; --muted: #55616d;
  --line: #e6eaee; --line-strong: #c3cad1;
  --blue: #1f5fbf; --blue-ink: #174a96;
  --green: #14532d; --green-soft: #e6f2ea;
  --defer: #e1eda8; --defer-line: #b9cc6a; --defer-ink: #2c3a0a;
  --amber-bg: #fff4dc; --amber-line: #e9c987; --amber-ink: #6b4300;
  --radius: 20px; --radius-sm: 16px; --max: 72rem;
  --display: "Space Grotesk", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  --body: "Inter", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.55; }
a { color: var(--blue); }
a:hover { color: var(--blue-ink); }
img, svg { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); }

/* Header / nav */
header.site { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 4rem; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 700; font-size: 1.15rem; white-space: nowrap;
         text-decoration: none; color: var(--ink); }
.brand .mark { width: 2rem; height: 2rem; border-radius: 10px; background: var(--green); display: grid; place-items: center; }
nav.main { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .25rem 1.25rem; }
nav.main a { color: var(--ink); text-decoration: none; font-weight: 500; padding: .6rem 0; }
nav.main a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); }
nav.main a.cta { background: var(--blue); color: #fff; padding: .6rem 1.1rem; border-radius: 999px; font-weight: 600; box-shadow: none; }
nav.main a.cta:hover { background: var(--blue-ink); }
nav.main a { white-space: nowrap; }
@media (max-width: 760px) { nav.main { gap: .25rem .9rem; } nav.main a { font-size: .95rem; } nav.main a.hide-sm { display: none; } }
/* Phones and narrow windows (fixed 16 Nov 2026): two rows — the brand on the
   first; the links and "Get started" on the second, on one line, which scrolls
   sideways if a page ever carries more links than fit. Before, the links
   wrapped into a stack beside the brand and "Get started" broke inside its
   button at 320–360 px. Anchors (#pricing, #start) land below the header. */
@media (max-width: 760px) {
  header.site .wrap { flex-wrap: wrap; gap: 0 1rem; min-height: 0; padding-top: .6rem; }
  nav.main { flex: 1 1 100%; flex-wrap: nowrap; justify-content: flex-start; gap: 0 1.1rem; margin-top: .1rem;
             overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  nav.main::-webkit-scrollbar { display: none; }
  nav.main a { flex: none; }
  nav.main a.cta { margin-left: auto; padding: .45rem 1rem; }
  [id] { scroll-margin-top: 6.5rem; }
}
/* Between phone and desktop the full link list doesn't fit beside the brand:
   keep the shorter list on one line. */
@media (min-width: 761px) and (max-width: 1000px) { nav.main a.hide-sm { display: none; } nav.main { flex-wrap: nowrap; } }

/* Hero */
.hero { padding: 4rem 0 3rem; }
.hero h1 { font-size: clamp(2.1rem, 4.8vw, 3.4rem); line-height: 1.05; margin: 0 0 1rem; letter-spacing: -.02em; }
.hero p.lead { font-size: 1.15rem; color: var(--text); max-width: 40rem; margin: 0 0 1.75rem; }
.hero .grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 860px) { .hero .grid { grid-template-columns: 1fr; } }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn { display: inline-block; padding: .85rem 1.4rem; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-ink); color: #fff; }
.btn.secondary { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.btn.secondary:hover { border-color: var(--blue); }
.fine { color: var(--muted); font-size: .9rem; }

/* The app's status panel, as on the phone: the word, why, what runs out next. */
.status-stack { display: grid; gap: .9rem; }
.status-panel { border-radius: var(--radius); padding: 1.35rem 1.4rem; display: grid; gap: .75rem;
                background: var(--green); color: #fff; }
.status-panel .word { display: flex; align-items: center; gap: .75rem; font-family: var(--display); font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.status-panel .why { color: var(--green-soft); margin: 0; }
.status-panel .next { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
                      background: rgba(255,255,255,.14); border-radius: 12px; padding: .75rem .9rem; }
.status-panel .next small { display: block; color: var(--green-soft); font-size: .78rem; }
.status-panel .next b { font-family: var(--display); font-size: 1.15rem; white-space: nowrap; }
.status-panel.deferred { background: var(--defer); color: var(--defer-ink); border: 1px solid var(--defer-line); }
.status-panel.deferred .why, .status-panel.deferred .next small { color: var(--defer-ink); }
.status-panel.deferred .next { background: rgba(44,58,10,.10); }
.sample-note { color: var(--muted); font-size: .8rem; margin: 0; }

/* A mocked logbook page: plain HTML, no screenshot to go stale. */
.page-mock { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
             box-shadow: 0 12px 40px rgba(20,32,43,.08); padding: 1.1rem 1.25rem; font-size: .9rem; }
.page-mock .hdr { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 2px solid var(--ink); padding-bottom: .5rem; margin-bottom: .6rem; font-weight: 700; }
.page-mock .entry { border-bottom: 1px solid var(--line); padding: .6rem 0; }
.page-mock .entry:last-of-type { border-bottom: 0; }
.page-mock .meta { color: var(--muted); font-size: .8rem; }
.page-mock .sig { margin-top: .45rem; padding: .5rem .7rem; background: var(--green-soft); color: var(--green); border-radius: 10px; font-size: .82rem; }
.page-mock .qr { float: right; width: 3.2rem; height: 3.2rem; margin-left: .75rem;
                 background: repeating-linear-gradient(90deg, var(--ink) 0 .2rem, transparent .2rem .4rem),
                             repeating-linear-gradient(0deg, var(--ink) 0 .2rem, transparent .2rem .4rem);
                 background-blend-mode: multiply; opacity: .85; border: 3px solid #fff; outline: 1px solid var(--line); border-radius: 4px; }

/* Sections */
section { padding: 3.25rem 0; }
section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); line-height: 1.15; margin: 0 0 .6rem; letter-spacing: -.015em; }
h3 { font-size: 1.15rem; margin: 0 0 .4rem; font-weight: 600; }
p.sub { color: var(--text); margin: 0 0 2rem; max-width: 46rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
section.alt .card { background: var(--paper); border-color: transparent; }
.card .n { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--blue); color: #fff;
           font-family: var(--display); font-weight: 700; margin-bottom: .75rem; }
.card p { margin: 0; color: var(--text); }
.card .more { display: inline-block; margin-top: .75rem; font-weight: 600; }
.reg { font-size: .85rem; color: var(--muted); margin-top: .6rem; }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.1rem; }
.price { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
section.alt .price { background: var(--paper); border-color: transparent; }
.price .amt { font-family: var(--display); font-size: 2.6rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.price .per { color: var(--muted); }
.price ul { padding-left: 1.1rem; color: var(--text); margin: 1rem 0 0; }
.tint { background: var(--defer); border: 1px solid var(--defer-line); color: var(--defer-ink);
        border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin-top: 1.25rem; }

/* FAQ */
details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 1.25rem; margin-bottom: .75rem; }
details[open] { border-color: var(--line-strong); }
summary { cursor: pointer; font-weight: 600; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--blue); font-weight: 700; flex: none; }
details[open] summary::after { content: "–"; }
details .a { padding: 0 0 1.1rem; color: var(--text); }
details .a p { margin: 0 0 .6rem; }
details > p { margin: 0; padding: 0 0 1.1rem; color: var(--text); }   /* bare answer paragraph */
details > p + p { padding-top: 0; margin-top: -.5rem; }
.faq-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; }
.faq-nav a { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .45rem .9rem; text-decoration: none; color: var(--ink); font-size: .9rem; }
.faq h2 { font-size: 1.4rem; margin: 2rem 0 .8rem; }

/* Notes & footer */
.note { background: var(--amber-bg); border: 1px solid var(--amber-line); border-radius: var(--radius-sm); padding: 1rem 1.25rem; color: var(--amber-ink); }
.note b { color: var(--amber-ink); }
footer.site { padding: 2.5rem 0 3rem; background: var(--ink); color: #c9d1d8; font-size: .9rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
footer.site a { color: #ffffff; margin-right: 1rem; display: inline-block; padding: .3rem 0; }
footer.site a:hover { color: var(--defer); }
table.compare { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
table.compare th, table.compare td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.compare th { background: var(--paper); font-weight: 600; }
table.compare tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) { table.compare { font-size: .9rem; } table.compare th, table.compare td { padding: .6rem .7rem; } }

/* =============================================================================
   Long reading pages: the manual (/manual), the privacy policy (/privacy) and
   the contact page (/contact) — added 15 Nov 2026.
   =============================================================================
   One narrow column of text (.doc), a contents list (.toc), wide tables that
   scroll inside their own box on a phone (.table-scroll), tick-box lists for
   the training checklist (.checklist), and a print style so "Print" in the
   browser gives a clean copy of the manual with no header, footer or buttons.
   ========================================================================== */
.doc { max-width: 50rem; }
.doc h2 { margin: 2.75rem 0 .75rem; padding-top: .5rem; scroll-margin-top: 5rem; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin: 1.75rem 0 .5rem; }
.doc p, .doc li { color: var(--text); }
.doc p { margin: 0 0 1rem; }
.doc ul, .doc ol { margin: 0 0 1rem; padding-left: 1.35rem; }
.doc li { margin: 0 0 .45rem; }
.doc li > ul, .doc li > ol { margin: .45rem 0 0; }
.doc b, .doc strong { color: var(--ink); }
.doc .updated { color: var(--muted); font-size: .9rem; }
.table-scroll { overflow-x: auto; margin: 0 0 1.25rem; border-radius: var(--radius-sm); }
.table-scroll table.compare { min-width: 30rem; }
.doc table.compare td { color: var(--text); }
.toc { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 2rem; }
.toc li { margin: 0 0 .4rem; break-inside: avoid; }
.toc a { text-decoration: none; font-weight: 500; }
.toc a:hover { text-decoration: underline; }
@media (max-width: 640px) { .toc { columns: 1; } }
.doc ul.checklist { list-style: none; padding-left: 0; }
.doc ul.checklist li { position: relative; padding-left: 1.9rem; }
.doc ul.checklist li::before { content: ""; position: absolute; left: 0; top: .2rem; width: 1.05rem; height: 1.05rem;
                               border: 1.5px solid var(--line-strong); border-radius: 4px; background: var(--card); }
/* Contact page: one card per way of reaching us. */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.1rem; }
.contact-cards .card a.addr { font-family: var(--display); font-weight: 600; font-size: 1.1rem; word-break: break-word; }
.contact-cards .card p { margin: 0 0 .6rem; }
@media print {
  header.site, footer.site, .no-print { display: none !important; }
  body { background: #fff; }
  section, .hero { padding: .5rem 0; }
  section.alt { border: 0; }
  .doc { max-width: none; }
  .doc h2 { break-after: avoid; }
  .doc h3 { break-after: avoid; }
  .table-scroll { overflow: visible; }
  table.compare tr, .doc li { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}

/* The contact form (/contact; assets/contact-page.js). Fields are full width
   and at least 44px tall, for thumbs on a phone. */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; max-width: 44rem; }
.form-card h2 { font-size: 1.4rem; margin: 0 0 .35rem; }
.form-card label { display: block; font-weight: 600; margin: 1rem 0 .3rem; color: var(--ink); }
.form-card .hint { color: var(--muted); font-size: .88rem; margin: .3rem 0 0; }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; min-height: 2.75rem; padding: .6rem .75rem; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; }
.form-card textarea { min-height: 9rem; resize: vertical; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-card button { margin-top: 1.25rem; font: inherit; font-weight: 600; cursor: pointer; border: 0; border-radius: 999px;
                    padding: .85rem 1.6rem; background: var(--blue); color: #fff; }
.form-card button:hover { background: var(--blue-ink); }
.form-card button:disabled { opacity: .6; cursor: default; }
.form-status { border-radius: var(--radius-sm); padding: .8rem 1rem; margin: 1rem 0 0; }
.form-status.bad { background: #fde8ea; color: #7a0016; }
.form-status.ok { background: var(--green-soft); color: var(--green); font-weight: 600; }
/* The robot trap: off-screen, not display:none (some robots skip hidden fields). */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Cloudflare Turnstile on /contact and /feedback (4.102). The widget draws
   itself (about 300 x 65 px); this only gives it room. */
.robot-check { margin-top: 1rem; min-height: 65px; }
.robot-check .robot-note:empty { display: none; }
