/* ============================================================
   EcomEssentials — Application Funnel Stylesheet
   Palette: near-black base, electric blue accent, white/gray type
   ============================================================ */

:root {
  --bg: #050508;
  --panel: #0b0d12;
  --panel-raised: #10131b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --blue: #2e6bff;
  --blue-hover: #4a80ff;
  --blue-deep: #1c4fd6;
  --blue-glow: rgba(46, 107, 255, 0.35);
  --text: #f5f6f8;
  --text-dim: #9ca3af;
  --text-faint: #6b7280;
  --radius: 14px;
  --radius-pill: 999px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

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

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(1080px, 92%);
  margin: 0 auto;
}

.narrow {
  width: min(680px, 92%);
  margin: 0 auto;
}

section {
  padding: 56px 0;
}

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

.hero {
  padding: 72px 0 40px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(46, 107, 255, 0.16), transparent 70%),
    var(--bg);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-hover);
  border: 1px solid rgba(46, 107, 255, 0.4);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  margin-bottom: 28px;
  background: rgba(46, 107, 255, 0.08);
}

h1 {
  font-size: clamp(1.9rem, 4.6vw, 3.3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 880px;
  margin: 0 auto 20px;
}

.u {
  background-image: linear-gradient(var(--blue), var(--blue));
  background-repeat: no-repeat;
  background-size: 100% 0.14em;
  background-position: 0 96%;
  padding-bottom: 0.08em;
}

.subhead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-dim);
  max-width: 660px;
  margin: 0 auto;
}

.subhead strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- VSL ---------- */

.vsl {
  padding-top: 8px;
}

.vsl-frame {
  position: relative;
  width: min(860px, 100%);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(ellipse 60% 60% at 50% 40%, rgba(46, 107, 255, 0.18), transparent 75%),
    var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 80px rgba(46, 107, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vsl-frame iframe,
.vsl-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.vsl-placeholder {
  text-align: center;
}

.play-btn {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 12px rgba(46, 107, 255, 0.15), 0 8px 30px var(--blue-glow);
}

.play-btn svg {
  width: 30px;
  height: 30px;
  fill: #fff;
  margin-left: 4px;
}

.vsl-placeholder p {
  color: var(--text-dim);
  font-weight: 500;
}

.runtime {
  position: absolute;
  bottom: 14px;
  right: 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
}

.vsl-caption {
  text-align: center;
  color: var(--text-faint);
  font-size: 0.9rem;
  margin-top: 16px;
}

/* ---------- Application card ---------- */

.apply {
  padding-top: 32px;
}

.step-label {
  text-align: center;
  color: var(--blue-hover);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.apply h2 {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.apply-sub {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.form-card {
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.progress-track {
  height: 6px;
  background: var(--panel-raised);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue));
  border-radius: var(--radius-pill);
  transition: width 0.35s ease;
}

.progress-count {
  font-size: 0.8rem;
  color: var(--text-faint);
  text-align: right;
  margin-bottom: 22px;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: stepIn 0.3s ease;
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.form-step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.option {
  display: block;
  position: relative;
  cursor: pointer;
  margin-bottom: 12px;
}

.option input {
  position: absolute;
  opacity: 0;
}

.option span {
  display: block;
  padding: 15px 18px;
  background: var(--panel-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 500;
  color: var(--text-dim);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.option:hover span {
  border-color: var(--border-strong);
  color: var(--text);
}

.option input:checked + span {
  border-color: var(--blue);
  color: var(--text);
  background: rgba(46, 107, 255, 0.1);
  box-shadow: 0 0 0 1px var(--blue);
}

.option input:focus-visible + span {
  outline: 2px solid var(--blue-hover);
  outline-offset: 2px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 7px;
}

.field input {
  width: 100%;
  padding: 14px 16px;
  background: var(--panel-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  transition: border-color 0.15s ease;
}

.field input::placeholder {
  color: var(--text-faint);
}

.field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46, 107, 255, 0.2);
}

.form-error {
  display: none;
  color: #ff6b6b;
  font-size: 0.88rem;
  font-weight: 500;
  margin-top: 14px;
}

.form-error.visible {
  display: block;
}

.form-nav {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 16px 32px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  flex: 1;
  box-shadow: 0 6px 24px var(--blue-glow);
}

.btn-primary:hover {
  background: var(--blue-hover);
  box-shadow: 0 8px 32px var(--blue-glow);
  transform: translateY(-1px);
}

.btn-primary .arrow {
  font-size: 1.1em;
  line-height: 1;
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-faint);
}

.btn-lg {
  font-size: 1.1rem;
  padding: 18px 42px;
}

/* ---------- Shared section furniture ---------- */

.mechanisms h2,
.offer h2,
.objections h2 {
  text-align: center;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 36px;
}

/* ---------- Four mechanisms ---------- */

.mech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.mech-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
}

.mech-num {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--blue-hover);
  margin-bottom: 12px;
}

.mech-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.mech-card p {
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* ---------- Offer stack ---------- */

.offer {
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stack {
  list-style: none;
}

.stack li {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 14px;
}

.stack h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.stack h3::before {
  content: "→ ";
  color: var(--blue-hover);
}

.stack p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.pull-quote {
  margin-top: 32px;
  padding: 24px 28px;
  border-left: 3px solid var(--blue);
  background: rgba(46, 107, 255, 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
}

.pull-quote cite {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  font-style: normal;
  color: var(--text-dim);
}

/* ---------- Objections ---------- */

.objection-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.objection {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.objection h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-hover);
  margin-bottom: 8px;
}

.objection p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ---------- Results ---------- */

.results {
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.results h2 {
  text-align: center;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.results-sub {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 36px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.result-card {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.result-figure {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--blue-hover);
  letter-spacing: -0.01em;
}

.result-quote {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-style: italic;
  flex: 1;
}

.result-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.result-name small {
  display: block;
  font-weight: 400;
  color: var(--text-faint);
}

.screenshot-slot {
  aspect-ratio: 16 / 10;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  background: var(--panel-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 0.8rem;
  text-align: center;
  padding: 10px;
}

/* ---------- Final CTA ---------- */

.final-cta {
  text-align: center;
  padding: 80px 0;
}

.final-cta h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  max-width: 700px;
  margin: 0 auto 14px;
}

.final-cta p {
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 30px;
}

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

.ty-hero {
  padding: 80px 0 32px;
  text-align: center;
}

.check-badge {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(46, 107, 255, 0.12);
  border: 1px solid rgba(46, 107, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.check-badge svg {
  width: 32px;
  height: 32px;
  stroke: var(--blue-hover);
}

.calendar-card {
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 32px;
}

.calendar-slot {
  min-height: 420px;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  background: var(--panel-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  text-align: center;
  padding: 24px;
}

.ty-note {
  text-align: center;
  color: var(--text-faint);
  font-size: 0.9rem;
  margin-top: 24px;
}

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

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 48px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--text);
}

.disclaimer {
  color: var(--text-faint);
  font-size: 0.75rem;
  line-height: 1.7;
  text-align: center;
  max-width: 820px;
  margin: 0 auto 12px;
}

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

@media (max-width: 860px) {
  .results-grid {
    grid-template-columns: 1fr;
  }

  .mech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .mech-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  section {
    padding: 40px 0;
  }

  .hero {
    padding: 48px 0 28px;
  }

  .form-card {
    padding: 24px 18px;
  }

  .form-nav {
    flex-direction: column-reverse;
  }

  .btn-ghost {
    width: 100%;
  }
}
