:root {
  --bg: #fff6ec;
  --surface: #ffffff;
  --ink: #1f1a2e;
  --muted: #6b6478;
  --line: #efe3d6;
  --coral: #ff7a59;
  --pink: #ff4f9a;
  --purple: #7c5cff;
  --mint: #2fbf8f;
  --radius: 22px;
  --shadow: 0 18px 50px -24px rgba(60, 30, 80, 0.35);
  --display: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.sr-only, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }

/* A/B variants: the inline head script sets data-variant before paint. Without JS, show A. */
html:not([data-variant="b"]) .only-b,
html[data-variant="b"] .only-a { display: none !important; }

.orb {
  display: inline-block;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 38%),
    conic-gradient(from 200deg, var(--coral), var(--pink), var(--purple), var(--coral));
  box-shadow: 0 6px 24px -6px rgba(255, 79, 154, 0.6);
  animation: breathe 4s ease-in-out infinite;
}
.orb-sm { width: 26px; height: 26px; }
.orb-md { width: 44px; height: 44px; }
@keyframes breathe { 50% { transform: scale(1.07); } }
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } html { scroll-behavior: auto; } }

.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 5vw, 56px);
  background: rgba(255, 246, 236, 0.85);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
}
.brand { display: flex; align-items: center; gap: 10px; font: 700 1.2rem var(--display); text-decoration: none; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav nav { display: none; } .nav .button { margin-left: auto; } }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 24px;
  border: 0; border-radius: 999px;
  background: linear-gradient(135deg, var(--coral), var(--pink) 55%, var(--purple));
  color: #fff; font: 700 1rem var(--display); text-decoration: none;
  cursor: pointer; box-shadow: 0 10px 26px -12px rgba(255, 79, 154, 0.9);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(255, 79, 154, 0.9); }
.button:disabled { opacity: 0.6; cursor: progress; transform: none; }
.button.small { padding: 10px 18px; font-size: 0.95rem; }
.button.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.link { background: none; border: 0; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; }

main { padding: 0 clamp(16px, 5vw, 56px); max-width: 1180px; margin: 0 auto; }

.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 64px);
  align-items: center; padding: clamp(36px, 8vw, 96px) 0 clamp(40px, 7vw, 80px);
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 0.9rem;
}
.hl {
  background: linear-gradient(120deg, var(--coral), var(--pink) 60%, var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.2rem; color: #463f55; max-width: 34em; }

.signup { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; margin-top: 8px; }
.signup input[type="email"] {
  flex: 1 1 240px; min-width: 0;
  padding: 15px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font: inherit; color: var(--ink);
}
.signup input[type="email"]:focus { outline: 3px solid rgba(124, 92, 255, 0.25); border-color: var(--purple); }
.form-error { flex-basis: 100%; color: #c2410c; margin: 4px 8px 0; font-size: 0.95rem; }
.micro { font-size: 0.88rem; color: var(--muted); margin-top: 10px; }

.phone {
  background: var(--surface); border-radius: 36px; padding: 18px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  max-width: 400px; justify-self: center; width: 100%;
}
.phone-top { display: flex; align-items: center; gap: 12px; padding: 4px 6px 14px; border-bottom: 1px solid var(--line); }
.phone-top strong { display: block; font-family: var(--display); }
.phone-top .muted { font-size: 0.85rem; }
.chat { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; }
.bubble { margin: 0; padding: 11px 15px; border-radius: 20px; max-width: 86%; font-size: 0.97rem; }
.bubble.them { background: #f4eefb; align-self: flex-start; border-bottom-left-radius: 6px; }
.bubble.me { background: linear-gradient(135deg, #ffe1d6, #ffd3e6); align-self: flex-end; border-bottom-right-radius: 6px; }
.fix {
  align-self: flex-end; max-width: 92%;
  background: #fffaf3; border: 1px dashed #f3c9a8; border-radius: 16px; padding: 10px 14px; font-size: 0.9rem;
}
.fix p { margin: 0 0 4px; }
.fix-title { font-weight: 700; color: var(--coral); }
.fix s { color: #c2410c; }
.fix b { color: #0f8a62; }

.section { padding: clamp(40px, 7vw, 80px) 0; }
.section-lead { color: var(--muted); max-width: 40em; }
.cards { display: grid; gap: 18px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .cards.three, .cards.two { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--muted); margin: 0; }
.card.row { display: flex; gap: 16px; align-items: flex-start; }
.icon { font-size: 1.8rem; display: block; margin-bottom: 10px; }
.card.row .icon { margin: 0; }

.friends { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 20px; }
@media (max-width: 980px) { .friends { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .friends { grid-template-columns: 1fr; } }
.friend { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.friend .flag { font-size: 2rem; }
.friend h3 { margin: 8px 0 6px; }
.friend p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.latino {
  background: linear-gradient(135deg, #2b1f45, #44306b);
  color: #fff; border-radius: 32px; padding: clamp(28px, 6vw, 56px);
  margin: clamp(20px, 4vw, 40px) 0;
}
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; font-size: 1.08rem; }
.checks li { padding-left: 34px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #7ef0c2; font-weight: 800; }

.access { display: flex; justify-content: center; }
.access-card {
  width: 100%; max-width: 640px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 32px;
  padding: clamp(28px, 6vw, 48px); box-shadow: var(--shadow);
}
.access-card .signup { margin: 18px auto 0; }
.questions { text-align: left; display: grid; gap: 18px; margin-top: 10px; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
legend { font-weight: 700; margin-bottom: 8px; width: 100%; }
fieldset label {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: #fffaf3;
}
fieldset label:has(input:checked) { border-color: var(--purple); background: #f1ecff; }
fieldset input { accent-color: var(--purple); }
.actions { display: flex; gap: 16px; align-items: center; }
.place { font-size: 1.3rem; }
.place strong { font-family: var(--display); font-size: 2rem; color: var(--purple); }
.share { display: flex; gap: 8px; max-width: 460px; margin: 16px auto 10px; }
.share input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); font: inherit; background: #fffaf3; }
.share-buttons { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; font-family: var(--display); }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.footer { text-align: center; color: var(--muted); padding: 40px 20px 60px; font-size: 0.95rem; }
.footer p { margin: 4px 0; }

/* Plain pages (privacy, stats) */
.page { max-width: 760px; margin: 0 auto; padding: 40px 20px 80px; }
.page h1 { font-size: 2.4rem; }
.page h2 { font-size: 1.4rem; margin-top: 1.6em; }
table { border-collapse: collapse; width: 100%; margin: 10px 0 24px; background: #fff; border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
th { background: #fbf3ea; }
