/* ===== BREAKSHELL FIREWORKS — wholesale store (red / yellow / blue) ===== */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f4ee;     /* warm light panel */
  --ink: #1a1714;         /* warm near-black */
  --muted: #7a736b;
  --red: #e4221b;         /* POP-POP box red */
  --red-dark: #b9160f;
  --yellow: #ffcc00;      /* box yellow */
  --blue: #1b75bc;        /* cartoon blue */
  --line: rgba(0, 0, 0, 0.12);
  --radius: 4px;
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Inter", sans-serif;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
}

/* highlighted words — red accent */
.grad { color: var(--red); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1rem 1.8rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn-pop { background: var(--red); color: #fff; border-color: var(--red); }
.btn-pop:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ===== Wholesale bar ===== */
.trade-bar {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #fff;
  background: var(--red);
  padding: 0.7rem 1rem;
}

/* ===== Nav ===== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1rem, 4vw, 3rem);
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--ink); }
.brand-mark { height: 1.75rem; width: auto; display: block; }
.brand-name { font-weight: 800; letter-spacing: 0.3em; font-size: 0.9rem; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { padding: 0.7rem 1.3rem; font-size: 0.7rem; }
.nav-menu { display: flex; align-items: center; gap: 1.6rem; }

/* ===== Hero — live fireworks (canvas drawn by script.js) ===== */
.hero {
  position: relative;
  min-height: clamp(460px, 68vh, 680px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(125% 100% at 50% 118%, #3a2a63 0%, #241a45 42%, #14112a 78%) #14112a;
}
.hero-slider { position: absolute; inset: 0; z-index: 0; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(8, 8, 16, 0.28); z-index: 1; }
.hero-overlay {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  width: 100%;
  padding: 0 clamp(1.2rem, 5vw, 3rem);
  text-align: center;
  color: #fff;
}
.hero-overlay .eyebrow { color: rgba(255, 255, 255, 0.75); }
.hero-title {
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 1.3rem;
}
.hero-sub { font-size: 1.05rem; color: rgba(255, 255, 255, 0.82); max-width: 42ch; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; justify-content: center; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ===== Sections ===== */
section { scroll-margin-top: 90px; }
.section-head { max-width: var(--maxw); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 4vw, 3rem) 0; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; }
.cat-blurb { max-width: 52ch; margin: 0.9rem auto 0; color: var(--muted); text-align: center; font-size: 0.98rem; }

/* Features — dark showcase band ("Why Breakshell") */
.product {
  background: radial-gradient(120% 130% at 50% -20%, #201639, #0a0a14 62%);
  padding: clamp(3.2rem, 7vw, 5.2rem) 0 clamp(3.4rem, 7vw, 5.4rem);
}
.product-head { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem); text-align: center; color: #fff; }
.product-head .eyebrow { color: rgba(255, 255, 255, 0.6); }
.product-head h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -0.03em; }
.product-head .pop { color: var(--yellow); }
.feature-grid {
  max-width: var(--maxw);
  margin: 2.6rem auto 0;
  padding: 0 clamp(1rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.feature {
  --card-c: var(--red);
  position: relative;
  overflow: hidden;
  padding: 2.2rem 1.8rem 2.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 3px solid var(--card-c);
  border-radius: var(--radius);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.feature:nth-child(2) { --card-c: var(--yellow); }
.feature:nth-child(3) { --card-c: var(--blue); }
.feature:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.09); border-color: var(--card-c); }
/* Animated scene behind each card's text: cases gliding by (01), truck on the
   road (02), blooming fireworks (03). Tinted with the card's color; the global
   prefers-reduced-motion rule freezes them. */
.feature-bg { position: absolute; left: 0; right: 0; bottom: 0; height: 78px; color: var(--card-c); opacity: 0.3; pointer-events: none; }
/* Card 3's fireworks use a brighter blue and a higher layer opacity — the
   brand blue + 0.3 opacity was washing out against the dark card. */
.feature-bg--sky { top: 0; height: auto; opacity: 0.62; color: #4aa3ff; }
.feature-bg svg { width: 100%; height: 100%; display: block; }
.feature > :not(.feature-bg) { position: relative; z-index: 1; }
.fx-conveyor { animation: bs-conveyor 16s linear infinite; }
@keyframes bs-conveyor { to { transform: translateX(-400px); } }
.fx-convoy { animation: bs-convoy 18s linear infinite; }
@keyframes bs-convoy { from { transform: translateX(-400px); } to { transform: translateX(0); } }
.fx-burst { transform-box: fill-box; transform-origin: center; opacity: 0; animation: bs-burst 3s ease-out infinite; }
.fx-burst.d1 { animation-delay: 1s; }
.fx-burst.d2 { animation-delay: 2s; }
@keyframes bs-burst {
  0% { transform: scale(0.15); opacity: 0; }
  12% { opacity: 0.95; }
  45% { transform: scale(1); opacity: 0.9; }
  75%, 100% { transform: scale(1.18); opacity: 0; }
}
.feature-icon { display: inline-block; background: var(--card-c); color: #fff; padding: 0.35rem 0.65rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; border-radius: var(--radius); margin-bottom: 1.3rem; }
.feature:nth-child(2) .feature-icon { color: var(--ink); }
.feature h3 { color: #fff; font-size: 1.25rem; margin-bottom: 0.6rem; letter-spacing: -0.01em; }
.feature p { color: rgba(255, 255, 255, 0.68); font-size: 0.94rem; line-height: 1.6; }

/* Gallery */
.gallery {
  max-width: var(--maxw);
  margin: 2.8rem auto 0;
  padding: 0 clamp(1rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.shot { display: block; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); text-decoration: none; color: inherit; transition: border-color 0.2s ease, transform 0.2s ease; }
.shot:hover { border-color: var(--ink); transform: translateY(-3px); }
.shot:hover .shot-cap { color: var(--ink); }
.shot-img { aspect-ratio: 1 / 1; display: grid; place-items: center; background: var(--bg-soft); }
.shot-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Cross-fading category tile photos */
.shot-img.tile-photos { position: relative; }
.tile-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.8s ease; }
.tile-photo.active { opacity: 1; }
.shot-img--yellow { background: var(--yellow); }
.shot-img--red { background: var(--red); }
.shot-img--blue { background: var(--blue); }
.shot-mark { color: var(--red); font-weight: 800; font-size: 1rem; letter-spacing: 0.02em; text-transform: uppercase; text-align: center; padding: 0 0.6rem; }
.shot-img--red .shot-mark, .shot-img--blue .shot-mark { color: #fff; }
.shot-ph { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.shot-ph .star { color: var(--red); font-size: 1.5rem; }
.shot-ph .tag { font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); border: 1px dashed var(--line); padding: 0.25rem 0.55rem; border-radius: var(--radius); }
.shot-cap { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.7rem 0.9rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); border-top: 1px solid var(--line); transition: color 0.2s ease; }
.shot-cap::after { content: "→"; opacity: 0.5; }
.gallery-note { max-width: var(--maxw); margin: 1.4rem auto 0; padding: 0 clamp(1rem, 4vw, 3rem); text-align: center; color: var(--muted); font-size: 0.82rem; }
/* Home gallery shows a subset; extra tiles live on the full categories.html page */
.shot.is-extra { display: none; }
.gallery-more-wrap { max-width: var(--maxw); margin: 1.8rem auto 0; padding: 0 clamp(1rem, 4vw, 3rem); text-align: center; }

/* Product detail page */
.breadcrumb { max-width: var(--maxw); margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 3rem) 0; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.pd { max-width: var(--maxw); margin: 0 auto; padding: 1.5rem clamp(1rem, 4vw, 3rem) clamp(3rem, 7vw, 5rem); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.pd-main { aspect-ratio: 1 / 1; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; }
.pd-main > * { width: 100%; height: 100%; }
.pd-main img { object-fit: cover; display: block; }
.pd-thumbs { display: flex; gap: 0.5rem; margin-top: 0.6rem; flex-wrap: wrap; }
.pd-thumb { width: 62px; height: 62px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; padding: 0; display: grid; background: none; }
.pd-thumb > * { width: 100%; height: 100%; }
.pd-thumb img { object-fit: cover; }
.pd-thumb.active { border: 2px solid var(--ink); }
.ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; background: var(--bg-soft); }
.ph-star { color: var(--red); }
.pd-main .ph-star { font-size: 2.2rem; }
.pd-thumb .ph-star { font-size: 1.1rem; }
.ph-tag { font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); border: 1px dashed var(--line); padding: 0.2rem 0.5rem; border-radius: var(--radius); }
.pd-thumb .ph-tag { display: none; }
.pd-info h1 { font-size: clamp(2rem, 5vw, 3rem); text-transform: uppercase; letter-spacing: -0.02em; margin-bottom: 0.9rem; }
.pd-desc { color: var(--muted); font-size: 1rem; line-height: 1.7; margin-bottom: 1.8rem; max-width: 46ch; }
.pd-field { margin-bottom: 1.6rem; }
.pd-field h4 { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; color: var(--muted); margin-bottom: 0.6rem; }
.pd-unit { display: inline-block; padding: 0.6rem 0.95rem; border: 1px solid var(--ink); border-radius: var(--radius); font-size: 0.85rem; font-weight: 600; }
.pd-field h4 span { color: var(--ink); }
.meter { display: flex; gap: 0.35rem; }
.meter .dot { width: 28px; height: 6px; border-radius: 3px; background: var(--line); }
.meter .dot.on { background: var(--red); }
.pd-effect { color: var(--muted); line-height: 1.6; margin: 0; }
.specs { display: grid; gap: 0; border-top: 1px solid var(--line); margin: 0; }
.specs .spec { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.specs dt { color: var(--muted); margin: 0; }
.specs dd { color: var(--ink); font-weight: 600; text-align: right; margin: 0; }
.pd-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 0.4rem; }

/* CTA */
.cta {
  max-width: 820px;
  margin: clamp(4rem, 9vw, 7rem) auto;
  padding: clamp(2.8rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  background: var(--yellow);
  color: var(--ink);
  border-radius: var(--radius);
}
.cta h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); text-transform: uppercase; letter-spacing: -0.02em; }
.cta p { color: rgba(26, 23, 20, 0.72); margin: 1rem auto 2rem; max-width: 48ch; }
.cta .eyebrow { color: rgba(26, 23, 20, 0.6); }
.contact-phone { display: inline-block; font-weight: 800; font-size: clamp(2rem, 6vw, 3.2rem); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; margin: 0.6rem 0 1rem; }
.contact-phone:hover { color: #000; text-decoration: underline; }
.contact-meta { font-size: 0.82rem; line-height: 1.9; color: rgba(26, 23, 20, 0.72); }
.contact-meta strong { color: var(--ink); font-weight: 700; }
.contact-meta a { color: var(--ink); text-decoration: underline; }

/* Safety & the law — two square cards (home). Art panels are inline SVG +
   CSS keyframes, same no-library approach as the "Why Breakshell" cards;
   the global prefers-reduced-motion rule freezes them. */
.safety-links-sec { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem) clamp(2.5rem, 6vw, 4rem); }
.safety-sq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 1.6rem); max-width: 880px; margin: 2.2rem auto 0; }
.safety-sq { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--bg); transition: border-color 0.15s ease, transform 0.15s ease; }
.safety-sq:hover { border-color: rgba(0, 0, 0, 0.4); transform: translateY(-2px); }
.sq-art { background: var(--bg-soft); border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.sq-art svg { display: block; width: 100%; height: auto; }
.safety-sq .body { display: block; padding: 1.2rem 1.4rem 1.4rem; }
.safety-sq .num { display: block; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.08em; }
.safety-sq:nth-child(1) .num { color: var(--red); }
.safety-sq:nth-child(2) .num { color: var(--blue); }
.safety-sq .t { display: block; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; margin-top: 0.4rem; }
.safety-sq .d { display: block; color: var(--muted); margin-top: 0.35rem; font-size: 0.95rem; }
.safety-sq .go { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.9rem; font-weight: 600; font-size: 0.9rem; }
.safety-sq .arrow { transition: transform 0.15s ease; }
.safety-sq:hover .arrow { transform: translateX(4px); }

/* card 1 art: the checklist ticks itself, one habit at a time */
.sqa-box { fill: none; stroke: rgba(26, 23, 20, 0.35); stroke-width: 2.5; }
.sqa-line { fill: rgba(26, 23, 20, 0.14); }
.sqa-check { fill: none; stroke: var(--red); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: sqa-tick 5.6s ease infinite; }
.sqa-check.c2 { animation-delay: 0.8s; }
.sqa-check.c3 { animation-delay: 1.6s; }
@keyframes sqa-tick {
  0% { stroke-dashoffset: 24; opacity: 1; }
  10%, 68% { stroke-dashoffset: 0; opacity: 1; }
  78%, 100% { stroke-dashoffset: 24; opacity: 0; }
}

/* card 2 art: a pin drops onto the state and pulses */
.sqa-state { fill: rgba(27, 117, 188, 0.08); stroke: rgba(27, 117, 188, 0.45); stroke-width: 2; stroke-dasharray: 7 6; stroke-linejoin: round; }
.sqa-pin path { fill: var(--blue); }
.sqa-pin .hole { fill: var(--bg-soft); }
.sqa-pin { animation: sqa-drop 4.8s ease infinite; }
@keyframes sqa-drop {
  0% { transform: translateY(-110px); opacity: 0; }
  8% { transform: translateY(0); opacity: 1; }
  12% { transform: translateY(-8px); }
  16%, 84% { transform: translateY(0); opacity: 1; }
  92%, 100% { transform: translateY(0); opacity: 0; }
}
.sqa-ring { fill: none; stroke: var(--blue); stroke-width: 2; opacity: 0; animation: sqa-pulse 4.8s ease-out infinite; }
.sqa-ring.r2 { animation-delay: 0.6s; }
@keyframes sqa-pulse {
  0%, 16% { r: 6; opacity: 0; }
  24% { opacity: 0.5; }
  52%, 100% { r: 36; opacity: 0; }
}

@media (max-width: 700px) {
  .safety-sq-grid { grid-template-columns: 1fr; max-width: 460px; }
}

/* Email list */
.signup { max-width: var(--maxw); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.signup-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.signup h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); text-transform: uppercase; letter-spacing: -0.02em; }
.signup-sub { color: var(--muted); margin-top: 0.6rem; max-width: 42ch; }
.signup-form { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: flex-start; }
.signup-form input[type="email"] { flex: 1 1 220px; min-width: 0; padding: 0.9rem 1rem; border: 1px solid var(--ink); border-radius: var(--radius); background: #fff; color: var(--ink); font-size: 0.95rem; font-family: inherit; }
.signup-form input::placeholder { color: var(--muted); }
.signup-msg { flex-basis: 100%; min-height: 1.2em; margin-top: 0.2rem; font-size: 0.85rem; font-weight: 600; }
.signup-msg.ok { color: #1f9d4d; }
.signup-msg.err { color: var(--red); }

/* visually-hidden honeypot (kept off-screen, not display:none so bots fill it) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Catalog loading / empty / error notices */
.cat-loading { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 2rem 0; font-size: 0.95rem; }
.cat-loading a { color: var(--red); }

/* Wholesale inquiry form */
.inquiry-sec { max-width: var(--maxw); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.inquiry-head h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); text-transform: uppercase; letter-spacing: -0.02em; }
.inquiry-sub { color: var(--muted); margin-top: 0.6rem; max-width: 54ch; }
.inquiry-sub a { color: var(--ink); text-decoration: underline; }
.inquiry-form { margin-top: 1.6rem; display: grid; gap: 1rem; max-width: 720px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.inquiry-form label { display: grid; gap: 0.4rem; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; }
.inquiry-form .req { color: var(--red); margin-left: 0.2rem; }
.inquiry-form input, .inquiry-form textarea { padding: 0.85rem 1rem; border: 1px solid var(--ink); border-radius: var(--radius); background: #fff; color: var(--ink); font-size: 0.95rem; font-family: inherit; text-transform: none; letter-spacing: normal; font-weight: 400; }
.inquiry-form textarea { resize: vertical; min-height: 96px; }
.inquiry-form input::placeholder, .inquiry-form textarea::placeholder { color: var(--muted); }
.inquiry-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.inquiry-actions .signup-msg { flex: 1 1 200px; margin: 0; }
/* Post-submit thank-you (replaces the form on success) */
.inquiry-thanks { text-align: center; max-width: 46ch; margin: 0 auto; }
.inquiry-thanks h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); text-transform: uppercase; letter-spacing: -0.02em; margin: 0.4rem 0 0.8rem; }
.inquiry-thanks p { color: var(--muted); line-height: 1.6; }
.inquiry-thanks a { color: var(--ink); text-decoration: underline; }

/* Footer — full-width black band, white text (content stays centered) */
.footer {
  background: #121010;
  color: #fff;
  margin: 0;
  padding: 3.5rem calc(max((100% - var(--maxw)) / 2, 0px) + clamp(1rem, 4vw, 3rem));
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}
.footer-brand .brand-mark { height: 2.4rem; display: inline-block; vertical-align: middle; }
.footer-brand .brand-name { display: inline-block; margin-left: 0.5rem; vertical-align: middle; letter-spacing: 0.3em; font-weight: 800; color: #fff; }
.footer-brand p { color: rgba(255, 255, 255, 0.6); margin-top: 0.7rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.14em; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-cols h4 { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; color: rgba(255, 255, 255, 0.55); margin-bottom: 1rem; font-weight: 600; }
.footer-cols a { display: block; color: rgba(255, 255, 255, 0.9); text-decoration: none; font-size: 0.9rem; margin-bottom: 0.55rem; }
.footer-cols a:hover { color: var(--yellow); }
.footer-fine { grid-column: 1 / -1; text-align: center; color: rgba(255, 255, 255, 0.55); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; padding-top: 1.8rem; border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 1.5rem; }

/* ===== Safety page ===== */
.safety { max-width: 820px; margin: 1.6rem auto 0; padding: 0 clamp(1rem, 4vw, 3rem) clamp(3rem, 7vw, 5rem); }
.safety-lead { font-size: 1.15rem; line-height: 1.6; margin-bottom: 1.4rem; }
.safety-block { padding: 2rem 0; border-top: 1px solid var(--line); }
.safety-block h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); text-transform: uppercase; letter-spacing: -0.02em; margin-bottom: 1rem; }
.safety-block h3 { font-size: 1.02rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 1.4rem 0 0.5rem; }
.safety-block p { color: var(--muted); line-height: 1.7; margin-bottom: 0.8rem; }
.safety-block strong { color: var(--ink); }
.tips { list-style: none; display: grid; gap: 0.7rem; margin: 0.4rem 0 0.6rem; }
.tips li { position: relative; padding-left: 1.7rem; line-height: 1.6; }
.tips li::before { content: "✶"; position: absolute; left: 0; top: 0.05em; color: var(--red); font-weight: 800; }
.tips li.no::before { content: "✕"; color: var(--ink); }
.callout { border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 0; padding: 1rem 1.2rem; margin: 1.2rem 0; background: var(--bg-soft); line-height: 1.6; }
.callout a { color: var(--red); }
/* Safety essentials — hairline-divided card grid */
.safety-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 1.8rem 0; }
.safety-card { background: var(--bg); padding: 1.3rem 1.2rem; }
.safety-card .n { color: var(--red); font-size: 1.1rem; line-height: 1; margin-bottom: 0.7rem; }
.safety-card h3 { font-size: 1rem; text-transform: none; letter-spacing: -0.01em; margin: 0 0 0.4rem; }
.safety-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; margin: 0; }
.sources { list-style: none; display: grid; gap: 0.55rem; }
.sources a { color: var(--ink); font-size: 0.92rem; }
.sources a:hover { color: var(--red); }
.disclaimer { color: var(--muted); font-size: 0.8rem; line-height: 1.6; border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 0.5rem; }

/* State law lookup */
.state-check { margin: 1.4rem 0; }
.state-check label { display: block; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; color: var(--muted); font-weight: 600; margin-bottom: 0.5rem; }
.state-check select { width: 100%; max-width: 340px; padding: 0.7rem 0.9rem; border: 1px solid var(--ink); border-radius: var(--radius); background: #fff; color: var(--ink); font-size: 0.95rem; font-family: inherit; }
.state-result:empty { display: none; }
.state-card { border: 1px solid var(--line); border-left: 3px solid var(--red); padding: 1rem 1.2rem; background: var(--bg-soft); margin-top: 1rem; }
.state-card p { margin: 0; color: var(--ink); }
.state-card .verify { color: var(--muted); font-size: 0.85rem; margin-top: 0.5rem; }
.tier { display: inline-block; font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #fff; padding: 0.28rem 0.6rem; border-radius: var(--radius); margin-bottom: 0.6rem; }
.tier-allowed { background: #1f9d4d; }
.tier-limited { background: #e08a1e; }
.tier-local { background: var(--blue); }
.tier-banned { background: var(--red); }

/* ===== Responsive ===== */
@media (max-width: 880px) {
  /* Nav: keep links in place — wrap them (centered) under the logo, no hamburger */
  .nav { flex-wrap: wrap; justify-content: center; gap: 0.7rem; text-align: center; }
  .nav-menu { flex-basis: 100%; justify-content: center; flex-wrap: wrap; gap: 0.6rem 1.3rem; }
  .nav-links { gap: 1.2rem; flex-wrap: wrap; justify-content: center; }
  .nav-links a { padding: 0.4rem 0.2rem; }
  .signup-inner { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
  /* Product page: stack and cap the image so it can't blow up on tablets */
  .pd { display: block; }
  .pd-media { max-width: 460px; margin: 0 auto 2rem; }
}
@media (max-width: 700px) {
  /* Features stack to one clean column with even dividers (no orphan cell) */
  .feature-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

/* Phones (iPhone X / Android and up): keep the hero from dominating the screen */
@media (max-width: 600px) {
  .hero { min-height: auto; padding: clamp(3.25rem, 11vh, 4.75rem) 0; }
  .hero-title { font-size: clamp(2rem, 10vw, 2.8rem); letter-spacing: -0.03em; line-height: 1; margin-bottom: 0.9rem; }
  .hero-sub { font-size: 0.95rem; line-height: 1.55; margin-bottom: 1.5rem; }
  .hero-actions { flex-direction: column; align-items: center; gap: 0.7rem; }
  .hero-actions .btn { width: auto; padding: 0.8rem 1.6rem; font-size: 0.78rem; }
  /* Catalog grids: 2-up on phones (desktop keeps the original auto-fill layout) */
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .shot.is-extra-mobile { display: none; }
}

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