/* ==========================================================================
   Rishta Marriage Bureau — soft blue / rose, hearts everywhere
   ========================================================================== */

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

:root {
  --navy: #0d1b3e;
  --ink: #14234a;
  --muted: #5d6d92;
  --line: rgba(24, 52, 120, .12);
  --blue: #3b74ff;
  --blue-deep: #2249c9;
  --blue-soft: #8fb6ff;
  --sky: #eef4ff;
  --rose: #ff7aa8;
  --rose-soft: #ffe8f0;
  --mint: #2fbf9b;
  --ok: #1f9d7a;
  --danger: #e8516d;
  --fineprint: #7183a8;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow-sm: 0 8px 24px rgba(31, 64, 140, .08);
  --shadow: 0 24px 60px rgba(31, 64, 140, .14);
  --shadow-lg: 0 40px 90px rgba(23, 52, 120, .18);
  --ring: 0 0 0 4px rgba(59, 116, 255, .16);
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-script: 'Great Vibes', 'Segoe Script', cursive;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1100px 620px at 86% -6%, #dbe9ff 0%, rgba(219, 233, 255, 0) 62%),
    radial-gradient(900px 520px at 2% 4%, #ffe6ef 0%, rgba(255, 230, 239, 0) 56%),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 52%, #fbfcff 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; display: block; }
button { font-family: inherit; }

::selection { background: rgba(59, 116, 255, .2); color: var(--navy); }

:focus-visible { outline: 3px solid rgba(59, 116, 255, .5); outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: #fff;
  color: var(--blue-deep);
  padding: 12px 20px;
  border-radius: 0 0 14px 0;
  font-size: .85rem;
  box-shadow: var(--shadow-sm);
}
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 20px; }

/* ---------- floating hearts background ---------- */
.hearts-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hearts-bg span {
  position: absolute;
  bottom: -70px;
  line-height: 1;
  color: rgba(59, 116, 255, .5);
  animation-name: heartFloat;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform, opacity;
}

header, main, footer { position: relative; z-index: 1; }

/* ---------- navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, .92);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 30px rgba(31, 64, 140, .08);
}
.nav-inner { display: flex; align-items: center; gap: 18px; min-height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 15px;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #4c86ff, #7aa8ff 55%, #ffb3cc);
  box-shadow: 0 10px 22px rgba(59, 116, 255, .35);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-head); font-size: 1.35rem; letter-spacing: .01em; color: var(--navy); }
.brand-text small { font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: #8496bb; font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  position: relative;
  padding: 6px 0;
  color: #3b4d75;
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease;
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  height: 2px; width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--rose));
  transition: width .25s ease;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s ease, opacity .25s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #4a83ff, #3b74ff 45%, #2f61e6);
  box-shadow: 0 16px 34px rgba(59, 116, 255, .32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 44px rgba(59, 116, 255, .4); }
.btn-primary:active { transform: none; }
.btn-ghost {
  color: var(--blue-deep);
  background: #fff;
  border: 1.5px solid rgba(59, 116, 255, .26);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { background: #f4f8ff; transform: translateY(-2px); }
.btn-danger {
  color: #fff;
  background: linear-gradient(135deg, #ff708f, #e8516d);
  box-shadow: 0 14px 30px rgba(232, 81, 109, .3);
}
.btn-danger:hover { transform: translateY(-2px); }
.btn-link {
  background: none;
  border: 0;
  padding: 8px 6px;
  color: var(--fineprint);
  font-size: .82rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-link:hover { color: var(--blue-deep); }
.btn-sm { padding: 11px 20px; font-size: .86rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none; }
.btn-spinner {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
}

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 6vw, 82px) 0 clamp(38px, 5vw, 74px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 62px); align-items: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(59, 116, 255, .18);
  background: rgba(255, 255, 255, .85);
  color: #3c5ca8;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .02em;
  box-shadow: var(--shadow-sm);
}
.pill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(47, 191, 155, .16);
  animation: pulseDot 2.4s ease-in-out infinite;
}

h1 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2.35rem, 5.2vw, 4rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--navy);
  margin: 20px 0 18px;
}
h1 em { font-style: italic; color: var(--blue); position: relative; white-space: nowrap; }
h1 em::after {
  content: '';
  position: absolute; left: -2px; right: -2px; bottom: 2px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(59, 116, 255, .2), rgba(255, 122, 168, .32));
  z-index: -1;
}

.lead { margin: 0 0 28px; max-width: 52ch; color: var(--muted); font-size: clamp(1rem, 1.15vw, 1.06rem); }
.lead-sm { color: var(--muted); margin: 0 0 26px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-points {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin: 0; padding: 0;
  list-style: none;
  color: #4a5d85;
  font-size: .85rem;
}

.hero-art { position: relative; min-height: 440px; display: grid; place-items: center; isolation: isolate; }
.blob { position: absolute; border-radius: 50%; filter: blur(42px); z-index: -1; }
.blob-a { width: 330px; height: 330px; top: 10%; right: 3%; background: rgba(59, 116, 255, .3); animation: floatY 9s ease-in-out infinite; }
.blob-b { width: 260px; height: 260px; bottom: 4%; left: 4%; background: rgba(255, 122, 168, .28); animation: floatY 11s ease-in-out infinite reverse; }

.match-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(300px, 84%);
  padding: 14px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.match-a { top: 7%; left: 0; transform: rotate(-6deg); animation: floatY 8s ease-in-out infinite; }
.match-b { bottom: 11%; right: 0; transform: rotate(5deg); animation: floatY 9.5s ease-in-out .6s infinite; }
.match-avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.match-avatar svg { width: 24px; height: 24px; }
.avatar-rose { background: linear-gradient(135deg, #ff9ec1, #ff7098); }
.avatar-blue { background: linear-gradient(135deg, #6fa4ff, #3b74ff); }
.match-meta { display: flex; flex-direction: column; line-height: 1.25; }
.match-meta strong { font-size: .96rem; color: var(--navy); }
.match-meta small { font-size: .72rem; color: #8293b6; }
.match-tag {
  margin-left: auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(47, 191, 155, .12);
  color: var(--ok);
  font-size: .64rem;
  font-weight: 600;
}

.match-heart {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--blue);
  filter: drop-shadow(0 12px 22px rgba(59, 116, 255, .42));
  animation: pulseHeart 3.2s ease-in-out infinite;
}
.match-heart svg { width: 64px; height: 64px; }
.match-heart em { font-family: var(--font-script); font-style: normal; font-size: 2.05rem; line-height: 1; color: #2d5cd8; }

.badge-float {
  position: absolute;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #42558a;
  font-size: .74rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.badge-top { top: -2px; right: -4px; animation: floatY 7s ease-in-out infinite; }
.badge-bottom { bottom: 0; left: -2px; animation: floatY 8.5s ease-in-out .8s infinite; }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  padding: 14px 0;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, .62);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 26px;
  width: max-content;
  color: #5c6f96;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  animation: marquee 34s linear infinite;
}
.marquee-track i { font-style: normal; font-size: .9rem; }

/* ---------- sections ---------- */
.section { padding: clamp(54px, 7.5vw, 104px) 0; }
.section-head { max-width: 660px; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.3vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--navy);
  margin: 0 0 14px;
}
.section-head p { margin: 0; color: var(--muted); }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .84);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
  transition: transform .3s ease, box-shadow .3s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-num {
  position: absolute; top: 14px; right: 20px;
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(59, 116, 255, .13);
}
.step-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #eef4ff, #ffe9f1);
  font-size: 1.35rem;
}
.step h3 { margin: 0 0 8px; font-family: var(--font-body); font-size: 1.1rem; font-weight: 600; color: var(--navy); }
.step p { margin: 0 0 16px; color: var(--muted); font-size: .9rem; }
.step-time {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(59, 116, 255, .1);
  color: var(--blue-deep);
  font-size: .7rem;
  font-weight: 600;
}

/* ---------- why rishta ---------- */
.why-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(24px, 4vw, 54px); align-items: center; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.why-list li { display: flex; align-items: flex-start; gap: 14px; }
.why-ico {
  flex: none;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 1.1rem;
}
.why-list strong { display: block; margin-bottom: 2px; color: var(--navy); font-size: .96rem; }
.why-list p { margin: 0; color: var(--muted); font-size: .87rem; }

.why-card {
  position: relative;
  overflow: hidden;
  padding: 38px 32px;
  border-radius: 32px;
  color: #fff;
  background: linear-gradient(160deg, #1c3f9e 0%, #2d63e0 46%, #4a83ff 100%);
  box-shadow: var(--shadow-lg);
}
.why-card::before {
  content: '';
  position: absolute; top: -70px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
}
.why-card::after {
  content: '';
  position: absolute; bottom: -60px; left: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255, 122, 168, .38);
  filter: blur(6px);
}
.why-card > * { position: relative; z-index: 1; }
.why-card-heart { font-size: 1.5rem; }
.why-card h3 {
  margin: 16px 0 12px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.1vw, 1.65rem);
  line-height: 1.38;
}
.why-card p { margin: 0 0 22px; color: rgba(255, 255, 255, .78); font-size: .87rem; }
.why-card-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  padding: 16px 0 22px;
  margin-bottom: 22px;
  border-top: 1px solid rgba(255, 255, 255, .2);
}
.why-card-stats div { text-align: center; }
.why-card-stats strong { display: block; font-family: var(--font-head); font-size: 1.35rem; }
.why-card-stats small { font-size: .66rem; letter-spacing: .04em; color: rgba(255, 255, 255, .68); }
.why-card .btn { background: #fff; color: #23478f; box-shadow: 0 14px 30px rgba(9, 24, 60, .24); }
.why-card .btn:hover { background: #f4f8ff; }

/* ---------- stories ---------- */
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.story {
  position: relative;
  padding: 30px 26px 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.story:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.quote-mark { display: block; margin-bottom: 4px; font-family: var(--font-head); font-size: 3.2rem; line-height: .6; color: rgba(59, 116, 255, .22); }
.story p { margin: 0 0 20px; color: #43567f; font-size: .9rem; }
.story footer { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px dashed var(--line); }
.story-avatar {
  flex: none;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
}
.av-a { background: linear-gradient(135deg, #ff9ec1, #ff7098); }
.av-b { background: linear-gradient(135deg, #7fb3ff, #3b74ff); }
.av-c { background: linear-gradient(135deg, #8fe0c9, #2fbf9b); }
.story footer strong { display: block; color: var(--navy); font-size: .86rem; }
.story footer small { color: #8998b9; font-size: .72rem; }

/* ---------- apply / wizard ---------- */
.apply { position: relative; }
.wizard-wrap { max-width: 780px; margin-inline: auto; }
.wizard {
  padding: clamp(22px, 3.4vw, 40px);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .95);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}
.wizard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 22px;
  margin-bottom: 26px;
  border-bottom: 1px dashed var(--line);
}
.wstep { display: flex; align-items: center; gap: 10px; }
.wstep-dot {
  flex: none;
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid #dfe8fb;
  background: #eef3ff;
  color: #8fa2c8;
  font-size: .8rem;
  font-weight: 600;
  transition: background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.wstep-text { display: flex; flex-direction: column; line-height: 1.2; }
.wstep-text strong { color: #8b9cbd; font-size: .8rem; font-weight: 600; }
.wstep-text small { color: #a9b6d1; font-size: .64rem; }
.wstep.is-active .wstep-dot {
  border-color: transparent;
  background: linear-gradient(135deg, #4a83ff, #3b74ff);
  color: #fff;
  box-shadow: 0 8px 18px rgba(59, 116, 255, .35);
}
.wstep.is-active .wstep-text strong { color: var(--navy); }
.wstep.is-done .wstep-dot {
  border-color: transparent;
  background: linear-gradient(135deg, #54d3b0, #2fbf9b);
  color: #fff;
}
.wstep.is-done .wstep-text strong { color: var(--ok); }

.wpanel { display: none; }
.wpanel.is-active { display: block; animation: fadeUp .45s ease both; }

/* ---------- form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { color: #33456d; font-size: .8rem; font-weight: 600; }
.req { color: var(--rose); }

input[type='text'],
input[type='tel'],
input[type='email'],
textarea,
select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e2eaf9;
  border-radius: 14px;
  background: #fbfdff;
  color: var(--ink);
  font-family: inherit;
  font-size: .94rem;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
input::placeholder, textarea::placeholder { color: #a7b4cd; }
input[type='text']:focus,
input[type='tel']:focus,
input[type='email']:focus,
textarea:focus,
select:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: var(--ring); }
textarea { min-height: 92px; resize: vertical; }

.input-wrap { position: relative; }
.input-wrap input { padding-right: 44px; }
.input-icon { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); font-size: .95rem; opacity: .65; }

.err { display: none; color: var(--danger); font-size: .73rem; line-height: 1.4; }
.field.has-error .err { display: block; }
.field.has-error input[type='text'],
.field.has-error input[type='tel'],
.field.has-error textarea,
.field.has-error .upload { border-color: #f2a3b2; background: #fff8fa; }

/* gender pills */
.gender-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gender-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid #e2eaf9;
  border-radius: 16px;
  background: #fbfdff;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.gender-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.g-emoji { font-size: 1.35rem; line-height: 1; }
.g-text { display: flex; flex-direction: column; line-height: 1.25; }
.g-text strong { color: #2f426b; font-size: .9rem; }
.g-text small { color: #93a2c2; font-size: .7rem; }
.gender-card:hover { border-color: #c3d5f9; background: #fff; }
.gender-card.is-checked,
.gender-card:has(input:checked) {
  border-color: var(--blue);
  background: linear-gradient(135deg, #f2f7ff, #fff);
  box-shadow: 0 10px 24px rgba(59, 116, 255, .13);
}
.gender-card:has(input:focus-visible) { box-shadow: var(--ring); }

/* photo upload */
.upload {
  display: block;
  padding: 22px;
  border: 1.5px dashed #cfdcf5;
  border-radius: 18px;
  background: #fbfdff;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.upload:hover { border-color: var(--blue); background: #f6faff; }
.upload-empty { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.upload-icon { font-size: 1.55rem; }
.upload-empty strong { color: #33456d; font-size: .88rem; }
.upload-empty small { color: #93a2c2; font-size: .72rem; }
.upload-preview {
  display: block;
  position: relative;
  width: 136px; height: 136px;
  margin-inline: auto;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-change {
  position: absolute; inset: auto 0 0;
  padding: 6px;
  background: rgba(13, 27, 62, .74);
  color: #fff;
  font-size: .66rem;
  text-align: center;
}

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { margin-top: 22px; text-align: center; }
.fineprint { margin: 14px 0 0; color: var(--fineprint); font-size: .73rem; }

/* ---------- face verification ---------- */
.verify-head h3 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  color: var(--navy);
}
.verify-head p { margin: 0 0 18px; color: var(--muted); font-size: .89rem; }
.verify-tips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.verify-tips span {
  padding: 6px 12px;
  border-radius: 999px;
  background: #f1f6ff;
  color: #54689b;
  font-size: .7rem;
}

.cam {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 32%, #17305f, #0b1730 72%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), var(--shadow-sm);
}
.cam-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #081226; }
.cam-video[hidden] { display: none; }
.cam-placeholder { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px; text-align: center; }
.cam-ph-icon { font-size: 2rem; }
.cam-placeholder strong { color: #dce8ff; font-size: .92rem; }
.cam-placeholder small { color: #8ba4d4; font-size: .74rem; }

.cam-guide { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.cam-face {
  width: min(210px, 56%);
  aspect-ratio: 3 / 4;
  border: 2.5px dashed rgba(255, 255, 255, .55);
  border-radius: 50% / 42%;
  box-shadow: 0 0 0 9999px rgba(8, 18, 38, .26);
}

.cam-badge {
  position: absolute; top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(9, 20, 44, .62);
  color: #dbe8ff;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .03em;
  backdrop-filter: blur(6px);
}
.cam-badge.is-rec { background: rgba(232, 81, 109, .92); color: #fff; animation: blink 1.4s ease-in-out infinite; }
.cam-badge.is-review { background: rgba(47, 191, 155, .92); color: #fff; }

.cam-count {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-size: clamp(3rem, 10vw, 5rem);
  color: #fff;
  text-shadow: 0 10px 34px rgba(0, 0, 0, .5);
  animation: pop .55s ease;
}
.cam-count[hidden] { display: none; }

.cam-progress {
  position: absolute; left: 16px; right: 16px; bottom: 14px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .24);
  overflow: hidden;
}
.cam-progress[hidden] { display: none; }
.cam-progress span {
  display: block; height: 100%; width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #7fb3ff, #ff9ec1);
  transition: width .2s linear;
}

.cam-hint { min-height: 20px; margin: 12px 0 16px; color: var(--fineprint); font-size: .78rem; text-align: center; }
.cam-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.file-alt { display: block; margin: 16px 0 4px; text-align: center; color: var(--blue); font-size: .76rem; cursor: pointer; }
.file-alt span { text-decoration: underline; text-underline-offset: 3px; }

.verify-actions { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 18px; }
.verify-actions .btn-block { max-width: 420px; }

/* ---------- success ---------- */
.done { padding: 8px 4px 4px; text-align: center; }
.done-heart {
  display: inline-grid; place-items: center;
  width: 92px; height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eaf2ff, #ffe7f0);
  font-size: 2.5rem;
  box-shadow: 0 18px 40px rgba(59, 116, 255, .2);
  animation: pulseHeart 2.8s ease-in-out infinite;
}
.done h3 { margin: 18px 0 8px; font-family: var(--font-head); font-weight: 600; font-size: clamp(1.45rem, 2.8vw, 2rem); color: var(--navy); }
.done p { max-width: 46ch; margin: 0 auto 16px; color: var(--muted); font-size: .9rem; }
.ref-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px;
  border: 1px dashed #c6d8fa;
  border-radius: 999px;
  background: #f2f7ff;
  color: #52689a;
  font-size: .78rem;
}
.ref-chip strong { font-family: var(--font-head); font-size: .96rem; letter-spacing: .07em; color: var(--blue-deep); }
.done-note { margin-top: 14px !important; color: #8a99ba !important; font-size: .76rem !important; }
.done-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }

/* ---------- faq ---------- */
.faq-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.faq-copy p { margin: 0; color: var(--muted); font-size: .9rem; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  padding: 18px 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease;
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  color: var(--navy);
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.25rem; line-height: 1; color: var(--blue); transition: transform .25s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 12px 0 0; color: var(--muted); font-size: .86rem; }

/* ---------- footer ---------- */
.footer {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 6vw, 74px) 0 26px;
  background: linear-gradient(165deg, #0d1b3e, #122a5c 55%, #1b3a7a);
  color: #c6d4ef;
}
.footer::before {
  content: '';
  position: absolute; top: -160px; right: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 116, 255, .35), transparent 66%);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: clamp(24px, 4vw, 60px); position: relative; z-index: 1; }
.brand-light { margin-bottom: 14px; color: #fff; }
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text small { color: #93a8d4; }
.footer-brand p { max-width: 40ch; margin: 0; color: #a9bbe0; font-size: .85rem; }
.footer-hearts { display: flex; gap: 8px; margin-top: 16px; font-size: 1rem; }
.footer-col h4 { margin: 6px 0 14px; color: #fff; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.footer-col a { display: block; margin-bottom: 9px; color: #b3c4e6; font-size: .85rem; text-decoration: none; transition: color .2s ease, transform .2s ease; }
.footer-col a:hover { color: #fff; transform: translateX(2px); }
.footer-note { margin: 14px 0 0; color: #8fa4cd; font-size: .76rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px;
  margin-top: 34px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  position: relative; z-index: 1;
}
.footer-bottom small { color: #93a8d4; font-size: .72rem; }

/* ---------- toasts ---------- */
.toast-wrap {
  position: fixed; left: 50%; bottom: 24px;
  z-index: 200;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: min(92vw, 430px);
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  width: 100%;
  padding: 13px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  background: #fff;
  color: #33456d;
  font-size: .82rem;
  box-shadow: var(--shadow);
  animation: toastIn .35s ease both;
}
.toast.is-out { animation: toastOut .3s ease forwards; }
.toast--ok { border-left-color: var(--mint); }
.toast--err { border-left-color: var(--danger); }
.toast-ico { flex: none; line-height: 1.5; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.16, .84, .34, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- keyframes ---------- */
@keyframes heartFloat {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  12% { opacity: .55; }
  80% { opacity: .5; }
  100% { transform: translateY(-112vh) rotate(26deg); opacity: 0; }
}
@keyframes floatY {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}
@keyframes pulseHeart {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.07); }
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(47, 191, 155, .16); }
  50% { box-shadow: 0 0 0 7px rgba(47, 191, 155, .05); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(12px); } }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 400px; margin-top: 10px; }
  .why-grid, .faq-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 20px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .nav-links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 11px 4px; border-bottom: 1px solid #f1f5ff; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: inline-flex; }
  .steps, .story-grid { grid-template-columns: 1fr; }
  .nav-cta { padding: 10px 16px; font-size: .8rem; }
}

@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .wizard-head { gap: 6px; }
  .wstep-text small { display: none; }
  .wstep-text strong { font-size: .72rem; }
  .wstep-dot { width: 28px; height: 28px; font-size: .72rem; }
  .hero-art { min-height: 360px; }
  .match-card { width: min(268px, 88%); padding: 12px 14px; }
  .badge-top { right: 0; }
}

@media (max-width: 560px) {
  .container { padding-inline: 16px; }
  .wizard { border-radius: 24px; }
  .wizard-head { padding-bottom: 16px; margin-bottom: 20px; }
  .wstep { gap: 7px; }
  .hero-points { gap: 6px 14px; font-size: .78rem; }
  .gender-grid { grid-template-columns: 1fr; }
  .cam { aspect-ratio: 3 / 4; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .ref-chip { font-size: .72rem; padding: 8px 14px; }
  .badge-bottom { left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hearts-bg { display: none; }
}
