/* Fonts are self-hosted (SIL Open Font License), so no visitor data goes to Google. */
@font-face { font-family: 'Fraunces'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/assets/fonts/fraunces.woff2) format('woff2-variations'), url(/assets/fonts/fraunces.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-display: swap; font-weight: 200 1000; src: url(/assets/fonts/nunito.woff2) format('woff2-variations'), url(/assets/fonts/nunito.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: italic; font-display: swap; font-weight: 200 1000; src: url(/assets/fonts/nunito-italic.woff2) format('woff2-variations'), url(/assets/fonts/nunito-italic.woff2) format('woff2'); }

/* Site-wide basics. Page layout lives inline in the templates, as it does in the design. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #FBF9F5; }
main { display: block; }
img { max-width: 100%; }
a { text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #1158D8; outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 12px; background: #4A4744; color: #FFFFFF; font: 800 16px Nunito, system-ui, sans-serif; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* Raised buttons press down a little, like the app */
a[style*="box-shadow: 0 4px 0"], a[style*="box-shadow: 0 5px 0"], button.btn-primary { transition: transform 0.08s ease, box-shadow 0.08s ease; }
a[style*="box-shadow: 0 4px 0"]:active, a[style*="box-shadow: 0 5px 0"]:active, button.btn-primary:active { transform: translateY(3px); box-shadow: none !important; }

/* Small screens: keep the header compact */
@media (max-width: 560px) {
  header nav { gap: 14px 18px !important; font-size: 15px !important; }
  header nav a[href^="http"], header nav a[href="/join"] { padding: 10px 16px !important; }
}

/* Forms (Founding Voices, waitlist) */
.tf-form { display: flex; flex-direction: column; gap: 18px; }
.tf-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.tf-label { display: flex; flex-direction: column; gap: 6px; font-weight: 800; color: #4A4744; font-size: 16px; }
.tf-label .opt { font-weight: 600; color: #8A847C; }
.tf-label .req { color: #AB561A; }
.tf-input { min-height: 48px; box-sizing: border-box; width: 100%; border-radius: 14px; border: 2px solid #8A8076; background: #FFFFFF; padding: 0 14px; font: inherit; font-weight: 600; color: #2B2724; }
textarea.tf-input { padding: 12px 14px; min-height: 120px; resize: vertical; }
.tf-input::placeholder { color: #8A847C; }
.tf-input[aria-invalid="true"] { border-color: #C45A4F; }
.tf-error { margin: 0; font-size: 14px; font-weight: 700; color: #A3443A; }
.tf-fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tf-fieldset legend { font-weight: 900; color: #4A4744; font-size: 17px; margin-bottom: 8px; padding: 0; }
.tf-pills { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.pill { min-height: 52px; padding: 12px 16px; border-radius: 16px; text-align: left; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; color: #4A4744; background: #FFFFFF; border: 2px solid #E3DDD4; box-shadow: 0 3px 0 #E3DDD4; }
.pill[aria-pressed="true"], .pill[aria-checked="true"] { color: #10241F; background: #D9F8F0; border-color: #138A72; box-shadow: 0 3px 0 #1FA585; }
.tf-note { margin: 0; padding: 12px 16px; border-radius: 14px; background: #FBF9F5; border: 2px dashed #E3DDD4; font-size: 15px; line-height: 1.5; font-weight: 600; }
.btn-primary { align-self: flex-start; padding: 16px 30px; border: 0; border-radius: 18px; background: #E47323; box-shadow: 0 5px 0 #B45716; color: #FFFFFF; font: inherit; font-size: 18px; font-weight: 900; cursor: pointer; }
.btn-primary[disabled] { opacity: 0.7; cursor: progress; }
.tf-form-error { margin: 0; padding: 12px 16px; border-radius: 14px; background: #FBECE9; border: 2px solid #E8B7AF; color: #7D2E25; font-size: 15px; font-weight: 700; }
.tf-done { display: flex; flex-direction: column; gap: 10px; }
.tf-done h3 { margin: 0; font-family: Fraunces, Georgia, serif; font-weight: 900; font-variation-settings: 'SOFT' 100; font-size: 28px; line-height: 1.15; color: #4A4744; }
.tf-done p { margin: 0; font-size: 17px; line-height: 1.55; font-weight: 600; }
.tf-fine { margin: 0; font-size: 14px; line-height: 1.6; font-weight: 600; color: #6F6760; }
.tf-fine a { color: #AB561A; font-weight: 800; }
[hidden] { display: none !important; }

/* Legal pages */
.legal h2 { margin: 18px 0 0; font-family: Fraunces, Georgia, serif; font-weight: 900; font-variation-settings: 'SOFT' 100; font-size: 24px; line-height: 1.2; color: #4A4744; }
.legal p, .legal li { font-size: 17px; line-height: 1.65; font-weight: 600; }
.legal p { margin: 0; }
.legal ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

/* Launch mode: the page shows the beta or waitlist parts (launch-switch.js flips it when the beta fills) */
html[data-mode="beta"] [data-waitlist-only], html[data-mode="waitlist"] [data-beta-only] { display: none !important; }
