/* Fonts: self-hosted subsets, all SIL OFL. Azeret Mono is the logo's typeface and sets the
   headings; Manrope sets the text; Modak is only for Lumen's own wordmark. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Azeret Mono';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/fonts/azeret-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Azeret Mono';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/fonts/azeret-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Modak';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/modak-latin.woff2') format('woff2');
}

:root {
  /* Data for Good's colors, from its logo files (the Tally repo's public/icons/logo/). The
     icon's gradient runs violet, indigo, deep indigo, green; the wordmark is lavender on dark
     and ink on light. Tally and Lumen keep their own accents, inside their own logos. */
  --ink: #080e1e;
  --indigo: #17184b;
  --indigo-2: #1f2569;
  --violet: #7f75b3;
  --green: #37693c;
  --lavender: #e2c9ff;
  --lavender-2: #ecddff;
  --paper: #fafaff;
  --brand-gradient: linear-gradient(107deg, var(--violet) 0%, var(--indigo-2) 33%, var(--indigo) 57%, var(--green) 100%);

  /* The page's roles, built from those. The two grays are paper mixed into indigo, and both
     clear 4.5:1 on every background below. */
  --bg: var(--indigo);
  --bg-deep: #10123a;
  --surface: var(--indigo-2);
  --surface-hover: #262c78;
  --line: rgba(226, 201, 255, 0.1);
  --line-strong: rgba(226, 201, 255, 0.2);
  --text: var(--paper);
  --text-2: #cfcbe6;
  --text-3: #a9a6c8;
  --accent: var(--lavender);
  --mono: 'Azeret Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: Manrope, ui-sans-serif, system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 80px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, ol { margin: 0; }
a { color: var(--accent); }
a:hover { color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--paper); color: var(--ink); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* Layout: one centered column, so the page sits in the middle of any screen. */
.wrap { width: min(100% - 2 * var(--gutter), 1120px); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gutter), 800px); }
.center { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  background: rgba(23, 24, 75, 0.88);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s, border-color 0.3s;
}
.js .site-header:not(.is-solid) {
  background: transparent; border-bottom-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
/* The badge (the wordmark in a lavender circle), as Tally's sign-up page uses it. */
.brand { display: inline-flex; border-radius: 50%; }
.brand img { display: block; width: 44px; height: 44px; }
.primary-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); }
.nav-link { padding-block: 6px; font-size: 15px; font-weight: 500; color: var(--text-3); text-decoration: none; }
.nav-link:hover { color: var(--text); }
.nav-link[aria-current="page"] { color: var(--text); font-weight: 600; box-shadow: inset 0 -2px var(--accent); }
@media (max-width: 640px) {
  .nav-link { display: none; }
  .brand img { width: 40px; height: 40px; }
}

/* Buttons: ink on lavender, the badge's own pairing. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px; border-radius: 8px;
  font-size: 16px; font-weight: 700; text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-primary { background: var(--lavender); color: var(--ink); }
.btn-primary:hover { background: var(--paper); color: var(--ink); }

/* Intro: one screen, open from the first frame. The logo's gradient fades into the page
   color at the bottom, so the intro runs straight into the first section. */
.intro {
  height: 100vh; height: 100svh; min-height: 560px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(14px, 2.4vh, 22px);
  padding: var(--header-h) var(--gutter) 32px;
  background: linear-gradient(to bottom, transparent 50%, var(--bg) 100%), var(--brand-gradient);
}
.intro-eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--lavender);
}
.intro-title { line-height: 0; color: var(--lavender); }
.wordmark { display: block; width: auto; height: clamp(200px, 40vh, 400px); aspect-ratio: 202 / 272; }

.toc { width: min(360px, 100%); margin-top: clamp(4px, 2vh, 20px); }
.toc ol { list-style: none; padding: 0; display: grid; gap: 4px; }
.toc a {
  display: flex; align-items: baseline; gap: 10px;
  padding-block: 3px;
  font-size: 14px; font-weight: 500; color: var(--text-2); text-decoration: none;
}
.toc a:hover { color: var(--text); }
.toc-num { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--lavender); }
.toc-dots { flex: 1; border-bottom: 1px dotted rgba(226, 201, 255, 0.32); transform: translateY(-4px); }

/* Content sections */
.section { padding-block: clamp(72px, 9vw, 112px); border-top: 1px solid var(--line); }
.statement { border-top: 0; }
.section-deep { background: var(--bg-deep); }

.display {
  max-width: 940px;
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(30px, 4.4vw, 54px); line-height: 1.15; letter-spacing: -0.03em;
  color: var(--lavender);
  text-wrap: balance;
}
.h2 {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -0.03em;
  color: var(--lavender);
  text-wrap: balance;
}
.h2-lg { font-size: clamp(26px, 3vw, 36px); }
.lede {
  max-width: 720px; margin-top: 26px;
  font-size: clamp(17px, 1.6vw, 19px); line-height: 1.65; color: var(--text-3);
  text-wrap: pretty;
}
.lede-sm { max-width: 620px; margin-top: 22px; font-size: 17px; }

.split {
  display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 680px);
  justify-content: space-between; gap: clamp(28px, 6vw, 72px);
}
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}
.prose { display: grid; gap: 22px; font-size: 18px; line-height: 1.7; color: var(--text-2); }

.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 8px 24px; margin-bottom: 32px;
}
.section-note { font-size: 15px; color: var(--text-3); }

.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}
.card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
}
/* Each value is marked with the logo's smile. */
.card::before {
  content: ""; width: 30px; height: 10px; margin-bottom: 4px;
  background: var(--lavender);
  -webkit-mask: url('/images/brand/smile.svg') center / contain no-repeat;
  mask: url('/images/brand/smile.svg') center / contain no-repeat;
}
.card h3 { font-size: 19px; font-weight: 700; line-height: 1.3; }
.card p { font-size: 15px; line-height: 1.65; color: var(--text-3); }

.people {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 32px 40px;
}
.person { display: flex; align-items: flex-start; gap: 24px; }
.photo {
  display: block; flex-shrink: 0; width: 132px; aspect-ratio: 132 / 160;
  overflow: hidden; border-radius: 12px;
  background: var(--bg-deep); border: 1px solid var(--line-strong);
  transition: border-color 0.2s;
}
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
a.photo:hover { border-color: var(--accent); }
a.photo:hover img { transform: scale(1.04); }
.person-body { display: grid; gap: 10px; }
.person-body h3 { font-size: 20px; font-weight: 700; }
.role { margin-top: -8px; font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--accent); }
.person-body p:not(.role) { font-size: 15px; line-height: 1.65; color: var(--text-3); }
@media (max-width: 480px) {
  .person { flex-direction: column; gap: 18px; }
  .photo { width: 112px; }
}

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }
.btn-email { gap: 10px; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-check, .btn-email.is-copied .icon-copy { display: none; }
.btn-email.is-copied .icon-check { display: block; }
/* The hint only describes copying, which only happens with JS and a fine pointer. */
.email-hint { display: none; margin-top: 14px; font-size: 14px; color: var(--text-3); }
.email-hint a { color: var(--text-2); }
@media (pointer: fine) {
  .js .email-hint { display: block; }
}

/* Sign-up for updates: a quieter second path under the email. The field borders clear 3:1. */
.signup {
  width: min(100%, 560px); margin-top: clamp(48px, 6vw, 64px); padding-top: clamp(40px, 5vw, 52px);
  border-top: 1px solid var(--line);
  --field-line: rgba(226, 201, 255, 0.45);
  --error: #ffb3c1;
}
.signup-title { font-family: var(--mono); font-size: 19px; font-weight: 700; line-height: 1.35; letter-spacing: -0.02em; color: var(--lavender); text-wrap: balance; }
.signup-lede { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--text-3); text-wrap: pretty; }
.signup-form {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px;
  margin-top: 26px; text-align: left;
}
.field { display: grid; gap: 6px; }
.field-wide, .signup-submit { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--text-2); }
.field input {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 8px;
  background: var(--bg-deep); border: 1px solid var(--field-line); color: var(--text);
  font: 400 16px/1.2 var(--sans); color-scheme: dark;
  transition: border-color 0.2s;
}
.field input:hover { border-color: var(--accent); }
.field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.signup-submit { margin-top: 4px; border: 0; font-family: var(--sans); cursor: pointer; }
.signup-submit[disabled] { opacity: 0.7; cursor: progress; }
.signup-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.signup-status { margin-top: 16px; font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--text); }
.signup-status:empty { display: none; }
.signup-status.is-error, .signup-note-error { color: var(--error); }
.signup.is-done .signup-form { display: none; }
.signup.is-done .signup-status { margin-top: 24px; font-size: 17px; color: var(--lavender); }
/* Without JS the form comes back to #signup-done or #signup-error. */
.signup-note { display: none; margin-top: 16px; font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--lavender); }
.signup-note:target { display: block; }
.signup-note a { color: inherit; }
.signup-fine { margin-top: 18px; font-size: 13px; line-height: 1.6; color: var(--text-3); text-wrap: pretty; }
.signup-fine a { color: var(--text-2); }
.signup.is-done .signup-fine { display: none; }
@media (max-width: 480px) {
  .signup-form { grid-template-columns: minmax(0, 1fr); }
}

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  max-width: calc(100% - 32px); padding: 10px 18px; border-radius: 999px;
  background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  opacity: 0; pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s, transform 0.2s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Each product is introduced by its own logo, not by Data for Good's type. */
.products {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}
.product {
  display: flex; flex-direction: column; gap: 14px;
  padding: 32px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text); text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}
.product:hover { color: var(--text); border-color: var(--accent); background: var(--surface-hover); }
.product-name { display: flex; align-items: center; gap: 14px; min-height: 44px; }
.product-logo-tally { display: block; width: auto; height: 36px; }
lumen-logo.product-logo { display: inline-block; color: var(--paper); font-family: Modak, cursive; font-size: 38px; font-weight: 400; line-height: 1; }
.badge {
  padding: 4px 10px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); background: rgba(226, 201, 255, 0.08); border: 1px solid rgba(226, 201, 255, 0.28);
}
.product-line { font-size: 16px; line-height: 1.6; color: var(--text-3); }
.product-link { margin-top: auto; padding-top: 8px; font-size: 15px; font-weight: 600; color: var(--accent); }

/* Lumen's wordmark (lumen-logo.js). Copied from /architecture/assets/architecture.css, which
   the architecture pages load instead of this file; keep the two in sync. */
@keyframes lumen-beam {
  0% { transform: rotateY(0deg); opacity: .62; }
  25% { transform: rotateY(90deg); opacity: .95; }
  50% { transform: rotateY(180deg); opacity: .62; }
  75% { transform: rotateY(270deg); opacity: .24; }
  100% { transform: rotateY(360deg); opacity: .62; }
}
.lumen-word { font-family: Modak, cursive; line-height: 1; letter-spacing: -0.03em; color: inherit; white-space: nowrap; display: inline-block; }
.lumen-l { position: relative; display: inline-block; }
.lumen-svg { position: absolute; left: -0.126em; top: -0.255em; width: 1em; height: 0.74em; overflow: visible; pointer-events: none; }
.lumen-beam-group { transform-origin: 36.5px 43px; transform-box: view-box; transform: scaleX(2.8) scaleY(5.7); }
.lumen-beam { transform-origin: 36.5px 43px; transform-box: view-box; opacity: .62; animation: lumen-beam 1.7s linear 1 both; }
.lumen-beam.is-replay { animation: none; }
@media (prefers-reduced-motion: reduce) { .lumen-beam { animation: none !important; } }

/* Privacy page */
.page { padding-block: calc(var(--header-h) + clamp(48px, 7vw, 88px)) clamp(72px, 9vw, 112px); }
.page-title {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(32px, 4.4vw, 48px); line-height: 1.15; letter-spacing: -0.03em;
  color: var(--lavender);
}
.page-meta { margin-top: 14px; font-size: 14px; color: var(--text-3); }
body[data-product="tally"] .page-meta [data-for="lumen"],
body[data-product="lumen"] .page-meta [data-for="tally"] { display: none; }

.product-toggle {
  display: inline-flex; gap: 4px; margin-top: 32px; padding: 4px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong);
}
html:not(.js) .product-toggle { display: none; }
.product-toggle button {
  min-height: 40px; padding: 0 22px; border: 0; border-radius: 999px;
  background: transparent; color: var(--text-3);
  font: 600 15px/1 var(--sans); cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.product-toggle button:hover { color: var(--text); }
.product-toggle button[aria-pressed="true"] { background: var(--lavender); color: var(--ink); }

.policy[data-product="tally"] [data-for="lumen"],
.policy[data-product="lumen"] [data-for="tally"] { display: none; }
/* Without JS both versions show, so each product-specific block carries a label. */
.for-label {
  display: table; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); background: rgba(226, 201, 255, 0.08); border: 1px solid rgba(226, 201, 255, 0.28);
}
.policy[data-product] .for-label { display: none; }
/* Review markers: statements to confirm or code to fix before publishing. */
.todo { padding: 1px 6px; border-radius: 4px; background: #d8e63c1f; color: #e8f07a; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.policy { margin-top: 40px; }
.policy section { padding-block: 28px; border-top: 1px solid var(--line); }
.policy h2 {
  font-family: var(--mono); font-weight: 700;
  font-size: 22px; line-height: 1.3; letter-spacing: -0.02em;
  color: var(--lavender);
}
.policy h3 { margin-top: 20px; font-size: 17px; font-weight: 700; }
.policy p, .policy li { font-size: 16px; line-height: 1.7; color: var(--text-2); }
.policy p { margin-top: 12px; }
.policy ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.policy strong { color: var(--text); font-weight: 600; }
.policy .table-wrap { margin-top: 16px; overflow-x: auto; }
.policy table { width: 100%; border-collapse: collapse; font-size: 15px; }
.policy th, .policy td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--text-2); }
.policy th { color: var(--text); font-weight: 600; }
.summary {
  margin-top: 24px; padding: 24px 28px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
}
.summary ul { margin-top: 0; }
.summary li { color: var(--text-2); }
.draft-note {
  margin-top: 24px; padding: 14px 18px; border-radius: 10px;
  background: #d8e63c14; border: 1px solid #d8e63c55; color: #e8f07a; font-size: 14px; line-height: 1.6;
}

/* Footer */
.site-footer { padding-block: 56px; background: var(--bg-deep); border-top: 1px solid var(--line); color: var(--text-3); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-brand img { display: block; width: 48px; height: auto; }
.footer-note { font-size: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: 14px; }
.footer-nav a,
.footer-nav button { color: var(--text-3); text-decoration: none; }
.footer-nav button { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.footer-nav a:hover,
.footer-nav button:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .site-header, .btn, .photo, .photo img, .toast, .product, .field input { transition: none; }
  a.photo:hover img { transform: none; }
}
