﻿/* ==========================================================================
   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: #d72c0d;
  --err-soft: #fff0f0;

  --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; }
}
/* The gutter plateaued at 24px from 640px all the way up - phone spacing on a
   laptop. */
@media (min-width: 1024px) {
  :root { --gutter: 2.5rem; }
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 8rem;
}

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(--slate-900);
  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: 0 4rem; }
@media (min-width: 1024px) { .section { padding-block: 0 7rem; } }

.section-head { max-width: 44rem; margin-bottom: 2.5rem; }
.section-head .index { display: none; }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

/* line-height was 1.02, below Inter's own 1.21em content box, so descenders
   on a two-line headline collided with the ascenders beneath. */
.h1 {
  font-size: clamp(2.5rem, 1.5rem + 4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(1.875rem, 1.3rem + 2.2vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
}

/* Was 17px against a 44px h2 - a 2.59x jump then nothing, so every card
   title and bullet sat in one undifferentiated band. */
.h3 {
  font-size: 1.25rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  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);
}

/* Eyebrow.
   Deliberately NOT the bordered pill with interpunct dots. That treatment is
   on thousands of generated landing pages and reads as one instantly.
   This is the editorial version: a short rule, then a small letterspaced
   label. The rule anchors it to the headline below instead of leaving it
   floating in a capsule, and there is no border, no fill, no dots. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: var(--accent);
  flex: none;
}

.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; }

.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);
}

/* Panel header: watermark left, source label right. Top rather than bottom
   because the dots live at the bottom, and because a label above the card is
   read before the card instead of after it. */
.showcase-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.5rem 1.25rem;
}

.showcase-label {
  flex: none;
  font-size: 0.625rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-pill);
  padding: 0.3125rem 0.6875rem;
  white-space: nowrap;
}

/* Brand watermark, top-left of the panel - the reference puts its logo here. */
.showcase-brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  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
   -------------------------------------------------------------------------- */

/* No align-items:start here - it sizes each card to its own content, which
   stops .tier-includes{flex:1} ever expanding and leaves the three CTAs
   lined up only by coincidence of copy length. */
.tier-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@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);
}

/* 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
   -------------------------------------------------------------------------- */

/* align-ITEMS, not just align-content.
   Grid items stretch to fill their row by default, so opening one <details>
   in the left column made the row taller and the right column's box grew with
   it - showing an empty expanded panel that looked like a second FAQ had
   opened blank. align-items:start keeps each card its own height.
   (align-content positions the whole grid; align-items positions each item
   inside its row. Only the second one fixes this.) */
.faq {
  display: grid;
  gap: 0.625rem;
  align-content: start;
  align-items: 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); }
/* 12px across 832px was ~136 characters per line, double the target - which
   reads as burial on a page taking irreversible payment. */
.footer-legal {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--slate-100);
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--slate-600);
  max-width: 32rem;
}

/* --------------------------------------------------------------------------
   Checkout
   -------------------------------------------------------------------------- */

.checkout { max-width: 40rem; margin-inline: auto; padding-block: 2.5rem 4rem; }

/* --------------------------------------------------------------------------
   Checkout - built to Shopify's conventions, because that is the checkout
   almost everyone has already used and therefore already trusts.
   What that actually means, concretely:
     - two columns, order summary on the RIGHT on a TINTED panel with a
       hairline down its left edge (the tint is the single biggest reason
       theirs reads as a checkout and a plain white sidebar does not)
     - line items with a thumbnail, quantity badge, name, variant, price
     - breadcrumbs, not numbered step pills
     - large inputs (~52px) with floating labels
     - one full-width dark action button per step
   -------------------------------------------------------------------------- */

.co-wrap {
  max-width: 66rem;
  margin-inline: auto;
  padding-block: 1.5rem 4rem;
  display: grid;
  gap: 0;
  align-items: start;
}
@media (min-width: 940px) {
  .co-wrap {
    grid-template-columns: 1fr 24rem;
    gap: 0;
    /* stretch, not start: the rail has to run the full height of the row or
       the tint reads as a floating grey box rather than a column. The sticky
       behaviour moves to .summary inside it. */
    align-items: stretch;
  }
  .co-main { padding-right: 3.5rem; }
  .co-side {
    position: relative;
    /* The hairline + tint that makes the panel read as a summary rail. */
    border-left: 1px solid var(--slate-200);
    padding: 0 0 0 3.5rem;
    margin-left: -1px;
  }
  .co-side .summary { position: sticky; top: 5.5rem; }
}

/* Breadcrumb. Shopify uses this rather than numbered circles. */
.co-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--slate-500);
  margin-bottom: 2rem;
}
.co-crumbs .c { white-space: nowrap; }
.co-crumbs .c.done { color: var(--accent); }
.co-crumbs .c.done:hover { text-decoration: underline; cursor: pointer; }
.co-crumbs .c.active { color: var(--slate-950); font-weight: 600; }
.co-crumbs .sep { color: var(--slate-300); }

.co-section-title {
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}

.co-back {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.co-back svg { width: 0.875rem; height: 0.875rem; }
.co-back:hover span { text-decoration: underline; }

/* Chevrons sized to the text they sit in, never a stray glyph. */
.co-crumbs .sep svg { width: 0.75rem; height: 0.75rem; display: block; }
.co-crumbs .sep { display: inline-flex; align-items: center; }
.btn svg { width: 1em; height: 1em; flex: none; }

/* Order summary rail. On mobile it becomes a tinted card above the form,
   which is also what Shopify does. */
/* The tint is what makes a summary read as a summary rather than as more
   page. box-shadow paints it out to the viewport edge without extra markup.
   The SPREAD is the load-bearing part: `100vw 0 0 <colour>` with no spread
   just moves a 384px box 100vw to the right, i.e. off-screen, which is why
   the rail looked untinted. Spread 100vw pulls the shadow's left edge back
   onto the element, and clip-path stops it bleeding left over the form. */
.summary { background: transparent; }
@media (min-width: 940px) {
  .co-side {
    background: var(--slate-50);
    box-shadow: 100vw 0 0 100vw var(--slate-50);
    clip-path: inset(0 -100vw 0 0);
  }
}
/* On mobile the summary must come FIRST. Source order puts it after the form,
   so a phone buyer pressed Continue on $1,200 with the total off-screen. */
@media (max-width: 939px) {
  .co-side { order: -1; }
}

@media (max-width: 939px) {
  .summary {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--r-md);
    padding: 1.25rem;
    margin-bottom: 2rem;
  }
}

.summary-head {
  font-size: 0.9375rem;
  font-weight: 650;
  margin-bottom: 1.25rem;
  list-style: none;
}
.summary-head::-webkit-details-marker { display: none; }
.summary-head-total { display: none; }

/* Desktop: the summary is never a disclosure, so the bar is inert text and
   must not offer a pointer or a chevron. */
@media (min-width: 940px) {
  .summary-head { cursor: default; pointer-events: none; }
}

/* Mobile: one tappable row - label, total, chevron. */
@media (max-width: 939px) {
  .summary-head {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    margin-bottom: 0;
    color: var(--accent);
  }
  .summary-head-label { font-weight: 600; }
  .summary-head-total {
    display: block;
    margin-left: auto;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--slate-950);
  }
  /* Chevron drawn from a border, never a text glyph. */
  .summary-head-label::after {
    content: '';
    display: inline-block;
    width: 0.4375rem;
    height: 0.4375rem;
    margin-left: 0.4375rem;
    vertical-align: 0.125rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translate(-1px, -1px);
    transition: transform 0.15s ease;
  }
  .summary[open] .summary-head-label::after {
    transform: rotate(-135deg) translate(-1px, -1px);
  }
  .summary[open] .summary-head { margin-bottom: 1.25rem; }
  /* With the bar collapsed the card is a single row, so the padding that
     frames an expanded summary is too much. */
  .summary:not([open]) { padding-block: 1rem; }
}

/* Line item: thumbnail, name, price. */
.sum-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--slate-200);
}
.sum-thumb {
  position: relative;
  flex: none;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--r-md);
  border: 1px solid var(--slate-200);
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
/* The quantity bubble Shopify puts on the corner of every thumbnail. */
.sum-thumb::after {
  content: '1';
  position: absolute;
  top: -0.4375rem;
  right: -0.4375rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.25rem;
  border-radius: var(--r-pill);
  background: var(--slate-500);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 650;
  line-height: 1.25rem;
  text-align: center;
}
.sum-item .meta { flex: 1; min-width: 0; }
/* These are spans; without display:block the name and the variant run
   together on one line and wrap mid-phrase. */
.sum-item .name { display: block; font-size: 0.875rem; font-weight: 600; line-height: 1.3; }
.sum-item .variant {
  display: block;
  font-size: 0.75rem;
  color: var(--slate-500);
  margin-top: 0.1875rem;
  line-height: 1.35;
}
.sum-item .price { font-size: 0.875rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.sum-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4375rem 0;
  font-size: 0.875rem;
}
.sum-row dt { color: var(--slate-600); flex: none; }
.sum-row dd { margin: 0; text-align: right; font-weight: 500; }
.sum-row .change {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  margin-left: 0.5rem;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.sum-row .change:hover { text-decoration: underline; }

.sum-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--slate-200);
}
.sum-total .l { font-weight: 600; font-size: 1rem; }
.sum-total .v {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.sum-total .sub {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--slate-500);
  text-align: right;
  margin-top: 0.125rem;
}

.sum-assure {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--slate-200);
  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); }

/* Larger, airier form fields - Shopify inputs are ~52px, not 42px. */
.co-main .input { padding: 0.875rem 1rem; font-size: 0.9375rem; border-radius: 0.5rem; }
.co-main .field { margin-bottom: 1rem; }
.co-main .field label { font-size: 0.8125rem; font-weight: 500; color: var(--slate-600); }
.co-main .choice { padding: 1rem; border-radius: 0.5rem; }

/* Shopify does not box its checkout form - the fields sit straight on the
   page. A bordered card around them adds a frame that fights the summary rail
   and makes the whole column read as a widget rather than a page. */
.co-main > section > .card {
  border: 0;
  box-shadow: none;
  padding: 0;
  background: transparent;
}
.co-main > section > .card > .divider { margin-block: 1.75rem; }

/* The step's primary action, full width and unmissable. */
.co-main #to-network { margin-top: 1.5rem; padding-block: 1rem; font-size: 0.9375rem; }

/* 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;
}
/* Focus is ink; invalid is red. Previously both were red, so a correctly
   focused field looked rejected. */
.input:focus {
  outline: none;
  border-color: var(--slate-900);
  box-shadow: 0 0 0 1px var(--slate-900);
}
.input.mono { font-family: var(--font-mono); font-size: 0.8125rem; }
.input[aria-invalid='true'] { border-color: var(--err); box-shadow: 0 0 0 1px 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; }
}
