/* Inter 4.1 by Rasmus Andersson, self-hosted for the ActFor and OkayTo landing
   pages, app screens and wallet (the app Workers serve these same files: see
   modules/app-ui/font.ts). SIL Open Font License 1.1: see Inter-OFL.txt.

   Source: https://github.com/rsms/inter/releases/download/v4.1/Inter-4.1.zip
   (static web/*.woff2, unmodified, not subset).
   Release asset digest unavailable (GitHub digest null for v4.1); zip sha256
   9883fdd4a49d4fb66bd8177ba6625ef9a64aa45899767dde3d36aa425756b11e computed
   locally; each woff2 byte-identical to rsms/inter@v4.1 docs/font-files/<name>.
     Inter-Regular.woff2   sha256 e06f6b1bc553aaea4e4668023ed0ab0a147129c3107f511bc7d03d361b0ae085
     Inter-Medium.woff2    sha256 0ff3e94614e1493eb556314fd247ae6c4a85a7783b4cc86be539940cf83f2a48
     Inter-SemiBold.woff2  sha256 5cb7103e4e605989afebc03d989c79201e54b21b5183db33981f70db9178a301
     Inter-Bold.woff2      sha256 fa888127b6da015b65569f0351f3b5c391ad928904951f1c20e9f8462a8d95ea
     Inter-OFL.txt         sha256 262481e844521b326f5ecd053e59b98c8b2da78c8ee1bdbb6e8174305e54935a
                           (LICENSE.txt, byte-identical to rsms/inter@v4.1 LICENSE.txt) */

@font-face {
  font-family: Inter;
  src: url("./Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("./Inter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("./Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("./Inter-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Clean light tokens for ActFor and OkayTo: the landing pages, the app
   screens (modules/app-ui/) and the wallet.
   Approved v2 (2026-11-26): see brand/clean-light.md. */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #0a0a0a;
  --muted: #525252;
  --faint: #737373;
  --hairline: #e5e5e5;
  --panel: #fafafa;
  --panel-strong: #f5f5f5;
  /* The accents are the marks' own fills, so links and buttons match the logos. */
  --actfor: #496238;
  --actfor-tint: #f3f6ef;
  --actfor-glow: rgb(73 98 56 / 0.22);
  --okayto: #315b88;
  --okayto-tint: #eff4f9;
  --okayto-glow: rgb(49 91 136 / 0.22);
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  /* One moderate radius scale for every surface (operator, 2026-11-26):
     tags and chips, controls, then panels and cards. Fully round only for
     dots, avatars and inside the marks. */
  --radius-tag: 4px;
  --radius-control: 6px;
  --radius-panel: 10px;
  --shadow-frame: 0 1px 2px rgb(10 10 10 / 0.04), 0 24px 64px -16px rgb(10 10 10 / 0.16);
}

[data-product="actfor"] {
  --accent: var(--actfor);
  --glow: var(--actfor-glow);
}

[data-product="okayto"] {
  --accent: var(--okayto);
  --glow: var(--okayto-glow);
}

/* ActFor and OkayTo landing pages (actfor.app, okayto.app), "Clean light".
   Approved v2 (2026-11-26): brand/clean-light.md.
   Served after inter.css and tokens.css, so colours and type come from there.

   Light only. White ground, ink type, 1px hairlines between sections and
   steps. The brand hues appear only on the primary button, links, step
   numerals and the status dot. The one piece of depth is the product frame:
   a soft wide shadow over a faint glow in the page's own hue.

   Phone-native first (ticket 14): the base rules are a 390×844 phone held in
   one hand. A compact sticky bar, a short hero with a full-width button in
   thumb reach, list rows rather than floating panels, 17 px body and 44 px
   targets throughout. min-width layers in rem (so 200% text falls back to
   the phone layout) add columns at 40rem and put the hero side by side at
   60rem, where the panels and cards return. */

:root {
  --gutter: max(1.25rem, env(safe-area-inset-left), env(safe-area-inset-right));
  --measure: 75rem;
  --band: 1.75rem;
  --bar: 3.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); scroll-padding-block-start: calc(var(--bar) + .75rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  padding-block-start: env(safe-area-inset-top);
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem / 1.55 var(--sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.visually-hidden {
  position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; z-index: 2; inset: .75rem auto auto .75rem;
  padding: .6rem .9rem; border-radius: var(--radius-control);
  background: var(--ink); color: var(--bg); font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* The hero glow reaches past the frame; clip it at the viewport, not the frame. */
main { overflow-x: clip; }
.frame { inline-size: min(100% - 2 * var(--gutter), var(--measure)); margin-inline: auto; }

/* Secondary actions are text links with an arrow: ↗ leaves the site,
   → stays on it. The arrow is decoration, so it has empty alt text. */
.out, .more, .readi a, .foot-links a { font-weight: 500; text-decoration: none; }
/* Every text link is a full 44 px target: the row grows, not the type. */
.out, .more, .readi a, .foot-links a { display: inline-flex; align-items: center; min-block-size: 44px; }
.caption { font-size: .875rem; }
.out:hover, .more:hover, .readi a:hover, .foot-links a:hover { text-decoration: underline; }
/* The plain content line is for browsers without alt text in content. */
.out::after, .readi a::after { content: "\2009\2197"; content: "\2009\2197" / ""; }
.more::after { content: "\2009\2192"; content: "\2009\2192" / ""; }

/* ---------------------------------------------------------------- header */

/* A compact app bar that stays put while the page scrolls under it. */
.bar {
  position: sticky; inset-block-start: 0; z-index: 1;
  border-block-end: 1px solid var(--hairline);
  background: rgb(255 255 255 / .94);
  -webkit-backdrop-filter: saturate(1.8) blur(12px);
  backdrop-filter: saturate(1.8) blur(12px);
}
.bar-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1rem;
  min-block-size: var(--bar);
}
.lockup { inline-size: auto; block-size: 1.25rem; }
.tagline { color: var(--muted); font-size: .875rem; font-weight: 500; }

/* ---------------------------------------------------------------- hero */

.hero {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem;
  padding-block: 1.5rem var(--band);
}
.status {
  display: flex; align-items: center; gap: .5rem;
  color: var(--muted); font-size: .875rem; font-weight: 500;
}
.status::before {
  content: ""; flex: none; inline-size: .5rem; block-size: .5rem;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px var(--glow);
}
h1 {
  margin-block: .75rem;
  font-size: clamp(2rem, 8.6vw, 4.25rem); font-weight: 700;
  line-height: 1.06; letter-spacing: -.03em;
  text-wrap: balance;
}
.lede { max-inline-size: 34rem; color: var(--muted); font-size: 1.0625rem; line-height: 1.55; text-wrap: pretty; }
/* Thumb reach: the primary button spans the column, and the sister site is
   a full-width secondary row right under it. */
.hero-actions { display: grid; gap: .25rem; margin-block-start: 1.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-block-size: 3.25rem; padding-inline: 1.375rem;
  border-radius: var(--radius-control);
  background: var(--accent); color: #fff;
  font-weight: 600; text-decoration: none;
}
.btn:hover { text-decoration: none; filter: brightness(.92); }
.hero-sister { justify-content: center; min-block-size: 3rem; }

/* The browser frame with the product sheet inside: on a phone, a slim bar
   and tighter sheet so it reads as the screen it pictures. */
.shot { position: relative; isolation: isolate; }
.shot::before {
  content: ""; position: absolute; z-index: -1; inset: -12% -15%;
  background: radial-gradient(closest-side, var(--glow), transparent 75%);
}
/* On a phone the frame is a scaled picture of the screen, the way an app
   store shows one, so it takes less of the scroll than the screen itself. */
.browser {
  zoom: .86;
  overflow: hidden;
  border-radius: var(--radius-panel);
  background: var(--bg);
  box-shadow: 0 0 0 1px rgb(10 10 10 / .06), var(--shadow-frame);
}
.browser-bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: .5rem .875rem;
  border-block-end: 1px solid var(--hairline);
  background: var(--panel);
}
.browser-dots { display: flex; gap: .3rem; }
.browser-dots span { inline-size: .5rem; block-size: .5rem; border-radius: 50%; background: #d4d4d4; }
.browser-url { color: var(--faint); font-size: .8125rem; font-weight: 500; }
.shot figcaption { margin-block-start: .75rem; color: var(--muted); text-align: center; }

/* ---------------------------------------------------------------- sheets */

.sheet { display: grid; gap: .75rem; padding: 1.125rem 1.125rem 1.25rem; font-size: .9375rem; }
.sheet-title { font-size: 1.3125rem; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.sheet-brand { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.sheet-trail { display: grid; gap: .375rem; color: var(--muted); line-height: 1.4; }
.sheet-trail li { display: flex; align-items: center; gap: .625rem; }
.sheet-trail li::before {
  content: ""; flex: none; inline-size: .5rem; block-size: .5rem; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--okayto);
}
.sheet-trail .sheet-now { color: var(--ink); font-weight: 500; }
.sheet-trail .sheet-now::before { background: var(--actfor); box-shadow: none; }
.sheet-btn {
  display: flex; align-items: center; justify-content: center; gap: .625rem;
  min-block-size: 2.75rem; padding-inline: 1rem;
  border-radius: var(--radius-control);
  font-weight: 600;
}
.sheet-btn-dark { margin-block-start: .25rem; background: var(--ink); color: #fff; }
.sheet-btn-accent { background: var(--accent); color: #fff; }
.sheet-btn-quiet { box-shadow: inset 0 0 0 1px #d4d4d4; color: var(--ink); }
.sheet-icon { inline-size: 1.25rem; block-size: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.sheet-or {
  display: flex; align-items: center; gap: .75rem;
  color: var(--faint); font-size: .8125rem; text-align: center;
}
.sheet-or::before, .sheet-or::after { content: ""; flex: 1; border-block-start: 1px solid var(--hairline); }

.sheet-agent { display: flex; align-items: center; gap: .625rem; color: var(--muted); }
.sheet-agent strong { color: var(--ink); font-weight: 600; }
.sheet-face {
  display: grid; place-items: center; flex: none;
  inline-size: 2rem; block-size: 2rem; border-radius: var(--radius-control);
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--hairline);
  color: var(--ink); font-weight: 600; font-size: .875rem;
}
.sheet-stamp { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .875rem; }
.sheet-options { display: grid; gap: .5rem; }
.sheet-option {
  display: flex; gap: .75rem; padding: .75rem .875rem;
  border-radius: var(--radius-control);
  box-shadow: inset 0 0 0 1px var(--hairline);
  line-height: 1.4;
}
.sheet-option strong { font-weight: 600; }
.sheet-option em, .card em { display: block; margin-block-start: .25rem; color: var(--muted); font-size: .8125rem; font-style: normal; }
.sheet-option em::before, .card em::before { content: "\25B2\2009"; content: "\25B2\2009" / ""; color: #a16207; font-size: .625rem; vertical-align: .15em; }
.sheet-option-on { box-shadow: inset 0 0 0 1.5px var(--accent); background: var(--okayto-tint); }
/* Checkboxes, as on the real consent screen: a person may approve several. */
.sheet-check {
  display: grid; place-items: center;
  flex: none; inline-size: 1.125rem; block-size: 1.125rem; margin-block-start: .1rem;
  border-radius: var(--radius-tag); box-shadow: inset 0 0 0 1.5px #737373;
}
.sheet-option-on .sheet-check { background: var(--accent); box-shadow: none; }
.sheet-option-on .sheet-check::after {
  content: ""; inline-size: .3rem; block-size: .55rem; margin-block-start: -.1rem;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.sheet-decision { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-block-start: .25rem; }

/* ---------------------------------------------------------------- bands */

.band { padding-block: var(--band); border-block-start: 1px solid var(--hairline); }
.band h2 {
  max-inline-size: 40rem;
  font-size: clamp(1.5rem, 6.4vw, 2.5rem); font-weight: 700;
  line-height: 1.15; letter-spacing: -.025em; text-wrap: balance;
}
h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; text-wrap: balance; }

/* Who/what: on a phone, a two-up strip of the two marks and their lines.
   The longer descriptions repeat the lede and the steps below, so they
   join the panels from 40rem. The pair's own heading is visually hidden,
   so this band needs no top rule. */
.pair { padding-block-start: 0; border-block-start: 0; }
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: .625rem; }
.panel {
  display: grid; justify-items: start; align-content: start; gap: .625rem;
  padding: 1rem; border-radius: var(--radius-panel);
}
.panel img { inline-size: 2rem; block-size: 2rem; }
.panel h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.panel p, .panel a { display: none; }
.panel p { color: var(--muted); max-inline-size: 30rem; }
.panel a { justify-self: start; }
.panel-actfor { background: var(--actfor-tint); --accent: var(--actfor); }
.panel-okayto { background: var(--okayto-tint); --accent: var(--okayto); }

/* Steps: a compact vertical list, the numeral in its own column in the
   colour of the product that does the step. */
.steps { display: grid; margin-block-start: 1rem; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); column-gap: .75rem;
  padding-block: .75rem; border-block-start: 1px solid var(--hairline);
  line-height: 1.5;
  counter-increment: step;
}
.step:first-child { border-block-start: 0; padding-block-start: .25rem; }
.step::before {
  content: counter(step);
  font-size: 1.0625rem; font-weight: 700; line-height: 1.35; font-variant-numeric: tabular-nums;
}
/* Run-in: the step's title leads its own sentence, so each step is one short paragraph. */
.step h3, .step p { display: inline; }
.step h3 { font-size: 1rem; text-wrap: wrap; }
.step h3::after { content: "."; }
.step p { color: var(--muted); font-size: 1rem; line-height: 1.5; }
.step-actfor::before { color: var(--actfor); }
.step-okayto::before { color: var(--okayto); }

/* Uses: disclosure rows, title and chevron; the explanation opens under it. */
.uses { margin-block-start: 1rem; }
.uses li { border-block-start: 1px solid var(--hairline); }
.uses summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-block-size: 3.25rem; padding-block: .5rem;
  cursor: pointer; list-style: none;
}
.uses summary::-webkit-details-marker { display: none; }
.uses summary::after {
  content: ""; flex: none; inline-size: .5rem; block-size: .5rem; margin-inline-end: .25rem;
  border-inline-end: 1.75px solid var(--faint); border-block-end: 1.75px solid var(--faint);
  transform: translateY(-25%) rotate(45deg);
}
.uses details[open] summary::after { transform: translateY(25%) rotate(-135deg); }
.uses p { padding-block-end: 1rem; color: var(--muted); font-size: 1rem; line-height: 1.5; }

/* OkayTo's wallet: on a phone, list rows as in the real wallet (face, name,
   limit, last use, chevron); cards return on wider screens. */
.wallet { display: grid; gap: 1rem; }
.wallet-copy { display: grid; gap: .5rem; }
.wallet-copy p { max-inline-size: 34rem; color: var(--muted); }
.wallet-cards { display: grid; border-block-start: 1px solid var(--hairline); }
.card {
  display: grid; grid-template-columns: 2rem minmax(0, 1fr); align-items: start; gap: .875rem;
  padding-block: .75rem;
}
.card + .card { border-block-start: 1px solid var(--hairline); }
/* Name and last use share the top line, as a mail list does; the limit sits under it. */
.card-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: .75rem; align-items: baseline; line-height: 1.4; }
.card-limit, .card em { grid-column: 1 / -1; }
.card-body strong { font-weight: 600; }
.card-limit { color: var(--muted); font-size: 1rem; }
.card-used { color: var(--faint); font-size: .875rem; text-align: end; }
.card em { margin-block-start: .125rem; }

/* The audience panel: one light tint, full width. */
.audience {
  display: grid; justify-items: start; gap: .375rem;
  padding: 1.125rem 1.125rem .25rem;
  border-radius: var(--radius-panel);
  background: var(--panel-strong);
}
.audience p { max-inline-size: 40rem; color: var(--muted); }
.audience .readi { font-size: 1rem; }

/* The contact band: the address is the action, a full 44 px accent link. */
.contact { display: grid; justify-items: start; gap: .5rem; }
.contact p { max-inline-size: 40rem; color: var(--muted); }
.contact-email a { display: inline-flex; align-items: center; min-block-size: 44px; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.contact-email a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- footer */

.foot { border-block-start: 1px solid var(--hairline); padding-block-end: env(safe-area-inset-bottom); }
.foot-inner { display: grid; gap: .25rem; padding-block: 1rem 1.25rem; color: var(--muted); font-size: .875rem; }
.foot-pair { color: var(--ink); font-weight: 500; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.foot-links a { color: var(--ink); font-size: 1rem; text-decoration: underline; text-decoration-color: var(--hairline); }
/* The READI badge: a 28 px image inside a full 44 px target. */
.foot-badge a { display: inline-flex; align-items: center; min-block-size: 44px; min-inline-size: 44px; }
.foot-badge img { block-size: 28px; inline-size: auto; }

/* ---------------------------------------------------------------- wider */

@media (min-width: 40rem) {
  body { font-size: 1.125rem; }
  :root { --gutter: max(2rem, env(safe-area-inset-left), env(safe-area-inset-right)); --band: 4.5rem; --bar: 4rem; }
  .lockup { block-size: 1.375rem; }
  .hero { gap: 3rem; padding-block: 3rem var(--band); }
  h1 { margin-block: 1.25rem; }
  .lede { font-size: 1.125rem; line-height: 1.6; }
  .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-block-start: 2rem; }
  .btn { min-block-size: 3rem; }
  .sheet { gap: 1rem; padding: 1.75rem 1.5rem 2rem; }
  .sheet-title { font-size: 1.5rem; }
  .sheet-btn { min-block-size: 3rem; }
  .browser { zoom: 1; }
  .browser-bar { padding: .75rem 1rem; }
  .browser-dots span { inline-size: .625rem; block-size: .625rem; }
  .shot figcaption { margin-block-start: 1rem; }
  .band h2 { line-height: 1.12; }
  h3 { font-size: 1.125rem; }
  .panels { gap: 1rem; }
  .panel { gap: .75rem; padding: 2.5rem 2.5rem 2rem; }
  .panel p { display: block; }
  .panel a { display: inline-flex; }
  .panel img { inline-size: 2.5rem; block-size: 2.5rem; margin-block-end: .5rem; }
  .panel h3 { font-size: 1.5rem; }
  .steps { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; margin-block-start: 2.5rem; }
  .step, .step:first-child { grid-template-columns: none; align-content: start; gap: .5rem; padding-block: 1.25rem 0; border-block-start: 1px solid var(--hairline); }
  .step::before { font-size: .9375rem; font-weight: 600; }
  .step > div { display: grid; gap: .5rem; }
  .step h3, .step p { display: block; }
  .step h3::after { content: none; }
  .step p, .uses p { font-size: inherit; line-height: inherit; }
  .uses { margin-block-start: 2.5rem; }
  .wallet { gap: 2.5rem; }
  .wallet-copy { gap: 1rem; }
  .audience { gap: 1rem; padding: 3rem 3rem 2.5rem; }
  .audience p { font-size: 1.125rem; }
  .contact { gap: 1rem; }
  .foot-inner { gap: 1rem; padding-block: 2rem; }
}

@media (min-width: 60rem) {
  :root { --gutter: max(2.5rem, env(safe-area-inset-left), env(safe-area-inset-right)); --band: 5rem; }
  .bar-inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); align-items: center; gap: 4rem; padding-block: 5rem; }
  h1 { font-size: 4.25rem; }
  .lede { font-size: 1.25rem; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; border: 0; }
  .uses li { border-block-start: 1px solid var(--hairline); }
  .foot-inner { grid-template-columns: 1fr auto 1fr; align-items: center; }
  .foot-links { justify-content: center; }
  .foot-status { text-align: end; }
  .foot-badge { grid-column: 3; justify-self: end; }
  /* The wallet's cards return: three side by side, each with its own edge. */
  .wallet-cards { grid-template-columns: repeat(3, 1fr); gap: .75rem; border: 0; }
  .card, .card + .card {
    padding: 1.25rem; border: 0; border-radius: var(--radius-panel);
    box-shadow: inset 0 0 0 1px var(--hairline);
  }
}
