/* ============================================================
   everdate · marketing site
   imports design-system/tokens.css for all variables
   ============================================================ */

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(120% 70% at 50% -10%, #f8f9f6 0%, rgba(248,249,246,0) 55%),
    linear-gradient(180deg, var(--screen-top) 0%, var(--screen-bot) 100%);
  overflow-x: clip;
}
img { display: block; }
::selection { background: var(--ink); color: var(--paper); }

/* ---------- scroll reveal ---------- */
.rv {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: 0.08s; }
.rv.d2 { transition-delay: 0.16s; }
.rv.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(680px, calc(100vw - 32px));
  height: 58px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 10px 0 24px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--card-line);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-floating);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.nav .wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: 0;
  color: var(--ink);
  text-decoration: none;
}
.nav .links {
  display: flex; align-items: center; gap: 22px;
}
.nav .links a {
  font-weight: 600; font-size: 14.5px; letter-spacing: 0;
  color: var(--muted); text-decoration: none;
  transition: color 0.2s ease;
}
.nav .links a:hover { color: var(--ink); }
.nav .links a.cta {
  height: 40px; padding: 0 20px;
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-pill);
  display: inline-flex; align-items: center;
  font-weight: 700; font-size: 14px; letter-spacing: 0;
  text-decoration: none;
  box-shadow: var(--sh-ink);
  transition: transform 0.2s ease;
}
.nav .cta:hover { transform: translateY(-1px); }
@media (max-width: 640px) {
  .nav .links a:not(.cta) { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 140px 24px 100px;
}
.hero .eyebrow, .hero h1, .hero .sub, .hero .waitlist, .hero .form-note {
  position: relative;
  z-index: 1;
}
.hero .eyebrow {
  font-weight: 700; font-size: 13px;
  letter-spacing: 0; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 116px;
  line-height: 0.92;
  letter-spacing: 0;
  max-width: 11ch;
  text-wrap: balance;
}
.hero .sub {
  margin: 26px auto 0;
  max-width: 480px;
  font-weight: 500;
  font-size: 19px;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.hero .scroll-hint {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  animation: hint-bob 2.4s ease-in-out infinite;
}
@keyframes hint-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero .scroll-hint { animation: none; }
}

/* floating invite cards */
.float-card {
  position: absolute;
  width: 190px;
  padding: 10px 10px 14px;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--card-line);
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(40, 34, 26, 0.14);
  pointer-events: none;
  z-index: 0;
}
.float-card img.poster {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 13px;
}
.float-card .cap {
  margin-top: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0;
  color: var(--ink);
  text-align: left;
  padding-left: 2px;
}
.float-card.fc1 { top: 16%; left: 6%; transform: rotate(-7deg); }
.float-card.fc2 { top: 10%; right: 7%; transform: rotate(5deg); }
.float-card.fc3 { bottom: 14%; left: 10%; transform: rotate(4deg); width: 170px; }
.float-card.fc4 { bottom: 11%; right: 9%; transform: rotate(-5deg); width: 175px; }
.float-sticker {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 8px 18px rgba(40, 34, 26, 0.16));
}
.float-sticker.fs1 { width: 84px; top: 27%; right: 22%; transform: rotate(10deg); }
.float-sticker.fs2 { width: 72px; bottom: 24%; left: 24%; transform: rotate(-12deg); }
@media (max-width: 900px) {
  .float-card { width: 130px; border-radius: 16px; }
  .float-card .cap { font-size: 12px; }
  .float-card.fc1 { top: 11%; left: -3%; }
  .float-card.fc2 { top: 7%; right: 0; }
  .float-card.fc3 { bottom: 9%; left: -2%; }
  .float-card.fc4 { bottom: 7%; right: 0; }
  .float-sticker.fs1 { width: 58px; top: 22%; right: 12%; }
  .float-sticker.fs2 { width: 52px; bottom: 19%; left: 13%; }
}

/* ---------- waitlist form ---------- */
.waitlist {
  margin-top: 38px;
  display: flex; align-items: center; gap: 10px;
  width: min(440px, 100%);
  height: 62px;
  padding: 5px 5px 5px 22px;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--card-line);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-floating);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.waitlist input {
  flex: 1; min-width: 0;
  border: 0; background: transparent; outline: none;
  font-family: var(--font);
  font-weight: 500; font-size: 16px;
  color: var(--ink); letter-spacing: 0;
}
.waitlist input::placeholder { color: rgba(22,19,15,0.4); }
.waitlist button {
  flex: none;
  height: 52px; padding: 0 26px;
  border: 0; cursor: pointer;
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-pill);
  font-family: var(--font);
  font-weight: 700; font-size: 15px; letter-spacing: 0;
  box-shadow: var(--sh-ink);
  transition: transform 0.2s ease;
}
.waitlist button:hover { transform: translateY(-1px); }
.waitlist button:disabled { cursor: wait; opacity: 0.78; transform: none; }
.waitlist.done { justify-content: center; padding: 5px 22px; }
.waitlist.done .thanks {
  font-weight: 700; font-size: 16px; letter-spacing: 0; color: var(--ink);
}
.waitlist.error {
  border-color: rgba(176, 42, 42, 0.24);
  box-shadow: 0 6px 18px rgba(176, 42, 42, 0.08);
}
.form-note {
  margin-top: 14px;
  font-weight: 500; font-size: 13px;
  color: var(--muted); letter-spacing: 0;
}
.form-note.error-note { color: #b02a2a; }
@media (max-width: 480px) {
  .waitlist { height: auto; flex-direction: column; padding: 14px; border-radius: 28px; gap: 10px; }
  .waitlist input { width: 100%; height: 56px; text-align: center; font-size: 16px; }
  .waitlist button { width: 100%; height: 56px; }
}

/* ---------- marquee ---------- */
.marquee {
  position: relative;
  padding: 30px 0 80px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee .track {
  display: flex; gap: 22px;
  width: max-content;
  animation: marquee-slide 36s linear infinite;
  will-change: transform;
}
@keyframes marquee-slide {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 11px)); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee .track { animation: none; }
}
.marquee .m-card {
  width: 240px;
  flex: none;
  padding: 9px 9px 13px;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--card-line);
  border-radius: 20px;
  box-shadow: var(--sh-card);
}
.marquee .m-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 13px; }
.marquee .m-card .cap {
  margin-top: 9px; padding-left: 2px;
  font-family: var(--display); font-weight: 700; font-size: 15px;
  color: var(--ink); letter-spacing: 0;
}
.marquee .m-card .meta {
  margin-top: 2px; padding-left: 2px;
  font-weight: 500; font-size: 12px; color: var(--muted);
}

/* ---------- sections shared ---------- */
.section {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 90px 24px;
}
.kicker {
  font-weight: 700; font-size: 13px;
  letter-spacing: 0; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 54px;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}
.lede {
  margin: 18px 0 0;
  max-width: 460px;
  font-weight: 500;
  font-size: 17px; line-height: 1.45;
  letter-spacing: 0;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ---------- how it works ---------- */
.steps {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step-card {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-card);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 28px 26px 30px;
}
.step-card .num {
  font-family: var(--display);
  font-weight: 700; font-size: 15px;
  color: var(--muted);
  letter-spacing: 0;
}
.step-card .icon {
  margin-top: 22px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
}
.step-card h3 {
  margin: 18px 0 0;
  font-family: var(--display);
  font-weight: 700; font-size: 24px;
  letter-spacing: 0; line-height: 1.05;
}
.step-card p {
  margin: 10px 0 0;
  font-weight: 500; font-size: 15px; line-height: 1.45;
  letter-spacing: 0;
  color: var(--ink-soft);
  text-wrap: pretty;
}
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero h1 { font-size: 92px; }
  .h2 { font-size: 48px; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 70px; }
  .hero .sub { font-size: 17px; }
  .h2 { font-size: 40px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 58px; }
  .h2 { font-size: 36px; }
}

/* ---------- phone preview ---------- */
.preview {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(32px, 6vw, 90px);
}
.preview .copy { max-width: 420px; }
.preview .points {
  margin: 30px 0 0; padding: 0;
  list-style: none;
  display: flex; flex-direction: column; gap: 16px;
}
.preview .points li {
  display: flex; align-items: flex-start; gap: 12px;
  font-weight: 600; font-size: 16px; letter-spacing: 0;
  color: var(--ink); line-height: 1.35;
}
.preview .points .pip {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.phone {
  position: relative;
  width: 320px;
  border-radius: 48px;
  background: #fdfdfc;
  border: 1px solid rgba(22,19,15,0.1);
  box-shadow:
    0 40px 90px rgba(40, 34, 26, 0.22),
    0 0 0 10px #16130f,
    0 0 0 11.5px rgba(255,255,255,0.25);
  overflow: hidden;
}
.phone .screen {
  position: relative;
  padding: 54px 18px 26px;
  background:
    radial-gradient(120% 80% at 50% -10%, #f8f9f6 0%, rgba(248,249,246,0) 55%),
    linear-gradient(180deg, var(--screen-top) 0%, var(--screen-bot) 100%);
}
.phone .island {
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px;
  border-radius: 999px;
  background: #16130f;
}
.phone .p-eyebrow {
  text-align: center;
  font-weight: 700; font-size: 11px;
  letter-spacing: 0; text-transform: uppercase;
  color: var(--muted);
}
.phone .p-title {
  margin-top: 8px;
  text-align: center;
  font-family: var(--display);
  font-weight: 700; font-size: 27px;
  letter-spacing: 0; line-height: 1;
}
.phone .p-poster {
  margin: 18px auto 0;
  width: 100%;
  padding: 9px 9px 12px;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--card-line);
  border-radius: 18px;
  box-shadow: var(--sh-card);
  transform: rotate(-1.6deg);
}
.phone .p-poster img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 11px; }
.phone .p-rows {
  margin-top: 18px;
  display: flex; flex-direction: column; gap: 9px;
}
.phone .p-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 15px;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 15px;
  box-shadow: var(--sh-soft);
  font-weight: 600; font-size: 13.5px; letter-spacing: 0;
  color: var(--ink);
}
.phone .p-row [data-lucide] { color: rgba(22,19,15,0.5); }
.phone .p-cta {
  margin-top: 18px;
  height: 48px;
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-pill);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; letter-spacing: 0;
  box-shadow: var(--sh-ink);
}
/* ---------- discover phone variant ---------- */
.phone.discover .screen { padding: 54px 16px 26px; }
.phone .p-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 0 2px;
}
.phone .p-title-sm {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0;
  color: var(--ink);
  line-height: 1;
}
.phone .p-search {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 11px;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 999px;
  font-weight: 600; font-size: 11px; letter-spacing: 0;
  color: var(--muted);
  box-shadow: var(--sh-soft);
}
.phone .p-chips {
  margin-top: 16px;
  display: flex; align-items: center; gap: 7px;
  overflow: hidden;
}
.phone .p-chip {
  height: 26px; padding: 0 12px;
  display: inline-flex; align-items: center;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 999px;
  font-weight: 600; font-size: 11px; letter-spacing: 0;
  color: var(--muted);
  white-space: nowrap;
}
.phone .p-chip.active {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.phone .p-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.phone .p-tile {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1/1;
  background: rgba(22,19,15,0.06);
}
.phone .p-tile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.phone .p-star {
  position: absolute;
  bottom: 6px; left: 6px;
  display: inline-flex; align-items: center; gap: 4px;
  height: 20px; padding: 0 7px;
  background: rgba(22,19,15,0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--paper);
  border-radius: 999px;
  font-weight: 700; font-size: 10px; letter-spacing: 0;
}
.phone .p-remix {
  position: absolute;
  top: 6px; right: 6px;
  display: inline-flex; align-items: center; gap: 4px;
  height: 20px; padding: 0 8px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  font-weight: 700; font-size: 10px; letter-spacing: 0;
  box-shadow: 0 2px 6px rgba(20,14,5,0.18);
}

@media (max-width: 900px) {
  .preview { grid-template-columns: 1fr; justify-items: center; text-align: left; }
  .phone { width: 300px; }
}

/* ---------- proof ---------- */
.proof-wrap {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.review-card {
  margin-top: 44px;
  width: min(560px, 100%);
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-floating);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 38px 42px 34px;
}
.review-card .stars {
  display: flex; justify-content: center; gap: 5px;
  color: var(--ink);
}
.review-card .quote-ttl {
  margin-top: 18px;
  font-family: var(--display);
  font-weight: 700; font-size: 27px; letter-spacing: 0;
}
.review-card p {
  margin: 14px 0 0;
  font-weight: 500; font-size: 16.5px; line-height: 1.5;
  letter-spacing: 0; color: var(--ink-soft);
  text-wrap: pretty;
}
.review-card .who {
  margin-top: 20px;
  font-weight: 700; font-size: 14px; color: var(--muted);
  letter-spacing: 0;
}

/* ---------- final cta ---------- */
.final {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding-top: 40px;
  padding-bottom: 140px;
}
.final .h2 { max-width: 14ch; }
.final .waitlist { margin-top: 34px; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid rgba(22,19,15,0.08);
  padding: 38px 24px 46px;
}
.footer .inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
}
.footer .wordmark {
  font-family: var(--display);
  font-weight: 700; font-size: 21px; letter-spacing: 0;
  color: var(--ink);
}
.footer .fine {
  font-weight: 500; font-size: 13.5px; color: var(--muted);
  letter-spacing: 0;
}
@media (max-width: 560px) {
  .footer .inner { flex-direction: column; }
}
