
:root {
  --bg: #f7f6f4; --surface: #fffefc; --field: #fdfcfa;
  --fg: #1c1b19; --body: #59564f; --muted: #75726c; --faint: #8a8781;
  --line: #e6e2da; --line-strong: #d9d5cd;
  --accent: #55655a; --link: #3b3a37; --err: #9a4b34;
  --ok: #55655a; --warn: #9a7b34;
  --btn-bg: #24231f; --btn-fg: #f7f6f4; --btn-hover: #12110f;
  --quote: #f6f4f0;
  --orb1: oklch(64% .12 158); --orb2: oklch(70% .12 112);
  --orb3: oklch(73% .12 72);  --orb4: oklch(68% .12 38);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171614; --surface: #1f1e1b; --field: #191816;
    --fg: #f2efe9; --body: #b3ada2; --muted: #a09a90; --faint: #8e887e;
    --line: #2b2925; --line-strong: #3a3833;
    --accent: #8fb39c; --link: #d6d0c5; --err: #e0977c;
    --ok: #8fb39c; --warn: #d1a86a;
    --btn-bg: #f2efe9; --btn-fg: #17161a; --btn-hover: #ffffff;
    --quote: #232220;
    --orb1: oklch(68% .12 158); --orb2: oklch(74% .12 112);
    --orb3: oklch(77% .12 72);  --orb4: oklch(72% .12 38);
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  -webkit-font-smoothing: antialiased;
  font: 15px/1.6 "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
/* Named first so adding the real web font later is a one-line change and
   nothing else moves. Until then every visitor gets Georgia. */
.display, .brandbar .mark, header h1, .login h1 {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 32px 20px 80px; }
.wrap.wide { max-width: 1280px; padding: 0 0 84px; }
header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
h1 { font-size: 21px; margin: 0; letter-spacing: -0.01em; }
h1 a { color: inherit; text-decoration: none; }
header h1 { display: flex; align-items: center; gap: 8px; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin: 32px 0 12px; }
a { color: var(--link); text-underline-offset: 2px; }
nav a { margin-left: 14px; font-size: 14px; }
form.paste { display: flex; gap: 8px; margin-bottom: 8px; }
input[type=text], input[type=password], input[type=email] {
  flex: 1; height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 6px;
  background: var(--field); color: var(--fg); font-size: 15px; font-family: inherit;
}
input::placeholder, textarea::placeholder { color: var(--faint); opacity: .85; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
button {
  padding: 0 20px; height: 46px; border: 0; border-radius: 6px; background: var(--btn-bg);
  color: var(--btn-fg); font: 600 15px/1 inherit; cursor: pointer;
}
button:hover { background: var(--btn-hover); }
button.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line-strong); }
button.ghost:hover { background: var(--surface); }
button.danger { background: transparent; color: var(--err); border: 1px solid var(--line-strong); }
button.danger:hover { background: var(--surface); }
.hint { color: var(--faint); font-size: 13px; margin: 0 0 28px; }
.hint a { color: inherit; text-decoration: underline; }

/* ── the public page ──────────────────────────────────────────────────────── */

/* Edge to edge: the rule under the wordmark spans the whole viewport, so the
   header reads as a frame edge rather than a block floating in the content
   column. The contents stay on the same 1280 column as the hero below, so the
   wordmark still lines up with the headline on a screen wider than that. */
.brandbar { border-bottom: 1px solid var(--line); }
.brandbar .bar {
  max-width: 1280px; margin: 0 auto; padding: 26px 72px;
  display: flex; justify-content: space-between; align-items: center;
}
.wordmark { display: flex; align-items: center; gap: 10px; font-size: 26px; }
.brandbar .mark { font-size: inherit; letter-spacing: .01em; color: var(--fg); text-decoration: none; }

/*
 * The orb, after the wordmark. Adapted from smoothui's Siri Orb, idle state.
 *
 * The trick worth keeping is that the conic gradients are rotated at different
 * multiples of one animated --angle (2x, -3x, 1.5x, -2x), so the colours churn
 * against each other instead of turning as a rigid unit. Animating an angle at
 * all needs @property: a plain custom property is an untyped string and has
 * nothing to interpolate. Where that is unsupported the orb renders as a still
 * bead, which is a fine thing to degrade to.
 *
 * Two departures from the original, both forced by drawing it at 20px rather
 * than 192px:
 *
 * The dot-matrix layer behind a backdrop-filter is gone. It is invisible at
 * this size and backdrop-filter is not a cheap thing to leave running in a
 * header on every page.
 *
 * A base gradient sits under the conic layers. Each of those is opaque for
 * roughly 40 percent of its sweep and transparent across the rest, so where
 * their gaps line up the page shows through — which read as a bite taken out of
 * the bottom of the orb. The original fills that with the dot layer; this fills
 * it with a colour.
 *
 * The four colours are one hue sweep at a single lightness and chroma. Matching
 * them matters more than the values do: the first attempt used the theme's own
 * sage, ochre and clay, and the clay simply won, because it was the most
 * saturated and sat on top.
 */
@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.orb {
  /* 1em, so it is always the size of the word beside it. Three hand-tuned
     numbers drifted out of proportion the moment one of them changed. */
  --orb-size: 1em;
  flex: none; position: relative; display: block;
  width: var(--orb-size); height: var(--orb-size);
  border-radius: 50%; overflow: hidden; isolation: isolate;
  animation: orb-breathe 5.5s cubic-bezier(.645,.045,.355,1) infinite;
}
.orb::before, .orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.orb::before {
  background:
    conic-gradient(from calc(var(--angle) * 2) at 25% 70%, var(--orb3), transparent 20% 80%, var(--orb3)),
    conic-gradient(from calc(var(--angle) * -3) at 80% 20%, var(--orb1), transparent 40% 60%, var(--orb1)),
    conic-gradient(from calc(var(--angle) * 1.5) at 60% 35%, var(--orb4), transparent 25% 75%, var(--orb4)),
    conic-gradient(from calc(var(--angle) * 2) at 15% 5%, var(--orb2), transparent 10% 90%, var(--orb2)),
    conic-gradient(from calc(var(--angle) * -2) at 85% 10%, var(--orb3), transparent 20% 80%, var(--orb3)),
    radial-gradient(circle at 35% 30%, var(--orb3), var(--orb1) 78%);
  filter: blur(calc(var(--orb-size) * .05)) contrast(1.12) saturate(1.15);
  animation: orb-spin 18s linear infinite;
}
/* Sheen and rim on top of the churn, so it reads as a lit sphere rather than a
   flat disc of colour. */
.orb::after {
  background: radial-gradient(circle at 32% 26%, hsl(0 0% 100% / .28), transparent 46%);
  box-shadow:
    inset 0 0 0 1px hsl(0 0% 0% / .08),
    inset 0 -2px 4px hsl(0 0% 0% / .18);
}
@keyframes orb-spin { to { --angle: 360deg; } }
@keyframes orb-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
/* The whole point is that it moves, so stillness is the accommodation, not a
   slower version of the same thing. */
@media (prefers-reduced-motion: reduce) {
  .orb, .orb::before { animation: none; }
}
.brandbar .pill {
  display: flex; align-items: center; gap: 9px; font-size: 13px;
  color: var(--muted); letter-spacing: .08em; text-transform: uppercase;
}
.brandbar .pill i { width: 7px; height: 7px; border-radius: 999px; background: var(--accent); }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; padding: 84px 72px 72px; align-items: start; }
.hero .say { display: flex; flex-direction: column; gap: 30px; padding-top: 8px; }
.hero .col { display: flex; flex-direction: column; min-width: 0; }
.hero h1.display { font-size: 62px; line-height: 1.04; letter-spacing: -0.015em; text-wrap: pretty; }
.hero .lede { margin: 0; font-size: 20px; line-height: 1.55; color: var(--body); max-width: 30ch; text-wrap: pretty; }
.steps { display: flex; flex-direction: column; gap: 14px; padding: 12px 0 0; border-top: 1px solid var(--line); margin: 0; list-style: none; }
.steps li { display: flex; gap: 12px; align-items: baseline; font-size: 16px; color: var(--body); }
.steps .n { font-family: "Instrument Serif", Georgia, serif; font-size: 17px; color: var(--accent); }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 40px 40px 36px; display: flex; flex-direction: column; gap: 22px;
}
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.panel .field { display: flex; flex-direction: column; gap: 7px; }
.panel .field > label { margin: 0; font-size: 14px; font-weight: 600; }
/* flex:none matters: the shared input rule sets flex:1, which is right inside
   the horizontal form.paste and would stretch a field to fill the height of
   this column. width:100% is what actually sizes it here. */
.panel input, .panel textarea { width: 100%; flex: none; }
.panel .hint { margin: 0; }
.panel .hint.bad { color: var(--err); }
.panel .two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel .two-up .field { gap: 7px; }
.panel button[type=submit] { width: 100%; height: 50px; font-size: 16px; margin-top: 2px; }
/* Dispatching takes a few seconds of real network. Without this the button
   looks inert and invites a second click, which the server would refuse but
   the reader would read as a broken form. */
.panel button.busy { opacity: .75; cursor: default; }
.panel button .spin { display: none; }
.panel button.busy .spin {
  display: inline-block; width: 15px; height: 15px; margin-right: 9px;
  vertical-align: -2px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--btn-fg) 35%, transparent);
  border-top-color: var(--btn-fg); animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .panel button.busy .spin { animation-duration: 2.4s; } }

/* What replaces the form once a Legate is out. Invite holders never see the
   transcript page, so this is the whole of their view of a running meeting. */
.panel.status { gap: 16px; }
.panel.status .name { font-size: 19px; font-weight: 600; overflow-wrap: anywhere; }
.panel.status .where { font-size: 14px; overflow-wrap: anywhere; }
.panel.status .meta { font-size: 13px; color: var(--faint); }
.panel.status .state {
  font-size: 15px; color: var(--body); border-top: 1px solid var(--line);
  padding-top: 16px; margin-top: 2px;
}
.panel.status .state.bad { color: var(--err); }
.panel.status form { margin-top: 4px; }
.panel.status form button { width: 100%; height: 46px; }
.inbox { padding: 8px 72px 0; }
.inbox .split { border-top: 1px solid var(--line); padding-top: 44px; display: grid; grid-template-columns: 300px 1fr; gap: 72px; }
.inbox h3 { margin: 0; font-size: 30px; }
.inbox .about { display: flex; flex-direction: column; gap: 12px; }
.inbox .about p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--body); }
.digest {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 34px 36px; display: flex; flex-direction: column; gap: 26px;
}
.digest .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.digest .top .meta { text-transform: none; letter-spacing: 0; color: var(--faint); font-size: 12px; }
.digest .summary { margin: 0; font-size: 19px; line-height: 1.55; color: var(--fg); max-width: 62ch; }
.digest .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.digest .cols > div { display: flex; flex-direction: column; gap: 10px; }
.digest .cols .eyebrow { color: var(--accent); letter-spacing: .14em; }
.digest .cols .card { margin-bottom: 0; }
.flash { padding: 12px 14px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.flash.err { background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--err); }
.flash.ok  { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); }
ul.invites { list-style: none; padding: 0; margin: 0; }
ul.invites li { border-top: 1px solid var(--line); padding: 14px 2px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
ul.invites .who { font-weight: 500; flex: 1; min-width: 120px; }
ul.invites .code { font: 600 15px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
/* Deliberately not an <input>: the mobile rule below forces inputs to 16px to
   stop iOS zooming on focus, which overflows a link this long and shows it
   truncated. A div wraps instead. */
.link {
  flex-basis: 100%; padding: 7px 7px 7px 11px; border: 1px solid var(--line-strong);
  border-radius: 6px; background: var(--bg); color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.link .url {
  flex: 1; min-width: 0; cursor: text; overflow-wrap: anywhere;
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.link .copy {
  flex: none; height: 30px; padding: 0 10px; background: transparent;
  border: 1px solid var(--line-strong); color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
}
.link .copy:hover { background: var(--surface); color: var(--fg); }
.link .copy .said { display: none; }
/* Confirmation is the whole point of a copy button: without it there is no way
   to tell the click did anything. */
.link .copy.done { color: var(--accent); border-color: var(--accent); background: transparent; }
.link .copy.done svg { display: none; }
.link .copy.done .said { display: inline; }
ul.meetings { list-style: none; padding: 0; margin: 0; }
ul.meetings li { border-top: 1px solid var(--line); }
ul.meetings a { display: flex; align-items: center; gap: 12px; padding: 14px 2px; text-decoration: none; color: inherit; }
ul.meetings a:hover { background: var(--surface); }
.title { flex: 1; font-weight: 500; }
.when { color: var(--muted); font-size: 13px; white-space: nowrap; }
.chip { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.chip.live { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.chip.dispatched, .chip.transcribing { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }
.chip.done { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.chip.failed { background: color-mix(in srgb, var(--err) 15%, transparent); color: var(--err); }
.summary { font-size: 16px; margin: 0 0 4px; }
.card {
  border-left: 2px solid var(--line-strong); padding-left: 16px; margin-bottom: 18px;
  display: flex; flex-direction: column; gap: 7px;
}
.card .task { font-weight: 600; font-size: 15px; }
.card .meta { color: var(--muted); font-size: 14px; }
blockquote {
  margin: 0; padding: 9px 12px; border: 0; background: var(--quote);
  border-radius: 4px; color: var(--body); font-size: 14px; font-style: italic;
}
.empty { color: var(--faint); font-style: italic; }
ul.plain { margin: 0; padding-left: 20px; }
ul.plain li { margin-bottom: 7px; }
details.transcript { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 20px; }
details.transcript summary { cursor: pointer; color: var(--muted); font-size: 14px; }
details.transcript .turn .who { color: var(--fg); }
.turn { margin: 14px 0; }
.turn .who { font-weight: 600; font-size: 14px; }
.turn .ts { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; margin-left: 6px; }
.turn p { margin: 2px 0 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.actions form { margin: 0; }
label { display: block; font-weight: 600; font-size: 14px; margin: 18px 0 6px; }
label + .hint { margin: -2px 0 0; }
.login { max-width: 360px; margin: 12vh auto; }
/* Same trap as the panel: the shared input rule's flex:1 does nothing outside a
   flex row, so without this the field sizes to its default and sits narrower
   than the button under it. */
.login input { width: 100%; flex: none; }
.login h1 { font-size: 26px; }
textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 6px;
  background: var(--field); color: var(--fg); resize: vertical; min-height: 76px;
  /* Separate properties, not the font shorthand: inherit is not a valid family
     inside it, so the whole declaration is dropped and a textarea falls back to
     the UA default, which is monospace. */
  font-family: inherit; font-size: 15px; line-height: 1.5;
}
textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.optional { font-weight: 400; color: var(--faint); text-transform: none; letter-spacing: 0; }
.panel .two-up > * { min-width: 0; }
/* The shared input rule uses flex:1, which sizes correctly inside form.paste
   and does nothing at all in a stacked form — leaving default-width boxes. */
/* Scoped to the one field that holds a code — the rest of the form on that page
   is ordinary prose input, and an uppercased monospace email box is unreadable. */
/* input.code-field, not .code-field: the base input rule is an attribute
   selector, so a bare class ties on specificity and loses the font-family. */
input.code-field { text-transform: uppercase; letter-spacing: .08em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
/* Pulse next to a live status line, so an auto-refreshing page reads as alive. */
.live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; margin-left: 9px; vertical-align: middle;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: .25 } 50% { opacity: 1 } }
.end-reason { font-size: 13px; color: var(--faint); }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; opacity: .6 } }

/* Long meeting titles, URLs and quotes must never push the page sideways. */
h1, .title, .summary, blockquote, .card .task, .turn p { overflow-wrap: anywhere; }

/* The hero is two 1fr columns at 1280. Below this the form panel is narrower
   than the fields inside it want to be, so it stacks well before phone width. */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 34px; padding: 44px 32px 40px; }
  .brandbar .bar { padding: 22px 32px; }
  .inbox { padding: 8px 32px 0; }
  .inbox .split { grid-template-columns: 1fr; gap: 24px; }
  .digest .cols { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { padding: 20px 16px 64px; }
  .wrap.wide { padding: 0 0 40px; }

  /* The design's 390 frame: tighter gutters, a smaller wordmark, and a headline
     that drops from 62px to something a phone can hold on two lines. */
  .brandbar .bar { padding: 18px 22px; }
  .brandbar .wordmark { font-size: 21px; }
  .brandbar .pill { font-size: 11px; }
  .hero { padding: 34px 22px 30px; gap: 26px; }
  .hero .say { gap: 18px; padding-top: 0; }
  .hero h1.display { font-size: 38px; line-height: 1.06; }
  .hero .lede { font-size: 17px; max-width: none; }
  .panel { padding: 24px 20px; gap: 18px; }
  .panel .two-up { grid-template-columns: 1fr; gap: 18px; }
  .panel button[type=submit] { height: 52px; }
  /* Both cut on a phone. The steps restate the form directly below them, and
     the blurb restates the heading it sits under — on a narrow screen they are
     two more scrolls between arriving and sending. */
  .steps { display: none; }
  .inbox .about p { display: none; }
  .inbox { padding: 6px 22px 0; }
  .inbox .split { padding-top: 28px; }
  .inbox h3 { font-size: 25px; }
  .digest { padding: 22px 20px; gap: 18px; }
  .digest .summary { font-size: 16px; }
  .digest .top { flex-wrap: wrap; gap: 4px; }

  textarea { font-size: 16px; }

  /* Stack the title above the nav; three links don't fit beside it. */
  header { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
  nav { margin-left: -2px; }
  nav a { margin: 0 16px 0 0; }

  /* Full-width input above a full-width button — side by side leaves the input
     too narrow to read a pasted Meet URL. */
  form.paste { flex-direction: column; }
  form.paste button { width: 100%; }

  /* 16px stops iOS Safari zooming the page when a field is focused. */
  input[type=text], input[type=password], input[type=email] { font-size: 16px; height: 48px; }

  /* Meeting title on its own line, status and time beneath it. */
  ul.meetings a { flex-wrap: wrap; gap: 6px 10px; padding: 13px 2px; }
  .title { flex-basis: 100%; }

  h1 { font-size: 19px; }
  .actions form, .actions button { width: 100%; }
}
