/* Smallest AI brand: Geist (SIL OFL, brand/Geist-OFL.txt), monochrome surfaces, blue for links, focus and stage chips. */
@font-face { font-family: "Geist"; src: url("/assets/brand/Geist-Variable.woff2") format("woff2"); font-weight: 100 900;
             font-style: normal; font-display: swap; }
:root { color-scheme: light dark;
        --fg: #161616; --strong: #010101; --bg: #fff; --card: #fff; --surface: #f5f5f5; --line: #ededed; --field: #d4d4d4;
        --muted: #6f6f6f; --accent: #2563eb; --on-accent: #fff; --chip: #eef3fe;
        --ok: #1f7a70; --on-ok: #fff; --danger: #c81e1e; --danger-bg: #c81e1e;
        --btn: #010101; --btn-fg: #fff; --btn-hover: #2b2b2b; --shadow: rgb(0 0 0 / 8%);
        --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
        --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
@media (prefers-color-scheme: dark) {
  :root { --fg: #ededed; --strong: #fafafa; --bg: #090b0c; --card: #18191b; --surface: #25292c; --line: #25292c; --field: #3b4045;
          --muted: #9a9a9a; --accent: #60a5fa; --on-accent: #090b0c; --chip: #16233b;
          --ok: #49b2a1; --on-ok: #090b0c; --danger: #f87171; --danger-bg: #c62a2f;
          --btn: #fff; --btn-fg: #010101; --btn-hover: #e2e2e2; --shadow: rgb(0 0 0 / 45%); }
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; padding: 0 16px 48px; color: var(--fg); background: var(--bg);
       font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
body[data-page=apply] { --page: 720px; }
main { width: 100%; max-width: var(--page, 480px); margin: 0 auto; }
h1, h2, h3 { color: var(--strong); font-weight: 500; }
h1 { font-size: 2rem; line-height: 1.15; letter-spacing: -.03em; margin: 0 0 .5rem; }
h2 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.015em; margin: 1.75rem 0 .5rem; }
p { margin: 0 0 1rem; }
strong { font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.notice { padding: .75rem 1rem; margin: 0 0 1.25rem; border-radius: 14px; background: var(--surface); }
label { display: block; font-weight: 500; margin: 1rem 0 .35rem; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=datetime-local], select {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: inherit;
  background: var(--card); border: 1px solid var(--field); border-radius: 12px; }
input[type=datetime-local] { min-width: 0; font-size: .9rem; }
textarea { width: 100%; padding: 10px 14px; font: inherit; color: inherit; resize: vertical;
  background: var(--card); border: 1px solid var(--field); border-radius: 12px; }
input::placeholder, textarea::placeholder { color: var(--muted); }
input[type=checkbox] { accent-color: var(--strong); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
input.code { font-size: 1.6rem; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
fieldset { border: 1px solid var(--line); border-radius: 20px; padding: .5rem 1.25rem 1.25rem; margin: 1.25rem 0 0; background: var(--card); }
legend { font-weight: 500; color: var(--strong); padding: 0 .35rem; }
.check { display: flex; gap: .75rem; align-items: flex-start; font-weight: 400; margin: .9rem 0 0; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; }
button { width: 100%; min-height: 48px; border: 1px solid transparent; border-radius: 12px; font: inherit; font-weight: 500;
         letter-spacing: -.01em; color: var(--btn-fg); background: var(--btn); cursor: pointer; margin-top: 1.25rem; }
button:hover:not(:disabled) { background: var(--btn-hover); }
button.secondary { background: var(--surface); color: var(--fg); }
button.secondary:hover:not(:disabled) { background: color-mix(in srgb, var(--surface) 88%, var(--fg)); }
button.danger, button.danger:hover:not(:disabled) { background: var(--danger-bg); color: #fff; }
button.link { display: inline-flex; align-items: center; width: auto; min-height: 44px; margin: 0; padding: 0; border: 0; background: none;
              color: var(--accent); font-weight: 400; letter-spacing: 0; text-decoration: underline; text-underline-offset: .2em; }
button.link:hover:not(:disabled) { background: none; }
button[hidden], [hidden] { display: none !important; }
button:disabled { opacity: .5; cursor: default; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 0; border-color: var(--accent); }
.msg { min-height: 1.5em; margin-top: 1rem; }
.msg[data-kind=error] { color: var(--danger); }
.msg[data-kind=ok] { color: var(--ok); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 1.25rem; margin: 1rem 0; }
.stage { display: inline-block; font-size: .8rem; font-weight: 500; padding: .2rem .65rem; border-radius: 999px;
         color: var(--accent); background: var(--chip); }
ul { padding-left: 1.2rem; margin: 0 0 1rem; }
li { margin: .25rem 0; }
#status { margin-top: 1rem; min-height: 1.5em; font-variant-numeric: tabular-nums; }
h3 { font-size: 1rem; letter-spacing: -.01em; margin: 1.25rem 0 .35rem; }
ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.card > h2:first-child { margin-top: 0; }
.notice-box { border: 1px solid var(--line); border-radius: 14px; padding: .75rem 1rem .25rem; margin: 1rem 0 0; }
.notice-box ul { margin-bottom: .5rem; }
.notice-box p { margin-bottom: .5rem; }
.check.small { font-weight: 500; margin: .5rem 0; }
.counts { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; margin: .5rem 0 1rem; font-size: .95rem; }
.counts dt { color: var(--muted); }
.counts dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
label.small { font-weight: 400; }
.steps { --gap: 4px; list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--gap);
         padding: 0; margin: .75rem 0 1rem; }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; margin: 0;
            font-size: .72rem; line-height: 1.25; color: var(--muted); min-width: 0; }
.steps li::before { content: ""; position: absolute; top: 11px; left: calc(-50% - var(--gap)); width: calc(100% + var(--gap)); height: 2px;
                    background: var(--line); z-index: 0; }
.steps li:first-child::before { display: none; }
.steps li.done::before, .steps li.here::before { background: var(--ok); }
.steps .dot { position: relative; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
              border: 2px solid var(--line); background: var(--bg); font-size: .75rem; font-weight: 600; margin-bottom: .3rem; }
.steps li.done .dot { border-color: var(--ok); background: var(--ok); color: var(--on-ok); }
.steps li.current .dot { border-color: var(--accent); background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 4px var(--chip); }
.steps li.later .dot { color: var(--muted); }
.steps li.here .label { color: var(--strong); font-weight: 600; }
.steps .label { overflow-wrap: normal; }
.steps .note { margin-top: .15rem; font-weight: 500; color: var(--accent); font-size: .68rem; }
.steps li.done.here .note { color: var(--ok); }
.call-block { border: 1px solid var(--line); border-radius: 16px; padding: .9rem 1rem; margin: 0 0 1rem; }
.call-block.now { border: 1.5px solid var(--accent); }
.call-block.next { border-style: dashed; background: transparent; }
.call-block.next h2, .call-block.next > p.muted { color: var(--muted); }
.call-block h2 { margin-top: 0; }
.tag { display: inline-block; margin: 0 0 .5rem; padding: .15rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 500;
       color: var(--accent); background: var(--chip); }
.tag:empty { display: none; }
.call-block.next .tag { color: var(--muted); background: var(--surface); }
.progress { list-style: none; padding: 0; margin: .25rem 0 .5rem; }
.progress li { display: flex; gap: .5rem; font-variant-numeric: tabular-nums; }
.progress .mark { width: 1em; text-align: center; color: var(--muted); }
.progress li.met .mark { color: var(--ok); font-weight: 700; }
.call-block[hidden] + #chat-call > h2 { margin-top: 0; }
#how-to-end { margin: .75rem 0 0; }

/* Live call panel. While this tab holds a call the card shows only the panel
   and, on screens tall enough, stays in view below the top bar as the page scrolls. */
#call-card:is(.on-call, .saving) > :not(#live) { display: none; }
#call-card.on-call { padding: .9rem 1rem; border: 2px solid var(--accent); box-shadow: 0 8px 28px var(--shadow); }
@media (min-height: 600px) {
  #call-card.on-call { position: sticky; top: 72px; z-index: 10; }
}
.live-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.live-state { display: inline-flex; align-items: center; gap: .45rem; margin: 0; font-size: .8rem; font-weight: 600;
              text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.live-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.live[data-state=connecting] .live-dot { background: var(--accent); }
.live[data-state=live] .live-state { color: var(--ok); }
.live[data-state=live] .live-dot { background: var(--ok); animation: live-pulse 1.6s ease-out infinite; }
.live[data-state=reconnecting] .live-state { color: var(--danger); }
.live[data-state=reconnecting] .live-dot { background: var(--danger); }
@keyframes live-pulse {
  from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); }
  to { box-shadow: 0 0 0 8px transparent; }
}
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none !important; } }
.live-timer { font-size: 1.25rem; font-weight: 500; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--strong); }
.live h2 { margin: .15rem 0 .2rem; font-size: 1.05rem; }
.live h2:focus { outline: none; } /* focused by script to move the reader to the panel */
.live-cap { font-weight: 400; font-size: .9rem; color: var(--muted); }
.live-talk { margin: 0; min-height: 1.5em; }
.live-muted { margin: .5rem 0 0; color: var(--danger); font-weight: 500; }
.live-buttons { display: grid; grid-template-columns: 1fr 1.5fr; gap: .5rem; margin-top: .6rem; }
.live-buttons button { margin-top: 0; min-height: 48px; }
.live #unmute { margin-top: .5rem; }
.live-how { margin: .5rem 0 0; font-size: .8rem; line-height: 1.4; }
.live-after p { margin: .5rem 0 0; }
.live-after p:empty, .live-muted:empty { display: none; }
.live[data-state=ended] :is(.live-timer, .live-cap, .live-talk, .live-buttons, .live-how) { display: none; }
#call-card:not(.saving) > .live[data-state=ended] { padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
code, .mono { font-family: var(--mono); font-size: .85rem; }
code { padding: .05rem .3rem; border-radius: 6px; background: var(--surface); }
textarea.mono { line-height: 1.4; }
.areas { margin: .5rem 0 1rem; }
.areas dt { font-weight: 500; margin-top: .5rem; color: var(--strong); }
.areas dd { margin: 0; font-size: .9rem; color: var(--muted); }
details.example { border: 1px solid var(--line); border-radius: 14px; padding: .6rem .9rem; margin: .5rem 0 1rem; }
details.example summary { cursor: pointer; font-weight: 500; }
details.example dl { margin: .5rem 0 0; font-size: .9rem; }
details.example dt { font-weight: 500; margin-top: .5rem; }
details.example dd { margin: 0; overflow-wrap: anywhere; }
details.example pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: .25rem 0; padding: .5rem .65rem; background: var(--surface);
                      border-radius: 8px; font-family: var(--mono); font-size: .8rem; }
#report fieldset { padding-bottom: .75rem; }
#report label { font-size: .95rem; }
.count { font-weight: 400; font-size: .8rem; color: var(--muted); }
.count.over, .over { color: var(--danger); font-weight: 600; }
.finding { border-top: 1px solid var(--line); padding-top: .75rem; margin-top: .75rem; }
.finding:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.finding-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.finding-head h3 { margin: .25rem 0 0; }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0 .75rem; }
.fix + .fix { border-top: 1px dashed var(--line); margin-top: .75rem; }
fieldset.private { border-style: dashed; border-color: var(--field); }
input.link + input.link { margin-top: .5rem; }
.warnbox { border-left: 3px solid var(--danger); padding: .5rem .75rem; margin: 0 0 1rem; border-radius: 0 10px 10px 0;
           background: color-mix(in srgb, var(--danger) 8%, var(--card)); }
#report :disabled { opacity: .7; }

/* Top bar and footer, on every page. */
.bar { position: sticky; top: 0; z-index: 20; margin: 0 -16px 2rem; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: var(--page, 480px); min-height: 64px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.logo { display: block; color: var(--strong); fill: currentColor; }
.brand .home { display: inline-flex; align-items: center; min-height: 44px; }
.brand .home .logo { height: 22px; width: auto; aspect-ratio: 130 / 24; }
.brand .section { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding-left: .75rem;
                  font-size: .875rem; color: var(--muted); text-decoration: none; }
.brand .section::before { content: ""; position: absolute; left: 0; top: calc(50% - 9px); width: 1px; height: 18px; background: var(--field); }
.brand .section:hover { color: var(--fg); }
a.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.5rem; border-radius: 12px;
           font-weight: 500; letter-spacing: -.01em; color: var(--btn-fg); background: var(--btn); text-decoration: none; }
a.button:hover { background: var(--btn-hover); }
a.button.compact { min-height: 44px; padding: 0 1.1rem; font-size: .9rem; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-top: 3rem;
        padding-top: 1rem; border-top: 1px solid var(--line); }
.foot .home { display: inline-flex; align-items: center; min-height: 44px; }
.foot .logo { height: 16px; width: auto; aspect-ratio: 130 / 24; }
.foot p { margin: 0; }
.foot p a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }

/* Role page: the job description with the apply form at the end. */
.role section { scroll-margin-top: 80px; }
.role section + section { margin-top: 3.5rem; }
.role .hero { padding-top: 1.5rem; }
.role h1 { font-size: clamp(2.5rem, 6vw + 1rem, 4.5rem); line-height: 1.04; letter-spacing: -.035em; margin: .75rem 0 1.25rem; }
.role h2 { font-size: 1.6rem; line-height: 1.2; letter-spacing: -.025em; margin: 0 0 1rem; }
.role h3 { font-size: 1.05rem; }
.eyebrow { display: inline-block; margin: 0; padding: .2rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 500;
           color: var(--accent); background: var(--chip); }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 1.5rem; }
.facts li { margin: 0; padding: .3rem .8rem; border-radius: 999px; font-size: .875rem; color: var(--fg); background: var(--surface); }
.lede { font-size: 1.2rem; line-height: 1.5; letter-spacing: -.01em; }
.points li { margin: .6rem 0; }
.layers { margin: 0 0 1rem; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.layers > div { padding: .85rem 1.25rem; }
.layers > div + div { border-top: 1px solid var(--line); }
.layers dt { font-weight: 500; color: var(--strong); }
.layers dd { margin: .15rem 0 0; font-size: .95rem; color: var(--muted); }
.process { list-style: none; padding: 0; margin: 1.5rem 0 1rem; counter-reset: step; }
.process > li { position: relative; margin: 0; padding: 0 0 1.5rem 3rem; counter-increment: step; }
.process > li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 2rem; height: 2rem;
                        border-radius: 50%; font-size: .875rem; font-weight: 500; color: var(--btn-fg); background: var(--btn); }
.process > li::after { content: ""; position: absolute; left: calc(1rem - .5px); top: 2.5rem; bottom: .5rem; width: 1px; background: var(--line); }
.process > li:last-child::after { display: none; }
.process h3 { margin: .2rem 0 .1rem; font-size: 1.1rem; }
.process .meta { margin: 0 0 .4rem; font-size: .875rem; color: var(--muted); }
.process p { margin-bottom: .5rem; }
.apply { padding-top: .5rem; }
.apply form, .apply #apply-box > p { max-width: 560px; }
@media (min-width: 600px) {
  .role h2 { font-size: 2rem; }
  .layers > div { display: grid; grid-template-columns: 12rem 1fr; gap: 1rem; }
  .layers dd { margin: 0; }
}
@media (max-width: 599px) {
  .hero a.button { width: 100%; }
  .brand .home .logo { height: 20px; }
}
@media (max-width: 380px) {
  .steps li { font-size: .66rem; }
}
