/*
  Theme #1 — Card / Laser Neon (business card inspired)
  -------------------------------------------------
  Matches the Freedom Laser business card:
  - Very dark navy-black background
  - Red laser starburst accents
  - Chrome/silver brand text with red glow
  - Red bullet points, red horizontal accents
  - Dramatic, high-contrast look
*/

:root {
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";

  --bg: #080810;
  --surface: #0d0d18;
  --surface-2: #141424;
  --text: #f0f0f8;
  --muted: #b8bcc8;
  --border: #1e1e35;

  /* Red accent matching card */
  --primary: #cc1a1a;
  --primary-2: #e63030;
  --primary-contrast: #ffffff;

  --header-bg: rgba(8, 8, 16, 0.88);
  --header-text: #f0f0f8;

  --focus: #7be7ff;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.6);

  --container: 1120px;

  --section-pad: clamp(2.25rem, 5vw, 4.75rem);
  --gutter: clamp(1rem, 3vw, 1.75rem);

  --h1: clamp(2.2rem, 4.4vw, 3.7rem);
  --h2: clamp(1.6rem, 2.4vw, 2.3rem);
  --h3: clamp(1.15rem, 1.6vw, 1.35rem);
  --body: 1rem;
  --small: 0.95rem;
}

/* Base reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: inherit; }

/* Background: blurred business card texture */
body::before {
  content: "";
  position: fixed;
  inset: -10vh -10vw;
  background-image: url("../assets/business-card.png");
  background-size: cover;
  background-position: center;
  opacity: 0.06;
  filter: blur(22px) saturate(1.1);
  transform: scale(1.08);
  z-index: -2;
}

/* Red laser starburst glow layer — mimics the card's laser effect */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(600px 400px at 82% 18%, rgba(204, 26, 26, 0.28), transparent 55%),
    radial-gradient(400px 300px at 85% 22%, rgba(230, 48, 48, 0.15), transparent 50%),
    radial-gradient(900px 600px at 50% 50%, rgba(10, 10, 30, 0.4), transparent 70%),
    radial-gradient(500px 400px at 15% 80%, rgba(204, 26, 26, 0.08), transparent 55%);
  z-index: -1;
}

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

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

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

.section { padding: var(--section-pad) 0; }
section { scroll-margin-top: 6.5rem; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: var(--h1); margin: 0 0 0.75rem; }
h2 { font-size: var(--h2); margin: 0 0 1rem; }
h3 { font-size: var(--h3); margin: 0 0 0.5rem; }

p { margin: 0 0 1rem; }

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  transform: translateY(-140%);
  transition: transform 160ms ease;
  z-index: 9999;
}
.skip-link:focus { transform: translateY(0); }

/* Header / Nav — transparent, solid on scroll */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: transparent;
  color: var(--header-text);
  border-bottom: none;
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.site-header.is-scrolled {
  background: rgba(8, 8, 16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--primary);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  padding: 1rem 0;
}

/* Brand — chrome/silver text with red glow, matching "FREEDOM LASER" on card */
.brand {
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.2rem;
  font-family: "Inter", "SF Pro Display", ui-sans-serif, system-ui, sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #e8e8f0;
  text-shadow:
    0 0 20px rgba(204, 26, 26, 0.5),
    0 0 40px rgba(204, 26, 26, 0.25),
    0 1px 0 rgba(255, 255, 255, 0.15);
}

.site-nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  align-items: center;
}
.site-nav a {
  text-decoration: none;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  color: rgba(240, 240, 248, 0.92);
  font-weight: 700;
  font-size: 1.05rem;
  font-family: "Inter", "SF Pro Display", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  transition: background 140ms ease, border-color 140ms ease;
}
.site-nav a:hover {
  background: rgba(204, 26, 26, 0.15);
  border-color: rgba(204, 26, 26, 0.3);
  color: #fff;
}

.header-actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
}
.header-phone { font-weight: 900; letter-spacing: 0.02em; }

/* Floating theme widget — hidden until scroll */
.theme-widget {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 9000;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 200ms ease, transform 200ms ease;
}
.theme-widget.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.theme-widget-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(13, 13, 24, 0.9);
  color: rgba(240, 240, 248, 0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6), 0 0 14px rgba(204, 26, 26, 0.12);
  backdrop-filter: blur(8px);
  transition: background 140ms ease;
}
.theme-widget-toggle:hover {
  background: rgba(20, 20, 36, 0.95);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6), 0 0 20px rgba(204, 26, 26, 0.2);
}
.theme-widget-toggle:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.theme-widget-panel {
  display: none;
  background: rgba(13, 13, 24, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.65rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65), 0 0 20px rgba(204, 26, 26, 0.1);
  backdrop-filter: blur(12px);
}
.theme-widget-panel.is-open { display: block; }
.theme-widget-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.theme-widget-option {
  display: flex;
  align-items: center;
  position: relative;
}
.theme-widget-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.theme-widget-option span {
  display: block;
  width: 100%;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  color: rgba(240, 240, 248, 0.85);
  cursor: pointer;
  user-select: none;
}
.theme-widget-option span:hover { background: rgba(255, 255, 255, 0.06); }
.theme-widget-option input:checked + span {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 14px rgba(204, 26, 26, 0.3);
}
.theme-widget-option input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}


.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Buttons — red primary matching the card's red accents */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  font-weight: 850;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 140ms ease, filter 140ms ease, box-shadow 140ms ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--primary);
  color: var(--primary-contrast);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 20px rgba(204, 26, 26, 0.25);
}
.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 30px rgba(204, 26, 26, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.16);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.10); }

/* Hero */
.hero {
  padding-top: clamp(2.5rem, 7vw, 5.5rem);
  padding-bottom: clamp(2.25rem, 6vw, 5rem);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 4vw, 2.25rem);
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.kicker {
  margin: 0 0 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  color: var(--primary-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
}

/* h1 — large, white, bold (like "Quit Smoking Now!" on the card) */
h1 {
  color: #ffffff;
  text-shadow: 0 0 30px rgba(204, 26, 26, 0.2);
}

.hero-lede {
  margin: 0 0 1.15rem;
  color: rgba(240, 240, 248, 0.82);
  max-width: 62ch;
}

/* Red bullet markers matching the card's red square bullets */
.hero-bullets {
  margin: 0 0 1.35rem;
  padding-left: 0;
  list-style: none;
}
.hero-bullets li {
  margin: 0.4rem 0;
  padding-left: 1.4rem;
  position: relative;
}
.hero-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(204, 26, 26, 0.5);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.fineprint {
  margin: 1rem 0 0;
  font-size: var(--small);
  color: rgba(184, 188, 200, 0.85);
  max-width: 75ch;
}

.hero-visual {
  display: grid;
  gap: 1rem;
}

/* Hero visual card — transparent container for photo */
.hero-visual-card {
  background: transparent;
  border: none;
  border-radius: var(--radius);
  padding: 0;
  box-shadow: none;
  overflow: hidden;
}

.hero-visual-img {
  display: block;
  width: 100%;
  max-height: 480px;
  height: auto;
  object-fit: contain;
  mix-blend-mode: luminosity;
  opacity: 0.7;
  border-radius: var(--radius);
}

.price-inline { font-weight: 950; font-size: 1.3rem; color: var(--primary-2); }

/* Prose + cards */
.prose p { margin: 0 0 1rem; color: var(--muted); max-width: 72ch; }

.feature-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

/* Cards — dark with subtle red top border accent */
.card {
  background: rgba(13, 13, 24, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 2px solid rgba(204, 26, 26, 0.35);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}

.card-title { margin: 0 0 0.35rem; color: #fff; }
.card-text { margin: 0.25rem 0 0; color: var(--muted); }
.muted { color: rgba(184, 188, 200, 0.82); }

/* Section headings — red underline accent (matching the card's red stripe) */
h2 {
  position: relative;
  padding-bottom: 0.6rem;
}
h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(204, 26, 26, 0.4);
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.step {
  background: rgba(13, 13, 24, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 2px solid rgba(204, 26, 26, 0.35);
  border-radius: var(--radius);
  padding: 1.1rem;
}
.step-title { margin: 0 0 0.35rem; color: #fff; }
.step-text { margin: 0; color: var(--muted); }

/* Pricing */
.pricing { margin-top: 1rem; }
.pricing-card {
  background: rgba(13, 13, 24, 0.75);
  border: 1px solid rgba(204, 26, 26, 0.2);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.5);
}
.price-row { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.price-label { margin: 0; font-weight: 900; }
.price-note { margin: 0.1rem 0 0; color: var(--muted); }
.price {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 950;
  letter-spacing: -0.02em;
  color: var(--primary-2);
  text-shadow: 0 0 18px rgba(204, 26, 26, 0.3);
}
.pricing-meta { margin: 0.9rem 0 0; padding-left: 1.1rem; color: var(--muted); }

/* FAQ */
.faq { margin-top: 1rem; display: grid; gap: 0.75rem; }
.faq-item {
  background: rgba(13, 13, 24, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 0.1rem;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.05rem;
  font-weight: 900;
  color: #fff;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-panel { padding: 0 1.05rem 1rem; color: var(--muted); }
.faq-panel p { margin: 0; }
.faq-item[open] {
  border-color: rgba(204, 26, 26, 0.2);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.5);
}

/* Links */
.link {
  color: var(--primary-2);
  text-decoration: none;
  font-weight: 900;
}
.link:hover { text-decoration: underline; }

/* Footer — dark with red top border */
.site-footer {
  padding: 2.2rem 0;
  border-top: 2px solid var(--primary);
  background: rgba(8, 8, 16, 0.85);
}
.footer-inner { display: grid; gap: 0.5rem; }
.footer-line { margin: 0; font-weight: 850; }

/* Mobile — small screens */
@media (max-width: 599px) {
  .header-inner {
    padding: 0.75rem 0;
    gap: 0.5rem 0.75rem;
  }
  .site-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 0.25rem;
  }
  .site-nav a {
    padding: 0.45rem 0.7rem;
    font-size: 0.95rem;
  }
  .brand { font-size: 1rem; }
  .hero {
    padding-top: clamp(1.5rem, 4vw, 2.5rem);
    padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
  }
  :root { --gutter: 1.25rem; }
  .hero-visual { order: -1; }
  .hero-visual-img {
    max-height: 280px;
  }
  h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); }
  .hero-lede { font-size: 0.98rem; }
  .hero-bullets { padding-left: 1rem; font-size: 0.95rem; }
  .btn {
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
    min-height: 44px;
  }
  .card { padding: 0.9rem; }
  .faq-item summary { padding: 0.85rem 0.9rem; font-size: 0.95rem; }
}

/* Responsive */
@media (min-width: 780px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 980px) {
  .hero-inner { grid-template-columns: 1fr 1fr; }
}
