/* flxbl.io's own palette: Radix greys, the crimson of the logo, jade for a yes. Inter is served from here. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter.var.woff2") format("woff2"); }

:root {
  --bg: #fcfcfc; --surface: #ffffff; --sunken: #f9f9f9; --hover: #f0f0f0;
  --line: #e4e4e4; --line-strong: #d9d9d9; --faint: #8d8d8d; --soft: #646464; --ink: #202020;
  --accent: #e54666; --accent-hover: #dc3b5d; --accent-ink: #ca244d; --accent-wash: rgb(229 70 102 / 0.08);
  --jade: #29a383; --jade-ink: #208368; --jade-wash: rgb(41 163 131 / 0.1);
  --amber-ink: #ab6400; --amber-wash: rgb(255 197 61 / 0.18); --plum: #ab4aba; --plum-wash: rgb(171 74 186 / 0.1);
  --grid: rgb(217 217 217 / 0.5); --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 12px 32px -12px rgb(0 0 0 / 0.12);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; font-feature-settings: "cv02", "cv03", "cv04", "cv11"; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--soft); font: 15px/1.6 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
a:hover { color: var(--ink); text-decoration-color: currentColor; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* The grid of flxbl.io's hero, faded out from the centre. */
.backdrop { position: absolute; inset: 0 0 auto; height: 560px; z-index: -1; pointer-events: none;
  background-image: linear-gradient(to right, var(--grid) 1px, transparent 1px), linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px; -webkit-mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000 30%, transparent 75%); }

.bar { max-width: 1080px; margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bar-end { display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.logo { height: 28px; width: auto; display: block; }
.brand.small .logo { height: 18px; }
.product { display: inline-flex; align-items: center; gap: 8px; padding-left: 12px; border-left: 1px solid var(--line-strong); font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: #fbf0e4; }
.quiet { font-size: 14px; text-decoration: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.01em; }
.pill.experimental { color: var(--plum); background: var(--plum-wash); }
.pill.experimental::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

main { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.hero { text-align: center; padding: 28px 0 40px; animation: rise 0.6s ease-out both; }
.mascot { display: block; width: 224px; height: auto; margin: 0 auto 4px; filter: drop-shadow(0 14px 22px rgb(0 0 0 / 0.14)); }
h1 { margin: 0; color: var(--ink); font-size: clamp(34px, 6vw, 52px); line-height: 1.08; font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
h1 .name { color: var(--accent); }
.lede { max-width: 540px; margin: 18px auto 0; font-size: 17px; line-height: 1.55; text-wrap: pretty; }
.promises { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.promises li { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; font-size: 13px; color: var(--soft); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.promises li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--jade); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

.tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; animation: rise 0.6s 0.06s ease-out both; }
.tabs-label { margin-right: 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.tab { display: inline-flex; align-items: center; padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--soft); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.tab[aria-current="page"] { color: #fff; background: var(--ink); border-color: var(--ink); }
.tab.soon { color: var(--faint); font-weight: 500; background: transparent; border-style: dashed; }
.console { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; animation: rise 0.6s 0.08s ease-out both; }
.step { padding: 24px 26px 26px; transition: opacity 0.2s; }
.step + .step { border-top: 1px solid var(--line); }
.step[aria-disabled="true"] { opacity: 0.45; }
.step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.step-head h2 { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }
.n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--ink); color: var(--bg); font-size: 11px; font-weight: 700; }

.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 20px; text-align: center; color: var(--soft); background: var(--sunken); border: 1.5px dashed var(--line-strong); border-radius: 12px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-wash); }
.drop svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 2px; }
.drop strong { color: var(--ink); font-weight: 600; }
.drop small { font-size: 13px; color: var(--faint); }
.loaded { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; background: var(--jade-wash); border-radius: 12px; }
.loaded strong { display: block; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.loaded span { font-size: 13px; }
.human { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.human small { font-size: 13px; color: var(--faint); }
.note { margin: 12px 0 0; font-size: 13px; color: var(--soft); }
.note.error { color: var(--accent-ink); }
details { margin-top: 14px; font-size: 13px; }
summary { cursor: pointer; color: var(--soft); width: fit-content; }
summary:hover { color: var(--ink); }
details p { margin: 10px 0; }
pre { margin: 0; padding: 12px 14px; overflow-x: auto; background: #202020; color: #eeeeee; border-radius: 10px; font: 12.5px/1.6 var(--mono); }

.meter { margin-left: auto; display: flex; gap: 5px; }
.meter i { width: 18px; height: 5px; border-radius: 3px; background: var(--line-strong); transition: background 0.3s; }
.meter i.on { background: var(--accent); }
.meter.many { gap: 3px; }
.meter.many i { width: 7px; }
form { display: flex; gap: 8px; }
input[type="text"] { flex: 1; min-width: 0; height: 48px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--ink); background: var(--sunken); border: 1px solid var(--line-strong); border-radius: 12px; transition: border-color 0.15s, box-shadow 0.15s; }
input[type="text"]::placeholder { color: var(--faint); }
input[type="text"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; }
#send { height: 48px; padding: 0 24px; font-weight: 600; color: #fff; background: var(--accent); border: 0; border-radius: 12px; transition: background 0.15s, transform 0.1s; }
#send:hover:not(:disabled) { background: var(--accent-hover); }
#send:active:not(:disabled) { transform: scale(0.98); }
#send:disabled { background: var(--line-strong); color: var(--faint); }
#send.busy span { opacity: 0; }
#send.busy { position: relative; background: var(--accent); }
#send.busy::after { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgb(255 255 255 / 0.35); border-top-color: #fff; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ghost { flex: none; padding: 6px 12px; font-size: 13px; color: var(--soft); background: transparent; border: 1px solid var(--line-strong); border-radius: 8px; }
.ghost:hover { color: var(--ink); border-color: var(--soft); }
.examples { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { padding: 5px 11px; font-size: 13px; color: var(--soft); background: transparent; border: 1px solid var(--line); border-radius: 999px; transition: all 0.15s; }
.chip:hover:not(:disabled) { color: var(--ink); border-color: var(--line-strong); background: var(--hover); }

.tally { margin-top: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; animation: rise 0.35s ease-out both; }
.tally > div { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.tally-n { display: block; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.tally > div:first-child .tally-n { color: var(--accent-ink); }
.tally-l { display: block; margin-top: 2px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.tally-note { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--faint); }
.answers { margin-top: 20px; display: grid; gap: 12px; }
.answer { position: relative; padding: 22px 26px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; animation: rise 0.35s ease-out both; }
.answer::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--tone, var(--line-strong)); }
.answer.yes { --tone: var(--jade); --tone-ink: var(--jade-ink); --tone-wash: var(--jade-wash); }
.answer.no { --tone: var(--soft); --tone-ink: var(--ink); --tone-wash: var(--hover); }
.answer.unclear { --tone: #ffc53d; --tone-ink: var(--amber-ink); --tone-wash: var(--amber-wash); }
.asked { margin: 0 0 14px; font-size: 14px; color: var(--soft); overflow-wrap: anywhere; }
.verdict-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; }
.verdict { font-size: 30px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; color: var(--tone-ink); }
.sure { flex: 1; display: flex; align-items: center; gap: 10px; max-width: 260px; }
.sure-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--hover); overflow: hidden; }
.sure-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--tone); transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sure-text { font-size: 13px; color: var(--soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price { margin-left: auto; text-align: right; padding: 8px 14px; border-radius: 12px; background: var(--accent-wash); }
.price-amount { display: block; font-size: 24px; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.price-label { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.price-split { display: block; margin-top: 2px; font-size: 12px; color: var(--soft); }
.message { margin: 14px 0 0; font-size: 16px; line-height: 1.55; color: var(--ink); text-wrap: pretty; }
.evidence { margin-top: 14px; padding: 12px 14px; background: var(--sunken); border: 1px solid var(--line); border-radius: 10px; }
.evidence-label { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.evidence code { display: block; font: 12.5px/1.6 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.evidence time { color: var(--faint); margin-right: 10px; }
.meta { margin: 14px 0 0; font-size: 12px; color: var(--faint); }
.meta b { font-weight: 500; color: var(--soft); }

.about { margin-top: 72px; }
.about h2 { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -0.02em; color: var(--ink); }
.about-lede { margin: 8px 0 22px; max-width: 600px; }
.experiment { display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 0 32px; align-items: end; }
.playing { display: block; width: 100%; height: auto; }
.cannot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cannot > div { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.cannot h3, .where { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--ink); }
.cannot p { margin: 0; font-size: 13.5px; }
.flow { list-style: none; margin: 0; padding: 0; counter-reset: hop; }
.flow li { position: relative; padding: 0 0 22px 40px; counter-increment: hop; }
.flow li::before { content: counter(hop); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-strong); font-size: 12px; font-weight: 600; color: var(--ink); }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 28px; bottom: 4px; width: 1px; background: var(--line-strong); }
.flow li:last-child { padding-bottom: 0; }
.where { display: block; line-height: 24px; }
.flow p { margin: 2px 0 0; font-size: 14px; }
.fineprint { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }

.foot { max-width: 760px; margin: 72px auto 0; padding: 24px 24px 48px; display: flex; align-items: center; gap: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.foot p { margin: 0; }
#build { font-family: var(--mono); font-size: 12px; }

@media (max-width: 640px) {
  .hero { padding: 36px 0 28px; }
  .lede { font-size: 16px; }
  .step { padding: 20px 18px 22px; }
  .answer { padding: 20px 18px 18px; }
  form { flex-direction: column; }
  #send { width: 100%; }
  .cannot { grid-template-columns: 1fr; }
  .tally { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price { width: 100%; margin-left: 0; text-align: left; }
  .loaded { flex-direction: column; align-items: flex-start; }
  .product { display: none; }
  .mascot { width: 168px; }
  .experiment { grid-template-columns: 1fr; }
  .playing { max-width: 240px; margin: 0 auto; }
  .foot { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
