/* spokelings.com: dusk colours from the game, rounded type, big friendly shapes. */
:root {
  --dusk: #3f3a6b;
  --dusk-deep: #2a2346;
  --lilac: #9c86b0;
  --sky: #5d6aa6;
  --peach: #f3b27f;
  --gold: #f8cb7c;
  --coral: #f2876a;
  --coral-deep: #d96a4e;
  --teal: #2f9c95;
  --berry: #c45a74;
  --cream: #fff8ec;
  --paper: #fffdf8;
  --ink: #2a2030;
  --ink-soft: #645870;
  --line: rgba(63, 58, 107, 0.14);
  --error: #b2361c;
  --round: ui-rounded, 'SF Pro Rounded', 'Nunito', 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --shadow: 0 18px 40px -18px rgba(42, 35, 70, 0.45);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 18px/1.6 var(--round); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; color: var(--dusk); }
h3 { font-size: 22px; font-weight: 800; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--cream); padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

/* --- Buttons --- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px;
  border: 0; border-radius: 999px; background: var(--coral); color: #fff; font: 800 17px var(--round); text-decoration: none;
  cursor: pointer; box-shadow: 0 10px 22px -10px rgba(217, 106, 78, 0.8); transition: transform 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.pill:hover { background: var(--coral-deep); transform: translateY(-1px); }
.pill:active { transform: translateY(1px); }
.pill:disabled { opacity: 0.6; cursor: progress; transform: none; }
.pill--ghost { min-height: 44px; padding: 0 18px; background: rgba(255, 248, 236, 0.16); border: 1.5px solid rgba(255, 248, 236, 0.6); box-shadow: none; backdrop-filter: blur(6px); }
.pill--ghost:hover { background: rgba(255, 248, 236, 0.28); }
.pill--quiet { background: transparent; color: var(--ink-soft); box-shadow: none; }
.pill--quiet:hover { background: rgba(63, 58, 107, 0.08); }

/* --- Hero: the game's own sunset, words on the left --- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; flex-direction: column; color: var(--cream); background: var(--dusk-deep); overflow: hidden; isolation: isolate; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; z-index: -2; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(42, 35, 70, 0.88) 0%, rgba(42, 35, 70, 0.55) 42%, rgba(42, 35, 70, 0) 70%),
    linear-gradient(0deg, rgba(42, 35, 70, 0.35), rgba(42, 35, 70, 0) 30%);
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px clamp(20px, 5vw, 64px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; text-decoration: none; }
.brand img { border-radius: 10px; }
.hero__body { width: min(620px, 100%); margin: auto 0; padding: 24px clamp(20px, 5vw, 64px) 120px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 248, 236, 0.14); border: 1px solid rgba(255, 248, 236, 0.35); font-size: 14px; font-weight: 700; backdrop-filter: blur(6px);
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(248, 203, 124, 0.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(248, 203, 124, 0); } 100% { box-shadow: 0 0 0 0 rgba(248, 203, 124, 0); } }
.hero h1 { font-size: clamp(42px, 6.8vw, 80px); font-weight: 900; text-shadow: 0 4px 30px rgba(42, 35, 70, 0.4); }
.hl { background: linear-gradient(90deg, var(--gold), var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lede { margin: 18px 0 28px; font-size: clamp(18px, 2vw, 22px); line-height: 1.5; opacity: 0.95; max-width: 34em; }
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; }

/* --- Sign-up (step one): an email and a tick --- */
.join { display: grid; gap: 12px; max-width: 540px; }
.join__row { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(255, 248, 236, 0.96); box-shadow: var(--shadow); }
.join__row input {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent;
  font: 600 17px var(--round); color: var(--ink);
}
.join__row input:focus-visible { outline: none; }
.join__row:focus-within { box-shadow: var(--shadow), 0 0 0 3px var(--gold); }
.join__row input[aria-invalid='true'] { color: var(--error); }
.tick { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.45; cursor: pointer; }
.tick input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--coral); }
.tick input[aria-invalid='true'] { outline: 2px solid var(--error); outline-offset: 2px; }
.msg { margin: 0; font-size: 15px; font-weight: 700; }
.msg:empty { display: none; }
.join .msg { color: #ffd9cf; }
.join--light .msg, .more .msg { color: var(--error); }
.msg.is-good { color: var(--teal); }
.join .msg.is-good { color: var(--gold); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* --- Sections --- */
main { overflow: hidden; }
main > section { width: min(1120px, 100% - 40px); margin: 0 auto; padding: clamp(48px, 8vw, 96px) 0 0; }
.section-head { display: grid; gap: 10px; max-width: 640px; margin-bottom: 32px; }
.section-head p, .feel > p { margin: 0; color: var(--ink-soft); }

main > section.status { padding-top: 28px; }
.status p {
  margin: 0; padding: 16px 22px; border-radius: 18px; background: var(--paper); border: 1px dashed rgba(63, 58, 107, 0.3);
  font-size: 16px; color: var(--ink-soft);
}
.status strong { color: var(--dusk); }

.feel h2 { margin-bottom: 28px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { position: relative; padding: 28px 24px 26px; border-radius: 26px; background: var(--paper); box-shadow: var(--shadow); transition: transform 0.2s ease; }
.card:hover { transform: translateY(-4px) rotate(-0.4deg); }
.card h3 { margin: 16px 0 8px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 17px; }
.card__icon { width: 56px; height: 56px; padding: 10px; border-radius: 18px; }
.card--teal .card__icon { color: var(--teal); background: rgba(47, 156, 149, 0.12); }
.card--sun .card__icon { color: var(--coral-deep); background: rgba(242, 135, 106, 0.14); }
.card--berry .card__icon { color: var(--berry); background: rgba(196, 90, 116, 0.12); }

.riders { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rider { position: relative; border-radius: 28px; overflow: hidden; background: var(--dusk); box-shadow: var(--shadow); aspect-ratio: 4 / 5; transition: transform 0.25s ease; }
.rider:nth-child(2) { transform: translateY(18px); }
.rider:hover { transform: translateY(-6px); }
.rider:nth-child(2):hover { transform: translateY(10px); }
.rider img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; transition: transform 0.4s ease; }
.rider:hover img { transform: scale(1.04); }
.rider__text { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 20px; color: var(--cream); background: linear-gradient(0deg, rgba(42, 35, 70, 0.85), rgba(42, 35, 70, 0)); }
.rider__text h3 { font-size: 28px; }
.rider__text p { margin: 4px 0 0; font-size: 16px; opacity: 0.92; }

main > section.earned { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.earned > div:last-child { display: grid; gap: 14px; }
.earned p { margin: 0; color: var(--ink-soft); }
.earned__items {
  display: flex; align-items: flex-end; justify-content: center; gap: 4%; padding: 36px 24px 28px; border-radius: 30px;
  background: linear-gradient(160deg, var(--sky), #8b78a8 55%, var(--peach));
  box-shadow: var(--shadow);
}
.earned__items svg { width: 28%; height: auto; animation: bob 3.6s ease-in-out infinite; filter: drop-shadow(0 8px 10px rgba(42, 35, 70, 0.3)); }
.earned__items svg:nth-child(2) { width: 28%; animation-delay: -1.2s; }
.earned__items svg:nth-child(3) { width: 28%; animation-delay: -2.4s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

.modes { text-align: center; }
.mode-list { list-style: none; margin: 28px auto 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); max-width: 900px; counter-reset: m; }
.mode-list li { display: grid; align-content: start; gap: 6px; padding: 22px 18px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); counter-increment: m; }
.mode-list li::before { content: counter(m); justify-self: center; width: 32px; height: 32px; border-radius: 50%; display: grid; place-content: center; background: var(--dusk); color: var(--cream); font-weight: 800; font-size: 15px; }
.mode-list li:nth-child(n + 2) { opacity: 0.75; }
.mode-list b { font-size: 22px; color: var(--dusk); }
.mode-list span { font-size: 16px; color: var(--ink-soft); }
.fine { margin: 20px 0 0; font-size: 15px; color: var(--ink-soft); }

/* The closing call to action: a sunset card. Its own spacing, unlike the other sections. */
main > section.cta {
  display: grid; justify-items: center; text-align: center; gap: 10px;
  margin: clamp(48px, 8vw, 96px) auto clamp(56px, 8vw, 96px); padding: clamp(40px, 6vw, 72px) 24px;
  border-radius: 36px; background: radial-gradient(120% 140% at 50% 0%, var(--peach) 0%, #c48aa3 45%, var(--sky) 100%); color: var(--cream);
  box-shadow: var(--shadow);
}
.cta h2 { color: var(--cream); }
.cta > p { margin: 0 0 14px; font-size: 18px; opacity: 0.95; }
.cta .join { width: min(540px, 100%); text-align: left; }

.foot { padding: 0 20px 48px; text-align: center; font-size: 15px; color: var(--ink-soft); }
.foot p { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; margin: 0; }

/* --- Step two: the optional questions, in a dialog --- */
.more {
  width: min(600px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: 0; border-radius: 28px;
  background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(20, 15, 40, 0.6);
}
.more::backdrop { background: rgba(42, 35, 70, 0.55); backdrop-filter: blur(4px); }
.more form { padding: clamp(22px, 4vw, 34px); display: grid; gap: 0; }
.more [data-step] { display: grid; gap: 18px; }
.more [data-step][hidden] { display: none; }
.more__kicker { margin: 0; font-weight: 800; color: var(--coral-deep); }
.more h2 { font-size: clamp(28px, 4vw, 36px); margin-top: -10px; }
.more__lede { margin: -8px 0 4px; color: var(--ink-soft); font-size: 16px; }
.q { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; font-weight: 700; font-size: 16px; min-width: 0; }
.q legend { padding: 0; margin-bottom: 10px; }
.q select, .q textarea, .q input[type='text'] {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff;
  font: 500 16px var(--round); color: var(--ink);
}
.q textarea { resize: vertical; min-height: 64px; }
.q__follow { display: grid; gap: 8px; margin-top: 4px; font-weight: 600; }
.q__follow[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 15px; transition: all 0.15s ease; }
.chip input:checked + span { background: var(--dusk); border-color: var(--dusk); color: var(--cream); }
.chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.tick--dark { font-weight: 600; }
.more__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }

/* --- Privacy page --- */
.page { background: var(--paper); }
.prose { width: min(700px, 100% - 40px); margin: 0 auto; padding: 40px 0 72px; }
.prose h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 900; color: var(--dusk); margin: 18px 0 10px; }
.prose h2 { font-size: 24px; margin: 30px 0 6px; }
.prose p { margin: 8px 0; }
.prose .back { font-weight: 700; text-decoration: none; color: var(--dusk); }
.hint { font-size: 14px; color: var(--ink-soft); }

@media (max-width: 760px) {
  .hero { min-height: auto; }
  .hero::before { background: linear-gradient(0deg, rgba(42, 35, 70, 0.92) 30%, rgba(42, 35, 70, 0.25) 75%); }
  .hero__body { padding-top: 120px; padding-bottom: 96px; }
  .topbar .pill--ghost { display: none; }
  .join__row { flex-direction: column; border-radius: 22px; }
  .join__row .pill { width: 100%; }
  .riders { grid-template-columns: 1fr; }
  .rider:nth-child(2), .rider:nth-child(2):hover { transform: none; }
  .earned { grid-template-columns: 1fr; }
  .mode-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
