/* ElectronFPV — Blue-gray slate theme (2026-11-11).
   Page #1B2430, cards #252F3D, studio wells #16171A. FPV Blue (--fpv-blue,
   #0556C7) is for graphics only (stripes, bars, icons, borders, button fills).
   Link and heading text keep their original lighter blues. */

:root {
  --fpv-blue: #0556C7;
  --bg: #1B2430;
  --bg-elevated: #252F3D;
  --bg-card: #252F3D;
  --bg-card-hover: #2C3748;
  --border: #3A4A5C;
  --border-strong: #4C5E73;
  --text: #E6EBF3;
  --text-muted: #A3B0C2;
  --text-bright: #F3F6FB;
  --accent: var(--fpv-blue);
  --accent-hover: var(--fpv-blue);
  --accent-dim: color-mix(in srgb, var(--fpv-blue) 18%, transparent);
  --accent-text: #7AAEFF;
  --media-bg: #16171A;
  --accent-text-hover: #A9CBFF;
  --accent-glow: color-mix(in srgb, var(--fpv-blue) 35%, transparent);
  --radius: 12px;
  --radius-sm: 8px;
  --field-err: #f43f5e;
  --field-err-text: #ff8a9a;
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.38);
  --header-h: 64px;
  --max: 1280px;
  --page-max: 1280px;
  --page-pad: 1.25rem;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "SF Mono", "Consolas", "Liberation Mono", monospace;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

@supports not (scrollbar-gutter: stable) {
  html {
    overflow-y: scroll;
  }
}

/* Menu open: body is position:fixed via JS (mobile only). Do NOT set overflow:hidden
   on html — toggling that on the scrolling element resets scrollY to 0 in Chrome when
   scrollbar-gutter: stable is also set. Gutter on html stays reserved either way. */
html.nav-locked body {
  /* padding-right may also be set inline when scrollbar-gutter is unsupported */
  padding-right: var(--nav-scrollbar-comp, 0px);
  overscroll-behavior: none;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, color-mix(in srgb, var(--fpv-blue) 12%, transparent), transparent 55%),
    radial-gradient(ellipse 40% 30% at 100% 20%, color-mix(in srgb, var(--fpv-blue) 5%, transparent), transparent 50%),
    var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a,
a:link,
a:visited,
a:hover,
a:focus,
a:focus-visible,
a:active {
  text-decoration: none;
}

a {
  color: var(--accent-text);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

a:hover {
  color: var(--accent-text-hover);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--accent-text); /* #7AAEFF, same as strong */
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-size: 18px; /* slightly smaller than the previous 1.25rem / 20px max */
  text-transform: uppercase;
}

h1 { letter-spacing: -0.02em; }
h2 { letter-spacing: -0.015em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

strong { color: var(--accent-text); font-weight: 600; }

ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

li { margin-bottom: 0.35em; }

hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  margin: 2.5rem 0;
}

/* ---------- Layout ---------- */
/* Sticky footer: .site-wrap fills the viewport, main grows, footer sits flush at the bottom.
   Nothing in normal flow may follow .site-wrap — stray widget hosts would add a strip below the footer. */
.site-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body > .shopify-host:empty {
  display: none;
}

.container {
  max-width: var(--page-max);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
  box-sizing: border-box;
}
@media (max-width: 860px) {
  :root { --page-pad: .9rem; }
}

main {
  flex: 1;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(26, 30, 36, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  position: relative;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-bright);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.brand:hover { color: var(--text-bright); }

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav-toggle {
  display: inline-flex;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  color: var(--accent-text);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* Avoid iOS/WebKit first-tap-as-hover eating the open gesture after scroll. */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover {
  border-color: var(--border-strong);
  background: var(--accent-dim);
}

.nav-toggle-bars {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.site-nav {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  padding: 0.75rem 1rem 1.15rem;
  background: rgba(18, 24, 32, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.site-nav.is-open {
  display: flex;
}

/* Desktop: open menu = right 1/3 of the site body (.container / .header-inner),
   not 1/3 of the viewport. Absolute keeps the panel aligned to the content
   column's right edge when the body is centered with max-width. */
@media (min-width: 861px) {
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: auto;
    right: 0;
    width: 33.333%;
    max-width: 33.333%;
    box-sizing: border-box;
  }
}

.nav-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.15rem;
}

.nav-group + .nav-group {
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}

.nav-group-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
  padding: 0.35rem 1rem 0.25rem;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  white-space: normal;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text-bright);
  background: var(--accent-dim);
}

/* ---------- Hero / Intro ---------- */
.hero {
  padding: 3rem 0 1.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.intro-blurb {
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Homepage opening statement spans the content container, not the viewport. */
.hero .intro-blurb {
  max-width: none;
}

.intro-blurb strong {
  color: var(--text-bright);
}

/* ---------- Product spotlight ---------- */
.section {
  padding: 1.5rem 0 3rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

h1.section-label, h2.section-label, h3.section-label,
h4.section-label, h5.section-label, h6.section-label {
  font-size: 18px;
  color: var(--accent-text);
}

/* Trailing heading stripe is defined once, in css/fx.css. */

.product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--fpv-blue) 6%, transparent), transparent 45%);
  pointer-events: none;
}

.product-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--media-bg);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 100%;
  align-self: start;
  min-width: 0;
}

.product-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.product-body {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-body h1 {
  margin-bottom: 0.75rem;
}

.product-body .lede {
  color: var(--text);
  margin-bottom: 1.25rem;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: baseline;
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-bright);
  font-variant-numeric: tabular-nums;
}

.shipping-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--accent-text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: var(--accent-dim);
  color: var(--accent-text-hover);
}

/* Shopify buy button host — keep compact */
.shopify-host {
  margin-top: 0.5rem;
  min-height: 48px;
}

.shopify-host iframe,
.shopify-host > div {
  max-width: 100%;
}

/* ---------- Tech cards ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.tech-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tech-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.tech-media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 100%;
  align-self: start;
  min-width: 0;
}

.tech-media video,
.tech-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tech-body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tech-body p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Tech card rows reused on inner pages : labelled group below intro card */
.tech-section {
  margin-top: 2.25rem;
}

.tech-section .tech-body > :last-child {
  margin-bottom: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 2rem 0 1.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.footer-nav,
.social-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.footer-nav a,
.social-nav a {
  color: var(--accent-text-hover);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus,
.social-nav a:hover,
.social-nav a:focus {
  color: #fff;
  text-decoration: none;
}

.copyright {
  width: 100%;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

.sample-banner {
  background: linear-gradient(90deg, color-mix(in srgb, var(--fpv-blue) 15%, transparent), color-mix(in srgb, var(--fpv-blue) 5%, transparent));
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 0.45rem 1rem;
}

.sample-banner strong {
  color: var(--accent-text);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .product-card {
    grid-template-columns: 1fr;
    padding: 1.15rem;
  }

  .product-media img {
    aspect-ratio: 4 / 3;
  }

  .tech-card {
    grid-template-columns: 1fr;
  }

  .tech-media {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 720px) {
  :root { --header-h: 60px; }

  .hero { padding-top: 2rem; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- Inner pages / prose ---------- */
.page-hero {
  padding: 2.5rem 0 1rem;
}

.page-hero h1 {
  margin-bottom: 0.75rem;
}

.page-hero .lede {
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
  width: 100%;
}

.prose {
  /* Full-width within container; padding on .content-card keeps readable inset. */
  max-width: none;
  width: 100%;
}

.prose a {
  text-decoration: none;
}

.media-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
  align-items: start;
}

.media-row > .media-frame {
  width: 100%;
  min-width: 0;
}

.media-row > .media-frame img,
.media-row > .media-frame video {
  width: 100%;
  height: auto;
  display: block;
}

.media-row.single {
  grid-template-columns: minmax(0, calc((100% - 1rem) / 2));
  justify-content: center;
}

.media-row > .media-frame.square-crop img,
.media-row.single > .media-frame img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.media-frame {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--media-bg);
  border: 1px solid var(--border);
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: auto;
  display: block;
}

/* YouTube thumbnails replace the Pterosaur product video. Full card width so
   the pair sits side by side; .media-row stacks them under 860px. */
.tech-card > .yt-row {
  grid-column: 1 / -1;
  margin: 0;
}

.tech-card > .yt-row + .tech-body {
  grid-column: 1 / -1;
}

.yt-thumb {
  margin: 0;
  background: #000;
  display: flex;
  flex-direction: column;
}

.yt-thumb__open {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #000;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.media-frame.yt-thumb .yt-thumb__open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yt-thumb__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4.25rem;
  height: 4.25rem;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(16, 19, 24, 0.72);
  border: 1px solid var(--border-strong);
  pointer-events: none;
}

.yt-thumb__play::before {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.7rem 0 0.7rem 1.15rem;
  border-color: transparent transparent transparent #fff;
}

.yt-thumb__open:hover .yt-thumb__play,
.yt-thumb__open:focus-visible .yt-thumb__play {
  background: var(--accent);
  border-color: var(--accent);
}

.yt-thumb__open:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px var(--fpv-blue);
}

.yt-thumb__caption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 0.8rem 0.8rem;
  line-height: 1.4;
  background: var(--bg-elevated);
}

.yt-thumb__title {
  color: var(--text-bright);
  font-size: 0.92rem;
  font-weight: 600;
}

.yt-thumb__by {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.yt-thumb__caption a {
  color: var(--accent-text);
  font-size: 0.85rem;
  text-decoration: none;
}

.yt-thumb__caption a:hover {
  color: var(--accent-text-hover);
}

.media-frame.manual img {
  width: 100%;
}

.split-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: stretch;
  margin: 1.25rem 0;
}

.split-block > .content-card {
  height: 100%;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

.split-block > .media-frame {
  margin: 0;
  width: 100%;
  max-width: 100%;
  align-self: start;
  min-width: 0;
}

.split-block > .media-frame > * {
  width: 100%;
  height: auto;
  display: block;
}

.feature-list {
  margin: 0 0 1.25rem;
  padding-left: 1.15em;
  color: var(--text);
}

.feature-list li {
  margin-bottom: 0.45em;
}

.meta-block h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.meta-block h3:first-child {
  margin-top: 0;
}

.link-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-start;
}

.link-stack a {
  font-weight: 500;
}

/* FAQ */
.faq-section {
  margin-top: 2rem;
  padding-top: 0.5rem;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
}

.faq-item h3 {
  font-size: 18px;
  margin-bottom: 0.5rem;
  color: var(--accent-text);
}

.faq-item p,
.faq-item ul {
  color: var(--text-muted);
  margin-bottom: 0.5em;
}

.faq-item ul:last-child,
.faq-item p:last-child {
  margin-bottom: 0;
}

/* Store product rows */
.store-grid {
  display: grid;
  gap: 1.25rem;
}

.store-card {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.store-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.store-card .media-frame {
  aspect-ratio: 1;
  width: 100%;
  max-width: 100%;
  align-self: start;
  min-width: 0;
}

.store-card .media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.store-card > :not(.media-frame) {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Buttons inside stretched flex-column boxes: keep them short and left-aligned */
.tech-body > .btn,
.store-card > :not(.media-frame) > .btn,
.content-card > .btn,
.product-body > .btn {
  align-self: flex-start;
}

/* Forms */
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.contact-panel > .content-card {
  height: 100%;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

.contact-panel > .form {
  height: 100%;
}

.form {
  display: grid;
  gap: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.form .form-title {
  margin: 0;
  font-size: 18px;
  text-transform: uppercase;
}

/* Screen-reader-only text: label words (the notch shows the label), the words of a field error, the send-failure message. */
.vh, .fmsg, .wf-msg.bad {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.fmsg[hidden] { display: none; }

/* Form field standard (copied from wordy.page, 2026-11-26; colors are this site's own).
   <label><span class="vh">Label</span><span class="nf">CONTROL<fieldset class="nfo" aria-hidden="true"><legend>Label</legend></fieldset></span></label>
   The fieldset draws the field border and the browser leaves a real gap in its top edge for the legend, so the label
   sits notched into the border on any background. The control itself has no border or fill. No placeholder text, ever:
   fields are empty until someone types. Errors appear inside the field only (js/form-field.js): an empty field shows the
   short message in red, a typed-but-invalid field turns red; border and label turn red either way. */
.nf { position: relative; display: block; margin-top: 8px; }
.form .nf > input,
.form .nf > textarea {
  display: block;
  width: 100%;
  margin: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  box-shadow: none;
  color: var(--text-bright);
  font: inherit;
  font-size: 16px;
  padding: 0.7rem 0.85rem;
}
.form .nf > input:focus,
.form .nf > textarea:focus,
.form .nf > .ferr {
  outline: none;
  border-color: transparent;
  box-shadow: none;
}
.form .nf > textarea {
  min-height: 140px;
  resize: vertical;
}
.nfo {
  position: absolute;
  inset: -8px 0 0;
  z-index: 2;
  min-width: 0;
  margin: 0;
  padding: 0 8px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  pointer-events: none;
  text-align: left;
}
.nfo legend {
  float: none;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0 5px;
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: normal;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nf:focus-within > .nfo { border-width: 2px; border-color: var(--accent); }
.nf:focus-within > .nfo legend { color: var(--accent-text); }
.nf:has(.ferr) > .nfo { border-width: 2px; border-color: var(--field-err); }
.nf:has(.ferr) > .nfo legend { color: var(--field-err-text); }
.form .nf > .ferr { color: var(--field-err-text); }
.form .nf > .ferr::placeholder { color: var(--field-err-text); opacity: 1; font-weight: 600; }

/* Widths: textareas full width; other fields full width on phones and 50% of the form on desktop.
   .form-wide (the contact form) keeps Name and Email full width on desktop too. */
@media (min-width: 641px) {
  .form:not(.form-wide) .nf:has(> input) {
    width: 50%;
  }
}

.wf-msg {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.wf-msg:empty { display: none; }
.wf-msg.good {
  color: var(--text);
  background: var(--accent-dim);
  border: 1px solid var(--border);
}
/* A send failure that is not about a field turns the button red; its words stay in .wf-msg for screen readers. */
.form:has(.wf-msg.bad) button[type="submit"] {
  background: #a1001c !important;
  border-color: #a1001c !important;
  color: #fff !important;
  box-shadow: 0 0 0 3px rgba(200, 40, 40, 0.25) !important;
}

.form button[type="submit"] {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.35rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.form button[type="submit"]:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 24px var(--accent-glow);
}

.alert-error {
  color: #ff8a9a;
  background: rgba(220, 38, 68, 0.18);
  border: 1px solid rgba(244, 63, 94, 0.45);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.alert-ok {
  color: var(--text);
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.hero-shot {
  margin: 0 0 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--media-bg);
}

.hero-shot img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

@media (max-width: 860px) {
  .split-block,
  .store-card,
  .contact-panel,
  .media-row,
  .media-row.single {
    grid-template-columns: 1fr;
  }
}

/* ——— Content media lightbox (desktop only; img + video in <main>) ——— */
/* Matches redesign mobile breakpoint (max-width: 860px). */
@media (min-width: 861px) {
  img[data-lightbox],
  video[data-lightbox] {
    cursor: zoom-in;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  background: rgba(16, 19, 24, 0.92);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox__dialog {
  position: relative;
  width: fit-content;
  max-width: min(96vw, 1400px);
  max-height: min(92vh, 92dvh);
  margin: 0;
  outline: none;
  line-height: 0;
  /* Border on the dialog (not the media) so it always hugs flush; avoids
     1–2px object-fit letterbox from border-box + 1px border on the media. */
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--media-bg);
}

.lightbox__image,
.lightbox__video {
  display: block;
  max-width: min(96vw, 1400px);
  max-height: min(88vh, 88dvh);
  width: auto;
  height: auto;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: var(--media-bg);
  /* fill: dimensions from fitLightboxMedia already match intrinsic aspect */
  object-fit: fill;
  cursor: default;
  vertical-align: top;
}

.lightbox__video {
  /* Intrinsic width/height (see fitLightboxMedia in site.js) — do not force
     viewport width or the border letterboxes when max-height clamps. */
  background: #000;
}

.lightbox__image[hidden],
.lightbox__video[hidden] {
  display: none !important;
}

.lightbox__close {
  /* Sit on the media frame (dialog hugs media via fit-content + fitLightboxMedia). */
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(35, 40, 48, 0.95);
  color: var(--text-bright);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  background: var(--bg-card-hover);
  border-color: var(--fpv-blue);
  color: var(--accent-text-hover);
  outline: none;
}

html.lightbox-open body {
  padding-right: var(--nav-scrollbar-comp, 0px);
  overscroll-behavior: none;
}

/* Mobile / narrow: image enlarge is off. YouTube playback lightbox stays on. */
@media (max-width: 860px) {
  img[data-lightbox],
  video[data-lightbox] {
    cursor: default;
  }

  .lightbox,
  .lightbox.is-open {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .yt-lightbox.is-open {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
    opacity: 1;
  }
}

.yt-lightbox[hidden] {
  display: none !important;
}

.yt-lightbox .lightbox__dialog {
  width: min(96vw, calc(min(86vh, 86dvh) * 16 / 9), 1100px);
  aspect-ratio: 16 / 9;
  max-height: min(86vh, 86dvh);
  line-height: 0;
  background: #000;
}

.yt-lightbox__frame,
.yt-lightbox iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 1;
  background: #000;
}

.yt-lightbox .lightbox__close {
  z-index: 2;
}

html.yt-lightbox-open body {
  padding-right: var(--nav-scrollbar-comp, 0px);
  overscroll-behavior: none;
}

/* ---------- Legal link (footer copyright line) ---------- */
.copyright .legal-sep {
  margin: 0 0.6rem;
  opacity: 0.6;
}

.copyright .legal-link,
.copyright .legal-link:link,
.copyright .legal-link:visited {
  color: var(--accent-text-hover); /* #A9CBFF, the site link-hover blue */
  text-decoration: none;
}

.copyright .legal-link:hover,
.copyright .legal-link:focus,
.copyright .legal-link:focus-visible,
.copyright .legal-link:active {
  color: #fff;
  text-decoration: none;
}

/* ---------- Cookie consent banner (EU/UK only; injected by site.js) ---------- */
.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  /* Below the sticky header/menu (1000) and the lightbox (10000). */
  z-index: 900;
  padding: 0 1rem max(1rem, env(safe-area-inset-bottom));
  pointer-events: none;
}

.consent-banner[hidden] {
  display: none;
}

.consent-inner {
  pointer-events: auto;
  width: min(100%, var(--max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  background: rgba(35, 40, 48, 0.98);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.25rem;
}

.consent-text {
  flex: 1 1 24rem;
  min-width: 0;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
}

.consent-text strong {
  color: var(--text-bright);
}

.consent-text a {
  text-decoration: none;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.consent-actions .btn {
  min-width: 7.5rem;
}

.consent-banner .btn:focus-visible,
.consent-settings-btn:focus-visible {
  outline: 2px solid var(--fpv-blue);
  outline-offset: 2px;
}

/* Mobile menu open (scroll-locked overlay): tuck the banner away until it closes.
   visibility (not display) keeps its size so the footer spacing doesn't shift. */
html.nav-locked .consent-banner {
  visibility: hidden;
}

/* Keep the footer reachable above the banner while it is showing. */
html.consent-open .site-footer {
  padding-bottom: calc(1.5rem + var(--consent-h, 0px));
}

@media (max-width: 600px) {
  .consent-banner {
    padding: 0 0.5rem max(0.5rem, env(safe-area-inset-bottom));
  }

  .consent-inner {
    padding: 0.9rem 1rem;
    gap: 0.75rem;
  }

  .consent-text {
    flex-basis: 100%;
    font-size: 0.88rem;
  }

  .consent-actions {
    width: 100%;
  }

  .consent-actions .btn {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* ---------- Privacy page ---------- */
.policy-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.policy-summary .tech-card {
  grid-template-columns: 1fr;
  gap: 0.5rem;
  align-content: start;
}

.policy-summary .tech-card h2 {
  font-size: 18px;
  margin: 0;
  color: var(--accent-text);
}

.policy-summary .tech-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.policy-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.prose .policy-table-wrap {
  overflow-x: auto;
  margin: 0.75rem 0 1rem;
}

.prose table.policy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.prose table.policy-table th,
.prose table.policy-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.prose table.policy-table th {
  color: var(--text-bright);
  font-weight: 600;
}

.consent-status {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.6rem;
}

@media (max-width: 860px) {
  .policy-summary {
    grid-template-columns: 1fr;
  }
}

/* ---- Dark & medium-gray theme extras ---- */
::selection { background: color-mix(in srgb, var(--fpv-blue) 30%, transparent); color: var(--text-bright); }
/* ---- High-trust summary strip next to 1-click Buy Now ---- */
.trust-strip {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  padding-top: 0.55rem;
  margin-top: 0.15rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-bright);
  line-height: 1.4;
}
.trust-strip .trust-dot {
  color: var(--accent-text);
  font-weight: 700;
}
.shopify-host {
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  min-height: 52px;
}

/* 2026-11-01 conversion fixes: buy box under H1, fallback Buy link, mobile sticky buy bar */
.hero-sub{margin:.4rem 0 0;font-size:1.1rem;color:var(--text-bright,#fff);font-weight:500}
.buy-box{margin-top:1.1rem;max-width:640px}
.buy-box .price-row{margin-bottom:.6rem}
.buy-note{margin:.5rem 0 0;font-size:.92rem;color:var(--text-muted,#aab)}
.buy-fallback{display:none}
.rc-buy-failed .buy-fallback{display:inline-flex}
.rc-buy-failed .shopify-host,.rc-buy-failed .sticky-buy-btn{display:none}
.sticky-buy{display:none}
@media (max-width:800px){
  .sticky-buy{position:fixed;left:0;right:0;bottom:0;z-index:50;display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.55rem .9rem calc(.55rem + env(safe-area-inset-bottom));background:rgba(20,22,26,.96);border-top:1px solid rgba(255,255,255,.12);transform:translateY(110%);transition:transform .25s}
  .sticky-buy.is-visible{transform:none}
  .sticky-buy-text{font-size:.92rem;color:var(--text-bright,#fff)}
  .sticky-buy-btn{min-width:120px}
  body:has(.sticky-buy) footer{padding-bottom:4.5rem}
}
