/* ============================================================
   PollPing — static rebuild of pollping.com (Framer original)
   No build step: plain CSS with design tokens.
   Breakpoints follow the original: <810 mobile, 810–1199 tablet, ≥1200 desktop.
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-var-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0f172b;
  --ink-2: #1d293d;
  --muted: #5e6876;
  --purple: #7008e7;
  --purple-2: #7f22fe;
  --accent-pink: #e60076;
  --accent-pink-hero: #812176;
  --accent-blue: #0079c9;
  --accent-green: #008257;
  --hero-bg: #fe98f2;
  --hero-blob: #ff85f1;
  --card-pink: #fce7f3;
  --petal-pink: #fccee8;
  --card-sky: #dff2fe;
  --petal-sky: #b8e6fe;
  --card-green: #dcfce7;
  --petal-green: #b9f8cf;
  --bg-soft: #f8fafc;
  --bg-soft-2: #f1f5f9;
  --font: "Onest", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-spring: cubic-bezier(0.22, 1.2, 0.36, 1);
  --shadow-card: 0 24px 60px rgba(15, 23, 43, 0.10);
  --shadow-soft: 0 10px 20px rgba(15, 23, 43, 0.07);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
button, input { font: inherit; }

.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 30px;
}

/* ---------- Typography ---------- */
h1 { font-size: 80px; font-weight: 600; line-height: 1em; letter-spacing: -0.04em; color: var(--ink); }
h2 { font-size: 56px; font-weight: 600; line-height: 1.05em; letter-spacing: -0.02em; color: var(--ink); }
h3 { font-size: 40px; font-weight: 600; line-height: 1em; letter-spacing: -0.02em; color: var(--ink); }
h4 { font-size: 22px; font-weight: 600; line-height: 1em; letter-spacing: -0.02em; color: var(--ink); }
.eyebrow { font-size: 18px; font-weight: 600; line-height: 1em; letter-spacing: -0.02em; color: var(--purple); }
.lead { font-size: 20px; font-weight: 500; line-height: 1.4em; letter-spacing: -0.02em; color: var(--ink); }
.body-lg { font-size: 18px; font-weight: 500; line-height: 1.6em; letter-spacing: -0.02em; color: var(--ink-2); }
.body { font-size: 16px; font-weight: 500; line-height: 1.75em; letter-spacing: -0.02em; color: var(--muted); }

@media (max-width: 1199.98px) {
  h1 { font-size: 64px; }
  h2 { font-size: 40px; }
  h3 { font-size: 32px; }
  h4 { font-size: 20px; }
  .eyebrow { font-size: 16px; }
  .lead { font-size: 18px; }
  .body-lg { font-size: 16px; }
}
@media (max-width: 809.98px) {
  h1 { font-size: 40px; }
  h2 { font-size: 26px; }
  h3 { font-size: 24px; }
  .eyebrow { font-size: 14px; }
  .lead { font-size: 16px; }
  .body { font-size: 14px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 4px 4px 4px 28px;
  background: var(--purple);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  border-radius: 1000px;
  transition: background 0.25s ease, transform 0.25s var(--ease-spring);
  white-space: nowrap;
}
.btn__arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--purple-2);
  display: grid;
  place-items: center;
  transition: transform 0.25s var(--ease-spring), background 0.25s ease;
  flex: none;
}
.btn__arrow svg { width: 20px; height: 20px; }
.btn:hover { background: var(--purple-2); transform: scale(1.02); }
.btn:hover .btn__arrow { transform: translateX(3px); }
@media (max-width: 809.98px) {
  .btn { font-size: 16px; padding-left: 24px; gap: 12px; width: 100%; justify-content: space-between; max-width: 480px; }
  .btn__arrow { width: 48px; height: 48px; }
}

/* ---------- Nav ---------- */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  padding-top: 28px;
}
.nav .container { padding: 0 20px; }
.nav .logo { display: inline-flex; }
.logo svg { height: 26px; width: auto; display: block; }
@media (max-width: 809.98px) { .nav { padding-top: 22px; } .nav .container { padding: 0 30px; } .logo svg { height: 24px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--hero-bg);
  overflow: hidden;
  height: clamp(760px, 100vh, 980px);
  height: clamp(760px, 100svh, 980px);
  display: flex;
  align-items: center;
}
.hero__blob {
  position: absolute;
  color: var(--hero-blob);
  pointer-events: none;
}
.hero__blob svg { width: 100%; height: auto; display: block; }
.hero__blob--main {
  width: 760px;
  right: -60px;
  top: 270px;
}
.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 660px) 1fr;
  align-items: center;
}
.hero .hero__grid { padding: 0 50px; }
.hero__copy { padding-top: 14px; }
.hero__copy .eyebrow { color: var(--accent-pink-hero); margin-bottom: 24px; }
.hero__title { margin-bottom: 19px; }
.hero__title .h1-img {
  display: inline-block;
  width: 134px;
  vertical-align: middle;
  margin: -20px 0 0 6px;
}
.hero__title .h1-avatar {
  display: inline-block;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid #fff;
  vertical-align: middle;
  margin: -14px 6px 0 10px;
  object-fit: cover;
}
.hero__sub { max-width: 520px; margin-bottom: 40px; color: var(--ink); }
.hero__art {
  position: absolute;
  z-index: 1;
  right: max(calc((100vw - 1360px) / 2 + 52px), 16px);
  bottom: 0;
  height: 86%;
  pointer-events: none;
}
.hero__art img {
  height: 100%;
  width: auto;
}
@media (max-width: 1199.98px) {
  .hero { height: auto; min-height: 0; padding: 140px 0 0; display: block; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero .hero__grid { padding: 0 30px; }
  .hero__copy { max-width: 560px; padding-top: 0; }
  .hero__title .h1-img { width: 100px; margin-top: -14px; }
  .hero__title .h1-avatar { width: 72px; height: 72px; }
  .hero__art { position: relative; right: 0; height: auto; margin-top: 32px; display: flex; justify-content: flex-end; }
  .hero__art img { height: auto; width: min(440px, 74vw); }
  .hero__blob--main { width: 560px; right: -160px; top: auto; bottom: -80px; }
}
@media (max-width: 809.98px) {
  .hero { padding-top: 110px; }
  .hero__copy .eyebrow { margin-bottom: 16px; }
  .hero__title { margin-bottom: 18px; }
  .hero__title .h1-img { width: 82px; margin-top: -10px; }
  .hero__title .h1-avatar { width: 56px; height: 56px; }
  .hero__sub { margin-bottom: 28px; }
  .hero__blob--main { width: 430px; right: auto; left: -120px; bottom: -100px; }
  .hero__art { margin-top: 24px; }
  .hero__art img { width: min(340px, 82vw); }
}

/* ---------- Sections (shared) ---------- */
.section { position: relative; }
.section__head { text-align: center; position: relative; z-index: 2; }
.section__head .eyebrow { margin-bottom: 18px; }
.section__head .lead { max-width: 560px; margin: 20px auto 0; color: var(--muted); }

/* ---------- Features ---------- */
.features { padding: 200px 0 205px; background: #fff; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 150px;
  max-width: 1080px;
  margin: 72px auto 0;
}
.feature { text-align: center; }
.feature__icon { width: 120px; margin: 0 auto 28px; }
.feature h3 { font-size: 22px; margin-bottom: 14px; }
.feature .body { max-width: 260px; margin: 0 auto; }
@media (max-width: 1199.98px) {
  .features { padding: 120px 0; }
  .features__grid { gap: 60px; }
  .feature h3 { font-size: 20px; }
}
@media (max-width: 809.98px) {
  .features { padding: 80px 0 70px; }
  .features__grid { grid-template-columns: 1fr; gap: 48px; margin-top: 44px; }
  .feature__icon { width: 118px; }
}

/* ---------- Control / ticker ---------- */
.control { background: var(--bg-soft); padding: 200px 0; overflow: hidden; }
.control .btn { margin-top: 36px; width: auto; }
.ticker { margin-top: 90px; display: flex; flex-direction: column; gap: 24px; position: relative; z-index: 2; }
.ticker__row { overflow: hidden; margin: 0 -30px; }
.ticker__track { display: flex; width: max-content; animation: ticker-scroll 52s linear infinite; }
.ticker__row--rev .ticker__track { animation-direction: reverse; }
.ticker__set { display: flex; gap: 22px; padding-right: 22px; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }
.tcard {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 36px 40px;
  width: 498px;
  flex: none;
}
.tcard__avatar { position: relative; flex: none; }
.tcard__avatar img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.tcard__emoji {
  position: absolute;
  right: -6px;
  bottom: -4px;
  font-size: 16px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.15));
}
.tcard__text { font-size: 15px; line-height: 1.45; letter-spacing: -0.01em; color: var(--muted); font-weight: 500; min-width: 0; }
.tcard__text strong { color: var(--ink); font-weight: 700; }
.tcard__amount { margin-left: auto; color: var(--accent-green); font-weight: 700; font-size: 16px; flex: none; }
@media (max-width: 809.98px) {
  .control { padding: 80px 0; }
  .control .btn { width: 100%; }
  .ticker { margin-top: 48px; gap: 16px; }
  .ticker__set { gap: 16px; padding-right: 16px; }
  .tcard { width: 340px; padding: 14px 18px; border-radius: 12px; }
  .tcard__avatar img { width: 44px; height: 44px; }
  .tcard__text { font-size: 13px; }
  .tcard__amount { font-size: 14px; }
}

/* ---------- How it works ---------- */
.how { background: #fff; padding: 100px 0 200px; }
.how .section__head .lead { max-width: 440px; }
.how__steps { margin-top: 110px; display: grid; gap: 80px; }
.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
}
.step--flip .step__card { order: 2; }
.step__copy { padding-left: 80px; }
.step--flip .step__copy { padding-left: 0; padding-right: 80px; }
.step__copy .eyebrow { margin-bottom: 20px; }
.step__copy h3 { margin-bottom: 24px; }
.step__copy .body-lg { max-width: 360px; }
.step__copy--pink .eyebrow { color: var(--accent-pink); }
.step__copy--blue .eyebrow { color: var(--accent-blue); }
.step__copy--green .eyebrow { color: var(--accent-green); }
.step__card {
  position: relative;
  border-radius: 24px;
}
.step__clip {
  position: relative;
  overflow: hidden;
  border-radius: inherit;
  min-height: 700px;
  display: flow-root;
}
.step__card--pink .step__clip { background: var(--card-pink); }
.step__card--sky .step__clip { background: var(--card-sky); }
.step__card--green .step__clip { background: var(--card-green); }
.petals {
  position: absolute;
  opacity: 0.5;
  pointer-events: none;
}
.step__card--pink .petals { color: var(--petal-pink); width: 240%; left: -85%; top: -110%; }
.step__card--sky .petals { color: var(--petal-sky); width: 160%; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.step__card--green .petals { color: var(--petal-green); width: 180%; left: -45%; top: -20%; }
.step__deco { position: absolute; z-index: 3; height: auto; pointer-events: none; }
.step__deco--cursor { width: 172px; left: -40px; bottom: -24px; }
.step__deco--bell { width: 190px; top: -25px; right: -30px; }
.step__deco--money { width: 212px; bottom: -45px; left: -45px; }
@media (max-width: 1199.98px) {
  .how { padding: 90px 0 120px; }
  .how__steps { gap: 70px; margin-top: 80px; }
  .step__copy { padding-left: 40px; }
  .step--flip .step__copy { padding-right: 40px; }
  .step__card { border-radius: 24px; }
  .step__clip { min-height: 560px; }
  .step__deco--cursor { width: 130px; }
  .step__deco--bell { width: 150px; top: -20px; right: -18px; }
  .step__deco--money { width: 160px; }
}
@media (max-width: 809.98px) {
  .how { padding: 70px 0 90px; }
  .how__steps { margin-top: 56px; gap: 64px; }
  .step { grid-template-columns: 1fr; gap: 32px; }
  .step--flip .step__card { order: 0; }
  .step__copy, .step--flip .step__copy { padding: 0; }
  .step__copy .body-lg { max-width: none; }
  .step__clip { min-height: 0; }
  .step__deco--cursor { width: 90px; left: -12px; top: -24px; bottom: auto; }
  .step__deco--bell { display: none; }
  .step__deco--money { width: 95px; left: -12px; top: -28px; bottom: auto; }
}

/* Phone-style white cards inside step cards */
.mock {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 40px;
  box-shadow: var(--shadow-card);
  width: min(390px, 84%);
  margin: 80px auto -60px;
  padding: 36px 40px 44px;
  min-height: 700px;
}
.mock__logo { height: 24px; width: auto; margin: 0 auto 24px; }
@media (max-width: 809.98px) {
  .mock { margin: 48px auto -36px; padding: 28px 24px 36px; border-radius: 28px; min-height: 0; }
  .mock--dash { min-height: 0; }
}

/* Step 1: signup mock */
.mock__icons { display: flex; align-items: center; justify-content: center; gap: 8px; }
.appicon {
  width: 54px; height: 54px;
  background: var(--purple);
  border-radius: 14px;
  display: grid;
  place-items: center;
}
.appicon svg { width: 30px; height: 33px; color: #fff; }
.mock__icons .emoji { font-size: 22px; }
.mock__icons img { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; }
.mock__caption { text-align: center; font-size: 13px; color: #5f7089; margin-top: 10px; font-weight: 500; }
.mock__title { text-align: center; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin-top: 22px; }
.mock__sub { text-align: center; font-size: 14px; color: var(--muted); font-weight: 500; line-height: 1.5; margin: 10px auto 22px; max-width: 300px; }
.mock__input {
  background: var(--bg-soft-2);
  border-radius: 12px;
  padding: 17px 18px;
  font-size: 15px;
  color: #5f7089;
  font-weight: 500;
  margin-bottom: 12px;
}
.mock .btn { width: 100%; justify-content: space-between; margin-top: 8px; max-width: none; }
.mock .btn__arrow { width: 52px; height: 52px; }

/* Step 2: notifications */
.step__card--sky .step__clip { display: flex; align-items: center; justify-content: center; }
.notifs {
  position: relative;
  z-index: 2;
  width: min(430px, 86%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 40px 0;
}
.notif {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 18px;
  position: relative;
}
.notif__icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #e4e4e4;
  display: grid;
  place-items: center;
  font-size: 26px;
  flex: none;
}
.notif__text { font-size: 14px; line-height: 1.45; color: var(--muted); font-weight: 500; min-width: 0; }
.notif__text strong { color: var(--ink); font-weight: 700; }
.notif__amount { margin-left: auto; color: var(--accent-green); font-weight: 700; font-size: 15px; flex: none; }
.notif__cta {
  margin-left: auto;
  flex: none;
  background: var(--purple);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 1000px;
  padding: 8px 14px;
}
.notif__badge {
  position: absolute;
  top: -8px; right: -6px;
  width: 22px; height: 22px;
  background: #e7000b;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
@media (max-width: 809.98px) {
  .notifs { width: calc(100% - 40px); padding: 56px 0; }
  .notif__icon { width: 44px; height: 44px; font-size: 21px; }
  .notif__cta { padding: 7px 12px; }
}

/* Step 3: dashboard mock */
.mock--dash { margin: 64px auto -40px; padding: 32px 28px 36px; border-radius: 32px; min-height: 680px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  background: #fff;
  border: 1px solid var(--bg-soft-2);
  box-shadow: var(--shadow-soft);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.tile__label { font-size: 12px; color: var(--muted); font-weight: 500; }
.tile__value { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.tile__emoji {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  flex: none;
}
.tile__emoji--green { background: #dcfce7; }
.tile__emoji--red { background: #ffe2e2; }
.tile__emoji--purple { background: #e0e7ff; }
.tile__emoji--gray { background: var(--bg-soft-2); }
.mock__h { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin: 22px 0 14px; }
.survey-row {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.survey-row__t { font-size: 13px; font-weight: 700; }
.survey-row__s { font-size: 12px; color: var(--muted); font-weight: 500; }
.survey-row__amount { margin-left: auto; color: var(--accent-green); font-size: 14px; font-weight: 700; flex: none; }
.survey-row__chev { color: var(--ink-2); flex: none; display: grid; }
.survey-row__chev svg { width: 14px; height: 14px; }
@media (max-width: 809.98px) {
  .tile { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .tile__emoji { order: -1; }
}

/* ---------- Join ---------- */
.join { background: var(--bg-soft); }
.join__grid {
  display: grid;
  grid-template-columns: 1fr minmax(0, 590px);
  gap: 40px;
  align-items: end;
}
.join__copy { padding: 110px 0 110px 80px; align-self: center; }
.join__copy .eyebrow { margin-bottom: 20px; }
.join__copy h2 { margin-bottom: 12px; }
.join__copy .body-lg { max-width: 470px; }
.join__list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 16px; }
.join__list li { display: flex; align-items: center; gap: 14px; font-size: 16px; font-weight: 500; color: var(--ink-2); letter-spacing: -0.01em; }
.join__list svg { width: 24px; height: 24px; color: #00a63e; flex: none; }
.join .btn { margin-top: 36px; width: auto; }
.join__note { margin-top: 26px; font-size: 14px; color: var(--muted); font-weight: 500; }
.join__photo { align-self: end; display: flex; justify-content: flex-end; }
.join__photo img { width: min(590px, 100%); margin-top: -60px; }
@media (max-width: 1199.98px) {
  .join__copy { padding-left: 0; }
}
@media (max-width: 809.98px) {
  .join__grid { grid-template-columns: 1fr; gap: 0; }
  .join__copy { padding: 70px 0 48px; }
  .join .btn { width: 100%; }
  .join__photo { margin: 0 -30px; justify-content: center; }
  .join__photo img { width: 100%; margin-top: 0; }
}

/* ---------- Footer ---------- */
.footer { background: var(--purple); padding: 72px 0 59px; text-align: center; }
.footer .logo { display: inline-flex; }
.footer .logo svg { height: 25px; }
.footer__links { display: flex; justify-content: center; gap: 44px; margin-top: 24px; }
.footer__links a { color: rgba(255, 255, 255, 0.85); font-size: 16px; font-weight: 500; transition: color 0.2s ease; }
.footer__links a:hover { color: #fff; }
.footer__copy { margin-top: 14px; color: rgba(255, 255, 255, 0.8); font-size: 12px; font-weight: 500; }
@media (max-width: 809.98px) {
  .footer { padding: 56px 0 48px; }
  .footer__links { flex-direction: column; gap: 16px; align-items: center; }
  .footer__copy { margin-top: 20px; }
}

/* ---------- Confetti (pops in once when scrolled into view) ---------- */
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.confetti span {
  position: absolute;
  width: 7px;
  height: 3px;
  border-radius: 2px;
  opacity: 0;
  transform: scale(0) rotate(var(--cr, 0deg));
}
.confetti.pop span {
  animation: confetti-pop 0.7s var(--ease-spring) var(--pd, 0s) forwards;
}
@keyframes confetti-pop {
  0% { opacity: 0; transform: scale(0) translateY(16px) rotate(calc(var(--cr, 0deg) - 70deg)); }
  60% { opacity: 1; transform: scale(1.35) translateY(-3px) rotate(var(--cr, 0deg)); }
  100% { opacity: 0.85; transform: scale(1) rotate(var(--cr, 0deg)); }
}

/* ---------- Float (3D decorations) ---------- */
.float { animation: float 5.5s ease-in-out infinite alternate; }
.float--slow { animation-duration: 7.5s; }
@keyframes float {
  from { transform: translateY(-7px); }
  to { transform: translateY(9px); }
}

/* ---------- Reveal on scroll ---------- */
html.js .rv {
  opacity: 0.001;
  transform: translateY(30px);
  /* failsafe: if main.js never runs, reveal everything after 2.5s */
  animation: rv-failsafe 0s 2.5s forwards;
}
html.js .rv.in {
  opacity: 1;
  transform: none;
  animation: none;
  transition:
    transform 0.9s var(--ease-spring) var(--d, 0s),
    opacity 0.55s ease var(--d, 0s);
}
@keyframes rv-failsafe {
  to { opacity: 1; transform: none; }
}

/* ---------- Hero entrance ---------- */
@keyframes rise {
  /* 0.001, not 0: content first painted at opacity 0 is ignored as an LCP
     candidate, which makes PageSpeed report NO_LCP for the hero. */
  from { opacity: 0.001; transform: translateY(34px); }
  to { opacity: 1; transform: none; }
}
html.js .hero [data-hero] { animation: rise 0.9s var(--ease-spring) both; }
html.js .hero [data-hero="1"] { animation-delay: 0.05s; }
html.js .hero [data-hero="2"] { animation-delay: 0.15s; }
html.js .hero [data-hero="3"] { animation-delay: 0.25s; }
html.js .hero [data-hero="4"] { animation-delay: 0.35s; }
html.js .hero__art[data-hero] { animation-delay: 0.3s; animation-duration: 1.1s; }

/* ---------- Legal pages ---------- */
.legal-hero { padding: 140px 0 40px; }
.legal-hero .updated { color: var(--muted); font-size: 14px; font-weight: 500; margin-top: 18px; }
.legal { padding: 20px 0 110px; }
.legal__inner { max-width: 760px; }
.legal h2 { font-size: 28px; margin: 48px 0 16px; }
.legal h3 { font-size: 18px; margin: 26px 0 8px; }
.legal p { font-size: 16px; font-weight: 500; line-height: 1.7; color: var(--ink-2); margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { font-size: 16px; font-weight: 500; line-height: 1.7; color: var(--ink-2); margin-bottom: 6px; }
.legal a { color: var(--purple); }
.nav--dark { position: relative; padding-top: 28px; }
.nav--dark .container { padding: 0 30px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .float { animation: none; }
  .confetti span { animation: none; opacity: 0.85; transform: scale(1) rotate(var(--cr, 0deg)); }
  html.js .rv { opacity: 1; transform: none; animation: none; }
  html.js .hero [data-hero] { animation: none; }
}

/* ---------- Resources ---------- */
.resources-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 26px 0 10px; }
.rcard {
  display: block;
  background: var(--card-pink);
  border-radius: 18px;
  padding: 22px 24px;
  text-decoration: none;
  transition: transform 0.25s ease;
}
.rcard:nth-child(4n+2) { background: var(--card-sky); }
.rcard:nth-child(4n+3) { background: #dcfce7; }
.rcard:nth-child(4n+4) { background: #fef9c2; }
.rcard:hover { transform: translateY(-3px); }
.rcard h3 { font-size: 18px; margin: 0 0 6px; color: var(--ink); }
.rcard p { font-size: 14px; line-height: 1.5; margin: 0; color: var(--ink-2); }
.legal .rcard { color: inherit; }
@media (max-width: 640px) {
  .resources-grid { grid-template-columns: 1fr; }
}

/* ---------- Legal CTA button (no arrow variant, and .legal a color override) ---------- */
.legal .btn { color: #fff; padding: 16px 32px; }
.legal .btn:hover { color: #fff; }

/* ---------- Footer language switcher ---------- */
.footer__lang { margin-top: 20px; font-size: 14px; color: rgba(255, 255, 255, 0.55); }
.footer__lang a { color: rgba(255, 255, 255, 0.75); font-weight: 600; transition: color 0.2s ease; }
.footer__lang a:hover { color: #fff; }
.footer__lang a.active { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Mobile burger menu ---------- */
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav__burger { display: none; border: 0; background: none; cursor: pointer; padding: 8px; margin: -8px; }
.nav__burger span {
  display: block;
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav__burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.nav__menu { display: none; }
@media (max-width: 809.98px) {
  .nav__burger { display: block; }
  .nav__menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 16px;
    right: 16px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(15, 23, 43, 0.18);
    padding: 14px;
    z-index: 30;
  }
  .nav__menu.open { display: block; }
  .nav__menu a { display: block; padding: 13px 16px; font-size: 17px; font-weight: 600; color: var(--ink); border-radius: 12px; }
  .nav__menu a:hover, .nav__menu a:active { background: #f5f2fc; }
  .nav__menu .nav__cta { margin-top: 8px; background: var(--purple); color: #fff; text-align: center; border-radius: 1000px; }
  .nav__menu .nav__cta:hover { background: var(--purple-2); color: #fff; }
}

/* Hide WebKit's play-button overlay on the decorative hero avatar video */
.h1-avatar::-webkit-media-controls-start-playback-button,
.h1-avatar::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none; }

/* Face toggle in the signup mockup */
@keyframes face-swap {
  from { transform: scale(0.55) rotate(-8deg); opacity: 0.3; }
  to { transform: scale(1) rotate(0deg); opacity: 1; }
}
img.face-swap { animation: face-swap 0.5s var(--ease-spring); }

/* Notification carousel in the "Get pinged" card */
.notif--queued { display: none; }
@keyframes notif-in {
  from { opacity: 0; transform: translateY(-18px) scale(0.92); }
  to { opacity: 1; transform: none; }
}
@keyframes notif-out {
  to { opacity: 0; transform: translateY(14px) scale(0.94); }
}
.notif--in { animation: notif-in 0.5s var(--ease-spring); }
.notif--out { animation: notif-out 0.34s ease forwards; }

/* Article banner + article hub card icons */
.article-banner {
  border-radius: 22px;
  height: 178px;
  display: grid;
  place-items: center;
  margin-bottom: 36px;
  overflow: hidden;
}
.article-banner img { width: 150px; height: auto; }
@media (max-width: 809.98px) {
  .article-banner { height: 128px; margin-bottom: 26px; }
  .article-banner img { width: 104px; }
}
.rcard__icon { width: 64px; height: auto; margin-bottom: 12px; }

/* Sticky header: transparent at top, frosted once scrolled */
.nav {
  position: fixed;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}
.nav--dark { position: fixed; }
.nav--scrolled {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 24px rgba(15, 23, 43, 0.08);
  padding: 12px 0;
}

/* Desktop header links */
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: opacity 0.2s ease;
}
.nav__links a:hover { opacity: 0.7; }
.nav__links .nav__signup {
  background: var(--purple);
  color: #fff;
  padding: 10px 22px;
  border-radius: 1000px;
  transition: background 0.2s ease;
}
.nav__links .nav__signup:hover { background: var(--purple-2); opacity: 1; }
@media (max-width: 809.98px) {
  /* Mobile: hide the text links but keep the Sign up pill next to the burger */
  .nav__links { gap: 0; margin-left: auto; margin-right: 16px; }
  .nav__links a { display: none; }
  .nav__links .nav__signup { display: inline-block; font-size: 14px; padding: 9px 18px; }
}

/* Livelier step decorations: the bell swings, the cursor darts, the money bobs */
@keyframes deco-swing {
  0%, 100% { transform: rotate(-11deg) translateY(-4px); }
  50% { transform: rotate(10deg) translateY(7px); }
}
.step__deco--bell { animation: deco-swing 2.4s ease-in-out infinite; transform-origin: 50% 8%; }
@keyframes deco-dart {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  30% { transform: translate(-16px, 12px) rotate(-8deg); }
  65% { transform: translate(10px, -14px) rotate(6deg); }
}
.step__deco--cursor { animation: deco-dart 3s ease-in-out infinite; }
@keyframes deco-bob {
  from { transform: translateY(-10px) rotate(-5deg); }
  to { transform: translateY(14px) rotate(6deg); }
}
.step__deco--money { animation: deco-bob 2.2s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) {
  .step__deco--bell, .step__deco--cursor, .step__deco--money { animation: none; }
}
