:root {
  --v3-bg: #070b14;
  --v3-panel: rgba(255,255,255,.06);
  --v3-panel-hover: rgba(255,255,255,.10);
  --v3-border: rgba(255,255,255,.12);
  --v3-text: #f8fafc;
  --v3-muted: #94a3b8;
  --v3-accent: #3b82f6;
  --v3-accent-light: #60a5fa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--v3-text);
  background:
    radial-gradient(
      circle at 15% 0%,
      rgba(59,130,246,.18),
      transparent 32%
    ),
    radial-gradient(
      circle at 85% 20%,
      rgba(139,92,246,.12),
      transparent 30%
    ),
    var(--v3-bg);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.nwp-v3-start {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 80px;
}

.v3-start-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.v3-brand {
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -.04em;
  font-size: 1.2rem;
}

.v3-brand span {
  color: var(--v3-accent-light);
}

.v3-progress-text {
  color: var(--v3-muted);
  font-size: .9rem;
  font-weight: 700;
}

.v3-wizard-shell {
  width: min(1040px, 100%);
  margin: 30px auto 0;
}

.v3-progress {
  margin-bottom: 56px;
}

.v3-progress-track {
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
}

.v3-progress-bar {
  width: 33.333%;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      var(--v3-accent),
      #8b5cf6
    );
  transition: width .35s ease;
}

.v3-step {
  display: none;
}

.v3-step.active {
  display: block;
}

.v3-step-heading {
  max-width: 720px;
  margin-bottom: 38px;
}

.v3-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--v3-accent-light);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.v3-step-heading h1,
.v3-step-heading h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.35rem, 6vw, 4.75rem);
  line-height: .98;
  letter-spacing: -.06em;
}

.v3-step-heading p {
  max-width: 640px;
  margin: 20px 0 0;
  color: var(--v3-muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

.v3-business-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.v3-business-card {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--v3-border);
  border-radius: 22px;
  text-align: left;
  color: var(--v3-text);
  background: var(--v3-panel);
  transition:
    transform .2s ease,
    border-color .2s ease,
    background .2s ease;
}

.v3-business-card:hover {
  transform: translateY(-4px);
  border-color: rgba(96,165,250,.58);
  background: var(--v3-panel-hover);
}

.v3-business-card.selected {
  border-color: var(--v3-accent-light);
  box-shadow:
    0 0 0 1px rgba(96,165,250,.22),
    0 18px 50px rgba(0,0,0,.22);
}

.v3-business-icon {
  display: block;
  margin-bottom: 24px;
  font-size: 2rem;
}

.v3-business-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.v3-business-card small {
  display: block;
  color: var(--v3-muted);
  line-height: 1.5;
}

.v3-template-stage {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.v3-template-card {
  overflow: hidden;
  border: 1px solid var(--v3-border);
  border-radius: 24px;
  background: var(--v3-panel);
}

.v3-template-preview {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(
      135deg,
      rgba(59,130,246,.18),
      rgba(139,92,246,.13)
    );
}

.v3-template-browser {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.v3-template-body {
  padding: 22px;
}

.v3-template-body h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.v3-template-body p {
  min-height: 48px;
  margin: 0 0 18px;
  color: var(--v3-muted);
  line-height: 1.5;
  font-size: .92rem;
}

.v3-template-actions {
  display: flex;
  gap: 10px;
}

.v3-btn {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--v3-border);
  font-weight: 800;
}

.v3-btn-primary {
  border-color: transparent;
  color: #fff;
  background:
    linear-gradient(
      135deg,
      var(--v3-accent),
      #7c3aed
    );
}

.v3-btn-secondary {
  color: var(--v3-text);
  background: rgba(255,255,255,.06);
}

.v3-navigation-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.v3-selected-summary {
  margin-bottom: 26px;
  padding: 18px 20px;
  border: 1px solid rgba(96,165,250,.26);
  border-radius: 16px;
  background: rgba(59,130,246,.08);
}

.v3-selected-summary span,
.v3-selected-summary strong {
  display: block;
}

.v3-selected-summary span {
  margin-bottom: 5px;
  color: var(--v3-muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.v3-lead-form {
  max-width: 760px;
}

.v3-lead-form label {
  display: block;
  margin-bottom: 18px;
  color: #cbd5e1;
  font-size: .88rem;
  font-weight: 800;
}

.v3-lead-form input,
.v3-lead-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 15px 16px;
  border: 1px solid var(--v3-border);
  border-radius: 13px;
  outline: none;
  color: var(--v3-text);
  background: rgba(255,255,255,.055);
}

.v3-lead-form input:focus,
.v3-lead-form textarea:focus {
  border-color: var(--v3-accent-light);
}

.v3-form-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px) {
  .v3-business-grid,
  .v3-template-stage {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .nwp-v3-start {
    width: min(100% - 24px, 1180px);
  }

  .v3-start-header {
    min-height: 72px;
  }

  .v3-progress {
    margin-bottom: 38px;
  }

  .v3-business-grid,
  .v3-template-stage,
  .v3-form-grid {
    grid-template-columns: 1fr;
  }

  .v3-business-card {
    min-height: 0;
  }

  .v3-template-actions,
  .v3-navigation-row {
    flex-direction: column;
  }

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


/* =========================================================
   V3 LIVE TEMPLATE PREVIEW + WIZARD MOTION
========================================================= */

.v3-step.active {
  animation:
    v3StepEnter
    .38s
    cubic-bezier(.22,.8,.35,1)
    both;
}

@keyframes v3StepEnter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.992);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


.v3-template-card {
  position: relative;
  transition:
    transform .24s ease,
    border-color .24s ease,
    box-shadow .24s ease,
    background .24s ease;
}

.v3-template-card:hover {
  transform: translateY(-6px);
  border-color: rgba(96,165,250,.46);
  box-shadow:
    0 26px 70px rgba(0,0,0,.30);
}


.v3-template-preview {
  position: relative;
  aspect-ratio: 16 / 10;
  padding: 14px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 15% 15%,
      rgba(59,130,246,.24),
      transparent 44%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(139,92,246,.18),
      transparent 42%
    ),
    #090d18;
}


.v3-template-browser {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border:
    1px solid
    rgba(255,255,255,.13);
  background: #fff;
  box-shadow:
    0 18px 50px rgba(0,0,0,.32);
}


.v3-browser-toolbar {
  flex: 0 0 25px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  background:
    linear-gradient(
      180deg,
      #1f2937,
      #111827
    );
}


.v3-browser-toolbar span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background:
    rgba(255,255,255,.40);
}


.v3-browser-viewport {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: #fff;
}


.v3-browser-viewport iframe {
  position: absolute;
  top: 0;
  left: 0;

  width: 1440px;
  height: 900px;

  border: 0;
  pointer-events: none;

  transform: none;
  transform-origin: top left;

  zoom: .205;

  background: #fff;
}


.v3-template-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  box-shadow:
    inset 0 0 0 1px
    rgba(96,165,250,.25);
  transition: opacity .24s ease;
}


.v3-template-card:hover::after {
  opacity: 1;
}


.v3-business-card {
  position: relative;
  overflow: hidden;
}


.v3-business-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 30% 0%,
      rgba(96,165,250,.14),
      transparent 48%
    );
  transition: opacity .24s ease;
}


.v3-business-card:hover::before,
.v3-business-card.selected::before {
  opacity: 1;
}


.v3-btn {
  transition:
    transform .18s ease,
    filter .18s ease,
    border-color .18s ease,
    background .18s ease;
}


.v3-btn:hover {
  transform: translateY(-1px);
}


.v3-btn-primary:hover {
  filter: brightness(1.08);
}


@media (max-width: 900px) {

  .v3-browser-viewport iframe {
    transform: none;
    zoom: .185;
  }

}


@media (max-width: 620px) {

  .v3-template-preview {
    aspect-ratio: 16 / 11;
  }

  .v3-browser-viewport iframe {
    transform: none;
    zoom: .22;
  }

}


/* =========================================================
   V3 PREMIUM TEMPLATE CAROUSEL
========================================================= */

.v3-template-stage {
  display: block;
}

.v3-carousel-shell {
  position: relative;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 0 72px;
}

.v3-carousel-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 30px;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.075),
      rgba(255,255,255,.04)
    );
  box-shadow:
    0 35px 90px rgba(0,0,0,.30);
  animation:
    v3CarouselFade
    .22s
    ease
    both;
}

@keyframes v3CarouselFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.v3-carousel-preview {
  padding: 20px;
  aspect-ratio: 16 / 8.7;
  background:
    radial-gradient(
      circle at 18% 15%,
      rgba(59,130,246,.25),
      transparent 42%
    ),
    radial-gradient(
      circle at 85% 78%,
      rgba(139,92,246,.20),
      transparent 40%
    ),
    #090d18;
}

.v3-carousel-preview
.v3-template-browser {
  height: 100%;
}

.v3-carousel-preview
.v3-browser-viewport iframe {
  width: 1440px;
  height: 920px;
  display: block;
  opacity: 1;
  visibility: visible;
  transform: none;
  transform-origin: top left;
  zoom: .53;
}

.v3-carousel-info {
  padding: 32px 34px 34px;
}

.v3-carousel-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--v3-accent-light);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.v3-carousel-info h3 {
  margin: 0;
  font-size:
    clamp(2rem, 4vw, 3.3rem);
  letter-spacing: -.05em;
}

.v3-carousel-info p {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--v3-muted);
  line-height: 1.65;
  font-size: 1rem;
}

.v3-carousel-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.v3-carousel-arrow {
  position: absolute;
  top: 43%;
  transform: translateY(-50%);
  z-index: 5;

  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  border-radius: 999px;
  border:
    1px solid
    rgba(255,255,255,.14);

  color: #fff;
  background:
    rgba(15,23,42,.88);

  box-shadow:
    0 15px 40px rgba(0,0,0,.30);

  font-size: 1.2rem;
  font-weight: 900;

  transition:
    transform .18s ease,
    background .18s ease,
    border-color .18s ease;
}

.v3-carousel-arrow:hover {
  transform:
    translateY(-50%)
    scale(1.08);

  border-color:
    rgba(96,165,250,.60);

  background:
    rgba(30,41,59,.98);
}

.v3-carousel-prev {
  left: 8px;
}

.v3-carousel-next {
  right: 8px;
}

.v3-carousel-counter {
  position: absolute;
  top: 18px;
  right: 92px;
  z-index: 6;

  min-width: 62px;
  padding: 8px 11px;

  border-radius: 999px;
  border:
    1px solid
    rgba(255,255,255,.12);

  text-align: center;
  color: #fff;
  background:
    rgba(2,6,23,.76);

  backdrop-filter:
    blur(12px);

  font-size: .8rem;
  font-weight: 900;
}

.v3-carousel-counter span {
  color: var(--v3-muted);
  padding: 0 3px;
}

.v3-template-empty {
  padding: 40px;
  text-align: center;
  border:
    1px solid
    rgba(255,255,255,.10);
  border-radius: 20px;
  color: var(--v3-muted);
}


@media (max-width: 900px) {

  .v3-carousel-shell {
    padding:
      0 58px;
  }

  .v3-carousel-preview
  .v3-browser-viewport iframe {
    transform: none;
    zoom: .42;
  }

}


@media (max-width: 620px) {

  .v3-carousel-shell {
    padding:
      0 0 70px;
  }

  .v3-carousel-card {
    border-radius: 22px;
  }

  .v3-carousel-preview {
    padding: 12px;
    aspect-ratio: 16 / 10.5;
  }

  .v3-carousel-preview
  .v3-browser-viewport iframe {
    transform: none;
    zoom: .245;
  }

  .v3-carousel-info {
    padding:
      24px 20px 22px;
  }

  .v3-carousel-actions {
    flex-direction: column;
  }

  .v3-carousel-actions
  .v3-btn {
    width: 100%;
    text-align: center;
  }

  .v3-carousel-arrow {
    top: auto;
    bottom: 4px;
    transform: none;
  }

  .v3-carousel-arrow:hover {
    transform: scale(1.06);
  }

  .v3-carousel-prev {
    left: calc(50% - 58px);
  }

  .v3-carousel-next {
    right: calc(50% - 58px);
  }

  .v3-carousel-counter {
    top: 12px;
    right: 12px;
  }

}


/* =========================================================
   V3 ONBOARDING CHECKOUT STATUS
========================================================= */

.v3-field-help {
  display: block;
  margin-top: 8px;
  color: var(--v3-muted);
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.45;
}

.v3-submit-status {
  min-height: 24px;
  margin-top: 18px;
  padding: 0;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.5;
}

.v3-submit-status.is-loading {
  color: #bfdbfe;
}

.v3-submit-status.is-success {
  color: #86efac;
}

.v3-submit-status.is-error {
  padding: 12px 14px;
  border:
    1px solid
    rgba(248,113,113,.25);
  border-radius: 12px;
  color: #fecaca;
  background:
    rgba(127,29,29,.18);
}

#v3SubmitButton:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}
