/* Inter 4.1 by Rasmus Andersson, self-hosted for the ActFor and OkayTo landing
   pages. SIL Open Font License 1.1: see Inter-OFL.txt. The app screens keep
   their own font (brand.css).

   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 the ActFor and OkayTo landing pages.
   Approved v2 (2026-11-26): see brand/clean-light.md.
   The app screens keep Warm Brick (brand.css) until the owner decides. */

: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;
  --radius-control: 8px;
  --radius-panel: 16px;
  --radius-card: 12px;
  --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.

   Mobile-first: the base rules target a 360-390 px phone. 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. */

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

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
@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.6 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; }
.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 */

.bar { border-block-end: 1px solid var(--hairline); }
.bar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-block-size: 4rem;
}
.lockup { inline-size: auto; block-size: 1.375rem; }
.tagline { color: var(--muted); font-size: .875rem; font-weight: 500; }

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

.hero {
  display: grid; gap: 3rem;
  padding-block: 3rem 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: 1.25rem 1.25rem;
  font-size: clamp(2.5rem, 9vw, 4.25rem); font-weight: 700;
  line-height: 1.04; letter-spacing: -.03em;
  text-wrap: balance;
}
.lede { max-inline-size: 34rem; color: var(--muted); font-size: 1.125rem; line-height: 1.6; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-block-start: 2rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-block-size: 3rem; 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); }

/* The browser frame with the product sheet inside. */
.shot { position: relative; isolation: isolate; }
.shot::before {
  content: ""; position: absolute; z-index: -1; inset: -20% -15%;
  background: radial-gradient(closest-side, var(--glow), transparent 75%);
}
.browser {
  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: .75rem 1rem;
  border-block-end: 1px solid var(--hairline);
  background: var(--panel);
}
.browser-dots { display: flex; gap: .375rem; }
.browser-dots span { inline-size: .625rem; block-size: .625rem; border-radius: 50%; background: #d4d4d4; }
.browser-url { color: var(--faint); font-size: .8125rem; font-weight: 500; }
.shot figcaption { margin-block-start: 1rem; color: var(--muted); font-size: .875rem; text-align: center; }

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

.sheet { display: grid; gap: 1rem; padding: 1.75rem 1.5rem 2rem; font-size: .9375rem; }
.sheet-title { font-size: 1.5rem; 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: .5rem; color: var(--muted); }
.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: 3rem; padding-inline: 1rem;
  border-radius: var(--radius-control);
  font-weight: 600;
}
.sheet-btn-dark { margin-block-start: .5rem; 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: .625rem; }
.sheet-option {
  display: flex; gap: .75rem; padding: .875rem 1rem;
  border-radius: var(--radius-control);
  box-shadow: inset 0 0 0 1px var(--hairline);
  line-height: 1.45;
}
.sheet-option strong { font-weight: 600; }
.sheet-option em, .card-limit em { display: block; margin-block-start: .25rem; color: var(--muted); font-size: .8125rem; font-style: normal; }
.sheet-option em::before, .card-limit 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: 4px; 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: .625rem; margin-block-start: .5rem; }

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

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

/* Who/what: two equal, borderless, lightly tinted panels. 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; gap: 1rem; }
.panel { display: grid; justify-items: start; gap: .75rem; padding: 2rem 1.75rem; border-radius: var(--radius-panel); }
.panel img { inline-size: 2.5rem; block-size: 2.5rem; margin-block-end: .5rem; }
.panel h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.panel p { color: var(--muted); max-inline-size: 30rem; }
.panel a { margin-block-start: .5rem; }
.panel-actfor { background: var(--actfor-tint); --accent: var(--actfor); }
.panel-okayto { background: var(--okayto-tint); --accent: var(--okayto); }

/* Steps and uses: columns, each with a hairline above. */
.steps, .uses { display: grid; gap: 2rem; margin-block-start: 2.5rem; counter-reset: step; }
.steps li, .uses li { display: grid; align-content: start; gap: .5rem; padding-block-start: 1.25rem; border-block-start: 1px solid var(--hairline); }
.steps p, .uses p { color: var(--muted); }
.step { counter-increment: step; }
.step::before {
  content: counter(step); margin-block-end: .25rem;
  font-size: .9375rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.step-actfor::before { color: var(--actfor); }
.step-okayto::before { color: var(--okayto); }

/* OkayTo's wallet: approval cards with limits, last use and Revoke. */
.wallet { display: grid; gap: 2.5rem; }
.wallet-copy { display: grid; gap: 1rem; }
.wallet-copy p { max-inline-size: 34rem; color: var(--muted); }
.wallet-cards { display: grid; gap: .75rem; }
.card {
  display: grid; grid-template-rows: auto 1fr auto; gap: .75rem; padding: 1.25rem;
  border-radius: var(--radius-card);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.card-agent { display: flex; align-items: center; gap: .625rem; }
.card-agent strong { font-weight: 600; }
.card-limit { line-height: 1.45; }
.card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block-start: .75rem; border-block-start: 1px solid var(--hairline);
  color: var(--muted); font-size: .875rem;
}
.card-revoke { color: #b42318; font-weight: 600; }

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

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

.foot { border-block-start: 1px solid var(--hairline); padding-block-end: env(safe-area-inset-bottom); }
.foot-inner { display: grid; gap: 1rem; padding-block: 2rem; color: var(--muted); font-size: .875rem; }
.foot-pair { color: var(--ink); font-weight: 500; }
.foot-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.foot-links a { color: var(--ink); }

/* ---------------------------------------------------------------- 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; }
  .panels { grid-template-columns: 1fr 1fr; }
  .panel { padding: 2.5rem; }
  .steps { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; }
  .audience { padding: 3rem; }
}

@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 { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .foot-inner { grid-template-columns: 1fr auto 1fr; align-items: center; }
  .foot-links { justify-content: center; }
  .foot-status { text-align: end; }
  .wallet-cards { grid-template-columns: repeat(3, 1fr); }
}
