/* ================================================================
   PAIR72 — WOW LANDING PAGE
   Inspired by Cirus-like scroll storytelling, but RTL + Pair72 palette
================================================================ */

/* Keep all tokens and iPhone frame from style.css. This file only adds/overrides. */

/* ── Utility ─────────────────────────────────────────────────── */
.mobile-only {
  display: none !important;
}

/* ── iPhone device (stronger bezel so it reads as a device) ───── */
.iphone-frame {
  position: relative;
  padding: 14px;
  border-radius: 68px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, .04) 18%, rgba(0, 0, 0, .35) 100%),
    radial-gradient(circle at 30% 20%, rgba(233, 77, 88, .18) 0%, transparent 55%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .10) inset,
    0 40px 120px rgba(0, 0, 0, .65),
    0 0 70px rgba(233, 77, 88, .18);
}

.iphone-body {
  border-radius: 56px;
}

.iphone-glare {
  border-radius: 56px;
}

.iphone-frame::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 62px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .08), transparent 55%);
  pointer-events: none;
  opacity: 0.35;
}

/* ── Floating hearts background (ported from Flutter) ─────────── */
#fhb {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.45; /* overall strength; painter also uses alpha */
}

header {
  z-index: 950;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .25), transparent 55%),
    linear-gradient(135deg, rgba(233, 77, 88, 1) 0%, rgba(45, 27, 105, 1) 100%);
  box-shadow: 0 0 30px rgba(233, 77, 88, .22);
  border: 1px solid rgba(255, 255, 255, .14);
  flex: 0 0 auto;
}

.logo-mark.sm {
  width: 32px;
  height: 32px;
  border-radius: 12px;
}

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

/* ── HERO (typography beats) ─────────────────────────────────── */
#hero-wow {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 110px;
  /* Changed from overflow: hidden to allow blobs to bleed and blend naturally */
  overflow: clip; 
}

/* Added a gradient fade at the bottom to smooth the transition to the next section */
#hero-wow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 25vh;
  background: linear-gradient(to bottom, transparent, var(--navy));
  pointer-events: none;
  z-index: 1;
}

.hero-wow-in {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2; /* Ensure content stays above the bottom gradient fade */
}

.hero-wow-h1 {
  font-size: clamp(52px, 6.3vw, 92px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.h1-stack {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

.h1-w {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35) inset;
}

.h1-w.g {
  background: linear-gradient(135deg, rgba(233, 77, 88, .20) 0%, rgba(45, 27, 105, .25) 100%);
  border-color: rgba(233, 77, 88, .28);
  box-shadow: 0 0 40px rgba(233, 77, 88, .12);
}

.btn-ico {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  opacity: 0.95;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  color: var(--w7);
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .03);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-link:hover {
  color: var(--w);
  border-color: rgba(233, 77, 88, .25);
}

.hero-link-arr {
  display: inline-block;
  transform: translateY(-1px);
  opacity: 0.8;
}

.hero-wow-phone {
  display: flex;
  justify-content: center;
  align-items: center;
}


/* ── PINNED SCROLL STORY ─────────────────────────────────────── */
#journey {
  position: relative;
  z-index: 10;
  padding: 120px 0;
  overflow: clip;
}

.pin-stage {
  position: relative;
  height: 520vh; /* 6 panels × ~1 viewport each */
  margin-top: 40px;
}

.pin-track {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 420px);
  gap: 32px;
  align-items: center;
  padding: 0 60px;
}

.pin-panels {
  position: relative;
  height: 100%;
}

.pin-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s var(--e), transform .55s var(--e);
  pointer-events: none;
}

.pin-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pin-panel-in {
  height: 100%;
  display: flex;
  align-items: center;
}

.pin-inline-phone {
  display: none;
  justify-content: center;
  align-items: center;
}

.pin-inline-phone .iphone-body {
  width: 280px;
  height: 580px;
}

.pin-copy {
  max-width: 680px;
  padding-inline-end: 32px;
}

.pin-copy h3 {
  font-size: clamp(34px, 4.2vw, 60px);
  font-weight: 900;
  letter-spacing: -1.6px;
  line-height: 1.05;
  margin-bottom: 14px;
}

.pin-copy p {
  font-size: 16px;
  font-weight: 500;
  color: var(--w7);
  line-height: 1.85;
  max-width: 560px;
}

.pin-points {
  margin-top: 22px;
  list-style: none;
  display: grid;
  gap: 10px;
  padding: 0;
}

.pin-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, .86);
}

.pin-points li::before {
  content: "✓";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(233, 77, 88, .18);
  border: 1px solid rgba(233, 77, 88, .28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rose-l);
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 2px;
}

.pin-phone {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pin-phone .iphone-body {
  width: 320px;
  height: 670px;
}

.pin-shots {
  position: relative;
  width: 100%;
  height: 100%;
}

.pin-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity .55s var(--e), transform .55s var(--e);
}

.pin-shot.is-active {
  opacity: 1;
  transform: scale(1);
}

/* ── FEATURES grid (simple) ──────────────────────────────────── */
#features-wow {
  position: relative;
  z-index: 10;
  padding: 120px 0;
}

.feat-sections {
  display: grid;
  gap: 22px;
  margin-top: 24px;
}

.feat-square-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 24px;
}

.feat-square {
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 30px;
  padding: 46px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  min-height: auto; /* Changed from 480px */
}

/* ── Facts Carousel ────────────────────────────────────────── */
.facts-sec {
  margin: 40px 0 60px;
  text-align: center;
}

.facts-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fact-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s var(--e), transform .6s var(--e);
  pointer-events: none;
  padding: 0 60px;
}

.fact-item.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.fact-text {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, .85);
  max-width: 48ch;
}

.fact-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .10);
  color: var(--w);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all .3s var(--e);
}

.fact-nav:hover {
  background: rgba(255, 255, 255, .10);
  border-color: var(--rose-l);
}

.fact-nav.prev { right: 0; }
.fact-nav.next { left: 0; }

.fact-nav-ico {
  font-size: 20px;
  font-weight: bold;
}

.fact-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.fact-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  cursor: pointer;
  transition: all .3s var(--e);
}

.fact-dot.is-active {
  width: 20px;
  border-radius: 4px;
  background: var(--rose-l);
}

.feat-square::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(233, 77, 88, .06), transparent 55%);
  opacity: 0;
  transition: opacity .45s var(--e);
  pointer-events: none;
}

.feat-square:hover::before {
  opacity: 1;
}

.feat-sec {
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}

.feat-sec::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(233, 77, 88, .06), transparent 55%);
  opacity: 0;
  transition: opacity .45s var(--e);
  pointer-events: none;
}

.feat-sec:hover::before {
  opacity: 1;
}

.feat-sec-in {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 28px;
  padding: 46px;
}

.feat-sec-in.alt {
  grid-template-columns: .9fr 1.1fr;
}

.feat-sec-in.alt .feat-copy {
  order: 2;
}

.feat-title {
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.05;
  margin-bottom: 10px;
}

.feat-sub {
  color: var(--rose-l);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .6px;
  margin-bottom: 18px;
}

.feat-desc {
  color: var(--w7);
  line-height: 1.9;
  font-size: 15px;
  font-weight: 500;
  max-width: 54ch;
}

.feat-points {
  margin-top: 18px;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}

.feat-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, .90);
  font-weight: 500;
  font-size: 14px;
}

.feat-points li::before {
  content: "✓";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(233, 77, 88, .18);
  border: 1px solid rgba(233, 77, 88, .28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rose-l);
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 2px;
}

.feat-phone {
  display: flex;
  justify-content: center;
}

.feat-phone .iphone-body {
  width: 320px;
  height: 670px;
}

/* ── Motion preferences ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  #fhb {
    display: none;
  }

  .pin-panel,
  .pin-shot,
  .feat-sec,
  .hero-anim,
  .reveal {
    transition: none !important;
    animation: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — full spectrum from 320px to 1440px+
══════════════════════════════════════════════════════════════ */

/* ── Large Tablet / Small Laptop (≤1100px) ───────────────────── */
@media (max-width: 1100px) {
  /* Hero: stack vertically — but keep TEXT first (order-0) and phone below */
  #hero-wow {
    padding-top: 100px;
    padding-bottom: 80px;
    min-height: auto;
  }

  .hero-wow-in {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Phone goes BELOW the text at all collapsed breakpoints */
  .hero-wow-phone {
    order: 1;
    margin-bottom: 0;
  }

  /* Shrink hero phone so it doesn't overwhelm the layout */
  .hero-wow-phone .iphone-body {
    width: 280px;
    height: 580px;
  }

  /* Hide floating chips at this size — they extend outside column */
  .hero-wow-phone .chip {
    display: none;
  }

  /* Feature sections: stack copy above phone */
  .feat-sec-in,
  .feat-sec-in.alt {
    grid-template-columns: 1fr;
    padding: 36px 28px;
    gap: 24px;
  }

  .feat-sec-in.alt .feat-copy {
    order: 0;
  }

  .feat-phone .iphone-body {
    width: 280px;
    height: 580px;
  }

  /* Pinned journey section */
  .pin-track {
    grid-template-columns: 1fr;
    padding: 0 32px;
  }

  .pin-phone {
    display: none;
  }

  .pin-copy {
    padding-inline-end: 0;
  }

  .pin-panel-in {
    padding-top: 110px;
    padding-bottom: 70px;
    flex-direction: column;
    align-items: flex-start;
  }

  .pin-inline-phone {
    width: 100%;
    margin-top: 22px;
    display: flex;
    justify-content: center;
  }
}

/* ── Tablet Portrait (≤900px) ────────────────────────────────── */
@media (max-width: 900px) {
  .hero-wow-phone .iphone-body {
    width: 260px;
    height: 540px;
  }

  .hero-wow-h1 {
    font-size: clamp(42px, 7vw, 72px);
  }

  .feat-phone .iphone-body {
    width: 260px;
    height: 540px;
  }

  .feat-sec-in,
  .feat-sec-in.alt {
    padding: 30px 22px;
  }
}

/* ── Mobile Landscape / Large Phone (≤700px) ─────────────────── */
@media (max-width: 700px) {
  #hero-wow {
    padding-top: 80px;
    padding-bottom: 60px;
  }

  .hero-wow-in {
    gap: 32px;
  }

  .hero-wow-phone .iphone-frame {
    padding: 10px;
  }

  .hero-wow-phone .iphone-body {
    width: 230px;
    height: 470px;
  }

  .feat-phone .iphone-body {
    width: 240px;
    height: 500px;
  }

  .feat-square-grid {
    grid-template-columns: 1fr;
  }

  .feat-square {
    padding: 30px 24px;
  }

  .feat-sec-in,
  .feat-sec-in.alt {
    padding: 28px 20px;
    gap: 20px;
  }

  .pin-stage {
    height: 560vh;
  }

  .mobile-only {
    display: block !important;
  }

  .facts-carousel { padding: 0 10px; }
  .fact-item { padding: 0 40px; }
  .fact-text { font-size: 16px; }
  .fact-nav { width: 34px; height: 34px; }
}

/* ── Standard Phone (≤480px) ─────────────────────────────────── */
@media (max-width: 480px) {
  #hero-wow {
    padding-top: 74px;
  }

  .hero-wow-phone .iphone-body {
    width: 210px;
    height: 435px;
  }

  .hero-wow-h1 {
    font-size: clamp(34px, 10vw, 52px);
    letter-spacing: -1px;
  }

  .h1-stack {
    gap: 8px;
    margin-top: 8px;
  }

  .feat-phone .iphone-body {
    width: 210px;
    height: 440px;
  }

  .feat-title {
    font-size: clamp(22px, 6vw, 34px);
  }

  .feat-sec-in,
  .feat-sec-in.alt {
    padding: 24px 16px;
  }

  .fact-item { padding: 0 30px; }
}

/* ── Small Phone (≤380px) ─────────────────────────────────────── */
@media (max-width: 380px) {
  .hero-wow-phone .iphone-body {
    width: 190px;
    height: 395px;
  }

  .hero-wow-h1 {
    font-size: clamp(30px, 9vw, 44px);
  }

  .feat-phone .iphone-body {
    width: 190px;
    height: 400px;
  }

  .hero-sub {
    font-size: 15px;
  }
}

@keyframes dot {
  0%, 100% { transform: scale(0.9); opacity: 0.45; }
  50% { transform: scale(1.35); opacity: 1; }
}

