﻿/* ==========================================================================
   ATJ Liquidity

   Visual system ported from ofye.org - the reference Gustav wants matched.
   Values below are their actual computed ones, not approximations:

     nav links      rounded-full px-4 py-2, hover fills slate-100
     eyebrow        border-red-200 bg-red-50 text-red-600 tracking-[0.28em] 11px
     primary CTA    rounded-full bg-red-600 px-7 py-3.5, hover red-500
     secondary CTA  rounded-full border-slate-200 px-7 py-3.5, hover bg-white
     page wash      linear-gradient(180deg, rgba(255,251,235,.75), #fff 38%)
     hero panel     radial red glow over linear #081124 -> #020617
     body           white, text slate-950, Inter

   The accent is ONE custom property (--accent, from config.js theme). Red is
   ofye's brand colour; changing that single value re-skins the whole site if
   ATJ ever wants to differentiate.
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Overwritten per-page from config.js theme */
  --accent: #dc2626;
  --accent-hover: #ef4444;
  --accent-soft: #fef2f2;
  --accent-line: #fecaca;

  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;

  --amber: #fbbf24;
  --amber-tint: #fffbeb;
  --ink: #030712;

  --ok: #047857;
  --ok-soft: #ecfdf5;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --err: #b91c1c;
  --err-soft: #fef2f2;

  --r-pill: 999px;
  --r-card: 1.5rem;
  --r-lg: 2rem;
  --r-md: 0.875rem;
  --r-sm: 0.5rem;

  --container: 1152px;
  --gutter: 1rem;

  --shadow-sm: 0 1px 2px rgba(2, 6, 23, 0.04);
  --shadow-md: 0 4px 16px -4px rgba(2, 6, 23, 0.08), 0 1px 3px rgba(2, 6, 23, 0.04);
  --shadow-lg: 0 24px 48px -20px rgba(2, 6, 23, 0.18), 0 2px 8px rgba(2, 6, 23, 0.04);
  --shadow-panel: 0 32px 64px -28px rgba(2, 6, 23, 0.45);

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    'Liberation Mono', monospace;
}

@media (min-width: 640px) {
  :root { --gutter: 1.5rem; }
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--slate-950);
  background: #fff;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* The hidden attribute only sets display:none at the UA level, so ANY explicit
   display rule silently beats it - .steps{display:flex} kept the step bar
   visible after JS hid it. This makes hidden actually mean hidden. */
[hidden] { display: none !important; }

h1, h2, h3, h4, p, figure, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.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;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 3rem; }
@media (min-width: 1024px) { .section { padding-block: 4.5rem; } }

.section-head { max-width: 44rem; margin-bottom: 2.5rem; }
.section-head .index { display: none; }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

.h1 {
  font-size: clamp(2.5rem, 1.5rem + 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.h2 {
  font-size: clamp(1.875rem, 1.3rem + 2.2vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.h3 {
  font-size: 1.0625rem;
  line-height: 1.35;
  letter-spacing: -0.014em;
  font-weight: 650;
}

.lede {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.65;
  color: var(--slate-600);
}

.muted { color: var(--slate-500); }
.small { font-size: 0.875rem; line-height: 1.55; }

.micro {
  font-size: 0.6875rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--slate-500);
}

/* The eyebrow pill. ofye's exact recipe. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  padding: 0.5rem 1rem;
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.mono { font-family: var(--font-mono); font-size: 0.8125rem; font-variant-ligatures: none; }
.tnum { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   Buttons - everything is a pill
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease,
              box-shadow .18s ease;
}

.btn[disabled] { opacity: .55; pointer-events: none; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: transparent;
  color: var(--slate-800);
  border-color: var(--slate-200);
}
.btn-ghost:hover { border-color: var(--slate-300); background: #fff; }

/* On the dark featured tier card. */
.btn-invert { background: #fff; color: var(--slate-950); }
.btn-invert:hover { background: var(--slate-100); }

.btn-lg { padding: 0.875rem 1.75rem; font-size: 0.9375rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }
.btn-block { display: flex; width: 100%; }

/* Tertiary: white pill with an icon, like their "Join Telegram". */
.btn-outline {
  background: #fff;
  color: var(--slate-800);
  border-color: var(--slate-200);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: var(--slate-300); color: var(--slate-950); }
.btn-outline svg { width: 1rem; height: 1rem; color: #229ed9; }

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--slate-200);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 4.5rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  margin-right: auto;
  line-height: 1;
}
.brand-name {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--slate-950);
}
.brand-rule { display: none; }
.brand-sub {
  font-size: 0.5625rem;
  font-weight: 650;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin-top: 0.25rem;
  margin-right: -0.34em;
}
.brand:hover .brand-sub { color: var(--accent); }

/* Pill nav links - hover fills, matching the reference exactly. */
.nav-links { display: none; gap: 0.25rem; align-items: center; }
@media (min-width: 880px) { .nav-links { display: flex; } }

.nav-links a {
  border-radius: var(--r-pill);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-600);
  transition: background-color .16s ease, color .16s ease;
}
.nav-links a:hover { background: var(--slate-100); color: var(--slate-950); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero-wrap {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
/* Warm amber wash fading to white at 38%. Horizontal inset stays 0 - a
   negative value here once pushed the document wider than the viewport. */
.hero-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.75), #ffffff 38%);
  pointer-events: none;
}

.hero {
  display: grid;
  gap: 2.5rem;
  padding-block: 2.5rem 3rem;
}
@media (min-width: 1024px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 3.5rem;
    padding-block: 3.5rem 4.5rem;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-tertiary { margin-top: 1rem; }
.hero-tertiary .small { margin-top: 0.625rem; color: var(--slate-500); }

.hero-note {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--slate-500);
}

/* --------------------------------------------------------------------------
   Hero showcase - dark navy panel with a red glow, holding the PnL stack.
   Ported from their hero graphic container.
   -------------------------------------------------------------------------- */

.showcase {
  position: relative;
  border-radius: var(--r-lg);
  padding: 1.25rem;
  /* The offset neighbour cards must be clipped by the panel, as in the
     reference - otherwise they bleed past its rounded edge and the deck
     stops reading as contained. */
  overflow: hidden;
  background:
    radial-gradient(circle at top, color-mix(in srgb, var(--accent) 18%, transparent), transparent 28%),
    linear-gradient(180deg, #081124 0%, #020617 100%);
  box-shadow: var(--shadow-panel);
}

/* Brand watermark, top-left of the panel - the reference puts its logo here. */
.showcase-brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  padding: 0.5rem 0.5rem 1.25rem;
  user-select: none;
}
.showcase-brand span {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.32);
}
.showcase-brand .sub {
  font-size: 0.5625rem;
  font-weight: 650;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.22);
  margin-top: 0.3125rem;
  margin-right: -0.34em;
}

/* The card stack. Neighbours sit behind and to the side of the active card,
   scaled down and dimmed, so the panel reads as a deck being flipped through
   rather than a single image swapping out. */
.rotator {
  position: relative;
  padding-bottom: 1.75rem;
}

/* The deck drifts gently up and down, like a game item waiting to be picked
   up. The animation lives on the container, NOT on the cards: the cards use
   transform for their prev/active/next positions, and animating transform on
   the same element would fight those and cause them to jump. */
.stack {
  position: relative;
  aspect-ratio: 1520 / 1080;
  perspective: 1200px;
  animation: deck-float 4.5s ease-in-out infinite;
  will-change: transform;
}
.rotator:hover .stack { animation-duration: 2.8s; }

@keyframes deck-float {
  0%, 100% { transform: translateY(-0.45rem); }
  50%      { transform: translateY(0.45rem); }
}

.stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8);
  /* Default: parked out of sight behind the deck. */
  opacity: 0;
  transform: scale(0.82);
  z-index: 0;
  pointer-events: none;
  transition: opacity .5s ease, transform .5s ease;
}

/* ONE card at a time, filling the panel.
   Neighbours stay in the DOM - the rotator logic is unchanged and they remain
   preloaded for an instant swap - but sit directly behind the active card,
   barely offset, so they read as the edge of a deck rather than as two more
   cards competing for space. The big green number is the whole message here;
   give it the room. */
.stack img.prev,
.stack img.next {
  opacity: 0.3;
  z-index: 1;
  transform: scale(0.965) translateY(0.55rem);
}

.stack img.active {
  opacity: 1;
  transform: scale(1);
  z-index: 3;
  pointer-events: auto;
}
.rotator:hover .stack img.active { transform: scale(1.015); }

.rot-dots {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: center;
  gap: 0.375rem;
  z-index: 2;
}
.rot-dots button {
  width: 0.375rem;
  height: 0.375rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background-color .2s ease, width .2s ease;
}
.rot-dots button.active { background: #fff; width: 1rem; border-radius: var(--r-pill); }
.rot-dots button:hover { background: rgba(255, 255, 255, 0.7); }


.spec-list { display: grid; }
.spec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6875rem 0;
  border-top: 1px solid var(--slate-100);
  font-size: 0.875rem;
}
.spec-row dt { color: var(--slate-500); flex: none; }
.spec-row dd { margin: 0; text-align: right; font-weight: 550; color: var(--slate-900); }

.card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-card);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}
.card-tight {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   Value grid
   -------------------------------------------------------------------------- */

.value-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.value-item {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-card);
  padding: 1.5rem 1.375rem;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.value-item:hover { border-color: var(--slate-300); box-shadow: var(--shadow-md); }
.value-item h3 { margin-bottom: 0.4375rem; }
.value-item p { color: var(--slate-600); font-size: 0.9375rem; }

/* --------------------------------------------------------------------------
   How it works - the one dark band
   -------------------------------------------------------------------------- */

.band {
  border-radius: var(--r-lg);
  padding: 2.25rem 1.75rem;
  color: #fff;
  background:
    radial-gradient(circle at top, color-mix(in srgb, var(--accent) 18%, transparent), transparent 28%),
    linear-gradient(180deg, #081124 0%, #020617 100%);
  box-shadow: var(--shadow-panel);
}
@media (min-width: 860px) { .band { padding: 2.75rem 3rem; } }
.band h2 { color: #fff; }
.band > div > p { color: rgba(255, 255, 255, 0.62); margin-top: 0.75rem; max-width: 42rem; }

.band-steps {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  margin-top: 2.25rem;
}
.band-step { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 1rem; }
.band-step .n {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}
.band-step h3 { color: #fff; font-size: 1rem; margin-bottom: 0.25rem; }
.band-step p { color: rgba(255, 255, 255, 0.6); font-size: 0.875rem; margin-top: 0; }

/* --------------------------------------------------------------------------
   Stats / results (config-gated)
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}
.stat {
  border: 1px solid var(--slate-200);
  border-radius: var(--r-card);
  padding: 1.375rem 1.5rem;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.stat .v {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--accent);
}
.stat .l { font-size: 0.8125rem; color: var(--slate-500); margin-top: 0.375rem; }

.results-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.result {
  border: 1px solid var(--slate-200);
  border-radius: var(--r-card);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.result img { width: 100%; border-bottom: 1px solid var(--slate-200); }
.result-body { padding: 1rem 1.125rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.result .pair { font-weight: 650; }
.result .pnl { font-weight: 700; font-variant-numeric: tabular-nums; }
.result .pnl.up { color: var(--ok); }
.result .pnl.down { color: var(--err); }

/* --------------------------------------------------------------------------
   Tiers
   -------------------------------------------------------------------------- */

.tier-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) { .tier-grid { grid-template-columns: repeat(3, 1fr); } }

.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  padding: 1.875rem 1.625rem;
  box-shadow: var(--shadow-md);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.tier:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

/* Featured: amber ring on a warm tint, exactly the reference's treatment. */
.tier.featured {
  border-color: var(--amber);
  background: var(--amber-tint);
  box-shadow: 0 0 0 1px var(--amber), var(--shadow-lg);
}

.tier-badge {
  position: absolute;
  top: -0.8125rem;
  right: 1.625rem;
  background: var(--amber);
  color: #4a2c00;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.375rem 0.8125rem;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
}

.tier-label {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}

.tier-name { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; margin-top: 0.5rem; }

.tier-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 1rem;
}
.tier-price .amt {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.tier-price .per {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--slate-500);
}

.tier-blurb {
  margin-top: 0.875rem;
  font-size: 0.9375rem;
  color: var(--slate-600);
  min-height: 2.9rem;
}

/* Filled circle-ticks in the accent, the reference's feature-row treatment. */
.tier-includes {
  margin-top: 1.375rem;
  padding-top: 1.375rem;
  border-top: 1px solid var(--slate-200);
  display: grid;
  gap: 0.8125rem;
  font-size: 0.9375rem;
  color: var(--slate-700);
  flex: 1;
  align-content: start;
}
.tier-includes li { display: flex; align-items: flex-start; gap: 0.6875rem; }
.tier-includes svg {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.125rem;
  color: var(--accent);
}
.tier.featured .tier-includes { border-top-color: rgba(180, 83, 9, 0.18); }

.tier .btn { margin-top: 1.75rem; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq { display: grid; gap: 0.625rem; align-content: start; }
@media (min-width: 900px) { .faq { grid-template-columns: 1fr 1fr; gap: 0.625rem 1rem; } }

.faq details {
  border: 1px solid var(--slate-200);
  border-radius: var(--r-card);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s ease;
}
.faq details:hover,
.faq details[open] { border-color: var(--slate-300); }

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.0625rem 1.375rem;
  font-weight: 600;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: none;
  width: 0.5625rem; height: 0.5625rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq .answer { padding: 0 1.375rem 1.25rem; color: var(--slate-600); font-size: 0.9375rem; }

/* --------------------------------------------------------------------------
   Closing CTA band - the reference ends every sub-page with one of these so
   no page is a dead end.
   -------------------------------------------------------------------------- */

.cta-band {
  max-width: 44rem;
  margin: 3.5rem auto 0;
  border-radius: var(--r-lg);
  background: var(--accent);
  color: #fff;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 720px) {
  .cta-band {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem 2.75rem;
  }
}
.cta-band .h2 { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.cta-eyebrow {
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.625rem;
}
.cta-btn {
  background: #fff;
  color: var(--accent);
  min-width: 12rem;
  flex: none;
}
.cta-btn:hover { background: var(--slate-100); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--slate-200);
  background: rgba(255, 255, 255, 0.8);
  padding-block: 2.5rem 3rem;
  margin-top: 2rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: 0.875rem; color: var(--slate-500); }
.footer-links a:hover { color: var(--accent); }
.footer-legal {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--slate-100);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--slate-500);
  max-width: 52rem;
}

/* --------------------------------------------------------------------------
   Checkout
   -------------------------------------------------------------------------- */

.checkout { max-width: 40rem; margin-inline: auto; padding-block: 2.5rem 4rem; }

/* --------------------------------------------------------------------------
   Checkout: two columns, main flow + a persistent order summary.
   The standard shop arrangement, because it is what people already know -
   they can always see what they are buying, what it costs, and get back to
   change any of it.
   -------------------------------------------------------------------------- */

.co-wrap {
  max-width: 62rem;
  margin-inline: auto;
  padding-block: 2rem 4rem;
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 940px) {
  .co-wrap {
    grid-template-columns: 1fr 20.5rem;
    gap: 2.5rem;
  }
  .co-side { position: sticky; top: 6rem; }
}

.co-back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.co-back:hover { text-decoration: underline; }

/* Order summary */
.summary {
  border: 1px solid var(--slate-200);
  border-radius: var(--r-card);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.summary-head {
  padding: 1.125rem 1.25rem;
  border-bottom: 1px solid var(--slate-200);
  background: var(--slate-50);
  font-weight: 700;
  font-size: 0.9375rem;
}
.summary-body { padding: 0.5rem 1.25rem 1.25rem; }

.sum-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--slate-100);
  font-size: 0.875rem;
}
.sum-row:last-of-type { border-bottom: 0; }
.sum-row dt { color: var(--slate-500); flex: none; }
.sum-row dd { margin: 0; text-align: right; font-weight: 600; }
.sum-row .change {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.125rem;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.sum-row .change:hover { text-decoration: underline; }

.sum-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 1rem;
  border-top: 2px solid var(--slate-200);
}
.sum-total .l { font-weight: 700; }
.sum-total .v { font-weight: 800; font-size: 1.375rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.sum-total .sub { display: block; font-size: 0.75rem; font-weight: 500; color: var(--slate-500); text-align: right; margin-top: 0.125rem; }

.sum-assure {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--slate-100);
  display: grid;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--slate-500);
}
.sum-assure li { display: flex; gap: 0.4375rem; align-items: flex-start; }
.sum-assure svg { flex: none; width: 0.875rem; height: 0.875rem; margin-top: 0.1875rem; color: var(--ok); }

/* Pay step */
.pay-grid { display: grid; gap: 1.25rem; }

.pay-amount {
  text-align: center;
  padding: 1.5rem 1.25rem 1.25rem;
  border-bottom: 1px solid var(--slate-200);
}
.pay-amount .n {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}
.pay-amount .sym { color: var(--accent); }
.pay-amount .usd { font-size: 0.875rem; color: var(--slate-500); margin-top: 0.375rem; }

.pay-net {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  margin-top: 0.75rem;
  padding: 0.3125rem 0.75rem;
  border-radius: var(--r-pill);
  background: var(--slate-100);
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--slate-700);
}

.steps {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.8125rem;
  color: var(--slate-400);
  flex-wrap: wrap;
}
.steps .s { display: inline-flex; align-items: center; gap: 0.4375rem; }
.steps .s .dot {
  width: 1.375rem; height: 1.375rem;
  border-radius: 50%;
  border: 1px solid var(--slate-300);
  display: grid; place-items: center;
  font-size: 0.6875rem; font-weight: 650;
}
.steps .s.active { color: var(--slate-950); font-weight: 600; }
.steps .s.active .dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.steps .s.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps .sep { flex: 1; min-width: 0.75rem; height: 1px; background: var(--slate-200); }

.field { display: grid; gap: 0.4375rem; margin-bottom: 1.125rem; }
.field label { font-size: 0.875rem; font-weight: 600; }
.field .hint { font-size: 0.8125rem; color: var(--slate-500); }

.input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--r-md);
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.input.mono { font-family: var(--font-mono); font-size: 0.8125rem; }
.input[aria-invalid='true'] { border-color: var(--err); }

.choice-grid {
  display: grid;
  gap: 0.625rem;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}

.choice {
  position: relative;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-md);
  padding: 0.875rem 1rem;
  cursor: pointer;
  background: #fff;
  text-align: left;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.choice:hover { border-color: var(--slate-300); }
.choice[aria-pressed='true'] {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent);
}
.choice .t { font-weight: 650; font-size: 0.9375rem; display: block; }
.choice .d { font-size: 0.75rem; color: var(--slate-500); margin-top: 0.125rem; display: block; }

.paybox {
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  background: var(--slate-50);
}

.copyrow { display: flex; align-items: stretch; gap: 0.5rem; margin-top: 0.4375rem; }
.copyrow .input { flex: 1; min-width: 0; }

.qr {
  width: 168px;
  height: 168px;
  border-radius: var(--r-md);
  border: 1px solid var(--slate-200);
  background: #fff;
  padding: 0.5rem;
  margin-inline: auto;
}

.notice {
  border-radius: var(--r-md);
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  line-height: 1.55;
  border: 1px solid transparent;
}
.notice.info { background: var(--accent-soft); border-color: var(--accent-line); color: var(--slate-800); }
.notice.ok   { background: var(--ok-soft);   border-color: #a7f3d0; color: #065f46; }
.notice.warn { background: var(--warn-soft); border-color: #fde68a; color: #92400e; }
.notice.err  { background: var(--err-soft);  border-color: #fecaca; color: #991b1b; }
.notice a { text-decoration: underline; }

.divider { height: 1px; background: var(--slate-200); margin-block: 1.5rem; }

.spinner {
  width: 0.875rem; height: 0.875rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: inline-block;
  vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   Admin
   -------------------------------------------------------------------------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--slate-200); border-radius: var(--r-card); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; white-space: nowrap; }
th, td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--slate-100); }
th {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-500);
  font-weight: 700;
  background: var(--slate-50);
}
tbody tr { transition: background-color .14s ease; }
tbody tr:hover { background: var(--slate-50); }
tbody tr:last-child td { border-bottom: 0; }

.pill {
  display: inline-block;
  padding: 0.1875rem 0.5625rem;
  border-radius: var(--r-pill);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pill.pending  { background: var(--slate-100); color: var(--slate-600); }
.pill.detected { background: var(--warn-soft); color: var(--warn); }
.pill.paid     { background: var(--warn-soft); color: var(--warn); }
.pill.invited  { background: var(--ok-soft); color: var(--ok); }
.pill.expired  { background: var(--err-soft); color: var(--err); }

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
