/* =========================================================
   SkyRecon — styles.css
   Tweak the variables below to restyle the whole site.
   ========================================================= */

:root {
  /* Palette — Light Apple-style theme, SkyRecon brand colours */
  --bg:           #ffffff;   /* primary surface */
  --bg-alt:       #f5f7fa;   /* secondary surface (cards, alt sections) */
  --bg-light:     #ffffff;   /* light sections (kept for compatibility) */
  --bg-light-alt: #fafbfd;
  --text:         #1a1d29;   /* primary body text */
  --text-dim:     #6b7280;   /* secondary text */
  --text-dark:    #1a1d29;   /* legacy alias */
  --text-dark-dim:#6b7280;   /* legacy alias */
  --accent:       #233b86;   /* SkyRecon brand navy ("RECON" in logo) */
  --accent-soft:  rgba(35, 59, 134, 0.08);
  --accent-glow:  rgba(35, 59, 134, 0.18);
  --brand-charcoal:#3b3b3b;  /* SkyRecon brand charcoal ("SKY" in logo) */
  --warn:         #d43838;   /* deeper red, readable on light */
  --border:       rgba(10, 14, 26, 0.08);
  --border-dark:  rgba(10, 14, 26, 0.08);

  /* Typography */
  --font:         'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;

  /* Spacing / sizing */
  --container:    1200px;
  --container-narrow: 880px;
  --radius:       14px;
  --radius-sm:    8px;
  --shadow:       0 20px 50px rgba(10, 14, 26, 0.10);
  --shadow-soft:  0 8px 24px rgba(10, 14, 26, 0.06);

  /* Motion */
  --ease:         cubic-bezier(.2, .7, .2, 1);
}

/* Reset-ish */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  /* Nav clearance so snapped sections don't hide behind the fixed header. */
  scroll-padding-top: 72px;
  /* Proximity snap declared here and on body for max browser compatibility. */
  scroll-snap-type: y proximity;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* Put scroll-snap on body too — the body is the scroll container when
     html has default overflow, and some browsers only honor snap when
     set here. */
  scroll-snap-type: y proximity;
  scroll-padding-top: 72px;
  overflow-x: clip; /* `clip` instead of `hidden` — doesn't create a
                       nested scroll container that would break snap. */
}

/* Each top-level section becomes a snap target. */
.hero,
main > section,
.footer {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Tall scroll-driven sections must NOT be snap targets — otherwise
   every wheel tick inside them snaps back to the section's top and
   breaks the video scrub. */
.device-reveal, #comparison {
  scroll-snap-align: none;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: var(--container-narrow); }
.container.center { text-align: center; }

/* ===================== NAV ===================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo { display: inline-flex; align-items: center; }

/* Shared brand logo sizing — applies to nav and footer. The PNG is much
   wider than tall, so size by height and let width scale to preserve ratio. */
.brand-logo {
  height: 34px;
  width: auto;
  display: block;
}
.footer .brand-logo { height: 38px; }

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color .2s var(--ease);
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--accent); }

.nav-cta { white-space: nowrap; }
.nav-mobile-social { display: none; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--text);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease);
  will-change: transform;
}
.btn-lg { padding: 16px 32px; font-size: 15px; }
.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-primary:hover {
  /* Darker shade of the brand navy for the hover state. */
  background: #172a63;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 12px 32px var(--accent-glow);
}
.btn-primary:active { background: #11204d; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.section-light .btn-ghost { color: var(--text-dark); border-color: var(--border-dark); }
.section-light .btn-ghost:hover { color: var(--accent); border-color: var(--accent); }

/* ===================== SECTIONS ===================== */
.section {
  padding: 120px 0;
  position: relative;
}
.section-alt    { background: var(--bg-alt); }
.section-dark   { background: var(--bg); color: var(--text); }
.section-light  { background: var(--bg-light); color: var(--text-dark); }
.section-cta    {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow.dark { color: var(--accent); }

.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--accent-glow); }
  70%  { box-shadow: 0 0 0 12px rgba(35, 59, 134, 0); }
  100% { box-shadow: 0 0 0 0 rgba(35, 59, 134, 0); }
}

.section-title {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.section-title.dark { color: var(--text-dark); }

.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 0 48px;
}
.lede.dark { color: var(--text-dark-dim); }
.section.center .lede, .container.center .lede { margin-left: auto; margin-right: auto; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 100px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1000px 600px at 80% 10%, rgba(35, 59, 134, 0.06), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(35, 59, 134, 0.03), transparent 70%),
    var(--bg);
  z-index: -1;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10, 14, 26, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 14, 26, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}
.hero-title {
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 14px 0 20px;
  color: var(--text-dark);
}
.hero-sub {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 0 36px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.hero-meta li { display: flex; flex-direction: column; gap: 4px; }
.hero-meta strong { font-size: 20px; font-weight: 600; color: var(--text); }
.hero-meta span { font-size: 12px; color: var(--text-dim); letter-spacing: 0.05em; text-transform: uppercase; }

.hero-art img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5));
}

/* Scroll hint anchored to the bottom of the hero */
.hero-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0.75;
  transition: opacity .2s var(--ease), color .2s var(--ease);
}
.hero-scroll-hint:hover { color: var(--accent); opacity: 1; }
.hero-scroll-hint-line {
  display: inline-block;
  width: 1px;
  height: 28px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollHint 1.8s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollHint {
  0%   { transform: scaleY(0); opacity: 0; }
  30%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(20px); opacity: 0; }
}

/* ===================== DEVICE REVEAL (scroll-scrubbed video) ===================== */
.device-reveal {
  position: relative;
  /* Total section height. Scrollable range = this minus 100vh (sticky).
     600vh gives exactly 5 viewport-heights of scroll — one per panel point. */
  height: 600vh;
  background: var(--bg);
}
.device-reveal-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Center the whole composition (heading + video + panel) vertically
     inside the sticky viewport. */
  justify-content: center;
  gap: clamp(20px, 3vh, 36px);
  background:
    radial-gradient(900px 600px at 30% 55%, rgba(35, 59, 134, 0.05), transparent 70%),
    var(--bg);
}

/* Compact heading row. Top padding is just enough to visually clear the
   fixed nav if the composition ends up near the top of the viewport. */
.device-reveal-meta {
  flex: 0 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
  text-align: center;
  pointer-events: none;
}
.device-reveal-meta .eyebrow {
  margin-bottom: 10px;
}
.device-reveal-title {
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

.device-reveal-stage {
  position: relative;
  /* No flex-grow — the stage sizes to its content so the whole
     composition (meta + stage) can be centered as a single block. */
  flex: 0 0 auto;
  display: grid;
  /* Fixed column caps + justify-content:center keeps the video/panel pair
     tight and centered as a single visual group. */
  grid-template-columns: minmax(auto, 560px) minmax(auto, 400px);
  justify-content: center;
  align-items: start;
  gap: clamp(32px, 4vw, 64px);
  padding: 0 clamp(24px, 5vw, 80px);
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  min-height: 0;
}

.stage-video {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  width: 100%;
}
.reveal-video {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: min(80vh, 860px);
  object-fit: contain;
  display: block;
  filter: none;
}

/* ----- Side panel (one item active at a time) ----- */
.stage-panel {
  position: relative;
  /* Center the panel vertically relative to the video's height. */
  align-self: center;
  width: 100%;
  max-width: 400px;
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}
.panel-counter {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}
.panel-counter #panelCurrent {
  color: var(--accent);
  font-size: 22px;
  margin-right: 2px;
  font-variant-numeric: tabular-nums;
}
.panel-counter-sep { margin: 0 4px; opacity: 0.5; }
.panel-counter-total { font-size: 13px; }

.panel-dots {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.panel-dots li {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: rgba(10, 14, 26, 0.12);
  transition: background .3s var(--ease), width .3s var(--ease);
}
.panel-dots li.is-active {
  background: var(--accent);
  width: 28px;
}
.panel-dots li.is-past {
  background: rgba(35, 59, 134, 0.45);
}

/* Cross-fade stack — items overlap in the same spot, only one shown. */
.panel-stack {
  position: relative;
  min-height: 220px;
}
.panel-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity .45s var(--ease),
    transform .45s var(--ease);
  pointer-events: none;
}
.panel-item.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.panel-item h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  color: var(--text);
  line-height: 1.2;
}
.panel-item p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
}
.device-reveal-title {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 8px 0 6px;
}
.device-reveal-sub {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
  letter-spacing: 0.05em;
}

.device-reveal-progress {
  position: absolute;
  left: 50%;
  bottom: 3.5vh;
  transform: translateX(-50%);
  width: min(60vw, 380px);
  height: 2px;
  background: rgba(10, 14, 26, 0.10);
  border-radius: 2px;
  overflow: hidden;
}
.device-reveal-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #4d6cc7);
  transition: width .15s linear;
}


/* ===================== STATS ===================== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.stat-card:hover { transform: translateY(-4px); border-color: var(--accent-soft); box-shadow: var(--shadow); }
.stat-num {
  font-size: clamp(38px, 4.2vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, var(--accent) 0%, #4d6cc7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.stat-card p { margin: 0; color: var(--text-dim); font-size: 15px; }

/* ===================== SPLIT / COMPARE ===================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 80px;
}
.split-body p { color: var(--text-dim); font-size: 16px; margin: 0 0 16px; }

/* Variant: heading + body in the left column, image on the right. */
.split.split-with-image {
  align-items: center;
}
.split-with-image .split-body .eyebrow { margin-bottom: 12px; }
.split-with-image .split-body .section-title { margin-top: 0; margin-bottom: 24px; }
.split-with-image .split-body p:first-of-type { margin-top: 0; }
.split-with-image .split-body p:last-of-type { margin-bottom: 0; }

.split-cta {
  margin-top: 28px;
  align-self: flex-start;
}
.split-cta .btn-arrow {
  transition: transform .25s var(--ease);
  display: inline-block;
}
.split-cta:hover .btn-arrow { transform: translateX(4px); }

.split-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.compare {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.compare-col {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}
.compare-col h3 { margin: 0 0 18px; font-size: 16px; font-weight: 600; }
.compare-col ul li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--text-dim);
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.compare-col ul li:last-child { border-bottom: 0; }
/* Circle + glyph are both absolutely positioned in the SAME 20×20 box,
   vertically centered on the row. Flex centring inside the glyph box
   keeps the × / ✓ dead-centre regardless of font-size tweaks. */
.compare-col ul.x li::before,
.compare-col ul.check li::before,
.compare-col ul.x li::after,
.compare-col ul.check li::after {
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-weight: 700;
}
.compare-col ul.x li::before,
.compare-col ul.check li::before {
  content: "";
  border-radius: 50%;
}
.compare-col ul.x li::before   { background: rgba(212, 56, 56, 0.10); }
.compare-col ul.check li::before { background: var(--accent-soft); }
.compare-col ul.x li::after {
  content: "×";
  color: var(--warn);
  font-size: 16px;
}
.compare-col ul.check li::after {
  content: "✓";
  color: var(--accent);
  font-size: 11px;
}
.compare-col.highlight {
  border-color: var(--accent);
  background:
    linear-gradient(180deg, rgba(35, 59, 134, 0.05) 0%, rgba(35, 59, 134, 0) 100%),
    var(--bg);
  box-shadow: 0 0 0 1px var(--accent-soft), 0 20px 50px rgba(35, 59, 134, 0.10);
}
.compare-col.highlight h3 { color: var(--accent); }

/* ===================== PARALLAX BANNER ===================== */
.parallax {
  position: relative;
  height: 60vh;
  min-height: 420px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.parallax-img {
  position: absolute;
  inset: -15% 0 -15% 0;
  will-change: transform;
}
.parallax-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.parallax-overlay {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: 0 24px;
  text-align: center;
}
.parallax-overlay blockquote {
  margin: 0;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 300;
  line-height: 1.35;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.parallax::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,26,0.35) 0%, rgba(10,14,26,0.2) 50%, rgba(10,14,26,0.6) 100%);
  z-index: 1;
}

/* ===================== SPEC GRID ===================== */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.spec {
  background: var(--bg-light-alt);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-dark);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  /* Icon left, text right */
  display: flex;
  align-items: flex-start;
  gap: 18px;
  /* Let the grid stretch all cards to the tallest row height so the
     final card (with logos) doesn't make its row look lopsided. */
  height: 100%;
}
.spec-grid { align-items: stretch; }
.spec:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(10,14,26,0.12); }
.spec-text { flex: 1; min-width: 0; }
.spec h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; color: var(--text-dark); }
.spec p { margin: 0; color: var(--text-dark-dim); font-size: 14.5px; line-height: 1.5; }

/* Nav-app compatibility logos — small inline logos, no boxes.
   Falls back to text if the logo file is missing (inline onerror in HTML). */
.spec-apps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.spec-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.spec-app img {
  max-height: 16px;
  width: auto;
  display: block;
  opacity: 1;
}
.spec-app span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-dark-dim);
  white-space: nowrap;
}
.spec-app-more {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dark-dim);
  white-space: nowrap;
}

.spec-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  position: relative;
  flex-shrink: 0;
}
.spec-icon::before {
  content: "";
  position: absolute; inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
}
.spec-icon[data-icon="screen"]::before  { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23233b86' stroke-width='2'><rect x='3' y='4' width='18' height='13' rx='2'/><path d='M8 21h8M12 17v4'/></svg>"); }
.spec-icon[data-icon="wave"]::before    { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23233b86' stroke-width='2'><path d='M2 12c2-4 4-4 6 0s4 4 6 0 4-4 6 0 4 4 2 0' stroke-linecap='round'/></svg>"); }
.spec-icon[data-icon="co"]::before      { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23233b86' stroke-width='2'><circle cx='12' cy='12' r='9'/><path d='M8 12a4 4 0 1 1 8 0'/></svg>"); }
.spec-icon[data-icon="battery"]::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23233b86' stroke-width='2'><rect x='2' y='7' width='18' height='10' rx='2'/><path d='M22 11v2'/><rect x='4' y='9' width='10' height='6' fill='%23233b86'/></svg>"); }
.spec-icon[data-icon="wifi"]::before    { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23233b86' stroke-width='2' stroke-linecap='round'><path d='M2 9a16 16 0 0 1 20 0'/><path d='M5 13a11 11 0 0 1 14 0'/><path d='M8.5 16.5a6 6 0 0 1 7 0'/><circle cx='12' cy='20' r='1' fill='%23233b86'/></svg>"); }
.spec-icon[data-icon="shield"]::before  { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23233b86' stroke-width='2' stroke-linejoin='round'><path d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z'/><path d='M9 12l2 2 4-4'/></svg>"); }
.spec-icon[data-icon="antenna"]::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23233b86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 4v11'/><circle cx='12' cy='4' r='1.5' fill='%23233b86'/><rect x='8' y='15' width='8' height='5' rx='1'/><path d='M7 10a6 6 0 0 1 10 0'/><path d='M9 12a3 3 0 0 1 6 0'/></svg>"); }

/* ===================== TABBED FEATURES ===================== */
.feature-tabs-section { padding-bottom: 140px; }

.feature-tabs-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.feature-tabs-head .lede { margin: 0; }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.pill-light {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--accent);
}

/* --- Tab triggers (row) --- */
.feature-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(4px, 1vw, 12px);
  margin: 0 auto 32px;
}
.feature-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition:
    background .25s var(--ease),
    color .25s var(--ease),
    border-color .25s var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
}
.feature-tab:hover { color: var(--text); }
.feature-tab.is-active {
  background: var(--bg-alt);
  color: var(--text);
  border-color: var(--border);
}
.feature-tab-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.feature-tab.is-active .feature-tab-icon {
  color: var(--accent);
}

/* --- Tab panels (cross-fade) --- */
.feature-panels {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: clamp(28px, 4vw, 64px);
  overflow: hidden;
  min-height: 0;
}
.feature-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity .45s var(--ease),
    transform .45s var(--ease);
  pointer-events: none;
}
.feature-panel:not(.is-active) {
  position: absolute;
  inset: clamp(28px, 4vw, 64px);
}
.feature-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}
.feature-panel[hidden] { display: grid; } /* keep grid for transition */

.feature-panel-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  justify-content: center;
}
.feature-panel-text h3 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0;
}
.feature-panel-text p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text-dim);
}
.feature-panel-bullets {
  width: 100%;
  margin: 4px 0;
}
.feature-panel-bullets li {
  padding: 10px 0 10px 26px;
  position: relative;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 14.5px;
}
.feature-panel-bullets li:last-child { border-bottom: 1px solid var(--border); }
.feature-panel-bullets li::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
}
.feature-panel-cta { margin-top: 6px; }

/* Fine-print disclaimer inside a feature panel (e.g. CO monitoring). */
.feature-disclaimer {
  margin: 14px 0 0;
  padding: 8px 10px;
  font-size: 8px;
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--text-dim);
  background: var(--bg-alt);
  border-left: 2px solid var(--border-dark);
  border-radius: 6px;
}
.feature-disclaimer strong { color: var(--text-dark); font-weight: 400; }

.feature-panel-art img {
  width: 100%;
  height: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  /* Drop-shadow on the alpha shape itself (not a rectangle box),
     so transparent PNGs cast a shadow around the product, not the canvas. */
  filter: drop-shadow(0 24px 40px rgba(10, 14, 26, 0.22))
          drop-shadow(0 6px 12px rgba(10, 14, 26, 0.10));
}
/* Dual-band panel image is a flat graphic — no shadow looks cleaner. */
#tabpanel-traffic .feature-panel-art img {
  filter: none;
}
#tabpanel-proximity .feature-panel-art video {
  width: 100%;
  height: auto;
  filter: none;
}

/* ===================== PILOT TYPES ===================== */
#pilots .stat-num {
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.01em;
}

/* ===================== CTA SECTION ===================== */
/* Trim the section's bottom padding so the next section's white bg
   rises up behind the preorder card (see `#faq` below). */
.section-cta {
  padding: 100px 0 0 0;
  overflow: visible;
  position: relative;
  z-index: 2;
}

.section-cta .container { position: relative; z-index: 2; }

/* FAQ section pulls up behind the bottom of the preorder card so the
   FAQ's white bg sits under the card (creating an overlap). Padding-top
   compensates so the FAQ's own text lands clearly below the card. */
#faq {
  margin-top: -280px;
  padding-top: 380px;
  position: relative;
  z-index: 1;
}

/* Dark rounded CTA card with the global-network image as its background.
   A left-to-right gradient overlay keeps the text readable. */
.preorder-card {
  position: relative;
  z-index: 3; /* above the FAQ white bg pulled up behind it */
  overflow: hidden;
  background-color: #0d1220;
  background-image: url("assets/global_network_2.jpg");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  color: #ffffff;
  border-radius: 24px;
  padding: clamp(48px, 6vw, 88px) clamp(32px, 5vw, 72px);
  min-height: 340px;
  box-shadow:
    0 30px 80px rgba(10, 14, 26, 0.20),
    0 10px 30px rgba(10, 14, 26, 0.10);
}

/* Gradient overlay — solid on the left so the text reads cleanly,
   transparent on the right so the network image is visible. */
.preorder-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(13, 18, 32, 0.95) 0%,
    rgba(13, 18, 32, 0.85) 35%,
    rgba(13, 18, 32, 0.4) 70%,
    rgba(13, 18, 32, 0.1) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.preorder-card-content {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 520px;
}

/* Eyebrow on dark: keep accent colour but with softer dot. */
.preorder-card .eyebrow {
  color: #8ea8ff;
  margin-bottom: 12px;
}
.preorder-card .eyebrow .pulse {
  background: #8ea8ff;
  box-shadow: 0 0 0 0 rgba(142, 168, 255, 0.4);
}

.preorder-card-title {
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 16px;
}
.preorder-card-sub {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 28px;
  max-width: 460px;
}

.preorder-card .cta-row {
  justify-content: flex-start;
  margin: 0;
}

/* Ghost button on dark card needs light text + subtle border. */
.preorder-card .btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
}
.preorder-card .btn-ghost:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  /* Disable scroll-snap on mobile — it fights natural touch scrolling
     and causes sections to snap back when flicking through the page. */
  html, body {
    scroll-snap-type: none;
  }
  main > section, .footer {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .preorder-card {
    min-height: 0;
    padding: 40px 28px;
    /* On mobile the image dominates less; tighten the gradient so the
       text remains comfortably legible. */
    background-position: center;
  }
  .preorder-card::before {
    background: linear-gradient(
      180deg,
      rgba(13, 18, 32, 0.92) 0%,
      rgba(13, 18, 32, 0.85) 60%,
      rgba(13, 18, 32, 0.7) 100%
    );
  }
  .preorder-card .cta-row { flex-wrap: wrap; }
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 40px 0 20px;
}
.fineprint { font-size: 13px; color: var(--text-dim); margin: 0; }

/* ===================== FAQ ===================== */
.faq {
  margin-top: 40px;
  border-top: 1px solid var(--border-dark);
}
.faq-item {
  border-bottom: 1px solid var(--border-dark);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 48px 24px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  transition: color .2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  font-weight: 300;
  color: var(--accent);
  transition: transform .3s var(--ease);
  line-height: 1;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-body {
  padding: 0 40px 24px 0;
  color: var(--text-dark-dim);
  font-size: 15.5px;
  line-height: 1.65;
  animation: faqIn .3s var(--ease);
}
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--bg-alt);
  padding: 80px 0 30px;
  color: var(--text-dim);
  font-size: 14px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-brand p { margin: 16px 0 0; max-width: 320px; }
.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--text-dim); transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--container);
  margin: 30px auto 0;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--accent); }

.footer-social {
  display: flex;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-dim);
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.footer-social a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.footer-social svg { width: 16px; height: 16px; display: block; }

/* ===================== REVEAL ANIMATION ===================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== CONTACT FORM ===================== */

/* Utility used on the contact page hero for screen-reader-only headings. */
.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;
}

/* Compact hero variant: used by pages that are mostly below-the-fold content
   (contact form, future sub-pages). Overrides the default hero's 100vh. */
.hero.hero-compact {
  min-height: auto;
  padding: 140px 0 72px;
}
.hero-copy-center {
  max-width: 720px;
  margin: 0 auto;
}
.hero-sub.hero-sub-center {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* Section wrapper — plain white fill with the subtle grid background
   (reused from .hero-bg) behind the card. `position: relative` + `isolation`
   keep the `.hero-bg { z-index: -1 }` decoration scoped to this section
   instead of escaping up to the body. Extra top padding compensates for the
   fixed nav since there's no hero buffer above this section. */
.contact-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg);
  padding: 100px 0 120px;
}

/* ----- Split card: dark visual (left) + light form (right) ----- */
/* The outer card clips both panels to the shared rounded corner via
   overflow: hidden. Grid gives us a crisp column break with no visible gap;
   the two panels abut each other. */
.contact-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) 1.2fr;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  isolation: isolate;
  /* Cap the card narrower than its 1200px container so it feels more
     intimate. Still centers inside the container's horizontal padding. */
  max-width: 1040px;
  margin: 0 auto;
}

/* Left panel — dark with cockpit image + overlay. Its content stretches
   vertically: heading block at the top, value list at the bottom. */
.contact-visual {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: #0d1220;
  background-image: url("assets/Piper_Cockpit.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  min-height: 100%;
}
.contact-visual::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 600px at 85% 15%, rgba(35, 59, 134, 0.35), transparent 60%),
    linear-gradient(160deg,
      rgba(13, 18, 32, 0.92) 0%,
      rgba(13, 18, 32, 0.85) 55%,
      rgba(13, 18, 32, 0.78) 100%);
  pointer-events: none;
  z-index: 0;
}
.contact-visual-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(32px, 4vw, 48px);
  height: 100%;
  min-height: 100%;
}
.contact-visual .eyebrow {
  color: #8ea8ff;
  margin-bottom: 14px;
}
.contact-visual .eyebrow .pulse {
  background: #8ea8ff;
  box-shadow: 0 0 0 0 rgba(142, 168, 255, 0.4);
}
.contact-visual-title {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 14px;
}
.contact-visual-lede {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  max-width: 380px;
}

/* Value list: icon + text per row. Icons inherit the accent-blue colour so
   the list feels like part of the same brand family as the preorder eyebrow. */
.contact-visual-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.82);
}
.contact-visual-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-visual-list svg {
  width: 18px;
  height: 18px;
  color: #8ea8ff;
  flex-shrink: 0;
}
.contact-visual-list a {
  color: inherit;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.contact-visual-list a:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
}

/* Right panel — holds the form AND the success state. Only one is visible
   at a time, swapped via the `hidden` attribute in JS. */
.contact-panel {
  padding: clamp(32px, 4.5vw, 56px);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
/* `display: flex` above overrides the HTML `hidden` attribute's default
   `display: none`. Re-assert hiding explicitly so JS-driven `form.hidden = true`
   (after successful submit) actually removes it from the page. */
.contact-form[hidden] { display: none; }

/* Row groups let us place two fields side by side (first/last name). */
.form-row {
  display: grid;
  gap: 22px;
}
.form-row-2 {
  grid-template-columns: 1fr 1fr;
}

/* Each field is label + control + error stacked. */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.01em;
}
.form-field .req {
  color: var(--accent);
  margin-left: 2px;
}
.form-field .optional {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-dim);
  margin-left: 4px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.form-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-dim);
  opacity: 0.7;
}
.form-field input:hover,
.form-field textarea:hover {
  border-color: rgba(10, 14, 26, 0.18);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Invalid state: red border, red glow on focus. */
.form-field input.is-invalid,
.form-field textarea.is-invalid {
  border-color: var(--warn);
}
.form-field input.is-invalid:focus,
.form-field textarea.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(212, 56, 56, 0.12);
}

/* Error text sits under the input. Empty by default, populated by JS. */
.form-error {
  font-size: 12.5px;
  color: var(--warn);
  min-height: 1em;
  line-height: 1.3;
}
.form-error:empty { min-height: 0; }

/* Submit row + helper text. */
.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}
.form-actions .btn { min-width: 180px; }
.form-meta {
  font-size: 12.5px;
  color: var(--text-dim);
  margin: 0;
  text-align: center;
}
.form-meta a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.form-meta a:hover { text-decoration: none; }

/* Success state: lives in the same right-hand panel as the form — toggled
   via `hidden`. Visual panel on the left persists, so the transition from
   form to thanks keeps the page's composition stable. */
.contact-form-success {
  text-align: center;
  padding: clamp(16px, 2vw, 24px) 0;
}
.contact-form-success .success-icon {
  width: 56px;
  height: 56px;
  color: var(--accent);
  margin: 0 auto 18px;
  display: block;
}
.contact-form-success h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--text);
}
.contact-form-success p {
  color: var(--text-dim);
  max-width: 440px;
  margin: 0 auto 28px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .section { padding: 80px 0; }

  .hero { min-height: auto; padding: 120px 0 80px; }
  .hero-scroll-hint { display: none; }

  /* On mobile, collapse the tall scroll-scrubbed reveal section.
     Scrubbing is choppy on phones — show the video inline at normal scale. */
  .device-reveal { height: auto; padding: 60px 0; }
  .device-reveal-sticky { position: static; height: auto; display: block; }
  .device-reveal-meta { padding: 0 24px 12px; }
  .device-reveal-stage {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 24px 24px;
  }
  .device-reveal-progress { display: none; }
  .reveal-video { max-height: 50vh; }

  /* Panel: show all items stacked, no cross-fade. */
  .stage-panel { max-width: none; }
  .panel-head { display: none; }
  .panel-stack {
    position: static;
    min-height: 0;
    display: grid;
    gap: 18px;
  }
  .panel-item {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    padding: 16px 18px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
  }
  .panel-item h3 { font-size: 18px; margin-bottom: 8px; }
  .panel-item p { font-size: 14.5px; }

  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile-social { display: none; }

  .nav.menu-open {
    background: var(--bg);
    border-bottom: none;
    height: 100dvh;
    align-items: flex-start;
  }
  .nav.menu-open .nav-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    gap: 0;
  }

  /* Top bar: logo left, X right — reuse the first row */
  .nav.menu-open .nav-inner > .nav-logo,
  .nav.menu-open .nav-inner > .nav-toggle {
    flex-shrink: 0;
  }
  .nav.menu-open .nav-inner > .nav-logo {
    order: 0;
  }
  .nav.menu-open .nav-inner > .nav-toggle {
    order: 1;
    position: absolute;
    top: 14px;
    right: 24px;
  }

  /* Nav links — left-aligned rows with chevrons */
  .nav.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    margin-left: 0;
    margin-top: 40px;
    padding: 0;
    gap: 0;
    align-self: stretch;
  }
  .nav.menu-open .nav-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.01em;
  }
  .nav.menu-open .nav-links a::after {
    content: "›";
    position: static;
    transform: none;
    background: none;
    height: auto;
    font-size: 22px;
    font-weight: 300;
    color: var(--text-dim);
    transition: color .2s var(--ease);
  }
  .nav.menu-open .nav-links a:first-child {
    border-top: 1px solid var(--border);
  }

  /* CTA — full-width dark button */
  .nav.menu-open .nav-cta {
    display: flex;
    justify-content: center;
    align-self: stretch;
    margin-top: 32px;
    padding: 15px 28px;
    background: var(--text);
    color: var(--bg);
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: none;
  }
  .nav.menu-open .nav-cta:hover {
    background: var(--brand-charcoal);
  }

  /* Social icons — bottom of menu */
  .nav.menu-open .nav-mobile-social {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-self: stretch;
    margin-top: auto;
    padding-bottom: 40px;
  }
  .nav-mobile-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    transition: color .2s var(--ease);
  }
  .nav-mobile-social a:hover {
    color: var(--accent);
  }
  .nav-mobile-social svg {
    width: 18px;
    height: 18px;
    display: block;
  }

  /* Staggered entrance for menu items */
  .nav.menu-open .nav-links a,
  .nav.menu-open .nav-cta,
  .nav.menu-open .nav-mobile-social {
    animation: menuFadeIn .35s var(--ease) both;
  }
  .nav.menu-open .nav-links a:nth-child(1) { animation-delay: .05s; }
  .nav.menu-open .nav-links a:nth-child(2) { animation-delay: .1s; }
  .nav.menu-open .nav-links a:nth-child(3) { animation-delay: .15s; }
  .nav.menu-open .nav-links a:nth-child(4) { animation-delay: .2s; }
  .nav.menu-open .nav-cta { animation-delay: .25s; }
  .nav.menu-open .nav-mobile-social { animation-delay: .3s; }

  @keyframes menuFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .hero-grid,
  .split,
  .feature-panel {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Tabs wrap onto multiple rows on narrow screens. */
  .feature-tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
  .feature-tab { flex-shrink: 0; padding: 10px 14px; font-size: 13.5px; }
  .feature-panels { padding: 24px; }
  .feature-panel:not(.is-active) { inset: 24px; }

  .hero-meta { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-meta strong { font-size: 16px; }

  .stat-grid,
  .spec-grid,
  .compare {
    grid-template-columns: 1fr;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: flex-start; }
  .hero-title { font-size: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }
}

/* ===================== FEATURES PAGE — HERO ===================== */
/* Reuses the base .hero + .hero-grid from the home page (copy left,
   device image right). No page-specific overrides needed. */

/* ===================== FEATURES PAGE — PILLARS ===================== */
.pillars .container > .section-title,
.pillars .container > .lede {
  text-align: center;
}
.pillars .container > .eyebrow {
  display: flex;
  justify-content: center;
}

.pillars-device{
  max-width: 80%;  
  margin-left: 80px;
}

.pillars .lede {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.pillar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 120px;
}
.pillar:first-child {
  margin-top: 48px;
}
.pillar.is-flipped .pillar-art { order: 2; }
.pillar-art img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(10, 14, 26, 0.12));
}
.pillar:first-child .pillar-art img {
  max-width: 60%;
  display: block;
  margin: 0 auto;
}
.pillar-body .eyebrow {
  display: inline-flex;
  margin-bottom: 16px;
}
.pillar-title {
  font-size: clamp(26px, 2.6vw, 36px);
  letter-spacing: -0.02em;
  color: var(--text-dark, var(--text));
  margin: 0 0 18px;
  line-height: 1.15;
}
.pillar-body p {
  color: var(--text-dark-dim, var(--text-dim));
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 20px;
}
.pillar-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.pillar-bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--text-dark, var(--text));
}
.pillar-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.pillar-icons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-dark);
}
.pillar-icon-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.pillar-icon-svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 6px;
}
.pillar-icon-svg svg {
  width: 100%;
  height: 100%;
  color: var(--accent);
}
.pillar-icon-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pillar-icon-text strong {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-dark);
}
.pillar-icon-text span {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-dark-dim);
}

@media (max-width: 900px) {
  .pillar {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 80px;
  }
  .pillar.is-flipped .pillar-art { order: 0; }
  .pillar-bullets { grid-template-columns: 1fr; }
}

/* ===================== FEATURES PAGE — COMPARE TABLE ===================== */
.compare-section { padding-top: 100px; padding-bottom: 100px; }
.compare-section .lede { max-width: 720px; margin-left: auto; margin-right: auto; text-align: center; }
.compare-section > .container > .section-title { text-align: center; }
.compare-section > .container > .eyebrow {
  display: flex;
  justify-content: center;
}

.compare-table-wrap {
  margin-top: 50px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: clip; /* NOT `hidden` — `hidden` creates a scroll context and breaks sticky thead */
}

.compare-table {
  width: 100%;
  border-collapse: separate; /* `separate` so individual cells can carry border-radius + combined box-shadows for the SkyRecon card treatment */
  border-spacing: 0;
  table-layout: fixed;       /* respect colgroup widths */
  font-size: 15px;
  color: var(--text-dark, var(--text));
}

/* Column widths via <colgroup> */
.compare-table col.col-feature    { width: 40%; }
.compare-table col.col-skyrecon   { width: 20%; }
.compare-table col.col-competitor { width: 20%; }

.compare-table thead th {
  background: #ffffff;
  color: var(--text-dark, var(--text));
  text-align: center;
  padding: 18px 16px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: sticky;
  top: 72px;
  z-index: 2;
  /* box-shadow instead of border-bottom so the divider stays visible while sticky */
  box-shadow: inset 0 -1px 0 var(--border);
}

.compare-table thead th.col-feature { text-align: left; }

.compare-table tbody th[scope="row"] {
  text-align: left;
  font-weight: 500;
  color: var(--text-dark, var(--text));
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.compare-table tbody td {
  text-align: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text-dark-dim, var(--text-dim));
}

.compare-table tbody td.text-cell { color: var(--text-dark, var(--text)); }
.compare-table tbody td.check-text {
  color: var(--text-dark, var(--text));
  font-weight: 500;
}
.compare-table tbody td.check-text::before,
.compare-table tbody td.check::before {
  content: "✓";
  display: inline-block;
  width: 22px;
  height: 22px;
  line-height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  margin-right: 8px;
  vertical-align: middle;
}
.compare-table tbody td.check::before { margin-right: 0; }
.compare-table tbody td.x::before {
  content: "✕";
  display: inline-block;
  width: 22px;
  height: 22px;
  line-height: 22px;
  border-radius: 50%;
  background: #e4e7ee;
  color: #8a93a7;
  font-size: 12px;
  vertical-align: middle;
}

.compare-table tbody tr.cat-row th,
.compare-table tbody tr.cat-row td {
  background: var(--bg-alt);
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.compare-table tbody tr.cat-row th {
  text-align: left;
  color: var(--text-dark-dim, var(--text-dim));
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}
.compare-table tbody tr.cat-row td.col-skyrecon {
  background: var(--bg-alt);
  border-left: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

/* Last row: no bottom border — keeps the bottom edge clean */
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: none; }

/* ─── SkyRecon "hero" column — blue border, no per-cell shadows ──── */
.compare-table thead th.col-skyrecon,
.compare-table tbody td.col-skyrecon {
  background: #ffffff;
  border-left: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

/* Top of the card: thead SkyRecon cell */
.compare-table thead th.col-skyrecon {
  color: var(--accent);
  border-top: 2px solid var(--accent);
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

/* Bottom of the card: last-row SkyRecon cell */
.compare-table tbody tr:last-child td.col-skyrecon {
  border-bottom: 2px solid var(--accent);
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}

.compare-table .subtext {
  display: inline-block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-dark-dim, var(--text-dim));
  font-weight: 400;
}

/* ─── Compare table — mobile (card layout) ─────────────────── */
@media (max-width: 900px) {
  .compare-table-wrap {
    overflow: visible;
    border: none;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }
  .compare-table {
    display: block;
    min-width: 0;
    font-size: 14px;
  }
  .compare-table colgroup,
  .compare-table thead { display: none; }
  .compare-table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  /* Data rows → cards */
  .compare-table tbody tr {
    display: block;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
  }
  .compare-table tbody th[scope="row"] {
    display: block;
    font-size: 15px;
    font-weight: 600;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--border);
    position: static;
    box-shadow: none;
    color: var(--text);
  }
  .compare-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    text-align: right;
  }
  .compare-table tbody td:last-child { border-bottom: none; }
  /* Column label via data-label */
  .compare-table tbody td::before {
    content: attr(data-label);
    font-weight: 500;
    font-size: 13px;
    color: var(--text);
    margin-right: auto;
  }
  /* Override desktop check/x ::before — show label instead */
  .compare-table tbody td.check::before,
  .compare-table tbody td.check-text::before {
    content: attr(data-label);
    display: inline;
    width: auto; height: auto;
    line-height: normal;
    border-radius: 0;
    background: none;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    margin-right: auto;
    vertical-align: baseline;
  }
  .compare-table tbody td.x::before {
    content: attr(data-label);
    display: inline;
    width: auto; height: auto;
    line-height: normal;
    border-radius: 0;
    background: none;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    margin-right: auto;
    vertical-align: baseline;
  }
  /* Check/x marks via ::after on mobile */
  .compare-table tbody td.check::after,
  .compare-table tbody td.check-text::after {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    font-size: 13px;
    flex-shrink: 0;
  }
  .compare-table tbody td.x::after {
    content: "✕";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: #e4e7ee;
    color: #8a93a7;
    font-size: 12px;
    flex-shrink: 0;
  }
  /* Remove SkyRecon column card borders on mobile */
  .compare-table thead th.col-skyrecon,
  .compare-table tbody td.col-skyrecon,
  .compare-table tbody tr.cat-row td.col-skyrecon,
  .compare-table tbody tr:last-child td.col-skyrecon {
    border-left: none;
    border-right: none;
    border-top: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
  }
  .compare-table tbody td.col-skyrecon:last-child { border-bottom: none; }
  /* Category rows → section labels */
  .compare-table tbody tr.cat-row {
    padding: 10px 18px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: none;
  }
  .compare-table tbody tr.cat-row th {
    padding: 0;
    border: none;
    position: static;
  }
  .compare-table tbody tr.cat-row td { display: none; }
}

/* ===================== FEATURES PAGE — WHAT'S IN THE BOX ===================== */
.box-section > .container > .section-title,
.box-section > .container > .lede { text-align: center; }
.box-section > .container > .eyebrow {
  display: flex;
  justify-content: center;
}
.box-section .lede { max-width: 600px; margin-left: auto; margin-right: auto; }

/* Bento grid: 4-col desktop layout.
   - Hero image spans 2 cols × 3 rows (left side, ~square)
   - Four small cards fill the top-right 2×2 block
   - Quick-start guide spans 2 cols on the bottom row */
.box-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 20px;
}

.box-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.box-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(10, 14, 26, 0.06);
}

/* Bento tile variants */
.box-card-hero {
  grid-column: span 2;
  grid-row: span 3;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
}
.box-card-hero:hover { transform: none; } /* no lift on the image tile */
.box-card-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  box-sizing: border-box;
}
.box-card-wide { grid-column: span 2; }
.box-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.box-card-icon svg { width: 24px; height: 24px; display: block; }
.box-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark, var(--text));
  margin: 6px 0 0;
  letter-spacing: -0.01em;
}
.box-card p {
  font-size: 14px;
  color: var(--text-dark-dim, var(--text-dim));
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .box-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
  }
  .box-card-hero {
    grid-column: span 2;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }
  .box-card-wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .box-grid { grid-template-columns: 1fr; }
  .box-card-hero { grid-column: span 1; }
  .box-card-wide { grid-column: span 1; }
}

/* Contact form — mobile overrides. Applied at the same 900px breakpoint as
   the rest of the responsive rules to keep behaviour consistent. */
@media (max-width: 900px) {
  .contact-section { padding: 84px 0 80px; }
  .hero.hero-compact { padding: 110px 0 48px; }

  /* Split card stacks: visual becomes a header band, form below. */
  .contact-card { grid-template-columns: 1fr; }
  .contact-visual { min-height: 0; }
  .contact-visual-content { gap: 28px; padding: 32px 28px; }
  .contact-visual-title { font-size: 24px; }
  .contact-visual-lede { max-width: none; }

  .contact-panel { padding: 28px; }

  .form-row-2 { grid-template-columns: 1fr; }
  .form-actions { justify-content: stretch; }
  .form-actions .btn { width: 100%; min-width: 0; }
}

/* ===================================================================
   BLOG
   =================================================================== */

/* Blog hero */
.blog-hero {
  padding: 140px 0 48px;
  text-align: center;
  background: var(--bg);
}
.blog-hero h1 { font-size: 40px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.blog-hero p  { color: var(--text-dim); font-size: 17px; max-width: 520px; margin: 0 auto; }

/* Category filter pills */
.blog-filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 24px 32px;
  max-width: var(--container);
  margin: 0 auto;
}
.blog-filter-pill {
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--accent);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.blog-filter-pill:hover { background: var(--accent-soft); }
.blog-filter-pill.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Card grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 48px;
}

/* Individual card */
.blog-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.blog-card-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: var(--accent);
}
.blog-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin-bottom: 6px;
}
.blog-card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-meta {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: auto;
}
.blog-card-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.blog-card[hidden] { display: none; }

/* Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0 24px 64px;
}
.blog-pagination a,
.blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-dim);
  border: 1px solid var(--border);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.blog-pagination a:hover { background: var(--accent-soft); color: var(--accent); }
.blog-pagination .is-current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  pointer-events: none;
}

/* ---- Blog post article ---- */

.blog-breadcrumb {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.blog-breadcrumb a { color: var(--accent); text-decoration: none; }
.blog-breadcrumb a:hover { text-decoration: underline; }

.blog-post-header {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 0;
}
.blog-post-header .blog-card-tag { margin-bottom: 8px; }
.blog-post-header h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 10px;
}
.blog-post-header .blog-card-meta { margin-bottom: 24px; }
.blog-post-featured {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 32px;
}

/* Table of contents */
.blog-toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
}
.blog-toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.blog-toc-header h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.blog-toc-toggle {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.blog-toc ol {
  margin: 12px 0 0;
  padding-left: 20px;
  list-style: decimal;
}
.blog-toc ol li { margin-bottom: 6px; }
.blog-toc ol a {
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  line-height: 1.5;
}
.blog-toc ol a:hover { text-decoration: underline; }
.blog-toc.is-collapsed ol { display: none; }
.blog-toc.is-collapsed .blog-toc-toggle::after { content: ''; }

/* Article body */
.blog-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 48px;
  font-size: 17px;
  line-height: 1.78;
  color: var(--text);
}
.blog-article h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 48px 0 16px;
  color: var(--text);
  scroll-margin-top: 80px;
}
.blog-article h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 36px 0 12px;
  color: var(--text);
}
.blog-article p { margin-bottom: 20px; }
.blog-article a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.blog-article a:hover { color: var(--text); }
.blog-article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 24px 0;
  display: block;
}
.blog-article blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 20px;
  margin: 24px 0;
  color: var(--text-dim);
  font-style: italic;
  background: var(--bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.blog-article ul, .blog-article ol {
  margin-bottom: 20px;
  padding-left: 24px;
}
.blog-article li { margin-bottom: 8px; }
.blog-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
.blog-article th, .blog-article td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}
.blog-article th { background: var(--bg-alt); font-weight: 600; }
.blog-article code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88em;
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
}
.blog-article pre {
  background: var(--bg-alt);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 24px 0;
}
.blog-article pre code { background: none; padding: 0; }
.blog-article strong { font-weight: 600; }

/* Related articles */
.blog-related {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 64px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
.blog-related h2 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.blog-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.blog-related-card {
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s var(--ease);
}
.blog-related-card:hover { box-shadow: var(--shadow-soft); }
.blog-related-card .blog-card-tag { margin-bottom: 4px; }
.blog-related-card .blog-card-title { font-size: 14px; margin-bottom: 0; }

/* ---- Blog responsive ---- */
@media (max-width: 900px) {
  .blog-hero { padding: 110px 0 32px; }
  .blog-hero h1 { font-size: 30px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 0 16px 32px; }
  .blog-post-header { padding: 100px 16px 0; }
  .blog-post-header h1 { font-size: 28px; }
  .blog-article { padding: 0 16px 32px; font-size: 16px; }
  .blog-article h2 { font-size: 22px; }
  .blog-related { padding: 0 16px 48px; padding-top: 24px; }
  .blog-related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card-img { height: 160px; }
  .blog-filters { gap: 6px; padding: 0 16px 24px; }
  .blog-filter-pill { padding: 5px 14px; font-size: 13px; }
}

/* ===================================================================
   PREORDER
   =================================================================== */

.preorder-hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: 120px 24px 64px;
  background: var(--bg);
}
.preorder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: var(--container-narrow);
  margin: 0 auto;
  align-items: center;
}
.preorder-product {
  display: flex;
  align-items: center;
  justify-content: center;
}
.preorder-product img {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
}
.preorder-pricing .eyebrow { margin-bottom: 12px; }
.preorder-pricing h1 {
  font-size: 40px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.preorder-pricing .preorder-subtitle {
  font-size: 17px;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.preorder-price-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
}
.preorder-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.preorder-price {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
}
.preorder-price-old {
  font-size: 16px;
  color: var(--text-dim);
  text-decoration: line-through;
}
.preorder-price-note {
  font-size: 14px;
  color: var(--text-dim);
}
.preorder-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.preorder-benefits li {
  font-size: 15px;
  line-height: 2.2;
  color: var(--text);
}
.preorder-benefits li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 600;
  margin-right: 10px;
}
.preorder-fine-print {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 10px;
}

@media (max-width: 900px) {
  .preorder-hero { padding: 100px 16px 48px; min-height: auto; }
  .preorder-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .preorder-product img { max-height: 280px; }
  .preorder-pricing h1 { font-size: 32px; }
  .preorder-benefits { display: inline-block; text-align: left; }
}

/* ===================================================================
   GIVEAWAY
   =================================================================== */

.giveaway-section {
  padding: 60px 0;
  background: var(--bg-alt);
  scroll-snap-align: none;
}
.giveaway-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.giveaway-card > summary {
  list-style: none;
  cursor: pointer;
}
.giveaway-card > summary::-webkit-details-marker { display: none; }

.giveaway-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 3vw, 40px);
}
.giveaway-teaser-content { flex: 1; }
.giveaway-teaser .eyebrow { margin-bottom: 8px; }
.giveaway-teaser-title {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 6px;
}
.giveaway-teaser-sub {
  font-size: 15px;
  color: var(--text-dim);
  margin: 0;
}
.giveaway-card[open] .giveaway-teaser-btn { display: none; }

.giveaway-body {
  padding: 0 clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px);
}
.giveaway-form {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.giveaway-form[hidden] { display: none; }

.giveaway-success {
  text-align: center;
  padding: 20px 0;
}
.giveaway-success .success-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin: 0 auto 14px;
  display: block;
}
.giveaway-success h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
}
.giveaway-success p {
  color: var(--text-dim);
  margin: 0;
}

@media (max-width: 900px) {
  .giveaway-teaser {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ===================================================================
   CONTACT — SINGLE-COLUMN CENTERED
   =================================================================== */

.contact-section-centered {
  text-align: center;
}
.contact-header {
  margin-bottom: 48px;
}
.contact-header .section-title {
  margin-bottom: 14px;
}
.contact-header .lede {
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.contact-card-centered {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(32px, 4.5vw, 56px);
  text-align: left;
}
.form-actions-center {
  justify-content: center;
}
