/* BidSweep - night-shift operations console.
 *
 * Hand-written, no framework. One accent (mint) carries every action; amber
 * and red only ever mean "maybe" and "no", the same as in the product's own
 * verdicts, so colour never decorates - it reports.
 *
 * Layout order matches public/index.html: tokens, base, type, buttons, nav,
 * hero + sweep, stats, free check, steps, map, email, trades, pricing, FAQ,
 * CTA, footer, motion.
 */

/* ----------------------------------------------------------------- tokens */

:root {
  --bg: #0a0b0d;
  --surface: #121418;
  --surface-2: #15181d;
  --surface-3: #1b1f26;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --ink: #e8eaed;
  --muted: #9aa0a6;
  --mint: #3ddc97;
  --mint-dim: rgba(61, 220, 151, 0.12);
  --mint-line: rgba(61, 220, 151, 0.32);
  --amber: #f5b544;
  --amber-dim: rgba(245, 181, 68, 0.12);
  --red: #e5737a;

  --radius: 14px;
  --radius-lg: 20px;
  --container: 1120px;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow: 0 24px 60px -32px rgba(0, 0, 0, 0.9);
}

/* ------------------------------------------------------------------- base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The soft radial glow the whole page sits in. Fixed and inert. */
body::before {
  content: '';
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 70vh;
  background: radial-gradient(60% 60% at 50% 0%, rgba(61, 220, 151, 0.1), transparent 70%),
    radial-gradient(45% 45% at 80% 10%, rgba(80, 120, 255, 0.06), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

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

a {
  color: var(--mint);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.section--plain {
  border-top: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--ink);
  padding: 12px 18px;
  border: 1px solid var(--mint-line);
  border-radius: 10px;
  z-index: 60;
}

.skip:focus {
  left: 16px;
  top: 16px;
}

/* ------------------------------------------------------------------- type */

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.25rem, 5.4vw, 3.6rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
}

h3 {
  font-size: 1.12rem;
}

p {
  margin: 0;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  max-width: 60ch;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint);
  margin: 0 0 18px;
}

.eyebrow--muted {
  color: var(--muted);
}

.section__head {
  max-width: 68ch;
  margin-bottom: 52px;
}

.section__head p {
  margin-top: 16px;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}

.note {
  color: var(--muted);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------- controls */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 550;
  font-size: 0.97rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
    border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  will-change: transform;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--mint);
  color: #05140d;
  box-shadow: 0 10px 34px -14px rgba(61, 220, 151, 0.7);
}

.btn--primary:hover {
  background: #54e8a8;
  box-shadow: 0 14px 40px -12px rgba(61, 220, 151, 0.8);
}

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

.btn--ghost:hover {
  border-color: var(--mint-line);
  background: rgba(61, 220, 151, 0.07);
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}

.pill--bid {
  color: var(--mint);
  background: var(--mint-dim);
  border-color: var(--mint-line);
}

.pill--maybe {
  color: var(--amber);
  background: var(--amber-dim);
  border-color: rgba(245, 181, 68, 0.3);
}

.pill--example {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.card--hover:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

/* -------------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 11, 13, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.nav.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(10, 11, 13, 0.88);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: 1.05rem;
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9rem;
}

.nav__links a {
  color: var(--muted);
}

.nav__links a:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav__cta {
  padding: 9px 16px;
  font-size: 0.88rem;
}

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

/* ------------------------------------------------------------------- hero */

.hero {
  padding: clamp(56px, 9vw, 104px) 0 72px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

@media (min-width: 1000px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
    gap: 60px;
  }
}

.hero h1 .accent {
  color: var(--mint);
}

.hero .lede {
  margin-top: 22px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.85rem;
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tick {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: var(--mint);
}

/* ------------------------------------------------- hero sweep animation */

.sweep {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), #0e1013);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}

.sweep__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.sweep__title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.14);
}

.sweep__stage {
  position: relative;
  height: 430px;
}

@media (max-width: 560px) {
  .sweep__stage {
    height: 352px;
  }
}

.sweep__stream {
  position: absolute;
  inset: 0;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  /* The rows are meant to be unreadable: thousands of notices going past. */
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 84%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 84%, transparent);
}

.row {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 15px;
  flex: 0 0 15px;
  opacity: 0.4;
}

.row i {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: rgba(232, 234, 237, 0.16);
}

.row i:nth-child(1) {
  width: 34px;
  background: rgba(232, 234, 237, 0.1);
}

.row--hit i {
  background: rgba(61, 220, 151, 0.45);
}

.sweep__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 128px;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(61, 220, 151, 0.07) 62%,
      rgba(61, 220, 151, 0.22) 94%, rgba(61, 220, 151, 0.9));
  box-shadow: 0 0 26px rgba(61, 220, 151, 0.35);
  pointer-events: none;
}

.sweep__cards {
  position: absolute;
  inset: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
}

.bid {
  opacity: 0;
  background: linear-gradient(180deg, rgba(27, 31, 38, 0.96), rgba(18, 20, 24, 0.96));
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 1);
  backdrop-filter: blur(3px);
}

.bid__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}

.bid__title {
  font-size: 0.92rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin: 0 0 6px;
  display: block;
}

.bid__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  color: var(--muted);
  font-size: 0.76rem;
}

.bid__meta b {
  color: var(--ink);
  font-weight: 500;
}

.sweep__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.sweep__count b {
  color: var(--ink);
}

/* ------------------------------------------------------------------ stats */

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (min-width: 820px) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.stat {
  background: var(--surface);
  padding: 26px 22px;
}

.stat__value {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.stat__value span {
  color: var(--mint);
}

.stat__label {
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 8px;
}

/* ------------------------------------------------------------- free check */

.check {
  position: relative;
}

.glass {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(30, 35, 43, 0.9), rgba(16, 18, 22, 0.92));
  padding: clamp(22px, 4vw, 38px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* The spotlight: a soft mint wash from the top edge of the panel. */
.glass::before {
  content: '';
  position: absolute;
  inset: -1px -1px auto;
  height: 180px;
  background: radial-gradient(60% 100% at 50% 0%, rgba(61, 220, 151, 0.14), transparent 75%);
  pointer-events: none;
}

.glass > * {
  position: relative;
}

.field {
  display: block;
  margin-bottom: 20px;
}

.field__label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.zip {
  width: 100%;
  background: rgba(10, 11, 13, 0.7);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: 0.14em;
  padding: 16px 18px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.zip::placeholder {
  color: rgba(154, 160, 166, 0.45);
}

.zip:focus {
  outline: none;
  border-color: var(--mint-line);
  box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.12);
}

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

.segmented__option {
  position: relative;
}

.segmented input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.segmented label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  height: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease),
    background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.segmented label:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.segmented input:checked + label {
  color: var(--ink);
  border-color: var(--mint-line);
  background: var(--mint-dim);
}

.segmented input:focus-visible + label {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

.segmented .icon {
  width: 26px;
  height: 26px;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.segmented input:checked + label .icon {
  color: var(--mint);
}

@media (max-width: 520px) {
  .segmented {
    grid-template-columns: minmax(0, 1fr);
  }

  .segmented label {
    flex-direction: row;
    align-items: center;
    gap: 13px;
    padding: 13px 15px;
  }

  .segmented .icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
  }
}

.check__submit {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.check__submit .btn {
  padding: 15px 30px;
  font-size: 1rem;
}

.results {
  margin-top: 26px;
}

.results__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: 20px;
}

.results__count {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
  color: var(--mint);
}

.results__list {
  display: grid;
  gap: 10px;
}

.result {
  display: block;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  color: var(--ink);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
    background-color 0.25s var(--ease);
}

.result:hover {
  transform: translateY(-2px);
  border-color: var(--mint-line);
  background: #171b21;
}

.result__title {
  display: block;
  color: var(--ink);
  font-weight: 550;
  font-size: 0.98rem;
  line-height: 1.4;
}

.result__title:hover {
  color: var(--mint);
  text-decoration: none;
}

.result__meta {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
}

.result__link {
  display: inline-block;
  margin-top: 11px;
  font-size: 0.82rem;
  font-weight: 550;
}

.result__meta b {
  color: var(--ink);
  font-weight: 500;
}

.spinner {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid rgba(61, 220, 151, 0.25);
  border-top-color: var(--mint);
  animation: spin 0.8s linear infinite;
  flex: 0 0 17px;
}

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

.state {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.92rem;
}

.state--warn {
  border-color: rgba(245, 181, 68, 0.3);
  background: var(--amber-dim);
  color: #f6cf8e;
}

.upsell {
  margin-top: 20px;
  border: 1px solid var(--mint-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(61, 220, 151, 0.1), rgba(61, 220, 151, 0.02));
  padding: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.upsell p {
  font-weight: 550;
}

.upsell .note {
  font-weight: 400;
  margin-top: 4px;
}

/* ------------------------------------------------------------------ steps */

.steps {
  display: grid;
  gap: 20px;
  counter-reset: step;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
}

.step {
  position: relative;
  padding-top: 30px;
}

.step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.step::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(61, 220, 151, 0.14);
}

.step__num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--mint);
  text-transform: uppercase;
}

.step h3 {
  margin: 12px 0 10px;
}

.step p {
  color: var(--muted);
}

/* -------------------------------------------------------------------- map */

.map__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 1000px) {
  .map__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 56px;
  }
}

.map__stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: radial-gradient(70% 70% at 50% 40%, rgba(61, 220, 151, 0.07), transparent 70%),
    var(--surface);
  padding: 18px;
  box-shadow: var(--shadow);
}

.map__inner {
  position: relative;
  aspect-ratio: 74 / 83;
  max-width: 460px;
  margin: 0 auto;
}

.map__base,
.map__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  justify-content: center;
}

.map__legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.key {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 8px;
}

.key--in {
  background: var(--mint);
}

.key--out {
  background: rgba(154, 160, 166, 0.5);
}

.key--ring {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border-radius: 50%;
  border: 1px solid var(--mint-line);
  background: rgba(61, 220, 151, 0.08);
}

.facts {
  display: grid;
  gap: 14px;
  margin-top: 30px;
  padding: 0;
  list-style: none;
}

.facts li {
  display: flex;
  gap: 12px;
  color: var(--muted);
}

.facts b {
  color: var(--ink);
  font-weight: 550;
}

/* ------------------------------------------------------------------ email */

.mail {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mail__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.mail__lights {
  display: flex;
  gap: 6px;
}

.mail__lights i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: block;
}

.mail__path {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mail__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 940px) {
  .mail__body {
    grid-template-columns: 268px minmax(0, 1fr);
  }
}

.inbox {
  border-right: 1px solid var(--line);
  padding: 14px;
  display: none;
}

@media (min-width: 940px) {
  .inbox {
    display: block;
  }
}

.inbox__head {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 8px 12px;
}

.mailrow {
  display: block;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  margin-bottom: 4px;
}

.mailrow--active {
  background: var(--surface-3);
  border-color: var(--line);
}

.mailrow__from {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 550;
}

.mailrow__when {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--muted);
  font-weight: 400;
}

.mailrow__subject {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mailrow--unread .mailrow__from::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  flex: 0 0 6px;
  margin-right: 2px;
}

.mail__reading {
  padding: 16px;
  background: #0d0f12;
}

/* The email is 640px of fixed-width table markup, because that is what an
 * email is. Rather than clip it on a phone, the iframe is rendered at its
 * natural width and scaled down by app.js, the way a mail client previews a
 * message. Without JS it simply shows the left of the email, which is still
 * the part that matters. */
.mail__viewport {
  position: relative;
  overflow: hidden;
  height: 560px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.mail__frame {
  width: 700px;
  height: 1020px;
  border: 0;
  background: var(--bg);
  display: block;
  transform-origin: top left;
}

/* ----------------------------------------------------------------- trades */

.trades {
  display: grid;
  gap: 20px;
}

@media (min-width: 860px) {
  .trades {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.trade__art {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(61, 220, 151, 0.1), rgba(10, 11, 13, 0.4) 60%),
    var(--surface-2);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  overflow: hidden;
}

.trade__art .icon {
  width: 72px;
  height: 72px;
  color: var(--mint);
}

.trade__art::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.trade h3 {
  margin-bottom: 10px;
}

.trade p {
  color: var(--muted);
  font-size: 0.95rem;
}

.trade__code {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ---------------------------------------------------------------- pricing */

.prices {
  display: grid;
  gap: 22px;
  align-items: start;
}

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

.price {
  position: relative;
  padding: 32px;
}

.price--featured {
  border-color: var(--mint-line);
  background: linear-gradient(180deg, rgba(61, 220, 151, 0.07), rgba(18, 20, 24, 0.9) 42%);
  box-shadow: 0 0 0 1px rgba(61, 220, 151, 0.1), 0 30px 80px -40px rgba(61, 220, 151, 0.4);
}

.price__badge {
  position: absolute;
  top: -11px;
  left: 28px;
  background: var(--mint);
  color: #05140d;
  border: 0;
}

.price__amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0 6px;
}

.price__amount strong {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price__amount span {
  color: var(--muted);
  font-size: 0.95rem;
}

.price ul {
  list-style: none;
  margin: 24px 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.price li {
  display: flex;
  gap: 11px;
  color: var(--muted);
  font-size: 0.93rem;
}

.price li .tick {
  margin-top: 4px;
}

/* -------------------------------------------------------------------- faq */

.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 0;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  cursor: pointer;
  font-weight: 550;
  list-style: none;
  transition: color 0.2s var(--ease);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--mint);
}

.faq summary::after {
  content: '';
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s var(--ease);
  color: var(--muted);
}

.faq details[open] summary::after {
  transform: rotate(225deg) translateY(-2px);
}

.faq__answer {
  padding: 0 26px 24px;
  color: var(--muted);
  max-width: 76ch;
}

/* -------------------------------------------------------------- CTA, foot */

.band {
  position: relative;
  border: 1px solid var(--mint-line);
  border-radius: var(--radius-lg);
  background: radial-gradient(70% 140% at 50% 0%, rgba(61, 220, 151, 0.16), transparent 70%),
    var(--surface);
  padding: clamp(36px, 6vw, 68px);
  text-align: center;
  overflow: hidden;
}

.band h2 {
  max-width: 24ch;
  margin: 0 auto;
}

.band .lede {
  margin: 18px auto 0;
  text-align: center;
}

.band .btn-row {
  justify-content: center;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 44px 0 56px;
  color: var(--muted);
  font-size: 0.9rem;
}

.foot__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  justify-content: space-between;
  align-items: flex-start;
}

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

.foot__links a {
  color: var(--muted);
}

.foot__links a:hover {
  color: var(--ink);
}

.foot__legal {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: rgba(154, 160, 166, 0.78);
  font-size: 0.78rem;
  line-height: 1.7;
  max-width: 92ch;
}

/* --------------------------------------------------------------- document */

/* Privacy and terms: one column, generous measure. */
.doc {
  padding: 64px 0 40px;
  max-width: 76ch;
}

.doc h1 {
  font-size: clamp(2rem, 5vw, 2.7rem);
}

.doc__date {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 14px;
}

.doc section {
  margin-top: 40px;
}

.doc h2 {
  font-size: 1.22rem;
  letter-spacing: -0.01em;
}

.doc p,
.doc li {
  color: var(--muted);
  margin-top: 14px;
}

.doc strong {
  color: var(--ink);
  font-weight: 550;
}

.doc ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.doc li::marker {
  color: var(--mint);
}

.doc .lede {
  color: var(--muted);
  margin-top: 26px;
}

/* ----------------------------------------------------------------- motion */

/* Elements the scroll reveal controls start hidden only when JS is there to
 * show them again, so the page is readable with JS off or broken. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  /* Static final state: everything visible, nothing moving. */
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .bid {
    opacity: 1;
  }

  .sweep__scan {
    opacity: 0;
  }
}
