/* ============================================================
   STYLE — shared layout + components
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

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

a { color: var(--color-primary-dark); }

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-bulb);
  color: var(--color-night);
  padding: var(--space-2);
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-2);
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6.2vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.85rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.35rem); font-weight: 600; letter-spacing: -0.005em; }

p { margin: 0 0 var(--space-2); max-width: var(--max-text); }

.lede {
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.section-intro { max-width: 56ch; margin-bottom: var(--space-4); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1;
  text-decoration: none;
  padding: 1.05rem 1.7rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              color var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}

.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-lift); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--color-on-dark);
  border-color: rgba(242, 237, 229, 0.34);
}
.btn-ghost:hover { border-color: var(--color-bulb); color: var(--color-bulb); }

.btn-outline {
  background: transparent;
  color: var(--color-primary-dark);
  border-color: rgba(168, 83, 56, 0.4);
}
.btn-outline:hover { border-color: var(--color-primary); background: rgba(168, 83, 56, 0.06); }

.btn-sm { padding: 0.72rem 1.1rem; font-size: 0.92rem; }
.btn-lg { padding: 1.2rem 2.1rem; font-size: 1.1rem; }

.btn-note {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin: var(--space-2) 0 0;
}
.on-dark .btn-note { color: var(--color-on-dark-muted); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-night);
  border-bottom: 1px solid rgba(242, 237, 229, 0.10);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 74px;
  padding-block: 0.8rem;
}

.brand { display: inline-flex; align-items: center; }
.brand img { height: 44px; width: auto; }

.header-actions { display: flex; align-items: center; gap: var(--space-2); }

.header-phone {
  color: var(--color-on-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  white-space: nowrap;
}
.header-phone:hover { color: var(--color-bulb); }

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

.hero {
  position: relative;
  background: linear-gradient(180deg, var(--color-night) 0%, var(--color-night-deep) 100%);
  color: var(--color-on-dark);
  overflow: hidden;
  padding-block: clamp(7.5rem, 11vw, 8.5rem) clamp(4rem, 9vw, 6.5rem);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -30% 0;
  height: 60%;
  background: radial-gradient(ellipse at 50% 0%, rgba(240, 195, 103, 0.16), transparent 62%);
  pointer-events: none;
}

.bulb-string {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 130px;
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; max-width: 940px; }

.hero-ba { margin-top: var(--space-4); }

.hero .ba-caption { color: var(--color-on-dark-muted); }

.hero h1 { color: var(--color-on-dark); margin-bottom: var(--space-3); }
.hero .lede { color: var(--color-on-dark-muted); max-width: 54ch; }

/* Offer block — repeats the live ad's promises so they are the
   first thing read after the headline. */
.hero-offer {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  max-width: 54ch;
  margin: 0 0 var(--space-3);
  padding: var(--space-2) var(--space-3);
  border: 1px solid rgba(242, 237, 229, 0.14);
  border-left: 3px solid var(--color-bulb);
  border-radius: var(--radius);
  background: rgba(242, 237, 229, 0.05);
  color: var(--color-on-dark-muted);
  font-size: 1rem;
  line-height: 1.45;
}
.hero-offer li { position: relative; padding-left: 1.4rem; }
.hero-offer li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-bulb);
  box-shadow: 0 0 8px rgba(240, 195, 103, 0.7);
}
.hero-offer strong { color: var(--color-on-dark); font-weight: 600; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.hero-offer + .hero-cta { margin-top: var(--space-3); }
.hero-cta + .lede { margin-top: var(--space-4); }

.hero-area {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(242, 237, 229, 0.14);
  color: var(--color-on-dark-muted);
  font-size: 0.95rem;
  max-width: 48ch;
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-alt { background: var(--color-bg-alt); }
.on-dark {
  background: var(--color-night);
  color: var(--color-on-dark);
}
.on-dark h2 { color: var(--color-on-dark); }
.on-dark p { color: var(--color-on-dark-muted); }

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

.ba {
  position: relative;
  margin-top: var(--space-4);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  background: var(--color-night-deep);
}

.ba-frame {
  position: relative;
  aspect-ratio: 3 / 2;
  --pos: 50%;
}

.ba-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.ba-after { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: var(--color-bulb);
  transform: translateX(-1px);
  pointer-events: none;
}

.ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--color-bulb);
  color: var(--color-night);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 0 0 6px rgba(240, 195, 103, 0.22);
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.ba-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 56px; height: 100%;
  cursor: ew-resize;
}
.ba-range::-moz-range-thumb {
  width: 56px; height: 240px;
  border: 0; background: transparent; cursor: ew-resize;
}
.ba-range:focus-visible ~ .ba-divider { box-shadow: 0 0 0 3px var(--color-bulb); }

.ba-tag {
  position: absolute;
  top: var(--space-2);
  padding: 0.34rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 100px;
  background: rgba(12, 22, 28, 0.72);
  color: var(--color-on-dark);
  pointer-events: none;
}
.ba-tag-left { left: var(--space-2); }
.ba-tag-right { right: var(--space-2); }

.ba-caption {
  margin: var(--space-2) 0 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.ba-cta {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
}

/* ---------- Steps ---------- */

.steps-grid {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

.step-card {
  position: relative;
  padding: var(--space-3);
  border: 1px solid rgba(242, 237, 229, 0.13);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(242, 237, 229, 0.055), rgba(242, 237, 229, 0.02));
  transition: transform var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 195, 103, 0.45);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

.step-num {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(240, 195, 103, 0.5);
}

.step-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  margin-bottom: var(--space-2);
  color: var(--color-bulb);
  background: rgba(240, 195, 103, 0.12);
  box-shadow: inset 0 0 0 1px rgba(240, 195, 103, 0.28);
}

.step-card h3 { color: var(--color-on-dark); margin-bottom: 0.4rem; }
.step-card p { margin: 0; font-size: 0.98rem; }

/* ---------- Plain list ---------- */

.plain-list {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
  max-width: 58ch;
}
.plain-list li {
  padding: 0.85rem 0 0.85rem 1.9rem;
  border-bottom: var(--rule);
  position: relative;
}
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.45rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* ---------- Two column ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: start;
}

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

.faq { margin-top: var(--space-3); max-width: 70ch; border-top: var(--rule); }

.faq details { border-bottom: var(--rule); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-3) 2.4rem var(--space-3) 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--duration) var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }

.faq .faq-body { padding-bottom: var(--space-3); }
.faq .faq-body p { margin: 0; }

/* ---------- Closing CTA ---------- */

.closer {
  background: var(--color-primary);
  color: #fff;
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
  text-align: center;
}
.closer h2 { color: #fff; }
.closer p { color: rgba(255, 255, 255, 0.88); margin-inline: auto; }
.closer .btn-primary {
  background: var(--color-bg);
  color: var(--color-primary-dark);
  margin-top: var(--space-3);
}
.closer .btn-primary:hover { background: #fff; }
.closer .btn-note { color: rgba(255, 255, 255, 0.8); }

/* Inline request form. The embed script sizes the iframe to
   its content; min-height holds the space until it loads. */
.closer { scroll-margin-top: 72px; }
.closer-form {
  max-width: 640px;
  min-height: 560px;
  margin: var(--space-3) auto 0;
  padding: 0.5rem;
  background: #fff;
  border-radius: 12px;
  text-align: left;
}
.closer-form iframe { display: block; min-height: 560px; }

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

.site-footer {
  background: var(--color-night-deep);
  color: var(--color-on-dark-muted);
  padding-block: var(--space-4);
  font-size: 0.92rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
}
.site-footer img { height: 38px; width: auto; }
.site-footer a { color: var(--color-on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--color-bulb); }
.footer-meta { margin: 0; max-width: none; }

/* ---------- Sticky mobile call-to-action ---------- */

.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 120;
  display: none;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(12, 22, 28, 0.96);
  border-top: 1px solid rgba(242, 237, 229, 0.14);
}
.mobile-bar .btn { flex: 1; padding-inline: 0.6rem; }

/* ---------- Thank you ---------- */

.thanks {
  min-height: 68vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--space-6);
}
.thanks .wrap { max-width: 640px; }
.thanks p { margin-inline: auto; }
.thanks .next {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: var(--rule);
}

/* ---------- Legal pages (privacy / terms) ---------- */

.legal { padding-block: var(--space-5) var(--space-6); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin-bottom: 0.4rem; }
.legal .legal-date {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin-bottom: var(--space-3);
}
.legal .lede {
  padding-bottom: var(--space-3);
  border-bottom: var(--rule);
  margin-bottom: var(--space-3);
}
.legal h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin-top: var(--space-4);
}
.legal p, .legal ul { max-width: 68ch; }
.legal ul { padding-left: 1.3rem; margin: 0 0 var(--space-2); }
.legal li { margin-bottom: 0.55rem; }
.legal .legal-contact { line-height: 1.8; }
.legal .legal-links {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: var(--rule);
  font-size: 0.95rem;
}

/* ---------- Responsive ---------- */

@media (min-width: 720px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .step-card:nth-child(5) { grid-column: 1 / -1; }
}

@media (min-width: 1020px) {
  .steps-grid { grid-template-columns: repeat(6, 1fr); }
  .step-card { grid-column: span 2; }
  .step-card:nth-child(4) { grid-column: 2 / span 2; }
  .step-card:nth-child(5) { grid-column: 4 / span 2; }
}

@media (max-width: 719px) {
  .header-phone { display: none; }
  .brand img { height: 34px; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 78px; }
  .hero-cta .btn { width: 100%; }
  .ba-frame { aspect-ratio: 4 / 3; }
  /* Keep headline, offer and primary CTA above the fold on a 390px phone */
  .hero { padding-top: 7rem; }
  .hero h1 { margin-bottom: var(--space-2); }
  .hero-offer { padding: 0.75rem var(--space-2); gap: 0.4rem; font-size: 0.95rem; line-height: 1.4; }
  .hero-offer + .hero-cta { margin-top: var(--space-2); }
}
