/* Agent Minder waiting-list site. No web fonts, no third-party requests. Mobile first. The brand typeface is Figtree
   (Phase 1 look, Direction B): it is named first and used when the device already has it; nothing is downloaded (the
   CSP has no font-src), so everyone else gets the system font. Numbers are tabular, as in the app. */
:root {
  --navy: #0B1F3A;
  --green: #22C55E;          /* on white: decoration only (the wordmark underline); home.css also uses it for text on navy (7:1) */
  --green-text: #15803D;     /* 5:1 on white, for checkbox ticks */
  --ink: #0B1F3A;
  --muted: #3D4B5F;          /* 8:1 on white */
  --paper: #FFFFFF;
  --wash: #F3F6FA;
  --line: #C9D2DE;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Figtree, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 1.0625rem;
  line-height: 1.55;
}

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 16px; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -10000px; top: 0; }
.skip:focus { left: 16px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* ---- the wordmark: "Coming clear" -------------------------------------------------------------------------
   Under "Agent", a row of small rounded green marks, each a little longer and more opaque than the last; under
   "Minder", one full green line that stretches to the word's width. */
.site-header { padding: 24px 0 8px; }
.wordmark {
  display: inline-flex;
  gap: 0.3em;
  align-items: flex-start;
  color: var(--navy);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.wordmark:hover { text-decoration: none; }
.wm-word { display: inline-flex; flex-direction: column; }
.wm-under { display: flex; align-items: center; height: 6px; margin-top: 5px; }
.wm-marks { justify-content: space-between; gap: 3px; }
.wm-marks i { display: block; height: 4px; border-radius: 2px; background: var(--green); }
.wm-marks i:nth-child(1) { width: 3px;  opacity: 0.30; }
.wm-marks i:nth-child(2) { width: 5px;  opacity: 0.45; }
.wm-marks i:nth-child(3) { width: 7px;  opacity: 0.60; }
.wm-marks i:nth-child(4) { width: 10px; opacity: 0.75; }
.wm-marks i:nth-child(5) { width: 13px; opacity: 0.90; }
.wm-full b { display: block; flex: 1 1 auto; height: 4px; border-radius: 2px; background: var(--green); }
/* the trade mark sign (founder, 20 Oct 2026): after the wordmark and the first "Agent Minder" in each page's text */
sup.tm { font-size: 0.6em; font-weight: 600; line-height: 0; vertical-align: super; margin-left: 0.05em; }
.wordmark sup.tm { font-size: 0.45em; line-height: 1; vertical-align: baseline; margin-left: -0.55em; }

/* ---- content ------------------------------------------------------------------------------------------------ */
main { padding: 16px 0 40px; }

h1 { font-size: 2.1rem; line-height: 1.15; margin: 16px 0 12px; letter-spacing: -0.015em; }
h2 { font-size: 1.35rem; line-height: 1.25; margin: 36px 0 12px; }
h3 { font-size: 1.1rem; margin: 24px 0 8px; }

.lede { font-size: 1.2rem; color: var(--ink); margin: 0 0 20px; }

.points { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.points li {
  position: relative;
  padding: 12px 14px 12px 40px;
  background: var(--wash);
  border-radius: 10px;
}
.points li::before {
  content: "";
  position: absolute; left: 16px; top: 1.15em;
  width: 12px; height: 4px; border-radius: 2px;
  background: var(--green);
}

.status { font-weight: 600; border-left: 4px solid var(--navy); padding: 4px 0 4px 12px; }

.designs { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 0; }
.designs figure { margin: 0; }
.designs img {
  display: block; width: 100%; max-width: 320px; height: auto; aspect-ratio: 390 / 844;
  border: 1px solid var(--line); border-radius: 18px; background: var(--wash);
}
.designs figcaption { color: var(--muted); font-size: 0.95rem; margin-top: 6px; }
.designs-note { color: var(--muted); margin-top: -4px; }

/* ---- the form ----------------------------------------------------------------------------------------------- */
form { margin: 0; }
.field { margin: 0 0 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type="email"] {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  padding: 12px 14px; border: 2px solid var(--muted); border-radius: 8px;
}
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-weight: 600; padding: 0; margin-bottom: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; }
.check input { width: 1.3rem; height: 1.3rem; margin: 0.15rem 0 0; flex: 0 0 auto; accent-color: var(--green-text); }
.hint { color: var(--muted); font-size: 0.95rem; margin: -4px 0 12px; }

button {
  font: inherit; font-weight: 700; color: var(--paper); background: var(--navy);
  border: 2px solid var(--navy); border-radius: 10px; padding: 12px 22px; cursor: pointer;
  min-height: 48px;
}
button:hover { background: #12325C; }

.small { color: var(--muted); font-size: 0.95rem; }

/* Read aloud, not shown ("Error:" before each message beside a field). */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0; }

/* The join form's checks (site.js; the GOV.UK pattern). Meaning never rests on colour: a heading, words and a thick
   bar mark each problem. */
.error-summary { border: 4px solid var(--navy); border-radius: 10px; padding: 14px 16px; margin: 0 0 20px; }
.error-summary h3 { margin: 0 0 8px; font-size: 1.15rem; }
.error-summary ul { margin: 0; padding-left: 1.1rem; }
.error-summary li { margin: 0 0 6px; }
.error-summary a { font-weight: 700; }
.field-error { margin: 0 0 8px; padding-left: 10px; border-left: 4px solid var(--navy); font-weight: 700;
  color: var(--navy); }
input[aria-invalid="true"] { border-width: 3px; border-color: var(--navy); }
.domain-hint:empty { display: none; }
.domain-hint { margin-top: 8px; }
.btn-hint { color: var(--navy); background: var(--paper); border: 2px solid var(--navy); border-radius: 10px;
  padding: 8px 14px; min-height: 44px; font-weight: 600; text-align: left; overflow-wrap: anywhere; max-width: 100%; }
.btn-hint:hover { background: var(--wash); }

/* A link that does one thing on its own looks like a button (check-email.html's "Join again"). */
.button-link { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 22px; border-radius: 10px;
  border: 2px solid var(--navy); background: var(--navy); color: var(--paper); font-weight: 700;
  text-decoration: none; }
.button-link:hover { background: #12325C; }

/* Numbered steps (check-email.html, confirm.html). role="list" keeps them a list for VoiceOver without bullets. */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.steps li { counter-increment: step; position: relative; padding: 12px 14px 12px 52px; background: var(--wash);
  border-radius: 10px; }
.steps li::before { content: counter(step); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px;
  border-radius: 6px; background: var(--navy); color: var(--paper); font-weight: 700; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center; }

/* Hidden from sighted users; screen readers still read its label ("Leave this empty"). */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.panel { background: var(--wash); border-radius: 12px; padding: 16px 18px; margin: 16px 0; }

/* confirm.html: a founding member's own link (site.js fills it from #ref=), and its plain Copy button. */
.link-text { font-weight: 700; overflow-wrap: anywhere; background: var(--wash); border-radius: 10px; padding: 12px 14px; }
.link-buttons { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- footer ------------------------------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 20px 0 32px; color: var(--muted); font-size: 0.95rem; }
.site-footer p { margin: 0 0 6px; }

/* privacy page */
.notice ul { padding-left: 1.2rem; }
.notice li { margin-bottom: 6px; }

@media (min-width: 640px) {
  h1 { font-size: 2.6rem; }
  .wordmark { font-size: 1.75rem; }
  .designs { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
