/* Accentric site styles.
   Palette, type, spacing and radius follow _redesign/design-tokens.json. */

:root {
  --white: #ffffff;
  --surface-soft: #f6f6fe;
  --ink: #0b0b0c;
  --ink-raised: #111113;
  --ink-line: #26262a;
  --blue: #0042c2;
  --blue-hover: #00359c;
  --blue-bright: #4182ff;
  --text-muted: #55555c;
  --text-on-dark: #f6f6fe;
  --text-on-dark-muted: #babac0;
  --border: #dadadf;
  --font-display: "Inter Tight", Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 27px;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
p, h1, h2, h3, figure, blockquote { margin: 0; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--ink); }
.ink a:where(:not(.btn, .btn2)) { color: var(--blue-bright); }
.ink a:where(:not(.btn, .btn2)):hover { color: var(--text-on-dark); }
a.plain { text-decoration: none; }
b, strong { font-weight: 300; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[id] { scroll-margin-top: 24px; }

/* ── Layout ── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.sec { padding: 112px 0; }
.sec-tight { padding: 72px 0; }
.ink { background: var(--ink); color: var(--text-on-dark); }
.soft { background: var(--surface-soft); }
.stack { display: flex; flex-direction: column; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-22 { gap: 22px; } .gap-24 { gap: 24px; }
.gap-28 { gap: 28px; } .gap-48 { gap: 48px; } .gap-56 { gap: 56px; } .gap-64 { gap: 64px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
.grid2.end { align-items: end; }
.grid2.center { align-items: center; }
.grid2.start { align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.divided { padding-top: 40px; border-top: 1px solid var(--border); }
.measure-880 { max-width: 880px; }
.measure-760 { max-width: 760px; }
.measure-720 { max-width: 720px; }

/* ── Type ── */
.d { font-family: var(--font-display); }
.eyebrow { font-size: 13px; line-height: 16px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin: 0 0 16px; }
.stack > .eyebrow { margin: 0; }
.ink .eyebrow { color: var(--blue-bright); }
.h1 { font-family: var(--font-display); font-weight: 300; font-size: 60px; line-height: 1.05; letter-spacing: -.03em; }
.h2 { font-family: var(--font-display); font-weight: 300; font-size: 44px; line-height: 1.1; letter-spacing: -.02em; }
.h3 { font-family: var(--font-display); font-weight: 300; font-size: 24px; line-height: 1.25; letter-spacing: -.01em; }
.h3.lg { font-size: 28px; }
.h3.sm { font-size: 20px; }
.hl { color: var(--blue); }
.ink .hl { color: var(--blue-bright); }
.lead { font-size: 20px; line-height: 30px; }
.muted { color: var(--text-muted); }
.ink .muted { color: var(--text-on-dark-muted); }
.small { font-size: 15px; }
.xsmall { font-size: 14px; }
.stat { font-family: var(--font-display); font-weight: 300; font-size: 56px; line-height: 1; letter-spacing: -.03em; color: var(--blue); }
.ink .stat { color: var(--blue-bright); }
.stat + .muted { margin-top: 12px; }
.num { font-family: var(--font-display); font-size: 15px; color: var(--blue); letter-spacing: .06em; }
.meta-line { font-size: 14px; letter-spacing: .04em; }

/* Hand-drawn underline under hero words */
.brush { position: relative; display: inline-block; }
.brush .stroke { position: absolute; left: -2%; bottom: -.2em; width: 104%; height: .36em; pointer-events: none; }

/* ── Buttons ── */
.btn {
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  font: 300 16px/20px var(--font-body);
  padding: 16px 28px;
  min-height: 52px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--blue-hover); color: #fff; }
.btn:focus-visible, .btn2:focus-visible, .opt:focus-visible, .pill:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ink .btn:focus-visible, .ink .btn2:focus-visible { outline-color: var(--text-on-dark); }
.btn[disabled], .btn.off { opacity: .4; pointer-events: none; cursor: default; }
.btn.full { width: 100%; }
.btn2 {
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  color: inherit;
  font: 300 16px/20px var(--font-body);
  padding: 15px 27px;
  min-height: 52px;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
}
.btn2:hover { color: var(--blue); }
.ink .btn2:hover { color: var(--blue-bright); }
.cta-end { display: flex; justify-content: flex-end; }
.btn-row.between { justify-content: space-between; align-items: center; flex-wrap: nowrap; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Forms ── */
.field {
  border-radius: 10px;
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 52px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0 16px;
  font: 300 16px var(--font-body);
  color: var(--ink);
}
.lbl input.field { flex: none; }
textarea.field { height: 140px; padding: 14px 16px; resize: vertical; }
.field:focus { outline: none; border: 2px solid var(--blue); padding: 0 15px; }
textarea.field:focus { padding: 13px 15px; }
.field.err { border: 2px solid var(--ink); padding: 0 15px; }
.ink .field.err { border-color: var(--text-on-dark); }
.errmsg { display: flex; gap: 6px; align-items: center; font-size: 14px; margin-top: 8px; }
.lbl { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 10px 18px;
  font: 300 15px var(--font-body);
  color: var(--ink);
  cursor: pointer;
  min-height: 44px;
}
.pill.on { border: 2px solid var(--blue); padding: 9px 17px; background: var(--surface-soft); }

/* ── Cards ── */
.card { border-radius: 16px; background: #fff; border: 1px solid var(--border); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.card.raised { padding: 40px; gap: 24px; box-shadow: 0 20px 60px rgba(11, 11, 12, .06); }
.ecard { border-radius: 16px; background: var(--ink-raised); border: 1px solid var(--ink-line); padding: 32px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.ecard.rec { border: 2px solid var(--blue-bright); padding: 31px; }
.tag { border-radius: 6px; position: absolute; top: -14px; left: 30px; background: var(--blue); color: #fff; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; line-height: 16px; }
.svc { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--border); }
.svc-grid { row-gap: 48px; column-gap: 40px; }
.ico { width: 28px; height: 28px; color: var(--ink); flex: none; }
.ico.lg { width: 40px; height: 40px; }
.ink .ico { color: var(--text-on-dark); }

/* ── Illustrations (dashboards, charts) ── */
.mock { background: var(--ink-raised); border: 1px solid var(--ink-line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 14px; color: var(--text-on-dark); font-size: 14px; line-height: 20px; }
.mock.light { background: #fff; border-color: var(--border); color: var(--ink); }
.mock-head { display: flex; justify-content: space-between; align-items: center; }
.mock-title { font-family: var(--font-display); font-size: 18px; }
.mrow { display: grid; grid-template-columns: 110px minmax(0, 1fr) 92px; gap: 14px; align-items: center; }
.bar { height: 8px; border-radius: 999px; background: var(--ink-line); overflow: hidden; }
.light .bar { background: #eeeef3; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--blue-bright); }
.light .bar i { background: var(--blue); }
.chip { font-size: 12px; line-height: 16px; padding: 4px 8px; border-radius: 6px; border: 1px solid #3a3a3f; text-align: center; color: var(--text-on-dark-muted); }
.chip.ok { background: var(--blue); border-color: var(--blue); color: #fff; }
.light .chip { border-color: var(--border); color: var(--text-muted); }
.chip.ok, .light .chip.ok { color: #fff; border-color: var(--blue); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.kpi { border: 1px solid var(--ink-line); border-radius: 10px; padding: 12px; }
.kpi-label { color: var(--text-on-dark-muted); font-size: 12px; }
.kpi-val { font-family: var(--font-display); font-size: 26px; margin-top: 4px; }
.mock-foot { display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--border); padding-top: 14px; color: var(--text-muted); }
.chart { width: 100%; height: auto; }
.legend { display: flex; gap: 18px; font-size: 12px; color: var(--text-muted); }
.legend span { display: flex; gap: 6px; align-items: center; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--border); }
.legend i.after { background: var(--blue); }

/* ── Hero background ── */
.herobg {
  background-color: var(--ink);
  background-image: url(/assets/img/hero_background.jpg);
  background-image: image-set(url(/assets/img/hero_background.webp) type("image/webp"), url(/assets/img/hero_background.jpg) type("image/jpeg"));
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
}
.herobg .mock {
  background: rgba(17, 17, 19, .78);
  border-color: rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: center; }

/* ── Homepage ── */
.bio { display: flex; gap: 28px; align-items: center; padding-top: 32px; border-top: 1px solid var(--border); }
.bio img { width: 132px; height: 132px; border-radius: 16px; object-fit: cover; object-position: 50% 30%; flex: none; }
.bio p { max-width: 860px; }
.stars { display: flex; gap: 2px; }
.quiz { border-radius: 16px; max-width: 720px; border: 1px solid var(--border); background: #fff; padding: 40px; display: flex; flex-direction: column; gap: 24px; }
.quiz.done { padding: 48px 40px; }
.quiz-done-msg { font-family: var(--font-display); font-size: 28px; line-height: 1.25; letter-spacing: -.01em; }
.quiz h3:focus { outline: none; }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt {
  border-radius: 10px;
  display: flex;
  gap: 14px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--border);
  padding: 17px 18px;
  font: 300 16px var(--font-body);
  color: var(--ink);
  cursor: pointer;
  min-height: 56px;
}
.opt:hover { border-color: var(--ink); }
.opt.sel { border: 2px solid var(--blue); background: var(--surface-soft); padding: 16px 17px; }
.radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--text-muted); flex: none; }
.sel .radio { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 4px var(--surface-soft); }
.quiz-nav { display: flex; justify-content: flex-end; }
.dots { display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.dot.on { background: var(--blue); }

/* ── About ── */
.founder-photo { display: block; width: 100%; max-width: 400px; height: auto; aspect-ratio: 683 / 737; object-fit: cover; border-radius: 16px; margin-top: 16px; }
.founder-link { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-size: 15px; }
.orgs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.orgs li { font-family: var(--font-display); font-size: 22px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.text-ink { color: var(--ink); }

/* ── Contact ── */
.contact-rows { display: flex; flex-direction: column; margin-top: 8px; border-bottom: 1px solid var(--border); }
.contact-row { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-top: 1px solid var(--border); }
.contact-row .muted { font-size: 14px; }
.form-grid { gap: 16px; }

/* ── Case study ── */
.crumb { display: flex; gap: 10px; font-size: 14px; color: var(--text-on-dark-muted); }
.ink .crumb a { color: var(--text-on-dark-muted); text-decoration: none; }
.ink .crumb a:hover { color: var(--blue-bright); }
.crumb [aria-current] { color: var(--text-on-dark); }
.quote { font-family: var(--font-display); font-size: 32px; line-height: 1.3; letter-spacing: -.01em; }
.steps { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--border); }
.step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; padding: 28px 0; border-top: 1px solid var(--border); }
.step .muted { margin-top: 8px; }
.steps.tight .step .muted { margin-top: 6px; }
.facts { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px 20px; font-size: 15px; margin: 0; }
.facts dd { margin: 0; }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.ticks li { display: flex; gap: 10px; align-items: center; }

/* ── Legal pages ── */
.legal-band { padding: 96px 0 72px; }
.legal-body { padding: 24px 0 112px; }
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 80px; align-items: start; }
.toc { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 20px; border-left: 1px solid var(--border); padding-left: 18px; }
.toc-label { color: var(--ink); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.toc a { color: var(--text-muted); text-decoration: none; }
.toc a:hover { color: var(--blue); }
.prose { max-width: 760px; color: var(--ink); }
.prose h2 { font-family: var(--font-display); font-weight: 300; font-size: 28px; line-height: 1.2; letter-spacing: -.01em; margin: 56px 0 16px; }
.prose h2:first-of-type { margin-top: 40px; }
.prose p { margin: 0 0 16px; color: #3a3a40; }
.prose ul { margin: 0 0 16px; padding-left: 20px; color: #3a3a40; }
.prose li { margin: 0 0 8px; padding-left: 4px; }
.prose li::marker { color: var(--blue); }
.prose strong { color: var(--ink); }
.prose .intro { font-size: 20px; line-height: 30px; color: var(--ink); margin-bottom: 8px; }
.tbl { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin: 8px 0 20px; overflow-x: auto; }
.tbl table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 23px; min-width: 520px; }
.tbl th { text-align: left; font-weight: 300; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); background: var(--surface-soft); padding: 14px 18px; }
.tbl td { padding: 16px 18px; border-top: 1px solid var(--border); vertical-align: top; color: #3a3a40; }
.tbl td:first-child { color: var(--ink); white-space: nowrap; }
.others-wrap { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 16px; }
.others-wrap .eyebrow { margin: 0; }
.others { display: flex; gap: 12px; flex-wrap: wrap; }
.others a { border: 1px solid var(--border); border-radius: 10px; padding: 12px 18px; text-decoration: none; color: var(--ink); font-size: 15px; }
.others a:hover { border-color: var(--blue); color: var(--blue); }
.others a.on { border-color: var(--ink); pointer-events: none; }

/* ── Header and footer (components/nav.html, components/footer.html) ── */
.sh-ph { height: 81px; background: #fff; border-bottom: 1px solid #dadadf; }

.sh {
  position: relative;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #dadadf;
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  color: #0b0b0c;
}
.sh-in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.sh-word, .sf-word {
  font-family: "Inter Tight", Inter, sans-serif;
  font-weight: 300;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -.02em;
  color: #0b0b0c;
  text-decoration: none;
  white-space: nowrap;
}
.sh-nav {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 15px;
}
.sh-nav a.sh-txt { color: #0b0b0c; text-decoration: none; }
.sh-nav a.sh-txt:hover, .sh-nav a.sh-txt.on { color: #0042c2; }
.sh-btn {
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0042c2;
  color: #fff;
  font: 300 16px/20px Inter, sans-serif;
  padding: 16px 28px;
  min-height: 52px;
  text-decoration: none;
  white-space: nowrap;
}
.sh-btn:hover { background: #00359c; color: #fff; }
.sh-btn:focus-visible, .sh-menu:focus-visible, .sh-panel a:focus-visible { outline: 2px solid #0b0b0c; outline-offset: 2px; }
.sh-menu {
  display: none;
  width: 44px;
  height: 44px;
  flex: none;
  align-items: center;
  justify-content: center;
  border: 1px solid #dadadf;
  border-radius: 10px;
  background: #fff;
  color: #0b0b0c;
  cursor: pointer;
  padding: 0;
}
.sh-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid #dadadf;
  padding: 8px 20px 20px;
}
.sh-panel a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid #dadadf;
  font-size: 17px;
  color: #0b0b0c;
  text-decoration: none;
}
.sh-panel a:last-child { border-bottom: 0; }
.sh-panel a.on { color: #0042c2; }

.sf {
  background: #fff;
  border-top: 1px solid #dadadf;
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 27px;
  color: #0b0b0c;
}
.sf-in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.sf-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.sf-tag { margin: 12px 0 0; font-size: 15px; color: #55555c; }
.sf-cols { display: flex; gap: 72px; }
.sf-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.sf-col b { font-weight: 300; font-size: 12px; letter-spacing: .12em; }
.sf a { color: #0b0b0c; text-decoration: none; }
.sf a:hover { color: #0042c2; }
.sf-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #dadadf;
  padding-top: 24px;
  font-size: 14px;
  color: #55555c;
}

@media (max-width: 700px) {
  .sh-ph { height: 69px; }
  .sh-in { height: 68px; padding: 0 20px; gap: 12px; }
  .sh-word { font-size: 20px; }
  .sh-nav { gap: 8px; }
  .sh-nav a.sh-txt { display: none; }
  .sh-btn { padding: 12px 14px; font-size: 14px; min-height: 44px; }
  .sh-menu { display: inline-flex; }
  .sh.open .sh-panel { display: block; }
  .sf-in { padding: 64px 20px 40px; }
  .sf-cols { gap: 48px; }
  .sf-bar { flex-direction: column; }
}

/* Narrow phones (360px and below): keep wordmark, button and menu on one line */
@media (max-width: 380px) {
  .sh-in { padding: 0 16px; gap: 10px; }
  .sh-word { font-size: 18px; }
  .sh-btn { padding: 10px; font-size: 13px; }
}

/* ── Mobile ── */
@media (max-width: 700px) {
  .wrap { padding: 0 20px; }
  .sec { padding: 64px 0; }
  .sec-tight { padding: 64px 0; }
  .h1 { font-size: 40px; line-height: 1.05; letter-spacing: -.02em; }
  .h2 { font-size: 30px; line-height: 1.15; }
  .h3 { font-size: 22px; }
  .stat { font-size: 40px; letter-spacing: -.02em; }
  .lead { font-size: 18px; line-height: 28px; }
  .quote { font-size: 24px; }
  .btn, .btn2 { width: 100%; white-space: normal; text-align: center; }
  .grid2, .grid3, .grid4 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .herobg { background-position: 70% bottom; background-size: auto 45%; }
  .herobg.home { background-size: auto 55%; }
  .mrow { grid-template-columns: 84px minmax(0, 1fr) 80px; gap: 10px; }
  .bio { flex-direction: column; align-items: flex-start; }
  .quiz { padding: 24px; }
  .quiz.done { padding: 32px 24px; }
  .facts { grid-template-columns: 110px minmax(0, 1fr); }
  .legal { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { display: none; }
  .prose h2 { font-size: 24px; margin-top: 44px; }
  .prose .intro { font-size: 18px; line-height: 28px; }
}
