:root {
  --bg: #fffafb;
  --bg-soft: #f7f1f3;
  --bg-dark: #14080e;
  --text: #1a1014;
  --muted: #5f5158;
  --line: #eedfe4;
  --red: #d3123d;
  --red-deep: #9f0f30;
  --pink: #f43f7a;
  --purple: #6d28d9;
  --cta: linear-gradient(135deg, #e11d48 0%, #c81e3a 72%, #9f1239 100%);
  --grad: linear-gradient(135deg, #e11d48 0%, #f43f7a 78%, #7c3aed 100%);
  --shadow: 0 16px 40px rgba(177, 18, 51, 0.28);
  --radius: 24px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: "Figtree", "Segoe UI", system-ui, sans-serif;
  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --max: 1120px;
  --phone: 9 / 19.5;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, .cta, .choice, summary { cursor: pointer; touch-action: manipulation; }
.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 20;
  background: #fff;
  padding: 8px 12px;
}

.wrap {
  width: min(100% - 32px, 430px);
  margin-inline: auto;
}
@media (min-width: 880px) {
  .wrap { width: min(100% - 48px, var(--max)); }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: -0.03em;
  font-size: 1.2rem;
  margin: 0 0 22px;
}
.brand img { width: 32px; height: 32px; }

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow.light { color: #fecdd3; }

.badge, .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #f3d5de;
  color: var(--red-deep);
  font-size: 0.78rem;
  font-weight: 700;
  max-width: 100%;
  text-wrap: balance;
}
.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(211, 18, 61, 0.16);
}

h1, h2, .mid, .mid-heading {
  font-family: var(--display);
  letter-spacing: -0.038em;
  line-height: 1.12;
  margin: 0 0 14px;
  font-weight: 650;
}
h1 { font-size: clamp(2.05rem, 8vw, 3.55rem); }
h2 { font-size: clamp(1.55rem, 5.8vw, 2.45rem); }
.lead, .sub {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.05rem;
}
.micro {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.cta-wrap {
  position: relative;
  width: min(100%, 420px);
  margin: 4px 0 0;
}
.cta-wrap .cta { width: 100%; }
.free-pill {
  position: absolute;
  top: -11px;
  right: 14px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--red-deep);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(20, 8, 14, 0.22);
}
html[data-theme="dark"] .free-pill {
  background: #fff;
  color: #9f0f30;
}

.social-proof strong {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: inherit;
  margin-right: 6px;
}

html[data-layout="hero"] body {
  background: #14080e;
  color: #fff;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
html[data-layout="hero"] .section,
html[data-layout="hero"] .sticky-cta {
  display: none !important;
}
html[data-layout="hero"] .hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
html[data-layout="hero"] .site-footer {
  color: rgba(255,255,255,0.55);
  padding-top: 8px;
}
html[data-layout="hero"] .hero-copy .brand { margin-bottom: 32px; }
html[data-layout="hero"] .hero-copy .badge { margin-bottom: 20px; }
html[data-layout="hero"] .hero-copy h1 {
  margin-bottom: 24px;
  line-height: 1.2;
}
html[data-layout="hero"] .hero-copy .sub {
  margin-bottom: 36px;
  line-height: 1.7;
}
html[data-layout="hero"] .hero-copy .cta-wrap { margin-top: 12px; }
html[data-layout="hero"] .hero-copy .micro { margin-top: 22px; }
html[data-layout="hero"] .hero-copy .social-proof { margin-top: 28px; }
html[data-layout="hero"] .hero-copy .exclusive { margin-top: 28px; }
html[data-layout="hero"] .cta-wrap { width: 100%; max-width: none; }

.cta {
  --cta-w: 100%;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: var(--cta-w);
  min-height: 56px;
  padding: 14px 20px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--cta);
  box-shadow: var(--shadow);
  font-weight: 700;
  text-decoration: none;
  isolation: isolate;
}
.cta-flame { width: 18px; height: 18px; flex: none; }
.cta:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.32) 48%, transparent 72%);
  transform: translateX(-120%);
  animation: shine 3.8s ease-in-out infinite;
}
.cta:before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: var(--cta);
  opacity: 0.28;
  z-index: -1;
  animation: pulse 2.8s ease-in-out infinite;
}
.cta:active { transform: scale(0.98); }
.cta:focus-visible { outline: 3px solid #fecdd3; outline-offset: 3px; }
a.cta { color: #fff; }
.cta-row { margin-top: 28px; }

@keyframes shine {
  0%, 58% { transform: translateX(-120%); }
  78% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.22; }
  50% { transform: scale(1.03); opacity: 0.42; }
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.count-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.14);
  flex: none;
}
[data-count-label].is-updated { animation: count-in 0.4s ease; }
@keyframes count-in {
  from { opacity: 0.4; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(22px + var(--safe-t)) 0 36px;
}
html[data-layout="hero"] .wrap.hero-grid {
  width: min(100% - 48px, 1180px);
}
html[data-art="phones"] .hero {
  overflow: visible;
}
.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(225, 29, 72, 0.16), transparent 58%),
    radial-gradient(700px 380px at 0% 110%, rgba(109, 40, 217, 0.08), transparent 55%);
}
.hero-atmosphere:after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.45'/></svg>");
}
.hero-grid { display: grid; gap: 32px; }
.exclusive {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--red-deep);
}
.deadline-count {
  display: inline-flex;
  align-items: center;
  min-width: 6.6ch;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(225, 29, 72, 0.16);
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  font-weight: 800;
}

html[data-theme="dark"] .hero {
  color: #fff;
  background: #14080e;
  min-height: 100svh;
}
html[data-theme="dark"] .hero-atmosphere {
  background:
    radial-gradient(1000px 520px at 85% -8%, rgba(225, 29, 72, 0.42), transparent 56%),
    radial-gradient(720px 420px at 8% 108%, rgba(109, 40, 217, 0.2), transparent 52%),
    linear-gradient(180deg, #1a0a12 0%, #14080e 100%);
}
html[data-theme="dark"] .hero .sub,
html[data-theme="dark"] .hero .micro,
html[data-theme="dark"] .hero .social-proof { color: rgba(255,255,255,0.78); }
html[data-theme="dark"] .hero .badge {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
  color: #fecdd3;
}
html[data-theme="dark"] .hero .exclusive { color: #fecdd3; }
html[data-theme="dark"] .deadline-count {
  background: rgba(225, 29, 72, 0.35);
  color: #fff;
}
html[data-theme="dark"] .hero .brand { color: #fff; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: fade-up 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.d0 { animation-delay: 0.04s; }
.d1 { animation-delay: 0.12s; }
.d2 { animation-delay: 0.2s; }
.d3 { animation-delay: 0.28s; }
.d4 { animation-delay: 0.38s; }
.d5 { animation-delay: 0.48s; }
.d6 { animation-delay: 0.56s; }
@keyframes fade-up {
  to { opacity: 1; transform: none; }
}

.phone {
  width: min(270px, 72vw);
  aspect-ratio: var(--phone);
  margin: 0 auto;
  border-radius: 36px;
  padding: 10px;
  background: #0d0d10;
  box-shadow: 0 28px 60px rgba(20, 8, 18, 0.32);
  position: relative;
}
.phone:before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 92px;
  height: 22px;
  border-radius: 20px;
  background: #0d0d10;
  transform: translateX(-50%);
  z-index: 2;
}
.phone-screen {
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  color: #161018;
}
.phone-head, .phone-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 14px 10px;
  font-size: 0.78rem;
  font-weight: 750;
}
.chips, .stories {
  display: flex;
  gap: 8px;
  padding: 0 12px 10px;
  overflow: hidden;
}
.chip, .story {
  flex: none;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f8eef2;
  font-size: 0.68rem;
  font-weight: 650;
}
.story {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
  background: var(--cta);
  color: #fff;
  font-size: 0.62rem;
  text-align: center;
  line-height: 1.1;
}
.post, .person, .circle-row, .chat-row {
  margin: 0 12px 10px;
  padding: 12px;
  border-radius: 16px;
  background: #faf7f8;
  border: 1px solid #f0e4e8;
}
.post-meta, .person-meta { color: var(--muted); font-size: 0.68rem; }
.post p, .person h3 { margin: 6px 0 0; font-size: 0.78rem; }
.person { text-align: center; }
.avatar {
  width: 84px;
  height: 84px;
  margin: 4px auto 8px;
  border-radius: 50%;
  background: var(--cta);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.3rem;
}
.affinity {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fde8ee;
  color: var(--red-deep);
  font-size: 0.66rem;
  font-weight: 750;
}
.connect {
  margin-top: 10px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 9px;
  color: #fff;
  background: var(--cta);
  font-size: 0.78rem;
  font-weight: 750;
}
.hero-art { overflow: hidden; }
html[data-art="phones"] .hero-art { overflow: visible; }
.triple {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 430px;
  padding: 12px 0 24px;
}
.triple .phone { width: min(180px, 42vw); margin: 0 -18px; }
.triple .phone:nth-child(1),
.triple .phone:nth-child(3) { display: none; }
.triple .phone:nth-child(2) {
  width: min(270px, 72vw);
  margin: 0 auto;
  transform: none;
  rotate: 0;
  z-index: 2;
}

.art-block { display: none; }
html[data-art="people"] .art-people,
html[data-art="feed"] .art-feed,
html[data-art="triple"] .art-triple,
html[data-art="phones"] .art-phones { display: block; }
.hero-phones {
  width: 100%;
  max-width: none;
  max-height: min(52svh, 420px);
  height: auto;
  margin: 0 auto;
  display: block;
  object-fit: contain;
  object-position: center;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.section {
  position: relative;
  padding: 64px 0;
}
.section.alt { background: var(--bg-soft); }
.section.dark {
  overflow: hidden;
  isolation: isolate;
  background: #14080e;
  color: #fff;
}
.section.dark .sub { color: rgba(255,255,255,0.76); }
.section.dark .mid { color: #fff; }

.cards { display: grid; gap: 14px; }
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 20px 22px;
  box-shadow: 0 10px 28px rgba(20, 8, 18, 0.04);
}
.card:before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 99px;
  background: var(--red);
}
.card-index {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--red);
}
.card h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.mid, .mid-heading {
  text-align: center;
  font-size: clamp(1.35rem, 5vw, 2rem);
  line-height: 1.25;
}

.pillars { display: grid; gap: 14px; }
.pillar {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 12px;
  border: 1px solid var(--line);
}
.mini-phone {
  width: 92px;
  height: 120px;
  border-radius: 18px;
  background: #111;
  padding: 6px;
}
.mini-phone span {
  display: block;
  height: 100%;
  border-radius: 14px;
  background: #fff8f9;
  padding: 10px 8px;
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--red-deep);
}

.carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 12px;
  -webkit-overflow-scrolling: touch;
}
.carousel::-webkit-scrollbar { display: none; }
.slide {
  flex: none;
  width: min(250px, 78vw);
  scroll-snap-align: start;
}
.slide .phone { width: 100%; }

.why { display: grid; gap: 10px; margin: 0; padding: 0; }
.why li {
  list-style: none;
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px 14px 18px;
  border: 1px solid var(--line);
  font-weight: 650;
  border-left: 3px solid var(--red);
}

.faq { display: grid; gap: 8px; }
details.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 16px;
}
details.faq-item summary {
  font-weight: 750;
  padding: 12px 0;
}
details.faq-item p { margin: 0 0 14px; color: var(--muted); }

.final { text-align: center; }
.final .cta { max-width: 420px; }

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 10px 16px calc(10px + var(--safe-b));
  background: rgba(255,250,251,0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.24s ease;
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .cta { width: 100%; }
body.has-sticky-cta { padding-bottom: calc(84px + var(--safe-b)); }

.site-footer {
  padding: 28px 0 calc(28px + var(--safe-b));
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}
.site-footer nav { display: flex; justify-content: center; gap: 16px; margin-bottom: 8px; }

.legal {
  padding: calc(24px + var(--safe-t)) 0 64px;
}
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.2rem; margin-top: 28px; }
.legal p, .legal li { color: var(--muted); }

.quiz-page {
  min-height: 100dvh;
  background: linear-gradient(#fffafb, #f7f1f3 40%, #fffafb);
  padding: calc(16px + var(--safe-t)) 0 calc(24px + var(--safe-b));
}
.progress { margin-bottom: 22px; }
.progress-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: #f1e4e8;
  overflow: hidden;
}
.progress-bar span {
  display: block;
  height: 100%;
  background: var(--cta);
  border-radius: inherit;
}
.quiz-card h1 { font-size: clamp(1.7rem, 6.6vw, 2.4rem); }
.field {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
}
.field input, .field textarea {
  width: 100%;
  border: 1px solid #ead7de;
  border-radius: 16px;
  min-height: 54px;
  padding: 12px 14px;
  background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: 3px solid #fecdd3;
  border-color: var(--red);
}
.error { min-height: 1.1em; color: #be123c; font-size: 0.86rem; margin: 8px 0 0; }
.choices { display: grid; gap: 10px; margin: 8px 0 18px; }
.choices--scroll { max-height: 42vh; overflow: auto; }
.choice, .text-btn {
  width: 100%;
  text-align: left;
  border-radius: 16px;
  border: 1px solid #ead7de;
  background: #fff;
  padding: 16px;
  min-height: 54px;
  font-weight: 650;
}
.choice.is-selected, .choice:active {
  border-color: transparent;
  color: #fff;
  background: var(--cta);
}
.text-btn {
  margin-top: 10px;
  background: transparent;
  border: 0;
  text-align: center;
  color: var(--muted);
}
.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  margin: 8px 0 16px;
  font-size: 0.86rem;
  color: var(--muted);
  align-items: start;
}
.consent input { width: 18px; height: 18px; margin-top: 2px; }
.consent a { color: var(--red-deep); }
.quiz-state { text-align: center; padding-top: 10vh; }
.spinner {
  width: 28px;
  height: 28px;
  margin: 18px auto 0;
  border: 3px solid #f1e4e8;
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.quiz-footer {
  position: sticky;
  bottom: calc(8px + var(--safe-b));
  padding-top: 12px;
  background: linear-gradient(transparent, #fffafb 28%);
}
.quiz-page .cta { width: 100%; }

@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    min-height: 86vh;
  }
  html[data-layout="hero"] .hero-grid {
    grid-template-columns: 42% 56%;
    justify-content: space-between;
    column-gap: 0;
    min-height: 100vh;
    overflow: visible;
  }
  .hero-phones {
    width: 100%;
    max-width: none;
    max-height: min(78vh, 720px);
  }
  html[data-layout="hero"] .hero-phones {
    width: 100%;
    max-height: min(70vh, 640px);
    margin-left: 0;
  }
  .cta { --cta-w: auto; min-width: 300px; }
  .sticky-cta { display: none; }
  body.has-sticky-cta { padding-bottom: 0; }
  .cards, .pillars, .why { grid-template-columns: 1fr 1fr; }
  .triple .phone { width: 210px; display: block; }
  .triple .phone:nth-child(1),
  .triple .phone:nth-child(3) {
    display: block;
    transform: scale(0.84);
    opacity: 0.92;
  }
  .triple .phone:nth-child(1) { rotate: -10deg; z-index: 1; margin: 0 -18px; }
  .triple .phone:nth-child(3) { rotate: 10deg; z-index: 1; margin: 0 -18px; }
  .triple .phone:nth-child(2) { width: 210px; z-index: 2; }
  .wrap.narrow { width: min(100% - 48px, 560px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta:after, .cta:before, [data-count-label].is-updated, .spinner, .reveal { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
