/* Cipher — Dialer Campaign */
@import url("../cipher-brand/tokens.css");
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Inter+Tight:wght@300;400;500;600;700&display=swap");

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--cipher-font-sans);
  font-weight: 400;
  color: var(--cipher-ink);
  background: var(--cipher-surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Dot grid background — echoing the Cipher icon */
.grid-bg {
  position: relative;
  background-image: radial-gradient(var(--cipher-ink-grid) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: 0 0;
}

.grid-bg-dark {
  background-color: var(--cipher-dark-surface);
  background-image: radial-gradient(rgba(238, 240, 244, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; position: relative; }
@media (max-width: 720px) { section { padding: 64px 0; } }

/* Type system */
.mono {
  font-family: var(--cipher-font-mono);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--cipher-font-mono);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--cipher-accent);
  margin-bottom: 24px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cipher-accent);
}

h1, h2, h3, h4 {
  font-family: var(--cipher-font-sans);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(40px, 6vw, 76px);
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(32px, 4.2vw, 52px);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  margin-bottom: 12px;
}

p { color: var(--cipher-ink-mute); font-size: 17px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--cipher-ink-mute); max-width: 640px; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(238, 240, 244, 0.72);
  border-bottom: 1px solid rgba(12, 14, 20, 0.06);
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-lockup img { height: 28px; width: auto; display: block; }
.brand-lockup .tag {
  font-family: var(--cipher-font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cipher-accent);
  padding: 4px 8px;
  border: 1px solid var(--cipher-accent);
  border-radius: 999px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--cipher-ink);
  color: var(--cipher-white);
  border-radius: 999px;
  font-family: var(--cipher-font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}
.nav-cta:hover { background: var(--cipher-accent); transform: translateY(-1px); text-decoration: none; }

/* Hero */
.hero { padding-top: 80px; padding-bottom: 56px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero h1 .accent {
  color: var(--cipher-accent);
  display: inline-block;
}
.hero h1 .strike {
  text-decoration: line-through;
  text-decoration-color: var(--cipher-accent);
  text-decoration-thickness: 4px;
  color: var(--cipher-ink-mute);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  margin-bottom: 32px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--cipher-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid rgba(12, 14, 20, 0.14);
  border-radius: 999px;
  background: var(--cipher-white);
  color: var(--cipher-ink);
}
.chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cipher-accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-family: var(--cipher-font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--cipher-accent);
  color: var(--cipher-white);
  box-shadow: 0 12px 32px -12px rgba(91, 63, 224, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); background: #4a31c7; text-decoration: none; box-shadow: 0 18px 38px -10px rgba(91, 63, 224, 0.65); }
.btn-ghost {
  background: transparent;
  color: var(--cipher-ink);
  border: 1px solid rgba(12, 14, 20, 0.18);
}
.btn-ghost:hover { background: var(--cipher-ink); color: var(--cipher-white); text-decoration: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Hero side card — probability math motif */
.prob-card {
  position: relative;
  background: var(--cipher-white);
  border-radius: 24px;
  padding: 32px;
  border: 1px solid rgba(12, 14, 20, 0.08);
  box-shadow: 0 24px 60px -32px rgba(12, 14, 20, 0.25);
  overflow: hidden;
}

.prob-card .label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--cipher-font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cipher-ink-mute);
  margin-bottom: 20px;
}
.prob-card .label .live {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--cipher-accent);
}
.prob-card .label .live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cipher-accent);
  box-shadow: 0 0 0 0 rgba(91, 63, 224, 0.6);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(91, 63, 224, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(91, 63, 224, 0); }
  100% { box-shadow: 0 0 0 0 rgba(91, 63, 224, 0); }
}

.prob-card .stat {
  font-family: var(--cipher-font-mono);
  font-size: 64px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--cipher-ink);
  line-height: 1;
  margin-bottom: 8px;
}
.prob-card .stat .pct { color: var(--cipher-accent); }
.prob-card .stat-sub { color: var(--cipher-ink-mute); font-size: 14px; }

.prob-rows {
  margin-top: 28px;
  display: grid; gap: 14px;
}
.prob-row {
  display: grid;
  grid-template-columns: 64px 1fr 56px;
  align-items: center;
  gap: 14px;
  font-family: var(--cipher-font-mono);
  font-size: 12px;
  color: var(--cipher-ink);
}
.prob-row .lbl { color: var(--cipher-ink-mute); }
.prob-row .bar {
  height: 6px;
  background: rgba(12, 14, 20, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.prob-row .bar i {
  display: block;
  height: 100%;
  background: var(--cipher-accent);
  border-radius: 999px;
}
.prob-row .val { text-align: right; }

/* Sections — dark stage */
.stage-dark {
  background: var(--cipher-dark-surface);
  color: var(--cipher-white);
}
.stage-dark h1, .stage-dark h2, .stage-dark h3 { color: var(--cipher-white); }
.stage-dark p { color: rgba(238, 240, 244, 0.72); }
.stage-dark .eyebrow { color: var(--cipher-accent); }

/* VSL */
.vsl-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--cipher-ink);
  border: 1px solid rgba(238, 240, 244, 0.08);
  aspect-ratio: 16 / 9;
}
.vsl-wrap iframe, .vsl-wrap video {
  width: 100%; height: 100%; border: 0; display: block;
}
.vsl-poster {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0c0e14 0%, #181a26 100%);
  color: var(--cipher-white);
  cursor: pointer;
}
.vsl-poster .play {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--cipher-accent);
  display: grid; place-items: center;
  box-shadow: 0 16px 48px -8px rgba(91, 63, 224, 0.6);
  transition: transform .2s ease;
}
.vsl-poster .play:hover { transform: scale(1.06); }
.vsl-poster .play svg { width: 28px; height: 28px; fill: var(--cipher-white); margin-left: 4px; }
.vsl-caption {
  position: absolute; left: 24px; bottom: 24px; right: 24px;
  display: flex; justify-content: space-between; align-items: end;
  font-family: var(--cipher-font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(238, 240, 244, 0.7);
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}
@media (max-width: 960px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .pillars { grid-template-columns: 1fr; } }

.pillar {
  background: var(--cipher-white);
  border: 1px solid rgba(12, 14, 20, 0.08);
  border-radius: 18px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.pillar .num {
  font-family: var(--cipher-font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cipher-accent);
  margin-bottom: 18px;
  display: block;
}
.pillar h3 { margin-bottom: 8px; font-size: 19px; }
.pillar p { font-size: 15px; }

.stage-dark .pillar {
  background: rgba(238, 240, 244, 0.04);
  border-color: rgba(238, 240, 244, 0.08);
}

/* Quiz */
.quiz-shell {
  background: var(--cipher-white);
  border-radius: 24px;
  border: 1px solid rgba(12, 14, 20, 0.08);
  padding: 40px;
  box-shadow: 0 32px 80px -40px rgba(12, 14, 20, 0.25);
}
@media (max-width: 600px) { .quiz-shell { padding: 28px 22px; } }

.quiz-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}
.quiz-progress .step {
  flex: 1;
  height: 4px;
  background: rgba(12, 14, 20, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.quiz-progress .step.active { background: var(--cipher-accent); }
.quiz-progress .label {
  font-family: var(--cipher-font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cipher-ink-mute);
  margin-left: 12px;
  white-space: nowrap;
}

.quiz-step { display: none; }
.quiz-step.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.field { display: block; margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--cipher-font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cipher-ink-mute);
  margin-bottom: 8px;
}
.field input, .field select {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-family: var(--cipher-font-sans);
  border: 1px solid rgba(12, 14, 20, 0.16);
  border-radius: 12px;
  background: var(--cipher-surface);
  color: var(--cipher-ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--cipher-accent);
  box-shadow: 0 0 0 4px rgba(91, 63, 224, 0.12);
  background: var(--cipher-white);
}

.options {
  display: grid;
  gap: 10px;
}
.option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(12, 14, 20, 0.16);
  border-radius: 14px;
  background: var(--cipher-surface);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.option:hover { border-color: var(--cipher-accent); background: var(--cipher-white); }
.option input { accent-color: var(--cipher-accent); width: 18px; height: 18px; }
.option .opt-label { font-weight: 500; font-size: 16px; }
.option .opt-desc { font-size: 13px; color: var(--cipher-ink-mute); margin-top: 2px; }
.option input:checked + .opt-text { color: var(--cipher-accent); }
.option:has(input:checked) { border-color: var(--cipher-accent); background: rgba(91, 63, 224, 0.06); }

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  gap: 12px;
}

.error-msg {
  color: #c12c2c;
  font-size: 13px;
  font-family: var(--cipher-font-mono);
  margin-top: 8px;
  display: none;
}
.error-msg.visible { display: block; }

/* Guarantee */
.guarantee {
  display: flex;
  gap: 28px;
  align-items: center;
  background: var(--cipher-white);
  border: 1px solid rgba(12, 14, 20, 0.08);
  border-radius: 22px;
  padding: 32px;
}
.guarantee .seal {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--cipher-ink);
  color: var(--cipher-white);
  display: grid; place-items: center;
  flex-shrink: 0;
  position: relative;
}
.guarantee .seal::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px dashed var(--cipher-accent);
  border-radius: 50%;
}
.guarantee .seal span {
  font-family: var(--cipher-font-mono);
  font-size: 11px;
  text-align: center;
  letter-spacing: 0.1em;
  line-height: 1.2;
}
.guarantee .seal span b { color: var(--cipher-accent); font-weight: 500; font-size: 22px; display: block; }

@media (max-width: 600px) { .guarantee { flex-direction: column; text-align: center; } }

/* Calendar page */
.calendar-shell {
  background: var(--cipher-white);
  border: 1px solid rgba(12, 14, 20, 0.08);
  border-radius: 24px;
  overflow: hidden;
  min-height: 720px;
}
.calendar-shell iframe { width: 100%; min-height: 720px; border: 0; display: block; }

.calendar-placeholder {
  padding: 80px 32px;
  text-align: center;
  color: var(--cipher-ink-mute);
  font-family: var(--cipher-font-mono);
}
.calendar-placeholder p { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }

/* Thank-you */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 900px) { .testimonials { grid-template-columns: 1fr; } }
.testimonial {
  background: var(--cipher-white);
  border: 1px solid rgba(12, 14, 20, 0.08);
  border-radius: 18px;
  padding: 28px;
}
.testimonial .stars {
  color: var(--cipher-accent);
  font-family: var(--cipher-font-mono);
  margin-bottom: 12px;
  letter-spacing: 0.2em;
}
.testimonial p { color: var(--cipher-ink); font-size: 16px; margin-bottom: 18px; }
.testimonial .who {
  font-family: var(--cipher-font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cipher-ink-mute);
}

.breakthroughs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 900px) { .breakthroughs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .breakthroughs { grid-template-columns: 1fr; } }

.bt-card {
  background: var(--cipher-white);
  border: 1px solid rgba(12, 14, 20, 0.08);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.bt-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px -32px rgba(12, 14, 20, 0.3); }
.bt-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0c0e14 0%, #1c1e2e 100%);
  display: grid; place-items: center;
}
.bt-thumb .play-mini {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--cipher-accent);
  display: grid; place-items: center;
}
.bt-thumb .play-mini svg { width: 18px; height: 18px; fill: var(--cipher-white); margin-left: 3px; }
.bt-num {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--cipher-font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(238, 240, 244, 0.7);
  border: 1px solid rgba(238, 240, 244, 0.2);
  padding: 4px 8px;
  border-radius: 999px;
}
.bt-body { padding: 22px; }
.bt-tag {
  font-family: var(--cipher-font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cipher-accent);
  margin-bottom: 8px;
  display: block;
}
.bt-body h3 { font-size: 18px; margin-bottom: 8px; }
.bt-body p { font-size: 14px; }

.confirm-banner {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--cipher-ink);
  color: var(--cipher-white);
  border-radius: 18px;
  padding: 20px 24px;
  margin-top: 32px;
}
.confirm-banner .icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cipher-accent);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.confirm-banner p { color: rgba(238, 240, 244, 0.85); font-size: 15px; }
.confirm-banner b { color: var(--cipher-white); font-weight: 500; }

/* Footer */
.site-footer {
  border-top: 1px solid rgba(12, 14, 20, 0.08);
  padding: 32px 0;
  background: var(--cipher-surface);
}
.site-footer .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--cipher-font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cipher-ink-mute);
}

/* Modal (video lightbox) */
.modal {
  position: fixed; inset: 0;
  background: rgba(12, 14, 20, 0.85);
  display: none;
  align-items: center; justify-content: center;
  z-index: 100;
  padding: 24px;
}
.modal.open { display: flex; }
.modal-content {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background: var(--cipher-ink);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}
.modal-close {
  position: absolute;
  top: -12px; right: -12px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--cipher-white);
  color: var(--cipher-ink);
  border: 0;
  cursor: pointer;
  font-size: 18px;
  font-family: var(--cipher-font-mono);
  z-index: 2;
}
.modal-content iframe { width: 100%; height: 100%; border: 0; }

/* Utility */
.center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-12 { margin-bottom: 12px; }
.spacer-l { height: 80px; }
