/* Shared look for the small pages (privacy, terms, contact, 404). Same tokens and buttons as the landing page and app. */
:root {
  color-scheme: light;
  --ink: #1c2a4a; --ink-soft: #4b5a7c; --line: #dde7f3; --white: #ffffff; --sky: #e3f5ff;
  --sea: #2fb6ea; --sea-deep: #1592c8; --foam: #c4ecff; --brass: #ffbe1f; --brass-deep: #d99300; --steel: #a8b3c6;
  --good: #58c322; --good-deep: #3e9a12; --good-bg: #e6f8d9; --bad: #ff5a5f; --bad-deep: #d33a40; --bad-bg: #ffe5e5;
  --locked: #e2e8f1; --locked-deep: #b8c2d2;
  --font-display: "Baloo 2", "Nunito", ui-rounded, system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font-body); font-weight: 700; font-size: 17px; line-height: 1.6; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--sea-deep); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; border-radius: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 32px, 1120px); margin-inline: auto; }

.top { background: var(--sky); padding-bottom: 46px; position: relative; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 26px; white-space: nowrap; }
.logo svg { width: 30px; height: 35px; }
.top h1 { font-size: clamp(38px, 6vw, 58px); margin-top: 26px; }
.top .lede { margin-top: 10px; color: var(--ink-soft); font-size: 18px; max-width: 56ch; }
.top .wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 40px; display: block; }

.btn { --face: var(--brass); --lip: var(--brass-deep); --text: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 16px; padding: 14px 22px; background: var(--face); color: var(--text); font: 900 15px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; box-shadow: 0 5px 0 var(--lip); transition: transform .08s, box-shadow .08s, filter .15s; }
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--lip); }
.btn.ghost { --face: var(--white); --lip: var(--line); --text: var(--sea-deep); border: 2px solid var(--line); }
.btn[disabled] { --face: var(--locked); --lip: var(--locked-deep); --text: var(--steel); cursor: default; transform: none; }
.nav .btn { padding: 11px 16px; font-size: 13px; }

/* long-form text */
.prose { max-width: 70ch; padding-block: 22px 70px; }
.prose .updated { color: var(--ink-soft); font-size: 15px; }
.prose h2 { font-size: 28px; margin-top: 38px; }
.prose p, .prose ul { margin-top: 12px; color: #2e3d5f; }
.prose ul { padding-left: 22px; }
.prose li { margin-top: 6px; }
.prose li::marker { color: var(--sea); }
.prose .box { margin-top: 18px; background: var(--sky); border-radius: 20px; padding: 18px 20px; }
.prose .box p { margin: 0; color: var(--ink); }

/* forms */
.form-card { max-width: 620px; margin-block: 40px 70px; border: 3px solid var(--ink); border-radius: 28px; box-shadow: 0 8px 0 var(--ink); padding: 26px; background: var(--white); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.field label small { text-transform: none; letter-spacing: 0; font-weight: 800; color: var(--steel); }
.field input, .field select, .field textarea { width: 100%; border: 3px solid var(--line); border-radius: 16px; padding: 13px 15px; font: 800 17px var(--font-body); color: var(--ink); background: var(--white); }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sea); outline: none; }
.field [aria-invalid="true"] { border-color: var(--bad); background: var(--bad-bg); }
.field .err { color: var(--bad-deep); font-size: 14px; font-weight: 900; min-height: 0; }
.form-msg { font-weight: 900; }
.form-msg.ok { color: var(--good-deep); }
.form-msg.bad { color: var(--bad-deep); }
.sent { text-align: center; display: grid; gap: 12px; justify-items: center; padding: 10px 0; }
.sent svg { width: 96px; height: 112px; }

/* 404 */
.lost { min-height: 100vh; min-height: 100dvh; background: var(--sky); display: grid; place-items: center; text-align: center; padding: 30px 16px; position: relative; overflow: hidden; }
.lost .inner { display: grid; gap: 14px; justify-items: center; position: relative; z-index: 1; }
.lost svg.m { width: 140px; height: 164px; animation: drift 3s ease-in-out infinite; }
.lost h1 { font-size: clamp(40px, 7vw, 64px); }
.lost p { color: var(--ink-soft); font-size: 18px; max-width: 34ch; }
.lost .row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.lost .sea { position: absolute; left: 0; right: 0; bottom: 0; height: 110px; }
@keyframes drift { 50% { transform: translateY(-8px) rotate(-3deg); } }

.mascot .eyes-happy, .mascot .eyes-sad { display: none; }
.mascot.happy .eyes-open, .mascot.sad .eyes-open { display: none; }
.mascot.happy .eyes-happy, .mascot.sad .eyes-sad { display: inline; }

.foot { background: var(--ink); color: var(--steel); padding-block: 34px; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
.foot .logo { color: var(--white); font-size: 24px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--white); font-weight: 900; text-decoration: none; padding: 6px 0; }
.foot-links a:hover, .foot-links a[aria-current="page"] { color: var(--brass); }
.foot .legal { flex-basis: 100%; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 18px; font-size: 13px; max-width: none; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .form-card { padding: 20px; border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
