/* ============================================================
   landing.css — "Love Revealed" landing (screen 01)
   Warm cream/ruby/blush theme. Scoped to the landing only so the
   rest of the flow (dark theme) is untouched.
   ============================================================ */

:root {
  --love-bg:        #FFF8F4;
  --love-surface:   rgba(255, 249, 246, 0.92);
  --love-wine:      #98132E;
  --love-wine-dark: #68101F;
  --love-red:       #BD1536;
  --love-rose:      #EF7485;
  --love-blush:     #F8D6D4;
  --love-peach:     #F4C1A7;
  --love-gold:      #E3B866;
  --love-gold-light:#F6D895;
  --love-text:      #43171F;
  --love-text-muted:#705158;
  --love-white:     #FFFAF6;
  --love-border:    rgba(128, 52, 61, 0.13);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  min-height: 100dvh;
  background: var(--love-bg);
  color: var(--love-text);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Warm background gradient + centre bloom */
body.lr-body {
  position: relative;
  background:
    radial-gradient(120% 70% at 50% 40%, #FFF1EC 0%, rgba(255,241,236,0) 60%),
    radial-gradient(90% 55% at 50% 46%, rgba(248,214,212,0.55) 0%, rgba(248,214,212,0) 62%),
    linear-gradient(180deg, #FFF4EF 0%, #FDEDE7 45%, #FBE6E1 100%);
  background-attachment: fixed;
}

/* ── Decorative layers ── */
.lr-glow {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(60% 34% at 50% 50%, rgba(239,116,133,0.20) 0%, rgba(239,116,133,0) 65%);
}
/* Soft silk texture in the BACKGROUND behind the heart (fills the empty area) */
.lr-silk-bg {
  position: fixed; left: 50%; top: 24%; transform: translateX(-50%);
  width: 170%; height: 60%; z-index: 0; pointer-events: none;
  background: url("assets/landing/silk-waves.webp") center center / cover no-repeat;
  opacity: 0.14; filter: blur(6px) saturate(105%);
  -webkit-mask-image: radial-gradient(125% 100% at 50% 50%, #000 0%, transparent 55%);
  mask-image: radial-gradient(125% 100% at 50% 50%, #000 0%, transparent 55%);
}

/* Living background blooms — slow drifting warm light spread across the page */
.lr-bloom { position: fixed; z-index: 1; pointer-events: none; border-radius: 50%; filter: blur(48px); }
.lr-bloom--1 {
  width: 360px; height: 360px; top: 8%; left: -16%;
  background: radial-gradient(circle, rgba(239,116,133,0.34) 0%, rgba(239,116,133,0) 70%);
  animation: bloom-a 15s ease-in-out infinite alternate;
}
.lr-bloom--2 {
  width: 320px; height: 320px; top: 44%; right: -18%;
  background: radial-gradient(circle, rgba(227,184,102,0.28) 0%, rgba(227,184,102,0) 70%);
  animation: bloom-b 19s ease-in-out infinite alternate;
}
.lr-bloom--3 {
  width: 300px; height: 300px; top: 30%; left: 38%;
  background: radial-gradient(circle, rgba(244,193,167,0.24) 0%, rgba(244,193,167,0) 70%);
  animation: bloom-a 22s ease-in-out infinite alternate-reverse;
}
@keyframes bloom-a { from { transform: translate(0,0); opacity:.55; } to { transform: translate(34px,26px); opacity:.9; } }
@keyframes bloom-b { from { transform: translate(0,0); opacity:.5; } to { transform: translate(-28px,-32px); opacity:.85; } }
.lr-silk {
  /* Full-width frosted silk band, height scales with viewport so its top
     reliably meets the heart on any screen height. */
  position: fixed; left: 0; right: 0; bottom: 0;
  height: 62dvh; z-index: 2; pointer-events: none;
  background: url("assets/landing/silk-waves.webp") center bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
}
/* ── Freely floating petals ── */
.lr-float { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.fp { position: absolute; will-change: transform; }

/* three seamless-looping organic drift paths (start == end) */
@keyframes floatA {
  0%   { transform: translate(0,0) rotate(var(--r,0deg)); }
  33%  { transform: translate(12px,-18px) rotate(calc(var(--r,0deg) + 20deg)); }
  66%  { transform: translate(-9px,-30px) rotate(calc(var(--r,0deg) - 12deg)); }
  100% { transform: translate(0,0) rotate(var(--r,0deg)); }
}
@keyframes floatB {
  0%   { transform: translate(0,0) rotate(var(--r,0deg)); }
  30%  { transform: translate(-13px,-14px) rotate(calc(var(--r,0deg) - 18deg)); }
  62%  { transform: translate(9px,-26px) rotate(calc(var(--r,0deg) + 16deg)); }
  100% { transform: translate(0,0) rotate(var(--r,0deg)); }
}
@keyframes floatC {
  0%   { transform: translate(0,0) rotate(var(--r,0deg)); }
  50%  { transform: translate(15px,-22px) rotate(calc(var(--r,0deg) + 26deg)); }
  100% { transform: translate(0,0) rotate(var(--r,0deg)); }
}

/* depth planes */
.fp--far { z-index: 1; filter: blur(5px) drop-shadow(0 3px 6px rgba(120,20,40,0.08)); opacity: 0.34; }
.fp--mid { z-index: 8; filter: drop-shadow(0 5px 10px rgba(120,20,40,0.16)); opacity: 0.9; }
.fp--fg  { z-index: 11; filter: blur(4px) drop-shadow(0 10px 16px rgba(120,20,40,0.16)); opacity: 0.78; }

/* placements + individual loops (negative delays desync them → chaotic) */
.fp1 { top: 38%; left: 26%; width: 22px; --r: -18deg; animation: floatC 22s ease-in-out infinite; animation-delay: -3s; }
.fp2 { top: 33%; right: 27%; width: 19px; --r: 24deg; animation: floatA 25s ease-in-out infinite; animation-delay: -11s; }
.fp3 { top: 42%; left: 4%;  width: 40px; --r: -16deg; animation: floatA 16s ease-in-out infinite; animation-delay: -2s; }
.fp4 { top: 60%; left: 9%;  width: 30px; --r: 10deg; animation: floatB 20s ease-in-out infinite; animation-delay: -8s; }
.fp5 { top: 45%; right: 4%; width: 38px; --r: 18deg; animation: floatB 18s ease-in-out infinite; animation-delay: -5s; }
.fp6 { top: 63%; right: 8%; width: 28px; --r: -12deg; animation: floatA 21s ease-in-out infinite; animation-delay: -14s; }
.fp7 { bottom: 14%; left: -5%; width: 100px; --r: 24deg; animation: floatC 17s ease-in-out infinite; animation-delay: -6s; }
.fp8 { top: 34%; right: -4%; width: 84px; --r: -22deg; animation: floatB 19s ease-in-out infinite; animation-delay: -9s; }

/* ── Main column ── */
.lr {
  position: relative; z-index: 5;
  width: 100%; max-width: 430px; margin: 0 auto;
  height: 100dvh; overflow: hidden;
  display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top) + clamp(8px, 1.6dvh, 16px)) 22px calc(env(safe-area-inset-bottom) + clamp(8px, 1.6dvh, 16px));
}
.lr > * { min-width: 0; max-width: 100%; }

/* Header */
.lr-header { display: flex; align-items: center; justify-content: space-between; }
.lr-logo { display: flex; flex-direction: column; line-height: 1; }
.lr-logo__love {
  font-family: 'Allura', cursive; font-size: 34px; color: var(--love-wine);
  display: inline-flex; align-items: center; gap: 4px;
}
.lr-logo__love svg { width: 15px; height: 15px; }
.lr-logo__sub {
  font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 600;
  letter-spacing: 0.42em; color: var(--love-gold); margin-left: 4px; margin-top: -2px;
}
.lr-menu {
  width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto;
  background: var(--love-surface); border: 1px solid var(--love-border);
  box-shadow: 0 6px 16px rgba(120,20,40,0.10);
  display: grid; place-items: center; cursor: pointer; color: var(--love-wine);
}
.lr-menu svg { width: 18px; height: 18px; }

/* Social proof — rating + live online counter */
.lr-social {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px;
  margin-top: clamp(6px, 1.3dvh, 14px);
}
.lr-chip {
  display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: linear-gradient(160deg, rgba(255,255,255,0.5) 0%, rgba(255,244,240,0.3) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 8px 22px rgba(120,20,40,0.10), inset 0 1px 0 rgba(255,255,255,0.7);
}
.lr-chip__stars { display: inline-flex; gap: 1px; }
.lr-chip__stars svg { width: 13px; height: 13px; fill: var(--love-gold); }
.lr-chip__text { display: flex; flex-direction: column; line-height: 1.02; }
.lr-chip__num { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 14px; color: var(--love-wine-dark); }
.lr-chip__sub { font-size: 10px; color: var(--love-text-muted); }
.lr-live__dot {
  width: 9px; height: 9px; border-radius: 50%; background: #3FB763; flex: 0 0 auto;
  box-shadow: 0 0 0 0 rgba(63,183,99,0.55); animation: livedot 1.9s ease-out infinite;
}
@keyframes livedot {
  0%   { box-shadow: 0 0 0 0 rgba(63,183,99,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(63,183,99,0); }
  100% { box-shadow: 0 0 0 0 rgba(63,183,99,0); }
}

/* Headline + subtitle */
.lr-headline {
  font-family: 'Cormorant Garamond', serif; font-weight: 600;
  font-size: clamp(30px, 8.6vw, 46px); line-height: 1.04; color: var(--love-wine-dark);
  text-align: center; margin: clamp(8px, 1.8dvh, 22px) auto 0; max-width: 370px; letter-spacing: 0.01em;
  overflow-wrap: break-word;
}
.lr-headline em { font-style: italic; font-weight: 600; color: var(--love-wine); }
.lr-subtitle {
  font-family: 'Inter', sans-serif; font-weight: 400;
  font-size: 14px; line-height: 1.45; color: var(--love-text-muted);
  text-align: center; margin: clamp(8px, 2.6dvh, 34px) auto 0; max-width: 300px;
}

/* Hero heart */
.lr-hero {
  position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  margin: 4px 0;
}
/* Two-layer pulsing aura behind the heart */
.lr-heart-glow,
.lr-heart-glow::before {
  position: absolute; top: 49%; left: 50%;
  border-radius: 50%; pointer-events: none;
}
.lr-heart-glow {
  transform: translate(-50%, -50%);
  width: clamp(220px, 44dvh, 360px); height: clamp(220px, 44dvh, 360px); z-index: 1;
  background: radial-gradient(circle,
    rgba(189,21,54,0.26) 0%,
    rgba(227,184,102,0.16) 34%,
    rgba(189,21,54,0) 68%);
  filter: blur(14px);
  animation: aura-pulse 3.4s ease-in-out infinite;
  will-change: transform, opacity;
}
/* Inner brighter core that pulses on an offset beat */
.lr-heart-glow::before {
  content: ''; transform: translate(-50%, -50%);
  width: 54%; height: 54%;
  background: radial-gradient(circle, rgba(255,196,150,0.28) 0%, rgba(189,21,54,0) 70%);
  filter: blur(10px);
  animation: aura-core 3.4s ease-in-out infinite;
}
@keyframes aura-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.9);  opacity: 0.55; }
  50%      { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
}
@keyframes aura-core {
  0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.4; }
  50%      { transform: translate(-50%, -50%) scale(1.05); opacity: 0.85; }
}
.lr-heart {
  position: relative; width: auto; max-width: min(80%, 300px); max-height: 100%; height: auto; display: block;
  animation: heart-pulse 4s ease-in-out infinite;
  filter: drop-shadow(0 10px 34px rgba(189,21,54,0.30));
}
@keyframes heart-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.03); } }

/* Twinkling sparkles around the heart */
.lr-sparks { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.spark {
  position: absolute; width: 12px; height: 12px; opacity: 0; transform: scale(.3);
  background: radial-gradient(circle, rgba(255,246,228,0.98) 0%, rgba(255,208,142,0.55) 26%, rgba(255,208,142,0) 60%);
  animation: twinkle 2.6s ease-in-out infinite;
}
.spark::before, .spark::after { content: ''; position: absolute; }
.spark::before { left: 50%; top: -5px; width: 1.6px; height: calc(100% + 10px); transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(255,236,192,0.95), transparent); }
.spark::after  { top: 50%; left: -5px; height: 1.6px; width: calc(100% + 10px); transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, rgba(255,236,192,0.95), transparent); }
@keyframes twinkle { 0%,100% { opacity: 0; transform: scale(.25); } 50% { opacity: 1; transform: scale(1); } }
.s1  { top: 33%; left: 30%; animation-delay: 0s; }
.s2  { top: 29%; left: 60%; width: 9px;  animation-delay: 1.3s; }
.s3  { top: 45%; left: 21%; width: 10px; animation-delay: .7s; }
.s4  { top: 52%; left: 75%; animation-delay: 1.9s; }
.s5  { top: 64%; left: 33%; width: 9px;  animation-delay: .4s; }
.s6  { top: 60%; left: 65%; width: 8px;  animation-delay: 2.2s; }
.s7  { top: 39%; left: 71%; width: 11px; animation-delay: 1.1s; }
.s8  { top: 71%; left: 50%; width: 9px;  animation-delay: 1.6s; }
.s9  { top: 43%; left: 47%; width: 15px; animation-delay: .9s; }
.s10 { top: 56%; left: 43%; width: 8px;  animation-delay: 2.5s; }
.s11 { top: 35%; left: 45%; width: 10px; animation-delay: 2s; }
.s12 { top: 67%; left: 26%; width: 9px;  animation-delay: .2s; }

.lr-heart-text {
  position: absolute; top: 45.5%; left: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  color: var(--love-white); text-shadow: 0 2px 14px rgba(90,10,25,0.55);
  pointer-events: none;
}
.lr-pct { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: clamp(34px, 6.2dvh, 52px); line-height: 1; }
.lr-pct i { font-style: normal; font-size: clamp(20px, 3.6dvh, 30px); font-weight: 600; }
.lr-compat { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.28em; margin-top: 2px; }

/* Test duration caption (under the heart) */
.lr-timer {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 0 auto clamp(6px, 1.2dvh, 12px); font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500;
  letter-spacing: 0.02em; color: var(--love-text-muted);
}
.lr-timer svg { width: 15px; height: 15px; color: var(--love-wine); flex: 0 0 auto; }

/* CTA */
.lr-cta {
  position: relative; z-index: 6; width: 100%; max-width: 360px; margin: 0 auto 2dvh;
  min-height: 58px; border: none; cursor: pointer;
  border-radius: 16px; padding: 16px 24px;
  background: linear-gradient(180deg, var(--love-red) 0%, var(--love-wine) 55%, var(--love-wine-dark) 100%);
  box-shadow: 0 14px 34px rgba(120,16,32,0.34), inset 0 1px 0 rgba(255,255,255,0.18);
  color: var(--love-white); font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 22px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  outline: 2px solid transparent; overflow: hidden;
}
.lr-cta::after { /* gold hairline */
  content: ''; position: absolute; inset: 3px; border-radius: 13px;
  border: 1px solid rgba(246,216,149,0.55); pointer-events: none;
}
.lr-cta::before { /* shimmer */
  content: ''; position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-18deg); transition: left .6s ease; pointer-events: none;
}
.lr-cta:hover::before, .lr-cta:focus-visible::before { left: 120%; }
.lr-cta:focus-visible { outline-color: var(--love-gold); outline-offset: 3px; }
.lr-cta:active { transform: translateY(1px); }
.lr-cta svg { width: 20px; height: 20px; }

/* Trust panel */
.lr-trust {
  margin-top: clamp(8px, 1.4dvh, 18px); margin-bottom: clamp(8px, 1.3dvh, 16px); display: flex; align-items: stretch; justify-content: space-between;
  /* Glassmorphism — frosted panel over the silk */
  flex: 0 0 auto;
  padding-top: clamp(10px, 1.3dvh, 15px); padding-bottom: clamp(10px, 1.3dvh, 15px);
  background: linear-gradient(160deg, rgba(255,255,255,0.42) 0%, rgba(255,244,240,0.24) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 22px; padding: 15px 6px;
  box-shadow:
    0 12px 34px rgba(120,20,40,0.14),
    inset 0 1px 0 rgba(255,255,255,0.7),
    inset 0 -1px 0 rgba(152,19,46,0.06);
}
.lr-trust__item {
  flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 7px;
  text-align: center; padding: 0 6px;
}
.lr-trust__item + .lr-trust__item { border-left: 1px solid rgba(255,255,255,0.5); }
.lr-trust__icon { width: 26px; height: 26px; color: #C0894F; }
.lr-trust__icon svg { width: 100%; height: 100%; }
.lr-trust__label { font-size: 11px; line-height: 1.3; color: var(--love-text-muted); font-weight: 500; }

/* Legal footer */
.lr-footer {
  margin-top: 4px; padding: 4px 0 2px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Inter', sans-serif; font-size: 12px; color: var(--love-text-muted);
}
.lr-footer a { color: var(--love-text-muted); text-decoration: none; transition: color .15s; }
.lr-footer a:hover, .lr-footer a:focus-visible { color: var(--love-wine); text-decoration: underline; }
.lr-footer__dot { color: var(--love-border); }

@media (max-width: 340px) {
  .lr { padding-left: 16px; padding-right: 16px; }
  .lr-headline { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .lr-heart, .lr-heart-glow, .lr-heart-glow::before, .fp,
  .lr-bloom, .spark, .lr-live__dot { animation: none !important; }
  .spark { opacity: .8; transform: scale(.9); }
  .lr-cta::before { transition: none; }
}
