/* Airnate site styles. Shared by index.html, reserve-terms.html and reserved.html. */
:root {
  --bg: #f4f7f6; --fg: #0f2a2e; --muted: #4c6266; --accent: #1f8a72;
  /* Darker accent for text and small UI on light backgrounds (AA contrast). */
  --accent-ink: #1a7561;
  --surface: #ffffff; --line: #d5ddda;
  /* Product imagery sits on a light panel in both colour modes. */
  --panel: #ffffff; --panel-line: #e1e8e5;
  --radius: 20px; --max: 1120px; --gutter: 16px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b1c1f; --fg: #e8f2ef; --muted: #9db3b0; --accent: #7fe0c8; --accent-ink: #7fe0c8;
          --surface: #10272b; --line: #24413f; --panel: #eef3f1; --panel-line: #eef3f1; }
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--bg); color: var(--fg); overflow-x: hidden;
       font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 124px; }
@media (min-width: 860px) { [id] { scroll-margin-top: 88px; } }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(760px + 2 * var(--gutter)); }

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

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent);
               -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
               border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 20px; font-weight: 700;
        letter-spacing: -.02em; color: var(--fg); text-decoration: none; }
.logo img { width: 30px; height: 30px; }
.site-nav { order: 3; flex: 1 0 100%; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav ul { list-style: none; padding: 0; display: flex; gap: 4px; white-space: nowrap; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--muted);
              text-decoration: none; font-size: 15px; border-radius: 8px; }
.site-nav a:hover { color: var(--fg); }
.header-row .btn { margin-left: auto; }
@media (min-width: 860px) {
  .site-nav { order: 0; flex: 0 1 auto; margin: 0 0 0 auto; padding: 0; overflow: visible; }
  .header-row { flex-wrap: nowrap; }
  .header-row .btn { margin-left: 8px; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 24px;
       border-radius: 999px; font: inherit; font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none;
       cursor: pointer; border: 2px solid var(--fg); background: var(--fg); color: var(--bg); text-align: center; }
.btn:hover { background: color-mix(in srgb, var(--fg) 85%, var(--bg)); text-decoration: none; }
.btn-secondary { background: transparent; color: var(--fg); }
.btn-secondary:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); }
.btn-small { min-height: 44px; padding: 8px 18px; font-size: 15px; }
.btn-large { min-height: 56px; padding: 14px 32px; font-size: 18px; }

/* ---------- type ---------- */
h1, h2, h3 { letter-spacing: -.025em; line-height: 1.12; font-weight: 700; }
h1 { font-size: clamp(40px, 8vw, 76px); letter-spacing: -.035em; }
h2 { font-size: clamp(30px, 5vw, 48px); }
h3 { font-size: 20px; letter-spacing: -.01em; line-height: 1.3; }
.eyebrow { display: block; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px; }
.lead { font-size: clamp(18px, 2.4vw, 22px); color: var(--muted); max-width: 40ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
p + p { margin-top: 12px; }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 11vw, 136px) 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 6vw, 64px); }
.section-head .lead { margin-top: 18px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .lead { margin-left: auto; margin-right: auto; }

.panel { background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--radius); overflow: hidden; }
.panel img { width: 100%; }
figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 9vw, 104px) 0 clamp(56px, 8vw, 96px); text-align: center; }
.hero h1 { max-width: 14ch; margin: 0 auto; }
.hero .lead { margin: 24px auto 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.hero-figure { margin-top: clamp(40px, 7vw, 72px); }
.hero-figure .panel { padding: clamp(12px, 4vw, 48px) clamp(8px, 4vw, 64px) 0; background: linear-gradient(180deg, var(--panel) 0%, #eef3f1 100%); }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* ---------- facts ---------- */
.facts { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.section-alt .fact { background: var(--bg); }
.fact strong { font-size: clamp(34px, 5vw, 46px); line-height: 1; letter-spacing: -.03em; }
.fact p { color: var(--muted); }
.fact .source { margin-top: auto; font-size: 14px; }
.disclaimer { margin-top: 28px; padding: 18px 20px; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent);
              border-radius: 0 12px 12px 0; max-width: 760px; }

/* ---------- sensors ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.section-alt .card { background: var(--bg); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 16px; }
.card .tag { display: inline-block; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--accent-ink);
             border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); border-radius: 999px; padding: 2px 10px; }
.extras { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: 16px; padding: 0; list-style: none; }
.extras li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: middle; }

/* ---------- 3D viewer ---------- */
.viewer { position: relative; }
.viewer model-viewer { display: block; width: 100%; height: clamp(340px, 62vw, 600px); background-color: var(--panel); --poster-color: var(--panel); }
.viewer model-viewer:not(:defined) { background: var(--panel) url(/assets/img/hero-charcoal.webp) center / contain no-repeat; }
.viewer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.viewer-bar p { font-size: 14px; color: var(--muted); }

/* ---------- inside ---------- */
.split { display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: 1.15fr 1fr; } }
.callouts { list-style: none; padding: 0; display: grid; gap: 4px; counter-reset: c; }
.callouts li { counter-increment: c; display: grid; grid-template-columns: 36px 1fr; gap: 4px 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.callouts li:last-child { border-bottom: 1px solid var(--line); }
.callouts li::before { content: counter(c); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
                       font-size: 14px; font-weight: 700; color: var(--accent-ink); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); }
.callouts h3 { font-size: 17px; }
.callouts p { color: var(--muted); font-size: 16px; }
.figure-stack { display: grid; gap: 24px; }
.figure-pair { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: clamp(32px, 5vw, 56px); }
@media (min-width: 860px) { .figure-pair { grid-template-columns: 1.6fr 1fr; align-items: start; } }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.section-alt .table-wrap { background: var(--bg); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
caption { caption-side: bottom; text-align: left; padding: 12px 16px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { font-size: 14px; color: var(--muted); font-weight: 600; white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; white-space: nowrap; }
.v { white-space: nowrap; }
.v::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; border: 2px solid var(--muted); }
.v-yes::before { background: var(--accent); border-color: var(--accent); }
.v-exp::before { border-color: var(--accent); }
.v-no::before { border-color: var(--muted); background: transparent; width: 10px; height: 2px; border: 0; background: var(--muted); border-radius: 1px; vertical-align: 3px; }
.matter-note { margin-top: 28px; display: grid; gap: 10px; max-width: 760px; }

/* ---------- specs ---------- */
.specs { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .specs div { grid-template-columns: 220px 1fr; gap: 24px; } }
.specs dt { font-weight: 600; }
.specs dd { color: var(--muted); }

/* ---------- roadmap ---------- */
.roadmap { list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .roadmap { grid-template-columns: repeat(4, 1fr); } }
.roadmap li { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.section-alt .roadmap li { background: var(--bg); }
.roadmap li.now { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.roadmap .when { display: block; font-size: 14px; font-weight: 600; color: var(--accent-ink); margin-bottom: 8px; }
.roadmap h3 { font-size: 18px; margin-bottom: 6px; }
.roadmap p { font-size: 15px; color: var(--muted); }

/* ---------- reserve ---------- */
.reserve-card { display: grid; gap: clamp(28px, 5vw, 56px); grid-template-columns: 1fr; align-items: center;
                background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 5vw, 56px); }
@media (min-width: 900px) { .reserve-card { grid-template-columns: 1fr 1fr; } }
.price { font-size: clamp(48px, 8vw, 72px); font-weight: 700; letter-spacing: -.04em; line-height: 1; margin: 12px 0 8px; }
.price small { font-size: 18px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.checklist { list-style: none; padding: 0; display: grid; gap: 12px; margin: 24px 0 0; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg); }
.reserve-action { display: grid; gap: 14px; }
.reserve-action .btn { width: 100%; }
.test-mode { font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
               min-height: 64px; padding: 16px 0; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
                      border: 1px solid var(--line); font-size: 20px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 22px; color: var(--muted); max-width: 64ch; }

/* ---------- simple pages ---------- */
.page { padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 112px); }
.page h1 { font-size: clamp(34px, 6vw, 52px); margin-bottom: 20px; }
.page h2 { font-size: 22px; letter-spacing: -.015em; margin: 40px 0 12px; }
.page p, .page li { color: var(--muted); }
.page strong { color: var(--fg); }
.page ul, .page ol { padding-left: 22px; display: grid; gap: 8px; }
.draft { margin: 0 0 24px; padding: 12px 16px; border: 1px solid #c9a227; background: #fff8e1; color: #3d3000; border-radius: 10px; font-size: 15px; }
.draft strong { color: inherit; }
@media (prefers-color-scheme: dark) { .draft { background: #2b2410; color: #f3e6b8; } }

/* ---------- footer ---------- */
.site-footer { padding: 48px 0 64px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; align-items: center; list-style: none; padding: 0; }
.footer-links a, .footer-links .consent-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.footer-links a:hover, .footer-links .consent-link:hover { color: var(--fg); }
.trademarks { margin-top: 20px; max-width: 90ch; font-size: 13px; }

/* ---------- consent banner (markup comes from /consent.js) ---------- */
.consent-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1000; max-width: 560px; margin: 0 auto;
                  padding: 14px 16px; background: var(--bg); color: var(--fg); border: 1px solid var(--muted); border-radius: 10px;
                  box-shadow: 0 8px 24px rgba(0,0,0,.18); font-size: 14px; line-height: 1.45; }
.consent-banner[hidden] { display: none; }
.consent-banner p { color: var(--fg); max-width: none; margin: 0 0 10px; }
.consent-banner a { color: inherit; }
.consent-actions { display: flex; gap: 8px; }
.consent-btn { flex: 1; min-height: 44px; padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer;
               color: var(--fg); background: var(--bg); border: 2px solid var(--fg); border-radius: 8px; }
.consent-btn:hover { background: color-mix(in srgb, var(--fg) 10%, var(--bg)); }
.consent-banner:focus { outline: none; }
.consent-btn:focus-visible, .consent-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.consent-link { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

/* Colour swatches (one solid colour per device) */
.swatches { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; }
.viewer-bar .swatches { margin-top: 0; justify-content: flex-start; }
.swatch { width: 44px; height: 44px; border-radius: 50%; padding: 0; cursor: pointer; background: var(--sw);
          border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--panel-line); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--fg); }
.swatch:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.swatch-name { font-size: 15px; color: var(--muted); min-width: 6ch; text-align: left; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Tinted backdrop behind product images and the 3D model (no white on white) */
.hero-figure .panel, .viewer .panel, #specs .panel { background: radial-gradient(120% 90% at 50% 35%, #eef3f0 0%, #d9e4de 70%, #cddad3 100%); border-color: #d2ddd7; }
.viewer model-viewer { background-color: transparent; --poster-color: transparent; }
.viewer model-viewer:not(:defined) { background: transparent url(/assets/img/hero-charcoal.webp) center / contain no-repeat; }
