/* landing: public/brooke-pages.css

   The look of the Brooke websites, for the plain pages on the landing site:
   Support, Privacy and Delete account. Same tokens, typefaces and details as
   the division sites - the frosted wash, the cold-room panel seams, mono
   eyebrows with a red rule, pill buttons, hairline cards. Light and dark
   follow the visitor's system setting. */

:root {
  --bg: 244 248 250;
  --surface: 255 255 255;
  --surface-2: 237 243 247;
  --line: 200 214 223;
  --ink: 18 35 47;
  --muted: 74 100 120;
  --subtle: 112 134 149;
  --led: 12 116 143;
  --red: 231 0 26;
  --red-dark: 196 0 22;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: 11 22 34;
    --surface: 22 36 47;
    --surface-2: 16 30 43;
    --line: 52 71 86;
    --ink: 238 246 250;
    --muted: 143 163 176;
    --subtle: 109 132 148;
    --led: 143 227 245;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: rgb(var(--bg));
  color: rgb(var(--ink));
  font: 16px/1.7 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: rgb(var(--red)); text-underline-offset: 3px; }
::selection { background: rgb(var(--red) / 0.18); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; } }

.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

/* --- header ------------------------------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgb(var(--bg) / 0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgb(var(--line));
}
.top .row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: rgb(var(--ink)); }
.brand b { font: 900 20px/1 Archivo, system-ui, sans-serif; letter-spacing: -0.02em; color: rgb(var(--red)); }
.brand span { font: 10px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.24em; text-transform: uppercase; color: rgb(var(--subtle)); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.tabs a {
  position: relative; text-decoration: none; color: rgb(var(--muted));
  font: 10px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 10px 10px;
}
.tabs a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 1px;
  background: rgb(var(--red)); transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.tabs a:hover { color: rgb(var(--ink)); }
.tabs a:hover::after, .tabs a[aria-current="page"]::after { transform: scaleX(1); }
.tabs a[aria-current="page"] { color: rgb(var(--ink)); }
/* On a phone the tabs take their own row under the name, on one line */
@media (max-width: 560px) {
  .top .row { flex-wrap: wrap; gap: 2px; min-height: 0; padding-top: 14px; padding-bottom: 4px; }
  .tabs { width: calc(100% + 20px); justify-content: flex-start; flex-wrap: nowrap; margin-left: -10px; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { padding: 12px 10px; letter-spacing: 0.12em; white-space: nowrap; }
}

/* --- hero: the frosted wash and the cold-room wall ------------------------ */
.hero {
  position: relative; overflow: hidden; border-bottom: 1px solid rgb(var(--line));
  background:
    radial-gradient(120% 80% at 50% -10%, rgb(var(--surface-2)) 0%, transparent 60%),
    linear-gradient(180deg, rgb(var(--bg)) 0%, rgb(var(--surface-2)) 55%, rgb(var(--bg)) 100%);
}
.hero::before { /* insulated panel joints */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.4;
  background-image: repeating-linear-gradient(90deg, rgb(var(--line) / 0.4) 0 1px, transparent 1px 88px);
}
.hero::after { /* cold at the edges */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 50%, transparent 52%, rgb(var(--led) / 0.07) 84%, rgb(var(--led) / 0.13) 100%);
}
.hero .glow {
  position: absolute; bottom: -40px; width: 70%; height: 220px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at 50% 70%, rgb(var(--led) / 0.18), transparent 68%);
  filter: blur(28px); animation: drift 14s ease-in-out infinite;
}
.hero .glow.g1 { left: -5%; }
.hero .glow.g2 { left: 38%; animation-delay: -6s; opacity: 0.8; }
@keyframes drift {
  0%, 100% { transform: translate(0, 12%) scale(1); opacity: 0.4; }
  50% { transform: translate(6%, 2%) scale(1.12); opacity: 0.7; }
}
@media (prefers-reduced-motion: reduce) { .hero .glow { animation: none; } html { scroll-behavior: auto; } }

.hero .inner { position: relative; padding-top: 64px; padding-bottom: 56px; }
@media (min-width: 640px) { .hero .inner { padding-top: 88px; padding-bottom: 72px; } }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0;
  font: 10px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.22em; text-transform: uppercase; color: rgb(var(--red)); }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: rgb(var(--red)); }
h1 {
  margin: 22px 0 0; max-width: 16ch;
  font: 800 clamp(36px, 6.5vw, 60px)/1.02 Archivo, system-ui, sans-serif; letter-spacing: -0.03em; color: rgb(var(--ink));
}
.lead { margin: 22px 0 0; max-width: 56ch; font-size: 17px; line-height: 1.7; color: rgb(var(--muted)); }
.actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.facts { margin: 44px 0 0; padding-top: 26px; border-top: 1px solid rgb(var(--line)); display: flex; flex-wrap: wrap; gap: 22px 48px; }
.facts dt { font: 9px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.2em; text-transform: uppercase; color: rgb(var(--subtle)); }
.facts dd { margin: 8px 0 0; font: 700 22px/1 "JetBrains Mono", ui-monospace, monospace; color: rgb(var(--led)); }

/* --- buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  font: 11px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn-red { background: rgb(var(--red)); color: #fff; box-shadow: 0 10px 28px -10px rgb(var(--red) / 0.8); }
.btn-red:hover { background: rgb(var(--red-dark)); transform: translateY(-1px); }
.btn-ghost { border-color: rgb(var(--line)); color: rgb(var(--muted)); background: transparent; }
.btn-ghost:hover { border-color: rgb(var(--red)); color: rgb(var(--ink)); }
.btn[disabled] { opacity: 0.5; cursor: default; transform: none; }

/* --- content ---------------------------------------------------------------- */
main { padding: 56px 0 96px; }
.block { padding: 40px 0; border-bottom: 1px solid rgb(var(--line)); }
.block:first-child { padding-top: 0; }
.block:last-child { border-bottom: 0; }
.num { margin: 0; font: 11px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.18em; color: rgb(var(--led)); }
h2 { margin: 12px 0 14px; font: 800 clamp(24px, 3.4vw, 32px)/1.12 Archivo, system-ui, sans-serif; letter-spacing: -0.022em; color: rgb(var(--ink)); }
h3 { margin: 26px 0 8px; font: 800 17px/1.3 Archivo, system-ui, sans-serif; color: rgb(var(--ink)); }
p { margin: 0 0 14px; color: rgb(var(--ink)); }
.muted { color: rgb(var(--muted)); }
.small { font-size: 14px; }

ul.list { list-style: none; margin: 10px 0 16px; padding: 0; }
ul.list li { position: relative; padding: 9px 0 9px 26px; border-bottom: 1px solid rgb(var(--line) / 0.6); }
ul.list li:last-child { border-bottom: 0; }
ul.list li::before { content: ""; position: absolute; left: 0; top: 21px; width: 12px; height: 2px; background: rgb(var(--red)); }

.card { background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); border-radius: 18px; padding: 24px; }
.card + .card { margin-top: 14px; }
.card.rule-red { border-top: 3px solid rgb(var(--red)); }
.card.rule-led { border-top: 3px solid rgb(var(--led)); }
.label { margin: 0 0 10px; font: 10px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.18em; text-transform: uppercase; color: rgb(var(--subtle)); }

.callout {
  position: relative; border-radius: 18px; padding: 22px 24px 22px 28px;
  background: rgb(var(--red) / 0.06); border: 1px solid rgb(var(--red) / 0.22);
}
.callout::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: rgb(var(--red)); }
.callout p:last-child { margin-bottom: 0; }

.grid2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
.grid3 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: repeat(3, 1fr); } .grid2 .card + .card, .grid3 .card + .card { margin-top: 0; } }

/* the steps, like How it works on the division sites */
.step .n { font: 700 26px/1 "JetBrains Mono", ui-monospace, monospace; color: rgb(var(--led)); }
.step h3 { margin-top: 14px; }
.step p { margin: 0; color: rgb(var(--muted)); font-size: 15px; }

/* --- privacy: contents beside the policy on wide screens --------------------- */
.doc { display: grid; gap: 40px; }
@media (min-width: 960px) { .doc { grid-template-columns: 220px 1fr; gap: 64px; } }
.toc { display: none; }
@media (min-width: 960px) {
  .toc { display: block; position: sticky; top: 100px; align-self: start; }
  .toc a { display: flex; gap: 12px; padding: 8px 0; text-decoration: none; color: rgb(var(--muted)); font-size: 14px; border-bottom: 1px solid rgb(var(--line) / 0.6); }
  .toc a span { font: 10px/1.9 "JetBrains Mono", ui-monospace, monospace; color: rgb(var(--subtle)); }
  .toc a:hover { color: rgb(var(--ink)); }
}

/* --- support: questions that open ------------------------------------------- */
details.q { border-bottom: 1px solid rgb(var(--line)); }
details.q summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; font: 800 18px/1.3 Archivo, system-ui, sans-serif; color: rgb(var(--ink));
}
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after {
  content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgb(var(--line));
  display: grid; place-items: center; font: 400 20px/32px Inter, system-ui, sans-serif; text-align: center; color: rgb(var(--muted));
  transition: transform 0.25s, border-color 0.2s;
}
details.q[open] summary::after { transform: rotate(45deg); border-color: rgb(var(--red)); color: rgb(var(--red)); }
details.q .a { padding: 0 0 22px; color: rgb(var(--muted)); max-width: 62ch; }
details.q .a p { color: rgb(var(--muted)); }

.email-big { display: inline-block; margin-top: 6px; font: 700 clamp(17px, 2.6vw, 22px)/1.3 "JetBrains Mono", ui-monospace, monospace; color: rgb(var(--ink)); text-decoration: none; word-break: break-all; }
.email-big:hover { color: rgb(var(--red)); }

a.link-card { display: block; text-decoration: none; color: inherit; transition: border-color 0.2s, transform 0.2s; }
a.link-card:hover { border-color: rgb(var(--red)); transform: translateY(-2px); }
a.link-card .go { float: right; color: rgb(var(--red)); font-size: 18px; }

/* --- the form ------------------------------------------------------------------ */
.field { display: block; margin-top: 20px; }
.field span { display: block; margin-bottom: 8px; font: 10px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.16em; text-transform: uppercase; color: rgb(var(--subtle)); }
.field input, .field textarea {
  width: 100%; font: 16px/1.5 Inter, system-ui, sans-serif; color: rgb(var(--ink));
  background: rgb(var(--bg)); border: 1px solid rgb(var(--line)); border-radius: 12px; padding: 14px 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: rgb(var(--red)); box-shadow: 0 0 0 3px rgb(var(--red) / 0.18); }
.form-error { margin: 14px 0 0; min-height: 1.2em; font-size: 14px; color: rgb(var(--red)); }
.done { display: none; text-align: center; padding: 18px 0 6px; }
.done .tick { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: rgb(var(--led) / 0.14); color: rgb(var(--led)); font-size: 26px; }
.sent .done { display: block; }
.sent form { display: none; }

/* --- footer -------------------------------------------------------------------- */
footer { border-top: 1px solid rgb(var(--line)); padding: 44px 0 56px; }
footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
footer .about { max-width: 40ch; margin-top: 12px; font-size: 13px; line-height: 1.7; color: rgb(var(--subtle)); }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; }
footer .links a { font-size: 13px; color: rgb(var(--muted)); text-decoration: none; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
footer .links a:hover { color: rgb(var(--ink)); border-color: rgb(var(--red)); }

/* --- about: the divisions and the team ------------------------------------------ */
.quote {
  margin: 22px 0 0; padding: 26px 28px; border-radius: 18px;
  background: rgb(var(--surface)); border: 1px solid rgb(var(--line));
  font: 800 clamp(22px, 3vw, 28px)/1.25 Archivo, system-ui, sans-serif; letter-spacing: -0.02em; color: rgb(var(--ink));
}
.quote::before { content: ""; display: block; width: 32px; height: 3px; background: rgb(var(--red)); margin-bottom: 16px; }

a.division { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color 0.2s, transform 0.2s; }
a.division:hover { border-color: rgb(var(--red)); transform: translateY(-3px); }
.division .kicker { font: 10px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.2em; text-transform: uppercase; color: rgb(var(--led)); }
.division h3 { margin: 14px 0 4px; font-size: 22px; }
.division .what { margin: 0 0 12px; font-size: 14px; font-style: italic; color: rgb(var(--subtle)); }
.division p { color: rgb(var(--muted)); font-size: 15px; }
.division .go { margin-top: auto; padding-top: 10px; font: 10px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.18em; text-transform: uppercase; color: rgb(var(--red)); }

.team { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .team { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .team { grid-template-columns: repeat(3, 1fr); } }
.person { background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.person .photo {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: linear-gradient(180deg, rgb(var(--surface-2)), rgb(var(--bg)));
}
.person .photo::before { /* the panel seams behind anyone without a photo yet */
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image: repeating-linear-gradient(90deg, rgb(var(--line) / 0.5) 0 1px, transparent 1px 44px);
}
.person img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; transition: transform 0.5s; }
.person:hover img { transform: scale(1.03); }
.person .body { padding: 20px 22px 24px; }
.person .role { margin: 0; font: 10px/1.4 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.18em; text-transform: uppercase; color: rgb(var(--red)); }
.person h3 { margin: 8px 0 8px; font-size: 21px; }
.person p { margin: 0; font-size: 15px; color: rgb(var(--muted)); }

.cta { text-align: center; padding: 56px 24px; border-radius: 24px; background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; opacity: 0.4; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgb(var(--line) / 0.4) 0 1px, transparent 1px 88px); }
.cta > * { position: relative; }
.cta h2 { margin: 0 auto 10px; max-width: 18ch; }
.cta p { margin: 0 auto; max-width: 48ch; color: rgb(var(--muted)); }
.cta .actions { justify-content: center; }

/* the footer credit link */
footer .about a { color: rgb(var(--muted)); text-decoration: none; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
footer .about a:hover { color: rgb(var(--ink)); border-color: rgb(var(--red)); }