/* The Register — straw-person stylesheet. Violet Co brand tokens (client CLAUDE.md). */
:root {
  --violet: #8b439a;
  --violet-deep: #6d3079;
  --violet-soft: #f3e9f5;
  --violet-tint: #fbf8fc;
  --blue: #3568b2;
  --blue-soft: #e7eef9;
  --teal: #17acac;
  --teal-soft: #e3f5f5;
  --gold: #d4a22a;
  --gold-soft: #fbf3dc;
  --navy: #060080;
  --ink: #1f1f1f;
  --muted: #5b5563;
  --line: #e6dcea;
  --card: #ffffff;
  --serif: Georgia, Cambria, "Times New Roman", serif;
  --sans: Calibri, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: Menlo, Consolas, "SF Mono", monospace;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(6, 0, 128, 0.06), 0 8px 24px rgba(139, 67, 154, 0.08);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--violet-tint);
  text-align: left;
}
h1, h2, h3, h4 { font-family: var(--serif); color: var(--violet-deep); font-weight: 500; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }
.eyebrow { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet); margin-bottom: 0.6rem; }
.lede { font-size: 1.2rem; max-width: 46rem; }
ul.clean { list-style: none; padding: 0; margin: 0; }

/* Strips above the header */
.crisis-line { background: var(--navy); color: #fff; font-size: 0.95rem; padding: 10px 0; text-align: center; }
.crisis-line strong { color: #fff; }
.crisis-line a { color: #fff; }
.straw-line { background: var(--gold-soft); color: #5a4300; font-size: 0.9rem; padding: 7px 0; text-align: center; border-bottom: 1px solid #ecd9a0; }

/* Boxed header */
.site-header { padding: 22px 0 8px; }
.header-box {
  display: flex; align-items: stretch; border: 1.5px solid var(--navy); background: var(--card); border-radius: var(--radius); overflow: hidden;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-right: 1.5px solid var(--navy); text-decoration: none; color: var(--ink); }
.brand .wordmark { font-family: var(--serif); font-size: 1.3rem; color: var(--violet); letter-spacing: 0.01em; white-space: nowrap; }
.brand .service { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); border-left: 1.5px solid var(--navy); padding-left: 12px; white-space: nowrap; }
.site-header nav { flex: 1; display: flex; align-items: stretch; justify-content: flex-end; gap: 0; padding: 0 0 0 8px; flex-wrap: wrap; }
.site-header nav a { color: var(--ink); text-decoration: none; padding: 0 9px; font-size: 0.92rem; border-radius: 4px; display: flex; align-items: center; white-space: nowrap; }
.site-header nav a:hover { background: var(--violet-soft); }
.site-header nav a[aria-current="page"] { color: var(--violet-deep); font-weight: 600; }
.header-cta { display: flex; align-items: center; background: var(--violet); color: #fff !important; text-decoration: none; padding: 0 18px; margin-left: 8px; font-weight: 600; white-space: nowrap; border-radius: 0 !important; }
.site-header nav a.header-cta:hover { background: var(--violet-deep); }
.header-cta:hover { background: var(--violet-deep); }

/* Buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 4px; text-decoration: none; font-weight: 600; border: 1.5px solid transparent; cursor: pointer; font-family: var(--sans); font-size: 1rem; }
.btn-primary { background: var(--violet); color: #fff; border-color: var(--violet); }
.btn-primary:hover { background: var(--violet-deep); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--blue-soft); }
.btn-quiet { background: transparent; color: var(--blue); border-color: transparent; padding-left: 0; }

/* Panels and cards */
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 56px); margin: 24px 0; }
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding-top: 32px; }
.hero .art { display: flex; justify-content: center; }
.hero .art svg { width: 100%; max-width: 420px; height: auto; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0; }
.tile { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.tile .band { height: 140px; display: flex; align-items: center; justify-content: center; }
.tile .band.violet { background: var(--violet-soft); }
.tile .band.teal { background: var(--teal-soft); }
.tile .band.blue { background: var(--blue-soft); }
.tile .body { padding: 22px 24px 26px; flex: 1; }
.tile h3 { margin-top: 0; }
.tile a { font-weight: 600; text-decoration: none; }

/* Six-step journey — staggered two-column cards */
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; margin: 28px 0; }
.step { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 30px 30px; position: relative; }
.step:nth-child(even) { transform: translateY(40px); }
.step .num { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet); display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.step .num::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--violet); }
.step:nth-child(2) .num::before { background: var(--blue); }
.step:nth-child(3) .num::before { background: var(--teal); }
.step:nth-child(4) .num::before { background: var(--gold); }
.step:nth-child(5) .num::before { background: var(--navy); }
.step:nth-child(6) .num::before { background: var(--violet-deep); }
.step h3 { margin-top: 4px; }
.step p:last-child { margin-bottom: 0; }
.steps-after { margin-top: 64px; }

/* Split panel (donate / eligibility) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden; padding: 0; }
.split > div { padding: clamp(24px, 4vw, 56px); }
.split .accent { background: var(--gold-soft); display: flex; align-items: center; }
.split .accent.teal { background: var(--teal-soft); }
.split .accent.violet { background: var(--violet-soft); }
.split .accent h2 { color: var(--navy); font-size: clamp(1.6rem, 3vw, 2.4rem); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0; }
.stat { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 26px 22px; border-top: 4px solid var(--violet); }
.stat .figure { font-family: var(--serif); font-size: 2.6rem; color: var(--violet-deep); line-height: 1; margin-bottom: 8px; }
.stat p { margin: 0; }
.stat cite { display: block; font-style: normal; color: var(--muted); font-size: 0.85rem; margin-top: 10px; }

/* Definition / decision tables */
table.plain { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 0.98rem; }
table.plain th { text-align: left; background: var(--violet); color: #fff; padding: 10px 12px; font-weight: 600; }
table.plain td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* FAQ */
details.faq { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin: 12px 0; padding: 0; }
details.faq summary { cursor: pointer; padding: 18px 22px; font-family: var(--serif); font-size: 1.15rem; color: var(--violet-deep); list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-family: var(--sans); color: var(--violet); font-size: 1.4rem; }
details.faq[open] summary::after { content: "–"; }
details.faq .answer { padding: 0 22px 20px; }
.faq-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.faq-filter span { border: 1px solid var(--navy); border-radius: 999px; padding: 6px 14px; font-size: 0.9rem; background: var(--card); }

/* Register demo */
.demo-note { background: var(--gold-soft); border-left: 4px solid var(--gold); padding: 12px 16px; border-radius: 4px; margin: 0 0 24px; }
.progress { display: flex; gap: 8px; margin: 0 0 26px; }
.progress span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.progress span.done { background: var(--violet); }
.progress span.current { background: var(--teal); }
fieldset { border: 0; padding: 0; margin: 0 0 22px; }
legend { font-family: var(--serif); font-size: 1.5rem; color: var(--violet-deep); margin-bottom: 8px; }
label { display: block; font-weight: 600; margin: 16px 0 6px; }
.help { font-weight: 400; color: var(--muted); font-size: 0.92rem; display: block; margin-top: 2px; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #cbbfd1; border-radius: 4px; font-family: var(--sans); font-size: 1rem; background: #fff;
}
textarea { min-height: 120px; resize: vertical; }
.choice { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.choice label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 0; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 4px; background: #fff; }
.choice input { margin-top: 4px; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.step-panel[hidden] { display: none; }
.saved { font-size: 0.9rem; color: var(--teal); }

/* Review (solicitor) demo */
.queue { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.queue-list { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; }
.queue-list .item { padding: 12px 14px; border-radius: 4px; border-left: 4px solid transparent; }
.queue-list .item.active { background: var(--violet-soft); border-left-color: var(--violet); }
.queue-list .item .meta { font-size: 0.85rem; color: var(--muted); }
.records { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 16px 0 24px; }
.record { background: var(--violet-tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; font-size: 0.95rem; }
.record h4 { margin: 0 0 8px; font-size: 1.05rem; }
.record dl { margin: 0; }
.record dt { font-weight: 600; margin-top: 8px; font-size: 0.85rem; color: var(--muted); }
.record dd { margin: 0; }
.badge { display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; padding: 3px 10px; border-radius: 999px; background: var(--teal-soft); color: #0b6b6b; }
.badge.warn { background: var(--gold-soft); color: #6b4d00; }
.decision { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.outcome { margin-top: 16px; padding: 14px 16px; border-radius: 4px; background: var(--blue-soft); }
.outcome[hidden] { display: none; }

/* Footer */
.site-footer { background: var(--navy); color: #fff; margin-top: 64px; padding: 48px 0 32px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul.clean li { margin: 6px 0; }
.site-footer .wordmark { font-family: var(--serif); font-size: 1.6rem; }
.acknowledgement { border-top: 1px solid rgba(255,255,255,0.25); margin-top: 32px; padding-top: 24px; font-size: 0.95rem; color: #e9e6ff; max-width: 60rem; }
.legal { font-size: 0.85rem; color: #c9c4f2; margin-top: 12px; }

/* Quick exit */
#quick-exit {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  background: var(--navy); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 18px; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
#quick-exit:hover { background: #04005a; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 60; }
.skip:focus { left: 8px; }

@media (max-width: 900px) {
  .hero, .tiles, .steps, .split, .stats, .queue, .records, .footer-grid { grid-template-columns: 1fr; }
  .step:nth-child(even) { transform: none; }
  .steps-after { margin-top: 24px; }
  .header-box { flex-wrap: wrap; }
  .brand { border-right: 0; border-bottom: 1.5px solid var(--navy); width: 100%; }
  .header-cta { width: 100%; justify-content: center; padding: 12px; }
}
