/* ==========================================================================
   MADMAN Alpine Gold, styles
   Dark base, accent #BC3A33, editorial and cinematic
   ========================================================================== */

:root {
  --bg: #0c0c0d;            /* near black */
  --bg-alt: #131315;        /* anthracite for alternating sections */
  --surface: #1a1a1d;       /* cards */
  --line: #26262a;          /* hairlines */
  --text: #ececea;          /* body text */
  --text-dim: #9a9a96;      /* secondary text */
  --accent: #BC3A33;        /* red, buttons, links, accents */
  --accent-hover: #d4453d;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1080px;
  --radius: 6px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* Keep anchor targets clear of the sticky header */
[id] { scroll-margin-top: 5rem; }

/* ---------- Focus states ---------- */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn:focus-visible { outline-color: var(--text); outline-offset: 2px; }
.faq-item summary:focus-visible { outline-offset: -3px; }

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-narrow { max-width: 760px; }

.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

@media (min-width: 768px) {
  .section { padding: 7.5rem 0; }
}

/* ---------- Typography ---------- */

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

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.section-lead {
  color: var(--text-dim);
  max-width: 620px;
  margin-bottom: 3rem;
}

/* Small uppercase heading above a list or block */
.block-title {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 3.5rem 0 1.25rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 1.9rem;
  border-radius: var(--radius);
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }

.btn-small { font-size: 0.875rem; padding: 0.5rem 1.1rem; }

.btn-ghost {
  display: inline-block;
  color: var(--text-dim);
  font-weight: 500;
  padding: 0.9rem 0.25rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease;
}
.btn-ghost:hover { color: var(--text); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 12, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}
.wordmark:hover { color: var(--text); }
.wordmark-dot { color: var(--accent); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.header-nav a:not(.btn) {
  color: var(--text-dim);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.header-nav a:not(.btn):hover { color: var(--text); }

/* On narrow screens keep only the wordmark and the buy button */
@media (max-width: 640px) {
  .header-nav a:not(.btn) { display: none; }
}

/* ---------- Hero ---------- */

.hero { padding: 5.5rem 0 4rem; }

@media (min-width: 768px) {
  .hero { padding: 8.5rem 0 5rem; }
}

.hero-inner { max-width: 820px; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 1.75rem;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 0.85rem;
}

/* One quiet line of social proof under the sub */
.hero-proof {
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* ---------- Media frames and placeholders ---------- */
/* The dashed frame stays visible until the real file sits in /assets.
   Images are layered on top and cover the placeholder once they load. */

.media-placeholder {
  position: relative;
  width: 100%;
  background:
    repeating-linear-gradient(-45deg, transparent, transparent 18px, rgba(255,255,255,0.015) 18px, rgba(255,255,255,0.015) 36px),
    var(--surface);
  border: 1px dashed #3a3a40;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.media-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-16x9 { aspect-ratio: 16 / 9; }
.media-4x5 { aspect-ratio: 4 / 5; }

/* script.js sets this on images that are not in /assets yet */
img.is-missing { display: none; }

.placeholder-label {
  text-align: center;
  padding: 2rem 1.25rem;
  color: var(--text-dim);
}

.placeholder-label p { font-size: 0.9375rem; line-height: 1.5; }
.placeholder-label small { opacity: 0.65; font-size: 0.8125rem; }

.placeholder-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  margin-bottom: 0.85rem;
}

/* ---------- Product badge (label variant of the tag) ---------- */

.product-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(188, 58, 51, 0.12);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
  line-height: 1.6;
}


/* ---------- Before/after slider ---------- */

.compare {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.compare-img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compare-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder look: "before" flat and log-like, "after" contrasty */
.compare-before {
  background: linear-gradient(135deg, #4a4a48 0%, #6b6b66 50%, #55554f 100%);
}
.compare-before .placeholder-label { color: #2c2c2a; }
.compare-before .placeholder-tag { color: #2c2c2a; border-color: #2c2c2a; }

.compare-after {
  background: linear-gradient(135deg, #1a2733 0%, #3d2a24 55%, #14202b 100%);
  clip-path: inset(0 0 0 50%);
  will-change: clip-path;
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 44px;
  margin-left: -22px;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.compare-handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: #fff;
}

.compare-handle-grip {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.compare-handle:focus-visible { outline: none; }
.compare-handle:focus-visible .compare-handle-grip { outline: 2px solid #fff; outline-offset: 2px; }

.compare-badge {
  position: absolute;
  bottom: 0.9rem;
  z-index: 2;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  pointer-events: none;
}

.compare-badge-before { left: 0.9rem; }
.compare-badge-after { right: 0.9rem; }

/* Hint under the hero slider, so it reads as interactive */
.compare-hint {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- Hero gallery thumbnails ---------- */
/* Each thumb swaps a whole before/after pair into the slider above. */

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1.25rem;
}

@media (min-width: 640px) {
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
}

/* 8 across fits 16 examples into two tidy rows */
@media (min-width: 1000px) {
  .gallery-thumbs { grid-template-columns: repeat(8, 1fr); }
}

.gallery-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(-45deg, transparent, transparent 18px, rgba(255,255,255,0.015) 18px, rgba(255,255,255,0.015) 36px),
    var(--surface);
  opacity: 0.6;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.gallery-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb:hover { opacity: 0.8; }

.gallery-thumb[aria-current="true"] {
  opacity: 1;
  border-color: var(--accent);
}

.gallery-thumb:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  opacity: 1;
}

/* ---------- Included list ---------- */

.included {
  list-style: none;
  border-top: 1px solid var(--line);
}

.included li {
  position: relative;
  padding: 0.9rem 0 0.9rem 1.9rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--text-dim);
}

.included li::before {
  content: "✓";
  position: absolute;
  left: 0.25rem;
  top: 0.9rem;
  color: var(--accent);
  font-weight: 700;
}

@media (min-width: 768px) {
  .included { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; }
}

/* ---------- Note block ---------- */

.note {
  max-width: 760px;
  margin-top: 2.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--text-dim);
  font-size: 0.9375rem;
}

.note strong { color: var(--text); font-weight: 600; }
.note p + p { margin-top: 0.85rem; }

/* ---------- Creator ---------- */

.creator-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .creator-inner { grid-template-columns: 5fr 6fr; gap: 4.5rem; }
}

.creator-media { max-width: 420px; }

.creator-text p { color: var(--text-dim); margin-bottom: 1.25rem; }
.creator-text .eyebrow { margin-bottom: 1rem; }

.insta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-top: 0.5rem;
}

.insta-link svg { width: 1.25rem; height: 1.25rem; }

/* ---------- Price card ---------- */

.price-card {
  max-width: 480px;
  margin: 3.5rem auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
}

@media (min-width: 640px) { .price-card { padding: 3rem 3rem; } }

.price-name {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.85rem;
}

.price-card .product-badge { margin-bottom: 1.5rem; }

.price-amount {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 4.5rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.price-currency { font-size: 1.75rem; color: var(--text-dim); }

.price-note {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.price-list {
  list-style: none;
  text-align: left;
  margin-bottom: 2.25rem;
  border-top: 1px solid var(--line);
}

.price-list li {
  padding: 0.9rem 0 0.9rem 1.9rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  position: relative;
}

.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0.25rem;
  color: var(--accent);
  font-weight: 700;
}

.btn-buy { width: 100%; padding: 1.05rem 1.5rem; font-size: 1.0625rem; text-align: center; }

.price-secure {
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-top: 1.1rem;
}

/* ---------- FAQ ---------- */

.faq-list { margin-top: 2.5rem; border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.35rem 2.5rem 1.35rem 0;
  font-weight: 600;
  font-size: 1.0625rem;
  position: relative;
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq-item summary:hover { color: var(--accent); }

.faq-body { padding: 0 0 1.5rem; color: var(--text-dim); font-size: 0.9688rem; }
.faq-body p + p { margin-top: 0.75rem; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-links { display: flex; gap: 2rem; }

.footer-links a {
  color: var(--text-dim);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--accent); }

.footer-copy { font-size: 0.8125rem; color: #6a6a66; }
