/* Holon hub pages: the signed-out landing and sign-in panel, waiting, error, approvals, privacy.
   One dark world, taken from the approved hero (design/hero): the #0a0a0a ground, the particle
   field, Geist, white titles with a faint cool glow, a bright primary pill and a glass pill.
   Geist is self-hosted (SIL Open Font License 1.1, fonts/OFL-Geist.txt). */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/Geist-normal-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;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/Geist-normal-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;
}

:root {
  --hero-bg: #0a0a0a;            /* read by hero-field.js */
  --surface: #111214;
  --surface-2: #17191c;
  --sunken: #0d0e10;
  --line: #24272c;
  --line-soft: #1a1c20;
  --ink: #f2f4f7;
  --ink-2: #c9ced6;
  --muted: #9ca3ae;              /* 7.6:1 on the ground */
  --faint: #7c8490;              /* meta text only, 4.9:1 on the ground */
  --soft: #c6cdd8;
  --accent: #cfe0ff;
  --accent-soft: rgb(150 182 255 / 0.10);
  --accent-line: rgb(150 182 255 / 0.28);
  --good: #86dcc0;
  --warn: #e3b872;
  --bad: #f19a95;
  --hairline: rgb(255 255 255 / 0.12);
  --glow-rgb: 150 182 255;

  --field-near: #eef3ff;
  --field-far: #8eaee6;
  --field-cursor: #d6e4ff;
  --field-point-alpha: 0.9;
  --field-link-alpha: 0.34;

  --ui: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 140ms;
  --base: 240ms;
  --slow: 420ms;
  --gutter: clamp(16px, 4vw, 40px);
  --pad-left: max(var(--gutter), env(safe-area-inset-left));
  --pad-right: max(var(--gutter), env(safe-area-inset-right));
  --bar: calc(64px + env(safe-area-inset-top));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--hero-bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html:not(.is-still) {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  background: var(--hero-bg);
  color: var(--muted);
  font-family: var(--ui);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ol, ul, dl, dd, figure {
  margin: 0;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

a,
button,
input,
[tabindex] {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

[tabindex="-1"]:focus {
  outline: none;
}

.icon {
  flex: none;
  display: block;
}

code,
.mono {
  font-family: var(--mono);
}

/* ---------- field ---------- */

.field {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero .field {
  position: absolute;
}

.page-panel .field {
  opacity: 0.42;
}

/* ---------- top bar ---------- */

.topbar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1280px;
  margin-inline: auto;
  padding: calc(10px + env(safe-area-inset-top)) var(--pad-right) 10px var(--pad-left);
  pointer-events: none;
}

.topbar a {
  pointer-events: auto;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 10px;
  color: #f5f7fa;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-inline-end: -14px;
  padding-inline: 14px;
  border-radius: 999px;
  color: var(--soft);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 200ms var(--ease), background-color 200ms var(--ease);
}

/* ---------- hero (the approved landing) ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: max(560px, 100vh);
  min-height: max(560px, 100svh);
  overflow: hidden;
  overflow: clip;
  background: var(--hero-bg);
}

.hero-fade {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 26%;
  background: linear-gradient(to bottom, rgb(10 10 10 / 0), rgb(10 10 10 / 0.72) 62%, var(--hero-bg));
  pointer-events: none;
}

.hero-content,
.stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-inline: auto;
  text-align: center;
  pointer-events: none;   /* the field stays interactive through the copy */
}

.hero-content {
  max-width: calc(760px + var(--pad-left) + var(--pad-right));
  padding: calc(var(--bar) + 24px) var(--pad-right) calc(72px + 4vh + env(safe-area-inset-bottom)) var(--pad-left);
}

.hero-content a,
.hero-content button,
.stage a,
.stage button,
.stage form {
  pointer-events: auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  margin: 0 0 28px;
  padding: 6px 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.035);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06);
  color: var(--soft);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
}

.hero-title,
.stage-title {
  position: relative;
  margin: 0;
  color: #ffffff;
  font-weight: 700;
  text-wrap: balance;
}

.hero-title {
  max-width: 13.5em;
  font-size: clamp(2.6rem, 1.25rem + 5.2vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.042em;
}

.hero-title-line {
  display: inline-block;
}

/* a faint cool haze behind the title; the letters stay solid white */
.hero-title::before,
.stage-title::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: min(1180px, 170%);
  height: 230%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(closest-side, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0) 55%),
    radial-gradient(closest-side, rgb(var(--glow-rgb) / 0.15), rgb(var(--glow-rgb) / 0.09) 30%, rgb(var(--glow-rgb) / 0.035) 60%, rgb(var(--glow-rgb) / 0.01) 82%, rgb(var(--glow-rgb) / 0));
  pointer-events: none;
}

.hero-body,
.stage-body {
  margin: 24px 0 0;
  max-width: 44rem;
  color: var(--muted);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.inline-form {
  display: contents;
}

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 200ms var(--ease),
    background-color 200ms var(--ease),
    border-color 200ms var(--ease),
    box-shadow 200ms var(--ease),
    opacity 200ms var(--ease);
}

.btn-primary {
  background-color: #f2f5fa;
  color: #0a0a0a;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 12px 32px -14px rgb(var(--glow-rgb) / 0.45);
}

.btn-primary.has-icon {
  gap: 12px;
  padding-right: 6px;
}

.btn-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background-color: #0a0a0a;
  color: #f2f5fa;
  transition: transform 200ms var(--ease);
}

.btn-glass {
  border-color: rgb(255 255 255 / 0.16);
  background-color: rgb(255 255 255 / 0.06);
  color: #eef1f6;
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14), inset 0 -1px 0 rgb(255 255 255 / 0.03);
}

.btn.wide {
  width: 100%;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}

.btn[aria-busy="true"] {
  cursor: progress;
  opacity: 0.72;
}

@media (hover: hover) {
  .topbar-link:hover {
    background-color: rgb(255 255 255 / 0.06);
    color: #ffffff;
  }

  .btn-primary:not([disabled]):hover {
    background-color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14), 0 16px 40px -14px rgb(var(--glow-rgb) / 0.6);
  }

  .btn-primary:not([disabled]):hover .btn-icon {
    transform: translateX(2px);
  }

  .btn-glass:not([disabled]):hover {
    border-color: rgb(255 255 255 / 0.26);
    background-color: rgb(255 255 255 / 0.1);
    transform: translateY(-1px);
  }
}

.btn:not([disabled]):active {
  transform: translateY(0) scale(0.98);
}

.btn:focus-visible,
.wordmark:focus-visible,
.topbar-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .btn-glass {
    background-color: rgb(30 32 37 / 0.92);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .btn-glass {
    background-color: #1c1e23;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgb(207 224 255 / 0.35);
  text-underline-offset: 4px;
  transition: text-decoration-color var(--fast) var(--ease);
}

@media (hover: hover) {
  .link-btn:hover {
    text-decoration-color: currentColor;
  }
}

/* ---------- how it works ---------- */

.how {
  position: relative;
  z-index: 1;
  padding: clamp(48px, 6vw, 88px) var(--pad-right) clamp(80px, 10vw, 136px) var(--pad-left);
}

.how-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "lead list" "cta list";
  gap: 0 clamp(40px, 7vw, 112px);
  align-items: start;
  max-width: 1120px;
  margin-inline: auto;
}

.how-lead {
  grid-area: lead;
}

.how-cta {
  grid-area: cta;
  margin-top: 32px;
}

.how-title {
  color: #ffffff;
  font-size: clamp(2.1rem, 1.5rem + 2.2vw, 3.25rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.how-lede {
  max-width: 24rem;
  margin-top: 18px;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.how-list {
  margin: 0;
  padding: 0;
  grid-area: list;
  list-style: none;
  border-top: 1px solid var(--line-soft);
}

.how-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 22px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line-soft);
}

.how-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgb(var(--glow-rgb) / 0.16);
  color: var(--accent);
}

.how-item h3 {
  padding-top: 2px;
  color: var(--ink);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.how-item p {
  max-width: 34rem;
  margin-top: 8px;
  line-height: 1.65;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 800ms var(--ease) var(--d, 0ms), transform 800ms var(--ease) var(--d, 0ms);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- footer ---------- */

.foot {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line-soft);
  padding: 20px var(--pad-right) calc(20px + env(safe-area-inset-bottom)) var(--pad-left);
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  max-width: 1120px;
  margin-inline: auto;
}

.foot-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  font-size: 0.875rem;
}

.foot-brand b {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 18px;
}

.foot-h {
  color: var(--faint);
  font-size: 0.8125rem;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color var(--fast) var(--ease);
}

.foot-links .icon {
  opacity: 0.8;
}

@media (hover: hover) {
  .foot-links a:hover {
    color: var(--ink);
  }
}

/* ---------- stage pages: waiting, error ---------- */

.stage {
  max-width: calc(720px + var(--pad-left) + var(--pad-right));
  min-height: max(520px, 100vh);
  min-height: max(520px, 100svh);
  padding: calc(var(--bar) + 24px) var(--pad-right) calc(72px + 4vh + env(safe-area-inset-bottom)) var(--pad-left);
}

.stage-title {
  max-width: 16em;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.stage-title::before {
  width: min(900px, 190%);
  height: 320%;
}

.stage-body {
  max-width: 34rem;
}

/* ---------- panel pages: approvals, privacy ---------- */

.panel-page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: calc(760px + var(--pad-left) + var(--pad-right));
  margin-inline: auto;
  padding: calc(var(--bar) + clamp(28px, 7vh, 72px)) var(--pad-right) calc(64px + env(safe-area-inset-bottom)) var(--pad-left);
}

.page-head {
  margin-bottom: 32px;
}

.page-title {
  color: #ffffff;
  font-size: clamp(1.9rem, 1.35rem + 1.9vw, 2.6rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.lede {
  max-width: 36rem;
  margin-top: 12px;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.panel-note {
  margin-top: 24px;
  font-size: 0.875rem;
}

.panel-note a {
  color: var(--accent);
  text-underline-offset: 4px;
}

.sheet {
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.empty {
  padding: 44px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  text-align: center;
}

.empty h2 {
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.empty p {
  max-width: 26rem;
  margin: 8px auto 0;
  line-height: 1.6;
}

.empty .btn {
  margin-top: 24px;
}

/* approvals */

.ap-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ap {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: opacity var(--base) var(--ease);
}

.ap-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
}

.ap-tool {
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.ap-exp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--faint);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.ap-exp .icon {
  align-self: center;
}

.ap[data-state="expired"] .ap-exp {
  color: var(--warn);
}

.ap-preview {
  max-height: 22rem;
  margin: 14px 0 0;
  padding: 14px 16px;
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--sunken);
  color: var(--ink-2);
  font: 0.8125rem/1.7 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 2;
}

.ap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.ap-actions .btn {
  min-height: 44px;
  min-width: 108px;
}

.ap-msg {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.875rem;
}

.ap-msg:empty {
  display: none;
}

.ap-msg[data-tone="good"] {
  color: var(--good);
}

.ap-msg[data-tone="bad"] {
  color: var(--bad);
}

.ap[data-state="done"] .ap-actions {
  display: none;
}

.ap[data-state="done"] .ap-preview {
  opacity: 0.6;
}

/* privacy */

.prose section + section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
}

.prose h2 {
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.prose p {
  max-width: 40rem;
  margin-top: 10px;
  color: var(--ink-2);
  line-height: 1.65;
}

.facts {
  margin-top: 8px;
}

.fact {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}

.fact dt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.fact code {
  color: var(--ink);
  font-size: 0.875rem;
}

.fact dd {
  margin-top: 8px;
  color: var(--ink-2);
  line-height: 1.65;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
}

/* ---------- sign-in dialog ---------- */

dialog.signin {
  width: min(448px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 2 * clamp(16px, 9vh, 88px));
  margin: clamp(16px, 9vh, 88px) auto auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 24px;
  background:
    radial-gradient(120% 50% at 50% -8%, rgb(var(--glow-rgb) / 0.09), rgb(var(--glow-rgb) / 0) 70%),
    #0f1012;
  color: var(--ink-2);
}

dialog.signin::backdrop {
  background: rgb(4 5 7 / 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* without JavaScript the panel is shown in place (server-rendered data-open) */
dialog.signin:not(:modal) {
  position: fixed;
  inset: 0;
  z-index: 10;
  height: fit-content;
  margin-top: clamp(16px, 9vh, 88px);
  box-shadow: 0 0 0 100vmax rgb(4 5 7 / 0.82);
}

@media (prefers-reduced-motion: no-preference) {
  dialog.signin[open] {
    animation: dlg-in var(--slow) var(--ease);
  }

  dialog.signin[open]::backdrop {
    animation: fade-in var(--base) var(--ease);
  }
}

@keyframes dlg-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

.dlg {
  padding: 24px;
}

.dlg-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dlg-brand {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.dlg-title {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.dlg-sub {
  margin-top: 6px;
  font-size: 0.9375rem;
}

.icon-btn {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -8px -10px 0 0;
  border-radius: 999px;
  color: var(--muted);
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}

@media (hover: hover) {
  .icon-btn:hover {
    background: rgb(255 255 255 / 0.06);
    color: var(--ink);
  }
}

.dlg-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: 0.8125rem;
}

.dlg-foot a {
  color: var(--muted);
  text-underline-offset: 3px;
}

/* tabs: a segmented control */

.si-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 22px 0 18px;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.03);
}

.si-tab {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background-color var(--base) var(--ease), color var(--base) var(--ease);
}

.si-tab[aria-selected="true"] {
  background: #f2f5fa;
  color: #0a0a0a;
}

@media (hover: hover) {
  .si-tab[aria-selected="false"]:hover {
    color: var(--ink);
  }
}

.si-tab:focus-visible {
  outline-offset: 1px;
}

/* options */

.si-options {
  display: grid;
  gap: 8px;
}

.si-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 0 14px 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(255 255 255 / 0.02);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}

.si-option .mark {
  flex: none;
}

.si-label {
  flex: 1;
  min-width: 0;
}

.si-chev {
  display: inline-flex;
  color: var(--faint);
  transition: transform var(--base) var(--ease), color var(--base) var(--ease);
}

@media (hover: hover) {
  .si-option:not([disabled]):hover {
    border-color: var(--accent-line);
    background: rgb(255 255 255 / 0.045);
  }

  .si-option:not([disabled]):hover .si-chev {
    color: var(--accent);
    transform: translateX(2px);
  }
}

.si-option:not([disabled]):active {
  transform: scale(0.99);
}

.si-option[disabled] {
  cursor: not-allowed;
  border-color: var(--line-soft);
  background: transparent;
  color: var(--muted);
}

.si-option[disabled] .mark {
  opacity: 0.45;
  filter: grayscale(1);
}

.si-tag {
  flex: none;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.si-tag.is-found {
  border-color: rgb(134 220 192 / 0.28);
  color: var(--good);
}

.si-group {
  margin: 4px 0 8px;
  color: var(--faint);
  font-size: 0.8125rem;
}

.si-options + .si-group {
  margin-top: 18px;
}

.si-help {
  margin-top: 16px;
  color: var(--faint);
  font-size: 0.8125rem;
  line-height: 1.6;
}

/* shown above the e-mail form when this Holon cannot send mail */
.si-off {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.si-off h3 {
  font-size: 0.9375rem;
  font-weight: 500;
}

.si-off p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.si-or {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--faint);
  font-size: 0.8125rem;
}

.si-or::before,
.si-or::after {
  content: "";
  height: 1px;
  background: var(--line);
}

/* e-mail */

.si-field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 500;
}

.input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--sunken);
  color: var(--ink);
  font-size: 1rem;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.input::placeholder {
  color: var(--faint);
  opacity: 1;
}

.input:focus {
  outline: none;
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px rgb(var(--glow-rgb) / 0.16);
}

.input[aria-invalid="true"] {
  border-color: rgb(241 154 149 / 0.6);
}

.input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgb(241 154 149 / 0.16);
}

.input.mono {
  font-size: 0.8125rem;
  text-overflow: ellipsis;
}

.si-err {
  margin-top: 8px;
  color: var(--bad);
  font-size: 0.875rem;
}

.si-email .btn {
  margin-top: 14px;
}

.si-email .btn-primary.has-icon {
  padding-left: 48px;
}

.si-email .btn-icon {
  position: absolute;
  top: 5px;
  right: 5px;
}

/* sent */

.si-sent-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgb(var(--glow-rgb) / 0.16);
  color: var(--accent);
}

.si-sent-title {
  color: #ffffff;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.si-lead {
  margin-top: 8px;
  color: var(--ink-2);
  line-height: 1.55;
}

.si-addr {
  display: inline-block;
  max-width: 100%;
  margin-top: 14px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.si-addr:empty {
  display: none;
}

.si-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 20px;
}

.si-row form {
  margin: 0;
}

.si-note {
  margin-top: 8px;
  color: var(--good);
  font-size: 0.875rem;
}

.si-note[data-tone="bad"] {
  color: var(--bad);
}

.si-note:empty {
  display: none;
}

/* wallet flow */

.wf-back {
  margin: -10px 0 6px;
  font-size: 0.875rem;
  text-decoration: none;
}

.wf-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.wf-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(255 255 255 / 0.03);
}

.wf-mark .mark {
  width: 24px;
  height: 24px;
}

.wf-name {
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.wf-steps {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: wf;
}

.wf-step {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  color: var(--faint);
  font-size: 0.9375rem;
  counter-increment: wf;
  transition: color var(--base) var(--ease);
}

.wf-step::before {
  content: counter(wf);
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--faint);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  transition: border-color var(--base) var(--ease), background-color var(--base) var(--ease), color var(--base) var(--ease), box-shadow var(--base) var(--ease);
}

.wf-step[data-state="active"] {
  color: var(--ink);
}

.wf-step[data-state="active"]::before {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 4px rgb(var(--glow-rgb) / 0.12);
}

@media (prefers-reduced-motion: no-preference) {
  .wf-step[data-state="active"]::before {
    animation: wf-pulse 1.8s var(--ease) infinite;
  }
}

@keyframes wf-pulse {
  50% {
    box-shadow: 0 0 0 7px rgb(var(--glow-rgb) / 0.04);
  }
}

.wf-step[data-state="done"] {
  color: var(--ink-2);
}

.wf-step[data-state="done"]::before {
  content: "";
  border-color: rgb(134 220 192 / 0.4);
  background: rgb(134 220 192 / 0.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386dcc0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.6 9.7 17 19 7.4'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.wf-step[data-state="failed"] {
  color: var(--ink-2);
}

.wf-step[data-state="failed"]::before {
  content: "!";
  border-color: rgb(241 154 149 / 0.45);
  background: rgb(241 154 149 / 0.08);
  color: var(--bad);
  font-weight: 600;
}

.wf-msg {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgb(255 255 255 / 0.025);
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.wf-msg:empty {
  display: none;
}

.wf-msg[data-tone="bad"] {
  border-color: rgb(241 154 149 / 0.28);
  background: rgb(241 154 149 / 0.05);
  color: #f6c9c6;
}

.wf-msg[data-tone="good"] {
  border-color: rgb(134 220 192 / 0.28);
  color: #bdeedd;
}

.wf-addr {
  margin-top: 10px;
  color: var(--faint);
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

.wf-addr code {
  color: var(--ink-2);
}

.wf-howto ol {
  margin: 16px 0 0;
  padding-left: 1.3em;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.wf-howto li + li {
  margin-top: 4px;
}

.wf-copy {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.wf-copy .input {
  flex: 1;
  min-width: 0;
}

.wf-copy .btn {
  flex: none;
}

.wf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.wf-actions > .btn {
  flex: 1 1 auto;
}

.wf-actions:not(:has(> :not([hidden]))) {
  display: none;
}

/* ---------- entry ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-content > *,
  .stage > *,
  .panel-page > * {
    animation: rise 900ms var(--ease) both;
  }

  .hero-content > :nth-child(2),
  .stage > :nth-child(2),
  .panel-page > :nth-child(2) {
    animation-delay: 70ms;
  }

  .hero-content > :nth-child(3),
  .stage > :nth-child(3),
  .panel-page > :nth-child(3) {
    animation-delay: 140ms;
  }

  .hero-content > :nth-child(4),
  .stage > :nth-child(4) {
    animation-delay: 210ms;
  }
}

.is-still .hero-content > *,
.is-still .stage > *,
.is-still .panel-page > *,
.is-still dialog.signin[open],
.is-still dialog.signin[open]::backdrop {
  animation: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn-icon,
  .topbar-link,
  .si-option,
  .si-chev {
    transition: none;
  }

  .btn:hover,
  .btn:active,
  .si-option:active,
  .btn-primary:hover .btn-icon {
    transform: none !important;
  }
}

/* ---------- small screens ---------- */

@media (max-width: 767px) {
  .how-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "lead" "list" "cta";
  }

  .how-list {
    margin-top: 28px;
  }

  .foot-nav {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 4px;
  }

  .foot-nav .foot-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 12px;
  }

  .how-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
    padding: 26px 0;
  }

  .how-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .foot-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 599px) {
  dialog.signin {
    width: 100%;
    max-height: 92dvh;
    margin: auto 0 0;
    border-width: 1px 0 0;
    border-radius: 24px 24px 0 0;
  }

  dialog.signin:not(:modal) {
    inset: auto 0 0;
    margin: 0;
  }

  .dlg {
    padding: 20px var(--pad-right) calc(20px + env(safe-area-inset-bottom)) var(--pad-left);
  }

  @media (prefers-reduced-motion: no-preference) {
    dialog.signin[open] {
      animation: sheet-in var(--slow) var(--ease);
    }
  }
}

@keyframes sheet-in {
  from {
    transform: translateY(40px);
    opacity: 0.4;
  }
}

@media (max-width: 479px) {
  .hero-pill {
    margin-bottom: 22px;
  }

  .hero-body,
  .stage-body {
    margin-top: 20px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 22rem;
    margin-top: 32px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-actions .btn-primary.has-icon,
  .how-cta .btn-primary.has-icon {
    padding-inline: 50px;
  }

  .hero-actions .btn-icon,
  .how-cta .btn-icon {
    position: absolute;
    top: 5px;
    right: 5px;
  }

  .how-cta .btn {
    width: 100%;
  }

  .ap {
    padding: 16px;
  }

  .ap-actions .btn {
    flex: 1;
  }

  .wf-copy {
    flex-direction: column;
  }
}
