:root {
  --primary: #2f8ff0;
  --primary-deep: #0a66c2;
  --bg: #070d12;
  --surface: #101820;
  --surface-variant: #182430;
  --on: #e4ecf4;
  --on-var: #a8b8c8;
  --outline: rgba(47, 143, 240, 0.22);
  --amber: #f0b429;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 920px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.55;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(47, 143, 240, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(10, 102, 194, 0.12), transparent);
  color: var(--on);
}
a { color: var(--primary); text-underline-offset: 2px; }
a:hover { color: #5cadff; }
img { max-width: 100%; height: auto; }
.app {
  width: min(100% - 2rem, 560px);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1rem 0 5.5rem;
}
.app-wide { width: min(100% - 2rem, var(--max)); }
.brand { font-weight: 800; letter-spacing: -0.03em; }
.logo-mark {
  display: block;
  width: min(220px, 72vw);
  height: auto;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 8px 24px rgba(47, 143, 240, 0.25));
}
/* Wordmark is wide — keep readable; do not squash to a square favicon size */
.logo-mark.sm { width: min(140px, 48vw); margin: 0 0 0.75rem; }
.coming-soon {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 0;
}
.coming-soon h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0 0 0.75rem; }
.step { color: var(--on-var); font-size: 0.85rem; margin: 0 0 0.35rem; }
h1 { font-size: 1.55rem; margin: 0 0 0.5rem; letter-spacing: -0.03em; }
h2 { font-size: 1.1rem; margin: 0 0 0.5rem; }
.sub { color: var(--on-var); line-height: 1.45; margin: 0 0 1rem; }
.field { margin: 0.75rem 0; }
.field label { display: block; font-size: 0.85rem; margin-bottom: 0.3rem; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--outline);
  background: var(--surface);
  color: var(--on);
}
.actions {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  padding: 0.75rem 0 0.25rem;
  background: linear-gradient(transparent, var(--bg) 30%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  background: var(--primary-deep);
}
.btn:hover { background: var(--primary); color: #fff; }
.btn.ghost {
  background: transparent;
  color: var(--on);
  border: 1px solid var(--outline);
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.cta-row .btn { flex: 1 1 160px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
@media (min-width: 720px) {
  .exp-grid { grid-template-columns: repeat(3, 1fr); }
}
.tile {
  border: 1.5px solid var(--outline);
  background: var(--surface);
  border-radius: 14px;
  padding: 0.9rem;
  cursor: pointer;
  text-align: left;
  color: inherit;
}
.tile.on {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 40%, transparent);
}
.tile .k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--on-var); margin: 0; }
.tile .v { font-size: 1.05rem; font-weight: 700; margin: 0.25rem 0 0; }
.exp-card {
  border: 1px solid var(--outline);
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.exp-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; background: var(--surface-variant); }
.exp-card .body { padding: 0.85rem 0.95rem 1rem; }
.exp-card h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.exp-card p { margin: 0; color: var(--on-var); font-size: 0.92rem; line-height: 1.4; }
.err { color: #ff8a80; font-size: 0.9rem; }
.hint { font-size: 0.85rem; color: var(--on-var); }
.chip {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 20%, var(--surface));
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.35rem;
}
.usecase-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}
.usecase-chips li {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: var(--surface);
  font-size: 0.88rem;
  color: var(--on);
}
.product-note {
  margin: 0 0 1rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1.5px solid color-mix(in srgb, var(--primary) 55%, transparent);
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
}
.product-note .kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}
.product-note p { margin: 0; line-height: 1.45; font-weight: 500; }
.list { display: flex; flex-direction: column; gap: 0.45rem; }
.list button {
  text-align: left;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--outline);
  background: var(--surface);
  color: inherit;
  cursor: pointer;
}
.list button.on { border-color: var(--primary); }
.hidden { display: none !important; }
.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--amber);
  text-align: center;
}
.hero-brand { font-size: 1.35rem; margin-bottom: 0.35rem; text-align: center; }
.hero-title { font-size: clamp(1.55rem, 4vw, 2.1rem); text-align: center; }
.hero-sub { text-align: center; max-width: 38em; margin-left: auto; margin-right: auto; }
.hero-art {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--outline);
  margin: 0 0 1.25rem;
  background: var(--surface);
  aspect-ratio: 16/9;
  object-fit: cover;
}
.block { margin: 0 0 1.35rem; }
.sticky-actions { position: sticky; bottom: 0; }
.video-wrap video { width: 100%; border-radius: 12px; background: #000; max-height: 70vh; }
.persona-name { font-size: 1.25rem; font-weight: 800; margin: 0 0 0.25rem; }
.persona-block { margin: 0 0 0.85rem; }
.persona-block h3 { font-size: 0.85rem; margin: 0 0 0.25rem; color: var(--primary); }
.persona-block p { margin: 0; color: var(--on-var); line-height: 1.45; font-size: 0.95rem; }
.turnstile-slot { margin: 0.75rem 0; min-height: 0.5rem; }
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center; z-index: 40; padding: 1rem;
  box-sizing: border-box;
}
.modal {
  background: var(--surface); border: 1px solid var(--outline); border-radius: 16px;
  padding: 1.25rem; max-width: min(420px, 100%); width: 100%;
  box-sizing: border-box; overflow-x: hidden; overflow-wrap: anywhere; word-break: break-word;
}
.modal h2 { margin: 0 0 0.5rem; font-size: 1.15rem; overflow-wrap: anywhere; }
.modal p { margin: 0 0 1rem; color: var(--on-var); line-height: 1.45; overflow-wrap: anywhere; word-break: break-word; max-width: 100%; }
.modal-msg { white-space: pre-wrap; }
.modal-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.google-btn-host {
  display: flex; justify-content: center; margin: 0 0 1rem; min-height: 44px; width: 100%;
  overflow: hidden;
}
.otp-row {
  display: flex; gap: 0.4rem; justify-content: space-between; margin: 0.35rem 0 0.75rem;
  max-width: 100%;
}
.otp-digit {
  flex: 1 1 0; min-width: 0; max-width: 2.75rem; aspect-ratio: 1 / 1.15;
  text-align: center; font-size: 1.25rem; font-weight: 700; letter-spacing: 0;
  padding: 0.35rem 0; border-radius: 10px; border: 1px solid var(--outline);
  background: var(--bg); color: var(--on); caret-color: var(--primary);
}
.otp-digit:focus {
  outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary);
}
.modal-busy {
  display: flex; flex-direction: column; align-items: center; gap: 0.85rem;
  padding: 0.5rem 0 0.25rem; text-align: center;
}
.modal-busy p { margin: 0; }
.spinner {
  width: 2rem; height: 2rem; border-radius: 50%;
  border: 3px solid var(--outline);
  border-top-color: var(--primary);
  animation: ac-spin 0.7s linear infinite;
}
@keyframes ac-spin { to { transform: rotate(360deg); } }
.btn[disabled], .btn.is-busy { opacity: 0.65; pointer-events: none; }
.site-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--outline);
  font-size: 0.85rem;
  color: var(--on-var);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.legal-nav {
  display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0.75rem 0 1.25rem; font-size: 0.9rem;
}
.legal-nav a[aria-current="page"] { font-weight: 700; color: var(--on); text-decoration: none; }
.legal-meta { color: var(--on-var); font-size: 0.9rem; margin: 0 0 0.5rem; }
.suite-grid {
  display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin: 0.75rem 0 1rem;
}
@media (min-width: 720px) {
  .suite-grid { grid-template-columns: 1fr 1fr; }
}
a.suite-card, .suite-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius);
  padding: 0.9rem 1rem;
}
a.suite-card:hover { border-color: var(--primary); }
.suite-card h2, .suite-card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.suite-card p { margin: 0; color: var(--on-var); font-size: 0.92rem; }

/* Avatar setup — character grid + voice preview */
.setup-block { margin: 1rem 0 0.25rem; }
.setup-h { margin: 0 0 0.55rem; font-size: 0.95rem; font-weight: 700; color: var(--on-var); letter-spacing: 0.02em; text-transform: uppercase; }
.setup-sample-hint { margin: 0 0 0.65rem; font-size: 0.88rem; }
.accent-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.accent-chip {
  border: 1px solid var(--outline); background: var(--surface); color: var(--on);
  border-radius: 999px; padding: 0.45rem 0.85rem; font: inherit; cursor: pointer;
}
.accent-chip.on { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.char-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
@media (min-width: 560px) {
  .char-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 820px) {
  .char-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.char-card {
  display: flex; flex-direction: column; align-items: stretch; gap: 0.4rem;
  margin: 0; padding: 0.4rem; border-radius: var(--radius);
  border: 1px solid var(--outline); background: var(--surface); color: var(--on);
  cursor: pointer; font: inherit; text-align: center;
}
.char-card.on { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.char-thumb, .char-fallback {
  width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top center;
  border-radius: calc(var(--radius) - 4px); background: var(--surface-variant);
  display: block;
}
.char-fallback {
  display: grid; place-items: center; font-size: 1.75rem; font-weight: 800; color: var(--primary);
}
.char-name { font-size: 0.9rem; font-weight: 600; padding: 0 0.15rem 0.25rem; }
.voice-list { display: flex; flex-direction: column; gap: 0.45rem; }
.voice-row {
  display: flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--outline); border-radius: var(--radius);
  background: var(--surface); padding: 0.35rem 0.4rem 0.35rem 0.15rem;
}
.voice-row.on { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.voice-pick {
  flex: 1; min-width: 0; text-align: left; border: 0; background: transparent;
  color: inherit; font: inherit; padding: 0.55rem 0.65rem; cursor: pointer;
}
.voice-name { font-weight: 600; }
.voice-preview-btn { flex: 0 0 auto; padding: 0.4rem 0.7rem; font-size: 0.85rem; }
.voice-preview-btn.is-playing { background: rgba(47, 143, 240, 0.2); }
.voice-na { padding: 0 0.5rem; font-size: 0.8rem; white-space: nowrap; }
.exp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}
.inbox-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.inbox-item { margin: 0; }
.inbox-row {
  width: 100%; text-align: left; border: 1px solid var(--outline); border-radius: var(--radius);
  background: var(--surface); color: var(--on); padding: 0.75rem 0.85rem; cursor: pointer;
  display: flex; flex-direction: column; gap: 0.2rem;
}
.inbox-row:hover { border-color: var(--primary); }
.inbox-item.is-unread .inbox-row { border-color: rgba(47, 143, 240, 0.55); background: var(--surface-variant); }
.inbox-who { font-size: 0.8rem; color: var(--on-var); }
.inbox-title { font-weight: 700; }
.inbox-preview { font-size: 0.9rem; color: var(--on-var); }
.inbox-body {
  margin-top: 0.5rem; padding: 0.85rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--outline); white-space: pre-wrap;
}
.inbox-badge {
  display: inline-block; min-width: 1.35rem; padding: 0.05rem 0.4rem; margin-left: 0.35rem;
  border-radius: 999px; background: var(--primary); color: #fff; font-size: 0.8rem; font-weight: 700;
  vertical-align: middle;
}
.mailbox-chrome {
  position: fixed;
  top: max(0.65rem, env(safe-area-inset-top, 0px));
  right: max(0.65rem, env(safe-area-inset-right, 0px));
  z-index: 40;
}
.mailbox-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: var(--surface);
  color: var(--on);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  padding: 0;
}
.mailbox-btn:hover { border-color: var(--primary); color: var(--primary); }
.mailbox-btn.is-active { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 18%, var(--surface)); }
.mailbox-btn svg { width: 1.35rem; height: 1.35rem; display: block; }
.mailbox-btn .mailbox-dot {
  position: absolute;
  top: 0.2rem;
  right: 0.15rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1rem;
  text-align: center;
  box-sizing: border-box;
}
.demo-note { margin: 0 0 1rem; line-height: 1.45; }
.persona-links {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin: 1rem 0 0.25rem;
}
button.linkish {
  background: none; border: 0; padding: 0; color: var(--primary); font: inherit; font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
button.linkish:hover { color: #5cadff; }
.product-note { display: none; } /* retired promo card — RDY2WRK lives in modal */
.field textarea {
  width: 100%; padding: 0.55rem 0.65rem; border-radius: 10px; border: 1px solid var(--outline);
  background: var(--bg); color: var(--on); font: inherit; resize: vertical;
}
.org-handbook {
  max-height: min(42vh, 22rem);
  overflow: auto;
  overscroll-behavior: contain;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--outline);
  background: color-mix(in srgb, var(--surface) 88%, #000);
  color: var(--on-var);
  line-height: 1.45;
  font-size: 0.92rem;
  -webkit-overflow-scrolling: touch;
}
.org-handbook h1 { font-size: 1.15rem; margin: 0 0 0.65rem; color: var(--on); }
.org-handbook h2 { font-size: 1.05rem; margin: 1rem 0 0.45rem; color: var(--on); }
.org-handbook h3 { font-size: 0.98rem; margin: 0.85rem 0 0.35rem; color: var(--on); }
.org-handbook p { margin: 0 0 0.55rem; }
.org-handbook ul { margin: 0 0 0.65rem; padding-left: 1.2rem; }
.org-handbook li { margin: 0.2rem 0; }
.org-handbook hr { border: 0; border-top: 1px solid var(--outline); margin: 0.85rem 0; }
.org-handbook .md-table {
  margin: 0; padding: 0.15rem 0; font-size: 0.78rem; white-space: pre-wrap;
  background: transparent; border: 0; color: var(--on-var); overflow-x: auto;
}
.org-custom-ta { min-height: 12rem; max-height: min(42vh, 22rem); }
.org-docs { margin: 1rem 0 0.5rem; }
.org-docs-title { font-size: 1.05rem; margin: 0 0 0.35rem; }
.org-doc-list { list-style: none; margin: 0.75rem 0; padding: 0; }
.org-doc-item {
  margin: 0 0 0.85rem; padding: 0.75rem; border-radius: 12px;
  border: 1px solid var(--outline); background: var(--surface);
}
.org-doc-head { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; }
.ok-hint { color: #5ecf9a; font-weight: 700; }
