/* ============================================================
   LendVault site styles
   Tokens come from tokens/*.css (verbatim from the design system).
   Everything below is site-specific.

   The token files are deliberately not pulled in as CSS import rules here.
   Those are invisible to the browser's preload scanner, so they would force
   a serialized fetch (this file, then each token file, then paint) before
   any of the tokens that define every colour and font are even discovered.
   Instead, base.njk emits six parallel <link rel="stylesheet"> tags in the
   head — the five token files first, in this same order, then this file
   last so its rules still win where they should.
   ============================================================ */

/* --- Reset / globals ---------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--lv-black);
  font-family: var(--font-body);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

/* Site-level additions to the design-system tokens. The vendored token files
   are copied verbatim and must not be edited, so anything the design uses
   repeatedly but never tokenised is declared here instead. */
:root {
  /* The design's link-hover teal — used 8 times across the four pages with
     no corresponding design-system token. */
  --lv-teal-hover: #7FD6D7;

  /* The design's dim mono/legal-text color — used repeatedly (labels,
     legal copy, placeholder captions) with no corresponding design-system
     token. */
  --lv-text-faint: #55566B;

  /* One step dimmer still — the phone mockup's inactive carousel dots and
     its "SAMPLE DATA" caption. No corresponding design-system token. */
  --lv-text-dim: #44454F;

  /* The phone shell's near-black bezel — the gradient's dark stop and the
     notch pill's flat fill. No corresponding design-system token. */
  --lv-phone-bezel: #0B0B12;

  /* The de-emphasised step numeral on the accent ("03") how-it-works card —
     a muted orange-brown used only for that numeral. No corresponding
     design-system token. */
  --lv-orange-dim: #6E4227;
}

a { color: var(--lv-teal); text-decoration: none; }
a:hover { color: var(--lv-teal-hover); }

::selection { background: rgba(35,170,171,.35); }

/* Keyboard focus. Most interactive elements on the site style no :focus
   state of their own (mouse users should not see focus rings), so they
   rely on this global ring. The one exception is .waitlist__input, which
   sets its own :focus border-color/box-shadow (teal border + glow) further
   down this file — that rule has equal specificity to this one and wins
   for the email input, but the input is never left without a visible
   focus treatment. */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

input::placeholder { color: var(--lv-ink-300); }

/* --- Layout helpers ------------------------------------------------ */

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

.container--narrow { max-width: 980px; }

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

.lv-icon {
  display: inline-block;
  flex: none;
  vertical-align: middle;
}

/* --- Background canvas --------------------------------------------- */

.lv-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.lv-bg__base { background: var(--lv-glow-canvas); }

.lv-bg__teal {
  top: -18vh; right: -12vw; left: auto; bottom: auto;
  width: 70vw; height: 70vw;
  background: radial-gradient(circle, rgba(35,170,171,.13), transparent 62%);
  filter: blur(20px);
  animation: lvDrift 26s var(--ease-in-out) infinite;
}

.lv-bg__orange {
  bottom: -25vh; left: -15vw; top: auto; right: auto;
  width: 65vw; height: 65vw;
  background: radial-gradient(circle, rgba(249,124,52,.10), transparent 60%);
  filter: blur(20px);
  animation: lvDrift 34s var(--ease-in-out) infinite reverse;
}

.lv-page { position: relative; z-index: 1; }

/* --- Keyframes ------------------------------------------------------ */

@keyframes lvDrift {
  0%, 100% { transform: translate3d(0,0,0); }
  50%      { transform: translate3d(-40px,30px,0); }
}

@keyframes lvRise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

@keyframes lvBlink {
  0%, 100% { opacity: .35; }
  50%      { opacity: 1; }
}

@keyframes lvPulse {
  0%, 100% { opacity: .5; transform: scale(1); }
  50%      { opacity: .9; transform: scale(1.06); }
}

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

/* --- Buttons -------------------------------------------------------- */
/* Mirrors the design system's Button component (primary / accent, md / lg). */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  letter-spacing: -0.005em;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}

.btn--lg { padding: 15px 26px; font-size: 16px; gap: 9px; }

.btn--primary { background: var(--action-primary); color: var(--lv-white); }
.btn--primary:hover { background: var(--action-primary-hover); color: var(--lv-white); }

.btn--accent { background: var(--action-accent); color: var(--lv-white); }
.btn--accent:hover { background: var(--action-accent-hover); color: var(--lv-white); }

.btn--outline {
  background: transparent;
  color: var(--lv-ink-100);
  border-color: rgba(255,255,255,.14);
}
.btn--outline:hover { border-color: rgba(35,170,171,.5); color: var(--lv-white); }

.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* --- Header --------------------------------------------------------- */

.lv-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  backdrop-filter: blur(14px);
  background: rgba(6,6,10,.72);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.lv-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 14px;
}

.lv-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.02em;
  color: var(--lv-white);
}

.lv-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
}

.lv-header__nav a { color: var(--text-muted); }
.lv-header__nav a:hover { color: var(--lv-ink-100); }

.lv-header__cta { flex: none; padding: 11px 18px; font-size: 14px; }
.lv-header__cta:hover { transform: translateY(-1px); }

.lv-header__back {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}
.lv-header__back:hover { color: var(--lv-ink-100); }

/* Header height spacer — pages start below the fixed bar. */
.lv-header-spacer { height: 63px; }

@media (max-width: 720px) {
  .lv-header__nav { display: none; }
}

/* --- Footer --------------------------------------------------------- */

.lv-footer {
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(6,6,10,.7);
}

.lv-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  padding-block: 44px 36px;
}

.lv-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.02em;
  color: var(--lv-white);
}

.lv-footer__domain {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--text-muted);
}

.lv-footer__social {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.lv-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-default);
  background: rgba(255,255,255,.025);
  color: var(--text-muted);
  transition: all var(--dur-fast) var(--ease-out);
}

.lv-footer__social a:hover {
  color: var(--lv-teal);
  border-color: rgba(35,170,171,.5);
  transform: translateY(-2px);
}

.lv-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  padding-bottom: 40px;
  font-size: 13px;
  color: var(--lv-text-faint);
}

.lv-footer__legal span { max-width: 60em; text-wrap: pretty; }

.lv-footer__legal--slim { padding-block: 34px; gap: 20px; }

/* --- Waitlist form --------------------------------------------------- */

.waitlist { max-width: 520px; }
.waitlist--cta { max-width: 500px; margin-inline: auto; }

.waitlist__form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* An author `display` declaration beats the UA's [hidden] { display: none },
   so every element forms.js toggles with `hidden` needs its own override.
   Without this the form stays visible next to the success message. */
.waitlist__form[hidden] { display: none; }

.waitlist--cta .waitlist__form { justify-content: center; }

.waitlist__input {
  flex: 1 1 240px;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(35,170,171,.28);
  background: rgba(255,255,255,.04);
  color: var(--lv-ink-100);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}

.waitlist__input:focus {
  border-color: var(--lv-teal);
  box-shadow: 0 0 0 3px rgba(35,170,171,.16);
}

.waitlist--cta .waitlist__input {
  flex-basis: 220px;
  border-color: rgba(255,255,255,.14);
  background: rgba(6,6,10,.5);
}

.waitlist--cta .waitlist__input:focus {
  border-color: var(--lv-orange);
  box-shadow: 0 0 0 3px rgba(249,124,52,.16);
}

.waitlist__submit { height: 52px; }

.waitlist__field-error {
  flex: 1 1 100%;
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--lv-danger);
  min-height: 18px;
}

.waitlist__note {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.waitlist--cta .waitlist__note { text-align: center; }

/* No-JS fallback: the form posts nowhere without JS (see forms.js), so this
   offers a working alternative rather than a dead submit button. */
.waitlist__noscript {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.waitlist--cta .waitlist__noscript { text-align: center; }

.waitlist__success {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(63,214,139,.35);
  background: rgba(63,214,139,.08);
  animation: lvRise .5s var(--ease-out) both;
}

.waitlist__success[hidden] { display: none; }

.waitlist__success-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--lv-white);
}

.waitlist__success-body {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text-body);
}

.waitlist__error {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--lv-danger);
}

.waitlist__error[hidden] { display: none; }

/* When the form is submitted the note is no longer relevant. */
.waitlist__form[hidden] ~ .waitlist__note { display: none; }

/* --- Shared section furniture --------------------------------------- */

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 7px 14px 7px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(35,170,171,.35);
  background: rgba(35,170,171,.10);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--lv-teal);
  text-transform: uppercase;
  animation: lvRise .7s var(--ease-out) both;
}

.eyebrow-pill__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lv-teal);
  box-shadow: 0 0 10px var(--lv-teal);
  animation: lvBlink 2.2s var(--ease-in-out) infinite;
}

.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  color: var(--lv-teal);
  text-transform: uppercase;
}

.eyebrow--accent { color: var(--lv-orange); }

.text-accent { color: var(--lv-orange); }
.text-brand  { color: var(--lv-teal); }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.04;
  letter-spacing: -.03em;
  color: var(--lv-white);
  margin: 18px 0 0;
}

.section-lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 18px 0 0;
  text-wrap: pretty;
}

/* --- Hero ------------------------------------------------------------ */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(32px, 5vw, 56px);
  padding-block: clamp(40px, 6vw, 84px) clamp(40px, 5vw, 64px);
}

.hero__copy { flex: 1 1 420px; min-width: 300px; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 6.4vw, 80px);
  line-height: .98;
  letter-spacing: -.035em;
  color: var(--lv-white);
  margin: 24px 0 0;
  animation: lvRise .8s var(--ease-out) .08s both;
}

.hero__lede {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--text-body);
  max-width: 30em;
  margin: 26px 0 0;
  text-wrap: pretty;
  animation: lvRise .8s var(--ease-out) .16s both;
}

.hero__form { margin-top: 34px; animation: lvRise .8s var(--ease-out) .24s both; }

.hero__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
  flex-wrap: wrap;
  animation: lvRise .8s var(--ease-out) .32s both;
}

.hero__applink {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 15px;
  color: var(--lv-teal);
}
.hero__applink:hover { color: var(--lv-teal-hover); }

.hero__divider { width: 1px; height: 18px; background: rgba(255,255,255,.12); }

.hero__custody {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.hero__visual {
  flex: 1 1 420px;
  min-width: 300px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-block: clamp(12px, 2vw, 24px);
}

.hero__glow {
  position: absolute;
  left: 50%; top: 50%;
  width: 460px; height: 460px;
  margin: -230px 0 0 -230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(35,170,171,.28), transparent 64%);
  filter: blur(30px);
  animation: lvPulse 8s var(--ease-in-out) infinite;
}

/* --- Phone mockup ---------------------------------------------------- */

.phone { position: relative; width: clamp(268px, 30vw, 336px); }

.phone__shell {
  border-radius: 46px;
  padding: 11px;
  background: linear-gradient(160deg, #2A2E3A, var(--lv-phone-bezel));
  border: 1px solid rgba(35,170,171,.4);
  box-shadow: 0 40px 90px rgba(0,0,0,.7), var(--glow-teal);
  animation: lvPhoneC 9s var(--ease-in-out) infinite;
}

.phone__screen {
  position: relative;
  border-radius: 36px;
  background: var(--lv-black);
  overflow: hidden;
}

.phone__notch {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding-top: 12px;
}

.phone__notch::before {
  content: "";
  width: 78px; height: 22px;
  border-radius: var(--radius-pill);
  background: var(--lv-phone-bezel);
}

.phone__track {
  display: flex;
  width: 300%;
  transition: transform .7s var(--ease-in-out);
  transform: translateX(calc(var(--phone-slide, 0) * -33.3333%));
}

.phone__panel {
  width: 33.3333%;
  flex: none;
  padding: 46px 18px 22px;
}

.phone__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.phone__dot {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lv-text-dim);
  transition: color var(--dur-fast) var(--ease-out);
}

.phone__dot-mark {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.phone__dot.is-active { color: var(--lv-teal); }

.phone__caption {
  margin: 8px 0 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--lv-text-dim);
}

@keyframes lvPhoneC {
  0%, 100% { transform: translate3d(0,0,0) rotate(-1deg); }
  50%      { transform: translate3d(0,-10px,0) rotate(1deg); }
}

/* Sparkline draw-in. Both are fill-mode `both`, so they need no JS, and the
   global prefers-reduced-motion rule disables them back to the static
   fully-drawn state. */
@keyframes lvDraw {
  from { stroke-dashoffset: 320; }
  to   { stroke-dashoffset: 0; }
}

@keyframes lvDotIn {
  0%, 55% { opacity: 0; transform: scale(.4); }
  75%     { opacity: 1; transform: scale(1.5); }
  100%    { opacity: 1; transform: scale(1); }
}

/* --- Phone mockup: panel internals ------------------------------------ */
/* Portfolio, loans and marketplace panel content. Classes are prefixed
   .phone__ and values are derived from the design's inline styles on the
   corresponding elements (see design-src, heroPhone block). */

.phone__row { display: flex; align-items: center; justify-content: space-between; }

.phone__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--lv-ink-300);
}

.phone__mark { width: 18px; height: 18px; opacity: .85; }

.phone__row-icons { display: flex; align-items: center; gap: 10px; }

/* Portfolio panel */

.phone__value-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 10px;
}

.phone__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -.03em;
  color: var(--lv-white);
}

.phone__value-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--lv-success);
}

.phone__spark { position: relative; margin-top: 16px; height: 104px; }
.phone__spark-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.phone__ranges { display: flex; gap: 6px; margin-top: 8px; }

.phone__range {
  padding: 4px 11px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  color: var(--lv-text-faint);
}

.phone__range.is-active {
  border-radius: var(--radius-pill);
  background: rgba(35,170,171,.18);
  color: var(--lv-teal);
}

.phone__stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.phone__stat {
  padding: 13px 14px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.03);
}

.phone__stat--highlight {
  border-color: rgba(35,170,171,.26);
  background: rgba(35,170,171,.07);
}

.phone__stat-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .14em;
  color: var(--lv-ink-300);
}

.phone__stat--highlight .phone__stat-label { color: var(--lv-teal); }

.phone__stat-value {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  color: var(--lv-white);
}

.phone__cta-bar {
  margin-top: 16px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--lv-orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone__cta-bar span { font-size: 14px; font-weight: 700; color: var(--lv-white); }

/* Loans panel */

.phone__health {
  margin-top: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(63,214,139,.3);
  background: rgba(63,214,139,.07);
}

.phone__health-top { display: flex; align-items: center; justify-content: space-between; }

.phone__health-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--lv-success);
}

.phone__health-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lv-success); }

.phone__health-ltv { font-family: var(--font-mono); font-size: 10px; color: var(--lv-ink-200); }

.phone__bar {
  margin-top: 12px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}

.phone__bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--lv-success), var(--lv-teal));
}

.phone__bar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .1em;
  color: var(--lv-text-faint);
}

.phone__cards { margin-top: 14px; display: grid; gap: 10px; }

.phone__card {
  padding: 14px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.03);
}

.phone__card--warn {
  border-color: rgba(249,124,52,.26);
  background: rgba(249,124,52,.06);
}

.phone__card-top { display: flex; align-items: center; justify-content: space-between; }

.phone__card-title { font-size: 13px; font-weight: 600; color: var(--lv-ink-100); }

.phone__card-row {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--lv-ink-200);
}

.phone__card-row + .phone__card-row { margin-top: 6px; }

.phone__card-row span:last-child { color: var(--lv-ink-100); }

.phone__actions { margin-top: 16px; display: flex; gap: 10px; }

.phone__action {
  flex: 1;
  height: 40px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone__action--primary {
  border: 1px solid rgba(35,170,171,.4);
  background: rgba(35,170,171,.14);
}

.phone__action--primary span { font-size: 13px; font-weight: 700; color: var(--lv-teal); }

.phone__action--ghost { border: 1px solid rgba(255,255,255,.1); }

.phone__action--ghost span { font-size: 13px; font-weight: 600; color: var(--lv-ink-200); }

/* Marketplace panel */

.phone__search {
  margin-top: 14px;
  height: 34px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
}

.phone__search span { font-size: 12px; color: var(--lv-text-faint); }

.phone__filters { margin-top: 12px; display: flex; gap: 6px; }

.phone__filter {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.05);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--lv-ink-300);
}

.phone__filter.is-active { background: rgba(35,170,171,.18); color: var(--lv-teal); }

.phone__market-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.phone__market-card {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  padding: 9px;
}

.phone__market-card--featured { border-color: rgba(35,170,171,.28); }

.phone__market-thumb { aspect-ratio: 3/4; border-radius: 8px; }

.phone__market-thumb--teal   { background: linear-gradient(135deg, #14343E, #23AAAB 48%, #0D2A33 80%); opacity: .55; }
.phone__market-thumb--orange { background: linear-gradient(135deg, #3A1E10, #F97C34 48%, #2A1409 82%); opacity: .48; }
.phone__market-thumb--blue   { background: linear-gradient(135deg, #101A2E, #2A3F6E 44%, #0B1120 80%); opacity: .6; }
.phone__market-thumb--purple { background: linear-gradient(135deg, #2A1230, #7A3E8C 45%, #180A1C 82%); opacity: .5; }

.phone__market-bar {
  margin-top: 9px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,.16);
}

.phone__market-bar--teal   { margin-top: 6px; background: rgba(35,170,171,.55); }
.phone__market-bar--orange { margin-top: 6px; background: rgba(249,124,52,.6); }

/* --- Marquee --------------------------------------------------------- */

.marquee {
  border-block: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.015);
  overflow: hidden;
  padding-block: 15px;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: lvMarquee 34s linear infinite;
}

.marquee__group {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--lv-text-faint);
  white-space: nowrap;
}

.marquee__sep { color: var(--lv-teal); }
.marquee__more { color: var(--text-muted); }

@keyframes lvMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- Section rhythm --------------------------------------------------- */

.how      { padding-block: clamp(72px, 9vw, 128px); }
.audience { padding-bottom: clamp(72px, 9vw, 128px); }
.demo     { padding-bottom: clamp(72px, 9vw, 128px); }

.section-head { max-width: 44rem; }

/* --- How it works ----------------------------------------------------- */

.how__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.how__card {
  display: block;
  padding: 30px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-default);
  background: rgba(255,255,255,.025);
  color: inherit;
  transition: border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}

/* Hover and keyboard focus get the same affordance. The design only
   specifies hover, but these cards are links — a keyboard user needs the
   same signal a mouse user gets. */
.how__card:hover,
.how__card:focus-visible {
  border-color: rgba(35,170,171,.5);
  background: rgba(35,170,171,.06);
  box-shadow: var(--glow-soft-teal);
  color: inherit;
}

.how__card--accent {
  border-color: rgba(249,124,52,.28);
  background: linear-gradient(160deg, rgba(249,124,52,.07), rgba(255,255,255,.02));
}

.how__card--accent:hover,
.how__card--accent:focus-visible {
  border-color: rgba(249,124,52,.6);
  box-shadow: var(--glow-soft-orange);
}

.how__card-head { display: flex; align-items: center; justify-content: space-between; }

.how__card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(35,170,171,.12);
  border: 1px solid rgba(35,170,171,.28);
}

.how__card-icon--accent {
  background: rgba(249,124,52,.14);
  border-color: rgba(249,124,52,.32);
}

.how__card-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--lv-ink-400);
}

.how__card-num--accent { color: var(--lv-orange-dim); }

.how__card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.02em;
  color: var(--lv-white);
  margin: 22px 0 0;
}

.how__card-body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 10px 0 0;
  text-wrap: pretty;
}

.how__card-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lv-teal);
}

.how__card-more--accent { color: var(--lv-orange); }

/* --- Audience --------------------------------------------------------- */

.audience__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 44px;
}

.audience__card {
  position: relative;
  padding: 34px 30px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-default);
  background: rgba(255,255,255,.025);
  overflow: hidden;
}

.audience__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
}

.audience__card--teal::before    { background: linear-gradient(90deg, var(--lv-teal), transparent); }
.audience__card--orange::before  { background: linear-gradient(90deg, var(--lv-orange), transparent); }
.audience__card--neutral::before { background: linear-gradient(90deg, var(--lv-ink-200), transparent); }

.audience__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lv-teal);
  margin: 20px 0 0;
}

.audience__label--orange { color: var(--lv-orange); }
.audience__label--muted  { color: var(--text-muted); }

.audience__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 25px;
  line-height: 1.18;
  letter-spacing: -.02em;
  color: var(--lv-white);
  margin: 12px 0 0;
  text-wrap: pretty;
}

.audience__body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 14px 0 0;
  text-wrap: pretty;
}

/* --- Demo ------------------------------------------------------------- */

.demo__panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(28px, 4vw, 52px);
  padding: clamp(28px, 4vw, 52px);
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(35,170,171,.24);
  background: linear-gradient(180deg, rgba(35,170,171,.07), rgba(255,255,255,.018));
  overflow: hidden;
}

.demo__copy { flex: 1 1 320px; min-width: 280px; }

.demo__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--lv-white);
  margin: 16px 0 0;
}

.demo__body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  margin: 16px 0 0;
  max-width: 34em;
  text-wrap: pretty;
}

.demo__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

/* Same lift on keyboard focus as on hover — this is a link, not a
   decorative element, so a keyboard user needs the same signal. */
.demo__actions .btn:hover,
.demo__actions .btn:focus-visible { transform: translateY(-2px); }

.demo__url {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  padding: 15px 4px;
}

.demo__visual { flex: 1 1 340px; min-width: 290px; }

/* Browser-chrome mockup */

.demo__browser {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: var(--lv-black-2);
  box-shadow: 0 30px 70px rgba(0,0,0,.6);
  overflow: hidden;
}

.demo__browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.03);
}

.demo__dot { width: 9px; height: 9px; border-radius: 50%; }
.demo__dot--red    { background: var(--lv-danger); }
.demo__dot--orange { background: var(--lv-orange); }
.demo__dot--green  { background: var(--lv-success); }

.demo__browser-url {
  margin-left: 10px;
  flex: 1;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.05);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--lv-ink-200);
}

.demo__browser-body { display: flex; min-height: 232px; }

.demo__sidebar {
  flex: none;
  width: 96px;
  padding: 14px 10px;
  border-right: 1px solid rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.demo__sidebar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
}

.demo__sidebar-row.is-active { background: rgba(35,170,171,.14); }

.demo__sidebar-row span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--lv-ink-300);
}

.demo__sidebar-row.is-active span { font-weight: 700; color: var(--lv-teal); }

.demo__content {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo__shim {
  height: 9px;
  width: 42%;
  border-radius: 4px;
  background-image: linear-gradient(90deg, rgba(255,255,255,.07), rgba(35,170,171,.35), rgba(255,255,255,.07));
  background-size: 200% 100%;
  animation: lvShim 2.8s linear infinite;
}

.demo__shim--sm {
  height: 7px;
  width: 66%;
  background-image: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.16), rgba(255,255,255,.05));
  animation: lvShim 3.4s linear .4s infinite;
}

.demo__tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.demo__tile {
  height: 46px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.03);
}

.demo__tile--accent {
  border-color: rgba(249,124,52,.22);
  background: rgba(249,124,52,.06);
}

.demo__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.demo__card-thumb {
  aspect-ratio: 3/4;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(150deg, rgba(255,255,255,.07), rgba(6,6,10,.9));
}

.demo__card-thumb--teal {
  border-color: rgba(35,170,171,.28);
  background: linear-gradient(150deg, rgba(35,170,171,.22), rgba(6,6,10,.9));
}

.demo__card-thumb--orange {
  border-color: rgba(249,124,52,.24);
  background: linear-gradient(150deg, rgba(249,124,52,.18), rgba(6,6,10,.9));
}

.demo__card-thumb--dim {
  background: linear-gradient(150deg, rgba(255,255,255,.05), rgba(6,6,10,.9));
}

@keyframes lvShim {
  0%   { background-position: -180% 0; }
  100% { background-position: 280% 0; }
}

/* --- Custody ---------------------------------------------------------- */

.custody { padding-bottom: clamp(72px, 9vw, 128px); }

.custody__inner {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.custody__copy { flex: 1 1 400px; min-width: 300px; }

.custody__lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-body);
  margin: 20px 0 0;
  max-width: 34em;
  text-wrap: pretty;
}

.custody__note {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 16px 0 0;
  max-width: 34em;
  text-wrap: pretty;
}

.custody__list {
  flex: 1 1 320px;
  min-width: 290px;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.custody__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  background: rgba(255,255,255,.025);
}

.custody__item-title { margin: 0; font-weight: 700; font-size: 16px; color: var(--lv-white); }

.custody__item-body {
  margin: 5px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* --- Roadmap ----------------------------------------------------------- */

.roadmap {
  position: relative;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.012);
  padding-block: clamp(72px, 9vw, 128px);
}

.roadmap__list {
  position: relative;
  margin: 52px 0 0;
  padding: 0 0 0 clamp(28px, 4vw, 44px);
  list-style: none;
}

.roadmap__list::before {
  content: "";
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg,
    var(--lv-teal) 0%,
    rgba(35,170,171,.45) 14%,
    rgba(255,255,255,.08) 34%);
}

.roadmap__item { position: relative; padding-bottom: 34px; }
.roadmap__item:last-child { padding-bottom: 0; }

.roadmap__item::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(28px, 4vw, 44px) + 1px);
  top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--lv-black);
  border: 2px solid rgba(35,170,171,.65);
}

.roadmap__item--current::before {
  background: var(--lv-teal);
  border-color: var(--lv-teal);
  box-shadow: 0 0 18px rgba(35,170,171,.9);
  animation: lvPulse 2.4s var(--ease-in-out) infinite;
}

.roadmap__item--accent::before {
  border-color: var(--lv-orange);
  box-shadow: 0 0 14px rgba(249,124,52,.5);
}

.roadmap__item--future::before { border-color: rgba(255,255,255,.18); }

.roadmap__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
}

.roadmap__phase {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lv-teal);
}

.roadmap__phase--accent { color: var(--lv-orange); }
.roadmap__phase--muted  { color: var(--text-muted); }

.roadmap__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(21px, 2.4vw, 27px);
  letter-spacing: -.02em;
  color: var(--lv-white);
  margin: 0;
}

.roadmap__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(35,170,171,.45);
  background: rgba(35,170,171,.12);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lv-teal);
}

.roadmap__badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lv-teal);
  animation: lvBlink 1.8s var(--ease-in-out) infinite;
}

.roadmap__body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 10px 0 0;
  max-width: 46em;
  text-wrap: pretty;
}

/* --- FAQ --------------------------------------------------------------- */

.faq {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(72px, 9vw, 128px);
}

.faq__intro { flex: 1 1 280px; min-width: 260px; }

.faq__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--lv-white);
  margin: 18px 0 0;
}

.faq__list { flex: 2 1 460px; min-width: 300px; display: grid; gap: 10px; }

.faq__item {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  background: rgba(255,255,255,.025);
  overflow: hidden;
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.01em;
  color: var(--lv-white);
}

.faq__q::-webkit-details-marker { display: none; }

.faq__q::after {
  content: "+";
  color: var(--lv-teal);
  font-size: 20px;
  line-height: 1;
  flex: none;
}

.faq__item[open] .faq__q::after { content: "−"; }

.faq__q:hover { background: rgba(255,255,255,.03); }

.faq__q:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: -2px;
}

.faq__a {
  margin: 0;
  padding: 0 22px 22px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* --- Closing CTA -------------------------------------------------------- */

.cta { padding-bottom: clamp(72px, 9vw, 110px); }

.cta__panel {
  position: relative;
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(249,124,52,.26);
  background: linear-gradient(150deg,
    rgba(249,124,52,.10),
    rgba(35,170,171,.07) 60%,
    rgba(255,255,255,.018));
  padding: clamp(36px, 5vw, 72px) clamp(28px, 4vw, 64px);
  text-align: center;
  overflow: hidden;
}

.cta__mark {
  position: absolute;
  right: -40px; bottom: -50px;
  width: 220px;
  height: auto;
  opacity: .10;
  animation: lvMark 12s var(--ease-in-out) infinite;
}

.cta__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.04;
  letter-spacing: -.03em;
  color: var(--lv-white);
  margin: 18px auto 0;
  max-width: 20em;
}

.cta__body {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-body);
  margin: 16px auto 0;
  max-width: 34em;
  text-wrap: pretty;
}

.cta__panel .waitlist { margin-top: 30px; }

@keyframes lvMark {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* --- Reveal on scroll -------------------------------------------------- */
/*
   Inverted from the design, which hid every element inline and relied on JS
   (plus 1.2s/3s safety timers and a 220ms polling loop) to un-hide them.

   The pre-reveal state is keyed off html.reveal-ready, not html.js. html.js
   is set unconditionally by an inline script in base.njk's <head> and
   proves nothing about whether main.js (an external file, on its own
   <script> tag) ever ran. reveal-ready is set only by initReveal() in
   main.js itself, as its first statement, before it observes anything — so
   if main.js 404s, is blocked, or throws, reveal-ready is never set and
   every .reveal element stays at its default visible, unstyled state.
*/

html.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
}

html.reveal-ready .reveal.is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  html.reveal-ready .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --- Step (detail) pages ------------------------------------------------ */

.step { padding-block: clamp(40px, 6vw, 76px) clamp(60px, 8vw, 110px); }

.step__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  animation: lvRise .7s var(--ease-out) both;
}

.step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(35,170,171,.12);
  border: 1px solid rgba(35,170,171,.28);
}

.step__icon--accent {
  background: rgba(249,124,52,.14);
  border-color: rgba(249,124,52,.32);
}

.step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -.035em;
  color: var(--lv-white);
  margin: 22px 0 0;
  animation: lvRise .8s var(--ease-out) .06s both;
}

.step__lede {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.6;
  color: var(--text-body);
  max-width: 34em;
  margin: 22px 0 0;
  text-wrap: pretty;
  animation: lvRise .8s var(--ease-out) .12s both;
}

.step__cards { display: grid; gap: 12px; margin-top: clamp(40px, 5vw, 64px); }

.step-card {
  display: flex;
  gap: 20px;
  padding: 26px 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-default);
  background: rgba(255,255,255,.025);
}

.step-card--teal {
  border-color: rgba(35,170,171,.32);
  background: linear-gradient(160deg, rgba(35,170,171,.07), rgba(255,255,255,.02));
}

.step-card--orange {
  border-color: rgba(249,124,52,.3);
  background: linear-gradient(160deg, rgba(249,124,52,.07), rgba(255,255,255,.02));
}

.step-card__num {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--lv-teal);
  padding-top: 4px;
}

.step-card__num--accent { color: var(--lv-orange); }

.step-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.02em;
  color: var(--lv-white);
  margin: 0;
}

.step-card__body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 10px 0 0;
  text-wrap: pretty;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.step-tile {
  padding: 24px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  background: rgba(255,255,255,.025);
}

.step-tile--teal {
  border-color: rgba(35,170,171,.3);
  background: linear-gradient(160deg, rgba(35,170,171,.07), rgba(255,255,255,.02));
}

.step-tile__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--lv-white);
  margin: 16px 0 0;
}

/* A tile whose heading has no icon above it (the "Other mechanics" grid on
   the borrow page) shouldn't carry the icon-clearance top margin. */
.step-tile__title:first-child { margin-top: 0; }

.step-tile__body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 8px 0 0;
}

.step-panel {
  margin-top: clamp(36px, 4vw, 52px);
  padding: 28px 30px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.018);
}

/* Two panels stacked back-to-back (the borrow page's paid-off/not-repaid
   pair) sit tight against each other rather than repeating the full
   section gap. */
.step-panel + .step-panel { margin-top: 12px; }

.step-panel--success {
  border-color: rgba(63,214,139,.3);
  background: linear-gradient(160deg, rgba(63,214,139,.07), rgba(255,255,255,.02));
}

.step-panel--danger {
  border-color: rgba(255,93,108,.28);
  background: linear-gradient(160deg, rgba(255,93,108,.06), rgba(255,255,255,.02));
}

/* The verify page's "one card, one token" panel lays copy and the scanning
   card side by side instead of stacking block content. */
.step-panel--split {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
}

.step-panel__text { flex: 1 1 300px; min-width: 260px; }

/* Muted body copy inside a .step-panel — one step further from the heading
   (12px) than a .step-card__body (10px), since panels sit lower-density. */
.step-panel__body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 12px 0 0;
  max-width: 46em;
  text-wrap: pretty;
}

/* The borrow page's success/danger panel headers: icon beside an h2. */
.step-panel__head { display: flex; align-items: center; gap: 12px; }

.step-panel__head-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.8vw, 32px);
  letter-spacing: -.025em;
  color: var(--lv-white);
  margin: 0;
}

/* The panel's own intro paragraph — full-body (not muted) text, since it
   carries the primary explanation rather than supporting detail. */
.step-panel__lede {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  margin: 14px 0 0;
  max-width: 46em;
  text-wrap: pretty;
}

/* The closing risk-disclosure line inside the danger panel — smaller and
   quieter than the panel's own lede, but still fully legible prose. */
.step-panel__note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 20px 0 0;
  max-width: 46em;
  text-wrap: pretty;
}

/* A titled content block within a step page — "What the NFT lets you do",
   "Other mechanics worth knowing" — larger than a .step-card heading but
   smaller than the page's own .step__title. */
.step-block { margin-top: clamp(36px, 4vw, 52px); }

.step-block__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--lv-white);
  margin: 0;
}

.step-block__lede {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 14px 0 0;
  max-width: 44em;
  text-wrap: pretty;
}

.step-block .step-grid { margin-top: 24px; }

/* The verify page's scanning-card visual — a small verified-slab mock with
   a sweeping scan line, paired with the lvSweep keyframe below. */
.step-scan {
  flex: none;
  position: relative;
  width: 148px;
  border-radius: 14px;
  padding: 11px;
  border: 1px solid rgba(35,170,171,.45);
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(6,6,10,.94));
  box-shadow: var(--glow-soft-teal);
  overflow: hidden;
}

.step-scan__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.step-scan__label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--lv-teal);
}

.step-scan__thumb {
  aspect-ratio: 3/4.2;
  border-radius: 8px;
  background: linear-gradient(135deg, #14343E, var(--lv-teal) 46%, #0D2A33 80%);
  opacity: .55;
}

.step-scan__sweep {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lv-teal), transparent);
  box-shadow: 0 0 16px rgba(35,170,171,.9);
  animation: lvSweep 4.4s var(--ease-in-out) infinite;
}

@keyframes lvSweep {
  0%   { top: -8%; opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { top: 104%; opacity: 0; }
}

/* The borrow page's three staged sub-cards inside the danger panel
   (warned / cure / collateral sold). */
.step-substack { display: grid; gap: 12px; margin-top: 22px; }

.step-subcard {
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(6,6,10,.4);
}

.step-subcard--danger { border-color: rgba(255,93,108,.24); }

.step-subcard__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--lv-orange);
}

.step-subcard__label--danger { color: var(--lv-danger); }

.step-subcard__body {
  margin: 9px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* The borrow page's closing "rates aren't published yet" paragraph. */
.step-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .06em;
  color: var(--lv-text-faint);
  margin: 22px 0 0;
  max-width: 46em;
}

.step__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.step__nav .btn--primary:hover,
.step__nav .btn--accent:hover,
.step__nav .btn--primary:focus-visible,
.step__nav .btn--accent:focus-visible { transform: translateY(-1px); }
