@font-face {
  font-family: "Plus Jakarta Sans";
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/PlusJakartaSans-Variable.woff2") format("woff2-variations");
}

/* Same tokens as the app (src/index.css) so the site feels like PRE.P. */
:root {
  --canvas: #f5f5f7; --surface: #ffffff; --surface-2: #f5f5f7;
  --label: #1d1d1f; --label-2: #86868b; --label-3: #aeaeb2;
  --sep: rgba(0, 0, 0, .10);
  --accent: #6339c9; --accent-press: #7248dd;
  --red: #ff3b30; --green: #248a3d;
  --sh-card: 0 4px 24px rgba(0, 0, 0, .06);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #000000; --surface: #1c1c1e; --surface-2: #2c2c2e;
    --label: #f5f5f7; --label-2: #98989d; --label-3: #636366;
    --sep: rgba(255, 255, 255, .13);
    --accent: #9779ff; --accent-press: #ad93ff;
    --red: #ff453a; --green: #30d158;
    --sh-card: 0 4px 24px rgba(0, 0, 0, .5);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--label);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: 17px; line-height: 1.47; letter-spacing: -.006em; -webkit-font-smoothing: antialiased;
}
button { font: inherit; letter-spacing: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, select { font: inherit; letter-spacing: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 6px; }

.pill {
  display: inline-block; text-decoration: none;
  background: var(--accent); color: #fff; border-radius: 980px; padding: 13px 28px; font-size: 17px;
  font-weight: 600; letter-spacing: -.006em; transition: background .2s cubic-bezier(.4, 0, .2, 1);
}
.pill:hover { background: var(--accent-press); }
.pill:disabled { opacity: .6; cursor: default; }

.prep-logo { display: block; height: auto; overflow: visible; }
.prep-logo path { fill: currentColor; }
.prep-logo .prep-dot { fill: var(--accent); }

/* ---------- Landing ---------- */
.hero-wrap { min-height: calc(100dvh - 64px); display: grid; place-items: center; padding: 48px 16px; }
.hero { text-align: center; max-width: 620px; }
.hero .prep-logo { width: clamp(240px, 37vw, 520px); margin: 0 auto 18px; }
.hero p { font-size: clamp(18px, 2.3vw, 22px); line-height: 1.38; letter-spacing: -.016em; color: var(--label-2); margin: 0 auto 34px; max-width: 26ch; }

/* Everything but the logo waits for the logo's 2.8s intro, then fades in (same as the app's Home). */
.after-intro { animation: fadeIn .5s ease 2.8s both; }
@keyframes fadeIn { from { opacity: 0; visibility: hidden; } to { opacity: 1; visibility: visible; } }
@media (prefers-reduced-motion: reduce) { .after-intro { animation: none; } }

/* ---------- Join ---------- */
.join-wrap { min-height: calc(100dvh - 64px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px 56px; }
.join-logo { color: var(--label); margin-bottom: 26px; }
.join-logo .prep-logo { width: 150px; }
.card {
  width: 100%; max-width: 440px; background: var(--surface); border-radius: 20px; box-shadow: var(--sh-card);
  padding: 30px 28px 28px;
}
.card h1 { font-size: 28px; font-weight: 600; letter-spacing: -.022em; line-height: 1.2; margin: 0 0 6px; }
.card .sub { color: var(--label-2); font-size: 15.5px; margin: 0 0 24px; }

.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; font-weight: 600; color: var(--label-2); margin: 0 2px 6px; }
.field span em { font-style: normal; font-weight: 400; color: var(--label-3); }
.field input, .field select {
  width: 100%; background: var(--surface-2); border: 0; border-radius: 12px; padding: 12px 14px; font-size: 16px;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2386868b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.field input:focus, .field select:focus { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.card .pill { width: 100%; margin-top: 8px; }
.msg { font-size: 14px; margin: 12px 2px 0; min-height: 1em; }
.msg.err { color: var(--red); }
.fine { font-size: 12.5px; color: var(--label-3); text-align: center; margin: 16px 0 0; }

.done { text-align: center; padding: 10px 0 4px; }
.done .check {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
}
.done p { color: var(--label-2); margin: 0; }
.back { margin-top: 22px; font-size: 14.5px; font-weight: 600; color: var(--accent); text-decoration: none; }
.back:hover { text-decoration: underline; }
[hidden] { display: none !important; }
.done .spam { font-size: 14px; color: var(--label-2); margin-top: 12px; }
.done .back { display: inline-block; }

/* ---------- Legal pages + footer ---------- */
.legal-wrap { min-height: calc(100dvh - 64px); display: flex; flex-direction: column; align-items: center; padding: 48px 16px 24px; }
.legal-wrap .join-logo { display: block; }
.card.legal { max-width: 680px; padding: 36px 36px 30px; }
.legal h1 { font-size: 32px; }
.legal h2 { font-size: 19px; font-weight: 700; letter-spacing: -.016em; margin: 30px 0 8px; }
.legal p, .legal li { font-size: 16px; line-height: 1.6; color: var(--label); margin: 0 0 12px; }
.legal ul { padding-left: 20px; margin: 0 0 12px; }
.legal li { margin-bottom: 8px; }
.legal a:not(.pill) { color: var(--accent); }
.legal .updated, .legal .small { color: var(--label-2); font-size: 14px; }
.legal .pill { margin: 6px 0 4px; }
.site-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; padding: 18px 16px 26px; font-size: 13.5px; }
.site-foot a { color: var(--label-2); text-decoration: none; }
.site-foot a:hover { color: var(--label); text-decoration: underline; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 2px 6px; font-size: 13.5px; line-height: 1.45; color: var(--label-2); cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); }
.consent a, .fine a { color: var(--accent); }
@media (max-width: 520px) { .card.legal { padding: 28px 20px 24px; } }
