/* Trade Dome legal pages and the two pages the introduction form lands on. Ivory canvas, navy ink, gold light;
   one typeface, Archivo. The home page has its own stylesheet (home.css); the rules for the old home page were
   removed on 12 Oct 2026, and the five pages here render pixel for pixel as before. */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #faf7f0;
  --paper: #fffdf8;
  --ink: #122951;
  --ink-deep: #0d1f40;
  --ink-raised: #1a3463;
  --muted: #4f5b70;
  --accent: #7a5a12;
  --gold: #ddb24e;
  --gold-soft: #ddb24e66;
  --line: #e6dfcf;
  --dark-muted: #b8c2d6;
  --dark-line: #2c4271;
  --gutter: 20px;
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); }
main { overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 5px; text-decoration-thickness: 1px; }
a { touch-action: manipulation; }
h1, h2, p, ul { margin: 0; }
h1, h2 { font-stretch: 112%; font-weight: 560; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.06; letter-spacing: -.025em; }
p { line-height: 1.65; }
section[id] { scroll-margin-top: 72px; }
.shell { width: min(100%, calc(1240px + var(--gutter) * 2)); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 16px; top: 16px; z-index: 5; padding: 12px 16px; background: var(--ink); color: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; min-height: 44px; }
.brand img { flex: 0 0 auto; width: 40px; height: 40px; }
.brand strong { display: block; font-size: 15px; font-weight: 650; font-stretch: 115%; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase; }
.brand small { display: block; font-size: 11px; line-height: 1.4; letter-spacing: .02em; color: var(--muted); margin-top: 2px; }
 .site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 14px; text-decoration: none; }
 .site-footer nav a:hover { color: var(--ink); text-decoration: underline; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 15px 28px; min-height: 52px; border-radius: 6px; font-size: 15px; font-weight: 600; font-stretch: 108%; letter-spacing: .01em; line-height: 1.4; text-decoration: none; border: 1px solid transparent; max-width: 100%; transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s; }
.button-primary { background: var(--ink); color: var(--paper); box-shadow: 0 10px 24px -12px #12295199; }
.button-primary:hover { background: var(--ink-raised); box-shadow: 0 14px 28px -12px #122951aa, inset 0 -2px 0 var(--gold); }
.button-quiet { background: transparent; color: var(--ink); border-color: #12295133; }
.button-quiet:hover { border-color: var(--ink); background: var(--paper); }
.header-login { padding: 10px 18px; min-height: 44px; font-size: 14px; white-space: nowrap; }

/* Page titles */
h1 { font-size: clamp(44px, 5.2vw, 76px); line-height: 1; letter-spacing: -.035em; font-weight: 560; font-stretch: 114%; }

/* The tagline */
.tagline { margin-top: 28px; font-size: 15px; font-weight: 600; font-stretch: 120%; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.tagline span { color: var(--gold); margin-inline: .12em; }

/* Footer: navy, closing the page on the tagline */
.site-footer { padding-top: 64px; padding-bottom: 40px; background: var(--ink-deep); color: var(--dark-muted); box-shadow: 0 0 0 100vmax var(--ink-deep); clip-path: inset(0 -100vmax); }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer .brand strong { color: var(--paper); }
.site-footer .brand small { color: var(--dark-muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.site-footer nav a { font-size: 13px; color: var(--dark-muted); }
.site-footer nav a:hover { color: var(--paper); }
.site-footer :focus-visible { outline-color: var(--gold); }
.site-footer .tagline { margin-top: 56px; font-size: clamp(22px, 4.4vw, 44px); line-height: 1.1; letter-spacing: .16em; color: var(--paper); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; border-top: 1px solid var(--dark-line); margin-top: 32px; padding-top: 24px; font-size: 12px; color: #8f9bb4; }
.footer-bottom p { max-width: 90ch; line-height: 1.7; }
.footer-bottom > span { line-height: 1.7; white-space: nowrap; }
.footer-credit { display: grid; align-content: start; }
.footer-credit small { font-size: 11px; letter-spacing: .04em; opacity: .85; }
@media (min-width: 720px) { .footer-credit { text-align: right; } }

/* Legal pages */
.legal { max-width: 760px; margin-inline: auto; padding-block: 48px 88px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.1; letter-spacing: -.03em; margin-bottom: 12px; }
.legal .updated { color: var(--muted); font-size: 13px; margin-bottom: 36px; }
.legal h2 { font-size: 22px; line-height: 1.3; letter-spacing: -.01em; margin: 40px 0 12px; }
.legal p, .legal li { font-size: 15px; line-height: 1.75; }
.legal p + p { margin-top: 14px; }
.legal ul { padding-left: 20px; margin: 12px 0 0; }
.legal li + li { margin-top: 8px; }
.legal a { color: var(--accent); font-weight: 600; }
.legal .back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -12px 0 16px; color: var(--muted); font-size: 13px; text-decoration: none; }
.legal .back:hover { color: var(--ink); }
.legal .back__arrow { width: 1em; height: 1em; background: currentColor; -webkit-mask: var(--glyph) center/contain no-repeat; mask: var(--glyph) center/contain no-repeat; transition: transform .18s cubic-bezier(.2,.8,.2,1);
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 8H3M7 4L3 8l4 4'/%3E%3C/svg%3E"); }
@media (hover: hover) and (pointer: fine) { .legal .back:hover .back__arrow { transform: translateX(-2px); } }
@media (prefers-reduced-motion: reduce) { .legal .back__arrow { transition: none; } }
.legal ul + p { margin-top: 14px; }
::selection { background: var(--gold-soft); color: var(--ink); }

@media (min-width: 640px) {
  :root { --gutter: 32px; }
}
@media (min-width: 1040px) {
  :root { --gutter: 40px; }
}
@media (max-width: 479px) {
  .brand img { width: 34px; height: 34px; }
  .brand strong { font-size: 13px; letter-spacing: .12em; white-space: nowrap; }
  .brand small { font-size: 11px; white-space: nowrap; }
  .header-login { padding-inline: 12px; font-size: 13px; }
}
@media (max-width: 639px) {
  .site-footer .tagline { font-size: 4.6vw; font-stretch: 108%; letter-spacing: .06em; }
}
@media (min-width: 900px) {
  body.home .site-header { position: sticky; top: 0; z-index: 30; background: var(--canvas); box-shadow: 0 0 0 100vmax var(--canvas), 0 1px 0 100vmax var(--line); clip-path: inset(0 -100vmax -1px); }
  section[id] { scroll-margin-top: 96px; }
}
@supports (timeline-scope: --a) {
  body.home { timeline-scope: --s-architect, --s-architecture, --s-scanner, --s-bots, --s-desk, --s-membership, --s-questions; }
  #bots { view-timeline-name: --s-bots; }
  #desk { view-timeline-name: --s-desk; }
  #membership { view-timeline-name: --s-membership; }
}

/* A sweep of light across a button under the pointer; it stops for reduced motion. */
@property --sheen { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.button { position: relative; overflow: hidden; isolation: isolate; }
.button::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 30%, #ffffff3d 48%, transparent 66%); transform: translateX(-120%); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .button::after { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
  .button:hover::after { transform: translateX(120%); }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
  }
}

/* The two pages the form lands on */
.form-result { max-width: 640px; padding-block: 96px 120px; }
.form-result .result-mark { width: 54px; height: 62px; margin-bottom: 28px; background: var(--ink); border-radius: 999px 999px 8px 8px; display: grid; place-items: center; }
.form-result .result-mark span { width: 16px; height: 18px; background: var(--gold); clip-path: polygon(0 0, 100% 0, 82% 100%, 18% 100%); margin-top: -14px; }
.form-result h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.08; font-stretch: 112%; font-weight: 560; letter-spacing: -.028em; }
.form-result p { margin-top: 18px; color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 52ch; }
.form-result .button { margin-top: 32px; }
