/* braincap.ai during the private beta: one screen in the cognition style, Pink on Core Black (Cortex's own colourway), the logo top left in the same Pink.
   The sign-in and the waitlist sit in one column in the middle; Cortex wanders the screen around it */
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/SchibstedGrotesk-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/SchibstedGrotesk-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ground: #161515;          /* Core Black */
  --ink: #FFDFF3;             /* Pink */
  --logo: var(--ink);         /* the logo in Pink: Daniel's call on 20 Oct, against the design system's rule (logo only in Core Black or Soft Lavender) */
  --muted: rgba(255, 223, 243, .72);
  --faint: rgba(255, 223, 243, .15);
  --font: 'Schibsted Grotesk', 'Helvetica Neue', Arial, ui-sans-serif, system-ui, sans-serif;
  --gut: 16px;
  --ease-ui: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.45, 0, .25, 1);
  color-scheme: dark;
}
@media (min-width: 810px) { :root { --gut: 24px; } }

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; background: var(--ground); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.45; letter-spacing: -.01em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
[hidden] { display: none !important; }
p, h1, h2 { margin: 0; }
h1, h2 { font-weight: 400; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* type */
.heading { font-size: clamp(30px, 3.7vw, 40px); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.title { font-size: 24px; line-height: 1.2; letter-spacing: -.02em; }
.small { font-size: 14px; line-height: 1.45; }
.muted { color: var(--muted); }
.label { font-size: 12px; line-height: 1.2; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* the logo, top left */
.top { position: relative; z-index: 1; display: flex; padding: 20px var(--gut); }
.logo { display: inline-flex; align-items: center; gap: .28em; font-size: 24px; line-height: 1; letter-spacing: -.03em; color: var(--logo); text-decoration: none; white-space: nowrap; }
.mark { height: 1.02em; width: auto; aspect-ratio: 56 / 48; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; overflow: visible; flex: none; }
.logo:focus-visible { outline-color: var(--logo); }

/* the middle column: the sign box, a translucent panel, and the waitlist under it. Cortex keeps clear of both */
.center { position: relative; z-index: 1; align-self: center; justify-self: center; width: min(100%, 440px); display: grid; gap: 32px; padding: clamp(24px, 5vh, 56px) var(--gut); }
.block { display: grid; gap: 20px; }
.panel { padding: 28px; border: 1px solid rgba(255, 223, 243, .22); border-radius: 4px; background: rgba(255, 223, 243, .045); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@media (max-width: 420px) { .panel { padding: 22px 18px; } }
.layer { display: grid; gap: 20px; }
.layer.in { animation: layer-in .16s var(--ease-ui) both; }
@keyframes layer-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.block--waitlist > div { display: grid; gap: 12px; }
.stack { display: grid; gap: 12px; }
.fieldset { display: grid; gap: 8px; min-width: 0; }
.row { display: flex; gap: 8px; }
/* the waitlist's questions (Daniel, 21 Oct 2026), as on braincap.org: chips in the ink, a chosen one filled with it;
   each "Other" opens a field for a few words where :has() works, and shows it always where it does not */
.wl-form { gap: 20px; }
.q { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.q > legend { padding: 0; margin: 0 0 8px; }
.opt { margin-left: 6px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-in { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.tag { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 4px; color: var(--ink); font-size: 15px; letter-spacing: -.01em; cursor: pointer; user-select: none; }
.tag:hover { background: var(--faint); }
.tag-in:checked + .tag { background: var(--ink); color: var(--ground); }
.tag-in:focus-visible + .tag { outline: 2px solid var(--ink); outline-offset: 2px; }
@supports selector(:has(*)) { .q:not(:has(.tag-in[value="Other"]:checked)) .other { display: none; } }
/* an Other's box, empty, reads as a text box to fill: a light tint of the ink and a faded question (Daniel, 21 Oct 2026:
   "more shaded so it feels like a text box", "by faded it just mean the empty state"); once typed, it is a field like the rest */
.field.other:placeholder-shown { background: var(--faint); border-color: transparent; }
.field.other::placeholder { color: var(--ink); opacity: .5; }
.field.other:focus { background: var(--ground); border-color: var(--ink); }
/* the two doors on the first layer (Daniel, 21 Oct 2026): an invite, or the waitlist */
.doors { display: grid; gap: 12px; }
/* the sliders, as on braincap.org: a thin line and a round thumb in the ink; untouched, the thumb is hollow and the
   value says so, since a range always has a value and optional must mean untouched */
.slide__value { font-size: 18px; line-height: 1.3; letter-spacing: -.01em; }
.slide:has([data-unset]) .slide__value { color: var(--muted); }
.slide__range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; }
.slide__range::-webkit-slider-runnable-track { height: 2px; background: var(--ink); border-radius: 1px; }
.slide__range::-moz-range-track { height: 2px; background: var(--ink); border-radius: 1px; }
.slide__range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin-top: -10px; border: 1px solid var(--ink); border-radius: 50%; background: var(--ink); }
.slide__range::-moz-range-thumb { width: 20px; height: 20px; border: 1px solid var(--ink); border-radius: 50%; background: var(--ink); }
.slide__range[data-unset]::-webkit-slider-thumb { background: var(--ground); }
.slide__range[data-unset]::-moz-range-thumb { background: var(--ground); }
.slide__range:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
.slide__ends { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; line-height: 1.3; color: var(--muted); }
.join__end { justify-items: start; gap: 12px; }
.msg .i { width: 18px; height: 18px; vertical-align: -4px; margin-right: 6px; }
.row .field { flex: 1 1 auto; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--faint); }

/* controls: buttons start with the arrow, 4px corners; on a dark ground the field is the ground, outlined in ink */
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px 10px 10px; border: 1px solid var(--ink); border-radius: 4px; background: var(--ink); color: var(--ground); font: inherit; font-size: 16px; line-height: 20px; white-space: nowrap; text-decoration: none; cursor: pointer; }
.btn .i { transition: transform .16s var(--ease-ui); }
.btn:hover .i, .btn:focus-visible .i { transform: translateX(3px); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--faint); }
.btn--full { width: 100%; }
.btn .g { width: 18px; height: 18px; flex: none; }    /* Google's own coloured G: their rules ask for it as is */
.btn--google { gap: 10px; }
.field { width: 100%; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--ink); border-radius: 4px; background: var(--ground); color: var(--ink); font: inherit; font-size: 16px; }
.field::placeholder { color: var(--ink); opacity: .45; }
.field[aria-invalid="true"] { border-width: 2px; padding: 0 11px; }
.msg { font-size: 14px; line-height: 1.45; }
.row-links { display: flex; justify-content: space-between; gap: 16px; }
.row-links a { color: var(--muted); text-underline-offset: 3px; }
.row-links a:hover { color: var(--ink); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.foot { position: relative; z-index: 1; background: var(--ground); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 14px var(--gut) 18px; font-size: 12px; color: var(--muted); }

/* Cortex: the scalloped brain, Pink on Core Black, eyes cut out to the ground */
.stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.agent { position: absolute; left: 0; top: 0; width: var(--size, 112px); height: var(--size, 112px); will-change: transform; pointer-events: auto; cursor: pointer; }
.agent svg { display: block; width: 100%; height: 100%; overflow: visible; }
.av__shape { fill: var(--ink); }
.av__eyes .e { fill: var(--ground); }
.av__eyes .a { fill: none; stroke: var(--ground); stroke-linecap: round; }
.av__spark { display: none; }
.av--thinking .av__spark { display: inline; }
.av__orbit path { fill: none; stroke: var(--ink); stroke-width: 2.8; stroke-linejoin: round; }
.av__orbit .o--lead { fill: var(--ink); }
.av__spark path { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; animation: twinkle calc(2.2s + var(--i) * .45s) ease-in-out calc(var(--i) * .8s) infinite both; }
.av__eyes--blink { transform-box: fill-box; transform-origin: center; animation: blink 5.6s infinite; }
.av__body { transform-box: fill-box; transform-origin: 50% 100%; }
.av--idle .av__body { animation: breathe 3.8s ease-in-out infinite alternate; }
@keyframes twinkle { 0% { opacity: 0; transform: scale(.4); } 25%, 60% { opacity: 1; transform: scale(1); } 85%, 100% { opacity: 0; transform: scale(.5); } }
@keyframes blink { 0%, 91%, 100% { transform: scaleY(1); } 94.5% { transform: scaleY(.08); } }
@keyframes breathe { from { transform: translateY(0) scale(1); } to { transform: translateY(-1.5%) scale(1.012); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* a panel that can be closed: an X in its top right corner, back to where the person came from (/dev/not-registered/) */
.panel--closable { position: relative; }
.panel__close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--ink); text-decoration: none; cursor: pointer; }   /* 44px: the smallest hit area for a finger */
.panel__close:hover { background: var(--faint); }
