/* Purple Finger – shared styles for the teaser and welcome pages */
:root {
  --cream: #F6F0E6;
  --purple: #5E17EB;
  --lavender: #B07FFC;
  --ink: #18142B;
  --lime: #D7F263;
  --white: #FDFDFD;
  --muted: #4A4460;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Lexend', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--purple); }
a:hover { color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.top { flex: 1 0 auto; display: flex; flex-direction: column; }

/* Header */
.header {
  width: 100%; max-width: 1280px; margin: 0 auto; padding: 32px 24px;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.logo { width: clamp(200px, 26vw, 320px); }

/* Stickers and pills */
.sticker {
  display: inline-block; background: var(--lime); color: var(--ink);
  font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 10px 16px; border-radius: 999px; border: 2px solid var(--ink);
}
.soon-body { display: none; }

/* Hero */
.hero {
  flex: 1 0 auto; width: 100%; max-width: 1280px; margin: 0 auto; padding: 40px 24px 88px;
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
}
.hero > * { margin: 0; }
.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--purple);
}
.headline {
  max-width: 1100px;
  /* Sized so each line always fits on one line, from phones to desktop */
  font-size: min(120px, calc((100vw - 48px) / 10.6));
  line-height: 0.96; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--purple);
}
.headline span { white-space: nowrap; }
.sub {
  max-width: 820px; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.5; letter-spacing: 0.03em;
  font-weight: 500; text-wrap: balance;
}
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  background: var(--ink); color: var(--cream); font-size: 14px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 12px 18px; border-radius: 999px;
}
.pill--lime { color: var(--lime); }
.body-copy { max-width: 620px; font-size: 17px; line-height: 1.6; letter-spacing: 0.03em; text-wrap: pretty; }

/* Sign-up form */
.signup { display: flex; flex-wrap: wrap; gap: 10px; max-width: 560px; margin-top: 4px; }
.signup input {
  flex: 999 1 260px; min-width: 0; min-height: 56px; padding: 0 22px;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--white);
  font: inherit; font-size: 16px; letter-spacing: 0.03em; color: var(--ink);
}
.signup input:focus { outline: 3px solid var(--lime); outline-offset: 2px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px;
  border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.btn--solid { background: var(--purple); color: var(--cream); border: 0; }
.btn--solid:hover { background: var(--ink); color: var(--cream); }
.btn--line { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--cream); }
.signup .btn { flex: 1 0 auto; }
.signup .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.note { margin-top: -14px !important; font-size: 13px; letter-spacing: 0.06em; color: var(--muted); line-height: 1.6; }

.signup-done {
  max-width: 560px; border: 2px solid var(--ink); background: var(--lime); border-radius: 24px;
  padding: 20px 24px; font-size: 17px; line-height: 1.5; letter-spacing: 0.02em;
}
.signup-done strong { display: block; font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 4px; }
.signup-error { color: #B3261E; font-size: 15px; letter-spacing: 0.02em; margin-top: -8px !important; }

/* Welcome page extras */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Welcome page poll */
.poll { max-width: 760px; border-top: 2px solid var(--ink); padding-top: 28px; margin-top: 12px !important; }
.poll fieldset { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.poll legend { padding: 0; margin-bottom: 18px; font-size: 22px; font-weight: 600; line-height: 1.35; letter-spacing: 0.01em; }
.poll-kicker {
  display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--purple);
}
.poll-hint { display: block; margin-top: 4px; font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0.03em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 18px;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--white);
  font-size: 15px; font-weight: 500; letter-spacing: 0.02em; line-height: 1.3;
  transition: background-color .15s ease, color .15s ease;
}
.chip span::before {
  content: ""; flex: 0 0 18px; height: 18px; border: 2px solid var(--ink); border-radius: 6px; background: var(--white);
}
.chip:hover span { background: #EFE7FF; }
.chip input:checked + span { background: var(--lime); }
.chip input:checked + span::before {
  background: var(--purple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23F6F0E6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
  border-color: var(--purple);
}
.chip input:focus-visible + span { outline: 3px solid var(--purple); outline-offset: 2px; }
.poll-other-field { margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.poll-other-field label { font-size: 15px; font-weight: 600; }
.poll-other-field input {
  min-height: 52px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white);
  font: inherit; font-size: 16px; color: var(--ink);
}
.poll-other-field input:focus { outline: 3px solid var(--lime); outline-offset: 2px; }
.poll .signup-error { margin-top: 14px !important; }

/* Crossed-out ticker */
.ticker { background: var(--lime); border-top: 2px solid var(--ink); padding: 18px 0; overflow: hidden; }
.marquee {
  display: flex; width: max-content; animation: pf-scroll 60s linear infinite;
  font-size: 18px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
}
.run { display: flex; align-items: center; gap: 28px; padding-right: 28px; flex: 0 0 auto; }
.x { text-decoration: line-through; text-decoration-color: var(--purple); text-decoration-thickness: 2px; }
.sep { color: var(--purple); font-size: 12px; line-height: 1; }
@keyframes pf-scroll { to { transform: translateX(-50%); } }

/* Footer */
.footer { background: var(--ink); color: var(--cream); }
.footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 28px 24px; display: flex; flex-wrap: wrap;
  gap: 16px 28px; align-items: center; justify-content: space-between; font-size: 14px; letter-spacing: 0.06em;
}
.footer a { color: var(--lime); min-height: 44px; display: inline-flex; align-items: center; }
.footer .credit a { color: var(--cream); text-decoration: underline; text-decoration-color: var(--lime); text-underline-offset: 4px; min-height: 0; display: inline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
.footer .copy { color: #C9C1D9; }

/* Phones */
@media (max-width: 600px) {
  .soon-head { display: none; }
  .soon-body { display: inline-block; align-self: flex-start; margin-bottom: 22px !important; }
  .hero { gap: 0; padding-top: 8px; padding-bottom: 64px; }
  .eyebrow { margin-bottom: 14px !important; line-height: 1.55; }
  .headline { margin-bottom: 20px !important; line-height: 1.02; }
  .sub { margin-bottom: 24px !important; line-height: 1.45; text-wrap: pretty; }
  .sub br { display: none; }
  .pills { margin-bottom: 24px !important; }
  .body-copy { margin-bottom: 28px !important; line-height: 1.65; }
  .note { margin-top: 12px !important; text-wrap: balance; }
  .signup-error { margin-top: 12px !important; }
  .actions .btn { flex: 1 1 100%; }
  .poll { margin-top: 36px !important; }
  .poll .btn { width: 100%; }
  .welcome .sticker { margin-bottom: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee { animation: none; }
  .btn { transition: none; }
}
