@font-face {
  font-family: Figtree;
  src: url("fonts/figtree.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #1B2A4A;
  --primary-deep: #0F1C33;
  --teal: #14A3A0;
  --accent: #0E7C7A;
  --tint: #E6F6F5;
  --gold: #F5C542;
  --page: #F7F9FB;
  --paper: #F7F9FB;
  --white: #FFFFFF;
  --line: #E3E8EF;
  --muted: #5B6B85;
  --ink-soft: #5B6B85;
  --ok: #0F6B45;
  --ok-bg: #E5F5EE;
  --wait: #1B2A4A;
  --wait-bg: #E6F6F5;
  --change: #8C3A32;
  --change-bg: #FDECEC;
  --press: #0A5C5A;
  --shadow: 0 1px 2px rgba(27, 42, 74, .05), 0 18px 40px rgba(27, 42, 74, .08);
  --sans: Figtree, "Segoe UI", sans-serif;
  --serif: Figtree, "Segoe UI", sans-serif;
  --link: #0E7C7A;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body.portal {
  margin: 0;
  background: var(--page);
  color: var(--primary);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.55;
}
::selection { background: var(--tint); }
a { color: var(--link); }
button, input, select { font: inherit; color: inherit; }
.wrap { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}
.brand-lockup { display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.logo { height: 40px; width: auto; display: block; }
.beta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--accent);
  background: var(--tint);
  border-radius: 999px;
  padding: 3px 8px;
}
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 650;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 999px;
}
.nav a:hover { background: var(--tint); color: var(--primary); }
.nav form { margin: 0; }
.nav button, .nav-form button {
  background: transparent;
  border: 0;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 650;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.nav button:hover, .nav-form button:hover { background: var(--tint); color: var(--primary); }
.nav a[aria-current="page"] {
  background: white;
  color: var(--link);
  box-shadow: 0 1px 2px rgba(27, 42, 74, .06), 0 0 0 1px var(--line);
}

main { padding: 42px 0 72px; }
.crumb { margin: 0 0 8px; color: var(--link); font-weight: 700; font-size: 14px; }
h1 {
  font-family: var(--sans);
  font-weight: 750;
  font-size: clamp(2.05rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 12px;
  color: var(--primary);
}
.lede { margin: 0 0 28px; max-width: 40rem; color: var(--ink-soft); font-size: 1.08rem; }
h2 { font-family: var(--sans); font-weight: 750; font-size: 1.35rem; letter-spacing: -0.02em; margin: 0 0 6px; color: var(--primary); }
h3 { margin: 0; font-size: 1rem; }

.steps {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 6px 0 0;
  margin: 8px 0 28px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 22px;
  height: 2px;
  background: var(--line);
}
.steps li {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--muted);
}
.dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 2px solid var(--line);
  font-size: 13px;
}
.steps .done { color: var(--link); }
.steps .done .dot { background: var(--accent); border-color: var(--accent); color: white; }
.steps .now { color: var(--primary); }
.steps .now .dot {
  background: white;
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary) 12%, white);
}

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.stat, .card, .guide, .doc, .soon, .q, .composer, .effort {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.stat { padding: 18px 18px 16px; }
.stat .k { margin: 0 0 10px; color: var(--muted); font-weight: 700; font-size: 14px; }
.stat strong {
  display: block;
  font-family: var(--sans);
  font-weight: 750;
  font-size: 2.6rem;
  letter-spacing: -0.03em;
  line-height: .95;
  color: var(--primary);
}
.stat .n { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.stat .n a { font-weight: 750; }

.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; margin-top: 14px; }
.card { padding: 22px 24px 20px; }
.card p, .guide p, .doc p, .soon p { margin: 0; color: var(--ink-soft); }
.card p + p { margin-top: 8px; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--link);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.guide {
  margin-top: 14px;
  padding: 22px 24px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, white) 0%, var(--white) 42%);
}
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 14px; }
.guide h3 { margin-bottom: 4px; }
.guide p { font-size: 15px; }
.text-link { display: inline-block; margin-top: 18px; font-weight: 750; text-underline-offset: 3px; }

.dims { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dim { padding: 20px 22px 16px; }
.dim-h { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.dim h2 { font-size: 1.28rem; }
.dim .prompt { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; max-width: 26ch; }
.mean { text-align: right; width: 9.2rem; flex: none; }
.mean strong {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.15rem;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--primary);
}
.mean span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; font-weight: 650; line-height: 1.35; }
.plot { display: flex; align-items: flex-end; gap: 8px; height: 84px; margin: 18px 0 6px; }
.plot span {
  flex: 1;
  height: var(--h);
  min-height: 5px;
  border-radius: 8px 8px 4px 4px;
  background: color-mix(in srgb, var(--accent) 22%, white);
}
.plot span.on { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 70%, white), var(--accent)); }
.axis { display: flex; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.axis span { flex: 1; text-align: center; }
.rounds {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 0 0;
  margin: 12px 0 0;
  border-top: 1px solid var(--line);
}
.rounds li { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rounds span { color: var(--muted); font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.rounds strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.rounds .wait strong { color: var(--muted); font-weight: 500; }

.effort { padding: 22px 24px; margin-top: 14px; }
.effort-h { display: flex; justify-content: space-between; gap: 18px; align-items: flex-end; margin-bottom: 16px; }
.time { text-align: right; }
.time strong { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--primary); }
.time span { display: block; margin-top: 6px; color: var(--muted); font-size: 13.5px; }
.stack { display: flex; height: 16px; border-radius: 999px; overflow: hidden; background: var(--tint); }
.stack i { display: block; height: 100%; }
.stack-legend { display: flex; flex-wrap: wrap; gap: 14px 18px; margin: 12px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13.5px; }
.stack-legend li { display: flex; align-items: center; gap: 7px; }
.sw { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }

.wait-card { padding: 36px 32px; }
.wait-card h2 { font-size: 1.8rem; margin-bottom: 8px; }
.meter { margin-top: 20px; height: 10px; border-radius: 999px; background: var(--tint); overflow: hidden; max-width: 320px; }
.meter span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.meter + p { margin-top: 8px; font-size: 14px; color: var(--muted); font-weight: 700; }

.docs { display: grid; gap: 14px; }
.doc, .soon { padding: 26px 28px; }
.doc-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
.chip {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--link);
  background: color-mix(in srgb, var(--accent) 14%, white);
  border-radius: 999px;
  padding: 4px 9px;
}
.doc h2 { font-size: 1.7rem; }
.doc .date { color: var(--muted); font-weight: 700; margin: 4px 0 10px; }
.btn {
  display: inline-block;
  margin-top: 16px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 750;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  min-height: 48px;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--press);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { background: #0C6E6C; color: white; transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--press); }
.soon { background: transparent; box-shadow: none; border-style: dashed; border-color: var(--line); }
.soon h2 { color: var(--ink-soft); }

.composer { padding: 22px 24px 20px; margin-bottom: 18px; }
label { display: block; font-weight: 750; margin-bottom: 8px; }
.hint { display: block; font-weight: 500; color: var(--muted); margin-top: 3px; }
input[type="text"], select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
}
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.form-row { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.form-row select { width: auto; }
.form-row .btn { margin-top: 0; }
.qs { display: grid; gap: 10px; }
.q { padding: 16px 18px; box-shadow: none; }
.q-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.q p { margin: 0; }
.meta { margin-top: 6px !important; color: var(--muted); font-size: 13.5px; font-weight: 650; }
.pill { flex: none; font-size: 13px; font-weight: 800; border-radius: 999px; padding: 4px 10px; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.wait { background: var(--wait-bg); color: var(--wait); }
.pill.change { background: var(--change-bg); color: var(--change); }
.test-watermark {
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 2px solid var(--change);
  border-radius: 12px;
  background: var(--change-bg);
  color: var(--change);
  font-weight: 800;
}
.q-note {
  margin-top: 10px !important;
  background: var(--change-bg);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--change);
  font-size: 14.5px;
}
.list-title { margin: 8px 0 10px; font-size: 14px; font-weight: 800; color: var(--muted); }

.flash { padding: 12px 14px; border-radius: 14px; margin: 0 0 16px; }
.flash.ok { background: var(--ok-bg); color: #14532D; }
.flash.err { background: var(--change-bg); color: #6F2E28; }
.flash.warn { background: var(--tint); color: var(--primary); }

.toast-stack {
  position: fixed;
  z-index: 30;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(380px, calc(100% - 24px));
  pointer-events: none;
}
.toast.flash,
.toast.flash.ok,
.toast.flash.err,
.toast.flash.warn {
  pointer-events: auto;
  position: relative;
  margin: 0;
  padding: 14px 42px 14px 16px;
  border-radius: 18px;
  background: var(--primary);
  color: #fff;
  border: 0;
  box-shadow: 0 12px 32px rgba(27, 42, 74, .2);
  animation: toast-in .28s ease;
}
.toast .toast-title { margin: 0; font-weight: 750; font-size: 1.05rem; color: #fff; }
.toast .toast-body { margin: 4px 0 0; color: #fff; font-size: .95rem; }
.toast-x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: none;
}
.spark { display: block; margin: 0 0 8px; }
.empty-state { text-align: center; padding: 28px 18px; }
.empty-state .spark { margin: 0 auto 8px; }
.empty-state h2 { font-size: 1.35rem; }
.empty-state p { margin: 8px auto 0; max-width: 36rem; }
@keyframes toast-in {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .toast { animation: none; }
  .btn, .btn:hover, .btn:active { transition: none; transform: none; }
}

.foot { border-top: 1px solid var(--line); padding: 26px 0 34px; color: var(--muted); font-size: 14px; }
.foot p { margin: 0 0 4px; }
.foot a { color: var(--ink-soft); }
.foot-links { font-weight: 750; margin-bottom: 8px; }
.foot-links a { color: var(--primary); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

@media (max-width: 800px) {
  .wrap { width: min(1080px, calc(100% - 28px)); }
  .top .wrap { flex-wrap: wrap; min-height: 0; padding: 12px 0; }
  .nav { width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .dims, .split, .guide-grid { grid-template-columns: 1fr; }
  .effort-h, .q-top { flex-direction: column; align-items: flex-start; }
  .time, .mean { text-align: left; width: auto; }
  .logo { height: 34px; }
  h1 { font-size: 2.15rem; }
  .stat strong { font-size: 2.2rem; }
}
