/* =========================================================
   Habibi — Landing page styles
   Palette taken from the app: logo coral, night-sky navy,
   lantern ember glow.
   ========================================================= */

:root {
  --coral: #F26D66;          /* logo colour */
  --coral-deep: #E0524B;
  --ember: #FF9A62;          /* lantern glow */
  --gold: #FFC46B;
  --night: #14112A;          /* app background */
  --night-2: #231C3D;
  --ink: #1F1A2E;            /* body text */
  --muted: #6D6680;
  --paper: #FFFCFA;          /* page background */
  --blush: #FFF1EE;
  --line: rgba(31, 26, 46, .08);

  --grad: linear-gradient(135deg, var(--coral) 0%, var(--ember) 100%);
  --grad-night: radial-gradient(120% 90% at 70% 10%, #3A2A5C 0%, var(--night) 55%, #0C0A1C 100%);

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;

  --shadow-sm: 0 4px 14px rgba(31, 26, 46, .06);
  --shadow-md: 0 18px 40px -16px rgba(31, 26, 46, .18);
  --shadow-coral: 0 14px 30px -10px rgba(242, 109, 102, .55);

  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --nav-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--coral-deep); }

::selection { background: var(--coral); color: #fff; }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 2000;
  background: var(--night); color: #fff; padding: .6rem 1rem; border-radius: 10px;
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  font-weight: 700;
  border-radius: 999px;
  padding: .7rem 1.35rem;
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn-lg { padding: .95rem 1.75rem; font-size: 1.02rem; }

.btn-brand {
  background: var(--grad);
  color: #fff; border: 0;
  box-shadow: var(--shadow-coral);
  position: relative; overflow: hidden;
  letter-spacing: -.01em;
}
.btn-brand::after {               /* soft sheen on hover */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s ease;
}
.btn-brand:hover::after { transform: translateX(120%); }
.btn-brand:hover, .btn-brand:focus-visible { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 34px -10px rgba(242,109,102,.65); }

.btn-ghost { color: var(--ink); background: transparent; border: 0; }
.btn-ghost:hover { color: var(--coral-deep); }

.btn-outline-soft {
  background: rgba(255, 255, 255, .82);
  color: var(--ink);
  border: 1px solid rgba(31, 26, 46, .08);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(4px);
}
.btn-outline-soft:hover { color: var(--coral-deep); border-color: rgba(242,109,102,.4); transform: translateY(-2px); }

/* ---------- Navbar ---------- */
.site-nav {
  height: var(--nav-h);
  background: rgba(255, 252, 250, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color .3s ease, box-shadow .3s ease, height .3s ease;
  border-bottom: 1px solid rgba(31, 26, 46, .04);
}
.site-nav .container {
  min-height: 100%;
  display: flex; align-items: center;
}
.site-nav.scrolled {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 6px 24px rgba(31, 26, 46, .07);
  height: 66px;
}
.navbar-brand {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-right: 1rem;
}
.brand-logo { height: 30px; width: auto; }
.site-nav .nav-link {
  color: var(--ink); font-weight: 600; font-size: .95rem;
  padding: .5rem .9rem !important; border-radius: 999px; position: relative;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}
.site-nav .nav-link:hover { color: var(--coral-deep); transform: translateY(-1px); }
.site-nav .nav-link.active { color: var(--coral-deep); background: var(--blush); }
.nav-actions { display: flex; gap: .5rem; align-items: center; margin-left: 1rem; }
.nav-actions .btn-brand {
  padding: .7rem 1.1rem;
  min-width: 140px;
}

.nav-toggle {
  border: 0; width: 44px; height: 44px; border-radius: 12px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  background: var(--blush);
}
.nav-toggle:focus { box-shadow: none; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991.98px) {
  .site-nav .navbar-collapse {
    background: rgba(255,255,255,.96); border-radius: var(--r-lg);
    margin-top: .75rem; padding: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(31,26,46,.05);
  }
  .navbar-nav { gap: .15rem; }
  .nav-actions {
    flex-direction: column; align-items: stretch; margin-top: .75rem; margin-left: 0;
    width: 100%;
  }
  .nav-actions .btn-brand {
    width: 100%; min-width: 0;
  }
  .site-nav .nav-link { padding: .75rem 1rem !important; }
}

/* ---------- Decorative blobs ---------- */
.blob { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: 0; }
.blob-a { width: 460px; height: 460px; background: rgba(242,109,102,.22); top: -120px; left: -160px; }
.blob-b { width: 380px; height: 380px; background: rgba(255,196,107,.22); bottom: -80px; left: 35%; }
.blob-c { width: 420px; height: 420px; background: rgba(242,109,102,.35); top: -140px; right: -120px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 3.5rem) 0 4.5rem;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 1; }

.pill {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .85rem; font-weight: 700; color: var(--coral-deep);
  background: var(--blush); border: 1px solid rgba(242,109,102,.2);
  padding: .4rem .9rem; border-radius: 999px;
}
.pill i { font-size: .8rem; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 6.4vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.02em;
  margin: 1.25rem 0 1.25rem;
  color: var(--night);
  background: linear-gradient(100deg, var(--night) 0%, var(--night-2) 45%, var(--coral-deep) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
}
.hero-lead { font-size: 1.1rem; color: var(--muted); max-width: 34rem; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1.25rem; }
.hero-ctas .btn,
.store-row .store-btn { box-shadow: 0 12px 26px -18px rgba(31,26,46,.4); }

.store-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.store-btn {
  display: inline-flex; align-items: center; gap: .65rem;
  background: var(--night); color: #fff; text-decoration: none;
  padding: .55rem 1.1rem .55rem .9rem; border-radius: 14px;
  transition: transform .2s, box-shadow .2s;
}
.store-btn i { font-size: 1.55rem; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.1; font-weight: 700; font-size: 1rem; }
.store-btn small { font-size: .66rem; font-weight: 500; opacity: .75; }
.store-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.store-light { background: #fff; color: var(--night); }
.store-light:hover { color: var(--night); }

.hero-proof { display: flex; align-items: center; gap: .9rem; margin-top: 1.75rem; }
.hero-proof p { margin: 0; font-size: .92rem; color: var(--muted); }
.hero-proof strong { color: var(--ink); }
.hero-proof .bi-star-fill { color: var(--gold); }
.avatar-stack { display: flex; }
.avatar-stack span {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .8rem;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  border: 2px solid var(--paper); margin-left: -10px;
}
.avatar-stack span:first-child { margin-left: 0; }

/* Hero stage: the app's night world set inside the light page */
.hero-stage {
  position: relative;
  height: 600px;
  max-width: 580px;
  margin-inline: auto;
}
.stage-night {
  position: absolute; inset: 40px 10px 20px 40px;
  background: var(--grad-night);
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(20,17,42,.55);
}
.bokeh { position: absolute; border-radius: 50%; background: var(--coral); filter: blur(2px); opacity: .55; }
.b1 { width: 10px; height: 10px; top: 12%; left: 18%; }
.b2 { width: 6px; height: 6px; top: 28%; right: 14%; background: var(--gold); }
.b3 { width: 38px; height: 38px; bottom: 16%; left: 8%; filter: blur(10px); opacity: .35; }
.b4 { width: 8px; height: 8px; bottom: 30%; right: 8%; background: var(--ember); }
.b5 { width: 60px; height: 60px; top: 6%; right: 22%; filter: blur(18px); opacity: .3; }
.b6 { width: 5px; height: 5px; top: 55%; left: 30%; background: var(--gold); }

/* ---------- Phone mockup (pure CSS) ---------- */
.phone {
  --w: 240px;
  width: var(--w);
  aspect-ratio: 9 / 19.5;
  background: #0E0C18;
  border-radius: calc(var(--w) * .16);
  padding: calc(var(--w) * .035);
  box-shadow:
    inset 0 0 0 2px #2E2A3C,
    inset 0 0 0 4px #0E0C18,
    0 30px 60px -20px rgba(12,10,28,.55),
    0 10px 20px -10px rgba(12,10,28,.4);
  position: relative;
}
.phone::before, .phone::after {           /* side buttons */
  content: ""; position: absolute; width: 3px; background: #2E2A3C; border-radius: 2px;
}
.phone::before { left: -3px; top: 22%; height: 9%; }
.phone::after  { right: -3px; top: 26%; height: 14%; }
.phone-screen {
  width: 100%; height: 100%;
  border-radius: calc(var(--w) * .125);
  overflow: hidden; background: var(--night);
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

.hero-stage .phone { position: absolute; }
.phone-front      { --w: 250px; left: 50%; top: 20px; margin-left: -125px; z-index: 3; }
.phone-back-left  { --w: 205px; left: 6px; top: 110px; z-index: 2; transform: rotate(-8deg); }
.phone-back-right { --w: 205px; right: 0; top: 120px; z-index: 2; transform: rotate(8deg); }

/* Floating UI cards */
.float-card {
  position: absolute; z-index: 5;
  display: flex; align-items: center; gap: .7rem;
  padding: .7rem 1rem .7rem .75rem;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  font-size: .85rem; line-height: 1.25;
  text-align: left;
}
.float-card strong { display: block; font-weight: 800; color: var(--ink); }
.float-card small { color: var(--muted); font-size: .74rem; }
.fc-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.fc-match  { top: 4px; left: -14px; animation: bob 6s ease-in-out infinite; }
.fc-compat { bottom: 110px; left: -30px; animation: bob 7s ease-in-out infinite .8s; }
.fc-near   { bottom: 36px; right: -8px; animation: bob 6.5s ease-in-out infinite 1.6s; }

.compat-ring {
  --p: 98;
  width: 42px; height: 42px; border-radius: 50%;
  background: conic-gradient(var(--coral) calc(var(--p) * 1%), var(--blush) 0);
  display: grid; place-items: center;
}
.compat-ring span { width: 32px; height: 32px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: .66rem; font-weight: 800; color: var(--coral-deep); }

.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #2BD47D; box-shadow: 0 0 0 0 rgba(43,212,125,.6); animation: pulse 2s infinite; margin: 0 .3rem; }

/* Motion */
.float      { animation: floatY 6s ease-in-out infinite; }
.float-slow { animation: floatTilt 8s ease-in-out infinite; }
.phone-back-left.float-slow  { --rot: -8deg; }
.phone-back-right.float-slow { --rot: 8deg; }
.delay { animation-delay: -3s; }

@keyframes floatY    { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes floatTilt { 0%,100% { transform: rotate(var(--rot, 0deg)) translateY(0); } 50% { transform: rotate(var(--rot, 0deg)) translateY(-8px); } }
@keyframes bob       { 0%,100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes pulse     { 0% { box-shadow: 0 0 0 0 rgba(43,212,125,.55); } 70% { box-shadow: 0 0 0 10px rgba(43,212,125,0); } 100% { box-shadow: 0 0 0 0 rgba(43,212,125,0); } }

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 2; margin-top: -1rem; }
.stats-card {
  background: #fff; border-radius: var(--r-xl);
  padding: 2.25rem 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.stats-title { font-size: 1rem; font-weight: 700; color: var(--muted); text-align: center; margin-bottom: 1.5rem; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem); line-height: 1; margin: 0;
  color: var(--coral-deep);
}
.stat-label { margin: .4rem 0 0; font-size: .9rem; color: var(--muted); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 1.5rem 0; position: relative; }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto 3.5rem; }
.section-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height: 1.04; letter-spacing: -.015em;
  color: var(--night); margin-bottom: 1rem;
}
.section-sub { color: var(--muted); font-size: 1.08rem; max-width: 36rem; margin: 0 auto; }

/* How it works */
.steps { counter-reset: none; }
.step {
  height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 2rem 1.6rem 1.75rem;
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(242,109,102,.3); }
.step-num {
  position: absolute; top: 1.25rem; right: 1.5rem;
  font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: rgba(242,109,102,.25);
}
.step-icon {
  width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-items: center; font-size: 1.45rem;
  background: var(--blush); color: var(--coral-deep);
  margin-bottom: 1.25rem; transition: background .3s, color .3s;
}
.step:hover .step-icon { background: var(--grad); color: #fff; }
.step h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Showcase */
.showcase { background: linear-gradient(180deg, var(--paper) 0%, var(--blush) 50%, var(--paper) 100%); }
.showcase-carousel { max-width: 1040px; margin: 0 auto; }
.showcase-tabs {
  display: flex; justify-content: center; flex-wrap: nowrap; gap: .25rem;
  overflow-x: auto; scrollbar-width: none;
  margin: 0 auto 3rem; padding: .4rem; width: fit-content; max-width: 100%;
  background: #fff; border-radius: 999px; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.showcase-tabs button {
  border: 0; background: transparent; border-radius: 999px;
  padding: .55rem 1.2rem; font-weight: 700; font-size: .92rem; color: var(--muted);
  transition: background .25s, color .25s;
}
.showcase-tabs button.active { background: var(--night); color: #fff; }
.showcase-tabs button:hover:not(.active) { color: var(--coral-deep); }

.phone-lg { --w: 280px; margin: 0 auto; }
.showcase .carousel-item { padding: 1rem .5rem 3.5rem; }
.badge-soft {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #fff; color: var(--coral-deep); font-weight: 700; font-size: .85rem;
  padding: .35rem .8rem; border-radius: 999px; border: 1px solid rgba(242,109,102,.25);
}
.show-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; margin: 1rem 0; color: var(--night);
}
.show-text { color: var(--muted); font-size: 1.05rem; max-width: 32rem; }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .6rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; }
.check-list i { color: var(--coral); font-size: 1.15rem; line-height: 1.4; }

.showcase-controls { display: flex; justify-content: center; gap: .75rem; margin-top: 1rem; }
.ctrl {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 1.1rem; box-shadow: var(--shadow-sm);
  transition: background .2s, color .2s, transform .2s;
}
.ctrl:hover { background: var(--coral); color: #fff; transform: translateY(-2px); }

/* Features */
.feature {
  height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem; position: relative; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.feature::before {                       /* gradient accent bar */
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature:hover::before { transform: scaleX(1); }
.f-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blush); color: var(--coral-deep); font-size: 1.3rem; margin-bottom: 1.1rem;
}
.feature h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: .45rem; }
.feature p { color: var(--muted); font-size: .94rem; margin: 0; }
.feature-lead { background: var(--night); border-color: var(--night); color: #fff; }
.feature-lead p { color: rgba(255,255,255,.7); }
.feature-lead .f-icon { background: var(--grad); color: #fff; }

/* Real connections */
.connections { padding: 1rem 0 2rem; }
.conn-panel {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(2.5rem, 6vw, 5rem);
  background: var(--night);
  color: #fff;
}
.conn-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 35%;
  filter: saturate(1.1);
}
.conn-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20,17,42,.96) 0%, rgba(20,17,42,.82) 45%, rgba(20,17,42,.35) 100%),
    linear-gradient(0deg, rgba(20,17,42,.6), transparent 50%);
}
.conn-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.3rem, 4.6vw, 3.8rem); line-height: 1.04; margin-bottom: 1.25rem;
}
.conn-text { color: rgba(255,255,255,.75); font-size: 1.08rem; max-width: 32rem; margin-bottom: 2rem; }

.conn-cards { position: relative; height: 320px; }
.mini-profile {
  position: absolute; display: flex; align-items: center; gap: .8rem;
  padding: .7rem 1rem .7rem .7rem; border-radius: 20px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  min-width: 250px;
}
.mini-profile img { width: 58px; height: 58px; border-radius: 16px; object-fit: cover; object-position: top; }
.mini-profile strong { display: block; font-size: 1rem; }
.mini-profile small { color: rgba(255,255,255,.7); }
.mp-heart { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); font-size: .85rem; }
.mp-1 { top: 10px; right: 90px; animation: bob 7s ease-in-out infinite; }
.mp-2 { top: 120px; right: 0; animation: bob 7s ease-in-out infinite 1.2s; }
.match-toast {
  position: absolute; bottom: 20px; right: 60px; max-width: 300px;
  display: flex; gap: .7rem; align-items: flex-start;
  background: #fff; color: var(--ink); padding: .9rem 1.1rem; border-radius: 20px 20px 20px 6px;
  font-size: .9rem; font-weight: 600; box-shadow: 0 20px 40px -10px rgba(0,0,0,.4);
}
.match-toast i { color: var(--coral); font-size: 1.2rem; }

/* Safety */
.safety-note {
  display: flex; gap: .9rem; align-items: center; margin-top: 2rem;
  background: var(--night); color: #fff; padding: 1.1rem 1.25rem; border-radius: var(--r-md);
}
.safety-note i { font-size: 1.6rem; color: var(--ember); }
.safety-note p { margin: 0; font-weight: 600; font-size: .95rem; }
.safe-item {
  height: 100%; display: flex; gap: 1rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem;
  transition: border-color .25s, box-shadow .25s;
}
.safe-item:hover { border-color: rgba(242,109,102,.35); box-shadow: var(--shadow-sm); }
.safe-item > i {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blush); color: var(--coral-deep); font-size: 1.2rem;
}
.safe-item h3 { font-size: 1.02rem; font-weight: 800; margin-bottom: .3rem; }
.safe-item p { color: var(--muted); font-size: .92rem; margin: 0; }
.safe-item.wide { background: var(--blush); border-color: transparent; }
.safe-item.wide > i { background: #fff; }

/* Testimonials */
.stories { background: linear-gradient(180deg, var(--paper), var(--blush)); }
.t-card {
  height: 100%; margin: 0; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--r-lg); padding: 1.75rem;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
}
.t-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stars { color: var(--gold); font-size: .9rem; letter-spacing: 2px; margin-bottom: 1rem; }
.t-card blockquote { font-size: 1rem; line-height: 1.6; margin: 0 0 1.5rem; flex: 1; }
.t-card figcaption { display: flex; align-items: center; gap: .75rem; }
.t-card figcaption strong { display: block; }
.t-card figcaption small { color: var(--muted); font-size: .8rem; }
.t-avatar {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 800;
  background: linear-gradient(135deg, var(--c1), var(--c2));
}
.testimonial-carousel { display: none; }
.testimonial-carousel .carousel-item { padding: 0 .25rem 3rem; }
.testimonial-carousel .carousel-indicators { margin-bottom: 0; }
.testimonial-carousel .carousel-indicators [data-bs-target] {
  width: 8px; height: 8px; border-radius: 50%; background: var(--coral); border: 0; opacity: .3;
}
.testimonial-carousel .carousel-indicators .active { opacity: 1; width: 22px; border-radius: 6px; }

@media (max-width: 767.98px) {
  .testimonial-grid { display: none; }
  .testimonial-carousel { display: block; }
}

/* Download CTA */
.cta-panel {
  position: relative; overflow: hidden;
  background: var(--grad-night);
  border-radius: var(--r-xl);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  color: #fff;
}
.cta-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.02; margin-bottom: 1.25rem;
}
.cta-text { color: rgba(255,255,255,.75); font-size: 1.08rem; max-width: 34rem; margin-bottom: 2rem; }
.qr-wrap { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
.qr {
  width: 96px; height: 96px; background: #fff; border-radius: 14px; padding: 8px; flex: none;
  display: grid; grid-template-columns: repeat(21, 1fr); gap: 0;
}
.qr i { background: var(--night); }
.qr p, .qr-wrap p { margin: 0; color: rgba(255,255,255,.7); font-size: .9rem; }
.qr-wrap strong { display: block; color: #fff; }
.cta-phones { position: relative; height: 480px; }
.cta-phones .phone { position: absolute; }
.phone-cta-back  { --w: 200px; left: 8%; top: 50px; transform: rotate(-7deg); opacity: .9; }
.phone-cta-front { --w: 230px; right: 6%; top: 0; }

/* Footer */
.footer { background: var(--night); color: rgba(255,255,255,.7); padding: 5rem 0 2rem; margin-top: 0; }
.footer-about { max-width: 22rem; font-size: .95rem; }
.f-head { color: #fff; font-size: .95rem; font-weight: 800; margin-bottom: 1rem; }
.f-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.f-links a { color: rgba(255,255,255,.65); text-decoration: none; font-size: .92rem; transition: color .2s; }
.f-links a:hover { color: var(--ember); }
.socials { display: flex; gap: .6rem; margin-top: 1.25rem; }
.socials a {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff; text-decoration: none; transition: background .2s, transform .2s;
}
.socials a:hover { background: var(--coral); transform: translateY(-2px); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 3.5rem; padding-top: 1.5rem; font-size: .88rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom .bi-heart-fill { color: var(--coral); }

/* Back to top */
.back-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1000;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--grad); color: #fff; font-size: 1.15rem; box-shadow: var(--shadow-coral);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility .3s;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { transform: translateY(-3px); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Hero entrance — the one orchestrated page-load moment */
.hero-copy > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero-copy > *:nth-child(5) { animation-delay: .32s; }
.hero-copy > *:nth-child(6) { animation-delay: .4s; }
.hero-stage { animation: rise 1s cubic-bezier(.2,.7,.2,1) .15s both; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .hero-stage { height: 560px; }
  .phone-front { --w: 230px; margin-left: -115px; }
  .phone-back-left, .phone-back-right { --w: 185px; }
}

@media (max-width: 991.98px) {
  .hero { padding-top: calc(var(--nav-h) + 2.5rem); text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-ctas, .store-row, .hero-proof { justify-content: center; }
  .hero-stage { margin-top: 1rem; }
  .fc-compat { left: 0; }
  .fc-match { left: 0; }
  .section { padding: 5rem 0; }
  .showcase .col-md-7 { text-align: center; }
  .showcase .show-text { margin-inline: auto; }
  .check-list { display: inline-grid; text-align: left; }
  .cta-panel { text-align: center; }
  .cta-panel .store-row, .qr-wrap { justify-content: center; }
  .cta-text { margin-inline: auto; }
  .qr-wrap { text-align: left; }
  .cta-phones { max-width: 440px; margin: 0 auto; }
}

@media (max-width: 767.98px) {
  .row.g-5 { --bs-gutter-x: 1.5rem; }
  .showcase .col-md-7 { text-align: center; }
  .phone-lg { --w: 240px; }
}

@media (max-width: 575.98px) {
  .hero-title { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .hero-ctas .btn { width: 100%; }
  .store-btn { flex: 1 1 0; justify-content: center; min-width: 150px; }

  .hero-stage { height: 470px; max-width: 360px; }
  .stage-night { inset: 30px 0 10px 0; border-radius: 30px; }
  .phone-front { --w: 180px; margin-left: -90px; top: 16px; }
  .phone-back-left, .phone-back-right { --w: 128px; top: 96px; }
  .phone-back-left { left: 10px; }
  .phone-back-right { right: 10px; }
  .float-card { font-size: .76rem; padding: .5rem .7rem .5rem .55rem; border-radius: 14px; }
  .float-card small { font-size: .68rem; }
  .fc-icon { width: 30px; height: 30px; border-radius: 10px; font-size: .8rem; }
  .compat-ring { width: 34px; height: 34px; }
  .compat-ring span { width: 26px; height: 26px; font-size: .58rem; }
  .fc-match { top: -8px; left: 0; }
  .fc-compat { bottom: 90px; left: -4px; }
  .fc-near { bottom: 18px; right: 0; }

  .stats-card { padding: 1.75rem 1rem; }
  .section { padding: 4rem 0; }
  .section-head { margin-bottom: 2.5rem; }
  .showcase-tabs button { padding: .5rem .8rem; font-size: .84rem; white-space: nowrap; }
  .phone-lg { --w: 220px; }

  .cta-phones { height: 400px; max-width: 320px; }
  .phone-cta-back { --w: 160px; left: 0; top: 40px; }
  .phone-cta-front { --w: 190px; right: 0; }
  .qr-wrap { flex-direction: column; text-align: center; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
