/* Pep landing page. Mobile first. No framework. */

:root {
  --bg: #FBF6EE;
  --paper: #FFFFFF;
  --ink: #1F1A15;
  --ink-2: #3A3129;
  --ink-soft: #5B5249;
  --ink-faint: #766C61;
  --line: #E8DFD2;
  --line-strong: #D9CDBC;
  --coral: #FF6A3D;
  --coral-hover: #FF7F57;
  --coral-ink: #B33A12;
  --coral-on-dark: #FF7A50;
  --sun: #FFD66B;
  --peach: #FFE3D3;
  --cream-soft: #C9BEB1;
  --ok: #1D6B3E;
  --error: #B42318;

  --font-display: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(20px, 5vw, 44px);
  --maxw: 1180px;
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-soft: 0 1px 2px rgba(31, 26, 21, .05), 0 10px 30px -12px rgba(31, 26, 21, .16);
  --shadow-phone: 0 2px 4px rgba(31, 26, 21, .10), 0 40px 70px -30px rgba(31, 26, 21, .45), 0 60px 120px -50px rgba(179, 58, 18, .45);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

img, svg { display: block; max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
b { font-weight: 600; }

[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nowrap { white-space: nowrap; }
.hp { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Focus */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--coral-ink);
  outline-offset: 3px;
  border-radius: 8px;
}
.btn:focus-visible { border-radius: 999px; }
.reveal :focus-visible { outline-color: var(--sun); }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip:focus-visible { top: 12px; }

/* Type */
.eyebrow {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--coral-ink);
}
.eyebrow--dark { color: var(--coral-on-dark); }

.display {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(2.6rem, 1.55rem + 4.9vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -.028em;
  text-wrap: balance;
}
.display em {
  font-style: italic;
  font-weight: 450;
  color: var(--coral-ink);
  margin-right: .06em;
}

.h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(2rem, 1.45rem + 2.6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -.024em;
  text-wrap: balance;
  margin-top: 10px;
}

.lede {
  margin-top: 18px;
  max-width: 33em;
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.body-lg {
  margin-top: 16px;
  max-width: 30em;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem);
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 48px;
  padding: 0 1.3em;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .25s var(--ease), background-color .2s ease, box-shadow .25s var(--ease), color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { cursor: default; }
.btn--sm { min-height: 44px; padding: 0 1.05em; font-size: .9375rem; }
.btn--lg { min-height: 56px; padding: 0 1.6em; font-size: 1.0625rem; }
.btn--xl { min-height: 64px; font-size: 1.125rem; }
.btn--block { width: 100%; }

.btn--ink { background: var(--ink); color: var(--bg); }
.btn--ink:hover { background: var(--ink-2); box-shadow: 0 10px 24px -12px rgba(31, 26, 21, .6); }

.btn--coral { background: var(--coral); color: var(--ink); }
.btn--coral:hover { background: var(--coral-hover); box-shadow: 0 14px 30px -14px rgba(179, 58, 18, .7); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateY(3px); }
.link-arrow--dark { color: var(--bg); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 246, 238, .84);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  min-height: 44px;
}
.brand__mark { width: 30px; height: 30px; }
.brand__word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: -.03em;
  line-height: 1;
  transform: translateY(-1px);
}
.brand--sm .brand__mark { width: 26px; height: 26px; }
.brand--sm .brand__word { font-size: 1.35rem; }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  padding-top: 20px;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: 38%;
  height: 820px;
  background:
    radial-gradient(circle 360px at 50% 42%, rgba(255, 214, 107, .55), rgba(255, 214, 107, 0) 70%),
    radial-gradient(circle 300px at 64% 56%, rgba(255, 106, 61, .26), rgba(255, 106, 61, 0) 72%);
  pointer-events: none;
}
.hero__grid { display: grid; gap: 34px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  margin-bottom: 18px;
  padding: .42em .95em .42em .8em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .65);
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.pill__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}
.pill__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--coral);
  animation: ping 2.6s var(--ease) infinite;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  margin-top: 26px;
}

.hero__visual {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.phone-crop {
  position: relative;
  width: calc(100% + var(--gutter) * 2);
  margin-inline: calc(var(--gutter) * -1);
  display: flex;
  justify-content: center;
  height: min(430px, 112vw);
  overflow: hidden;
  /* Fades out before the caption so no half-cut message text shows under or below it. */
  -webkit-mask-image: linear-gradient(to bottom, #000 66%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 66%, transparent 92%);
}
.caption {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: .5em 1em;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* Phone mock */
.phone {
  position: relative;
  flex: none;
  width: min(276px, 72vw);
  aspect-ratio: 276 / 580;
  padding: 9px;
  border-radius: 46px;
  background: #17120E;
  box-shadow: var(--shadow-phone), inset 0 0 0 1.5px #3B322A;
  margin-top: 6px;
}
.phone__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 37px;
  background:
    radial-gradient(120% 70% at 80% 8%, rgba(255, 214, 107, .85), rgba(255, 214, 107, 0) 60%),
    radial-gradient(90% 60% at 0% 60%, rgba(255, 140, 100, .55), rgba(255, 140, 100, 0) 70%),
    linear-gradient(170deg, #FFE2CC 0%, #FFD4BC 45%, #F9C9B4 100%);
  transition: opacity .5s ease;
  font-family: var(--font-body);
  color: var(--ink);
}
.phone__screen.is-fading { opacity: 0; }
.phone__screen.is-resetting .lock,
.phone__screen.is-resetting .chat,
.phone__screen.is-resetting .notif,
.phone__screen.is-resetting .notif__card,
.phone__screen.is-resetting .status__time { transition: none !important; }
.phone__island {
  position: absolute;
  z-index: 5;
  top: 9px;
  left: 50%;
  width: 84px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #0E0B08;
}
.status {
  position: absolute;
  z-index: 4;
  inset: 12px 20px auto 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 20px;
  font-size: 13px;
  font-weight: 600;
}
.status__time { opacity: 0; transition: opacity .4s ease; }
.is-chat .status__time { opacity: 1; }
.status__icons { display: flex; gap: 5px; align-items: center; margin-left: auto; }
.status__icons svg { fill: currentColor; }

.lock {
  position: absolute;
  inset: 0;
  padding-top: 52px;
  text-align: center;
  transition: transform .6s var(--ease), opacity .5s ease;
}
.is-chat .lock { transform: scale(.94); opacity: 0; }
.lock__day { font-size: 13px; font-weight: 600; color: rgba(31, 26, 21, .72); }
.lock__clock {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 66px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.03em;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.lock__clock.tick { animation: tick .5s var(--ease); }
.lock__bar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 96px;
  height: 4px;
  border-radius: 4px;
  transform: translateX(-50%);
  background: rgba(31, 26, 21, .55);
}

.notifs {
  list-style: none;
  margin: 22px 0 0;
  padding: 0 9px;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.notif {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .6s var(--ease);
}
.notif__wrap { min-height: 0; overflow: hidden; padding: 0 2px; }
.notif__card {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-bottom: 7px;
  padding: 10px 11px;
  border-radius: 18px;
  background: rgba(255, 249, 243, .78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset;
  opacity: 0;
  transform: translateY(-12px) scale(.96);
  transition: opacity .45s ease, transform .6s var(--ease);
}
.notif.is-in { grid-template-rows: 1fr; }
.notif.is-in .notif__card { opacity: 1; transform: none; }

/* No-JS fallback: the three messages arrive once, by CSS alone. */
.phone:not(.is-live) .notif { animation: notifRow .6s var(--ease) both; }
.phone:not(.is-live) .notif .notif__card { animation: notifCard .6s var(--ease) both; }
.phone:not(.is-live) [data-n="1"], .phone:not(.is-live) [data-n="1"] .notif__card { animation-delay: .9s; }
.phone:not(.is-live) [data-n="2"], .phone:not(.is-live) [data-n="2"] .notif__card { animation-delay: 2.1s; }
.phone:not(.is-live) [data-n="3"], .phone:not(.is-live) [data-n="3"] .notif__card { animation-delay: 3.3s; }

.notif__icon { flex: none; width: 30px; height: 30px; }
.notif__body { min-width: 0; }
.notif__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  line-height: 1.3;
  color: #6E6358;
}
.notif__meta b { color: var(--ink); font-weight: 600; }
.notif__text { font-size: 13px; line-height: 1.35; margin-top: 1px; color: var(--ink); }

/* Chat screen */
.chat {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  padding-top: 42px;
  background: #FFFBF6;
  transform: translateY(102%);
  transition: transform .7s var(--ease);
}
.is-chat .chat { transform: none; }
.chat__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px 10px;
  border-bottom: 1px solid #F0E7DB;
}
.chat__back { color: var(--coral-ink); }
.chat__avatar { width: 30px; height: 30px; }
.chat__name { font-size: 14px; font-weight: 600; line-height: 1.2; }
.chat__sub { font-size: 11px; color: #6E6358; line-height: 1.2; }
.chat__log {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 14px 12px;
}
.chat__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 10px 24px;
  padding: 0 6px 0 14px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #EDE3D6;
  background: var(--paper);
  font-size: 13px;
  color: #8A7F73;
}
.chat__bar i { width: 26px; height: 26px; border-radius: 50%; background: var(--coral); }

.bubble {
  display: none;
  max-width: 84%;
  padding: 8px 12px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.35;
}
.bubble--me {
  align-self: flex-end;
  background: var(--ink);
  color: #FFF6EC;
  border-bottom-right-radius: 6px;
}
.bubble--pep {
  background: var(--peach);
  color: var(--ink);
  border-bottom-left-radius: 6px;
}
.bubble.is-in { display: block; animation: pop .45s var(--ease) both; }
.bubble.is-static { display: block; }

.typing {
  display: none;
  gap: 4px;
  padding: 11px 13px;
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  background: var(--peach);
}
.typing.is-in { display: inline-flex; animation: pop .35s var(--ease) both; }
.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(31, 26, 21, .5);
  animation: dot 1.1s ease-in-out infinite;
}
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }

/* How it would work */
.how { padding: 56px 0 48px; }
.beats {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.beat {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  row-gap: 3px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, .7);
}
.beat__num {
  grid-row: span 2;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--coral-ink);
}
.beat__title { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
.beat__text { font-size: .96875rem; line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }
.beat__stage { display: none; }

/* The reveal */
.reveal { padding: 12px 0 0; }
.reveal__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 36px 24px 32px;
  border-radius: var(--r-lg);
  background: var(--ink);
  color: var(--bg);
}
.reveal__panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -180px;
  top: -200px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 106, 61, .32), rgba(255, 106, 61, 0));
  pointer-events: none;
}
.reveal__title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(2.35rem, 1.15rem + 5.6vw, 6.25rem);
  line-height: 1.02;
  letter-spacing: -.03em;
}
.reveal__line { display: block; text-wrap: balance; }
.reveal__line--accent { font-style: italic; font-weight: 450; color: var(--coral-on-dark); margin-top: .08em; letter-spacing: -.012em; word-spacing: .06em; }
.reveal__text {
  margin-top: 22px;
  max-width: 34em;
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  color: var(--cream-soft);
  text-wrap: pretty;
}
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 6px;
  padding: 0;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .5em .95em .5em .75em;
  border-radius: 999px;
  border: 1px solid rgba(251, 246, 238, .22);
  font-size: .9375rem;
  font-weight: 500;
}
.chips svg { width: 17px; height: 17px; color: var(--sun); }

/* Want it to exist? */
.want { padding: 72px 0 80px; }
.want__grid { display: grid; gap: 28px; }
.card {
  padding: 22px 20px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.vote__btn { position: relative; }
.vote__btn svg { width: 22px; height: 22px; }
.vote__done { display: none !important; }
.vote__btn.is-busy { opacity: .75; }
.vote__btn.is-done {
  background: var(--sun);
  color: var(--ink);
  box-shadow: none;
  cursor: default;
}
.vote__btn.is-done .vote__icon { display: none; }
.vote__btn.is-done .vote__done { display: block !important; animation: pop .5s var(--ease) both; }
.vote__btn.is-pulse { animation: thump .5s var(--ease); }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 18px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-faint);
  text-align: center;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.label {
  display: block;
  margin-bottom: 8px;
  font-size: .9375rem;
  font-weight: 600;
}
.field { display: flex; flex-direction: column; gap: 10px; }
.input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 16px;
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--ink);
  transition: border-color .2s ease, background-color .2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder { color: var(--ink-faint); opacity: 1; }
.input:hover { border-color: var(--ink-faint); }
.input:focus-visible {
  outline: 3px solid var(--coral-ink);
  outline-offset: 2px;
  border-color: var(--ink);
  background: var(--paper);
  border-radius: 16px;
}
.input[aria-invalid="true"] { border-color: var(--error); }
.btn--field { min-height: 56px; border-radius: 16px; }
.btn--field:focus-visible { border-radius: 16px; }
.btn.is-busy { opacity: .7; pointer-events: none; }

.form-note {
  margin-top: 10px;
  text-wrap: pretty;
  font-size: .875rem;
  line-height: 1.45;
  color: var(--ink-faint);
}
.form-note--center { text-align: center; }
.form-note.is-ok { color: var(--ok); font-weight: 500; }
.form-note.is-bad { color: var(--error); font-weight: 500; }
.form-error {
  margin-top: 10px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--error);
}

.thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 24px 4px 2px;
  border-top: 1px solid var(--line);
  text-align: center;
}
/* Focus is moved here by script after joining. Keep its shape: the global
   :focus-visible radius was bending the top border into a curve. */
.thanks:focus, .thanks:focus-visible { outline: none; border-radius: 0; }
.thanks__badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sun);
  animation: pop .55s var(--ease) both;
}
.thanks__badge svg { width: 26px; height: 26px; color: var(--ink); }
.thanks__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.75rem;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-top: 4px;
}
.thanks__text { max-width: 26em; color: var(--ink-soft); margin-bottom: 8px; }

/* Back the build (hidden unless BACK_URL is set) */
.back { padding: 0 0 80px; }
.back__panel {
  padding: 32px 24px;
  border-radius: var(--r-lg);
  background: #FFF1C9;
  border: 1px solid #F5DE9A;
}
.back__panel .btn { margin-top: 24px; }

/* Footer */
.foot { padding: 0 0 44px; }
.care {
  display: flex;
  gap: 14px;
  padding: 20px;
  border-radius: var(--r);
  background: rgba(255, 227, 211, .55);
  border: 1px solid #F6D7C4;
}
.care__icon { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--coral-ink); }
.care__title { font-weight: 600; }
.care__text { margin-top: 4px; font-size: .96875rem; color: var(--ink-soft); }
.care__text a {
  color: var(--coral-ink);
  font-weight: 600;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  white-space: nowrap;
}
.foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.foot__row .brand { margin-right: auto; }
.foot__line { font-size: .875rem; color: var(--ink-faint); }
.foot__line a { color: var(--ink-soft); text-underline-offset: 3px; }

/* Thanks page (no-JS fallback) */
.page-thanks {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px var(--gutter);
}
.page-thanks__inner { max-width: 32rem; text-align: center; display: grid; justify-items: center; gap: 16px; }
.page-thanks .h2 { margin-top: 8px; }
.page-thanks .body-lg { margin-top: 0; }
.page-thanks .foot__line { margin-top: 12px; }

/* Scroll reveal (only applied by JS to content below the first screen) */
.rv { opacity: 0; transform: translateY(22px); }
.rv.in {
  opacity: 1;
  transform: none;
  transition: opacity .8s ease, transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-rv="1"] { --d: .08s; }
[data-rv="2"] { --d: .16s; }
[data-rv="3"] { --d: .24s; }
[data-rv="4"] { --d: .32s; }

/* Hero entrance */
.hero__copy > * { animation: rise .9s var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: .06s; }
.hero__copy > :nth-child(3) { animation-delay: .14s; }
.hero__copy > :nth-child(4) { animation-delay: .22s; }
.hero__visual { animation: rise 1.1s var(--ease) .18s both; }

/* Keyframes */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 70%, 100% { transform: scale(2.8); opacity: 0; } }
@keyframes tick { from { opacity: .2; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-3px); opacity: 1; } }
@keyframes thump { 0% { transform: scale(1); } 40% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes notifRow { from { grid-template-rows: 0fr; } to { grid-template-rows: 1fr; } }
@keyframes notifCard { from { opacity: 0; transform: translateY(-12px) scale(.96); } to { opacity: 1; transform: none; } }

/* Small phones */
@media (max-width: 359px) {
  .nav .btn--sm { padding: 0 .85em; font-size: .875rem; }
  .caption { font-size: .75rem; }
}

/* 480+ */
@media (min-width: 480px) {
  .field { flex-direction: row; }
  .field .input { flex: 1; min-width: 0; }
  .card { padding: 28px; }
}

/* 720+ */
@media (min-width: 720px) {
  .hero { padding-top: 40px; }
  .phone-crop { height: 540px; }
  .how { padding: 96px 0 72px; }
  .beats { gap: 14px; margin-top: 36px; }
  .beat {
    grid-template-columns: auto minmax(0, 1fr) 264px;
    grid-template-rows: auto 1fr;
    column-gap: 18px;
    padding: 22px;
    background: var(--paper);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  }
  .beat:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
  .beat__num { font-size: 1.35rem; line-height: 1.2; }
  .beat__title { font-size: 1.2rem; align-self: end; }
  .beat__text { align-self: start; }
  .beat__stage {
    grid-column: 3;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 140px;
    padding: 18px 16px;
    border-radius: 16px;
    background: var(--bg);
  }
  .beat__stage--chat { align-items: stretch; }
  .beat__stage--chat .bubble { font-size: .875rem; }

  .reveal__panel { padding: 64px 56px 56px; }
  .want { padding: 88px 0 112px; }
  .back__panel { padding: 48px; }
  .care { padding: 24px 26px; }
}

/* Rhythm toggle (beat 1) */
.seg {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}
.seg__btn {
  position: relative;
  z-index: 1;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  cursor: pointer;
  transition: color .3s ease;
}
.seg__btn[aria-pressed="true"] { color: var(--bg); }
.seg__thumb {
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--ink);
  transition: transform .45s var(--ease);
}
.seg[data-active="2"] .seg__thumb { transform: translateX(100%); }
.seg__out { font-size: .9375rem; color: var(--ink-soft); }
.seg__out b { color: var(--ink); font-variant-numeric: tabular-nums; }

.mini-notif {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 260px;
  padding: 12px 13px;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  text-align: left;
}
.mini-notif .notif__text { font-size: .875rem; }
.mini-notif .notif__meta { font-size: .78125rem; }

/* 1024+: three equal columns */
@media (min-width: 1024px) {
  .beats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
  .beat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 26px 24px 24px;
  }
  .beat__num { line-height: 1; margin-bottom: 8px; }
  .beat__title, .beat__text { align-self: auto; }
  .beat__text { margin-bottom: 18px; }
  .beat__stage { margin-top: auto; min-height: 150px; padding: 20px 16px; }
}

/* 960+ */
@media (min-width: 960px) {
  .hero { padding-top: 56px; padding-bottom: 24px; }
  .hero::before {
    top: 0;
    bottom: -80px;
    height: auto;
    background:
      radial-gradient(circle 420px at 76% 48%, rgba(255, 214, 107, .55), rgba(255, 214, 107, 0) 70%),
      radial-gradient(circle 340px at 84% 60%, rgba(255, 106, 61, .26), rgba(255, 106, 61, 0) 72%);
  }
  .hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: center;
    gap: 40px;
    min-height: min(720px, calc(100vh - 64px));
  }
  .phone-crop { width: 100%; margin-inline: 0; height: auto; overflow: visible; -webkit-mask-image: none; mask-image: none; padding-bottom: 8px; }
  .phone { width: 300px; }
  .caption { position: static; transform: none; margin-top: 26px; }
  .want__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 72px; }
  .card { padding: 36px; }
}

@media (hover: none) {
  .beat:hover { transform: none; box-shadow: none; }
}

/* Reduced motion: everything still shows, nothing moves. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .pill__dot::after { display: none; }
  .rv { opacity: 1; transform: none; }
}
