/* ============================================================
   PHRASELY — Waitlist site styles
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--lime); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

:root {
  --wsp: clamp(72px, 9vw, 132px);
  --maxw: 1180px;
  --fred: 'Fredoka', system-ui, sans-serif;
  --chunky: 'Fredoka One', 'Fredoka', sans-serif;
  --nun: 'Nunito', system-ui, sans-serif;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.display {
  font-family: var(--fred); font-weight: 600;
  font-size: clamp(38px, 6vw, 76px); line-height: 1.04;
  letter-spacing: -0.01em; color: var(--ink); margin: 0;
  text-wrap: balance;
}
.eyebrow {
  font-family: var(--nun); font-weight: 800; font-size: 13px;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--purple);
}
.lead {
  font-family: var(--nun); font-weight: 500; font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.6; color: var(--ink-2);
}
.h2 {
  font-family: var(--fred); font-weight: 600; font-size: clamp(30px, 4vw, 50px);
  line-height: 1.1; letter-spacing: -0.01em; margin: 0; text-wrap: balance;
}
.kicker-chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--nun); font-weight: 800; font-size: 13px; letter-spacing: .4px;
  padding: 8px 16px 8px 12px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.28);
}
.kicker-chip .dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 0 4px rgba(213,225,35,.3); flex-shrink: 0;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--nun); font-weight: 800; font-size: 16px; letter-spacing: .4px;
  border-radius: var(--r-pill); border: none; cursor: pointer;
  padding: 16px 30px; transition: transform .12s ease, filter .12s ease;
  white-space: nowrap; text-transform: uppercase; text-decoration: none;
}
.btn:active { transform: translateY(2px); }
.btn-pink { background: var(--pink); color: #fff; box-shadow: 0 4px 0 #c93fd6; }
.btn-pink:hover { filter: brightness(1.04); }
.btn-purple { background: var(--purple); color: #fff; box-shadow: 0 4px 0 var(--purple-press); }
.btn-purple:hover { filter: brightness(1.05); }
.btn-lime { background: var(--lime); color: var(--ink); box-shadow: 0 4px 0 #a9b510; }
.btn-lime:hover { filter: brightness(1.04); }
.btn-ghost { background: transparent; color: var(--purple); border: 2px solid var(--purple); box-shadow: none; }
.btn-ghost:hover { background: rgba(107,105,241,.07); }
.btn-white { background:#fff; color: var(--purple); box-shadow: 0 4px 0 rgba(0,0,0,.12); }
.btn-white:hover { filter: brightness(.97); }
.btn-sm { padding: 11px 20px; font-size: 14px; }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px); background: rgba(244,243,255,.78);
  border-bottom: 1px solid var(--line-2);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.wordmark { font-family: var(--fred); font-weight: 600; font-size: 26px; letter-spacing: .2px; color: var(--purple); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-family: var(--nun); font-weight: 700; font-size: 15px; color: var(--ink-2); }
.nav-links a:hover { color: var(--purple); }
@media (max-width: 820px) { .nav-links .nlk { display: none; } }

/* ---- hero ---- */
.hero {
  position: relative; background: var(--purple); color: #fff; overflow: hidden;
  padding: clamp(40px, 6vw, 70px) 0 0;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  padding-bottom: clamp(40px, 6vw, 80px);
}
.hero h1 {
  font-family: var(--fred); font-weight: 600; color: #fff;
  font-size: clamp(40px, 6.2vw, 78px); line-height: 1.02; letter-spacing: -0.015em;
  margin: 22px 0 0; text-wrap: balance;
}
.hero h1 .hl { color: var(--lime); }
.hero .lead { color: rgba(255,255,255,.86); max-width: 30em; margin-top: 20px; }
.hero-art { position: relative; display: flex; justify-content: center; align-items: flex-end; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
}

/* waitlist form */
.wl-form { display: flex; gap: 10px; margin-top: 30px; max-width: 480px; flex-wrap: wrap; }
.wl-input {
  flex: 1 1 220px; min-width: 0; font-family: var(--nun); font-weight: 600; font-size: 16px;
  padding: 16px 20px; border-radius: var(--r-pill); border: none; outline: none;
  background: #fff; color: var(--ink); box-shadow: 0 4px 0 rgba(0,0,0,.1);
}
.wl-input::placeholder { color: var(--ink-4); }
.wl-input.err { box-shadow: 0 0 0 2px var(--orange), 0 4px 0 rgba(0,0,0,.1); }
.wl-note {
  font-family: var(--nun); font-weight: 600; font-size: 13.5px;
  color: rgba(255,255,255,.74); margin-top: 14px; display: flex; align-items: center; gap: 8px;
}
.wl-err {
  color: #ffd9cf; font-family: var(--nun); font-weight: 700; font-size: 13.5px;
  margin-top: 10px; display: none; flex-basis: 100%;
}

/* proof row */
.proof { display: flex; align-items: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.av-stack { display: flex; }
.av-stack .av-img {
  width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid var(--purple);
  margin-left: -12px; object-fit: cover;
}
.av-stack .av-img:first-child { margin-left: 0; }
.av-bubble {
  width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid var(--purple);
  margin-left: -12px; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--nun); font-weight: 800; font-size: 15px; flex-shrink: 0;
}
.proof-txt { font-family: var(--nun); font-weight: 700; font-size: 14px; color: rgba(255,255,255,.9); }
.proof-txt b { color: var(--lime); }

/* phone */
.tray {
  background: var(--surface-soft); border: 1px solid rgba(255,255,255,.4);
  border-radius: 34px; padding: 26px; display: flex; justify-content: center;
}
.phone-img { width: 100%; max-width: 300px; height: auto; display: block; filter: drop-shadow(0 30px 50px rgba(20,18,60,.35)); }
.phone-lav { background: linear-gradient(180deg,#ECEAFF,#F4F3FF); border-radius: 30px; padding: 22px 22px 0; }

/* sections */
.section { padding: var(--wsp) 0; }
.section.lav { background: var(--bg); }
.section.white { background: #fff; }
.sec-head { max-width: 720px; }
.sec-head .h2 { margin-top: 14px; }
.sec-head .lead { margin-top: 18px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* statement */
.statement {
  font-family: var(--fred); font-weight: 600;
  font-size: clamp(30px, 4.6vw, 60px); line-height: 1.08; letter-spacing: -0.015em;
  text-wrap: balance; margin: 0;
}
.statement .u {
  color: var(--purple);
  background: linear-gradient(180deg, transparent 62%, var(--lime) 62% 90%, transparent 90%);
}

.gap-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 700px) { .gap-cols { grid-template-columns: 1fr; } }

/* two-col feature */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px,5vw,80px); align-items: center; }
.split.rev .split-art { order: 2; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split.rev .split-art { order: 0; }
}

/* differentiator cards */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 50px; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }
.dcard {
  border-radius: var(--r-card); padding: 34px 32px; position: relative; overflow: hidden;
  min-height: 280px; display: flex; flex-direction: column;
}
.dcard .tag { font-family: var(--nun); font-weight: 800; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; }
.dcard h3 { font-family: var(--fred); font-weight: 600; font-size: 28px; margin: 12px 0 12px; }
.dcard p { font-family: var(--nun); font-weight: 500; font-size: 16px; line-height: 1.55; margin: 0; }
.dcard.everyday { background: #fff; border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow-card); }
.dcard.everyday .tag { color: var(--purple); }
.dcard.business { background: var(--ink); color: #fff; }
.dcard.business .tag { color: var(--lime); }
.dcard.business p { color: rgba(255,255,255,.78); }
.dcard .ex { margin-top: auto; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.exchip { font-family: var(--nun); font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: var(--r-pill); }
.everyday .exchip { background: var(--surface-lav); color: var(--purple); border: 1px solid var(--line-2); }
.business .exchip { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.free-badge {
  position: absolute; top: 22px; right: 22px; font-family: var(--nun); font-weight: 800;
  font-size: 11px; letter-spacing: .6px; text-transform: uppercase; padding: 6px 12px; border-radius: var(--r-pill);
}
.everyday .free-badge { background: var(--lime); color: var(--ink); }
.business .free-badge { background: var(--purple); color: #fff; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; margin-top: 52px; }
@media (max-width: 940px) { .steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { background:#fff; border:1px solid var(--line); border-radius: var(--r-sm); padding: 24px 22px; box-shadow: var(--shadow-card); }
.step .n { font-family: var(--chunky); font-size: 30px; color: var(--purple-light); line-height: 1; }
.step h4 { font-family: var(--fred); font-weight: 600; font-size: 18px; margin: 14px 0 8px; }
.step p { font-family: var(--nun); font-weight: 500; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); margin: 0; }

/* exercise chips */
.exgrid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.bigchip {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--nun); font-weight: 700;
  font-size: 15.5px; padding: 13px 20px; border-radius: var(--r-pill); background: #fff;
  border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(107,105,241,.06); color: var(--ink);
}
.bigchip .ic {
  width: 26px; height: 26px; border-radius: 8px; background: var(--surface-lav);
  display: flex; align-items: center; justify-content: center; color: var(--purple); flex-shrink: 0;
}

/* gamification */
.gfeat { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
@media (max-width: 620px) { .gfeat { grid-template-columns: 1fr; } }
.gitem { display: flex; gap: 16px; align-items: flex-start; }
.gitem .gic {
  width: 50px; height: 50px; border-radius: 16px; flex-shrink: 0; display: flex;
  align-items: center; justify-content: center; color: #fff;
}
.gitem h4 { font-family: var(--fred); font-weight: 600; font-size: 19px; margin: 2px 0 6px; }
.gitem p { font-family: var(--nun); font-weight: 500; font-size: 15px; line-height: 1.5; color: var(--ink-3); margin: 0; }

/* who for */
.fortable { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 48px; }
@media (max-width: 760px) { .fortable { grid-template-columns: 1fr; } }
.forcard { border-radius: var(--r-card); padding: 32px 30px; }
.forcard.yes { background: var(--surface-lav); border: 1.5px solid var(--purple); }
.forcard.no { background: #fff; border: 1px solid var(--line); }
.forcard h4 { font-family: var(--fred); font-weight: 600; font-size: 21px; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.forcard ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.forcard li { font-family: var(--nun); font-weight: 600; font-size: 16px; line-height: 1.45; color: var(--ink-2); display: flex; gap: 12px; align-items: flex-start; }
.forcard li .m { flex-shrink: 0; margin-top: 1px; }
.yes li .m { color: var(--purple); }
.no li .m { color: var(--ink-4); }
.no li { color: var(--ink-3); }

/* mission */
.mission { background: var(--ink); color: #fff; }
.mission .h2 { color: #fff; }
.mission .lead { color: rgba(255,255,255,.78); }
.mission-stat {
  background: var(--surface-dark-2); border-radius: var(--r-card); padding: 24px 28px;
  display: flex; align-items: center; gap: 22px;
}
.mission-stat .n { font-family: var(--chunky); font-size: 40px; color: var(--lime); line-height: 1; min-width: 130px; }
.mission-stat .l { font-family: var(--nun); font-weight: 600; font-size: 16px; color: rgba(255,255,255,.8); line-height: 1.4; }
.mission-stats { display: flex; flex-direction: column; gap: 16px; }

/* final CTA */
.cta { background: var(--purple); color: #fff; position: relative; overflow: hidden; }
.cta .h2 { color: #fff; }
.cta-perks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; justify-content: center; }
.cta-perks span { font-family: var(--nun); font-weight: 700; font-size: 15px; color: rgba(255,255,255,.92); display: inline-flex; gap: 8px; align-items: center; }
.cta-perks .m { color: var(--lime); }
.cta .wl-form { margin: 30px auto 0; justify-content: center; }

/* confetti */
/* overflow is NOT set here — .hero and .cta already have overflow:hidden,
   so removing it allows the parallax offset to actually be visible */
.confetti { position: absolute; inset: -60px; pointer-events: none; z-index: 0; }
.confetti span {
  position: absolute; display: block; will-change: transform, opacity;
  /* --py injected by parallax JS; CSS translate is independent of the keyframe transform */
  translate: 0 var(--py, 0px);
}
.hero .wrap, .cta .wrap { position: relative; z-index: 1; }

/* --- confetti keyframes (amplitudes bumped up for visibility) --- */
@keyframes cf-float {
  0%   { transform: translateY(0)     rotate(var(--r,0deg)) scale(1); }
  45%  { transform: translateY(-28px) rotate(calc(var(--r,0deg) + 10deg)) scale(1.1); }
  100% { transform: translateY(0)     rotate(var(--r,0deg)) scale(1); }
}
@keyframes cf-drift {
  0%   { transform: translate(0, 0)        rotate(var(--r,0deg)); }
  25%  { transform: translate(18px, -20px) rotate(calc(var(--r,0deg) + 16deg)); }
  60%  { transform: translate(-14px, -8px) rotate(calc(var(--r,0deg) - 12deg)); }
  100% { transform: translate(0, 0)        rotate(var(--r,0deg)); }
}
@keyframes cf-spin {
  from { transform: rotate(0deg)   scale(var(--s,1)); }
  to   { transform: rotate(360deg) scale(var(--s,1)); }
}
@keyframes cf-pulse {
  0%,100% { transform: scale(1)    rotate(var(--r,0deg)); opacity: var(--op,.5); }
  50%     { transform: scale(1.55) rotate(calc(var(--r,0deg) + 20deg)); opacity: min(calc(var(--op,.5) * 1.8), .95); }
}
@keyframes cf-wobble {
  0%,100% { transform: translateX(0)     rotate(var(--r,0deg)) skewX(0deg); }
  25%     { transform: translateX(-14px) rotate(calc(var(--r,0deg) - 15deg)) skewX(-6deg); }
  75%     { transform: translateX(14px)  rotate(calc(var(--r,0deg) + 15deg)) skewX(6deg); }
}

/* --- animation helpers --- */
.cf-float  { animation: cf-float  var(--dur,6s)  var(--del,0s) ease-in-out infinite; }
.cf-drift  { animation: cf-drift  var(--dur,8s)  var(--del,0s) ease-in-out infinite; }
.cf-spin   { animation: cf-spin   var(--dur,10s) var(--del,0s) linear       infinite; }
.cf-pulse  { animation: cf-pulse  var(--dur,4s)  var(--del,0s) ease-in-out infinite; }
.cf-wobble { animation: cf-wobble var(--dur,7s)  var(--del,0s) ease-in-out infinite; }

/* respect reduced-motion — also disables parallax translate */
@media (prefers-reduced-motion: reduce) {
  .cf-float, .cf-drift, .cf-spin, .cf-pulse, .cf-wobble { animation: none; }
  .confetti span { translate: none; }
}

/* success state */
.wl-success {
  display: flex; align-items: center; gap: 14px; margin-top: 28px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--r-md); padding: 18px 22px; max-width: 480px;
  animation: pop .4s cubic-bezier(.2,1.3,.4,1);
}
.cta .wl-success { margin: 28px auto 0; }
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.wl-success .check {
  width: 46px; height: 46px; border-radius: 50%; background: var(--lime);
  display: flex; align-items: center; justify-content: center; color: var(--ink); flex-shrink: 0;
  font-size: 22px;
}
.wl-success h4 { font-family: var(--fred); font-weight: 600; font-size: 18px; margin: 0 0 2px; color: #fff; }
.wl-success p { font-family: var(--nun); font-weight: 600; font-size: 14px; margin: 0; color: rgba(255,255,255,.85); }
.wl-success p b { color: var(--lime); }
.wl-success p b.white { color: #fff; }

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 54px; align-items: stretch; }
@media (max-width: 880px) { .pricing { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; } }
.ptier {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 34px 30px;
  display: flex; flex-direction: column; box-shadow: var(--shadow-card);
}
.ptier.feat {
  background: var(--purple); color: #fff; border: none;
  box-shadow: 0 22px 54px rgba(107,105,241,.34); position: relative;
}
@media (min-width: 881px) { .ptier.feat { transform: translateY(-14px); } }
.ptier .pname { font-family: var(--nun); font-weight: 800; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--purple); }
.ptier.feat .pname { color: var(--lime); }
.ptier .pprice { font-family: var(--fred); font-weight: 600; font-size: 48px; line-height: 1; margin: 14px 0 4px; display: flex; align-items: baseline; gap: 4px; }
.ptier .pprice .per { font-family: var(--nun); font-weight: 700; font-size: 15px; color: var(--ink-4); }
.ptier.feat .pprice .per { color: rgba(255,255,255,.72); }
.ptier .psub { font-family: var(--nun); font-weight: 600; font-size: 13.5px; color: var(--ink-4); }
.ptier.feat .psub { color: rgba(255,255,255,.82); }
.ptier ul { list-style: none; margin: 24px 0 30px; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.ptier li { font-family: var(--nun); font-weight: 600; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); display: flex; gap: 11px; align-items: flex-start; }
.ptier.feat li { color: rgba(255,255,255,.92); }
.ptier li .m { flex-shrink: 0; color: var(--purple); margin-top: 1px; line-height: 1; font-size: 18px; }
.ptier.feat li .m { color: var(--lime); }
.ptier .pcta { margin-top: auto; width: 100%; }
.feat-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--lime);
  color: var(--ink); font-family: var(--nun); font-weight: 800; font-size: 11.5px; letter-spacing: .6px;
  text-transform: uppercase; padding: 6px 16px; border-radius: var(--r-pill); white-space: nowrap;
}
.price-note { text-align: center; font-family: var(--nun); font-weight: 600; font-size: 14px; color: var(--ink-4); margin-top: 32px; }

/* footer */
.footer { background: var(--bg); border-top: 1px solid var(--line-2); padding: 50px 0 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .muted { font-family: var(--nun); font-weight: 600; font-size: 13.5px; color: var(--ink-4); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-family: var(--nun); font-weight: 700; font-size: 14px; color: var(--ink-3); }
.footer-links a:hover { color: var(--purple); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* mascot bob */
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
.bob { animation: bob 5s ease-in-out infinite; }

/* loading spinner for form */
.btn-loading { opacity: .7; cursor: not-allowed; }

/* ============================================================
   MOBILE POLISH  (≤ 500px)
   ============================================================ */
@media (max-width: 500px) {

  /* Form button goes full-width when it wraps */
  .wl-form button[type=submit] {
    flex: 1 1 100%;
    width: 100%;
  }

  /* Input full-width always */
  .wl-input { flex: 1 1 100%; }

  /* Steps: tighter padding on very small screens */
  .step { padding: 20px 18px; }

  /* Bigchips: slightly tighter on small screens */
  .bigchip { font-size: 14.5px; padding: 11px 16px; }
  .bigchip .ic { width: 22px; height: 22px; }

  /* Mission stat number: smaller min-width */
  .mission-stat .n { font-size: 32px; min-width: 100px; }

  /* CTA success message: fits narrow screens */
  .wl-success { padding: 14px 16px; gap: 12px; }
  .wl-success .check { width: 38px; height: 38px; font-size: 18px; }

  /* Hero: tighten vertical spacing */
  .hero h1 { margin-top: 16px; }
  .wl-form { margin-top: 22px; }
  .proof { margin-top: 22px; }

  /* Footer links: smaller gap */
  .footer-links { gap: 14px; }

  /* Pricing: tighter padding on mobile */
  .ptier { padding: 28px 22px; }

  /* Wrap: tighter horizontal padding */
  .wrap { padding: 0 20px; }
}

/* Extra small (≤ 360px) */
@media (max-width: 360px) {
  .hero h1 { font-size: 36px; }
  .nav-inner .wordmark { font-size: 22px; }
  .btn.btn-sm { padding: 10px 16px; font-size: 13px; }
}
