:root {
  --bg: #FBFCF8;          /* Porcelain */
  --surface: #DCEAE3;     /* Mint Cream */
  --text: #00674F;        /* Emerald Depths */
  --muted: #7EB2A4;       /* Muted Teal */
  --border: #BDD7CE;      /* Ash Grey */

  --primary: #3F8D7A;          /* Jungle Teal */
  --primary-hover: #00674F;    /* Emerald Depths */
  --secondary: #7EB2A4;        /* Muted Teal */
  --accent: #BDD7CE;           /* Ash Grey */

  --bg-rgb: 251, 252, 248;
  --surface-rgb: 220, 234, 227;
  --text-rgb: 0, 103, 79;
  --muted-rgb: 126, 178, 164;
  --border-rgb: 189, 215, 206;
  --primary-rgb: 63, 141, 122;
  --secondary-rgb: 126, 178, 164;
  --accent-rgb: 189, 215, 206;

  --shadow: 0 18px 55px rgba(0, 103, 79, 0.14);
  --shadow-soft: 0 10px 30px rgba(0, 103, 79, 0.1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Zain", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: var(--bg);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
.container { width: min(1100px, 92%); margin: 0 auto; }

.page { min-height: 100vh; }

.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 12px 0;
  background: transparent;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  width: min(75vw, 1100px);
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 18px;
  border-radius: 18px;
  border: 0;
  background: rgba(var(--bg-rgb), 0.35);
  box-shadow: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.logo img { height: 36px; width: auto; display: block; }

.header-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, box-shadow 120ms ease, color 120ms ease;
  user-select: none;
}

.btn-sm { padding: 10px 12px; font-size: 13px; }
.btn-lg { padding: 14px 18px; font-size: 15px; }

.btn-solid {
  background: var(--primary);
  color: var(--surface);
  border-color: var(--primary);
  box-shadow: var(--shadow-soft);
}
.btn-solid:hover { transform: translateY(-1px); background: var(--primary-hover); }

.btn-outline {
  background: var(--surface);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-soft);
}
.btn-outline:hover { border-color: var(--primary-hover); background: rgba(var(--primary-rgb), 0.08); transform: translateY(-1px); }

.btn-outline-on-hero {
  border-color: rgba(var(--primary-rgb), 0.35);
  background: rgba(var(--bg-rgb), 0.7);
  color: var(--text);
}
.btn-outline-on-hero:hover { background: rgba(var(--primary-rgb), 0.08); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 84px 0 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg);
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(var(--bg-rgb), 0.72) 0%,
    rgba(var(--bg-rgb), 0.6) 100%
  );
  pointer-events: none;
}

/* Background strips */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
}
.hero-bg-inner {
  height: 100%;
  width: 100%;
  display: flex;
  gap: 16px;
  padding: 0 16px;
}
.strip {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-width: 0;
}

.strip-track {
  display: flex;
  flex-direction: column;
  gap: 16px;
  will-change: transform;
  animation-name: scrollDown;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.strip-track.reverse {
  animation-name: scrollUp;
}

@keyframes scrollDown {
  from { transform: translateY(-50%); }
  to   { transform: translateY(0%); }
}
@keyframes scrollUp {
  from { transform: translateY(0%); }
  to   { transform: translateY(-50%); }
}

/* Profile card */
.profile-card {
  width: 176px;
  height: 288px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  background: rgba(var(--primary-rgb), 0.06);
  box-shadow: var(--shadow);
  position: relative;
}

@media (min-width: 640px) {
  .profile-card { width: 192px; height: 320px; }
}
@media (min-width: 768px) {
  .profile-card { width: 224px; height: 352px; }
}

.profile-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(var(--text-rgb), 0.62),
    rgba(var(--text-rgb), 0.22),
    transparent
  );
}

.profile-meta {
  position: absolute;
  left: 14px;
  bottom: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--bg);
  text-align: left;
  text-shadow: 0 8px 18px rgba(var(--text-rgb), 0.65);
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(var(--bg-rgb), 0.85);
  background: rgba(var(--text-rgb), 0.2);
  flex: 0 0 auto;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.meta-text .name { font-weight: 800; font-size: 14px; }
.meta-text .job { font-size: 11px; opacity: 0.85; margin-top: 2px; }

/* Hero foreground */
.hero-content { position: relative; z-index: 2; max-width: 900px; }

.pill {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  box-shadow: var(--shadow-soft);
  margin-bottom: 18px;
}
.pill-icon {
  color: var(--secondary);
  width: 18px;
  height: 18px;
}
.pill-text { font-size: 14px; font-weight: 700; }

.hero-title {
  margin: 0;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 900;
}
.hero-title-block { display: block; }

.hero-subtitle {
  margin: 18px auto 0;
  max-width: 820px;
  font-size: clamp(16px, 2.4vw, 22px);
  color: var(--primary);
}

.hero-cta {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding: 56px 0;
  background: transparent;
}
.section > .container > h2,
.section > .container > p.muted,
.section > .container > p.section-lead {
  text-align: center;
}
.section-lead {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.6;
}

#about-khalty .about-visuals {
  margin-top: 24px;
}

#about-khalty .about-intents {
  margin-top: 18px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

#about-khalty .intent-prefix {
  font-weight: 800;
  font-size: clamp(14px, 2vw, 18px);
  color: var(--primary-hover);
  display: inline-flex;
  align-items: center;
}

#about-khalty .intent-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  font-weight: 800;
  font-size: clamp(22px, 4vw, 34px);
  color: var(--primary);
}

#about-khalty .intent-chip .icon {
  width: 26px;
  height: 26px;
}

#about-khalty .intent-no {
  color: var(--primary-hover);
}

#about-khalty .intent-no .intent-text {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

#about-khalty .intent-yes {
  color: var(--primary-hover);
}

#about-khalty .card {
  text-align: center;
  background: transparent;
  border: 0;
  box-shadow: none;
}

#about-khalty .card-icon {
  margin-left: auto;
  margin-right: auto;
}

#about-khalty .card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

#about-khalty .card p {
  margin: 0;
  color: var(--muted);
}
.section-alt,
#how-it-works,
#safety,
#faq {
  background: linear-gradient(
    90deg,
    rgba(var(--primary-rgb), 0.06),
    rgba(var(--secondary-rgb), 0.12)
  );
  border-top: 0;
  border-bottom: 0;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 3.8vw, 44px);
  letter-spacing: -0.02em;
}
.muted { color: var(--muted); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-4 { grid-template-columns: 1fr; }
}

.card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

#how-it-works .card {
  border: 0;
  position: relative;
  overflow: visible;
  background: rgba(var(--bg-rgb), 0.92);
  box-shadow: 0 12px 26px rgba(var(--primary-rgb), 0.08);
}

#how-it-works h2 {
  color: var(--primary-hover);
}

#how-it-works p.muted {
  color: var(--primary);
}

#how-it-works .how-steps {
  margin-top: 24px;
  display: grid;
  gap: 22px;
}

#how-it-works .how-step {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: center;
  padding: 26px;
  border-radius: 24px;
  border: 1px solid rgba(var(--border-rgb), 0.9);
  background: rgba(var(--bg-rgb), 0.92);
  box-shadow: 0 16px 36px rgba(var(--primary-rgb), 0.1);
}

#how-it-works .how-step:nth-child(even) .how-step-visual {
  order: -1;
}

#how-it-works .how-step-text {
  max-width: 520px;
}

#how-it-works .how-step-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary-hover);
  font-size: 12px;
  font-weight: 800;
}

#how-it-works .how-step h3 {
  margin: 10px 0 8px;
}

#how-it-works .how-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

#how-it-works .how-step-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

#how-it-works .how-step-visual.split {
  gap: 16px;
  flex-wrap: wrap;
}

#how-it-works .how-step-match .how-step-visual.split {
  position: relative;
  padding: 10px 0;
}

#how-it-works .how-step-match .how-step-visual.split::before {
  content: "";
  position: absolute;
  inset: -12px;
  background:
    radial-gradient(circle at 18% 20%, rgba(var(--primary-rgb), 0.18) 0 6px, transparent 7px),
    radial-gradient(circle at 82% 28%, rgba(var(--secondary-rgb), 0.18) 0 5px, transparent 6px),
    radial-gradient(circle at 36% 76%, rgba(var(--primary-rgb), 0.14) 0 4px, transparent 5px),
    radial-gradient(circle at 70% 72%, rgba(var(--secondary-rgb), 0.22) 0 4px, transparent 5px),
    radial-gradient(circle at 14% 68%, rgba(var(--primary-rgb), 0.16) 0 4px, transparent 5px);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

#how-it-works .how-step-match .match-celebration {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  isolation: isolate;
}

#how-it-works .how-step-match .match-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  opacity: 0.7;
  transform: translate(-50%, -50%);
  z-index: 0;
}

#how-it-works .how-step-match .match-ring-1 {
  width: 160px;
  height: 160px;
  box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0.06);
  animation: ring-pulse 4.2s ease-in-out infinite;
}

#how-it-works .how-step-match .match-ring-2 {
  width: 230px;
  height: 230px;
  border-style: dashed;
  border-color: rgba(var(--secondary-rgb), 0.28);
  animation: ring-spin 12s linear infinite;
}

#how-it-works .how-step-match .match-confetti {
  position: absolute;
  width: 8px;
  height: 16px;
  border-radius: 999px;
  background: rgba(var(--primary-rgb), 0.3);
  box-shadow: 0 6px 12px rgba(var(--primary-rgb), 0.18);
  transform: rotate(var(--confetti-rotate, 0deg));
  animation: confetti-float 3.4s ease-in-out infinite;
  z-index: 1;
}

#how-it-works .how-step-match .confetti-1 {
  top: 14%;
  left: 20%;
  background: rgba(var(--secondary-rgb), 0.35);
  --confetti-rotate: -18deg;
  animation-delay: 0s;
}

#how-it-works .how-step-match .confetti-2 {
  top: 22%;
  right: 18%;
  --confetti-rotate: 22deg;
  animation-delay: 0.4s;
}

#how-it-works .how-step-match .confetti-3 {
  bottom: 22%;
  left: 24%;
  height: 12px;
  --confetti-rotate: -8deg;
  animation-delay: 0.8s;
}

#how-it-works .how-step-match .confetti-4 {
  bottom: 18%;
  right: 20%;
  height: 10px;
  background: rgba(var(--secondary-rgb), 0.3);
  --confetti-rotate: 12deg;
  animation-delay: 1.2s;
}

#how-it-works .how-step-match .confetti-5 {
  top: 40%;
  left: 10%;
  width: 6px;
  height: 12px;
  --confetti-rotate: 30deg;
  animation-delay: 1.6s;
}

#how-it-works .how-step-match .confetti-6 {
  top: 46%;
  right: 10%;
  width: 6px;
  height: 12px;
  background: rgba(var(--secondary-rgb), 0.34);
  --confetti-rotate: -26deg;
  animation-delay: 2s;
}

#how-it-works .how-step-match .match-heart-float {
  position: absolute;
  width: 18px;
  height: 18px;
  fill: currentColor;
  color: rgba(var(--primary-rgb), 0.5);
  transform: rotate(var(--heart-rotate, 0deg)) scale(var(--heart-scale, 1));
  animation: heart-float 3.2s ease-in-out infinite;
  z-index: 2;
}

#how-it-works .how-step-match .heart-1 {
  top: 16%;
  left: 36%;
  --heart-rotate: -12deg;
  --heart-scale: 0.9;
  animation-delay: 0.2s;
}

#how-it-works .how-step-match .heart-2 {
  top: 18%;
  right: 34%;
  color: rgba(var(--secondary-rgb), 0.55);
  --heart-rotate: 10deg;
  --heart-scale: 1;
  animation-delay: 0.9s;
}

#how-it-works .how-step-match .heart-3 {
  bottom: 22%;
  left: 50%;
  --heart-rotate: -6deg;
  --heart-scale: 0.8;
  animation-delay: 1.6s;
}

#how-it-works .how-step-match .match-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(var(--bg-rgb), 0.96);
  border: 1px solid rgba(var(--primary-rgb), 0.35);
  color: var(--primary-hover);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.2);
  animation: match-float 3s ease-in-out infinite;
  z-index: 3;
}

#how-it-works .how-step-match .match-badge::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.24) 0%, transparent 60%);
  z-index: -1;
}

#how-it-works .how-step-match .match-heart {
  width: 14px;
  height: 14px;
  fill: currentColor;
  color: var(--primary);
}

#how-it-works .how-step-match .match-spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.28);
  box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.2);
  animation: spark-pop 2.6s ease-in-out infinite;
  z-index: 2;
}

#how-it-works .how-step-match .match-spark-1 {
  top: 30%;
  left: 26%;
  animation-delay: 0s;
}

#how-it-works .how-step-match .match-spark-2 {
  top: 24%;
  right: 26%;
  background: rgba(var(--secondary-rgb), 0.3);
  animation-delay: 0.6s;
}

#how-it-works .how-step-match .match-spark-3 {
  bottom: 30%;
  left: 30%;
  width: 10px;
  height: 10px;
  animation-delay: 1.2s;
}

#how-it-works .how-step-match .match-spark-4 {
  bottom: 26%;
  right: 30%;
  width: 6px;
  height: 6px;
  background: rgba(var(--primary-rgb), 0.2);
  animation-delay: 1.8s;
}

#how-it-works .how-step-match .phone-mock.phone-match {
  border-color: rgba(var(--primary-rgb), 0.55);
  box-shadow:
    0 20px 38px rgba(var(--primary-rgb), 0.18),
    0 0 0 6px rgba(var(--primary-rgb), 0.08);
  z-index: 1;
}

#how-it-works .how-step-match .phone-mock.phone-match::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 32px;
  background: radial-gradient(circle at 20% 20%, rgba(var(--primary-rgb), 0.25), transparent 60%);
  filter: blur(6px);
  z-index: -1;
}

#how-it-works .how-step-match .phone-mock.phone-match,
#how-it-works .how-step-match .phone-mock.phone-match::after {
  transition: transform 160ms ease, box-shadow 200ms ease;
}

#how-it-works .how-step-match .phone-mock.phone-match:hover {
  transform: translateY(-4px);
  box-shadow:
    0 22px 40px rgba(var(--primary-rgb), 0.2),
    0 0 0 8px rgba(var(--primary-rgb), 0.1);
}

@keyframes match-float {
  0%, 100% { transform: translateY(-6px); }
  50% { transform: translateY(-12px); }
}

@keyframes ring-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.06); opacity: 0.9; }
}

@keyframes ring-spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes spark-pop {
  0%, 100% { transform: scale(0.8); opacity: 0.35; }
  50% { transform: scale(1.15); opacity: 0.9; }
}

@keyframes confetti-float {
  0%, 100% {
    transform: translateY(0) rotate(var(--confetti-rotate, 0deg));
    opacity: 0.7;
  }
  50% {
    transform: translateY(-8px) rotate(calc(var(--confetti-rotate, 0deg) + 10deg));
    opacity: 1;
  }
}

@keyframes heart-float {
  0%, 100% {
    transform: translateY(0) rotate(var(--heart-rotate, 0deg)) scale(var(--heart-scale, 1));
    opacity: 0.6;
  }
  50% {
    transform: translateY(-8px) rotate(calc(var(--heart-rotate, 0deg) + 10deg)) scale(var(--heart-scale, 1));
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  #how-it-works .how-step-match .match-badge,
  #how-it-works .how-step-match .match-ring,
  #how-it-works .how-step-match .match-confetti,
  #how-it-works .how-step-match .match-heart-float,
  #how-it-works .how-step-match .match-spark,
  #how-it-works .how-step-match .phone-mock.phone-match,
  #how-it-works .how-step-match .phone-mock.phone-match::after {
    animation: none;
    transition: none;
  }
}

#how-it-works .phone-mock {
  width: 100%;
  max-width: 240px;
}

#how-it-works .phone-photo {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(var(--border-rgb), 0.6);
  box-shadow: var(--shadow-soft);
  background: #fff;
}

#how-it-works .phone-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

#how-it-works .phone-people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

#how-it-works .phone-people-grid img {
  width: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 1px solid rgba(var(--border-rgb), 0.6);
}

#how-it-works .phone-mock {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(var(--border-rgb), 0.8);
  padding: 10px;
  box-shadow: 0 18px 34px rgba(var(--primary-rgb), 0.16);
}

#how-it-works .phone-mock::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 6px;
  border-radius: 999px;
  background: rgba(var(--text-rgb), 0.12);
}

#how-it-works .phone-screen {
  height: 100%;
  border-radius: 20px;
  background: rgba(var(--bg-rgb), 0.97);
  padding: 16px 12px 12px;
  display: grid;
  gap: 8px;
  align-content: start;
  border: 1px solid rgba(var(--border-rgb), 0.4);
}

#how-it-works .phone-screen.phone-full {
  padding: 0;
  display: block;
  overflow: hidden;
  background: #fff;
}

#how-it-works .phone-screen.phone-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#how-it-works .phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#how-it-works .phone-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary-hover);
}

#how-it-works .phone-chip {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary);
}

#how-it-works .phone-progress {
  height: 6px;
  background: rgba(var(--primary-rgb), 0.14);
  border-radius: 999px;
  overflow: hidden;
}

#how-it-works .phone-progress .progress-fill {
  display: block;
  height: 100%;
  width: 48%;
  background: var(--primary);
}

#how-it-works .phone-field {
  height: 10px;
  border-radius: 8px;
  background: rgba(var(--primary-rgb), 0.12);
}

#how-it-works .phone-field.short {
  width: 70%;
}

#how-it-works .phone-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#how-it-works .phone-button {
  margin-top: 6px;
  text-align: center;
  background: var(--primary);
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 10px;
}

#how-it-works .phone-list {
  display: grid;
  gap: 6px;
}

#how-it-works .phone-like {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(var(--border-rgb), 0.5);
}

#how-it-works .phone-like-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

#how-it-works .phone-like img {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  object-fit: cover;
}

#how-it-works .phone-like-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary-hover);
}

#how-it-works .phone-like-heart {
  width: 12px;
  height: 12px;
  color: var(--primary);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}


@media (max-width: 960px) {
  #how-it-works .how-step {
    grid-template-columns: 1fr;
  }

  #how-it-works .how-step:nth-child(even) .how-step-visual {
    order: 0;
  }
}

@media (max-width: 640px) {
  #how-it-works .how-step-visual {
    width: 100%;
  }

  #how-it-works .how-step-visual.split {
    flex-direction: column;
  }

  #how-it-works .how-step-match .how-step-visual.split {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
  }

  #how-it-works .how-step-match .phone-mock.phone-match {
    max-width: clamp(140px, 38vw, 170px);
  }

  #how-it-works .phone-mock {
    max-width: 100%;
  }

  #how-it-works .how-step-match .match-ring-1 {
    width: 130px;
    height: 130px;
  }

  #how-it-works .how-step-match .match-ring-2 {
    width: 190px;
    height: 190px;
  }

  #how-it-works .how-step-match .match-badge {
    font-size: 10px;
  }

  #how-it-works .how-step-match .match-confetti {
    width: 6px;
    height: 12px;
  }

  #how-it-works .how-step-match .match-heart-float {
    width: 14px;
    height: 14px;
  }
}

#faith-values .grid-3 .card {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
  text-align: center;
}

#faith-values,
#testimonials {
  background: rgba(var(--bg-rgb), 0.6);
}

#testimonials .testimonial-carousel {
  --carousel-gap: 14px;
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

#testimonials .testimonial-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

#testimonials .testimonial-viewport::-webkit-scrollbar {
  display: none;
}

#testimonials .testimonial-track {
  display: flex;
  gap: var(--carousel-gap);
  align-items: stretch;
}

#testimonials .testimonial-card {
  scroll-snap-align: start;
  flex: 0 0 calc((100% - (var(--carousel-gap) * 2)) / 3);
}

#testimonials .testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}

#testimonials .carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  background: rgba(var(--primary-rgb), 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

#testimonials .carousel-dot:hover {
  transform: scale(1.05);
}

#testimonials .carousel-dot:focus-visible {
  outline: 2px solid rgba(var(--primary-rgb), 0.5);
  outline-offset: 3px;
}

#testimonials .carousel-dot[aria-current="true"] {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: scale(1.1);
}

@media (max-width: 1024px) {
  #testimonials .testimonial-card {
    flex-basis: calc((100% - var(--carousel-gap)) / 2);
  }
}

@media (max-width: 680px) {
  #testimonials .testimonial-card {
    flex-basis: 100%;
  }
}

#safety .grid-3 .card {
  border: 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(var(--bg-rgb), 0.92);
}

#safety .grid-3 .card .card-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
}

#safety .grid-3 .card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

#safety .grid-3 .card p {
  margin: 0;
  font-size: 14px;
}

#how-it-works .card::before {
  content: attr(data-step);
  position: absolute;
  top: -16px;
  left: -16px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  border: 2px solid var(--bg);
  box-shadow: var(--shadow-soft);
}

.testimonial-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  width: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #FBFCF8;
  box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.08);
}

.testimonial-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.testimonial-person-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-mark {
  margin-left: auto;
  font-size: 38px;
  line-height: 0.8;
  letter-spacing: -6px;
  color: rgba(var(--primary-rgb), 0.18);
}

.testimonial-avatar {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 8px 18px rgba(var(--text-rgb), 0.2);
  background: #fff;
  flex: 0 0 auto;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonial-name {
  margin: 0;
  font-weight: 800;
  font-size: 18px;
  color: var(--primary-hover);
}

.testimonial-meta {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.testimonial-quote {
  margin: 0;
  font-style: italic;
  font-size: 17px;
  line-height: 1.65;
  color: var(--primary);
  text-align: left;
}

.testimonial-footer {
  margin-top: auto;
}

.testimonial-divider {
  height: 1px;
  background: rgba(var(--primary-rgb), 0.2);
  margin: 0 0 10px;
}

.testimonial-location {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary-hover);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: rgba(var(--primary-rgb), 0.08);
  border: 0;
  color: var(--primary);
}
.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.quote { margin: 0 0 10px; font-weight: 600; }

.faith-guardian,
.safety-callout {
  margin: 24px auto 0;
  display: flex;
  gap: 16px;
  align-items: center;
  width: min(680px, 100%);
  padding: 26px 28px;
}
.faith-guardian .card-icon,
.safety-callout .card-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 0;
  flex: 0 0 auto;
}
.faith-guardian-text h3,
.safety-callout-text h3 {
  margin: 0 0 8px;
}
.faith-guardian-text p,
.safety-callout-text p {
  margin: 0;
}

/* FAQ */
.faq { margin-top: 18px; display: grid; gap: 10px; }
.faq-item {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: var(--shadow-soft);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron {
  margin-left: auto;
  transition: transform 180ms ease;
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item p { color: var(--muted); margin: 10px 0 2px; }

/* CTA */
.cta {
  padding: 76px 0;
  background:
    radial-gradient(900px 500px at 25% 10%, rgba(var(--secondary-rgb), 0.25), transparent 60%),
    radial-gradient(900px 500px at 80% 30%, rgba(var(--accent-rgb), 0.22), transparent 60%),
    linear-gradient(135deg, var(--surface) 0%, var(--bg) 55%, rgba(var(--primary-rgb), 0.06) 100%);
  border-top: 0;
  border-bottom: 0;
}
.cta-inner { text-align: center; max-width: 780px; }
.cta-inner h2 { margin-bottom: 10px; }

/* Contact */
.contact-hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 74px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(880px 520px at 20% 18%, rgba(var(--primary-rgb), 0.12), transparent 55%),
    radial-gradient(980px 520px at 80% 12%, rgba(var(--secondary-rgb), 0.2), transparent 50%),
    linear-gradient(135deg, var(--surface) 0%, var(--bg) 65%, rgba(var(--primary-rgb), 0.04) 100%);
  border-bottom: 0;
}
.contact-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 25%, rgba(var(--accent-rgb), 0.12), transparent 35%);
  pointer-events: none;
}
.contact-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}
.contact-pill { margin-bottom: 10px; }
.contact-hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.06;
}
.contact-lead {
  margin: 0;
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(16px, 2.4vw, 20px);
}
.contact-cta {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.contact-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: rgba(var(--primary-rgb), 0.09);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  color: var(--text);
  border-radius: 12px;
  font-weight: 800;
  font-size: 13px;
}
.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}
.contact-form-card h3 { margin: 0 0 6px; }
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 800;
  color: var(--text);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  font: inherit;
  color: var(--text);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.14);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-weight: 600;
}
.form-checkbox input { margin-top: 4px; }
.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.contact-section h2 { margin-bottom: 6px; }
.contact-subtitle { margin: 0 0 16px; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.contact-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-card h3 { margin: 6px 0 4px; }
.contact-card p { margin: 0; }
.contact-points {
  margin: 4px 0 8px;
  padding-left: 18px;
  color: var(--muted);
}
.contact-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.contact-note { color: var(--muted); font-size: 13px; }
.contact-bottom {
  padding: 38px 0;
  background: rgba(var(--primary-rgb), 0.04);
  border-top: 0;
  border-bottom: 0;
}
.contact-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .contact-hero-inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .header-inner {
    width: min(92vw, 520px);
    padding: 10px 14px;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .header-actions { width: auto; justify-content: flex-start; flex-wrap: nowrap; gap: 8px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-bottom-inner { flex-direction: column; align-items: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
}

/* Footer */
.footer {
  background: var(--primary-hover);
  border-top: 0;
  padding: 22px 0;
}
.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.footer-text p { margin: 2px 0; color: rgba(var(--bg-rgb), 0.85); font-size: 13px; }
.footer-heart {
  color: #d64545;
  margin-left: 4px;
}
