/* Shared styles for the CIRCLE public pages (overview, FAQ, privacy, terms).
   Palette, radii and type lifted from the CIRCLE app itself (web/src/index.css):
   dark is the default, light mirrors it. */
:root {
  --bg: #0e1626;
  --card: #17223b;
  --nested: #1f2b47;
  --ink: #e9edf4;
  --muted: #93a1bd;
  --line: #29354f;
  --sel: #1c2a45;
  --accent: #6191e9;
  --accent-deep: #3976e3;
  --accent-ink: #0b182d;
  --warm: #e9b861;
  --purple: #9788ee;
  --cyan: #61d5e9;
  --covered: #4fc9a8;
  --radius: 13px;
  --radius-sm: 8px;
  --sans: 'Inter', 'CIRCLE Dene', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbfbfc;
    --card: #ffffff;
    --nested: #f1f3f7;
    --ink: #1f2740;
    --muted: #5c667e;
    --line: #e4e7ee;
    --sel: #eef2fb;
    --accent: #3976e3;
    --accent-deep: #2b5fc0;
    --accent-ink: #ffffff;
    --warm: #b7841f;
    --covered: #2f9c7c;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  background-image:
    radial-gradient(55% 45% at 82% -8%, rgba(97,145,233,0.14), transparent 60%),
    radial-gradient(45% 40% at -8% 6%, rgba(151,136,238,0.08), transparent 60%);
  background-attachment: fixed;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

header { padding: 26px 0 8px; display: flex; align-items: center; gap: 12px; }
/* NCS org brand, the app.ncsnwt.com logo on a light chip so it reads on dark. */
.ncs-brand { display: inline-flex; align-items: center; background: #fff; padding: 5px 11px; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.ncs-brand img { display: block; height: 78px; width: auto; }
.brand-sep { width: 1px; height: 44px; background: var(--line); margin: 0 4px; }
.brand-name { font-weight: 700; letter-spacing: 0.02em; font-size: 1.15rem; }
.brand-name a { color: inherit; }
.brand-name a:hover { text-decoration: none; color: var(--accent); }
.head-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.btn-login {
  font: inherit; font-weight: 700; font-size: 0.9rem; text-decoration: none;
  min-height: 38px; padding: 8px 18px; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--accent-ink);
  display: inline-flex; align-items: center; white-space: nowrap;
}
.btn-login:hover { background: var(--accent-deep); text-decoration: none; }

.hero { padding: 54px 0 36px; }
.kicker {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); font-weight: 500; margin: 0 0 18px;
}
h1 {
  font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(2.2rem, 6vw, 3.3rem); line-height: 1.06; margin: 0 0 18px;
}
h1 .grad {
  background: linear-gradient(100deg, var(--accent), var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(1.08rem, 0.9rem + 0.8vw, 1.35rem); line-height: 1.5; color: var(--muted); margin: 0; text-wrap: pretty; }

hr.rule { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
section { padding: 34px 0; }
h2 { font-weight: 800; font-size: 1.55rem; letter-spacing: -0.015em; margin: 0 0 8px; }
.sub { color: var(--muted); margin: 0 0 22px; font-size: 1.02rem; }
p.body { font-size: 1.05rem; }

/* dialect swatch strip, the app's --dialect scale, standing in for the dialects of the North */
.langs { display: flex; align-items: center; gap: 8px; margin: 20px 0 4px; flex-wrap: wrap; }
.langs .dot { width: 15px; height: 15px; border-radius: 999px; }
.langs .label { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.02em; }

.cards { display: grid; gap: 14px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; display: grid; grid-template-columns: 34px 1fr; gap: 15px; align-items: start;
}
.card .ic {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  display: grid; place-items: center; font-size: 1.15rem;
  background: var(--nested); border: 1px solid var(--line);
}
.card b { display: block; margin-bottom: 3px; font-weight: 700; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.who { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; margin-top: 6px; }
.who .r b { display: block; margin-bottom: 3px; }
.who .r p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.who .r .tag { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }

.flow { display: grid; gap: 12px; }
.flow-row { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: baseline; }
.flow-row .n { font-family: var(--mono); color: var(--accent); font-weight: 500; font-size: 0.95rem; }
.flow-row b { font-weight: 700; }
.flow-row span { color: var(--muted); }

.care { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.care li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 1.02rem; }
.care .tick { color: var(--covered); font-weight: 800; text-align: center; }
.care li b { font-weight: 700; }
.care li span { color: var(--muted); }

.callout {
  margin: 26px 0 0; padding: 18px 20px; background: var(--card);
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius); font-size: 1.02rem;
}
.callout b { color: var(--ink); }

/* FAQ, plain question/answer cards */
.faq { display: grid; gap: 14px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.faq-item .q { font-weight: 700; margin: 0 0 6px; font-size: 1.08rem; }
.faq-item .a { margin: 0; color: var(--muted); font-size: 0.99rem; line-height: 1.55; }
.faq-item .a + .a { margin-top: 8px; }

/* Legal prose (privacy, terms) */
.legal .updated { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 8px; }
.legal h2 { margin-top: 30px; font-size: 1.3rem; }
.legal p, .legal li { color: var(--muted); }
.legal p { margin: 0 0 12px; }
.legal ul { padding-left: 20px; margin: 0 0 14px; display: grid; gap: 6px; }
.legal .draft-note {
  margin: 8px 0 6px; padding: 14px 16px; background: var(--card);
  border: 1px solid var(--warm); border-left: 3px solid var(--warm);
  border-radius: var(--radius); color: var(--ink); font-size: 0.95rem;
}

footer { padding: 40px 0 56px; color: var(--muted); font-size: 0.9rem; }
footer.site-footer { text-align: center; }
footer p { margin: 0 0 6px; }
footer .fine { color: var(--muted); opacity: 0.85; }
footer .footer-note { margin: 6px 0; }

/* "Brought to you by" sponsor bar, same treatment as app.ncsnwt.com: logos on
   white cards so they carry their own colour on CIRCLE's dark ground. */
.brought-label { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 500; margin: 6px 0 14px; }
.brought-logos { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 28px; }
.brought-logos img { height: 52px; width: auto; max-width: 180px; object-fit: contain; background: #fff; padding: 10px 16px; border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.28); }
.footer-ncs { margin: 6px auto 10px; }
.footer-links { display: flex; gap: 18px; justify-content: center; margin: 10px 0; flex-wrap: wrap; }

/* Text-size control: three levels applied as a zoom on the content, the choice
   remembered in this browser (localStorage). */
.content-scale { zoom: 1; }
.content-scale--large { zoom: 1.15; }
.content-scale--extra-large { zoom: 1.3; }
.footer-tools { display: flex; justify-content: center; margin: 0 0 24px; }
.text-size-control {
  margin: 0; padding: 6px; display: grid;
  grid-template-columns: auto repeat(3, minmax(40px, auto));
  align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); color: var(--ink);
}
.text-size-control legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.text-size-control::before {
  content: 'Text size'; padding: 0 8px; font-family: var(--mono);
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); font-weight: 500;
}
.text-size-control button {
  min-width: 40px; min-height: 38px; padding: 4px 10px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--nested); color: var(--ink);
  font-family: var(--sans); font-weight: 700; line-height: 1; cursor: pointer;
}
.text-size-control button[data-size="large"] { font-size: 1.02rem; }
.text-size-control button[data-size="extra-large"] { font-size: 1.14rem; }
.text-size-control button:hover { border-color: var(--accent); }
.text-size-control button[aria-pressed="true"] {
  border-color: var(--accent); background: var(--accent); color: var(--accent-ink);
}

@media (max-width: 560px) {
  .who { grid-template-columns: 1fr; }
  .card { grid-template-columns: 1fr; }
  .card .ic { display: none; }
  .brought-logos img { height: 40px; padding: 8px 12px; }
}
