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

:root {
  --navy:   #071A33;
  --blue1:  #0F3060;
  --blue2:  #1A4D8F;
  --amber:  #F5A623;
  --amber2: #E8942A;
  --red:    #E8532E;
  --white:  #FFFFFF;
  --text:   rgba(255,255,255,0.90);
  --muted:  rgba(255,255,255,0.55);
  --glass:  rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.12);
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  background: var(--navy);
  color: var(--white);
}

/* ── Background ── */
.bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, #1A4D8F 0%, #0F3060 40%, #071A33 100%);
  z-index: 0;
}
.bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ── Screen system ── */
.screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  z-index: 10;
  padding: 0 24px;
  transition: opacity 0.35s ease, transform 0.35s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.screen.hidden   { opacity: 0; pointer-events: none; transform: translateX(40px); }
.screen.exit-left { opacity: 0; pointer-events: none; transform: translateX(-40px); }
.screen.active   { opacity: 1; pointer-events: all; transform: translateX(0); }

/* ── Logo bar ── */
.logo-bar {
  width: 100%;
  max-width: 480px;
  padding: 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.logo-bar img { height: 38px; }
.agenta-badge {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.8;
}

/* ── Progress dots ── */
.progress {
  display: flex;
  gap: 8px;
  margin: 18px 0 0;
  flex-shrink: 0;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s, transform 0.3s;
}
.dot.active { background: var(--amber); transform: scale(1.25); }
.dot.done   { background: rgba(245,166,35,0.45); }

/* ── Heart visual ── */
.heart-wrap {
  margin: 22px 0 16px;
  position: relative;
  flex-shrink: 0;
}
.heart-wrap svg { filter: drop-shadow(0 0 18px rgba(245,166,35,0.35)); }
.heart-inner {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  line-height: 1;
}
.h-you { font-family:'Poppins',sans-serif; font-size:26px; font-weight:900; color: var(--amber); }
.h-plus { font-family:'Poppins',sans-serif; font-size:14px; font-weight:700; color: var(--amber); margin: 1px 0; }
.h-ai   { font-family:'Poppins',sans-serif; font-size:26px; font-weight:900; color: #fff; }

/* ── Hero text ── */
.hero { width: 100%; max-width: 480px; text-align: center; flex-shrink: 0; }
.headline {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 7vw, 38px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.headline .amber { color: var(--amber); }
.subline {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-top: 10px;
  line-height: 1.5;
}

/* ── CTA button ── */
.cta-btn {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 24px auto 0;
  padding: 18px 24px;
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber2) 100%);
  color: var(--navy);
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 800;
  text-align: center;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  letter-spacing: 0.2px;
  box-shadow: 0 6px 28px rgba(245,166,35,0.40);
  transition: transform 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.cta-btn:active { transform: scale(0.97); box-shadow: 0 3px 16px rgba(245,166,35,0.30); }

.micro {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  flex-shrink: 0;
}

/* ── Benefit pills (hook screen) ── */
.benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  width: 100%;
  max-width: 480px;
  margin-top: 20px;
  flex-shrink: 0;
}
.bpill {
  display: flex; align-items: center; gap: 6px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.bpill svg { width: 13px; height: 13px; fill: var(--amber); flex-shrink: 0; }

/* ── Step screens ── */
.step-wrap {
  width: 100%;
  max-width: 480px;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-bottom: 32px;
}
.step-q {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(22px, 6vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  margin-top: 28px;
  margin-bottom: 6px;
}
.step-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ── Input fields ── */
.field-group { display: flex; flex-direction: column; gap: 14px; }
.field-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.field-wrap { display: flex; flex-direction: column; }
input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 16px 18px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
input::placeholder { color: rgba(255,255,255,0.3); }
input:focus {
  border-color: var(--amber);
  background: rgba(255,255,255,0.09);
}
input.error { border-color: #E8532E; }
.field-error {
  font-size: 12px;
  color: #E8532E;
  margin-top: 5px;
  display: none;
}
.field-error.show { display: block; }

/* ── Interest pills ── */
.interest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}
.ipill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 12px;
  background: var(--glass);
  border: 2px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.ipill:active { transform: scale(0.97); }
.ipill.selected {
  border-color: var(--amber);
  background: rgba(245,166,35,0.10);
}
.ipill-icon { font-size: 26px; line-height: 1; }
.ipill-label {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

/* ── Next / Submit button ── */
.next-btn {
  width: 100%;
  margin-top: auto;
  padding-top: 24px;
}
.next-btn button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 17px 24px;
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber2) 100%);
  color: var(--navy);
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 800;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 6px 28px rgba(245,166,35,0.35);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.next-btn button:active { transform: scale(0.97); }
.next-btn button.disabled { opacity: 0.45; pointer-events: none; }
.btn-arrow { font-size: 18px; }

/* ── Back button ── */
.back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  margin-top: 16px;
  -webkit-tap-highlight-color: transparent;
}
.back-btn:active { color: var(--text); }

/* ── Confirmation screen ── */
.confirm-icon {
  width: 80px; height: 80px;
  background: rgba(245,166,35,0.12);
  border: 2px solid var(--amber);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 32px auto 20px;
  animation: pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  flex-shrink: 0;
}
@keyframes pop {
  0%   { transform: scale(0); opacity: 0; }
  70%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.confirm-title {
  font-family: 'Poppins', sans-serif;
  font-size: 30px;
  font-weight: 900;
  text-align: center;
  flex-shrink: 0;
}
.confirm-title .amber { color: var(--amber); }
.confirm-sub {
  font-size: 15px;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
  line-height: 1.5;
  flex-shrink: 0;
}

.next-steps {
  width: 100%;
  max-width: 480px;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}
.step-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}
.step-num {
  width: 36px; height: 36px;
  background: rgba(245,166,35,0.15);
  border: 1.5px solid rgba(245,166,35,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--amber);
  flex-shrink: 0;
}
.step-card-text {}
.step-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}
.step-card-desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.4;
}

.stand-cta {
  width: 100%;
  max-width: 480px;
  margin-top: 20px;
  padding: 16px;
  background: rgba(245,166,35,0.08);
  border: 1px solid rgba(245,166,35,0.25);
  border-radius: 14px;
  text-align: center;
  flex-shrink: 0;
}
.stand-cta p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.stand-cta strong {
  color: var(--amber);
  font-weight: 700;
}

.footer-brand {
  margin-top: 28px;
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.5px;
  padding-bottom: 32px;
  flex-shrink: 0;
}

/* ── Processing screen ── */
.processing-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 480px;
  padding-bottom: 80px;
}
.processing-spinner {
  margin-bottom: 28px;
}
.processing-title {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}
.processing-sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 320px;
}

/* ── Error screen ── */
.error-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 480px;
  padding-bottom: 80px;
}
.error-icon {
  width: 80px; height: 80px;
  background: rgba(232,83,46,0.12);
  border: 2px solid var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  animation: pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.error-title {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 10px;
}
.error-sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 340px;
  margin-bottom: 28px;
}
.error-retry-btn {
  max-width: 320px;
}
.error-alt {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.5;
}

/* ── Loading spinner on submit ── */
.spinner {
  width: 20px; height: 20px;
  border: 2.5px solid rgba(7,26,51,0.3);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.next-btn button.loading .btn-text { display: none; }
.next-btn button.loading .btn-arrow { display: none; }
.next-btn button.loading .spinner { display: block; }
