/* =========================================================================
   Arrange — landing page styles
   Aesthetic: "liquid data" — deep ink background, warm amber accent,
   cool cyan secondary, refined serif display + grotesque body.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  --ink-900: #07090f;      /* page background */
  --ink-800: #0b0e17;
  --ink-700: #11151f;
  --ink-600: #1a1f2c;
  --ink-500: #262c3b;

  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #eef1f7;
  --muted: #9aa3b6;
  --faint: #626b80;

  --amber: #ffb057;        /* primary accent */
  --amber-deep: #f08a2e;
  --cyan: #6fe3d0;         /* secondary accent */
  --violet: #9a8cff;       /* tertiary, used sparingly */

  --ok: #6fe3a0;
  --err: #ff7a7a;

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle grain + radial glow over the whole page for depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(255, 176, 87, 0.10), transparent 60%),
    radial-gradient(760px 480px at 92% 6%, rgba(111, 227, 208, 0.08), transparent 62%);
}

a { color: inherit; text-decoration: none; }
code { font-family: var(--font-mono); font-size: 0.9em; }
em { font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  --pad: 0.62em 1.15em;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: var(--pad);
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--solid {
  background: linear-gradient(180deg, var(--amber), var(--amber-deep));
  color: #1a1206;
  font-weight: 700;
  box-shadow: 0 10px 30px -12px rgba(255, 176, 87, 0.7);
}
.btn--solid:hover { box-shadow: 0 16px 40px -12px rgba(255, 176, 87, 0.85); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.07); }

.btn--lg { --pad: 0.85em 1.5em; font-size: 1.02rem; }
.btn--sm { --pad: 0.4em 0.8em; font-size: 0.82rem; }
.btn--block { width: 100%; justify-content: center; }

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(7, 9, 15, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 0.6rem; }
.nav__mark { display: block; }
.nav__word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.nav__links { display: flex; gap: 1.6rem; font-size: 0.94rem; color: var(--muted); }
.nav__links a { transition: color 0.2s var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; gap: 0.6rem; }

/* Plugins dropdown */
.nav__drop { position: relative; }
.nav__dropbtn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: inherit;
}
.nav__dropbtn:hover { color: var(--text); }
.nav__caret { font-size: 0.7em; color: var(--faint); }
.nav__menu {
  position: absolute; top: calc(100% + 0.55rem); left: 0;
  min-width: 180px; padding: 0.4rem;
  display: none; flex-direction: column;
  background: var(--ink-700);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}
.nav__drop.is-open .nav__menu { display: flex; }
.nav__menu a {
  padding: 0.45rem 0.6rem; border-radius: 9px; color: var(--muted);
  text-transform: capitalize;
}
.nav__menu a:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }

/* Live status */
.nav__status { display: inline-flex; align-items: center; gap: 0.45rem; }
.nav__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--faint); box-shadow: 0 0 8px var(--faint);
}

@media (max-width: 860px) {
  .nav__links { display: none; }
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 8rem clamp(1rem, 4vw, 2.5rem) 5rem;
  overflow: hidden;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  pointer-events: none; /* let the pointer reach the canvas... */
}
/* ...but keep the buttons and links clickable */
.hero__inner a,
.hero__inner button { pointer-events: auto; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.6rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(111, 227, 208, 0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(111, 227, 208, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(111, 227, 208, 0); }
  100% { box-shadow: 0 0 0 0 rgba(111, 227, 208, 0); }
}

.hero__title {
  margin: 0 0 1.3rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.6rem, 8vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.hero__title em {
  font-weight: 600;
  background: linear-gradient(100deg, var(--amber), var(--cyan) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  max-width: 640px;
  margin: 0 auto 2.2rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.hero__cta { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

.hero__hint {
  margin: 2.4rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  animation: fadeHint 3s ease-in-out infinite;
}
@keyframes fadeHint {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.85; }
}

.hero__scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  z-index: 1;
}
.hero__scroll span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 999px;
  background: var(--amber);
  animation: scrollDot 1.9s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}

/* =========================================================================
   BANDS (content sections)
   ========================================================================= */
.band {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) clamp(1rem, 4vw, 2.5rem);
}
.band__heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 0.8rem;
}
.band__heading em { font-weight: 600; color: var(--amber); }
.band__sub { max-width: 620px; color: var(--muted); margin: 0 0 2.5rem; }
.band__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 1rem; }
.band__title em { font-weight: 600; color: var(--cyan); }
.band__text { color: var(--muted); margin: 0 0 1.4rem; }

/* ---------- Envelope band ---------- */
.band--envelope { max-width: var(--maxw); }
.band__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
@media (max-width: 900px) {
  .band__grid { grid-template-columns: 1fr; }
}

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.ticks li { position: relative; padding-left: 1.7rem; color: var(--muted); }
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(111, 227, 208, 0.7);
}
.ticks--tight { gap: 0.5rem; margin: 1rem 0 1.4rem; font-size: 0.93rem; }

/* ---------- Code cards ---------- */
.code-card {
  margin: 0;
  background: linear-gradient(180deg, var(--ink-700), var(--ink-800));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.code-card__bar {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.code-card__name {
  margin-left: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--faint);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--r { background: #ff5f57; } .dot--y { background: #febc2e; } .dot--g { background: #28c840; }

.code-card__body {
  margin: 0;
  padding: 1.2rem 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.75;
  color: #c8cfdd;
  overflow-x: auto;
}
.code-card__body .k { color: var(--cyan); }
.code-card__body .s { color: var(--amber); }
.code-card__body .n { color: var(--violet); }
.code-card__body .b { color: #ff9d6b; font-weight: 500; }
.code-card__body .c { color: var(--faint); font-style: italic; }

/* =========================================================================
   STAGES
   ========================================================================= */
.stages {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
@media (max-width: 820px) { .stages { grid-template-columns: 1fr; } }

.stage {
  position: relative;
  padding: 1.8rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.stage:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.stage::after {
  content: "";
  position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--amber), var(--cyan));
  transition: width 0.5s var(--ease);
}
.stage:hover::after { width: 100%; }
.stage__num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amber);
  letter-spacing: 0.1em;
}
.stage h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  margin: 0.5rem 0 0.5rem;
}
.stage p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* =========================================================================
   AGENTS
   ========================================================================= */
.agents__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
@media (max-width: 900px) { .agents__grid { grid-template-columns: 1fr; } }

.agent-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin: 0.5rem 0 1rem; }
.agents__note { color: var(--faint); font-size: 0.88rem; max-width: 380px; }

/* =========================================================================
   PRICING
   ========================================================================= */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* Small "Accepts USDC ... via x402" badge under the plans. */
.pay-badge {
  display: inline-flex; align-items: center;
  margin: 1.6rem 0 0;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}
.pay-badge::before {
  content: ""; width: 7px; height: 7px; margin-right: 0.5rem;
  border-radius: 50%; background: var(--cyan);
}

.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: 1.8rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
}
.plan h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin: 0 0 0.3rem; }
.plan__price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 300;
  margin: 0.2rem 0 0.6rem;
  letter-spacing: -0.02em;
}
.plan__price span { font-size: 2.4rem; }
.plan--feature {
  border-color: rgba(255, 176, 87, 0.4);
  background: linear-gradient(180deg, rgba(255, 176, 87, 0.09), rgba(255, 176, 87, 0.02));
  box-shadow: 0 40px 90px -50px rgba(255, 176, 87, 0.6);
}
.plan__tag {
  position: absolute; top: -0.75rem; left: 1.6rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--amber);
  color: #1a1206;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plan .btn { margin-top: auto; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.foot {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding: 3rem clamp(1rem, 4vw, 2.5rem) 2rem;
  max-width: var(--maxw);
  margin-inline: auto;
}
.foot__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.foot__brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.foot__tag { color: var(--faint); margin: 0; font-size: 0.9rem; }
.foot__links { display: flex; gap: 1.4rem; color: var(--muted); font-size: 0.92rem; }
.foot__links a:hover { color: var(--text); }
.foot__fine { color: var(--faint); font-size: 0.8rem; margin: 2rem 0 0; }

/* =========================================================================
   MODAL (auth)
   ========================================================================= */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal__scrim {
  position: absolute; inset: 0;
  background: rgba(4, 6, 11, 0.72);
  backdrop-filter: blur(6px);
  animation: fade 0.3s var(--ease);
}
.modal__panel {
  position: relative;
  width: min(440px, 100%);
  padding: 1.8rem 1.7rem 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--ink-700), var(--ink-800));
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.95);
  animation: rise 0.4s var(--ease);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }

.modal__x {
  position: absolute; top: 0.8rem; right: 0.9rem;
  background: none; border: none; color: var(--muted);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.modal__x:hover { color: var(--text); }

.tabs { display: flex; gap: 0.4rem; margin-bottom: 1.4rem; }
.tab {
  flex: 1;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit; font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.tab.is-active { background: rgba(255, 255, 255, 0.08); color: var(--text); border-color: var(--line-strong); }

.modal__title { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; margin: 0 0 0.2rem; }
.modal__sub { color: var(--muted); font-size: 0.92rem; margin: 0 0 1.4rem; }

.form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.4rem; }
.field span { font-size: 0.85rem; color: var(--muted); }
.field input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 176, 87, 0.15);
}
.form__error {
  margin: 0;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  background: rgba(255, 122, 122, 0.12);
  border: 1px solid rgba(255, 122, 122, 0.35);
  color: var(--err);
  font-size: 0.88rem;
}

.keybox {
  margin-top: 1.2rem;
  padding: 1rem;
  border: 1px solid rgba(111, 227, 208, 0.35);
  border-radius: var(--radius);
  background: rgba(111, 227, 208, 0.07);
}
.keybox__title { margin: 0 0 0.3rem; font-weight: 600; }
.keybox__warn { margin: 0 0 0.8rem; font-size: 0.83rem; color: var(--muted); }
.keybox__row { display: flex; gap: 0.5rem; align-items: center; }
.keybox__row code {
  flex: 1;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  font-size: 0.78rem;
  word-break: break-all;
  color: var(--cyan);
}
.keybox__meta { margin: 0.7rem 0 0; font-size: 0.82rem; color: var(--muted); }

.modal__foot { margin: 1.2rem 0 0; font-size: 0.9rem; color: var(--muted); text-align: center; }
.linkbtn { background: none; border: none; color: var(--amber); font: inherit; cursor: pointer; padding: 0; }
.linkbtn:hover { text-decoration: underline; }

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================================
   FOCUS — visible, consistent keyboard focus everywhere
   ========================================================================= */
:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 8px;
}

/* =========================================================================
   QUALITY BADGES — the trust verdict, made visible
   ========================================================================= */
/* These mirror the envelope's "data_quality" field: live, cached or sample.
   Showing the same word the JSON uses keeps the UI and the API in agreement. */
.quality-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.25em 0.65em;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  white-space: nowrap;
}
.quality-badge::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.quality-badge--live { color: var(--cyan); border-color: rgba(111, 227, 208, 0.4); background: rgba(111, 227, 208, 0.08); }
.quality-badge--cached { color: #febc2e; border-color: rgba(254, 188, 46, 0.4); background: rgba(254, 188, 46, 0.08); }
.quality-badge--sample { color: var(--err); border-color: rgba(255, 122, 122, 0.45); background: rgba(255, 122, 122, 0.1); }

/* =========================================================================
   LIVE DEMO — the interactive sample on the landing page
   ========================================================================= */
.code-card--live { display: flex; flex-direction: column; }

.demo-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  flex-wrap: wrap;
}

/* A small segmented control for choosing the plugin. */
.segmented { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 999px; background: rgba(0,0,0,0.25); }
.seg {
  border: none; background: transparent; color: var(--muted);
  font: inherit; font-size: 0.82rem; padding: 0.32em 0.8em;
  border-radius: 999px; cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.seg:hover { color: var(--text); }
.seg.is-active { background: rgba(255, 255, 255, 0.1); color: var(--text); }

.demo-input {
  flex: 1 1 8rem;
  min-width: 6rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
}
.demo-input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255, 176, 87, 0.15); }

.code-card__body--live {
  min-height: 16rem;
  max-height: 22rem;
  transition: opacity 0.25s var(--ease);
}
.code-card__body--live.is-loading { opacity: 0.45; }

.demo-meta {
  margin: 0;
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--faint);
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.demo-meta b { color: var(--muted); font-weight: 500; }

/* =========================================================================
   SKELETONS — gentle loading placeholders
   ========================================================================= */
.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: transparent !important;
}
.skeleton::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* =========================================================================
   PASSWORD FIELD — show/hide toggle + strength meter
   ========================================================================= */
.field--pw { position: relative; }
.field--pw input { padding-right: 3.4rem; }
.pw-toggle {
  position: absolute; right: 0.55rem; bottom: 0.5rem;
  background: none; border: none; cursor: pointer;
  color: var(--muted); font: inherit; font-size: 0.78rem;
  padding: 0.2em 0.4em;
}
.pw-toggle:hover { color: var(--text); }

.meter { height: 4px; border-radius: 999px; background: rgba(255,255,255,0.09); overflow: hidden; margin-top: 0.1rem; }
.meter__fill { height: 100%; width: 0; border-radius: 999px; transition: width 0.3s var(--ease), background 0.3s var(--ease); }
.meter__fill[data-level="0"] { width: 0; }
.meter__fill[data-level="1"] { width: 33%; background: var(--err); }
.meter__fill[data-level="2"] { width: 66%; background: #febc2e; }
.meter__fill[data-level="3"] { width: 100%; background: var(--cyan); }
.meter__label { font-size: 0.75rem; color: var(--faint); }
