/* Connect an AI assistant: fitcoin.co/connect and the consent page
   served by /api/mcp/authorize. Same type, colours and floating nav
   as the homepage. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/inter-latin-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 900;
  font-display: swap;
  src: url("/fonts/inter-latin-900-italic.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --ink: #17263f;
  --ink-2: #33435b;
  --muted: #5b6880;
  --line: rgba(23, 38, 63, 0.1);
  --soft: #f3f5f8;
  --bg: #f7f7f5;
  --card: #ffffff;
  --purple: #7451e7;
  --purple-2: #a653e8;
  --purple-ink: #5a3fd0;
  --purple-wash: #f2eeff;
  --ok: #0c8a5f;
  --ok-wash: #e5f7ef;
  --danger: #b4233f;
  --danger-wash: #fff0f3;
  --radius-lg: clamp(20px, 2vw, 28px);
  --radius: 14px;
  --shadow: 0 20px 48px rgba(37, 51, 87, 0.08);
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }

html { overflow-x: clip; scroll-behavior: smooth; }

body {
  margin: 0;
  padding: clamp(12px, 2vw, 26px);
  overflow-x: clip;
  background: var(--bg);
  line-height: 1.5;
}

a { color: inherit; }

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

h1, h2, h3 { text-wrap: balance; }

p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid rgba(116, 81, 231, 0.55);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hidden { display: none !important; }

/* Nav: the homepage's floating white pills */

.site-nav {
  position: fixed;
  top: clamp(14px, 2vw, 26px);
  left: 50%;
  z-index: 20;
  width: min(calc(100% - 40px), 1180px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transform: translateX(-50%);
  pointer-events: none;
}

.wordmark,
.nav-actions {
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 38px rgba(26, 54, 105, 0.16);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  pointer-events: auto;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 1rem;
  color: var(--ink);
  font-size: 1.08rem;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.025em;
  text-decoration: none;
}

.wordmark img { width: 34px; height: 34px; object-fit: contain; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 5px;
  color: #526078;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-actions a {
  display: grid;
  min-height: 46px;
  place-items: center;
  padding: 0 1rem;
  border-radius: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-actions a:hover { background: rgba(91, 83, 218, 0.08); color: #554bc8; }

.nav-actions .download-link {
  min-width: 148px;
  margin-left: 0.25rem;
  background: linear-gradient(105deg, var(--purple), var(--purple-2));
  color: #fff;
  box-shadow: 0 9px 20px rgba(103, 70, 213, 0.3);
}

.nav-actions .download-link:hover {
  background: linear-gradient(105deg, #6947db, #9848dc);
  color: #fff;
}

main, footer {
  width: min(100%, 1180px);
  margin-inline: auto;
}

/* Hero */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  overflow: hidden;
  isolation: isolate;
  padding: clamp(118px, 11vw, 142px) clamp(24px, 5.5vw, 76px) clamp(44px, 5vw, 72px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 74% 56%, rgba(29, 204, 230, 0.7), transparent 34%),
    linear-gradient(122deg, #18d5c2 0%, #15c2d0 31%, #2789ff 100%);
  color: #fff;
  box-shadow: 0 20px 52px rgba(29, 49, 86, 0.1);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.14), transparent 42%);
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero .eyebrow { color: rgba(255, 255, 255, 0.9); }

.card .eyebrow,
.section-head .eyebrow { color: var(--purple); }

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5.6vw, 5.2rem);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
}

h1 span, h1 strong { display: block; }

h1 span {
  font-size: 0.6em;
  font-weight: 800;
  line-height: 1.02;
}

h1 strong {
  margin-top: 0.06em;
  color: #6f4ce6;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-shadow: 0 8px 26px rgba(68, 46, 169, 0.18);
  overflow-wrap: anywhere;
}

.lede {
  max-width: 33rem;
  margin: 1.4rem 0 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(1rem, 1.25vw, 1.13rem);
  font-weight: 600;
  line-height: 1.55;
}

.promises {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.1rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  font-weight: 800;
}

.promises li { display: inline-flex; align-items: center; gap: 0.4rem; }

.promises svg { width: 16px; height: 16px; flex: 0 0 auto; }

.url-box {
  max-width: 34rem;
  margin-top: 1.7rem;
}

.url-box label {
  display: block;
  margin: 0 0 0.5rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.url-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.45rem 0.45rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  box-shadow: 0 14px 38px rgba(26, 54, 105, 0.16);
}

.url-row input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0;
  border: 0;
  background: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  font-weight: 650;
  text-overflow: ellipsis;
}

.url-row input:focus { outline: none; }

.url-row:focus-within { outline: 3px solid rgba(255, 255, 255, 0.7); outline-offset: 2px; }

.url-row .btn { flex: 0 0 auto; min-width: 6.4rem; }

/* Chat preview in the hero */

.hero-visual {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
}

.hero-visual .halo {
  position: absolute;
  width: min(30vw, 400px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 90px rgba(255, 255, 255, 0.22);
}

.coin {
  position: absolute;
  z-index: 0;
  width: 86px;
  filter: drop-shadow(0 16px 16px rgba(32, 62, 122, 0.16));
}

.coin-one { top: 0; right: 2%; transform: rotate(12deg); }
.coin-two { bottom: 2%; left: 0; width: 70px; transform: rotate(-16deg); }

.chat {
  position: relative;
  z-index: 1;
  width: min(100%, 380px);
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 30px 60px rgba(22, 46, 98, 0.24);
  transform: rotate(1.5deg);
}

.chat-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.1rem 0.25rem 0.8rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.chat-top i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #24c38b;
  box-shadow: 0 0 0 3px rgba(36, 195, 139, 0.18);
}

.bubble {
  max-width: 88%;
  margin-top: 0.8rem;
  padding: 0.7rem 0.9rem;
  border-radius: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
}

.bubble.you {
  margin-left: auto;
  border-bottom-right-radius: 5px;
  background: linear-gradient(105deg, var(--purple), var(--purple-2));
  color: #fff;
}

.bubble.ai {
  border-bottom-left-radius: 5px;
  background: var(--soft);
  color: var(--ink-2);
}

.bubble.ai b { color: var(--ink); }

.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.8rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--purple-wash);
  color: var(--purple-ink);
  font-size: 0.72rem;
  font-weight: 800;
}

.tool-chip img { width: 14px; height: 14px; }

/* Cards and layout below the hero */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(14px, 1.6vw, 22px);
  align-items: start;
  margin-top: clamp(14px, 1.6vw, 22px);
}

.layout > .col { display: grid; gap: clamp(14px, 1.6vw, 22px); min-width: 0; }

.card {
  padding: clamp(22px, 2.6vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
  min-width: 0;
}

.card h2 {
  margin: 0 0 0.6rem;
  color: var(--ink);
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-transform: uppercase;
}

.card h2 em {
  color: var(--purple);
  font-style: italic;
  font-weight: 900;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 850;
}

.intro {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-weight: 550;
}

.muted { color: var(--muted); font-weight: 550; }

.small { font-size: 0.88rem; }

.account { position: sticky; top: 100px; }

#setup, #account { scroll-margin-top: 96px; }

/* Tabs */

.tabs {
  display: flex;
  gap: 0.3rem;
  padding: 0.3rem;
  border-radius: 14px;
  background: var(--soft);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tabs button {
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.tabs button svg { width: 18px; height: 18px; flex: 0 0 auto; }

.tabs button[aria-selected="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(23, 38, 63, 0.08);
}

.tab-panel { padding-top: 0.4rem; }

.steps {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  min-height: 34px;
  padding: 0.35rem 0 0.35rem 3rem;
  margin: 0.55rem 0;
  color: var(--ink-2);
  font-weight: 550;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0.15rem;
  left: 0;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(105deg, var(--purple), var(--purple-2));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 850;
}

.steps b { color: var(--ink); font-weight: 800; }

.path {
  display: inline;
  padding: 0.05rem 0.4rem;
  border-radius: 6px;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.92em;
  font-weight: 700;
  white-space: nowrap;
}

.note {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--purple-wash);
  color: #3c2f86;
  font-size: 0.9rem;
  font-weight: 600;
}

.note.warn {
  margin: 0 0 1rem;
  border: 1px solid #f5c2cc;
  background: var(--danger-wash);
  color: #7d1830;
}

/* Can / can't */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.4rem;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 0.38rem 0 0.38rem 1.85rem;
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ok-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.2l3 3 6-6.4' fill='none' stroke='%230c8a5f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.check-list.no li::before {
  background: var(--danger-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6.5 6.5l7 7M13.5 6.5l-7 7' fill='none' stroke='%23b4233f' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.split h3 { margin-bottom: 0.5rem; }

.examples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}

.examples li {
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 650;
}

/* FAQ */

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--purple);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p { margin: -0.3rem 0 1rem; color: var(--muted); font-weight: 550; }

/* Buttons and forms */

.btn,
button.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.75rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:active:not(:disabled) { transform: translateY(1px); }

.btn:disabled,
button.auth-btn:disabled { opacity: 0.6; cursor: progress; }

.btn-primary {
  background: linear-gradient(105deg, var(--purple), var(--purple-2));
  color: #fff;
  box-shadow: 0 9px 20px rgba(103, 70, 213, 0.24);
}

.btn-primary:hover:not(:disabled) { background: linear-gradient(105deg, #6947db, #9848dc); }

.btn-primary.is-done { background: var(--ink); box-shadow: none; }

.btn-secondary {
  background: #fff;
  border-color: rgba(23, 38, 63, 0.14);
  color: var(--ink);
}

.btn-secondary:hover:not(:disabled) { background: var(--soft); }

.btn-ghost {
  min-height: 40px;
  padding: 0.5rem 0.2rem;
  background: none;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-ghost:hover { color: var(--ink); }

.btn-danger {
  background: var(--danger-wash);
  color: var(--danger);
}

.btn-danger:hover:not(:disabled),
.btn-danger.is-armed { background: var(--danger); color: #fff; }

.btn-small { min-height: 38px; padding: 0.45rem 0.85rem; font-size: 0.86rem; border-radius: 11px; }

.btn-block { width: 100%; }

.stack { display: grid; gap: 0.55rem; }

button.auth-btn {
  position: relative;
  width: 100%;
  min-height: 52px;
  border-color: rgba(23, 38, 63, 0.14);
  background: #fff;
  color: var(--ink);
}

button.auth-btn:hover:not(:disabled) { background: var(--soft); }

button.auth-btn svg {
  position: absolute;
  left: 1rem;
  width: 22px;
  height: 22px;
}

button.auth-apple { background: #111; border-color: #111; color: #fff; }

button.auth-apple:hover:not(:disabled) { background: #000; }

.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.4rem 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

form { display: grid; gap: 0.5rem; margin: 0; }

.field label {
  display: block;
  margin: 0 0 0.35rem;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.95rem;
  border: 1px solid rgba(23, 38, 63, 0.16);
  border-radius: var(--radius);
  background: #fff;
  font-size: 1rem;
}

.field input:focus {
  border-color: var(--purple);
  outline: 3px solid rgba(116, 81, 231, 0.2);
  outline-offset: 0;
}

.hint { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.82rem; font-weight: 550; }

.status {
  min-height: 1.4em;
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.status:empty { display: none; }

.status.is-error { color: var(--danger); }

.status.is-info { color: var(--muted); }

/* Signed-in account */

.who {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: var(--soft);
  font-size: 0.9rem;
}

.who span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }

.who .btn-ghost { flex: 0 0 auto; min-height: 0; padding: 0; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.pill.on { background: var(--ok-wash); color: var(--ok); }

.pill.off { background: var(--soft); color: var(--muted); }

.grants { margin: 1rem 0 0; padding: 0; list-style: none; }

.grant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.grant:last-child { border-bottom: 1px solid var(--line); }

.grant-name { min-width: 0; }

.grant-name strong {
  display: block;
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.grant-name span { display: block; color: var(--muted); font-size: 0.82rem; font-weight: 600; }

.empty {
  margin: 1rem 0 0;
  padding: 1rem;
  border: 1px dashed rgba(23, 38, 63, 0.18);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
}

.block { margin-top: 1.5rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }

.inline-form { display: flex; gap: 0.5rem; align-items: flex-end; }

.inline-form .field { flex: 1; min-width: 0; }

.key-reveal {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #e5dcff;
  border-radius: 14px;
  background: #faf8ff;
}

.key-reveal p { margin: 0 0 0.7rem; color: #3c2f86; font-size: 0.9rem; font-weight: 650; }

.key-reveal pre {
  overflow: auto;
  margin: 0 0 0.6rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  white-space: pre;
}

.key-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.key-actions .btn { flex: 1 1 auto; }

/* Consent page */

.consent {
  position: relative;
  z-index: 2;
  width: min(100%, 560px);
  margin: -4.5rem auto 0;
  display: grid;
  gap: 14px;
}

.hero.hero-solo {
  grid-template-columns: 1fr;
  min-height: 0;
  padding-bottom: 7rem;
  text-align: center;
}

.hero.hero-solo .lede { margin-inline: auto; }

.hero.hero-solo h1 { font-size: clamp(2.4rem, 4.8vw, 4.4rem); }

.hero.hero-solo .app-mark { margin: 1.2rem 0 0; }

.hero.hero-solo.is-error { padding-bottom: clamp(44px, 5vw, 72px); }

.app-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 800;
}

.app-mark code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; margin-top: 1.2rem; }

/* Footer */

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.4rem;
  padding: 1.8rem 0.4rem 0.6rem;
  color: #526078;
  font-size: 0.86rem;
  font-weight: 700;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.footer-brand img { width: 28px; height: 28px; }

footer p { margin: 0; }

footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; }

footer nav a { text-decoration: none; }

footer nav a:hover { color: #554bc8; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; padding: 1rem 0 0; }
  .hero-visual .halo, .coin { display: none; }
  .chat { transform: none; width: min(100%, 460px); }
  .layout { grid-template-columns: 1fr; }
  .account { position: static; }
  .layout .col-account { order: -1; }
}

@media (max-width: 640px) {
  body { padding: 10px; }
  .site-nav { top: 12px; width: calc(100% - 24px); }
  .wordmark, .nav-actions { min-height: 50px; border-radius: 15px; }
  .wordmark { padding: 0 0.75rem; font-size: 0.92rem; }
  .wordmark img { width: 28px; height: 28px; }
  .nav-actions a { min-height: 40px; padding-inline: 0.8rem; }
  .nav-actions .download-link { min-width: 0; }
  .nav-actions a.quiet { display: none; }
  .hero { padding: 96px 20px 28px; }
  .url-row { padding-left: 0.85rem; }
  .url-row input { font-size: 0.86rem; }
  .url-row .btn { min-width: 5.2rem; }
  .split { grid-template-columns: 1fr; }
  .tabs button { padding-inline: 0.6rem; font-size: 0.86rem; }
  .tabs button svg { display: none; }
  .inline-form { flex-direction: column; align-items: stretch; }
  .choices { grid-template-columns: 1fr; }
  .choices .btn-primary { order: -1; }
  .consent { margin-top: -4rem; }
  .hero.hero-solo { padding-bottom: 5.5rem; }
  footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
