/* The design system, shared by the public site and the app.

   Light and airy: a white page with soft lavender-grey surfaces, a sky-blue
   hero, Geist for text and EB Garamond for display headlines, glossy blue
   buttons, large rounded cards, and headings that fade from ink to grey.
   Both fonts are served from our own origin (SIL Open Font License), so no
   visitor's address goes to a font host and the CSP stays strict. */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/geist-latin-wght.woff2") format("woff2");
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/eb-garamond-latin-500.woff2") format("woff2");
}

:root {
  --bg: #f5f7fb;
  --page: #ffffff;
  --panel: #ffffff;
  --panel-soft: #eef1f8;
  --lavender: #dde2ee;
  --lavender-2: #e9ecf5;
  --navy: #0b1f4d;
  --navy-deep: #071538;
  --blue: #1c38ea;
  --blue-2: #1e82e0;
  --blue-hover: #2a46f2;
  --sky: #8cc4f2;
  --cyan: #45d3ff;
  --text: #040406;
  --ink-2: #2e3038;
  --muted: #6b6f7d;
  --line: #e4e4e7;
  --line-soft: rgba(15, 23, 42, 0.06);
  --accent: #2550e6;
  --accent-text: #ffffff;
  --ok: #0f7b3f;
  --ok-bg: #e2f5e9;
  --bad: #c0261a;
  --bad-bg: #fde8e6;
  --warn-bg: #fff3d1;
  --pin-bg: #fde8e6;
  --edit: #6b4fd8;
  --focus: rgba(37, 80, 230, 0.35);
  --radius: 24px;
  --radius-sm: 14px;
  --radius-btn: 12px;
  --gutter: 22px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 30px rgba(60, 80, 140, 0.08);
  --shadow-lift: 0 30px 60px rgba(60, 80, 160, 0.18);
  --serif: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --sans: Geist, ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
  --glossy:
    radial-gradient(102% 102% at 66% 82%, rgba(255, 255, 255, 0.45) 0, rgba(255, 255, 255, 0) 100%),
    radial-gradient(115% 115% at 10% 17%, var(--blue-2) 0, var(--blue) 100%);
  --glossy-shadow:
    0 12px 24px rgba(80, 110, 230, 0.35), inset -3px -3px 4px rgba(191, 229, 251, 0.35),
    inset 4px 4px 4px rgba(19, 26, 228, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080b14;
    --page: #0b0f1a;
    --panel: #111726;
    --panel-soft: #151c2e;
    --lavender: #1a2236;
    --lavender-2: #161d2f;
    --text: #eef1f8;
    --ink-2: #d4d8e4;
    --muted: #9aa1b5;
    --line: #262e44;
    --line-soft: rgba(255, 255, 255, 0.06);
    --accent: #7c9bff;
    --accent-text: #061233;
    --ok: #5ad48a;
    --ok-bg: #10301e;
    --bad: #ff8a80;
    --bad-bg: #3a1714;
    --warn-bg: #3a3014;
    --pin-bg: #3a1714;
    --edit: #b4a3ff;
    --focus: rgba(124, 155, 255, 0.45);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-lift: 0 30px 60px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }
strong, b { font-weight: 600; }

h1, h2, h3 { font-weight: 500; letter-spacing: -0.035em; color: inherit; }
h1 { font-size: clamp(34px, 5vw, 64px); line-height: 1.05; margin: 0 0 18px; }
h2 { font-size: clamp(26px, 3.4vw, 48px); line-height: 1.1; margin: 0 0 14px; }
h3 { font-size: 18px; line-height: 1.35; margin: 0 0 6px; letter-spacing: -0.015em; }

/* Display headlines in the serif. */
.display { font-family: var(--serif); font-weight: 500; letter-spacing: -0.012em; line-height: 0.98; }

/* Headings that fade from ink to grey across the line. */
.fade-text {
  background: linear-gradient(90deg, var(--text) 0%, var(--ink-2) 45%, #6b6f86 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Small capitals above a heading. */
.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
/* An eyebrow as a glass pill, on the sky. */
.eyebrow.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55); color: #fff;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.eyebrow.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; }

/* The phrase in a headline that carries the point. */
.accent { color: var(--accent); }
.accent-glow { color: inherit; font-style: italic; }
.accent-soft { color: rgba(255, 255, 255, 0.78); }

.lede { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--muted); margin: 0 0 26px; max-width: 44em; }

/* --- controls ------------------------------------------------------------------- */

button, select, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }

button, .button, a.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: var(--radius-btn);
  padding: 9px 18px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}
button:hover, .button:hover { border-color: #c9cdd8; background: #fafbfe; }
button:active, .button:active { transform: translateY(1px); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
a:focus-visible, summary:focus-visible, .dropzone:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
/* The glossy primary button: a lit blue gradient with an inner highlight and a soft glow. */
button.primary, .button.primary, a.button.primary {
  background: var(--glossy); border: 0; color: #fff;
  box-shadow: var(--glossy-shadow);
  padding: 10px 20px;
}
button.primary:hover, .button.primary:hover {
  background: var(--glossy); filter: brightness(1.08);
  box-shadow: 0 16px 30px rgba(80, 110, 230, 0.42), inset -3px -3px 4px rgba(191, 229, 251, 0.35),
    inset 4px 4px 4px rgba(19, 26, 228, 0.12);
}
button.danger { color: var(--bad); }
button:disabled { opacity: 0.5; cursor: default; transform: none; }
.button.big, button.big { padding: 13px 26px; font-size: 17px; border-radius: 14px; }
/* Light and glass buttons, for the sky and dark surfaces. */
.button.light { background: #fff; border-color: #fff; color: var(--blue); box-shadow: 0 10px 24px rgba(30, 60, 140, 0.18); }
.button.light:hover { background: #f3f6ff; }
.button.ghost {
  background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.6); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: none;
}
.button.ghost:hover { background: rgba(255, 255, 255, 0.26); border-color: #fff; }
.button .arrow, .arrow { transition: transform 0.15s; }
.button:hover .arrow, a:hover .arrow { transform: translateX(3px); }

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 9px 12px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* --- frame ----------------------------------------------------------------------- */

/* A flat, frosted bar across the top. */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin: 0 auto;
  width: 100%;
  padding: 12px max(var(--gutter), calc((100% - 1216px) / 2));
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
@media (prefers-color-scheme: dark) { .topbar { background: rgba(11, 15, 26, 0.78); } }
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 18px; letter-spacing: -0.035em;
  color: var(--text); text-decoration: none; border: 0; background: none; padding: 0; box-shadow: none;
}
.brand svg { width: 26px; height: 26px; flex: none; color: var(--blue); }
.account { display: flex; gap: 8px; align-items: center; color: var(--muted); flex-wrap: wrap; justify-content: flex-end; }

main { max-width: 1264px; margin: 0 auto; padding: var(--gutter) var(--gutter) 48px; }

.panel, .card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 56px);
  margin-bottom: var(--gutter);
  min-width: 0;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}
.card { padding: clamp(18px, 2.4vw, 32px); }
.panel.soft, .card.soft { background: linear-gradient(180deg, var(--lavender-2), var(--panel-soft)); box-shadow: none; }
.panel.blue { background: var(--glossy); color: #fff; border: 0; box-shadow: var(--glossy-shadow); }
.panel.navy {
  color: #fff; border: 0;
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(255, 255, 255, 0.28), transparent 60%),
    linear-gradient(180deg, #2a7fe0 0%, #5aa6ec 55%, #9fcdf3 100%);
}
.panel.blue a:not(.button), .panel.navy a:not(.button) { color: #fff; }
.panel .button.light { color: var(--blue); }
.panel.blue .lede, .panel.navy .lede, .panel.blue .muted, .panel.navy .muted { color: rgba(255, 255, 255, 0.86); }
.panel.blue .eyebrow, .panel.navy .eyebrow { color: rgba(255, 255, 255, 0.85); }

.hint { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.muted { color: var(--muted); }

.footer {
  margin: 0; padding: 40px var(--gutter) 28px;
  background: var(--lavender); color: var(--ink-2); text-align: center;
}
.footer a { color: var(--ink-2); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* A ticked checklist with dividers. */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist > li { border-bottom: 1px solid rgba(255, 255, 255, 0.28); }
.panel:not(.blue):not(.navy) .checklist > li, .checklist.plain > li { border-bottom-color: var(--line); }
.checklist summary, .checklist .item {
  display: flex; align-items: center; gap: 14px; padding: 18px 0;
  font-weight: 500; font-size: 17px; letter-spacing: -0.015em; cursor: pointer; list-style: none;
}
.checklist summary::-webkit-details-marker { display: none; }
.checklist summary::after { content: "+"; margin-left: auto; font-size: 22px; font-weight: 300; line-height: 1; transition: transform 0.2s; opacity: 0.7; }
.checklist details[open] summary::after { transform: rotate(45deg); }
.checklist .tick {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: inline-grid; place-items: center; background: rgba(255, 255, 255, 0.2);
}
.panel:not(.blue):not(.navy) .checklist .tick, .checklist.plain .tick { background: var(--panel-soft); color: var(--accent); }
.checklist .tick svg { width: 14px; height: 14px; }
.checklist details p { margin: 0 0 18px 42px; opacity: 0.85; }

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

@media (max-width: 640px) {
  :root { --gutter: 14px; --radius: 20px; }
  .topbar { padding: 10px var(--gutter); }
  .brand { font-size: 16px; }
}
