:root {
  color-scheme: dark;
  --brand-bg: #0b1220;
  --brand-surface: #101a2d;
  --brand-subtle: #131f34;
  --brand-fg: #f4f7fb;
  --brand-muted: rgba(244, 247, 251, 0.08);
  --brand-primary: #1ee2d6;
  --brand-primary-fg: #041014;
  --brand-secondary: #1db954;
  --brand-border: rgba(255, 255, 255, 0.14);
  --brand-border-strong: rgba(255, 255, 255, 0.28);
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-size-base: 16px;
  --line-height: 1.6;
  --radius: 12px;
  --shadow-1: 0 18px 48px rgba(3, 8, 20, 0.45);
  --shadow-soft: 0 10px 28px rgba(6, 12, 24, 0.35);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 40px;
  --space-7: 64px;
  --space-8: 80px;
  --container: 1200px;
  --measure: 68ch;
  --nav-h: 72px;            /* keep in sync with real navbar height */
  --hero-pad-min: 24px;     /* min block padding for hero */
  --hero-pad-max: 96px;     /* max block padding for hero */
  --navbar-height: var(--nav-h);
  --hontza-gold: #e6c36a;
}

@media (min-width: 1536px) {
  :root { --container: 1280px; }
}

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

html {
  font-size: var(--font-size-base);
  text-rendering: optimizeLegibility;
  scroll-padding-top: var(--nav-h);
}

html,
body {
  overflow: auto;
  height: auto;
}

@media (min-width: 961px) {
  html:has(body.page-howit) {
    overflow: hidden;
    height: 100%;
  }

  body.page-howit {
    overflow: hidden;
    height: 100vh;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--brand-bg);
  color: var(--brand-fg);
  font-family: var(--font-body);
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

main { display: block; }

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover { color: var(--brand-secondary); }

a:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
}

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

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

p, ul, ol, figure {
  margin: 0;
}

p { max-width: var(--measure); }

p + p { margin-top: var(--space-3); }

ul, ol {
  padding-left: 1.15rem;
}

::selection {
  background: rgba(30, 226, 214, 0.35);
  color: var(--brand-primary-fg);
}


.container {
  width: min(100%, var(--container));
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.container,
.howit {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {
  .container { padding: 0 var(--space-4); }
}

.section {
  padding: var(--space-7) 0;
}

.section:first-of-type {
  margin-top: clamp(16px, 3vh, 32px);
}

.section--tight {
  padding: var(--space-6) 0;
}

.section--compact {
  padding: var(--space-5) 0;
}

.section--muted {
  background: var(--brand-subtle);
}

.section__header {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.section__header p {
  color: rgba(244, 247, 251, 0.78);
}

.flow > * + * {
  margin-top: var(--space-4);
}

.flow--tight > * + * {
  margin-top: var(--space-3);
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 247, 251, 0.6);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.35rem); }
h2 { font-size: clamp(2rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
h4 { font-size: 1.15rem; }

.lead {
  font-size: 1.125rem;
  color: rgba(244, 247, 251, 0.78);
}

.hero {
  padding-block: clamp(16px, 5vh, 72px);
}

.hero__inner {
  display: grid;
  gap: var(--space-7);
}

@media (min-width: 992px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
}

.hero__content {
  display: grid;
  gap: var(--space-5);
}

.hero__title {
  max-width: 24ch;
  margin-bottom: clamp(8px, 1.6vh, 16px);
}

.hero__subhead {
  color: rgba(244, 247, 251, 0.78);
  max-width: var(--measure);
  margin-bottom: clamp(12px, 2vh, 24px);
}

.hero *:first-child { margin-top: 0; }

.hero__media {
  position: relative;
  justify-self: center;
  width: min(540px, 90%);
}

.hero__image {
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-1);
}

body.page--light {
  background: #0f1526;
  color: #f4f7fb;
}

.hero--light {
  background: linear-gradient(180deg, #0f1526 0%, #111a2f 100%);
}

.breadcrumb--light ol,
.breadcrumb--light a {
  color: rgba(244, 247, 251, 0.7);
}

.breadcrumb--light li[aria-current="page"] {
  color: rgba(244, 247, 251, 0.5);
}

.breadcrumb--light li + li::before {
  color: rgba(244, 247, 251, 0.35);
}

.hero__workflow {
  max-width: 420px;
  width: 100%;
}

.section--light {
  background: #0f1526;
}

.section--light-tight {
  background: #0f1526;
  padding: var(--space-5) 0;
}

.steps {
  display: grid;
  gap: var(--space-6);
}

.steps__row {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 20px 45px rgba(10, 17, 30, 0.45);
}

.step__icon {
  width: 48px;
  height: 48px;
}

.step__title {
  margin: 0;
  font-size: 1.2rem;
}

.step__copy {
  margin: 0;
  color: rgba(201, 220, 255, 0.85);
}

.proof-mini {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  color: rgba(201, 220, 255, 0.85);
  font-weight: 500;
}

@media (max-width: 992px) {
  .steps__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .steps__row {
    grid-template-columns: 1fr;
  }

  .step {
    padding: var(--space-4);
  }
}

[data-parallax] {
  will-change: transform;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-parallax] {
    transform: none !important;
  }
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  color: rgba(244, 247, 251, 0.6);
  font-size: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius);
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  min-height: 48px;
}

.btn:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
}

.btn--lg {
  font-size: 1.05rem;
  padding: calc(var(--space-3) + 2px) var(--space-5);
}

.btn--primary {
  background: var(--brand-primary);
  color: var(--brand-primary-fg);
  box-shadow: 0 12px 28px rgba(30, 226, 214, 0.35);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(30, 226, 214, 0.4);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 10px 22px rgba(30, 226, 214, 0.32);
}

.btn--secondary {
  background: transparent;
  color: rgba(244, 247, 251, 0.9);
  border-color: rgba(244, 247, 251, 0.32);
}

.btn--secondary:hover {
  border-color: rgba(244, 247, 251, 0.5);
  background: rgba(244, 247, 251, 0.08);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  box-shadow: none;
  transform: none;
}

.btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.45;
  box-shadow: none;
  transform: none;
}

.btn.is-loading::after {
  content: "";
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
  margin-left: var(--space-2);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.field {
  display: grid;
  gap: var(--space-2);
}

.field--honeypot {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.field__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(244, 247, 251, 0.72);
}

.input {
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  border: 1px solid rgba(244, 247, 251, 0.22);
  background: rgba(8, 16, 30, 0.7);
  color: var(--brand-fg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input::placeholder {
  color: rgba(244, 247, 251, 0.5);
}

.input:focus {
  border-color: var(--brand-primary);
  background: rgba(8, 16, 30, 0.85);
  box-shadow: 0 0 0 3px rgba(30, 226, 214, 0.25);
  outline: 2px solid transparent;
}

.input--lg {
  font-size: 1.05rem;
}

.field__error {
  min-height: 1.25rem;
  font-size: 0.8125rem;
  color: #ff9ca6;
}


.cta {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-5);
  align-items: end;
  padding: var(--space-6);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-soft);
  max-width: 100%;
}

@media (max-width: 640px) {
  .cta { padding: var(--space-5); }
}

.cta[data-variant="footer"] {
  background: rgba(255, 255, 255, 0.04);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.12);
}

.cta__label {
  display: grid;
  gap: var(--space-3);
  min-width: 280px;
}

.cta__title {
  margin: 0;
  font-size: 1.5rem;
}

.cta__subtitle {
  color: rgba(244, 247, 251, 0.74);
  max-width: 48ch;
}

.bullet-list {
  padding-left: 1.25rem;
  display: grid;
  gap: var(--space-3);
  color: rgba(244, 247, 251, 0.74);
}

.bullet-list li::marker {
  color: var(--brand-primary);
}

.cta__form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: var(--space-4);
  align-items: end;
  min-width: 320px;
}

.cta__form .btn {
  align-self: end;
}

@media (max-width: 720px) {
  .cta {
    grid-template-columns: 1fr;
  }

  .cta__form {
    grid-template-columns: 1fr;
  }

  .cta__form .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .cta__label,
  .cta__form {
    min-width: 0;
  }
}
.navbar {
  position: sticky;
  top: 0;
  z-index: 180;
  backdrop-filter: blur(14px);
  background: rgba(11, 18, 32, 0.86);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 72px;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--brand-fg);
  text-decoration: none;
  font-weight: 700;
}

.navbar__logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.navbar__brand-text {
  display: grid;
  gap: 2px;
}

.navbar__brand-name { font-size: 1.05rem; }

.navbar__brand-tagline {
  font-size: 0.75rem;
  color: rgba(244, 247, 251, 0.62);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.navbar__link {
  color: rgba(244, 247, 251, 0.82);
  padding: var(--space-2) var(--space-3);
  border-radius: calc(var(--radius) / 1.5);
  font-weight: 600;
  font-size: 0.95rem;
}

.navbar__link:hover,
.navbar__link:focus-visible {
  color: var(--brand-fg);
  background: rgba(244, 247, 251, 0.08);
}

.navbar__link[aria-current="page"] {
  color: var(--brand-primary);
}

.navbar__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.navbar__cta {
  margin-left: var(--space-2);
}

.navbar__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid rgba(244, 247, 251, 0.28);
  background: rgba(255, 255, 255, 0.05);
  color: var(--brand-fg);
  cursor: pointer;
}

.navbar__toggle:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
}

.navbar__drawer[hidden] { display: none; }

.navbar__drawer {
  position: fixed;
  inset: 0;
  z-index: 170;
  display: grid;
  grid-template-rows: auto 1fr;
}

.navbar__backdrop {
  grid-row: 1 / -1;
  grid-column: 1 / -1;
  background: rgba(5, 10, 20, 0.65);
}

.navbar__drawer-panel {
  position: relative;
  align-self: start;
  margin: calc(72px + var(--space-4)) var(--space-4) 0;
  padding: var(--space-5);
  background: rgba(11, 18, 32, 0.96);
  border-radius: 0 0 calc(var(--radius) + 4px) calc(var(--radius) + 4px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: var(--space-4);
}

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

.navbar__drawer-links {
  display: grid;
  gap: var(--space-3);
}

.navbar__drawer-links a {
  padding: var(--space-3);
  border-radius: var(--radius);
  background: rgba(244, 247, 251, 0.05);
  color: var(--brand-fg);
  font-weight: 600;
}

.navbar__drawer-links a:hover {
  background: rgba(244, 247, 251, 0.1);
}

.navbar--compact {
  background: rgba(11, 18, 32, 0.95);
  border-bottom-color: rgba(244, 247, 251, 0.12);
}

.navbar--compact .navbar__inner {
  height: 64px;
}

.navbar--compact .navbar__brand-tagline {
  color: rgba(244, 247, 251, 0.58);
}

@media (max-width: 1024px) {
  .navbar__links {
    display: none;
  }

  .navbar__cta {
    display: none;
  }

  .navbar__toggle {
    display: inline-flex;
  }
}

.grid {
  display: grid;
  gap: var(--space-5);
}

.grid--cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid--cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: 0 10px 28px rgba(4, 8, 18, 0.32);
  display: grid;
  gap: var(--space-3);
}

.card--flat {
  box-shadow: none;
  background: rgba(255, 255, 255, 0.04);
}

.card__title {
  font-size: 1.25rem;
  margin: 0;
}

.card__meta {
  color: rgba(244, 247, 251, 0.66);
  font-size: 0.9rem;
}

.stat-list {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .stat-list {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

.stat {
  display: grid;
  gap: var(--space-2);
}

.stat__number {
  font-size: 2rem;
  font-weight: 700;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  color: rgba(244, 247, 251, 0.92);
}

.table thead th {
  font-weight: 600;
  text-align: left;
  padding: var(--space-3) var(--space-4);
  background: rgba(244, 247, 251, 0.06);
}

.table tbody td {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid rgba(244, 247, 251, 0.08);
}

.table .is-numeric {
  text-align: right;
  white-space: nowrap;
}

.table-groups {
  display: grid;
  gap: var(--space-6);
}

.table-wrapper--narrow {
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

.table--frosted {
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-soft);
}

.table-footnote {
  font-size: 0.85rem;
  color: rgba(244, 247, 251, 0.64);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid rgba(244, 247, 251, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.faq {
  display: grid;
  gap: var(--space-4);
}

.accordion {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.accordion__button {
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  cursor: pointer;
}

.accordion__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.accordion__content {
  padding: 0 var(--space-5) var(--space-5);
  color: rgba(244, 247, 251, 0.78);
}

.accordion.is-open .accordion__panel,
.accordion__panel.is-open {
  max-height: 800px;
}

.accordion__icon {
  font-size: 1.5rem;
  color: rgba(244, 247, 251, 0.6);
}

.faq__grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .faq__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.faq-card {
  padding: var(--space-4);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: var(--space-2);
}

.faq-card h3 {
  font-size: 1.05rem;
}

.faq-item {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.faq-item.in {
  opacity: 1;
  transform: translateY(0);
}

.container.guided {
  display: grid;
  grid-template-columns: 320px 1fr;
  column-gap: 24px;
  align-items: start;
}

.guided-steps {
  display: grid;
  gap: 10px;
}

.guided-step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
}

.guided-step.is-active {
  border-color: rgba(30,226,214,0.6);
  box-shadow: 0 0 0 2px rgba(30,226,214,0.15) inset;
  background: rgba(30,226,214,0.06);
}

.guided-num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 600;
  background: #0e2a2c;
  color: #1ee2d6;
  border: 1px solid rgba(30,226,214,0.5);
}

.guided-title {
  font-size: 15px;
  line-height: 1.2;
  margin: 0 0 4px 0;
}

.guided-copy {
  font-size: 13px;
  line-height: 1.35;
  opacity: .9;
}

.guided-note {
  font-size: 0.85rem;
  color: rgba(244, 247, 251, 0.6);
}

.howit-panel {
  display: grid;
  row-gap: 12px;
}

.gold-copy {
  color: var(--hontza-gold);
  font-size: 14px;
  line-height: 1.45;
}

.howit-image {
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
  overflow: hidden;
}

.howit-image img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 1;
  transition: opacity .25s ease;
}

.howit-image img.is-fading {
  opacity: 0;
}

.section .container.guided {
  margin-bottom: 0;
}

@media (max-width: 960px) {
  .container.guided {
    grid-template-columns: 1fr;
    row-gap: 18px;
  }
}


.footer {
  border-top: 1px solid rgba(244, 247, 251, 0.08);
  padding: var(--space-7) 0 var(--space-6);
  text-align: center;
  color: rgba(244, 247, 251, 0.62);
  font-size: 0.85rem;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer a {
  color: rgba(244, 247, 251, 0.82);
}

.footer a:hover {
  color: var(--brand-primary);
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-3);
  flex-wrap: wrap;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(2px);
  z-index: 1000;
}

.modal.is-open {
  display: block;
  display: grid;
}

body.modal-open {
  overflow: hidden;
}

.modal-content {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  padding: var(--space-6);
  width: min(90vw, 420px);
  box-shadow: var(--shadow-1);
}

.modal-content h2 {
  margin: 0 0 var(--space-3);
}

.navbar__link--gold {
  color: #d4af37;
  font-weight: 600;
}

.navbar__link--gold:hover,
.navbar__link--gold:focus {
  text-decoration: underline;
}

/* page-scoped override */
.page-how-it-works .hero .cta,
.page-value .hero .cta,
.page-fees .hero .cta {
  display: none;
}

.how {
  position: relative;
  padding-top: 3.5rem;
}

.how-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
  background: rgba(11, 18, 32, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem clamp(1rem, 3vw, 2.75rem) 1rem;
  display: grid;
  gap: 1rem;
}

.how-header-text {
  display: grid;
  gap: 0.5rem;
  text-align: center;
}

.how-lede {
  margin: 0;
  color: rgba(244, 247, 251, 0.72);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
}

.how-viewport {
  height: calc(100vh - 4.5rem);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.how-track {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.how-step {
  flex: 0 0 100vw;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 6vw, 3rem);
  scroll-snap-align: start;
  opacity: 0.6;
  transform: translateY(18px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.how-step.is-active {
  opacity: 1;
  transform: none;
}

.how-step-title {
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  margin: 0;
}

.how-step-art {
  display: grid;
  place-items: center;
  min-height: 160px;
}

.how-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand-primary);
}

.how-step-body {
  margin: 0;
  color: rgba(244, 247, 251, 0.78);
  font-size: 1.05rem;
}

.how-progress {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  justify-content: center;
}

.how-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1);
  transition: transform 0.2s ease, background 0.2s ease;
  border: none;
  cursor: pointer;
}

.how-dot:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.how-dot.is-active {
  background: #00e0c7;
  transform: scale(1.35);
}

.how-controls {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 0 1.5rem 1rem;
}

.how-prev,
.how-next {
  padding: 0.5rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.how-prev:hover,
.how-prev:focus-visible,
.how-next:hover,
.how-next:focus-visible {
  background: rgba(0, 224, 199, 0.18);
  border-color: rgba(0, 224, 199, 0.32);
}

.how-prev:disabled,
.how-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .how-header {
    position: static;
    padding: 1.5rem 1.25rem 1rem;
    border-bottom: none;
  }

  .how-viewport {
    overflow-x: hidden;
    overflow-y: visible;
    height: auto;
  }

  .how-track {
    display: block;
  }

  .how-step {
    width: 100%;
    flex: none;
    scroll-snap-align: none;
    padding: 2rem 1.5rem;
  }

  .how-controls {
    justify-content: space-between;
    padding: 0 0 1rem;
  }
}


.align-center { text-align: center; }

.max-56ch { max-width: 56ch; }

.mt-space-5 { margin-top: var(--space-5); }
.mt-space-6 { margin-top: var(--space-6); }
.mt-space-7 { margin-top: var(--space-7); }

.breadcrumb {
  font-size: 0.875rem;
  color: var(--brand-border);
  margin: var(--space-5) 0;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  gap: var(--space-2);
  padding: 0;
  margin: 0;
}

.breadcrumb li + li::before {
  content: "/";
  margin: 0 var(--space-2);
  color: var(--brand-border);
}

.breadcrumb a {
  text-decoration: none;
  color: inherit;
}

.breadcrumb a:hover,
.breadcrumb a:focus {
  text-decoration: underline;
}

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


.howit-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(12px, 3vh, 32px) var(--space-5);
  display: grid;
  grid-template-columns: 1fr 560px;
  gap: clamp(20px, 3vw, 40px);
  align-items: stretch;
  min-height: calc(100svh - var(--nav-h));
  box-sizing: border-box;
}

@supports not (height: 100svh) {
  .howit-hero {
    min-height: calc(100vh - var(--nav-h));
  }
}

.howit-hero > *:first-child { margin-top: 0; }
.howit-hero > *:last-child { margin-bottom: 0; }

.howit-hero__intro {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  height: 100%;
  box-sizing: border-box;
}

.howit-hero__module {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
}

.howit-hero__intro > *:first-child { margin-top: 0; }
.howit-hero__intro > *:last-child  { margin-bottom: 0; }

.howit-hero__intro .bullet-list {
  margin-top: clamp(12px, 1.6vh, 18px);
  margin-bottom: 0;
}

.howit-card {
  --e: cubic-bezier(.22, .61, .36, 1);
  display: grid;
  grid-template-rows: auto auto auto auto auto;
  gap: var(--space-4);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
  padding: clamp(12px, 1.6vh, 18px);
  height: auto;
  max-height: none;
  box-sizing: border-box;
}

.howit-card__title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(18px, 2.2vw, 24px);
  margin: 0;
}

.howit-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: calc(var(--radius) - 4px);
  margin-bottom: var(--space-3);
}

.howit-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.howit-card__caption {
  color: #d4af37;
  margin-top: var(--space-3);
  font-size: 0.95rem;
}

.howit-card__hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--brand-border);
  text-align: center;
}

.howit-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-rows: min-content;
  gap: var(--space-3);
  align-content: start;
  min-height: 0;
}

.howit-steps li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.18s ease;
  flex: 0 0 auto;
}

.howit-steps [aria-selected="true"] {
  outline: 2px solid var(--brand-primary);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 600;
}

.howit-card.is-changing .howit-card__media,
.howit-card.is-changing .howit-steps,
.howit-card.is-changing .howit-card__caption {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.28s var(--e), transform 0.28s var(--e);
}

.howit-card.ready .howit-card__media,
.howit-card.ready .howit-steps,
.howit-card.ready .howit-card__caption {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.28s var(--e), transform 0.28s var(--e);
}

@media (max-width: 980px) {
  .howit-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .howit-card__media {
    aspect-ratio: auto;
  }

  body.page-howit {
    overflow: auto;
    height: auto;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 50%;
  top: var(--space-4);
  transform: translateX(-50%);
  width: auto;
  height: auto;
  padding: var(--space-2) var(--space-3);
  background: rgba(11, 18, 32, 0.9);
  color: #fff;
  border-radius: var(--radius);
  z-index: 1000;
}

/* Pay layout */
.page-pay .pay {
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  place-items: center;
  padding: var(--space-6);
}

.pay__card {
  width: min(780px, 100%);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
  padding: var(--space-6);
  box-shadow: var(--shadow-1);
}

.pay__head h1 {
  margin-bottom: var(--space-2);
}

.pay__sub {
  color: var(--brand-border);
  margin: var(--space-2) 0 var(--space-4);
}

.pay__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: end;
}

.pay__form .field:nth-child(3) {
  grid-column: 1 / -1;
}

.pay__form .btn {
  grid-column: 1 / -1;
}

.pay__notes {
  margin: var(--space-5) 0 0;
  color: var(--brand-border);
  padding-left: 1.2em;
}

.pay__notes li + li {
  margin-top: var(--space-2);
}

@media (max-width: 720px) {
  .pay__form {
    grid-template-columns: 1fr;
  }
}

.popup {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--space-6);
  background: rgba(11, 18, 32, 0.78);
  backdrop-filter: blur(4px);
  z-index: 900;
}

.popup[hidden] {
  display: none;
}

.popup__panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  padding: var(--space-6);
  width: min(420px, 100%);
  text-align: center;
  box-shadow: var(--shadow-1);
}

.popup__panel h2 {
  margin-bottom: var(--space-3);
}

.popup__panel p {
  margin-bottom: var(--space-4);
}

/* Onsite iframe modal */
.popup {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(3, 7, 20, 0.6);
  backdrop-filter: blur(6px);
  z-index: 1000;
}

.popup[hidden] {
  display: none;
}

.popup__panel {
  width: min(980px, 96vw);
  max-height: 92vh;
  border-radius: 16px;
  border: 1px solid var(--brand-border, rgba(255, 255, 255, 0.12));
  background: rgba(255, 255, 255, 0.04);
}

.popup__panel--frame {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.popup__panel--frame iframe {
  display: block;
  width: 100%;
  height: min(88vh, 760px);
  border: 0;
  background: #0b1220;
}

.popup__close {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 28px;
  line-height: 1;
  background: transparent;
  border: 0;
  color: #e8eefc;
  cursor: pointer;
}

@media (max-width: 640px) {
  .popup__panel {
    width: 96vw;
  }

  .popup__panel--frame iframe {
    height: 88vh;
  }
}

/* --- Coinbase overlay anti-flicker --- */
.cc-overlay { position: fixed; inset: 0; z-index: 9999; display: none; }
.cc-overlay.is-open { display: block; }

.cc-backdrop {
  position: absolute; inset: 0;
  background: rgba(6,12,20,.66);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}

.cc-frame {
  position: absolute; inset: 3.5rem 2rem 2rem;
  border-radius: 16px; overflow: hidden;
  background: #0a0f14;             /* prevents a blue-ish flash */
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
}

.cc-iframe {
  width: 100%; height: 100%; border: 0;
  opacity: 0; visibility: hidden;              /* hidden until we say so */
  transition: opacity 140ms ease;
  background: #0a0f14 !important;
  color-scheme: dark;
  will-change: opacity;
  -webkit-transform: translateZ(0);
}
.cc-iframe.is-visible { opacity: 1; visibility: visible; }

.cc-skel {
  position: absolute; inset: 0;
  background: #0a0f14;
  display: grid; place-items: center;
  opacity: 1; transition: opacity 140ms ease;
}
.cc-skel.fade-out { opacity: 0; pointer-events: none; }
.cc-skel .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.25);
  animation: cc-pulse 900ms infinite ease-in-out;
}
@keyframes cc-pulse {
  0%,100% { transform: scale(.9); opacity:.5 }
  50%     { transform: scale(1.15); opacity:.9 }
}

.cc-close {
  position: absolute; top: .75rem; right: .75rem;
  width: 32px; height: 32px; border: 0; border-radius: 999px;
  font-size: 20px; line-height: 32px; cursor: pointer;
  color: #c9d6e8; background: rgba(255,255,255,.06);
}

@media (max-width:640px){
  .cc-frame { inset: 2.5rem .75rem .75rem; border-radius: 12px; }
}

/* Coinbase modal refinements */
.cc-overlay { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; }
.cc-backdrop { position: absolute; inset: 0; background: rgba(6,10,14,.60); backdrop-filter: blur(2px); }
.cc-frame { position: relative; width: min(920px, 95vw); height: min(85vh, 780px); background: #0b1220; border-radius: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.45); overflow: hidden; }
.cc-close { position: absolute; top: 10px; right: 12px; z-index: 4; border: 0; background: rgba(255,255,255,.06); color: #cfd6e4; width: 32px; height: 32px; border-radius: 10px; cursor: pointer; }
.cc-iframe { width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .22s ease-out; display: block; background: #0a0f14; }
.cc-iframe.is-visible { opacity: 1; }
.cc-skel { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; transition: opacity .18s ease-out; }
.cc-skel.fade-out { opacity: 0; }
.cc-skel .dot { width: 12px; height: 12px; border-radius: 50%; background: #27e0c0; animation: cc-pulse .9s ease-in-out infinite; }
.cc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
@keyframes cc-pulse { 0%,100%{ transform: scale(.8); opacity:.75 } 50%{ transform: scale(1.25); opacity:1 } }
