/* ============================================================
   FRIENDZS — Where Trust Becomes Friendzs
   Design System
   ============================================================ */

:root {
  /* Brand coral gradient */
  --coral-1: #FF4A62;
  --coral-2: #FF5A45;
  --coral: #FF5152;
  --coral-grad: linear-gradient(118deg, #FF4A62 0%, #FF5A45 100%);
  --coral-grad-soft: linear-gradient(118deg, #FF4A62 0%, #FF6B52 100%);

  /* Darkest = deep navy (never pure black) */
  --navy: #000052;
  --navy-700: #1c1c63;
  --navy-body: #3a3a72;
  --navy-muted: #6b6b92;

  /* Warm neutrals */
  --cream: #FFF8F5;
  --cream-deep: #FFF1EC;
  --white: #ffffff;
  --blush: #FFEDE8;
  --blush-2: #FFE2DA;
  --line: #ffe0d8;

  /* Effects */
  --shadow-sm: 0 4px 16px rgba(0, 0, 82, 0.06);
  --shadow-md: 0 14px 40px rgba(0, 0, 82, 0.08);
  --shadow-lg: 0 26px 70px rgba(0, 0, 82, 0.12);
  --shadow-coral: 0 16px 38px rgba(255, 74, 98, 0.34);

  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 32px;
  --r-xl: 44px;

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);

  --ff-display: "Fredoka", system-ui, sans-serif;
  --ff-body: "Nunito", system-ui, sans-serif;
}

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

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

body {
  font-family: var(--ff-body);
  color: var(--navy-body);
  background: var(--cream);
  line-height: 1.65;
  font-size: clamp(16px, 1.05vw, 18px);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  color: var(--navy);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

.coral-text {
  background: var(--coral-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--coral-1);
}
.nowrap { white-space: nowrap; }

section { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral-1);
  background: var(--blush);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.sec-head { max-width: 720px; margin: 0 auto; text-align: center; }
.sec-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.sec-head p { margin-top: 18px; font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--navy-muted); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.02rem;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 16px 30px;
  transition: transform .18s ease, box-shadow .25s ease, filter .2s ease;
  line-height: 1;
  white-space: nowrap;
}
.btn-primary {
  background: var(--coral-grad);
  color: #fff;
  box-shadow: var(--shadow-coral);
}
.btn-primary:hover { transform: translateY(-3px); filter: saturate(1.08) brightness(1.03); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-lg { padding: 19px 38px; font-size: 1.12rem; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 245, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 38px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--navy-700);
  transition: color .18s ease;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--coral-1); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2.6px; background: var(--navy); border-radius: 2px; margin: 5px 0; transition: .25s; }

/* ============================================================
   HERO  (enroll-focused: form is the centred hero)
   ============================================================ */
.hero {
  padding: clamp(30px, 4vw, 56px) 0 clamp(48px, 6vw, 80px);
  overflow: hidden;
  min-height: calc(100dvh - 76px);
  display: flex;
  align-items: flex-start;
}
.hero-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  width: 100%;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 600; }
.hero h1 .line2 { display: block; }
.hero-title {
  display: flex;
  align-items: center;
  gap: .34em;
  flex-wrap: wrap;
}
.hero-title-logo {
  height: 1.05em;
  width: auto;
  max-width: 100%;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(255,74,98,.22));
}
.hero-sub {
  margin-top: 22px;
  font-size: clamp(1.04rem, 1.5vw, 1.24rem);
  color: var(--navy-body);
  max-width: 520px;
}
.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero-trust {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--navy-700);
}
.trust-pill .dot {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--blush);
  font-size: 0.95rem;
}

/* hero pitch mini-steps */
.hero-pitch .mini-steps { margin-top: 28px; display: grid; gap: 12px; }
.hero-pitch .mini-step { display: flex; gap: 13px; align-items: center; font-weight: 700; color: var(--navy-700); font-size: 1rem; }
.hero-pitch .mini-step .n {
  width: 32px; height: 32px; flex: none;
  background: var(--coral-grad); color: #fff;
  border-radius: 50%; display: grid; place-items: center;
  font-family: var(--ff-display); font-size: 0.9rem;
}
.hero-pitch .mini-step-note { align-items: flex-start; }
.hero-pitch .mini-note { display: grid; gap: 2px; font-weight: 600; color: var(--navy-muted); font-size: 0.93rem; line-height: 1.45; }
.hero-pitch .mini-note strong { color: var(--coral-1); font-family: var(--ff-display); font-weight: 600; font-size: 1rem; }

/* hero form column + flip card */
.hero-form { position: relative; display: grid; place-items: center; }
.flip {
  position: relative;
  width: 100%;
  max-width: 460px;
  perspective: 2000px;
}
.flip-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(.2,.85,.25,1), height .55s cubic-bezier(.2,.85,.25,1);
}
.flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.flip-front { position: relative; }
.flip.flipped .flip-front { pointer-events: none; opacity: 0; transition: opacity 0s linear .5s; }
/* Back (success) face. KEY FIX: pointer-events:none in the base state so the
   absolutely-positioned success card never intercepts clicks meant for the form
   fields / Join button (that was making the form feel dead & validation not fire).
   It becomes clickable only once the card has flipped to success. */
.flip-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  opacity: 1;
  pointer-events: none;
}
.flip.flipped .flip-back { pointer-events: auto; }
.flip .form-card, .flip .success-card { margin: 0; height: 100%; }

/* success flashcard (back face) */
.success-card {
  position: relative;
  overflow: hidden;
  background: var(--coral-grad);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: clamp(30px, 4vw, 48px) clamp(22px, 4vw, 44px);
  display: grid;
  place-items: center;
  text-align: center;
}
.flip { transition: height .55s cubic-bezier(.2,.85,.25,1); }
/* success state: front leaves the flow, back flows and sizes to its own content,
   so the card collapses to the message height instead of the long form height */
.flip.done .flip-front { position: absolute; inset: 0; pointer-events: none; }
.flip.done .flip-back { position: relative; inset: auto; }
.flip.done .success-card { height: auto; }
.success-content { max-width: 360px; }
.success-content { position: relative; z-index: 3; }
.success-card .big-emoji { font-size: clamp(3.4rem, 9vw, 5rem); line-height: 1; }
.success-card h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 14px 0 14px; }
.success-card p { color: #ffffff; font-size: clamp(0.98rem, 2.6vw, 1.08rem); font-weight: 600; max-width: 320px; margin: 0 auto; line-height: 1.5; overflow-wrap: anywhere; }
.success-card .btn { margin-top: 22px; background: #fff; color: var(--coral-1); }
.success-card .btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* emoji blast layer */
.blast-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.blast {
  position: absolute;
  left: 50%; top: 52%;
  font-size: 1.9rem;
  opacity: 0;
  will-change: transform, opacity;
  animation: blastOut .95s cubic-bezier(.18,.7,.3,1) both;
}
@keyframes blastOut {
  0%   { transform: translate(-50%, -50%) scale(.2) rotate(0deg); opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--bx)), calc(-50% + var(--by))) scale(1) rotate(var(--br)); opacity: 0; }
}

/* floating emojis around the form */
.float-emoji {
  position: absolute;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  filter: drop-shadow(0 8px 16px rgba(0,0,82,.12));
  animation: bob 5s ease-in-out infinite;
  z-index: 5;
}
.float-emoji.e1 { top: -22px; left: -10px; animation-delay: 0s; }
.float-emoji.e2 { top: 30%; right: -22px; animation-delay: .8s; }
.float-emoji.e3 { bottom: -18px; left: 6%; animation-delay: 1.6s; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(4deg); } }

/* blobs */
.hero::before {
  content: "";
  position: absolute;
  width: 620px; height: 620px;
  right: -180px; top: -160px;
  background: radial-gradient(circle, rgba(255,90,69,.16), transparent 65%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

/* ============================================================
   SECTION SHELLS
   ============================================================ */
.section { padding: clamp(64px, 8vw, 118px) 0; }
.section-tint { background: var(--cream-deep); }
.section-coral {
  background: var(--coral-grad);
  color: #fff;
}
.section-coral h2, .section-coral h3 { color: #fff; }

/* ============================================================
   HOW IT WORKS — steps
   ============================================================ */
.steps {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #fff;
  position: relative;
  transition: transform .22s ease, box-shadow .22s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step-num {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--coral-1);
  text-transform: uppercase;
}
.step-emoji {
  font-size: 2.5rem;
  margin: 6px 0 16px;
  display: block;
  line-height: 1;
}
.step h3 { font-size: 1.32rem; margin-bottom: 10px; }
.step p { color: var(--navy-muted); font-size: 1rem; }

/* ============================================================
   STATEMENT / NOT RENTED
   ============================================================ */
.statement { text-align: center; max-width: 880px; margin: 0 auto; }
.statement .big {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 600;
  line-height: 1.12;
}
.statement p { margin-top: 26px; font-size: clamp(1.08rem, 1.5vw, 1.28rem); }
.section-coral .statement p { color: #ffffff; }

/* ============================================================
   MISSION
   ============================================================ */
.mission-card {
  background: #fff;
  border-radius: var(--r-xl);
  padding: clamp(40px, 5vw, 72px);
  box-shadow: var(--shadow-md);
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
  border: 1px solid #fff;
}
.mission-card .m-emoji { font-size: 3rem; }
.mission-card h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 16px 0 18px; }
.mission-card p { font-size: clamp(1.08rem, 1.5vw, 1.28rem); color: var(--navy-body); }
.mission-card .slogan {
  margin-top: 28px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.15rem;
}

/* ============================================================
   CARE ZONE — scenarios
   ============================================================ */
.care-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.care-list { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.care-list li {
  display: flex;
  gap: 14px;
  background: var(--white);
  border-radius: var(--r-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  color: var(--navy-700);
}
.care-list li .q { font-size: 1.3rem; line-height: 1.2; }
.scenarios { display: grid; gap: 18px; }
.scenario {
  background: var(--blush);
  border-radius: var(--r-md);
  padding: 26px 28px;
  border-left: none;
}
.scenario .quote { font-size: 1.06rem; color: var(--navy-700); font-style: italic; }
.scenario .resolve {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-display);
  font-weight: 600;
  color: var(--coral-1);
  font-size: 0.96rem;
}

/* ============================================================
   WHY YOU NEED — chips grid
   ============================================================ */
.why-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.why-card {
  background: #fff;
  border-radius: var(--r-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.why-card .ico { font-size: 1.9rem; display: block; margin-bottom: 12px; }
.why-card span.lbl { font-family: var(--ff-display); font-weight: 600; color: var(--navy); font-size: 1.06rem; }

/* ============================================================
   INTENTIONS
   ============================================================ */
.intent-grid { margin-top: 52px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.intent {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 34px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: transform .2s ease, border-color .2s, box-shadow .2s;
}
.intent:hover { transform: translateY(-6px); border-color: var(--blush-2); box-shadow: var(--shadow-md); }
.intent .ie { font-size: 2.6rem; display: block; }
.intent h3 { margin: 14px 0 8px; font-size: 1.28rem; }
.intent p { color: var(--navy-muted); font-size: 0.98rem; }

/* ============================================================
   TRUST & SAFETY
   ============================================================ */
.safety-grid { margin-top: 52px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.safety {
  border-radius: var(--r-lg);
  padding: 32px 30px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
}
.safety .se { font-size: 2rem; }
.safety h3 { margin: 14px 0 10px; font-size: 1.26rem; }
.safety p { color: #ffffff; font-size: 1rem; }

/* strengths inline list */
.strengths { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.strength-pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 700;
  color: var(--navy-700);
  box-shadow: var(--shadow-sm);
}
.strength-pill .se { font-size: 1.15rem; }

/* free banner */
.free-banner {
  margin-top: 52px;
  background: #fff;
  border-radius: var(--r-xl);
  padding: clamp(34px, 4vw, 56px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-md);
}
.free-price {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
  background: var(--coral-grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.free-banner ul { list-style: none; display: grid; gap: 10px; }
.free-banner li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--navy-700); }
.free-banner li .ck { color: var(--coral-1); font-weight: 800; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; margin: 52px auto 0; display: grid; gap: 14px; }
.faq-item {
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid #fff;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 24px 28px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.14rem;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q .pm { font-size: 1.5rem; color: var(--coral-1); transition: transform .25s; flex: none; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 28px 26px; color: var(--navy-muted); }

/* ============================================================
   FORM
   ============================================================ */
.form-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(34px, 5vw, 64px); align-items: start; }
.form-aside .eyebrow { margin-bottom: 22px; }
.form-aside h2 { font-size: clamp(2rem, 4vw, 3rem); }
.form-aside p { margin-top: 18px; color: var(--navy-body); font-size: 1.12rem; }
.form-aside .mini-steps { margin-top: 30px; display: grid; gap: 14px; }
.form-aside .mini-step { display: flex; gap: 14px; align-items: center; font-weight: 700; color: var(--navy-700); }
.form-aside .mini-step .n {
  width: 34px; height: 34px; flex: none;
  background: var(--coral-grad); color: #fff;
  border-radius: 50%; display: grid; place-items: center;
  font-family: var(--ff-display); font-size: 0.92rem;
}

.form-card {
  background: #fff;
  border-radius: var(--r-xl);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-lg);
  border: 1px solid #fff;
  position: relative;
}
.form-card .form-title { text-align: center; margin-bottom: 18px; }
.form-card .form-title h3 { font-size: 1.8rem; }
.form-card .form-title p { color: var(--navy-muted); margin-top: 6px; }

.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 0.52fr 1.48fr; gap: 12px; margin-bottom: 14px; }
.field-row .field { margin-bottom: 0; }
.field label {
  display: block;
  font-family: var(--ff-display);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  font-size: 1.02rem;
}
.field .input {
  width: 100%;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.field .input::placeholder { color: #b3a8b6; font-weight: 600; }
.field .input:focus {
  outline: none;
  border-color: var(--coral-1);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,74,98,.12);
}
.field.invalid .input { border-color: var(--coral-1); background: #fff5f4; }
.field.valid .input { border-color: #34c759; }

.phone-row { display: flex; gap: 10px; }
.phone-prefix {
  display: flex; align-items: center;
  font-weight: 700; color: var(--navy);
  background: var(--blush);
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0 16px;
  flex: none;
  white-space: nowrap;
  gap: 5px;
}

/* ============================================================
   OTP verification panel (mobile number)
   ============================================================ */
.otp-panel {
  text-align: center;
  padding: 6px 4px 4px;
  animation: otpIn .4s cubic-bezier(.2,.8,.3,1) both;
}
@keyframes otpIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.otp-back {
  background: none; border: none; cursor: pointer;
  color: var(--navy-muted); font-weight: 700; font-size: 0.92rem;
  font-family: var(--ff-body);
  padding: 4px 2px; margin-bottom: 8px;
}
.otp-back:hover { color: var(--coral-1); }
.otp-emoji { font-size: 3rem; line-height: 1; }
.otp-title { font-family: var(--ff-display); font-size: 1.7rem; color: var(--navy); margin: 10px 0 6px; }
.otp-sub { color: var(--navy-muted); font-weight: 600; font-size: 0.98rem; max-width: 320px; margin: 0 auto; line-height: 1.5; }
.otp-dest { color: var(--coral-1); font-weight: 700; margin: 10px 0 0; font-size: 0.96rem; }
.otp-inputs {
  display: flex; gap: clamp(8px, 2.4vw, 14px); justify-content: center;
  margin: 22px 0 6px;
}
.otp-box {
  width: clamp(42px, 12vw, 56px);
  height: clamp(52px, 14vw, 64px);
  text-align: center;
  font-size: 1.6rem; font-weight: 800; color: var(--navy);
  font-family: var(--ff-display);
  border: none;
  border-bottom: 3px solid var(--line);
  background: var(--cream);
  border-radius: 12px 12px 6px 6px;
  outline: none;
  transition: border-color .18s, background .18s, transform .12s;
}
.otp-box:focus { border-bottom-color: var(--coral-1); background: #fff; transform: translateY(-2px); }
.otp-box.filled { border-bottom-color: var(--coral-1); }
.otp-panel.bad .otp-box { border-bottom-color: var(--coral-1); animation: otpShake .4s; }
@keyframes otpShake {
  0%,100% { transform: translateX(0); }
  20%,60% { transform: translateX(-6px); }
  40%,80% { transform: translateX(6px); }
}
.otp-err {
  display: none; min-height: 4px;
  color: var(--coral-1); font-weight: 700; font-size: 0.92rem; margin: 10px 0 0;
}
.otp-panel.bad .otp-err { display: block; }
.otp-verify { width: 100%; margin-top: 20px; }
.otp-verify[disabled] { opacity: .6; cursor: not-allowed; }
.otp-resend { margin-top: 16px; font-size: 0.9rem; color: var(--navy-muted); font-weight: 600; }
.otp-resend-btn {
  background: none; border: none; cursor: pointer;
  color: var(--coral-1); font-weight: 800; font-family: var(--ff-body);
  text-decoration: underline; padding: 0;
}
.otp-resend-btn[disabled] { color: var(--navy-muted); text-decoration: none; cursor: default; }
.otp-timer { color: var(--navy-muted); font-weight: 700; }

.err {
  display: none;
  margin-top: 8px;
  color: var(--coral-1);
  font-weight: 700;
  font-size: 0.92rem;
}
.field.invalid .err { display: block; animation: shakein .3s ease; }
@keyframes shakein { 0%{ transform: translateX(-6px);} 50%{transform:translateX(4px);} 100%{transform:translateX(0);} }

/* toggle gender */
.toggle-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.toggle-btn {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 13px;
  border-radius: var(--r-sm);
  border: 2px solid var(--line);
  background: var(--cream);
  color: var(--navy-muted);
  cursor: pointer;
  transition: all .2s ease;
  display: flex; align-items: center; justify-content: center; gap: 9px;
}
.toggle-btn:hover { border-color: var(--blush-2); }
.toggle-btn.active {
  background: var(--coral-grad);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-coral);
  transform: translateY(-2px);
}

/* location (Bangalore only) */
.loc-note {
  display: grid;
  gap: 4px;
  background: var(--blush);
  border-radius: var(--r-sm);
  padding: 9px 14px;
  margin-bottom: 10px;
}
.loc-note strong { color: var(--coral-1); font-family: var(--ff-display); font-weight: 600; font-size: 0.94rem; }
.loc-note span { color: var(--navy-muted); font-size: 0.9rem; line-height: 1.5; }
.loc-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.loc-tab {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 11px 10px;
  border-radius: var(--r-sm);
  border: 2px solid var(--line);
  background: var(--cream);
  color: var(--navy-muted);
  cursor: pointer;
  transition: all .2s ease;
}
.loc-tab:hover { border-color: var(--blush-2); }
.loc-tab.active {
  background: var(--navy);
  color: #fff;
  border-color: transparent;
}
.loc-panel { display: grid; gap: 8px; }
.loc-panel[hidden] { display: none; }
.loc-hint { font-size: 0.86rem; color: var(--navy-muted); font-weight: 600; }
.detect-btn {
  background: #fff;
  color: var(--coral-1);
  border: 2px dashed var(--blush-2);
  box-shadow: none;
  width: 100%;
  padding: 15px;
}
.detect-btn:hover { transform: translateY(-2px); border-color: var(--coral-1); box-shadow: var(--shadow-sm); }
.detect-btn.busy { opacity: .7; pointer-events: none; }
.loc-status {
  font-weight: 700;
  font-size: 0.94rem;
  padding: 11px 14px;
  border-radius: var(--r-sm);
}
.loc-status[hidden] { display: none; }
.loc-status.ok { color: #1b8a4b; background: #e9f9ef; }
.loc-status.bad { color: var(--coral-1); background: #fff0ee; }
.loc-why {
  margin-top: 12px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-700);
  text-align: center;
  background: linear-gradient(0deg, var(--cream), var(--cream));
  border: 1px dashed var(--blush-2);
  border-radius: 999px;
  padding: 9px 14px;
}

/* terms row */
.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  margin-bottom: 6px;
}
.field.invalid .terms-row { border-color: var(--coral-1); background: #fff5f4; }
.terms-check {
  appearance: none; -webkit-appearance: none;
  width: 24px; height: 24px; flex: none;
  border: 2px solid var(--blush-2);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  position: relative;
  margin-top: 1px;
  transition: .18s;
}
.terms-check:checked { background: var(--coral-grad); border-color: transparent; }
.terms-check:checked::after {
  content: "✓";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 0.95rem;
}
.terms-text { flex: 1; min-width: 0; font-weight: 600; color: var(--navy-700); font-size: 0.98rem; line-height: 1.45; overflow-wrap: anywhere; }
.terms-link {
  color: var(--coral-1);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font-weight: 800;
}
.submit-btn { width: 100%; margin-top: 18px; }

/* ============================================================
   MODAL (terms)
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,82,.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  z-index: 1000;
}
.modal-overlay.show { display: flex; animation: fadein .2s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff;
  border-radius: var(--r-lg);
  max-width: 640px;
  width: 100%;
  max-height: 84vh;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: pop .26s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes pop { from { transform: scale(.92) translateY(20px); opacity:0; } to { transform: none; opacity: 1; } }
.modal-head {
  padding: 26px 30px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.modal-head h3 { font-size: 1.5rem; }
.modal-close {
  background: var(--cream); border: none; cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.3rem; color: var(--navy); display: grid; place-items: center;
  transition: .18s;
}
.modal-close:hover { background: var(--blush); transform: rotate(90deg); }
.modal-body { padding: 26px 30px; overflow-y: auto; }
.modal-body h4 { font-family: var(--ff-display); color: var(--navy); margin: 20px 0 8px; font-size: 1.1rem; }
.modal-body h4:first-child { margin-top: 0; }
.modal-body p, .modal-body li { color: var(--navy-body); font-size: 0.98rem; }
.modal-body ul { margin: 8px 0 8px 20px; display: grid; gap: 6px; }
.modal-foot { padding: 20px 30px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }

/* ============================================================
   SUCCESS overlay
   ============================================================ */
.success-overlay {
  position: fixed; inset: 0;
  background: var(--coral-grad);
  display: none;
  align-items: center; justify-content: center;
  text-align: center; padding: 24px;
  z-index: 1100;
  overflow: hidden;
}
.success-overlay.show { display: flex; animation: fadein .3s ease; }
.success-inner { position: relative; z-index: 3; max-width: 560px; }
.success-inner .big-emoji { font-size: clamp(4rem, 12vw, 7rem); animation: pop .5s cubic-bezier(.2,.9,.3,1.4); }
.success-inner h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); margin: 10px 0 16px; }
.success-inner p { color: #ffffff; font-size: 1.2rem; font-weight: 600; }
.success-inner .btn { margin-top: 32px; }
.confetti {
  position: absolute;
  font-size: 2rem;
  pointer-events: none;
  animation: fall linear forwards;
  z-index: 1;
}
@keyframes fall {
  0% { transform: translateY(-12vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translateY(112vh) rotate(360deg); opacity: 0; }
}

/* ============================================================
   CTA banner + Footer
   ============================================================ */
.cta-band {
  background: var(--coral-grad);
  border-radius: var(--r-xl);
  padding: clamp(40px, 5vw, 72px);
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-coral);
}
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); }
.cta-band p { color: #ffffff; margin: 16px auto 0; max-width: 520px; font-size: 1.12rem; }
.cta-band .btn { margin-top: 30px; background: #fff; color: var(--coral-1); }
.cta-band .btn:hover { transform: translateY(-3px); }

.footer { background: var(--navy); color: #ffffff; padding: clamp(48px, 6vw, 80px) 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo img { height: 40px; filter: brightness(0) invert(1); margin-bottom: 18px; }
.footer-brand p { color: #ffffff; max-width: 320px; }
.footer h4 { color: #fff; font-size: 1.1rem; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { color: #ffffff; transition: color .18s; }
.footer ul a:hover { color: var(--coral-2); }
.footer-bottom {
  margin-top: 46px; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.9rem; color: #ffffff;
}
.footer-bottom .slogan { font-family: var(--ff-display); color: var(--coral-2); font-weight: 600; }

/* ============================================================
   SCROLL REVEAL
   Content is ALWAYS visible by default (never hidden behind a
   transition that could stall). The entrance is purely additive:
   when JS marks an element ".in" we replay a gentle fade-up via a
   keyframe whose end-state IS the visible base, so if the animation
   is ever throttled the element simply shows normally.
   ============================================================ */
[data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  [data-reveal].in { animation: revealUp .6s cubic-bezier(.2,.7,.3,1) both; }
}
@keyframes revealUp {
  from { transform: translateY(20px); }
  to   { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .float-emoji { animation: none; }
}

/* ============================================================
   BACK TO TOP — appears once the user scrolls into "How It Works"
   ============================================================ */
.to-top {
  position: fixed;
  right: clamp(18px, 3vw, 32px);
  bottom: clamp(18px, 3vw, 32px);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--coral-grad);
  box-shadow: 0 10px 26px rgba(255, 74, 98, .42);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.9);
  transition: opacity .28s ease, transform .28s cubic-bezier(.2,.8,.3,1), visibility .28s;
}
.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.to-top:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 30px rgba(255, 74, 98, .5); }
.to-top:active { transform: translateY(0) scale(.96); }
@media (prefers-reduced-motion: reduce) {
  .to-top { transition: opacity .2s ease, visibility .2s; transform: none; }
  .to-top.show { transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero { min-height: 0; padding-top: clamp(28px, 6vw, 48px); }
  .hero-grid { grid-template-columns: 1fr; justify-items: center; }
  .hero-form { width: 100%; order: -1; }
  .hero-pitch { text-align: center; max-width: 560px; order: 2; margin-top: clamp(28px, 6vw, 44px); }
  .hero-title { justify-content: center; }
  .flip { margin: 0 auto; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-pitch .mini-steps { margin-left: auto; margin-right: auto; max-width: 430px; width: 100%; }
  .hero-pitch .mini-step { justify-content: flex-start; text-align: left; }
  .hero-trust { justify-content: flex-start; max-width: 430px; margin-left: auto; margin-right: auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .intent-grid { grid-template-columns: 1fr 1fr; }
  .safety-grid { grid-template-columns: 1fr; }
  .form-wrap { grid-template-columns: 1fr; }
  .care-intro { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { 
    position: fixed; top: 76px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column; align-items: stretch;
    gap: 0; padding: 10px var(--pad) 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform .3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .nav .nav-cta .btn-desktop { display: none; }
  .steps { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .free-banner { grid-template-columns: 1fr; text-align: center; gap: 22px; }
  .free-banner ul { text-align: left; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .toggle-row { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .why-grid, .intent-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}
