@font-face { font-family: "Unbounded"; src: url("/static/fonts/unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Onest"; src: url("/static/fonts/onest.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --glacier: #E9EEF5;
  --ink: #0D1B3D;
  --muted: #3B4A6B;
  --cobalt: #3A3DFF;
  --line: #CBD3E1;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Onest", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
body { font-family: var(--body); color: var(--ink); background: var(--glacier); }
/* The front page never scrolls; the policy and sign-up pages do. */
html:has(body.front), body.front { height: 100%; overflow: hidden; }
body.front { display: grid; place-items: center; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
[hidden] { display: none !important; }

.field { position: fixed; inset: 0; width: 100%; height: 100%; }
.front main { position: relative; width: min(760px, 90vw); text-align: center; }
.front footer { position: fixed; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 18px; font-size: 13px; }
footer a { color: var(--muted); }
/* Sign in on the front page: an icon at the bottom left, level with the footer links. */
.front .signin-icon { position: fixed; left: 16px; bottom: 8px; width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; color: var(--muted); background: #fff; border: 1.5px solid var(--line); z-index: 2; }
.front .signin-icon:hover, .front .signin-icon:focus-visible { color: var(--cobalt); border-color: var(--cobalt); }
.brand { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: 18px; color: var(--cobalt); margin-bottom: 7vh;
  display: inline-flex; align-items: center; gap: 0.4em; }
.brand img { height: 1.2em; width: auto; }  /* the mark, sized to the wordmark beside it as in the logo sheet */
h1 { font-family: var(--display); font-weight: 300; font-size: clamp(26px, 3.6vw, 46px); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 28px; }
.line { background: #fff; border-radius: 22px; padding: 26px 30px; text-align: left; font-size: clamp(18px, 2.2vw, 26px);
        min-height: calc(1.5em + 52px); box-shadow: 0 1px 0 rgba(13,27,61,.06), 0 18px 50px -20px rgba(58,61,255,.35); }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--cobalt); vertical-align: -0.15em; margin-left: 2px; animation: blink 1s steps(1) infinite; }
.route { margin-top: 14px; font-size: 14px; color: var(--muted); min-height: 1.4em; }
.choices { margin-top: 7vh; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.choices button { border: 1.5px solid var(--ink); background: transparent; border-radius: 999px; padding: 14px 26px; font-weight: 600; font-size: 16px; color: var(--ink); transition: transform .15s; }
.choices button.primary { background: var(--ink); color: var(--glacier); }
.choices button:hover { transform: translateY(-1px); }
.note { margin-top: 14px; font-size: 13px; color: var(--muted); }
@keyframes blink { 50% { opacity: 0; } }

.sheet { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(10,20,51,.45); backdrop-filter: blur(6px); z-index: 10; }
.sheet form, .sheet .done { width: min(460px, 92vw); max-height: 92dvh; overflow: auto; background: #fff; border-radius: 20px; padding: 28px; display: grid; gap: 14px; animation: rise .3s ease-out; }
.sheet h2 { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; }
.sheet p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.sheet label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.sheet input, .sheet select, .sheet textarea { font: inherit; font-weight: 400; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.sheet .error { color: #B42318; min-height: 0; }
.sheet .error:empty { display: none; }
.sheet .row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.sheet button.send, .sheet button.cancel { border: 0; border-radius: 999px; padding: 12px 20px; font-weight: 600; }
.sheet .send { background: var(--ink); color: #fff; }
.sheet .send:disabled { opacity: .6; cursor: wait; }
.sheet .cancel { background: transparent; color: var(--ink); }
.sheet .done { text-align: center; justify-items: center; }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }

/* Policy and sign-up pages */
.doc header { padding: 28px clamp(16px, 5vw, 48px); }
.doc header .brand { margin: 0; text-decoration: none; }
.doc main { width: min(680px, calc(100% - 32px)); margin: 4vh auto 64px; }
.doc h1 { text-align: left; margin-bottom: 8px; }
.doc h2 { font-family: var(--display); font-weight: 500; font-size: 19px; letter-spacing: -0.01em; margin: 32px 0 10px; }
.doc p, .doc li { font-size: 16px; line-height: 1.6; color: #22305A; }
.doc p + p { margin-top: 10px; }
.doc ul { padding-left: 20px; display: grid; gap: 8px; }
.doc a { color: var(--cobalt); }
.doc .updated, .doc .lede { color: var(--muted); font-size: 15px; }
.doc footer { display: flex; gap: 18px; justify-content: center; padding: 0 16px 40px; font-size: 13px; }
.signup, .doc .done { background: #fff; border-radius: 20px; padding: 28px; margin-top: 24px; display: grid; gap: 14px; }
.signup label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.signup .opt { color: var(--muted); font-weight: 400; }
.signup input:not([type=checkbox]) { font: inherit; font-weight: 400; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; color: var(--ink); }
.signup .consent { grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-weight: 400; font-size: 13px; line-height: 1.5; color: var(--muted); }
.signup .consent input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--cobalt); }
.signup .error { color: #B42318; font-size: 14px; }
.signup .error:empty { display: none; }
.signup .send { justify-self: start; border: 0; border-radius: 999px; padding: 13px 24px; font-weight: 600; background: var(--ink); color: #fff; }
.signup .send:disabled { opacity: .6; cursor: wait; }

@media (max-height: 640px) { .brand { margin-bottom: 3vh; } .choices { margin-top: 4vh; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Signed-in pages */
.app header { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.app .who { display: flex; gap: 14px; align-items: center; font-size: 14px; color: var(--muted); }
.app .who form { display: inline; }
.app button, .app .button { font: inherit; font-weight: 600; font-size: 14px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); border-radius: 999px; padding: 9px 18px; text-decoration: none; display: inline-block; }
.app button.primary, .app .button.primary { background: var(--ink); color: #fff; }
.app button.link { border: 0; padding: 0; font-weight: 500; color: var(--cobalt); text-decoration: underline; }
.app .card { background: #fff; border-radius: 20px; padding: 24px; margin-top: 16px; display: grid; gap: 14px; }
.app .card label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.app input:not([type=checkbox]):not([type=hidden]), .app select, .app textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.app textarea { min-height: 160px; }
.app .card label { grid-template-columns: minmax(0, 1fr); }  /* lets form boxes shrink to a phone's width */
.app .card label > input:not([type=checkbox]), .app .card label > select, .app .card label > textarea { width: 100%; min-width: 0; }
.app .text { white-space: pre-line; }  /* job text keeps the line breaks it was written with */
.app .card button { justify-self: start; }
.app .rows { list-style: none; padding: 0; display: grid; gap: 10px; margin-top: 12px; }
.app .rows > li { background: #fff; border-radius: 16px; padding: 16px 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.app .rows p { margin-top: 6px; white-space: pre-line; }
.app .meta { font-size: 13px; color: var(--muted); }
.app .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.app .actions form { display: flex; gap: 6px; align-items: center; }
.app .empty { background: #fff; border: 1.5px dashed var(--line); border-radius: 16px; padding: 18px; color: var(--muted); }
.app .banner { border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; background: #fff; }
.app .banner.error { color: #B42318; border: 1.5px solid #F4C7C3; }
.app .flag { background: #FFF3C4; border-radius: 4px; padding: 0 3px; }
.app nav.tabs { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0 18px; font-size: 15px; }
.app nav.tabs a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.app nav.tabs a.on { color: var(--ink); font-weight: 600; }
.app label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.app .rows > li > div:first-child { flex: 1 1 300px; min-width: 0; }
