/* Pulse styles.
   Tokens are copied from ai-startup/marketing AA_Brand/tokens/aa-brand.css (2026-09-28); fonts and
   logos from AA_Brand/fonts and AA_Brand/assets/logo. Update them from there, not by hand.
   Brand rules: AA_Brand/AGENTS.md. Navy surface, Chartreuse leads, Turquoise supports. */

@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono-VariableFont_wght.ttf") format("truetype"); font-weight: 100 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("fonts/InterTight-VariableFont_wght.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --aa-hot-pink: #FF216E;
  --aa-chartreuse: #D8FF00;
  --aa-turquoise: #00E1FF;
  --aa-navy: #0F1E38;
  --aa-black: #000000;
  --aa-warm-white: #F2F1EA;
  --aa-font-sans: "Helvetica Neue", Helvetica, "Inter Tight", Arial, sans-serif;
  --aa-font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --aa-ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Surface: Navy. Muted text is Warm White at opacity, never a grey. */
  --bg: var(--aa-navy);
  --fg: var(--aa-warm-white);
  --fg-2: rgba(242,241,234,.72);
  --fg-3: rgba(242,241,234,.55);
  --fg-4: rgba(242,241,234,.32);
  --rule: rgba(242,241,234,.14);
  --tint: rgba(242,241,234,.05);
  --accent: var(--aa-chartreuse);
  --on-accent: #000;
  --link: var(--aa-turquoise);
}
.s-black { --bg: var(--aa-black); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.5 var(--aa-font-sans); -webkit-font-smoothing: antialiased; font-variant-ligatures: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { opacity: .75; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
ul, ol { list-style: none; margin: 0; padding: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type. Mono labels are the only uppercase. */
.eb { margin: 0; font: 500 12px/1.2 var(--aa-font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.label { margin: 0; font: 400 12px/1.3 var(--aa-font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.label b { font-weight: 500; color: var(--link); }
.title { margin: 0; font-size: 28px; line-height: 1.1; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
.h3 { margin: 0; font-size: 20px; line-height: 1.2; letter-spacing: -.015em; font-weight: 700; }
.muted { color: var(--fg-2); }
.ac { color: var(--accent); }
.sep { color: var(--fg-4); }

/* Top bar: sticky Navy at 85 % with a 10 px blur */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 0 16px; background: rgba(15,30,56,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.top > a:first-child { flex: none; }
.top .logo { height: 22px; width: auto; }
@media (max-width: 640px) { .top { flex-wrap: wrap; gap: 8px 12px; padding-block: 8px; } }
.top .code { margin-left: auto; white-space: nowrap; }

.page { max-width: 720px; margin: 0 auto; padding: 24px 16px 64px; display: flex; flex-direction: column; gap: 20px; }

/* Buttons: sentence-case verbs, square corners */
.btn { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; min-height: 44px; padding: 0 18px; font: 700 15px/1 var(--aa-font-sans); letter-spacing: -.01em; border: 1px solid transparent; background: var(--accent); color: var(--on-accent); transition: filter 120ms var(--aa-ease-out), border-color 120ms var(--aa-ease-out); }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn-s { background: transparent; color: var(--fg); border-color: var(--fg-4); }
.btn-s:hover { filter: none; border-color: var(--fg); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 14px; }
.act { background: none; border: 0; padding: 6px 0; font: 500 11px/1 var(--aa-font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.act:hover { color: var(--fg); }
.act.go { color: var(--accent); }

/* Tabs: QUESTIONS \ POLLS */
.tabs { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--rule); }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 12px 0; font: 500 13px/1 var(--aa-font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.tab[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); }
.tab .n { color: var(--link); margin-left: 6px; }

/* Ask box */
.ask { border: 1px solid var(--rule); background: var(--tint); }
.ask:focus-within { border-color: var(--fg-4); }
.ask textarea { display: block; width: 100%; min-height: 84px; padding: 14px 16px; border: 0; background: none; resize: none; font-size: 17px; line-height: 1.4; }
.ask textarea:focus { outline: none; }
.ask textarea::placeholder { color: var(--fg-3); }
.ask-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 14px; border-top: 1px solid var(--rule); }

.check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--fg-2); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; margin: 0; width: 18px; height: 18px; border: 1px solid var(--fg-4); background: none; cursor: pointer; }
.check input:checked { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--bg); }

.sort { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.sort .opts { display: flex; flex-wrap: wrap; gap: 12px; }
.sort button { background: none; border: 0; padding: 4px 0; font: 500 12px/1 var(--aa-font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.sort button[aria-pressed="true"] { color: var(--fg); }

/* Forms */
.field { display: block; width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--fg-4); border-radius: 0; background: var(--tint); font-size: 17px; }
.field::placeholder { color: var(--fg-3); }
textarea.field { min-height: 112px; padding: 12px 14px; line-height: 1.4; resize: vertical; }
.inline { display: flex; gap: 8px; }
.inline .field { flex: 1; min-width: 0; }
.inline .btn { min-height: 48px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.affix { display: flex; flex: 1 1 260px; min-width: 0; border: 1px solid var(--fg-4); background: var(--tint); cursor: text; }
.affix:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.affix span { display: flex; align-items: center; padding-left: 14px; font: 400 13px/1 var(--aa-font-mono); color: var(--fg-3); white-space: nowrap; }
.affix .field { border: 0; background: none; padding-left: 1px; font: 400 15px/1 var(--aa-font-mono); }
.affix .field:focus-visible { outline: none; }
.wrap-row { flex-wrap: wrap; }
.note { margin: 0; font-size: 14px; color: var(--fg-2); }
.err { margin: 0; font: 500 12px/1.4 var(--aa-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--aa-hot-pink); }
.empty { margin: 0; padding: 20px 0; color: var(--fg-3); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.conn { font: 500 11px/1 var(--aa-font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--aa-hot-pink); }
.tab .n.due { color: var(--accent); }

/* Home: list of events */
.rows > li { border-top: 1px solid var(--rule); }
.rows > li:last-child { border-bottom: 1px solid var(--rule); }
.rows a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; color: var(--fg); }
.rows a:hover { opacity: 1; color: var(--accent); }

/* Questions */
.qs > li { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; padding: 16px 0; border-top: 1px solid var(--rule); }
.qs > li:last-child { border-bottom: 1px solid var(--rule); }
.q-text { margin: 0 0 8px; font-size: 17px; line-height: 1.4; text-wrap: pretty; }
.q-acts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; }
.yours { color: var(--link); }

.vote { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 52px; min-height: 56px; padding: 8px 0; border: 1px solid var(--fg-4); background: none; color: var(--fg); }
.vote::before { content: ""; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 7px solid currentColor; }
.vote .n { font: 500 14px/1 var(--aa-font-mono); color: var(--link); }
.vote:hover { border-color: var(--fg); }
.vote[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.vote[aria-pressed="true"] .n { color: var(--on-accent); }
.vote:disabled { cursor: default; opacity: .55; }

.now { border: 1px solid var(--accent); padding: 16px; }
.now .eb { margin-bottom: 10px; }
.now .q-text { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }

details.done summary { list-style: none; cursor: pointer; padding: 14px 0; border-top: 1px solid var(--rule); }
details.done summary::-webkit-details-marker { display: none; }

/* Polls */
.poll { display: flex; flex-direction: column; gap: 14px; }
.opts-list { display: flex; flex-direction: column; gap: 8px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid var(--fg-4); background: none; text-align: left; font-size: 17px; }
.opt::before { content: ""; flex: none; width: 16px; height: 16px; border: 1px solid var(--fg-4); }
.opt:hover { border-color: var(--fg); }
.opt[aria-pressed="true"] { border-color: var(--accent); }
.opt[aria-pressed="true"]::before { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--bg); }

.result { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; }
.result .pct { font: 500 14px/1 var(--aa-font-mono); color: var(--fg-2); }
.bar { grid-column: 1 / -1; height: 6px; background: var(--rule); }
.bar i { display: block; height: 100%; background: var(--fg-4); transition: width 400ms var(--aa-ease-out); }
.result.lead .bar i { background: var(--accent); }
.result.lead .pct { color: var(--accent); }
.result.mine > span:first-child::after { content: " · your vote"; font: 400 12px/1 var(--aa-font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--link); }

/* Host */
.host { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; max-width: 1180px; margin: 0 auto; padding: 24px 16px 64px; }
@media (max-width: 900px) { .host { grid-template-columns: 1fr; } }
.side { display: flex; flex-direction: column; gap: 20px; }
.box { border: 1px solid var(--rule); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.switch { appearance: none; -webkit-appearance: none; margin: 0; flex: none; width: 36px; height: 20px; border: 1px solid var(--fg-4); background: none; position: relative; cursor: pointer; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; background: var(--fg-3); transition: transform 160ms var(--aa-ease-out); }
.switch:checked { border-color: var(--accent); }
.switch:checked::after { background: var(--accent); transform: translateX(16px); }
.pending { border: 1px dashed var(--fg-4); padding: 0 16px; }
.live { color: var(--accent); }

/* Present: 16:9, sized off its own width so it works in any screen share */
body.present-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; background: var(--aa-black); overflow: hidden; }
.present-page .present { width: min(100vw, calc(100vh * 16 / 9)); width: min(100vw, calc(100dvh * 16 / 9)); }
.present { position: relative; overflow: hidden; container-type: inline-size; aspect-ratio: 16 / 9; background: var(--aa-black); color: var(--fg); }
.present .in { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto; padding: 4cqw 5cqw; }
.present .head { display: flex; align-items: center; justify-content: space-between; }
.present .head img { height: 1.9cqw; width: auto; }
.present .join { display: flex; border: 1px solid var(--rule); background: rgba(0,0,0,.6); font: 500 1.05cqw/1 var(--aa-font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.present .join span { padding: .9cqw 1.2cqw; border-right: 1px solid var(--rule); }
.present .join span:last-child { border-right: 0; }
.present .join b { color: var(--aa-turquoise); font-weight: 500; }
.present .body { align-self: center; display: flex; flex-direction: column; gap: 2.4cqw; max-width: 72cqw; }
.present .eb { font-size: 1.2cqw; }
.present .q { margin: 0; font-size: 4.4cqw; line-height: 1.04; letter-spacing: -.032em; font-weight: 700; text-wrap: balance; }
.present .results { display: flex; flex-direction: column; gap: 1.6cqw; }
.present .result { gap: .7cqw 1.4cqw; font-size: 1.9cqw; }
.present .result .pct { font-size: 1.6cqw; }
.present .bar { height: .9cqw; }
.present .foot { font: 400 1.05cqw/1 var(--aa-font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.present .big { margin: 0; font-size: 6cqw; line-height: 1; letter-spacing: -.035em; font-weight: 700; }
.present .tops > li { display: grid; grid-template-columns: 1fr auto; gap: 3cqw; align-items: baseline; padding: 1.5cqw 0; border-top: 1px solid var(--rule); font-size: 2.3cqw; line-height: 1.2; letter-spacing: -.015em; }
.present .tops .n { font: 500 1.6cqw/1 var(--aa-font-mono); color: var(--aa-turquoise); }
.present .who { font: 400 1.2cqw/1 var(--aa-font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.halftone { position: absolute; right: 0; top: 0; width: 46%; height: 60%; background-image: radial-gradient(circle, rgba(216,255,0,.45) 1px, transparent 1.5px); background-size: 8px 8px; -webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 100% 0%, #000 0%, transparent 70%); pointer-events: none; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
