/* ===== Vane design system — light theme (matches live reference) ===== */
@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito-Light.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito-Black.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}

:root {
  --bg: #ece3d9;
  --card: #e2d8cb;
  --card-2: #e6ddd1;
  --text: #29241f;
  --text-muted: #8a8177;
  --border: #48454133;
  --border-soft: #4845411f;
  --dark: #2a2521;
  --dark-2: #35302a;
  --on-dark: #f3ece2;
  --green: #6e8f6a;
  --red: #b3695a;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 28px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;

  --max-width: 1320px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.15s;
  --t-med: 0.22s;
  --t-slow: 0.32s;

  /* motion tokens from the transitions.dev skill — only the per-component
     variables actually used below (not the full universal scale, since its
     generic --ease-out collides in name — not value — with the one above) */
  --text-swap-dur: 150ms;
  --text-swap-translate-y: 4px;
  --text-swap-blur: 2px;
  --text-swap-ease: ease-in-out;
  --learn-shift: 2px;
  --learn-in: 200ms;
  --learn-out: 350ms;
  --learn-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.12; margin: 0; letter-spacing: -0.015em; color: var(--text); }
p { margin: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-8);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== top bar (utility row: CA + connect wallet) ===== */
.topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-8) 0;
}
.ca-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 13px;
  color: var(--text-muted);
}
.ca-pill b { color: var(--text); font-weight: 700; }
.ca-pill button { display: flex; color: var(--text-muted); }

/* ===== header (hooks / create / launches pages) ===== */
.site-header {
  padding: var(--sp-6) var(--sp-8) 0;
}
.site-header .header-row {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
}
.brand-mark {
  width: 22px; height: 22px;
  padding: 4px;
  border-radius: 7px;
  background: linear-gradient(135deg, #b9cbea, #f6e7b9, #f2c9d8);
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--t-med);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: var(--sp-3); }
.icon-btn {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  transition: border-color var(--t-med), background-color var(--t-med);
}
.icon-btn:hover { background: var(--border-soft); }
.icon-btn svg { width: 15px; height: 15px; }

.nav-toggle {
  display: none;
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 14px; height: 2px;
  background: var(--text);
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -5px; }
.nav-toggle span::after { position: absolute; top: 5px; }

/* ===== rail (homepage-only icon dock) ===== */
.rail {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--sp-5) 0;
  gap: var(--sp-3);
  z-index: 50;
}
.rail-toggle {
  width: 34px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
  transition: color var(--t-med), background-color var(--t-med);
}
.rail-toggle:hover { color: var(--text); background: var(--border-soft); }
.rail-toggle svg { transition: transform var(--t-slow) var(--ease-out); }
body.rail-collapsed .rail-toggle svg { transform: rotate(180deg); }

.rail a, .rail button.rail-item {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  transition: color var(--t-med), background-color var(--t-med), border-color var(--t-med),
    opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
  border: 1px solid transparent;
}
.rail a:hover, .rail button.rail-item:hover { color: var(--text); background: var(--border-soft); transform: translateX(2px); }
.rail a.active { color: var(--text); background: var(--card); border-color: var(--border); }
.rail .rail-spacer { flex: 1; }
.rail svg { width: 16px; height: 16px; }
.rail .rail-social { margin-top: var(--sp-2); transition: color var(--t-med), opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); }

/* Collapsed: icons fade + tuck away, toggle chevron flips, rail narrows to a thin edge tab. */
body.rail-collapsed .rail a,
body.rail-collapsed .rail button.rail-item,
body.rail-collapsed .rail .rail-social {
  opacity: 0;
  transform: translateX(-10px);
  pointer-events: none;
}
body.rail-collapsed .rail { width: 34px; transition: width var(--t-slow) var(--ease-out); }
.rail { transition: width var(--t-slow) var(--ease-out); }
body.rail-collapsed.has-rail { padding-left: 34px; transition: padding-left var(--t-slow) var(--ease-out); }
body.has-rail { transition: padding-left var(--t-slow) var(--ease-out); }

.rail-fab {
  position: fixed;
  right: var(--sp-6);
  bottom: var(--sp-6);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px -8px #29241f33;
  color: var(--text-muted);
  z-index: 50;
  transition: transform var(--t-med), color var(--t-med);
}
.rail-fab:hover { color: var(--text); transform: translateY(-2px); }
.rail-fab svg { width: 18px; height: 18px; }
.rail-fab img { width: 20px; height: 20px; object-fit: contain; filter: brightness(0); }

body.has-rail { padding-left: 60px; }
@media (max-width: 900px) {
  .rail { display: none; }
  body.has-rail { padding-left: 0; }
}

/* ===== buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  transition: border-color var(--t-med), box-shadow var(--t-slow), transform var(--t-fast), background-color var(--t-med);
}
.btn:hover { background: var(--card-2); border-color: #48454155; transform: translateY(-1px); box-shadow: 0 6px 16px -10px #29241f4d; }
.btn:active { transform: scale(0.98) translateY(0); box-shadow: none; }

.btn-dark {
  background: var(--dark);
  color: var(--on-dark);
  border-color: var(--dark);
}
.btn-dark:hover { background: var(--dark-2); box-shadow: 0 8px 20px -8px #29241f66; }

.btn-connect {
  position: relative;
  overflow: hidden;
}
.btn-connect .conn-dot {
  width: 6px; height: 6px;
  border-radius: var(--r-pill);
  background: var(--green);
}
.btn-connect.is-connected { background: var(--dark); color: var(--on-dark); border-color: var(--dark); }

.spinner {
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 2px solid #ffffff44;
  border-top-color: currentColor;
  animation: spinner 0.7s linear infinite;
  display: none;
}
.is-loading .spinner { display: inline-block; }
.is-loading .btn-label { opacity: 0.6; }
@keyframes spinner { 100% { transform: rotate(360deg); } }

/* ===== hero ===== */
.hero {
  padding: var(--sp-16) 0 var(--sp-12);
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-grid > div:first-child { animation: hero-in 0.6s var(--ease-out) both; }
.hero-grid > .promo-card { animation: hero-in 0.6s var(--ease-out) 0.12s both; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--sp-8);
  align-items: start;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
  cursor: pointer;
}
.hero-badge:hover .hero-badge-label { border-color: var(--text); background: var(--card); }
.hero-badge-label { transition: border-color var(--t-med), background-color var(--t-med), transform var(--t-fast); }
.hero-badge:active .hero-badge-label { transform: scale(0.98); }
.chevrons { display: flex; gap: 2px; }
.chevrons svg { width: 12px; height: 20px; color: var(--text-muted); }
.chevrons svg:last-child { color: var(--text); }

@keyframes chevron-point-right {
  0%, 100% { transform: translateX(0); opacity: 0.55; }
  50% { transform: translateX(3px); opacity: 1; }
}
@keyframes chevron-point-left {
  0%, 100% { transform: translateX(0); opacity: 0.55; }
  50% { transform: translateX(-3px); opacity: 1; }
}
.hero-badge .chevrons:first-of-type svg { animation: chevron-point-right 1.8s ease-in-out infinite; }
.hero-badge .chevrons:last-of-type svg { animation: chevron-point-left 1.8s ease-in-out infinite; }
.hero-badge .chevrons svg:nth-child(1) { animation-delay: 0s; }
.hero-badge .chevrons svg:nth-child(2) { animation-delay: 0.15s; }
.hero-badge-label {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--sp-2) var(--sp-5);
  font-size: 26px;
  font-weight: 800;
}
.hero h1 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: var(--sp-4); }
.hero .lead {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 480px;
  margin-bottom: var(--sp-3);
}
.hero .hero-link {
  font-weight: 700;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== docs page ===== */
.docs-body { max-width: 760px; padding-bottom: var(--sp-10); }
.docs-body section { padding: var(--sp-8) 0; }
.docs-body section:first-child { padding-top: 0; }
.docs-body h2 { font-size: 22px; margin-bottom: var(--sp-4); }
.docs-body > .lead { color: var(--text-muted); font-size: 16px; margin-bottom: var(--sp-2); }
.docs-body p { color: var(--text-muted); font-size: 15px; margin-bottom: var(--sp-3); }
.docs-body p:last-child { margin-bottom: 0; }
.docs-body p b { color: var(--text); }
.docs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.docs-list li {
  position: relative;
  padding-left: var(--sp-5);
  color: var(--text-muted);
  font-size: 15px;
}
.docs-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 8px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
}
.docs-list li b { color: var(--text); }
code, .code-chip {
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 12.5px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--text);
}
.callout {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  margin-bottom: var(--sp-4);
}
.callout p { color: var(--text-muted); font-size: 14.5px; margin: 0; }

.promo-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  min-height: 260px;
  overflow: hidden;
}
.promo-slide { position: relative; z-index: 1; }
/* t-promo-swap — adapted from the transitions.dev "text states swap" pattern
   to a whole content block instead of a single text node. */
.t-promo-swap {
  display: block;
  transform: translateY(0);
  filter: blur(0);
  opacity: 1;
  transition:
    transform var(--text-swap-dur) var(--text-swap-ease),
    filter var(--text-swap-dur) var(--text-swap-ease),
    opacity var(--text-swap-dur) var(--text-swap-ease);
  will-change: transform, filter, opacity;
}
.t-promo-swap.is-exit {
  transform: translateY(calc(var(--text-swap-translate-y) * -1));
  filter: blur(var(--text-swap-blur));
  opacity: 0;
}
.t-promo-swap.is-enter-start {
  transform: translateY(var(--text-swap-translate-y));
  filter: blur(var(--text-swap-blur));
  opacity: 0;
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .t-promo-swap { transition: none !important; }
}
.promo-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}
.promo-card h3 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: var(--sp-3); }
.promo-card p { color: var(--text-muted); font-size: 15px; margin-bottom: var(--sp-5); max-width: 320px; }
.promo-deco {
  position: absolute;
  top: var(--sp-6); right: var(--sp-8);
  width: 160px; height: 160px;
  color: var(--text-muted);
  opacity: 0.55;
}
.promo-dots {
  display: flex; gap: var(--sp-1);
  margin-top: var(--sp-5);
}
.promo-dots button {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--border);
  padding: 0;
  cursor: pointer;
  transition: background-color var(--t-med), width var(--t-med) var(--ease-out), transform var(--t-fast);
}
.promo-dots button:hover { transform: scale(1.3); }
.promo-dots button.active { background: var(--text); width: 16px; border-radius: var(--r-pill); }
@media (prefers-reduced-motion: reduce) {
  .promo-dots button { transition: none !important; }
}

/* t-arrow — adapted from the transitions.dev "learn more hover" pattern for
   plain-text trailing arrows (→) instead of a two-armed SVG chevron. */
.t-arrow {
  display: inline-block;
  transform: translateX(0);
  transition: transform var(--learn-out) var(--learn-ease);
}
a:hover .t-arrow, button:hover .t-arrow { transform: translateX(var(--learn-shift)); transition-duration: var(--learn-in); }
@media (prefers-reduced-motion: reduce) {
  .t-arrow { transition: none !important; }
}

/* ===== compare cards ===== */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}
.compare-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}
.compare-card h3 { font-size: 22px; margin-bottom: var(--sp-3); }
.compare-card p { color: var(--text-muted); font-size: 14.5px; }

/* ===== steps ===== */
.steps-head { margin: var(--sp-12) 0 var(--sp-5); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
}
.step-n {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--on-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 12px;
  margin-bottom: var(--sp-4);
}
.step-card h3 { font-size: 16px; margin-bottom: var(--sp-2); }
.step-card p { color: var(--text-muted); font-size: 14px; }

/* ===== sections ===== */
section { padding: var(--sp-12) 0; }
.section-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}
.section-top .eyebrow { margin-bottom: 0; }
.link-arrow { font-size: 13px; font-weight: 700; white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; }

.page-head { padding: var(--sp-10) 0 var(--sp-8); }
.page-head .eyebrow { margin-bottom: var(--sp-4); }
.page-head h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: var(--sp-5); max-width: 720px; }
.page-head .lead { color: var(--text-muted); font-size: 16px; max-width: 640px; }

/* compact hook nav grid */
.hook-nav-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-3);
}
.hook-nav-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  transition: border-color var(--t-med), transform var(--t-fast);
}
.hook-nav-card:hover { border-color: #48454155; transform: translateY(-2px); }
.hook-nav-card .icon-wrap { height: 90px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); margin-bottom: var(--sp-3); }
.hook-nav-card .icon-wrap svg { width: 100%; height: 100%; }
.hook-nav-card .hn-name { font-weight: 700; font-size: 14px; margin-bottom: var(--sp-1); }
.hook-nav-card .hn-cat { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; color: var(--text-muted); }

/* full hook cards */
.hooks-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.hook-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  transition: border-color var(--t-med), box-shadow var(--t-slow), transform var(--t-fast);
}
.hook-card:hover { border-color: #48454155; box-shadow: 0 12px 30px -18px #29241f4d; transform: translateY(-2px); }
.hook-card .icon-wrap { height: 130px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); margin-bottom: var(--sp-4); }
.hook-card .icon-wrap svg { width: 78%; height: 78%; }
.hc-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.hc-title-row h4 { font-size: 16px; font-weight: 700; }
.hc-cat { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; color: var(--text-muted); white-space: nowrap; }
.hc-oneliner { font-weight: 700; font-size: 14px; margin-bottom: var(--sp-2); }
.hc-desc { color: var(--text-muted); font-size: 13.5px; margin-bottom: var(--sp-4); flex: 1; }
.hc-splits { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.hc-split-row { display: flex; align-items: center; gap: var(--sp-3); font-size: 12px; }
.hc-split-label { width: 84px; flex: none; color: var(--text-muted); }
.hc-split-bar { flex: 1; height: 4px; border-radius: var(--r-pill); background: var(--border-soft); overflow: hidden; }
.hc-split-bar > span { display: block; height: 100%; background: var(--dark); border-radius: var(--r-pill); }
.hc-split-pct { width: 34px; flex: none; text-align: right; font-weight: 700; }
.hc-cta {
  font-size: 13px;
  font-weight: 700;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
}
.hc-cta:hover { text-decoration: underline; }
.hook-card.selectable { cursor: pointer; }
.hook-card.selectable.selected { border-color: var(--text); box-shadow: 0 0 0 2px var(--text) inset; }

.cta-banner {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  flex-wrap: wrap;
}
.cta-banner h3 { font-size: 24px; margin-bottom: var(--sp-2); }
.cta-banner p { color: var(--text-muted); font-size: 14px; }

/* ===== form (create page) ===== */
.form-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  margin-bottom: var(--sp-5);
}
.form-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--sp-6);
}
.form-section-title { display: flex; align-items: center; gap: var(--sp-3); font-size: 18px; font-weight: 800; }
.form-section-note { font-size: 12px; color: var(--text-muted); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: var(--sp-5); }
.field { margin-bottom: var(--sp-5); }
.field:last-child { margin-bottom: 0; }
.field-grid .field { margin-bottom: 0; }
.field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-2);
}
.field input, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color var(--t-med), box-shadow var(--t-slow);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px #4845411f;
}
.field input::placeholder, .field textarea::placeholder { color: #a49b8f; }
.field-hint { font-size: 12px; color: var(--text-muted); margin-top: var(--sp-2); }
label.image-drop {
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
  min-height: 90px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
}

.compiled-routing {
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  text-align: left;
}
.compiled-routing .eyebrow { margin-bottom: var(--sp-2); }
.compiled-routing p { color: var(--text-muted); font-size: 14px; }
.compiled-routing.has-selection p { color: var(--text); }

.deploy-actions { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-5); }
.step-chips { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-5); }
.step-chip {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 4px var(--sp-3);
}
.disclosure {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  font-size: 13px;
  color: var(--text-muted);
}
.disclosure b { color: var(--text); }

/* ===== launches page ===== */
.launch-empty {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-16) var(--sp-6);
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}
.launch-empty a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--card);
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: var(--sp-3) var(--sp-5); text-align: left; font-size: 13.5px; }
thead th {
  color: var(--text-muted);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
tbody tr:not(:last-child) { border-bottom: 1px solid var(--border); }
.pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--r-pill);
  font-size: 10.5px;
  font-weight: 700;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.pill.live { color: var(--green); border-color: #6e8f6a55; }

.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  flex-wrap: wrap;
  margin-top: var(--sp-5);
}
.info-card h3 { font-size: 20px; margin-bottom: var(--sp-2); }
.info-card p { color: var(--text-muted); font-size: 14px; max-width: 520px; }

/* ===== footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--sp-8) 0 var(--sp-10);
  color: var(--text-muted);
  font-size: 13px;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.footer-links { display: flex; gap: var(--sp-5); list-style: none; margin: 0; padding: 0; }
.footer-links a:hover { color: var(--text); }

/* ===== success panel (create flow result) ===== */
.success-panel {
  border: 1px solid #6e8f6a55;
  background: #eef2ec;
  border-radius: var(--r-md);
  padding: var(--sp-5);
  text-align: left;
}
.success-panel p {
  color: var(--text);
  font-size: 13.5px;
  margin: 0 0 var(--sp-2);
}
.success-panel p:last-child { margin-bottom: 0; }
.success-title { font-weight: 800; font-size: 15px; margin-bottom: var(--sp-3) !important; }
.success-panel a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.success-hook {
  padding-top: var(--sp-3);
  margin-top: var(--sp-2) !important;
  border-top: 1px solid #6e8f6a33;
  color: var(--text-muted) !important;
}

/* ===== wallet picker modal ===== */
.wallet-picker-overlay {
  position: fixed;
  inset: 0;
  background: #1a1712b3;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: var(--sp-6);
  opacity: 0;
  transition: opacity 250ms var(--ease-out);
}
.wallet-picker-overlay.is-open { opacity: 1; }
.wallet-picker {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  width: 100%;
  max-width: 320px;
  box-shadow: 0 20px 60px -20px #1a1712a6;
  transform: scale(0.96);
  transition: transform 250ms var(--ease-out);
}
.wallet-picker-overlay.is-open .wallet-picker { transform: scale(1); }
.wallet-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}
.wallet-picker-head h4 { font-size: 16px; font-weight: 800; }
.wallet-picker-close {
  width: 28px; height: 28px;
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  transition: background-color var(--t-med), color var(--t-med);
}
.wallet-picker-close:hover { background: var(--border-soft); color: var(--text); }
.wallet-picker-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.wallet-picker-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--card);
  font-weight: 700;
  font-size: 14px;
  text-align: left;
  transition: border-color var(--t-med), background-color var(--t-med), transform var(--t-fast);
}
.wallet-picker-item:hover { border-color: var(--text); background: var(--card-2); transform: translateY(-1px); }
.wallet-picker-item:active { transform: scale(0.98); }
.wallet-picker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
@media (prefers-reduced-motion: reduce) {
  .wallet-picker-overlay, .wallet-picker, .wallet-picker-item, .wallet-picker-close { transition: none !important; }
}

/* ===== vane-modal (confirm/prompt) form fields, layered on the wallet-picker base ===== */
.vane-modal-body { color: var(--text-muted); font-size: 14px; margin-bottom: var(--sp-4); }
.vane-modal-fields .field:last-of-type { margin-bottom: var(--sp-5); }
.vane-modal-actions { display: flex; justify-content: flex-end; gap: var(--sp-2); }
.vane-modal-actions .btn { padding: var(--sp-2) var(--sp-5); font-size: 13px; }
.btn-danger { background: var(--red); color: var(--on-dark); border-color: var(--red); }
.btn-danger:hover { background: #9c5648; }

/* ===== toast notifications (replaces window.alert) ===== */
.toast-stack {
  position: fixed;
  right: var(--sp-6);
  bottom: var(--sp-6);
  z-index: 300;
  display: flex;
  flex-direction: column-reverse;
  gap: var(--sp-2);
  max-width: 360px;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--text-muted);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  box-shadow: 0 12px 32px -12px #1a1712a6;
  font-size: 13.5px;
  color: var(--text);
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.toast.is-open { opacity: 1; transform: translateX(0); }
.toast-success { border-left-color: var(--green); }
.toast-error { border-left-color: var(--red); }
.toast-message { flex: 1; line-height: 1.5; }
.toast-close {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
  flex: none;
  transition: color var(--t-med);
}
.toast-close:hover { color: var(--text); }
@media (prefers-reduced-motion: reduce) {
  .toast { transition: none !important; }
}

/* ===== mainnet warning banner ===== */
.mainnet-banner {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: #f2e6d8;
  border: 1px solid #c9a86a55;
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-5);
  font-size: 13px;
  color: #6b5628;
  margin: var(--sp-6) 0;
}
.mainnet-banner b { color: #4a3a15; }
.mainnet-banner svg { width: 16px; height: 16px; flex: none; }

/* ===== responsive ===== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .hooks-full-grid { grid-template-columns: repeat(2, 1fr); }
  .hook-nav-grid { grid-template-columns: repeat(3, 1fr); }
  .field-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .hooks-full-grid { grid-template-columns: 1fr; }
  .hook-nav-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: var(--sp-3) var(--sp-6);
    gap: var(--sp-1);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-med), transform var(--t-med);
    z-index: 90;
  }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a { padding: var(--sp-3) 0; }
}
