/* =========================================================================
   ZAPPER+ — zapperlife.com
   Design system: Exaggerated Minimalism, black-first hardware brand.
   Hand-written CSS. No build step. Mobile-first.
   ========================================================================= */

/* ---------------------------------------------------------------
   1. DESIGN TOKENS
   --------------------------------------------------------------- */
:root {
  /* --- Color: core brand ---------------------------------------- */
  --c-ink: #0a0a0b;          /* near-black page ground, product body */
  --c-ink-soft: #141417;     /* raised dark surface */
  --c-ink-line: #26262b;     /* hairline on dark */
  --c-white: #ffffff;
  --c-paper: #f4f4f2;        /* light section ground */
  --c-paper-warm: #eceae5;   /* alt light ground */
  --c-hairline: #d9d7d2;     /* hairline on light */

  /* --- Color: accents ------------------------------------------- */
  /* Signal red — brand accent on dark grounds. 5.58:1 on --c-ink. */
  --c-signal: #ff3b30;
  /* Button fill: white text on this reads 5.54:1 (AA). The brighter
     --c-signal only reaches 3.55:1 with white, so it must never fill a
     button that carries label text. */
  --c-signal-btn: #c9271d;
  --c-signal-btn-hover: #d8342a;
  /* Red text on light grounds: 4.93:1 on warm paper, 5.38:1 on light paper. */
  --c-signal-deep: #c41e12;
  /* Product button green — secondary accent, non-text use only */
  --c-volt: #2fd45f;
  /* Electric blue — zap/current motif */
  --c-arc: #4cc2ff;
  --c-arc-deep: #0069a8;     /* 4.62:1 on white */

  /* --- Color: text roles ---------------------------------------- */
  --t-on-dark: #ffffff;          /* 19.6:1 on ink */
  --t-on-dark-mute: #b4b4bb;     /* 9.2:1 on ink — above the #9ca3af floor */
  --t-on-dark-faint: #9ea1a8;    /* 7.3:1 on ink — smallprint only */
  --t-on-light: #0a0a0b;         /* 19.6:1 on paper */
  --t-on-light-mute: #55555c;    /* 7.4:1 on paper */

  /* --- Typography ----------------------------------------------- */
  --f-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
            Roboto, Helvetica, Arial, sans-serif;
  --f-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
            "Liberation Mono", monospace;
  --f-sans-tech: var(--f-sans), "DejaVu Sans", "Segoe UI Symbol",
                 "Noto Sans Symbols 2", sans-serif;

  /* Fluid type scale — 375px floor, 1440px ceiling */
  --fs-display: clamp(2.75rem, 1.6rem + 4.9vw, 6.5rem);   /* hero h1 */
  --fs-h2: clamp(2rem, 1.35rem + 2.8vw, 4rem);
  --fs-h3: clamp(1.375rem, 1.15rem + 0.95vw, 2rem);
  --fs-h4: clamp(1.125rem, 1.05rem + 0.32vw, 1.3125rem);
  --fs-lead: clamp(1.125rem, 1.02rem + 0.45vw, 1.4375rem);
  --fs-body: 1.0625rem;      /* 17px */
  --fs-sm: 0.9375rem;        /* 15px */
  --fs-xs: 0.8125rem;        /* 13px */
  --fs-stat: clamp(2.5rem, 1.5rem + 4.3vw, 5rem);

  --lh-tight: 0.95;
  --lh-snug: 1.15;
  --lh-body: 1.65;
  --ls-display: -0.045em;
  --ls-h2: -0.035em;
  --ls-label: 0.16em;

  /* --- Spacing: 4/8 rhythm -------------------------------------- */
  --s-1: 0.25rem;  --s-2: 0.5rem;   --s-3: 0.75rem;  --s-4: 1rem;
  --s-5: 1.5rem;   --s-6: 2rem;     --s-7: 3rem;     --s-8: 4rem;
  --s-9: 6rem;     --s-10: 8rem;
  --s-section: clamp(4.5rem, 3rem + 6.4vw, 9rem);
  --s-gutter: clamp(1.25rem, 0.6rem + 2.8vw, 3rem);

  /* --- Layout ---------------------------------------------------- */
  --w-max: 1240px;
  --w-narrow: 780px;
  --w-prose: 65ch;
  --nav-h: 64px;

  /* --- Radius / border ------------------------------------------- */
  --r-sm: 4px;  --r-md: 8px;  --r-lg: 16px;  --r-pill: 999px;

  /* --- Motion ---------------------------------------------------- */
  --e-out: cubic-bezier(0.22, 1, 0.36, 1);
  --e-std: cubic-bezier(0.4, 0, 0.2, 1);
  --d-fast: 150ms;
  --d-mid: 250ms;

  --z-nav: 100;
  --z-menu: 200;
  --z-skip: 300;
}

/* ---------------------------------------------------------------
   2. RESET / BASE
   --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  margin: 0;
  background: var(--c-ink);
  color: var(--t-on-dark);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: var(--lh-snug); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--c-arc);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--c-signal); color: #fff; }

/* ---------------------------------------------------------------
   3. UTILITIES
   --------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  padding-inline: var(--s-gutter);
}
.wrap--narrow { max-width: var(--w-narrow); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: var(--s-4);
  z-index: var(--z-skip);
  background: var(--c-white);
  color: var(--c-ink);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-md);
  font-weight: 700;
  text-decoration: none;
  transition: top var(--d-fast) var(--e-std);
}
.skip-link:focus { top: var(--s-4); }

/* Section grounds */
.band { padding-block: var(--s-section); }
.band--dark  { background: var(--c-ink);      color: var(--t-on-dark); }
.band--soft  { background: var(--c-ink-soft); color: var(--t-on-dark); }
.band--light { background: var(--c-paper);    color: var(--t-on-light); }
.band--warm  { background: var(--c-paper-warm); color: var(--t-on-light); }

/* Eyebrow label */
.eyebrow {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  margin: 0 0 var(--s-4);
  color: var(--c-signal);
}
.band--light .eyebrow, .band--warm .eyebrow { color: var(--c-signal-deep); }

.h2 {
  font-size: var(--fs-h2);
  letter-spacing: var(--ls-h2);
  font-weight: 800;
  max-width: 18ch;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--t-on-dark-mute);
  max-width: 46ch;
}
.band--light .lead, .band--warm .lead { color: var(--t-on-light-mute); }

/* ---------------------------------------------------------------
   4. BUTTONS
   --------------------------------------------------------------- */
.btn {
  --btn-bg: var(--c-signal-btn);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 52px;
  padding: var(--s-3) var(--s-6);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  font-size: var(--fs-body);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  text-align: center;
  transition: transform var(--d-fast) var(--e-out),
              background-color var(--d-fast) var(--e-std),
              border-color var(--d-fast) var(--e-std);
}
.btn:hover { background: var(--c-signal-btn-hover); }
.btn:active { transform: scale(0.975); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--c-white);
  border-color: rgba(255, 255, 255, 0.32);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }

.btn--nav { min-height: 42px; padding: var(--s-2) var(--s-5); font-size: var(--fs-sm); }
.btn--lg  { min-height: 60px; padding: var(--s-4) var(--s-7); font-size: var(--fs-h4); }
.btn--block { width: 100%; }

/* ---------------------------------------------------------------
   5. HEADER / NAV
   --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(10, 10, 11, 0.88);
  border-bottom: 1px solid var(--c-ink-line);
}
@supports (backdrop-filter: blur(12px)) {
  .site-header { backdrop-filter: blur(14px) saturate(140%); }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--c-white);
  text-decoration: none;
}
.brand__bolt { width: 20px; height: 20px; color: var(--c-signal); flex: none; }
.brand__plus { color: var(--c-signal); }

.nav__links {
  display: none;
  align-items: center;
  gap: var(--s-6);
  list-style: none;
}
.nav__link {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--t-on-dark-mute);
  text-decoration: none;
  padding-block: var(--s-2);
  transition: color var(--d-fast) var(--e-std);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--c-signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--d-mid) var(--e-out);
}
.nav__link:hover { color: var(--c-white); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__cta { display: none; }

/* Mobile menu toggle */
.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: var(--s-2) var(--s-3);
  background: transparent;
  border: 1px solid var(--c-ink-line);
  border-radius: var(--r-pill);
  color: var(--c-white);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav__toggle-icon { width: 18px; height: 18px; }
.nav__toggle-icon .bar {
  transition: transform var(--d-mid) var(--e-out), opacity var(--d-fast) var(--e-std);
  transform-origin: center;
}
.nav__toggle[aria-expanded="true"] .bar--top { transform: translateY(5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .bar--mid { opacity: 0; }
.nav__toggle[aria-expanded="true"] .bar--bot { transform: translateY(-5px) rotate(-45deg); }

/* Mobile drawer */
.nav__drawer {
  display: none;
  border-top: 1px solid var(--c-ink-line);
  padding-block: var(--s-5) var(--s-6);
}
.nav__drawer.is-open { display: block; }
.nav__drawer-list { list-style: none; display: grid; gap: var(--s-1); margin-bottom: var(--s-5); }
.nav__drawer-link {
  display: block;
  padding: var(--s-3) 0;
  font-size: var(--fs-h3);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--c-white);
  text-decoration: none;
}
.nav__drawer-link:hover { color: var(--c-signal); }

@media (min-width: 900px) {
  .nav__links, .nav__cta { display: flex; }
  .nav__toggle { display: none; }
  .nav__drawer { display: none !important; }
}

/* ---------------------------------------------------------------
   6. HERO
   --------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 1.5rem + 6vw, 6.5rem) var(--s-section);
  overflow: hidden;
}
/* faint electric arc glow behind the product */
.hero::before {
  content: "";
  position: absolute;
  top: 10%; right: -20%;
  width: 70vw; height: 70vw;
  max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(76, 194, 255, 0.16) 0%, rgba(76, 194, 255, 0) 68%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: var(--s-7);
  align-items: center;
}

.hero__title {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  font-weight: 800;
  margin-bottom: var(--s-5);
  text-wrap: balance;
}
.hero__title .accent { color: var(--c-signal); }

.hero__sub {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--t-on-dark-mute);
  max-width: 48ch;
  margin-bottom: var(--s-6);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }
.hero__helper {
  font-size: var(--fs-sm);
  color: var(--t-on-dark-faint);
  margin-top: var(--s-3);
}

.hero__proof {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-6);
  padding: var(--s-3) var(--s-5);
  border: 1px solid var(--c-ink-line);
  border-radius: var(--r-pill);
  background: #131316;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--t-on-dark);
}
.hero__proof svg { width: 18px; height: 18px; color: var(--c-signal); flex: none; }

.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
}

@media (min-width: 940px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--s-8); }
}

/* ---------------------------------------------------------------
   7. STAT BAR
   --------------------------------------------------------------- */
.stats {
  border-block: 1px solid var(--c-ink-line);
  padding-block: var(--s-7);
  background: var(--c-ink-soft);
}
.stats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  text-align: center;
}
.stat__value {
  display: block;
  font-size: var(--fs-stat);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.stat:nth-child(1) .stat__value { color: var(--c-signal); }
.stat__label {
  display: block;
  margin-top: var(--s-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t-on-dark-mute);
}
.stats__note {
  margin-top: var(--s-6);
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--t-on-dark-faint);
}
@media (min-width: 720px) {
  .stats__grid { grid-template-columns: repeat(3, 1fr); }
  .stat + .stat { border-left: 1px solid var(--c-ink-line); }
}

/* ---------------------------------------------------------------
   8. PROBLEM
   --------------------------------------------------------------- */
.problem__grid { display: grid; gap: var(--s-7); }
.problem__body { display: grid; gap: var(--s-5); }
.problem__body p {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--t-on-dark-mute);
  max-width: 60ch;
}
.problem__kicker {
  font-size: var(--fs-h2);
  font-weight: 800;
  letter-spacing: var(--ls-h2);
  line-height: 1.1;
  color: var(--c-white);
  margin-top: var(--s-4);
  max-width: 16ch;
}
.problem__media img { border-radius: var(--r-lg); width: 100%; }
@media (min-width: 900px) {
  .problem__grid { grid-template-columns: 1.35fr 0.65fr; align-items: start; gap: var(--s-8); }
}

/* ---------------------------------------------------------------
   9. FEATURES
   --------------------------------------------------------------- */
.features__head { margin-bottom: var(--s-8); }

.feature {
  display: grid;
  gap: var(--s-5);
  padding-block: var(--s-7);
  border-top: 1px solid var(--c-hairline);
  align-items: center;
}
.band--dark .feature, .band--soft .feature { border-top-color: var(--c-ink-line); }

.feature__index {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--c-signal-deep);
}
.band--dark .feature__index, .band--soft .feature__index { color: var(--c-signal); }

.feature__title {
  font-size: var(--fs-h3);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: var(--s-2) 0 var(--s-4);
  max-width: 20ch;
}
.feature__body {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--t-on-light-mute);
  max-width: 62ch;
  font-family: var(--f-sans-tech);
}
.band--dark .feature__body, .band--soft .feature__body { color: var(--t-on-dark-mute); }

.feature__media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-5);
  background: var(--c-white);
  border-radius: var(--r-lg);
}
.band--dark .feature__media, .band--soft .feature__media {
  background: #131316;
  border: 1px solid var(--c-ink-line);
}
.feature__media img { width: 100%; height: auto; max-height: 320px; object-fit: contain; }
.feature__media--tall img { max-height: 400px; }

/* Photographic feature media: edge-to-edge inside the plate, no padding ring */
.feature__media--photo {
  padding: 0;
  overflow: hidden;
  background: none;
  border-radius: var(--r-lg);
}
.band--dark .feature__media--photo,
.band--soft .feature__media--photo { background: none; border: 0; }
.feature__media--photo img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--r-lg);
}

/* inline SVG illustration frame */
.figure-svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  margin-inline: auto;
}
.figure-svg .stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.figure-svg .stroke--thin { stroke-width: 2; }
.figure-svg .fill-accent { fill: var(--c-signal); }
.figure-svg .stroke-accent { stroke: var(--c-signal); }
.figure-svg .stroke-arc { stroke: var(--c-arc-deep); }
.band--dark .figure-svg .stroke-arc,
.band--soft .figure-svg .stroke-arc { stroke: var(--c-arc); }
.figure-svg .fill-soft { fill: rgba(0, 0, 0, 0.06); }
.band--dark .figure-svg .fill-soft,
.band--soft .figure-svg .fill-soft { fill: rgba(255, 255, 255, 0.08); }

@media (min-width: 860px) {
  .feature { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
  .feature--flip .feature__text { order: 2; }
  .feature--flip .feature__media { order: 1; }
}

/* ---------------------------------------------------------------
   10. HOW IT WORKS
   --------------------------------------------------------------- */
.steps {
  display: grid;
  gap: var(--s-6);
  margin-top: var(--s-8);
  counter-reset: step;
}
.step {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Opaque card ground: white body text reads 17.4:1, muted 8.2:1 */
  background: #131316;
  border: 1px solid var(--c-ink-line);
  border-radius: var(--r-lg);
}
.step__text { padding: var(--s-6); }

/* Photo steps: square media plate above the copy */
.step__media {
  aspect-ratio: 1 / 1;
  border-bottom: 1px solid var(--c-ink-line);
  background: #000;
}
.step__media img { width: 100%; height: 100%; object-fit: cover; }

/* The Shake step carries no photo, so give it a quiet graphic anchor
   that keeps the three cards balanced instead of leaving a hole. */
.step--text { justify-content: center; }
.step--text .step__text { display: flex; flex-direction: column; height: 100%; justify-content: center; }
.step--text .step__text::before {
  content: "";
  display: block;
  height: 4px;
  width: 56px;
  margin-bottom: var(--s-5);
  background: var(--c-signal);
  border-radius: var(--r-pill);
}
.step__num {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--c-signal);
}
.step__icon { width: 56px; height: 56px; margin: var(--s-4) 0; color: var(--c-white); }
.step__label {
  font-size: var(--fs-h3);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-3);
}
.step__body { color: var(--t-on-dark-mute); font-size: var(--fs-sm); line-height: 1.6; }

.steps__closing {
  margin-top: var(--s-7);
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--c-white);
}
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ---------------------------------------------------------------
   11. PRODUCT CARDS
   --------------------------------------------------------------- */
.products__head { margin-bottom: var(--s-8); }
.product-grid { display: grid; gap: var(--s-6); }

.card {
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-6);
  background: linear-gradient(180deg, #ffffff 0%, #f1f0ee 100%);
  border-bottom: 1px solid var(--c-hairline);
}
.card__media img { width: auto; max-width: 100%; max-height: 340px; object-fit: contain; }
.card__body { padding: var(--s-6); display: flex; flex-direction: column; flex: 1; }
.card__name {
  font-size: var(--fs-h3);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: var(--s-3);
}
.card__pitch {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--t-on-light-mute);
  margin-bottom: var(--s-5);
}

.spec-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.spec-table caption {
  text-align: left;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--t-on-light-mute);
  padding-bottom: var(--s-3);
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--c-hairline);
  vertical-align: top;
}
.spec-table th { font-weight: 600; color: var(--t-on-light-mute); width: 46%; }
.spec-table td {
  font-weight: 600;
  color: var(--t-on-light);
  font-variant-numeric: tabular-nums;
  font-family: var(--f-sans-tech);
}
.spec-note {
  margin-top: var(--s-4);
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--t-on-light-mute);
}
.dagger { color: var(--c-signal-deep); font-weight: 700; }

/* U+2393 DIRECT CURRENT is absent from Inter and from most system fallback
   faces, so it renders as tofu. Draw it instead; the accessible name still
   reads the real character to assistive tech. */
.dc-symbol {
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  vertical-align: -0.04em;
  margin-inline: 0.06em;
  color: currentColor;
}

@media (min-width: 880px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }

/* Set callout */
.callout {
  margin-top: var(--s-8);
  display: grid;
  gap: var(--s-6);
  align-items: center;
  padding: var(--s-7);
  background: var(--c-ink);
  color: var(--t-on-dark);
  border-radius: var(--r-lg);
}
.callout__title { font-size: var(--fs-h2); letter-spacing: var(--ls-h2); margin-bottom: var(--s-4); }
.callout__body { color: var(--t-on-dark-mute); margin-bottom: var(--s-5); max-width: 44ch; }
.callout__media img { width: 100%; border-radius: var(--r-md); }
@media (min-width: 860px) { .callout { grid-template-columns: 1fr 1fr; padding: var(--s-8); } }

/* ---------------------------------------------------------------
   12. STORY
   --------------------------------------------------------------- */
.story__grid { display: grid; gap: var(--s-7); }
.story__title { font-size: var(--fs-h2); letter-spacing: var(--ls-h2); margin-bottom: var(--s-6); }
.story__body { display: grid; gap: var(--s-5); }
.story__body p { color: var(--t-on-dark-mute); max-width: 62ch; line-height: var(--lh-body); }
.story__media img { width: 100%; border-radius: var(--r-lg); background: var(--c-white); }

.pullquote {
  margin: var(--s-8) 0 0;
  padding-left: var(--s-5);
  border-left: 4px solid var(--c-signal);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--c-white);
  max-width: 26ch;
}
@media (min-width: 900px) {
  .story__grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--s-8); align-items: start; }
}

.team { margin-top: var(--s-9); padding-top: var(--s-7); border-top: 1px solid var(--c-ink-line); }
.team__title { font-size: var(--fs-h3); letter-spacing: -0.025em; margin-bottom: var(--s-4); }
.team__body { color: var(--t-on-dark-mute); max-width: 62ch; line-height: var(--lh-body); }
.principles { display: grid; gap: var(--s-6); margin-top: var(--s-7); list-style: none; }
.principle__icon { width: 32px; height: 32px; color: var(--c-signal); margin-bottom: var(--s-4); }
.principle__name {
  font-size: var(--fs-h4);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: var(--s-2);
}
.principle__text { font-size: var(--fs-sm); line-height: 1.6; color: var(--t-on-dark-mute); }
@media (min-width: 780px) { .principles { grid-template-columns: repeat(3, 1fr); } }

/* ---------------------------------------------------------------
   13. FAQ
   --------------------------------------------------------------- */
.faq__list { margin-top: var(--s-7); border-top: 1px solid var(--c-hairline); }
.faq__item { border-bottom: 1px solid var(--c-hairline); }
.faq__trigger {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  width: 100%;
  min-height: 56px;
  padding: var(--s-5) 0;
  background: none;
  border: 0;
  text-align: left;
  font-size: var(--fs-h4);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: var(--t-on-light);
  transition: color var(--d-fast) var(--e-std);
}
.faq__trigger:hover { color: var(--c-signal-deep); }
.faq__icon { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--c-signal-deep); }
.faq__icon .v {
  transform-origin: center;
  transition: transform var(--d-mid) var(--e-out), opacity var(--d-fast) var(--e-std);
}
.faq__trigger[aria-expanded="true"] .faq__icon .v { transform: rotate(90deg); opacity: 0; }
.faq__panel { display: none; padding-bottom: var(--s-5); }
.faq__panel.is-open { display: block; }
.faq__panel p {
  color: var(--t-on-light-mute);
  max-width: 68ch;
  line-height: var(--lh-body);
  font-family: var(--f-sans-tech);
}
.faq__panel a { color: var(--c-signal-deep); text-decoration: underline; text-underline-offset: 3px; }
.placeholder-tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.8em;
  padding: 2px 6px;
  background: var(--c-paper-warm);
  border: 1px dashed var(--c-hairline);
  border-radius: var(--r-sm);
  color: var(--t-on-light-mute);
}

/* ---------------------------------------------------------------
   14. EMAIL CAPTURE
   --------------------------------------------------------------- */
.signup { position: relative; overflow: hidden; }
.signup::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/fly-swatter-pair.webp");
  background-size: cover;
  background-position: center right;
  /* Faint enough to stay a texture, never competing with the form copy.
     Masked toward the edges so it never reads as a stray light band. */
  opacity: 0.05;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 78%);
  pointer-events: none;
}
.signup__inner { position: relative; text-align: center; }
.signup__title { font-size: var(--fs-h2); letter-spacing: var(--ls-h2); margin-bottom: var(--s-5); max-width: none; }
.signup__sub {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--t-on-dark-mute);
  max-width: 56ch;
  margin: 0 auto var(--s-7);
}

.form { max-width: 520px; margin-inline: auto; text-align: left; }
.form__row { display: grid; gap: var(--s-3); }
.form__label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: var(--s-2);
}
.form__input {
  width: 100%;
  min-height: 56px;
  padding: var(--s-3) var(--s-5);
  background: #17171b;
  border: 2px solid var(--c-ink-line);
  border-radius: var(--r-pill);
  color: var(--c-white);
  font-family: inherit;
  font-size: var(--fs-body);
  transition: border-color var(--d-fast) var(--e-std), background-color var(--d-fast) var(--e-std);
}
.form__input::placeholder { color: var(--t-on-dark-faint); }
.form__input:hover { border-color: #3a3a42; }
.form__input:focus { border-color: var(--c-arc); background: #1c1c21; outline: none; }
.form__input[aria-invalid="true"] { border-color: var(--c-signal); }

/* honeypot */
.form__trap {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form__status {
  margin-top: var(--s-4);
  min-height: 1.5rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.5;
}
.form__status:empty { margin-top: 0; min-height: 0; }
.form__status[data-state="error"] { color: #ff8a82; }
.form__status[data-state="success"] { color: #6ee88f; }
.form__status .status-icon { display: inline-block; width: 1em; height: 1em; vertical-align: -0.12em; margin-right: 0.35em; }

.form__note {
  margin-top: var(--s-5);
  font-size: var(--fs-xs);
  color: var(--t-on-dark-faint);
  text-align: center;
}
.btn[aria-busy="true"] { opacity: 0.72; pointer-events: none; }

@media (min-width: 560px) {
  .form__row { grid-template-columns: 1fr auto; align-items: end; }
  .form__field { min-width: 0; }
}

/* ---------------------------------------------------------------
   15. FOOTER
   --------------------------------------------------------------- */
.site-footer {
  background: #050506;
  border-top: 1px solid var(--c-ink-line);
  padding-block: var(--s-8) var(--s-6);
}
.footer__tagline {
  font-size: var(--fs-h3);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: var(--s-7);
  max-width: 22ch;
}
.footer__tagline .accent { color: var(--c-signal); }

.footer__cols { display: grid; gap: var(--s-6); }
.footer__col-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--t-on-dark-faint);
  margin-bottom: var(--s-4);
}
.footer__list { list-style: none; display: grid; gap: var(--s-1); }
.footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;      /* comfortable touch target */
  font-size: var(--fs-sm);
  color: var(--t-on-dark-mute);
  text-decoration: none;
  transition: color var(--d-fast) var(--e-std);
}
.footer__link:hover { color: var(--c-white); }

.footer__bottom {
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--c-ink-line);
  display: grid;
  gap: var(--s-2);
}
.footer__bottom p { font-size: var(--fs-xs); color: var(--t-on-dark-faint); }

@media (min-width: 700px) { .footer__cols { grid-template-columns: repeat(3, 1fr); max-width: 640px; } }
@media (min-width: 900px) {
  .footer__top { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: start; }
  .footer__cols { max-width: none; }
  .footer__bottom { grid-template-columns: 1fr auto; align-items: center; }
  .footer__bottom p:last-child { text-align: right; }
}

/* ---------------------------------------------------------------
   16. LEGAL / PROSE PAGES
   --------------------------------------------------------------- */
.page-head {
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) var(--s-7);
  border-bottom: 1px solid var(--c-ink-line);
}
.page-head__title {
  font-size: clamp(2.25rem, 1.5rem + 3.2vw, 4rem);
  letter-spacing: var(--ls-h2);
  line-height: 1.05;
  margin-bottom: var(--s-4);
}
.page-head__meta { font-size: var(--fs-sm); color: var(--t-on-dark-mute); }

.prose {
  max-width: var(--w-prose);
  padding-block: var(--s-8);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--t-on-dark-mute);
}
.prose h2 {
  font-size: var(--fs-h3);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--c-white);
  margin: var(--s-8) 0 var(--s-4);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: var(--fs-h4);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--c-white);
  margin: var(--s-6) 0 var(--s-3);
}
.prose p { margin-bottom: var(--s-4); }
.prose ul { margin: 0 0 var(--s-5); padding-left: var(--s-5); list-style: none; }
.prose li { position: relative; margin-bottom: var(--s-3); padding-left: var(--s-4); }
.prose li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.68em;
  width: 6px; height: 6px;
  background: var(--c-signal);
  border-radius: 50%;
}
.prose strong { color: var(--c-white); font-weight: 700; }
.prose a {
  color: var(--c-arc);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--c-white); }
.prose code, .prose .placeholder {
  font-family: var(--f-mono);
  font-size: 0.875em;
  padding: 2px 6px;
  /* Opaque so contrast is deterministic: #fff on #1c1c20 = 15.3:1 */
  background: #1c1c20;
  border: 1px dashed #3a3a42;
  border-radius: var(--r-sm);
  color: #ffffff;
}
.prose .legal-caps { font-size: var(--fs-sm); line-height: 1.7; }
.prose .contact-block { margin-top: var(--s-5); }
.prose .contact-block p { margin-bottom: var(--s-2); }

.legal-nav {
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid var(--c-ink-line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
}
.legal-nav a {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--t-on-dark-mute);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.legal-nav a:hover { color: var(--c-white); }
.legal-nav svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------
   17. MOTION — all animation gated behind reduced-motion
   --------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  /* Scoped to .js so content is never hidden when JavaScript is off or
     fails to load — without this the reveal state would strand sections
     at opacity:0 permanently. */
  .js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms var(--e-out), transform 600ms var(--e-out);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .reveal--d1 { transition-delay: 60ms; }
  .reveal--d2 { transition-delay: 120ms; }
  .reveal--d3 { transition-delay: 180ms; }

  .card { transition: transform var(--d-mid) var(--e-out), box-shadow var(--d-mid) var(--e-out); }
  .card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14); }

  .nav__drawer.is-open { animation: drawer-in 240ms var(--e-out); }
  @keyframes drawer-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
  }
  .faq__panel.is-open { animation: panel-in 220ms var(--e-out); }
  @keyframes panel-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------------------------------------------------------------
   18. PRINT
   --------------------------------------------------------------- */
@media print {
  .site-header, .signup, .nav__drawer, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .prose, .prose p, .prose li { color: #000; }
}
