:root {
  --coral: #F26D6D;
  --coral-dark: #E15A5A;
  --coral-soft: #F9B8B8;
  --pink-pale: #FCEBEB;
  --cream: #FAF7F2;
  --ink: #1E1E24;
  --ink-soft: #55555E;
  --white: #FFFFFF;
  --radius: 22px;
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 4.8rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 700; }

h1 em { font-style: normal; color: var(--coral); }

.center { text-align: center; }

.eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--coral);
  margin-bottom: 0.9rem;
}
.eyebrow.light { color: var(--coral-soft); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1.2rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand-name { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
  flex: none;
}
.brand-mark.sm { width: 30px; height: 30px; font-size: 0.75rem; }
.brand-mark.xl { width: 74px; height: 74px; font-size: 1.7rem; box-shadow: 0 14px 40px rgba(242,109,109,0.45); }

.nav-links { display: flex; gap: clamp(1rem, 2.5vw, 2rem); }
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--coral); }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-solid {
  background: var(--coral);
  color: var(--white);
  padding: 0.62rem 1.4rem;
  font-size: 0.92rem;
  box-shadow: 0 6px 20px rgba(242,109,109,0.35);
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(242,109,109,0.45); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(6rem, 12vh, 9rem) clamp(1.2rem, 5vw, 3rem) 4rem;
}

.hero-blob {
  position: absolute;
  top: -22%;
  right: -18%;
  width: min(80vw, 900px);
  opacity: 0.14;
  pointer-events: none;
}
.hero-blob svg { width: 100%; height: auto; }

.hero-inner { max-width: 820px; text-align: center; position: relative; }

.lede {
  margin: 1.4rem auto 2.2rem;
  max-width: 620px;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--ink-soft);
}

.store-badges { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.3rem;
  border-radius: 14px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  transition: transform 0.15s;
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge svg { width: 26px; height: 26px; }
.store-badge span { display: flex; flex-direction: column; text-align: left; line-height: 1.15; font-weight: 600; font-size: 1.02rem; }
.store-badge span small { font-size: 0.66rem; font-weight: 400; opacity: 0.75; }
.store-badge.dark { background: var(--white); color: var(--ink); }

.hero-stats {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: clamp(1.6rem, 5vw, 4rem);
  flex-wrap: wrap;
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.5rem; font-weight: 800; color: var(--coral); }
.hero-stats span { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Features ---------- */
.features { padding: clamp(4rem, 10vh, 7rem) clamp(1.2rem, 5vw, 3rem); max-width: 1200px; margin: 0 auto; }

.feature-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.3rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  box-shadow: 0 2px 8px rgba(30,30,36,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(30,30,36,0.09); }

.feature-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  border-radius: 16px;
  background: var(--pink-pale);
  margin-bottom: 1.1rem;
}
.feature-card h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Scroll-scrub video sections ---------- */
.scrub { position: relative; height: 420vh; }

.scrub-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--ink);
}

.scrub-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scrub-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,20,26,0.55) 0%, rgba(20,20,26,0.12) 40%, rgba(20,20,26,0.45) 100%);
}

.scrub-caption {
  position: absolute;
  left: clamp(1.4rem, 7vw, 6rem);
  bottom: clamp(3.4rem, 12vh, 7rem);
  max-width: 560px;
  color: var(--white);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}
.scrub-caption.on { opacity: 1; transform: translateY(0); }
.scrub-caption h2 { text-shadow: 0 2px 24px rgba(0,0,0,0.35); }
.cap-lede { margin-top: 0.9rem; font-size: clamp(0.98rem, 1.5vw, 1.15rem); opacity: 0.92; text-shadow: 0 1px 12px rgba(0,0,0,0.4); }

/* iOS-style notification card */
.notif-card {
  position: absolute;
  top: clamp(4.6rem, 10vh, 6.5rem);
  right: clamp(1.2rem, 5vw, 4rem);
  width: min(360px, calc(100vw - 2.4rem));
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 18px;
  padding: 0.95rem 1.1rem;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(-24px) scale(0.96);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  pointer-events: none;
}
.notif-card.on { opacity: 1; transform: translateY(0) scale(1); }

.notif-app {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}
.notif-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 6px;
  background: var(--coral);
  color: var(--white);
  font-size: 0.55rem;
  font-weight: 800;
}
.notif-mark.big { width: 44px; height: 44px; border-radius: 50%; font-size: 1rem; }
.notif-card strong { display: block; font-size: 0.95rem; }
.notif-card p { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.4; }

.scrub-progress {
  position: absolute;
  right: clamp(1.2rem, 4vw, 2.6rem);
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 120px;
  border-radius: 3px;
  background: rgba(255,255,255,0.25);
  overflow: hidden;
}
.scrub-progress span {
  display: block;
  width: 100%;
  height: 0%;
  border-radius: 3px;
  background: var(--coral);
}

/* ---------- Wi-Fi section ---------- */
.wifi { padding: clamp(4rem, 12vh, 8rem) clamp(1.2rem, 5vw, 3rem); }

.wifi-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.wifi-copy > p:not(.eyebrow) { margin: 1.2rem 0 2rem; color: var(--ink-soft); max-width: 480px; }

.steps { list-style: none; display: flex; flex-direction: column; gap: 1.3rem; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; }
.steps li span {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  font-weight: 700;
}
.steps li strong { display: block; font-size: 1.02rem; }
.steps li div { font-size: 0.92rem; color: var(--ink-soft); }

.wifi-visual { display: grid; place-items: center; }

.phone {
  width: min(300px, 78vw);
  border-radius: 44px;
  background: var(--ink);
  padding: 12px;
  box-shadow: 0 30px 80px rgba(30,30,36,0.25);
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 34%; height: 22px;
  border-radius: 12px;
  background: var(--ink);
  z-index: 2;
}
.phone-screen {
  border-radius: 34px;
  background: linear-gradient(175deg, var(--coral) 0%, var(--coral) 18%, var(--white) 18.1%);
  padding: 3.2rem 1.4rem 1.8rem;
  text-align: center;
  overflow: hidden;
}
.phone-header { display: grid; place-items: center; margin-bottom: 1.2rem; }
.phone-title { font-weight: 800; letter-spacing: 0.04em; font-size: 0.95rem; margin-bottom: 0.5rem; }
.phone-text { font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.qr {
  width: 150px;
  margin: 0 auto 0.9rem;
  padding: 10px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 4px 18px rgba(30,30,36,0.12);
}
.qr svg { display: block; width: 100%; height: auto; }
.phone-hint { font-size: 0.72rem; font-weight: 600; color: var(--coral); }

/* ---------- Duo cards ---------- */
.cards-duo {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 5vw, 3rem) clamp(4rem, 10vh, 7rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.4rem;
}

.duo-card {
  border-radius: calc(var(--radius) + 6px);
  background: var(--white);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: 0 2px 8px rgba(30,30,36,0.05);
}
.duo-card h3 { margin-bottom: 0.8rem; }
.duo-card > p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1.4rem; }

.duo-card.coral { background: var(--coral); color: var(--white); }
.duo-card.coral > p { color: rgba(255,255,255,0.88); }

.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill-list li {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  background: var(--pink-pale);
  color: var(--coral-dark);
}

.bulletin-item {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.6rem;
}
.bulletin-item strong { font-size: 0.95rem; }
.bulletin-item span { font-size: 0.78rem; opacity: 0.85; }

/* ---------- App Store top chart ---------- */
.chart { padding: clamp(4rem, 12vh, 8rem) clamp(1.2rem, 5vw, 3rem); background: var(--pink-pale); }

.chart-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.chart-copy > p:not(.eyebrow) { margin: 1.2rem 0 2rem; color: var(--ink-soft); max-width: 460px; }

.chart-stats { display: flex; gap: clamp(1.4rem, 4vw, 3rem); flex-wrap: wrap; }
.chart-stats div { display: flex; flex-direction: column; }
.chart-stats strong { font-size: 1.6rem; font-weight: 800; color: var(--coral); }
.chart-stats strong .star { font-size: 1.1rem; vertical-align: 0.15em; margin-left: 0.1em; }
.chart-stats span { font-size: 0.85rem; color: var(--ink-soft); }

.chart-card {
  background: var(--white);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem 1.4rem;
  box-shadow: 0 24px 60px rgba(242,109,109,0.22);
  max-width: 440px;
  width: 100%;
  justify-self: center;
}

.chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}
.chart-head strong { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.chart-cat {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--coral);
  background: var(--pink-pale);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

.chart-list { list-style: none; display: flex; flex-direction: column; }
.chart-list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 0.6rem;
  border-radius: 16px;
}
.chart-list li + li { border-top: 1px solid #F1EDE7; }
.chart-list li.is-lh {
  background: linear-gradient(90deg, var(--pink-pale), transparent);
  border: 1px solid var(--coral-soft);
}

.chart-rank { font-weight: 800; font-size: 1.05rem; width: 1.2rem; text-align: center; color: var(--ink-soft); }
.is-lh .chart-rank { color: var(--coral); }

.chart-icon {
  flex: none;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  font-size: 1.4rem;
}
.chart-icon.lh { background: var(--coral); color: var(--white); font-weight: 800; font-size: 1.05rem; box-shadow: 0 6px 16px rgba(242,109,109,0.4); }
.chart-icon.alt1 { background: #EEF2F7; }
.chart-icon.alt2 { background: #F3EFE8; }
.chart-icon.alt3 { background: #EAF3EE; }

.chart-meta { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.chart-meta strong { font-size: 0.98rem; }
.chart-meta > span { font-size: 0.78rem; color: var(--ink-soft); }
.chart-stars { color: var(--coral); font-size: 0.72rem; letter-spacing: 0.08em; }
.chart-stars em { font-style: normal; color: var(--ink-soft); letter-spacing: 0; }
.chart-stars.dim { color: #C9C4BC; }

.chart-get {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--white);
  background: var(--coral);
  padding: 0.35rem 1rem;
  border-radius: 999px;
}
.chart-get.dim { background: #EDE9E2; color: var(--ink-soft); }

/* ---------- Download ---------- */
.download {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  text-align: center;
  padding: clamp(5rem, 14vh, 8rem) clamp(1.2rem, 5vw, 3rem);
}
.download-blob {
  position: absolute;
  left: -25%;
  bottom: -45%;
  width: min(90vw, 800px);
  opacity: 0.25;
  pointer-events: none;
}
.download-blob svg { width: 100%; height: auto; }

.download-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.3rem; }
.download-inner p { color: rgba(255,255,255,0.75); max-width: 460px; }

/* ---------- Footer ---------- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.6rem clamp(1.2rem, 5vw, 3rem);
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer > div { display: flex; align-items: center; gap: 0.55rem; color: var(--white); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .scrub { height: 340vh; }
  .scrub-caption { right: 1.4rem; }
  .wifi-inner { grid-template-columns: 1fr; }
  .chart-inner { grid-template-columns: 1fr; }
  .wifi-visual { order: -1; }
  .hero-stats { gap: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scrub-caption, .notif-card { transition: opacity 0.3s ease; transform: none; }
}
