/* talk.agnoss.com in the agnoss Design System (docs/design.md says where it lives). The colours, sizes and fonts below are
   its tokens, written out as plain CSS: this site loads nothing from another server, and its security header allows styles
   and scripts only from files of its own (no style="" attributes, no <style> blocks). */

@font-face { font-family: "Source Serif 4"; src: url("/fonts/SourceSerif4-Variable.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/DMSans-Variable.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/fonts/DMMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/fonts/DMMono-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;
  --surface: #faf9f5;
  --surface-raised: #ffffff;
  --surface-sunken: #f0eee6;
  --line: #e3e0d5;
  --line-control: #8e8a80;
  --ink: #1c1b19;
  --ink-muted: #6f6c64;
  --primary: #00457f;
  --primary-hover: #00335f;
  --primary-soft: #e3f0f8;
  --on-primary: #ffffff;
  --agnoss-blue: #0f90d0;
  --link: #0a6290;
  --danger: #a3202f;
  --focus-ring: 0 0 0 2px #faf9f5, 0 0 0 4px #0f90d0;
  --focus: #0f90d0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --width-prose: 720px;
  --width-page: 1200px;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #1c1b19;
    --surface-raised: #262522;
    --surface-sunken: #151413;
    --line: #3a3833;
    --line-control: #7d796f;
    --ink: #f2f0e8;
    --ink-muted: #a8a49a;
    --primary: #6abfec;
    --primary-hover: #92d1f2;
    --primary-soft: #10293a;
    --on-primary: #1c1b19;
    --link: #6abfec;
    --danger: #f07a84;
    --focus-ring: 0 0 0 2px #1c1b19, 0 0 0 4px #6abfec;
    --focus: #6abfec;
  }
}

/* Base, shared with the privacy notices (notice.css) */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 26px; -webkit-font-smoothing: antialiased; }
a { color: var(--link); }
a:hover { color: var(--primary-hover); }
a:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); border-radius: 4px; }
[hidden] { display: none !important; }

/* Page frame */
.page { box-sizing: border-box; max-width: var(--width-page); margin: 0 auto; padding-left: clamp(20px, 5vw, 48px); padding-right: clamp(20px, 5vw, 48px); }
.site-header { border-bottom: 1px solid var(--line); }
.site-header .page { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-4); padding-bottom: var(--space-4); }
.logo { display: inline-flex; padding: var(--space-1) 0; }
.logo img { display: block; height: 40px; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-5); row-gap: var(--space-2); }
.site-nav a:not(.button) { padding: var(--space-3) 0; color: var(--ink); text-decoration: none; font-size: 15px; line-height: 20px; font-weight: 500; }
.site-nav a:not(.button):hover { color: var(--primary); }

/* Type */
.eyebrow { margin: 0; font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.display { margin: 0; max-width: 960px; font-family: var(--font-serif); font-size: clamp(44px, 7vw, 88px); line-height: 1.02; font-weight: 400; letter-spacing: -0.03em; }
.display span { color: var(--agnoss-blue); }
.title { margin: 0; font-family: var(--font-serif); font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; font-weight: 400; letter-spacing: -0.02em; }
.lead { margin: 0; font-size: 19px; line-height: 30px; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.small { margin: 0; font-size: 14px; line-height: 22px; color: var(--ink-muted); }

/* Top: headline, then the contact details beside the form */
.hero { padding-top: var(--space-9); padding-bottom: var(--space-8); }
.hero .eyebrow { margin-bottom: var(--space-5); }
.contact { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-7) var(--space-8); margin-top: var(--space-7); }
.contact-facts { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-5); }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-5); padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.facts dt { flex: 0 0 88px; font-family: var(--font-mono); font-size: 12px; line-height: 24px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.facts dd { margin: 0; flex: 1 1 200px; font-size: 16px; line-height: 24px; }

/* The form: the one raised panel of the page */
.panel { flex: 2 1 520px; min-width: 0; box-sizing: border-box; padding: clamp(24px, 4vw, 40px); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: var(--space-5); }
.field-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: var(--space-5); }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-size: 14px; line-height: 20px; font-weight: 500; }
.field input, .field select, .field textarea { box-sizing: border-box; width: 100%; height: 40px; padding: 0 var(--space-3); border: 1px solid var(--line-control); border-radius: var(--radius-sm); background: var(--surface-raised); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 24px; transition: border-color .15s ease; }
.field textarea { height: auto; min-height: 168px; padding: var(--space-2) var(--space-3); resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid transparent; border-color: var(--focus); box-shadow: var(--focus-ring); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field .hint { margin: 0; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.field .error { margin: 0; font-size: 14px; line-height: 22px; font-weight: 500; color: var(--danger); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.actions .small { flex: 1 1 240px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); box-sizing: border-box; height: 40px; padding: 0 var(--space-4); border: 1px solid transparent; border-radius: var(--radius-md); font-family: var(--font-sans); font-size: 15px; line-height: 20px; font-weight: 500; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.button:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.button-large { height: 48px; padding: 0 var(--space-5); font-size: 16px; }
.button-primary { background: var(--primary); color: var(--on-primary); }
.button-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.button-outline { background: var(--surface-raised); border-color: var(--line-control); color: var(--ink); }
.button-outline:hover { background: var(--surface-sunken); color: var(--ink); }

/* What the page says after "Continue in your mail app" */
.sent { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-5); border-radius: var(--radius-md); background: var(--primary-soft); }
.sent p { margin: 0; }
.sent pre { margin: 0; max-height: 220px; overflow: auto; padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-raised); font-family: var(--font-mono); font-size: 14px; line-height: 22px; white-space: pre-wrap; overflow-wrap: anywhere; }
.sent .actions .small { color: var(--ink); }

/* Answers: a numbered list held by hairlines, on the sunken band */
.answers { background: var(--surface-sunken); }
.answers .page { display: flex; flex-wrap: wrap; gap: var(--space-7) var(--space-8); padding-top: var(--space-9); padding-bottom: var(--space-9); }
.answers-intro { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.answers-intro p { margin: 0; font-size: 17px; line-height: 28px; color: var(--ink-muted); }
.index { flex: 2 1 600px; min-width: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.index li { display: flex; gap: var(--space-5); padding: var(--space-6) 0; border-bottom: 1px solid var(--line); }
.index .number { flex: none; width: 40px; padding-top: 6px; font-family: var(--font-mono); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.index .entry { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.index h3 { margin: 0; flex: 1 1 240px; font-family: var(--font-serif); font-size: 26px; line-height: 32px; font-weight: 400; }
.index p { margin: 0; flex: 1.4 1 280px; color: var(--ink-muted); }

/* Footer */
.site-footer .page { padding-top: var(--space-6); padding-bottom: var(--space-6); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5); }
.site-footer img { display: block; height: 36px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-5); row-gap: var(--space-2); font-size: 14px; line-height: 22px; }
.site-footer nav a { padding: 11px 0; color: var(--ink); }
.site-footer .small { flex: 1 1 100%; }

@media (max-width: 600px) {
  .site-header .page { padding-top: var(--space-3); padding-bottom: var(--space-1); row-gap: 0; }
  .site-nav .button { display: none; } /* the form is the first thing below */
  .hero { padding-top: var(--space-8); padding-bottom: var(--space-7); }
  .answers .page { padding-top: var(--space-8); padding-bottom: var(--space-8); }
  .index li { gap: var(--space-4); }
  .index .number { width: 28px; }
  .actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
