/* DoorBlock — site styles */
:root {
  --bg: #000;
  --bg-alt: #0d0d0d;
  --card: #161616;
  --card-2: #1f1f1f;
  --line: #2a2a2a;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --dim: #6e6e73;
  --accent: #a0a0a0;
  --red: #b00000;
  --red-deep: #990000;
  --green: #3ecf6e;
  --amber: #f0b429;
  --radius: 16px;
  --max: 1200px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 112px 0; }
.section.alt { background: var(--bg-alt); }
.section.tight { padding: 72px 0; }
.center { text-align: center; }

.eyebrow {
  display: block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.title { font-size: clamp(34px, 5vw, 56px); font-weight: 600; }
.lede { color: var(--muted); font-size: clamp(18px, 2vw, 21px); max-width: 720px; }
.center .lede { margin-left: auto; margin-right: auto; }
.head { margin-bottom: 64px; }
.head .lede { margin-top: 18px; }

/* Announcement + header */
.announce {
  background: var(--red-deep);
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 16px;
}
.announce strong { letter-spacing: 0.04em; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo img { height: 64px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.nav-links a { color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a.btn, .nav-links a.btn[aria-current="page"] { color: #000; }
.menu-toggle {
  display: none; background: none; border: 0; color: var(--text);
  width: 44px; height: 44px; padding: 10px; cursor: pointer;
}
.menu-toggle svg { width: 24px; height: 24px; }

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; top: 84px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #000; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(0,0,0,.6);
    padding: 8px 24px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-links .btn { margin-top: 16px; border: 0; text-align: center; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px;
  font-size: 16px; font-weight: 500; font-family: inherit;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { background: #e8e8ed; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #c80000; }
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-lg { padding: 17px 36px; font-size: 18px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero */
.hero { padding: 96px 0 80px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 600; margin-bottom: 24px; }
.hero h1 span { color: var(--accent); }
.hero .lede { margin-bottom: 36px; }
.hero-img { position: relative; }
.hero-img::before {
  content: ""; position: absolute; inset: 10% 5%;
  background: radial-gradient(closest-side, rgba(255,255,255,.12), transparent);
  filter: blur(30px);
}
.hero-img img {
  position: relative; width: 100%;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 60%, transparent 100%);
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 40px; color: var(--muted); font-size: 14px; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 18px; height: 18px; color: var(--accent); }

@media (max-width: 900px) {
  .hero { padding: 56px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-img img { transform: none; }
}

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 36px 16px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(28px, 3.5vw, 40px); font-weight: 600; letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 14px; }
@media (max-width: 700px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Cards + grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding: 36px;
  transition: transform .3s, border-color .3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.14); }
.card h3 { font-size: 24px; margin-bottom: 12px; }
.card p { color: var(--muted); }
.icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent); color: #000;
  display: grid; place-items: center; margin-bottom: 24px; flex-shrink: 0;
}
.icon svg { width: 24px; height: 24px; }

/* Video */
.video-full { width: 100%; background: #000; }
.video-full video { width: 100%; height: auto; max-height: 85vh; object-fit: cover; }
.video-box { border-radius: var(--radius); overflow: hidden; background: #111; }
.video-box video { width: 100%; }

/* How it works */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.steps { display: grid; gap: 28px; margin-top: 32px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step-num {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: #fff; color: #000; font-weight: 600;
  display: grid; place-items: center;
}
.step h4 { font-size: 20px; margin-bottom: 4px; }
.step p { color: var(--muted); }
.callout {
  margin-top: 64px; padding: 28px 32px; border-radius: var(--radius);
  background: var(--card); border-left: 3px solid var(--accent);
  color: var(--muted); font-size: 18px;
}
.callout strong { color: var(--text); }
.media-frame { border-radius: var(--radius); overflow: hidden; background: #1a1a1a; }
.media-frame img { width: 100%; }

/* Showcase */
.show-card { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.06); }
.show-card .media { overflow: hidden; aspect-ratio: 16/10; background: #333; }
.show-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.show-card:hover .media img { transform: scale(1.05); }
.show-card .body { padding: 32px; }
.show-card h3 { font-size: 24px; margin-bottom: 10px; }
.show-card p { color: var(--muted); }
.show-wide { display: grid; grid-template-columns: 1fr 1fr; margin-top: 24px; }
.show-wide .media { aspect-ratio: auto; min-height: 320px; }
.show-wide .body { display: flex; flex-direction: column; justify-content: center; padding: 48px; }
@media (max-width: 760px) { .show-wide { grid-template-columns: 1fr; } .show-wide .body { padding: 32px; } }

.checks { display: grid; gap: 14px; margin-top: 24px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; color: var(--accent); }
.checks.good svg { color: var(--green); }
.checks.bad svg { color: #ff5a5a; }
.checks.warn svg { color: var(--amber); }

/* Pre-order */
.offer {
  background: var(--card); border-radius: 24px; padding: 56px;
  border: 1px solid rgba(255,255,255,.08);
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
}
@media (max-width: 860px) { .offer { grid-template-columns: 1fr; padding: 32px 24px; gap: 40px; } }
.pill {
  display: inline-block; background: var(--red-deep); color: #fff;
  font-size: 13px; font-weight: 600; letter-spacing: .08em;
  padding: 8px 16px; border-radius: 999px; margin-bottom: 24px;
}
.offer h3 { font-size: 32px; margin-bottom: 12px; }
.offer .note { color: var(--dim); font-size: 14px; margin-top: 28px; display: grid; gap: 6px; }
.summary { display: grid; }
.summary .row { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); }
.summary .row.save { color: var(--green); }
.summary .row.total { border-bottom: 0; font-size: 22px; font-weight: 600; }
.summary .row s { color: var(--dim); margin-right: 8px; font-weight: 400; }
.trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; margin-top: 18px; color: var(--muted); font-size: 14px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; }

/* Testimonials */
.quote { font-size: 19px; color: #d2d2d7; font-style: italic; margin-top: 8px; }
.quote-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.quote-head .icon { margin: 0; }
.quote-head h4 { font-size: 18px; }
.quote-head span { color: var(--dim); font-size: 14px; }

/* Pricing */
.cta-band { background: linear-gradient(135deg, #2e2e2e 0%, #121212 100%); }
.price-card { display: flex; flex-direction: column; }
.price-card .price { font-size: 44px; font-weight: 600; letter-spacing: -0.02em; margin: 20px 0 6px; }
.price-card .price s { font-size: 22px; color: var(--dim); font-weight: 400; margin-left: 10px; }
.price-card .badge { display: inline-block; align-self: flex-start; background: var(--red-deep); color: #fff; font-size: 13px; font-weight: 600; border-radius: 6px; padding: 6px 12px; margin-bottom: 28px; }
.price-card .btn { margin-top: auto; }
code.code { background: rgba(255,255,255,.1); border-radius: 6px; padding: 2px 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; color: #fff; }

/* Page hero */
.page-hero { padding: 96px 0 72px; text-align: center; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 18px; }
.page-hero .lede { margin: 0 auto; }

/* Install steps */
.install-step { display: grid; grid-template-columns: 64px 1fr; gap: 28px; padding: 48px 0; border-bottom: 1px solid var(--line); }
.install-step:last-child { border-bottom: 0; }
.install-step .step-num { width: 56px; height: 56px; font-size: 22px; }
.install-step h3 { font-size: 28px; margin-bottom: 12px; }
.install-step > div > p { color: var(--muted); }
.install-step .two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 28px; align-items: start; }
.install-step h4 { font-size: 17px; margin-bottom: 12px; }
.install-step ul.dots { display: grid; gap: 8px; color: var(--muted); }
.install-step ul.dots li { padding-left: 20px; position: relative; }
.install-step ul.dots li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tip { margin-top: 24px; padding: 16px 20px; border-radius: 12px; background: rgba(160,160,160,.08); border: 1px solid rgba(160,160,160,.2); color: #d2d2d7; font-size: 15px; display: flex; gap: 12px; }
.tip.warn { background: rgba(240,180,41,.08); border-color: rgba(240,180,41,.3); }
.tip svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
@media (max-width: 760px) {
  .install-step { grid-template-columns: 1fr; gap: 16px; }
  .install-step .two { grid-template-columns: 1fr; }
}

.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tool { background: var(--card); border-radius: 12px; padding: 20px; display: flex; gap: 14px; align-items: center; }
.tool .icon { width: 44px; height: 44px; margin: 0; }
.tool .icon svg { width: 20px; height: 20px; }
.tool b { display: block; font-size: 16px; }
.tool span { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .tools { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tools { grid-template-columns: 1fr; } }

ol.num { counter-reset: n; display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; color: var(--muted); }
ol.num li { counter-increment: n; display: flex; gap: 12px; }
ol.num li::before { content: counter(n); flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--card-2); color: var(--text); font-size: 13px; display: grid; place-items: center; margin-top: 2px; }

.practice { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.practice .card { padding: 28px; }
.practice h4 { font-size: 19px; margin-bottom: 8px; }

/* FAQ */
.faq { max-width: 840px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 40px 26px 0; position: relative;
  font-size: 20px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 22px; font-size: 26px; font-weight: 300; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 26px; }

/* Specs */
.spec-block { background: var(--card); border-radius: var(--radius); overflow: hidden; }
.spec-block h3 { font-size: 22px; padding: 26px 28px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; }
.spec-block h3 .icon { width: 40px; height: 40px; margin: 0; }
.spec-block h3 .icon svg { width: 18px; height: 18px; }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; }
.spec-list div { padding: 18px 28px; border-bottom: 1px solid var(--line); }
.spec-list dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-bottom: 4px; }
.spec-list dd { margin: 0; }
@media (max-width: 560px) { .spec-list { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; border-radius: var(--radius); background: var(--card); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 18px 20px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th { font-size: 14px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare tr:last-child td { border-bottom: 0; }
.compare .us { background: rgba(255,255,255,.05); color: #fff; }
.compare svg { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }
.compare .y { color: var(--green); }
.compare .n { color: #ff5a5a; }
.compare .m { color: var(--amber); font-size: 14px; font-weight: 500; }

/* Shop / product */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; padding: 64px 0 96px; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; gap: 40px; padding-top: 32px; } .product-info { position: static; } }
.gallery-main { background: #2b2b2b; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: #2b2b2b; aspect-ratio: 16/10; }
.thumbs button[aria-pressed="true"] { border-color: #fff; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info { position: sticky; top: 96px; align-self: start; }
.product-info h1 { font-size: clamp(34px, 4vw, 46px); margin: 8px 0 16px; }
.product-info .price-line { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.product-info .price-line b { font-size: 36px; font-weight: 600; }
.product-info .price-line s { color: var(--dim); font-size: 22px; }
.product-info .save-tag { background: var(--red-deep); color: #fff; font-size: 13px; font-weight: 600; border-radius: 6px; padding: 4px 10px; }
.bulk-note { margin: 20px 0 28px; padding: 16px 18px; border: 1px dashed rgba(255,255,255,.25); border-radius: 12px; font-size: 15px; color: #d2d2d7; }
.qty-row { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 44px; height: 48px; background: none; border: 0; color: var(--text); font-size: 20px; cursor: pointer; }
.qty button:hover { background: rgba(255,255,255,.06); }
.qty input { width: 48px; height: 48px; text-align: center; background: none; border: 0; color: var(--text); font: inherit; font-size: 17px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.line-total { color: var(--muted); font-size: 15px; }
.line-total b { color: var(--text); }
.product-info .desc { color: var(--muted); margin-top: 32px; display: grid; gap: 14px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { display: flex; gap: 18px; padding: 28px; }
.contact-card .icon { margin: 0; }
.contact-card h3 { font-size: 20px; margin-bottom: 6px; }
.contact-card p { color: var(--muted); font-size: 15px; }
.contact-card a { color: var(--text); border-bottom: 1px solid rgba(255,255,255,.3); }
form.contact { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; font: inherit; font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(160,160,160,.2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-status { font-size: 15px; color: var(--green); min-height: 1.5em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; color: var(--muted); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid img { height: 80px; width: auto; margin-bottom: 18px; }
.footer-grid h4 { color: var(--text); font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--text); }
.social { display: flex; gap: 12px; margin-top: 20px; }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: border-color .2s, color .2s; }
.social a:hover { border-color: #fff; color: #fff; }
.social svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Popup */
.popup-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 90; display: none; align-items: center; justify-content: center; padding: 16px; }
.popup-backdrop.show { display: flex; animation: fade .3s ease; }
.popup { background: #111; border: 1px solid #333; color: #fff; border-radius: 20px; padding: 36px 32px 28px; width: 100%; max-width: 360px; text-align: center; position: relative; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.popup img { height: 96px; width: auto; margin: 0 auto 20px; }
.popup h3 { font-size: 26px; margin-bottom: 8px; }
.popup p { opacity: .9; margin-bottom: 22px; }
.popup .btn { background: #fff; color: #000; font-weight: 600; }
.popup .close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; opacity: .8; }
.popup .close:hover { opacity: 1; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Back to top */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: #fff; color: #000; cursor: pointer;
  display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: opacity .3s;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

.mt-48 { margin-top: 48px; }
.mt-24 { margin-top: 24px; }

/* Photo hero (Jackal Africa): no fade mask, rounded corners */
.hero-img img.hero-photo {
  -webkit-mask-image: none;
  mask-image: none;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
}
.hero-img:has(.hero-photo)::before { display: none; }

/* Full-width hero banner + full-width photo (Jackal Africa home) */
.hero-banner { padding: 104px 0 72px; text-align: center; }
.hero-banner h1 {
  font-size: clamp(40px, 6vw, 72px); font-weight: 600;
  text-align: center; margin: 0 auto 36px;
}
.hero-banner h1 span { display: block; color: var(--accent); }
.hero-banner .btn-row, .hero-banner .hero-badges { justify-content: center; }
.hero-full { width: 100%; background: #000; }
.hero-full img {
  width: 100%;
  /* Max 560px tall; scales down on smaller screens. Cropped top/bottom, centred on the mirror cover */
  height: min(560px, 60vw);
  object-fit: cover;
  object-position: center 42%;
}
@media (max-width: 600px) { .hero-banner { padding: 64px 0 48px; } }
.hero-banner h1:last-child { margin-bottom: 0; }
.hero-cta { padding: 48px 24px 56px; text-align: center; }

/* "Join The Pack" tagline between logo and nav (logo orange) */
:root { --brand-orange: #E05512; }
.nav-tagline {
  flex: 1;
  text-align: center;
  color: var(--brand-orange);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  padding: 0 16px;
}
@media (max-width: 700px) { .stat b { font-size: 24px; } }

/* Shorter hero banner */
.hero-banner { padding: 64px 0 48px; }
.hero-banner h1 { font-size: clamp(32px, 5vw, 60px); line-height: 1.1; }
@media (max-width: 600px) { .hero-banner { padding: 36px 0 32px; } }

/* Orange "Order Yours" nav button */
.nav-links a.btn-orange,
.nav-links a.btn-orange[aria-current="page"] { background: var(--brand-orange); color: #fff; font-weight: 600; }
.nav-links a.btn-orange:hover { background: #c94a0f; }

/* Gallery (6 images) */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.gallery-item {
  margin: 0; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  background: var(--card);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item.placeholder {
  display: grid; place-items: center;
  border: 1px dashed rgba(255, 255, 255, .18);
  color: var(--dim); font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
}

/* Shop section on the home page */
#shop { scroll-margin-top: 90px; }
#shop .product { padding: 0; }
.product-title { font-size: clamp(30px, 3.6vw, 42px); margin: 8px 0 16px; }

/* Instagram widget placeholder */
.ig-placeholder {
  min-height: 320px; border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, .18); background: var(--card);
  display: grid; place-content: center; justify-items: center; gap: 12px;
  color: var(--dim); font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
}
.ig-placeholder svg { width: 36px; height: 36px; color: var(--brand-orange); }
#features, #instagram { scroll-margin-top: 90px; }

/* Orange "Follow the pack" heading */
#instagram .title { color: var(--brand-orange); }

/* Pull the shop section up */
#shop { padding-top: 48px; }
#shop .head { margin-bottom: 32px; }
#features { padding-bottom: 72px; }
#instagram { padding-top: 48px; }
#instagram .head { margin-bottom: 32px; }
#shop { padding-bottom: 48px; }
.nav-tagline { transition: color .2s; }
.nav-tagline:hover { color: #ff6a26; }

/* Footer: two columns (brand + contact) */
.footer-grid { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Desktop: contact column flush with the right edge of the content (matches Instagram box) */
@media (min-width: 761px) { .footer-grid > div:last-child { justify-self: end; text-align: right; } }

/* "Join The Pack" + "Designed for the love of adventure" stacked in the header */
.nav-brand-text { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 12px; min-width: 0; }
.nav-brand-text .nav-tagline { flex: none; padding: 0; }
.nav-sub {
  color: var(--muted);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(11px, 1.1vw, 14px);
  letter-spacing: .02em;
  white-space: nowrap;
}

/* Shop photos: square frames suit the mix of landscape and portrait shots */
#shop .gallery-main, #shop .thumbs button { aspect-ratio: 1 / 1; }

/* Announcement bar in brand orange */
.announce { background: var(--brand-orange); color: #fff; }

/* Colour options (round logo swatches) */
.variant { margin: 18px 0 20px; }
.variant-label { margin: 0 0 10px; color: var(--dim); font-size: 15px; }
.variant-label b { color: var(--text, #f5f5f7); font-weight: 600; }
.swatches { display: flex; gap: 14px; }
.swatch {
  width: 56px; height: 56px; padding: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; overflow: hidden;
  border: 2px solid rgba(255,255,255,.18); outline: 2px solid transparent; outline-offset: 3px;
  transition: outline-color .2s, transform .2s;
}
.swatch:hover { transform: scale(1.05); }
.swatch[aria-checked="true"] { outline-color: #fff; }
.swatch img { width: 58%; height: auto; }
.swatch-orange { background: var(--brand-orange); }
.swatch-orange img { filter: brightness(0); }
.swatch-black { background: #0b0b0b; }

/* Shown in place of photos when a colour has none yet */
.gallery-main { position: relative; }
.gallery-soon {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; background: #0b0b0b; color: var(--dim); font-size: 15px;
}
.gallery-soon[hidden], .thumbs[hidden], .thumbs button[hidden], #gallery-main[hidden] { display: none; }
.gallery-soon img { width: 96px; height: auto; }

/* Legal pages (terms, returns, privacy) */
.legal { max-width: 760px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.legal h2 { color: var(--text); font-size: 22px; margin: 40px 0 12px; scroll-margin-top: 100px; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--text); }
.legal a { color: var(--brand-orange); text-decoration: underline; }
.legal-updated { font-size: 14px; color: var(--dim); }
.legal-dl { display: grid; grid-template-columns: 220px 1fr; gap: 10px 20px; margin: 0 0 14px; }
.legal-dl dt { color: var(--text); font-weight: 500; }
.legal-dl dd { margin: 0; }
@media (max-width: 600px) { .legal-dl { grid-template-columns: 1fr; gap: 2px; } .legal-dl dd { margin-bottom: 12px; } }
/* Details still to fill in: highlighted so they're easy to spot */
mark.todo { background: rgba(224, 85, 18, .18); color: var(--brand-orange); padding: 1px 4px; border-radius: 4px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.legal-links a:hover { color: var(--text); }
.order-terms { margin: 14px 0 0; font-size: 13px; color: var(--dim); text-align: center; }
.order-terms a { text-decoration: underline; }

/* Order form dialog */
.order-dialog {
  width: min(600px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  padding: 32px; border: 1px solid #333; border-radius: 20px; background: #111; color: var(--text);
  box-shadow: 0 30px 80px rgba(0,0,0,.6); overflow-y: auto;
}
.order-dialog::backdrop { background: rgba(0,0,0,.7); }
.order-dialog h3 { font-size: 26px; margin-bottom: 18px; }
.order-close { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; background: none; border: 0; color: #fff; font-size: 28px; cursor: pointer; opacity: .75; }
.order-close:hover { opacity: 1; }
.order-summary { display: flex; align-items: center; gap: 14px; padding: 14px; margin-bottom: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.order-summary > div { flex: 1; min-width: 0; }
.order-swatch { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-orange); }
.order-swatch img { width: 58%; height: auto; }
.order-swatch.swatch-orange img { filter: brightness(0); }
.order-swatch.swatch-black { background: #0b0b0b; border: 1px solid #333; }
.order-product { margin: 0; font-weight: 600; font-size: 15px; line-height: 1.3; }
.order-meta { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.order-total { font-size: 20px; white-space: nowrap; }
.order-form { gap: 16px; }
.order-fieldset { border: 0; padding: 0; margin: 6px 0 0; display: grid; gap: 16px; }
.order-fieldset legend { padding: 0; margin-bottom: 12px; font-weight: 600; font-size: 16px; }
.order-form textarea { min-height: 70px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand-orange); flex: none; }
.check a { color: var(--brand-orange); text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.order-form .btn { margin-top: 4px; }
.order-form .btn:disabled { opacity: .6; cursor: wait; transform: none; }
#order-status { color: var(--amber); }
#order-status a { text-decoration: underline; }
.order-done { text-align: center; padding: 12px 0 4px; }
.order-done img { width: 67px; height: auto; margin: 0 auto 16px; }
.order-done p { color: var(--muted); margin: 0 auto 14px; max-width: 420px; }
.order-done b { color: var(--text); }
.order-done .btn { margin-top: 8px; }
@media (max-width: 560px) { .order-dialog { padding: 26px 18px 20px; } .order-dialog h3 { font-size: 22px; } }

/* Shop photo: click to view full size */
#gallery-main { cursor: zoom-in; }
.gallery-zoom {
  position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; border: 0; cursor: pointer;
  background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(4px); transition: background .2s;
}
.gallery-zoom:hover { background: rgba(0,0,0,.8); }
.gallery-zoom svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gallery-zoom[hidden] { display: none; }

/* Full-size photo viewer */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(0,0,0,.94); color: #fff; overflow: hidden;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(0,0,0,.94); }
.lightbox img { max-width: calc(100vw - 160px); max-height: calc(100dvh - 120px); width: auto; height: auto; object-fit: contain; border-radius: 6px; user-select: none; }
.lb-btn {
  position: absolute; border: 0; cursor: pointer; color: #fff; background: rgba(255,255,255,.12);
  width: 52px; height: 52px; border-radius: 50%; font-size: 34px; line-height: 1; display: grid; place-items: center; transition: background .2s;
}
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 16px; right: 16px; width: 44px; height: 44px; font-size: 28px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox.single .lb-prev, .lightbox.single .lb-next, .lightbox.single .lb-count { display: none; }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; margin: 0; text-align: center; font-size: 14px; color: rgba(255,255,255,.75); }
@media (max-width: 700px) {
  .lightbox img { max-width: 100vw; max-height: calc(100dvh - 140px); border-radius: 0; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; width: 46px; height: 46px; }
  .lb-prev { left: 16px; } .lb-next { right: 16px; }
  .lb-count { bottom: 26px; }
}
