/* ============ Foilquiver — dusk patrol ============ */
/* tokens */
:root {
  --dusk-950: #14163A; --dusk-900: #1F214D; --dusk-800: #2A2D5C;
  --ink: #EEF0F7; --ink-soft: #A9ADC7;
  --sunglow: #FFCE61; --sienna: #EE6C45; --magenta: #BF3475;
  /* accent = the app's magenta. --accent for surfaces/large text (3.3:1 on dusk —
     large-text/graphics only); --accent-soft for normal-size text on dusk (6.7:1). */
  --accent: var(--magenta); --accent-soft: #E87FB0;
  --ramp: linear-gradient(90deg, var(--magenta), var(--sienna), var(--sunglow));
  --radius: 12px; --radius-lg: 24px;
  --max: 1120px;
}
@font-face { font-family: Archivo; src: url(/fonts/archivo-var.woff2) format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/fonts/jetbrains-mono-var.woff2) format("woff2");
  font-weight: 400 800; font-display: swap; }

/* reset-lite */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--dusk-950); color: var(--ink);
  font: 400 1rem/1.6 Archivo, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-weight: 700; line-height: 1.1; margin: 0 0 .5em;
  letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--accent-soft); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 99; background: var(--accent);
  color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--radius) 0; }
.skip-link:focus { left: 0; }

/* layout primitives */
.container { max-width: var(--max); margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.eyebrow { font: 600 .78rem/1 "JetBrains Mono", monospace; letter-spacing: .18em;
  color: var(--accent-soft); text-transform: uppercase; margin: 0 0 1rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: .65rem 1.4rem; border-radius: 999px; font-weight: 600; text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-soft); color: var(--dusk-950); }
.btn-ghost { border: 1px solid var(--dusk-800); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent-soft); color: var(--accent-soft); }

/* nav */
.nav-wrap { position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--dusk-950) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--dusk-800); }
.nav { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.nav-logo { font-weight: 800; font-size: 1.2rem; color: var(--accent);
  text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; min-height: 44px;
  display: inline-flex; align-items: center; }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn-primary { color: #fff; }
.nav-burger { display: none; margin-left: auto; background: none; border: 1px solid var(--dusk-800);
  color: var(--ink); border-radius: var(--radius); min-width: 44px; min-height: 44px; font-size: 1.1rem; }
@media (max-width: 720px) {
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links { display: none; position: absolute; inset: 64px 0 auto 0; flex-direction: column;
    align-items: stretch; background: var(--dusk-900); padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--dusk-800); }
  .nav-links.is-open { display: flex; }
}

/* hero (v1) — vertical rhythm kept tight so the brand band lands above the
   fold on ~900px-tall laptops; the marquee is the page's attention hook. */
.hero { position: relative; padding-block: clamp(2.25rem, 3.5vw, 3rem) 0; overflow: hidden; }
.hero-grid { display: grid; gap: 3rem; align-items: center; padding-bottom: clamp(1.5rem, 3vw, 2rem); }
.hero-sub { color: var(--ink-soft); font-size: 1.12rem; max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.5rem; }
.store-badges { display: inline-flex; gap: .75rem; align-items: center; }
.store-badges a { display: inline-flex; align-items: center; min-height: 44px; }
.horizon { height: 2px; background: var(--ramp); opacity: .85; }

/* prose (howto, data-deletion, 404) */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.5em; }
.prose h3 { margin-top: 1.8em; color: var(--ink); }
.prose img { border: 1px solid var(--dusk-800); border-radius: var(--radius); }

/* footer */
.footer { border-top: 1px solid var(--dusk-800); margin-top: 4rem;
  padding-block: 3rem 2rem; background: var(--dusk-900); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-tagline { color: var(--ink-soft); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-links a { color: var(--ink-soft); text-decoration: none; min-height: 44px;
  display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--accent-soft); }
.footer-fine { color: var(--ink-soft); font-size: .85rem; margin-top: 2rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* hero v2: phone demo */
.hero-grid-2 { position: relative; }
@media (min-width: 880px) { .hero-grid-2 { grid-template-columns: 1.1fr .9fr; } }
.phone { justify-self: center; background: var(--dusk-900); border: 1px solid var(--dusk-800);
  border-radius: var(--radius-lg); padding: 10px; max-width: 480px;
  box-shadow: 0 24px 60px rgb(0 0 0 / .45); }
.phone video { border-radius: calc(var(--radius-lg) - 8px); }

/* brand marquee — light band so original-color logos read as-is (several marks are black) */
.brands { padding-block: 2rem 2.5rem; background: var(--ink); }
.brands .eyebrow { color: var(--accent); }  /* magenta on light = 4.65:1 */
.marquee { overflow: hidden; display: flex; margin-top: 1rem;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 2.5rem; list-style: none;
  margin: 0; padding: 0 1.25rem; flex-shrink: 0; min-width: 100%;
  animation: marquee 45s linear infinite; }
@keyframes marquee { to { transform: translateX(-100%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  /* flex-wrap must live on the track (it holds the 22 chip <li>s), not on
     .marquee. The track also keeps flex-shrink:0 from its base rule, which
     freezes it at its ~3900px max-content hypothetical size regardless of
     flex-wrap or min-width — verified empirically (headless-Chrome render):
     flex-wrap alone, even with min-width:0 added, still clips to one row.
     flex-shrink must be relaxed so the track can actually settle at 100%
     width for wrapping to take effect; min-width:0 then removes the (now
     redundant) 100% floor rather than leaving it to coincide by luck. */
  .marquee-track { animation: none; flex-wrap: wrap; flex-shrink: 1; min-width: 0; }
  .marquee { mask-image: none; }
  .marquee-track[aria-hidden] { display: none; }  /* clone is only for the loop */
}
/* free-floating brand marks, original colors (no filter, no pill container) */
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .25rem;
  text-decoration: none; }
.chip img { width: auto; }  /* height set per-logo inline (area-normalized in hugo.yaml) */
.chip:hover img { opacity: .8; }
.chip-name { font: 600 .9rem/1 "JetBrains Mono", monospace; color: var(--dusk-900);
  letter-spacing: .04em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chip:hover .chip-name { color: var(--accent); }

/* sections */
.section-alt { background: var(--dusk-900); border-block: 1px solid var(--dusk-800); }
.section-sub { color: var(--ink-soft); max-width: 38rem; margin-bottom: 2rem; }
.cards { display: grid; gap: 1.25rem; margin-top: 2rem; }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--dusk-900); border: 1px solid var(--dusk-800);
  border-radius: var(--radius); padding: 1.5rem; }
.section-alt .card { background: var(--dusk-800); border-color: #34376B; }
.card p { color: var(--ink-soft); margin-bottom: 1rem; }
.card .btn { margin-top: .25rem; }
.download-center { text-align: center; }
.download-center .section-sub { margin-inline: auto; }
.store-badges-lg { justify-content: center; margin-top: 1.5rem; display: flex; gap: 1rem; }
/* contact form */
.contact-narrow { max-width: 34rem; }
.contact-form { display: grid; gap: .4rem; }
.contact-form label { font-weight: 600; margin-top: .8rem; }
.contact-form input, .contact-form textarea { background: var(--dusk-950); color: var(--ink);
  border: 1px solid var(--dusk-800); border-radius: var(--radius); padding: .7rem .9rem;
  font: inherit; min-height: 44px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent-soft); outline-offset: 1px; }
.contact-form .btn { margin-top: 1.2rem; justify-self: start; }

/* howto demo clips */
.demo-clip { max-width: 100%; height: auto; border: 1px solid var(--dusk-800);
  border-radius: var(--radius); background: var(--dusk-900); margin: 1.5rem 0; }
