/* Creator OS launch site.
   Tokens are the 70x7 identity (brand-resources/docs/identity/README.md), proportions are
   zeely.ai as measured 2026-08-21 (site/PLAN.html section 02). Three type levels and no more:
   display (Space Mono 700), subhead, body (Archivo). */

:root {
  --ink: #12100E; --bone: #F2EEE6; --paper: #F7F5F0;
  --ground: var(--paper);
  --surface: #FFFFFF;
  --surface-2: #EFEBE3;
  --text: var(--ink);
  --muted: #5B564F;
  --faint: #8A837A;
  --rule: #E2DDD4;
  --rule-strong: #C9C2B6;
  --accent: #0E7E96;            /* deep: the only accent that passes on paper */
  --accent-ink: #FFFFFF;        /* text on an accent fill */
  --accent-soft: rgba(14, 126, 150, .10);
  --good: #2F6B4F;
  --dot: rgba(18, 16, 14, .09);
  --wash: rgba(247, 245, 240, .78);   /* over a plate, light */
  --lift: 0 1px 2px rgba(18,16,14,.04), 0 10px 30px -18px rgba(18,16,14,.25);
  --lift-hi: 0 1px 2px rgba(18,16,14,.06), 0 16px 40px -18px rgba(18,16,14,.32);
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Archivo", ui-sans-serif, -apple-system, "Segoe UI", system-ui, sans-serif;
  --r: 12px; --r-lg: 16px; --pill: 100px;
  --max: 1200px; --gutter: 24px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: var(--ink);
    --surface: #1A1714;
    --surface-2: #221E1A;
    --text: var(--bone);
    --muted: #A9A197;
    --faint: #7B736A;
    --rule: #2C2722;
    --rule-strong: #3E3832;
    --accent: #3FC9E8;          /* bright: ink grounds only */
    --accent-ink: #12100E;
    --accent-soft: rgba(63, 201, 232, .12);
    --good: #6FC49A;
    --dot: rgba(242, 238, 230, .085);
    --wash: rgba(18, 16, 14, .80);
    --lift: 0 1px 2px rgba(0,0,0,.35), 0 10px 30px -18px rgba(0,0,0,.8);
    --lift-hi: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -18px rgba(0,0,0,.9);
  }
}
:root[data-theme="dark"] {
  --ground: var(--ink);
  --surface: #1A1714;
  --surface-2: #221E1A;
  --text: var(--bone);
  --muted: #A9A197;
  --faint: #7B736A;
  --rule: #2C2722;
  --rule-strong: #3E3832;
  --accent: #3FC9E8;
  --accent-ink: #12100E;
  --accent-soft: rgba(63, 201, 232, .12);
  --good: #6FC49A;
  --dot: rgba(242, 238, 230, .085);
  --wash: rgba(18, 16, 14, .80);
  --lift: 0 1px 2px rgba(0,0,0,.35), 0 10px 30px -18px rgba(0,0,0,.8);
  --lift-hi: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -18px rgba(0,0,0,.9);
}

/* ---------- ground ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  overflow-x: clip;
}
/* 9px dot field, the decided 70x7 surface. On the body, behind everything. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 9px 9px;
}
/* 12% grain. Film grain via turbulence, not an image: 600 bytes, tiles invisibly. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .12;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img, picture, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- type: three levels ---------- */
h1, h2 {
  font-family: var(--mono); font-weight: 700; margin: 0;
  letter-spacing: -.02em; text-wrap: balance;
}
h1 { font-size: clamp(38px, 6.2vw, 64px); line-height: .96; }
h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.04; max-width: 24ch; }
.head h2 { margin-inline: auto; }
.head.left h2 { margin-inline: 0; }
h3 { font: 700 18px/1.3 var(--sans); margin: 0; letter-spacing: -.005em; }
p  { margin: 0; }
.sub { font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 58ch; text-wrap: pretty; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); padding: 8px 12px; border: 1px solid var(--rule);
  border-radius: var(--pill); background: var(--surface);
}
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.small { font-size: 14px; color: var(--muted); line-height: 1.5; }
.micro { font: 500 12px/1.4 var(--mono); color: var(--faint); letter-spacing: .02em; }
b, strong { font-weight: 700; color: var(--text); }
code { font-family: var(--mono); font-size: .88em; background: var(--accent-soft); padding: 2px 6px; border-radius: 5px; }

/* ---------- layout ---------- */
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
section { padding-block: clamp(64px, 9vw, 120px); }
.head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; margin-bottom: clamp(36px, 5vw, 56px); }
.head .sub { margin-inline: auto; }
.head.left { align-items: flex-start; text-align: left; }
.head.left .sub { margin-inline: 0; }

/* ---------- bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.bar.scrolled { border-bottom-color: var(--rule); }
.bar .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 17px/1 var(--mono); letter-spacing: -.01em; color: var(--text); }
.brand svg { width: 26px; height: 26px; color: var(--accent); }
.nav { display: flex; gap: 6px; justify-self: center; }
.nav a { font: 500 14px/1 var(--sans); padding: 9px 12px; border-radius: var(--pill); color: var(--muted); }
.nav a:hover { color: var(--text); background: var(--accent-soft); }
.bar .cta { justify-self: end; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 14px/1 var(--sans); padding: 12px 18px; border-radius: var(--pill);
  border: 1px solid var(--rule-strong); background: var(--surface); color: var(--text);
  cursor: pointer; white-space: nowrap; transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { box-shadow: var(--lift); transform: translateY(-1px); color: var(--text); }
.btn.solid { background: var(--text); color: var(--ground); border-color: var(--text); }
.btn.solid:hover { color: var(--ground); }
.btn.accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.accent:hover { color: var(--accent-ink); }
.btn.lg { font-size: 15px; padding: 15px 24px; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 72px); }
.hero .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.hero h1 { max-width: 21ch; }
.hero .sub { font-size: clamp(16px, 1.6vw, 19px); max-width: 52ch; }
.proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.proof .eyebrow b { color: var(--text); font-weight: 700; letter-spacing: 0; }

/* the composer: the hero object, and the product's own central gesture */
.composer {
  width: min(760px, 100%); margin-top: 14px; text-align: left;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg);
  box-shadow: var(--lift-hi); overflow: hidden;
}
.composer .top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--rule);
}
.composer .top .micro { color: var(--muted); }
.composer .tally { display: flex; gap: 10px; align-items: center; }
.composer .bar-prog { width: 120px; height: 4px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.composer .bar-prog i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }
.composer .q { padding: 22px 20px 8px; }
.composer .q .section { font: 700 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.composer .q p { font-size: clamp(16px, 1.7vw, 19px); line-height: 1.45; color: var(--text); text-wrap: pretty; }
.composer textarea {
  display: block; width: 100%; min-height: 84px; resize: vertical; border: 0; outline: 0;
  padding: 12px 20px 8px; font: 400 16px/1.5 var(--sans); color: var(--text); background: transparent;
}
.composer textarea::placeholder { color: var(--faint); }
.composer .bottom { display: flex; align-items: center; gap: 10px; padding: 10px 12px 12px 16px; }
.composer .bottom .spacer { flex: 1; }
.picker { position: relative; }
.picker select {
  appearance: none; -webkit-appearance: none; font: 600 13px/1 var(--sans); color: var(--text);
  background: var(--surface-2); border: 1px solid var(--rule); border-radius: var(--pill);
  padding: 9px 30px 9px 12px; cursor: pointer;
}
.picker::after { content: ""; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.send {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--text); color: var(--ground); display: grid; place-items: center;
}
.send:disabled { opacity: .35; cursor: default; }
.send svg { width: 16px; height: 16px; }
.composer .done { padding: 24px 20px; display: none; }
.composer.complete .done { display: block; }
.composer.complete .q, .composer.complete textarea, .composer.complete .bottom { display: none; }
.sections { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.sections div { padding: 10px 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface-2); }
.sections b { display: block; font: 700 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; color: var(--accent); }
.sections span { font: 500 13px/1.3 var(--sans); color: var(--muted); }
.hero .under { margin-top: 4px; max-width: 62ch; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- cards ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 26px 24px; box-shadow: var(--lift); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--lift-hi); }
.card .n { font: 700 12px/1 var(--mono); color: var(--accent); letter-spacing: .08em; margin-bottom: 18px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--muted); line-height: 1.55; text-wrap: pretty; }
.card.dots { background-image: none; }

/* ---------- runs on your AI ---------- */
.ai { background: var(--surface-2); border-block: 1px solid var(--rule); }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.chip {
  display: flex; flex-direction: column; gap: 10px; padding: 22px 20px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--lift);
}
.chip .name { font: 700 18px/1.1 var(--mono); letter-spacing: -.02em; }
.chip .models { display: flex; flex-wrap: wrap; gap: 6px; }
.chip .models span { font: 500 11.5px/1 var(--mono); padding: 6px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--text); }
.chip .small { margin-top: auto; }
.chip.mcp { border-style: dashed; background: transparent; box-shadow: none; }
.chip .state { display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--good); }
.chip .state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- layers rail ---------- */
.rail { display: flex; gap: 12px; overflow-x: auto; padding: 6px 0 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rail > * { flex: 0 0 min(300px, 82vw); scroll-snap-align: start; }
.layer .n { display: flex; align-items: baseline; justify-content: space-between; }
.layer .n em { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-style: normal; }

/* ---------- the panel ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 22px; }
.tabs button { font: 600 13px/1 var(--sans); padding: 10px 14px; border-radius: var(--pill); border: 1px solid var(--rule); background: var(--surface); color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--text); color: var(--ground); border-color: var(--text); }
.shot { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--rule); box-shadow: var(--lift-hi); background: var(--surface); aspect-ratio: 1440 / 900; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.caption { margin-top: 16px; text-align: center; }
.caption q { font-size: 17px; color: var(--text); font-style: italic; quotes: "\201C" "\201D"; }
.caption .micro { display: block; margin-top: 6px; }

/* ---------- plate sections ---------- */
.plate { position: relative; isolation: isolate; overflow: hidden; }
.plate::before { content: ""; position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.plate::after  { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--wash); }
.plate.halftone::before { background-image: url("assets/plates/halftone-ink.webp"); }
.plate.deboss::before   { background-image: url("assets/plates/letterpress-deboss.webp"); }
.plate.cyan::before     { background-image: url("assets/plates/cyan-plate.webp"); }
.plate.ink::before      { background-image: url("assets/plates/ink-plate.webp"); }

/* ---------- the result ---------- */
.result { width: min(760px, 100%); margin-inline: auto; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--lift-hi); overflow: hidden; }
.result table { width: 100%; border-collapse: collapse; }
.result th, .result td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--rule); }
.result th { font: 700 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.result td { font-size: 16px; color: var(--text); }
.result td:last-child, .result th:last-child { text-align: right; }
.result td.big { font: 700 clamp(28px, 4vw, 40px)/1 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.result tr:last-child td { border-bottom: 0; }
.result tr.win td { background: var(--accent-soft); }
.result tr.win td.big { color: var(--accent); }
.result tfoot td { font-size: 14px; color: var(--muted); background: var(--surface-2); }

/* ---------- refusals ---------- */
.refusals { display: grid; gap: 0; border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--lift); }
.refusal { display: grid; grid-template-columns: 64px 1fr; gap: 22px; align-items: start; padding: 28px 28px; border-bottom: 1px solid var(--rule); }
.refusal:last-child { border-bottom: 0; }
.refusal .x { font: 700 34px/1 var(--mono); color: var(--accent); letter-spacing: -.04em; }
.refusal h3 { margin-bottom: 8px; }
.refusal p { font-size: 15px; color: var(--muted); line-height: 1.55; max-width: 62ch; text-wrap: pretty; }

/* ---------- the tenet ---------- */
.tenet .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.tenet h2 { font-size: clamp(34px, 5.6vw, 72px); max-width: 14ch; line-height: .98; }
.tenet .sub { max-width: 56ch; color: var(--text); }
.tenet .terms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; width: min(1000px, 100%); margin-top: 10px; }
.tenet .terms div { padding: 18px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); text-align: left; }
.tenet .terms b { display: block; margin-bottom: 6px; font-family: var(--mono); font-size: 14px; }
.tenet .terms span { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ---------- pricing ---------- */
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: min(860px, 100%); margin-inline: auto; }
.price { display: flex; flex-direction: column; gap: 14px; padding: 30px 28px; }
.price .amount { font: 700 clamp(40px, 5vw, 56px)/1 var(--mono); letter-spacing: -.03em; }
.price .amount small { font-size: .42em; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.price .what { font-weight: 600; font-size: 16px; }
.price p { font-size: 15px; color: var(--muted); line-height: 1.55; }
.price .btn { margin-top: auto; align-self: flex-start; }
.price.hi { border-color: var(--accent); }
.price .tag { position: absolute; top: 16px; right: 16px; font: 700 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); padding: 6px 9px; border: 1px solid var(--accent); border-radius: var(--pill); }
.pricing .note { text-align: center; margin-top: 22px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--rule); padding: 40px 0 56px; }
footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
footer .tenet-line { font: 700 14px/1.3 var(--mono); color: var(--muted); }
footer nav { display: flex; gap: 18px; font-size: 14px; color: var(--muted); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}

/* ---------- the arc rail ---------- */
.railnote { max-width: 74ch; margin-top: 4px; }
.railnote code { font-family: var(--mono); color: var(--muted); }

/* ---------- what your agent can already ask for ---------- */
/* Four one-line asks with the operations under them. The quote is what a person types,
   the code line is what it resolves to, which is the whole claim of this fold. */
.does { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.ask {
  display: flex; flex-direction: column; gap: 8px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r);
  box-shadow: var(--lift);
}
.ask q { font-size: 16px; line-height: 1.4; color: var(--text); quotes: "\201C" "\201D"; }
.ask code {
  font: 500 12px/1.5 var(--mono); color: var(--accent);
  overflow-wrap: anywhere;
}
.undernote { max-width: 74ch; margin: 0 auto 26px; text-align: center; }
.ai .chips + .undernote { margin-bottom: 0; margin-top: 20px; }

/* ---------- the tenet's plain-English footnote ---------- */
.tenet .plainly { max-width: 66ch; margin-top: 4px; color: var(--muted); }

/* ---------- the beta card ---------- */
.beta { width: min(560px, 100%); margin-inline: auto; display: flex; flex-direction: column; gap: 12px; padding: 30px 28px; text-align: left; }
.beta .free { font: 700 clamp(30px, 4vw, 40px)/1 var(--mono); letter-spacing: -.03em; color: var(--accent); }
.beta > p { font-size: 15px; color: var(--muted); line-height: 1.55; }
.beta form { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.beta input {
  width: 100%; font: 400 15px/1.4 var(--sans); color: var(--text);
  background: var(--ground); border: 1px solid var(--rule-strong); border-radius: 10px;
  padding: 13px 14px;
}
.beta input::placeholder { color: var(--faint); }
.beta input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.beta button { align-self: stretch; justify-content: center; text-align: center; margin-top: 4px; }
/* Not display:none. A field that is not in the layout is one a bot can learn to skip,
   and a screen reader is told to ignore it by aria-hidden instead. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* A card you are typing into should not move under the cursor. */
.beta:hover { transform: none; box-shadow: var(--lift); }
.beta.sent form { display: none; }
.beta #b-msg { min-height: 1.5em; }
.beta.sent #b-msg, .beta.bad #b-msg { font-weight: 600; }
.beta.sent #b-msg { color: var(--good); }
.beta.bad #b-msg { color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid3, .chips { grid-template-columns: repeat(2, 1fr); }
  .tenet .terms { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .bar .wrap { grid-template-columns: 1fr auto; }
}
@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .grid3, .chips, .prices, .tenet .terms, .does { grid-template-columns: 1fr; }
  .sections { grid-template-columns: repeat(2, 1fr); }
  .refusal { grid-template-columns: 44px 1fr; gap: 14px; padding: 22px 18px; }
  .refusal .x { font-size: 26px; }
  .composer .bottom { flex-wrap: wrap; }
  .result th, .result td { padding: 14px 14px; }
  .result td.big { font-size: 24px; }
  footer .wrap { grid-template-columns: 1fr; }
  .bar .cta .btn { padding: 10px 14px; font-size: 13px; }
}
