/* Cruisetto — one stylesheet, no build step.
   Near-black surfaces, cool ink, one warm accent, hairline rules.
   The type is Segoe UI, the same face the game itself draws with. */

:root {
  color-scheme: dark;

  --bg: #0b0d10;
  --bg-deep: #080a0c;
  --surface: #131518;
  --surface-2: #171a1f;

  --line: rgba(199, 212, 230, .13);
  --line-soft: rgba(199, 212, 230, .07);

  --ink: #e6ebf2;
  --dim: #a3adba;
  --faint: #7d8796;

  --gold: #e6b861;
  --cash: #6bc785;
  --blue: #73a1d9;
  --sand: #d99961;
  --rose: #c2707a;
  --violet: #9e8cd9;

  --r: 10px;
  --pill: 999px;
  --wrap: 1160px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::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: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }

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

::selection { background: rgba(230, 184, 97, .28); }

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

[hidden] { display: none !important; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: #14100a;
  padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip:focus { left: 0; z-index: 50; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 28px;
  min-height: 68px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase;
  white-space: nowrap;
}
.brand img { width: 18px; height: 18px; }
.brand:hover { color: var(--ink); }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  font-size: 13.5px; color: var(--dim);
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }

.header-cta { margin-left: 4px; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--pill);
  font: 700 14px/1 var(--font); letter-spacing: .01em;
  white-space: nowrap; cursor: pointer;
  transition: filter .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--gold); color: #14100a; }
.btn-cash { background: var(--cash); color: #06120b; }
.btn-quiet { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { background: var(--surface-2); filter: none; }

.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }

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

.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("assets/map.png") no-repeat right -60px center / auto 140%;
  opacity: .07; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 48%, #000 100%);
}
.hero .wrap { position: relative; }

.hero-grid {
  display: grid; grid-template-columns: 1.04fr .96fr;
  gap: 56px; align-items: center;
  padding-top: 72px; padding-bottom: 64px;
}

.eyebrow {
  margin: 0; font-size: 10.5px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
}

.hero h1 {
  font-size: clamp(42px, 5.2vw, 66px);
  line-height: .98; letter-spacing: -.035em;
  margin: 16px 0 20px;
}
.hero h1 .dim { color: var(--dim); }

.hero .lead {
  font-size: 17.5px; line-height: 1.6; color: var(--dim);
  max-width: 52ch; margin: 0 0 30px;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-shot { margin: 0; }
.hero-shot img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r);
  filter: saturate(.92) contrast(1.02);
}
.hero-shot figcaption {
  margin-top: 10px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--faint);
}

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

.stats { background: var(--bg-deep); border-bottom: 1px solid var(--line-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 24px; border-left: 1px solid var(--line-soft); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b {
  display: block;
  font-size: 30px; line-height: 1.1; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.stat span {
  display: block; margin-top: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--faint);
}

/* ---------------------------------------------------------------- sections */

.section { padding: 88px 0; }
.section-tight { padding: 64px 0; }

.section-head { max-width: 660px; margin-bottom: 40px; }
.section h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.06; letter-spacing: -.03em;
  margin: 10px 0 14px;
}
.section-head p { color: var(--dim); font-size: 16.5px; }

/* ---------------------------------------------------------------- cards */

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

.card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  transition: border-color .15s ease, background-color .15s ease;
}
.card:hover { background: var(--surface-2); border-color: var(--line); }

.card .tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold);
}
.card h3 { font-size: 18px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--dim); font-size: 14.5px; line-height: 1.6; }

.tag-world { color: var(--gold); }
.tag-traffic { color: var(--blue); }
.tag-jobs { color: var(--cash); }
.tag-cars { color: var(--violet); }
.tag-service { color: var(--sand); }
.tag-life { color: var(--rose); }

/* ---------------------------------------------------------------- join */

.join {
  background: var(--bg-deep);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.join-grid {
  display: grid; grid-template-columns: 1.35fr .85fr;
  gap: 56px; align-items: start;
}

.steps { list-style: none; margin: 0; padding: 0; }
.step {
  display: grid; grid-template-columns: 52px 1fr; gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line-soft);
}
.step:first-child { border-top: 0; padding-top: 0; }
.step .n {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  color: var(--faint); padding-top: 4px;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 17px; margin-bottom: 4px; }
.step p { margin: 0; color: var(--dim); font-size: 14.5px; }

.server {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.server h3 { font-size: 15px; letter-spacing: .01em; }
.server dl {
  display: grid; grid-template-columns: auto 1fr; gap: 10px 16px;
  margin: 16px 0 20px;
}
.server dt {
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--faint); padding-top: 2px;
}
.server dd { margin: 0; font-size: 14px; }
.server .btn { width: 100%; }

.copy-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.copy-row code {
  font: 13px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace;
  background: var(--bg); border: 1px solid var(--line-soft);
  padding: 4px 8px; border-radius: 6px;
}
.copy-btn {
  background: none; border: 1px solid var(--line); color: var(--dim);
  font: 700 11px/1 var(--font); letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 10px; border-radius: var(--pill); cursor: pointer;
}
.copy-btn:hover { color: var(--ink); border-color: var(--dim); }

/* ---------------------------------------------------------------- band */

.band {
  position: relative; overflow: hidden;
  padding: 84px 0; text-align: center;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.band::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/map.png") center / cover no-repeat;
  opacity: .055; pointer-events: none;
  -webkit-mask-image: radial-gradient(65% 130% at 50% 50%, #000 0%, transparent 78%);
  mask-image: radial-gradient(65% 130% at 50% 50%, #000 0%, transparent 78%);
}
.band p {
  position: relative; margin: 0 auto; max-width: 24ch;
  font-size: clamp(26px, 3.4vw, 40px); line-height: 1.14; letter-spacing: -.03em;
}
.band span {
  position: relative; display: block; margin-top: 18px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--faint);
}

/* ---------------------------------------------------------------- store teaser */

.store-box {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.store-box h2 {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.08; letter-spacing: -.03em; margin-bottom: 12px;
}
.store-box p { color: var(--dim); font-size: 15px; max-width: 48ch; }
.store-box .small { margin-top: 14px; font-size: 13px; color: var(--faint); max-width: 52ch; }
.store-box code {
  font: 13px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace;
  background: var(--bg); border: 1px solid var(--line-soft);
  padding: 1px 6px; border-radius: 5px; color: var(--ink);
}

.prices { margin: 0 0 22px; }
.price-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 9px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 14px; color: var(--dim);
}
.price-row:first-child { border-top: 0; padding-top: 0; }
.price-row b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- support (Ko-fi embed) */

.kofi-card {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

/* The iframe is Ko-fi's own light panel; the card is the frame it sits in.
   It cannot be restyled (cross-origin) and it is not - no filter, no crop, no overlay. The
   white card is the panel's own look, and a buyer must see exactly the form Ko-fi serves. */
.kofi-slot { min-height: 360px; }
.kofi-embed {
  position: relative; min-height: 360px;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: 10px;
}
.kofi-frame {
  display: block; width: 100%; height: 640px;
  border: 0; background: var(--surface-2);
  transition: height .2s ease;
}
.kofi-embed.is-loading .kofi-frame { visibility: hidden; }
.kofi-embed:not(.is-loading) .kofi-skeleton { display: none; }

.kofi-skeleton {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 28px;
}
.kofi-skeleton span {
  display: block; width: min(300px, 78%); height: 34px; border-radius: 8px;
  background: linear-gradient(90deg, rgba(230, 235, 242, .05), rgba(230, 235, 242, .12), rgba(230, 235, 242, .05));
  background-size: 220% 100%;
  animation: kofi-shimmer 1.3s linear infinite;
}
.kofi-skeleton span:nth-child(2) { width: min(240px, 62%); height: 12px; }
.kofi-skeleton span:nth-child(3) { width: min(220px, 58%); height: 12px; }
.kofi-skeleton p { margin: 6px 0 0; font-size: 12.5px; color: var(--faint); }

@keyframes kofi-shimmer {
  from { background-position: 140% 0; }
  to { background-position: -140% 0; }
}

.kofi-note {
  margin: 12px 2px 2px; font-size: 12px; color: var(--faint); line-height: 1.6;
}
.kofi-note a { color: var(--dim); text-decoration: underline; text-underline-offset: 3px; }

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

.faq { max-width: 840px; }
.faq details { border-top: 1px solid var(--line-soft); padding: 18px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  cursor: pointer; list-style: none;
  font-size: 16.5px; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--faint);
  font-size: 22px; font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 12px 0 0; color: var(--dim); font-size: 15px; max-width: 70ch; }
.faq a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- prose pages */

.prose { max-width: 800px; padding: 64px 24px 32px; }
.prose h1 { font-size: clamp(34px, 4vw, 48px); line-height: 1.04; letter-spacing: -.03em; margin-bottom: 12px; }
.prose .lead { font-size: 16.5px; color: var(--dim); }
.prose h2 {
  font-size: 20px; letter-spacing: -.01em;
  margin: 38px 0 8px;
}
.prose p, .prose li { color: var(--dim); font-size: 15.5px; }
.prose ul { padding-left: 20px; margin: 0 0 1em; }
.prose li { margin: 6px 0; }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.prose a.todo { color: var(--faint); text-decoration: none; }
.prose .btn { text-decoration: none; }
.prose .btn-primary { color: #14100a; }
.prose .btn-quiet { color: var(--ink); }
.prose code {
  font: 13px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace;
  background: var(--surface); border: 1px solid var(--line-soft);
  padding: 1px 6px; border-radius: 5px; color: var(--ink);
}
.prose .updated {
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 26px;
}

/* ---------------------------------------------------------------- store page */

.store-head { padding: 56px 24px 36px; }
.store-head h1 {
  font-size: clamp(36px, 4.4vw, 54px);
  line-height: 1.02; letter-spacing: -.035em; margin-bottom: 14px;
}
.store-head .lead { font-size: 17px; color: var(--dim); max-width: 58ch; }

.tiers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }

.tier {
  display: flex; flex-direction: column;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  transition: border-color .15s ease, background-color .15s ease;
}
.tier:hover { background: var(--surface-2); border-color: var(--line); }

.tier-tag {
  margin: 0 0 14px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--faint);
}
.tier-cash {
  margin: 0; font-size: 26px; line-height: 1.1;
  font-weight: 700; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.tier-unit { margin: 2px 0 0; font-size: 12.5px; color: var(--faint); }
.tier-note { margin: 10px 0 0; font-size: 12.5px; color: var(--dim); }
.tier-price {
  margin: auto 0 0; padding-top: 20px;
  font-size: 24px; font-weight: 700; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.tier-price small {
  margin-left: 5px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .12em; color: var(--faint);
}
.tier .btn { margin-top: 12px; width: 100%; height: 40px; font-size: 13px; }

.tier.is-best { border-color: rgba(230, 184, 97, .45); background: rgba(230, 184, 97, .05); }
.tier.is-best:hover { background: rgba(230, 184, 97, .08); }
.tier.is-best .tier-tag { color: var(--gold); }

.tiers-vip { grid-template-columns: repeat(3, 1fr); }
.tier-vip .tier-cash { color: var(--violet); }
.btn-vip { background: var(--violet); color: #100a1c; }

/* the VIP perk matrix */
.vip-matrix { margin-top: 46px; }
.vip-matrix-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 6px 20px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.vip-matrix-head h3 { font-size: 18px; letter-spacing: -.02em; }
.vip-matrix-head p { margin: 0; color: var(--faint); font-size: 13px; }

.vip-table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
}
.vip-table {
  width: 100%; min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}
.vip-table th, .vip-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  white-space: nowrap;
}
.vip-table th + th, .vip-table td + td { text-align: center; }
.vip-table thead th {
  background: var(--bg);
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--faint);
}
.vip-table thead th small {
  display: block; margin-top: 3px;
  font-size: 11px; font-weight: 600; letter-spacing: 0;
  text-transform: none; color: var(--dim);
}
.vip-table thead th.is-top,
.vip-table thead th.is-top small { color: var(--violet); }
.vip-table tbody th { font-weight: 400; color: var(--dim); }
.vip-table tbody td {
  font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.vip-table td.is-top { background: rgba(158, 140, 217, .06); color: #cdc2ee; }
.vip-table tbody tr:last-child th,
.vip-table tbody tr:last-child td { border-bottom: 0; }
.vip-table tbody tr:hover th,
.vip-table tbody tr:hover td { background: var(--surface-2); }
.vip-table tbody tr:hover td.is-top { background: rgba(158, 140, 217, .1); }

.vip-fine {
  margin: 14px 0 0;
  color: var(--faint); font-size: 12.5px; line-height: 1.7;
  max-width: 78ch;
}

.store-rule {
  margin: 52px 0 26px;
  padding-top: 34px;
  border-top: 1px solid var(--line-soft);
}
.store-rule h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  letter-spacing: -.03em; margin: 8px 0 10px;
}
.store-rule p { color: var(--dim); font-size: 15px; max-width: 62ch; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card {
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
}
.step-card .n {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--faint);
}
.step-card h3 { font-size: 16px; margin: 10px 0 4px; }
.step-card p { margin: 0; color: var(--dim); font-size: 14px; }

.fine {
  margin-top: 34px; padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  color: var(--faint); font-size: 12.5px; line-height: 1.7;
  max-width: 78ch;
}
.fine a { color: var(--dim); text-decoration: underline; text-underline-offset: 3px; }

.notice {
  margin: 0 0 26px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); color: var(--dim); font-size: 14px;
}
.notice strong { color: var(--ink); }
#paynote { margin: 24px 0 0; }

.step-card code {
  font: 12.5px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace;
  background: var(--bg); border: 1px solid var(--line-soft);
  padding: 1px 5px; border-radius: 4px; color: var(--ink);
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  margin-top: 0;
  padding: 56px 0 40px;
  border-top: 1px solid var(--line-soft);
  color: var(--dim); font-size: 13.5px;
}
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.35fr; gap: 36px; }
.foot-grid h4 {
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 12px;
}
.foot-grid a { display: block; padding: 3px 0; color: var(--dim); }
.foot-grid a:hover { color: var(--ink); }
.foot-grid p { margin: 0; }
.foot-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .24em;
  text-transform: uppercase; color: var(--ink); margin-bottom: 12px;
}
.foot-brand img { width: 18px; height: 18px; }
.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px; color: var(--faint);
}

/* a value the operator still has to fill in */
.todo {
  color: var(--faint);
  border-bottom: 1px dashed rgba(199, 212, 230, .3);
  cursor: help;
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; padding-bottom: 52px; }
  .hero-shot { order: 2; max-width: 700px; }
  .hero .lead { max-width: 62ch; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .join-grid { grid-template-columns: 1fr; gap: 36px; }
  .store-box { grid-template-columns: 1fr; gap: 26px; padding: 32px; }
  .kofi-card { max-width: 560px; }
  .tiers:not(.tiers-vip) { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 760px) {
  .site-header .wrap { flex-wrap: wrap; gap: 10px 16px; padding-top: 12px; padding-bottom: 12px; }
  .nav {
    order: 3; width: 100%; margin-left: 0; gap: 22px;
    overflow-x: auto; scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .header-cta { margin-left: auto; }
  .section { padding: 64px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 22px 20px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .steps-grid { grid-template-columns: 1fr; }
  .tiers:not(.tiers-vip) { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .hero .lead { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .tiers, .tiers-vip { grid-template-columns: 1fr; }
  .vip-table th, .vip-table td { padding: 11px 14px; }
  .store-box { padding: 24px; }
  .band { padding: 60px 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .stat b { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .kofi-skeleton span { animation: none; }
}

/* ---------------------------------------------------------------- forms and panels */

.panel {
  padding: 26px;
  margin: 0 0 18px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
}
.panel-spaced { margin-top: 26px; }
.panel-head { max-width: 64ch; margin-bottom: 18px; }
.panel-head h2 { font-size: 20px; letter-spacing: -.01em; margin: 6px 0 8px; }
.panel-head p { margin: 0; color: var(--dim); font-size: 14.5px; line-height: 1.6; }

.panel code, .hint code, .thanks-hint code {
  font: 12.5px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace;
  background: var(--bg); border: 1px solid var(--line-soft);
  padding: 1px 5px; border-radius: 4px; color: var(--ink);
}

.field-row { display: flex; gap: 10px; flex-wrap: wrap; }
.field-row input {
  flex: 1 1 260px; min-width: 0; height: 46px; padding: 0 18px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--pill);
  color: var(--ink); font: 15px/1 var(--font);
}
.field-row input::placeholder { color: var(--faint); }
.field-row input:focus { outline: none; border-color: var(--gold); }
.field-row input.is-bad { border-color: var(--rose); }
.field-row .btn { flex: 0 0 auto; }

.hint { margin: 12px 0 0; font-size: 13px; color: var(--faint); line-height: 1.6; }
.hint a { color: var(--dim); text-decoration: underline; text-underline-offset: 3px; }

.notice.is-bad { border-color: rgba(194, 112, 122, .5); background: rgba(194, 112, 122, .08); color: #e8c6ca; }
.notice.is-good { border-color: rgba(107, 199, 133, .45); background: rgba(107, 199, 133, .07); color: #c8e9d2; }
.notice a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- who is buying */

.who {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 0 0 18px; padding: 12px 18px;
  background: var(--bg-deep); border: 1px solid var(--line-soft);
  border-radius: var(--pill);
  font-size: 13.5px; color: var(--dim);
}
.who b { color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.who-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cash); box-shadow: 0 0 10px rgba(107, 199, 133, .75);
}
.who-change { margin-left: auto; }

.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: 700 11px/1 var(--font); letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); text-decoration: none;
}
.link-btn:hover { color: var(--ink); }

.shop-label { margin: 34px 0 14px; }

/* ---------------------------------------------------------------- thank you */

.thanks {
  position: relative;
  padding: 64px 24px 96px;
}
.thanks-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(58% 46% at 50% 4%, rgba(230, 184, 97, .14) 0%, transparent 72%),
    radial-gradient(40% 40% at 82% 64%, rgba(158, 140, 217, .08) 0%, transparent 72%);
}
.thanks-loading { position: relative; text-align: center; color: var(--faint); font-size: 14px; }

.thanks-card {
  position: relative;
  max-width: 620px; margin: 0 auto;
  padding: 40px 36px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.thanks-card-quiet { border-color: var(--line-soft); box-shadow: none; }

.check {
  width: 64px; height: 64px; margin: 0 auto 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(107, 199, 133, .12);
  border: 1px solid rgba(107, 199, 133, .45);
  color: var(--cash);
  box-shadow: 0 0 34px rgba(107, 199, 133, .2);
}
.check svg { width: 30px; height: 30px; }

.thanks-title {
  font-size: clamp(34px, 5vw, 46px);
  line-height: 1; letter-spacing: -.035em;
  margin: 8px 0 12px;
}
.thanks-product { margin: 0 0 22px; color: var(--dim); font-size: 15px; line-height: 1.6; }
.thanks-product b { color: var(--ink); }

.thanks-amount {
  display: grid; gap: 6px; justify-items: center;
  padding: 24px 0 26px;
  border-top: 1px solid var(--line-soft);
}
.thanks-big {
  font-size: clamp(38px, 6vw, 58px); line-height: 1; font-weight: 700; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #f4d9a0, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.thanks-small {
  font-size: 10.5px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--faint);
}

.receipt { margin: 8px 0 0; text-align: left; border-top: 1px solid var(--line-soft); }
.receipt-row {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.receipt-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--faint);
}
.receipt-value { color: var(--ink); text-align: right; }
.receipt-value .copy-btn { margin-left: 10px; }
.mono {
  font: 12.5px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace;
  word-break: break-all;
}

.thanks-hint { margin: 22px 0 0; font-size: 13px; color: var(--faint); line-height: 1.6; }
.thanks-actions {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-top: 26px;
}

.pulse { display: flex; gap: 8px; justify-content: center; margin: 4px 0 24px; }
.pulse span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); opacity: .22;
  animation: pulse 1.2s ease-in-out infinite;
}
.pulse span:nth-child(2) { animation-delay: .18s; }
.pulse span:nth-child(3) { animation-delay: .36s; }

@keyframes pulse {
  0%, 100% { opacity: .2; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1); }
}

/* ---------------------------------------------------------------- orders */

.orders { padding-bottom: 84px; }

.order-card {
  padding: 22px 24px;
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
}
.order-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.order-name { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.order-sub {
  margin: 4px 0 0; font-size: 13px; color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.order-delivered { margin: 14px 0 0; font-size: 15px; color: var(--cash); }
.order-meta {
  display: grid; gap: 8px;
  margin: 16px 0 0; padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.order-meta > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: baseline; }
.order-meta dt {
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--faint);
}
.order-meta dd { margin: 0; font-size: 13.5px; color: var(--dim); }
.order-link { margin-top: 16px; }

.pill {
  flex: 0 0 auto;
  padding: 5px 12px; border-radius: var(--pill);
  font: 700 10.5px/1.5 var(--font); letter-spacing: .12em; text-transform: uppercase;
  white-space: nowrap;
}
.pill.is-paid { background: rgba(107, 199, 133, .12); color: var(--cash); border: 1px solid rgba(107, 199, 133, .35); }
.pill.is-waiting { background: rgba(230, 184, 97, .1); color: var(--gold); border: 1px solid rgba(230, 184, 97, .35); }
.pill.is-open { background: rgba(158, 140, 217, .12); color: var(--violet); border: 1px solid rgba(158, 140, 217, .35); }

.panel-empty { text-align: center; padding: 44px 26px; }
.panel-empty h2 { font-size: 20px; margin-bottom: 8px; }
.panel-empty p { color: var(--dim); font-size: 14.5px; margin: 0 0 20px; }

.voucher-help { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.voucher-help summary { cursor: pointer; font-size: 13.5px; color: var(--dim); list-style: none; }
.voucher-help summary::-webkit-details-marker { display: none; }
.voucher-help summary::before { content: "+ "; color: var(--faint); }
.voucher-help[open] summary::before { content: "\2013 "; }
.voucher-help p { margin: 12px 0; font-size: 13px; color: var(--faint); }

@media (max-width: 620px) {
  .thanks { padding: 40px 20px 64px; }
  .thanks-card { padding: 30px 22px 24px; }
  .receipt-row { grid-template-columns: 1fr; gap: 4px; }
  .receipt-value { text-align: left; }
  .order-meta > div { grid-template-columns: 1fr; gap: 3px; }
  .order-top { flex-direction: column; gap: 10px; }
}

/* ---------------------------------------------------------------- the payment panel */

html.pay-open { overflow: hidden; }

.pay {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: flex-start; justify-content: center;
  padding: max(18px, 4vh) 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.pay-shade {
  position: fixed; inset: 0;
  background: rgba(5, 7, 9, .78);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.pay-panel {
  position: relative;
  width: 100%; max-width: 760px;
  margin: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .65);
  overflow: hidden;
}

.pay-head {
  position: relative;
  padding: 26px 30px 22px;
  border-bottom: 1px solid var(--line-soft);
}
.pay-head h2 { font-size: 26px; letter-spacing: -.02em; margin: 6px 0 7px; }

/* The order summary, so the panel below reads as the payment step of a purchase, not as a
   profile page that happens to take money. */
.pay-summary { display: grid; gap: 7px; margin-top: 14px; max-width: 440px; }
.pay-line { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.pay-line-label {
  color: var(--faint);
  font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase;
}
.pay-line-value { color: var(--dim); font-size: 14.5px; text-align: right; }
.pay-line-value b { color: var(--ink); font-size: 15px; }
.pay-line-total { padding-top: 8px; border-top: 1px solid var(--line-soft); }
.pay-line-total .pay-line-value b { font-size: 21px; letter-spacing: -.01em; }

.pay-x {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent;
  color: var(--dim); font: 400 22px/1 var(--font);
  cursor: pointer;
}
.pay-x:hover { color: var(--ink); border-color: var(--dim); }

.pay-live { padding: 22px 30px 26px; }

.pay-steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 15px; }
.pay-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.pay-steps p { margin: 0; color: var(--dim); font-size: 14px; line-height: 1.55; }
.pay-steps b { color: var(--ink); }

.pay-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; margin-top: 1px;
  border-radius: 50%;
  background: rgba(230, 184, 97, .12);
  color: var(--gold);
  font: 700 11.5px/1 var(--font);
}

.pay-ref { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.pay-ref code {
  font: 700 15px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: .04em;
  background: var(--bg-deep);
  border: 1px dashed rgba(230, 184, 97, .45);
  border-radius: 8px;
  padding: 9px 13px;
  color: var(--gold);
  user-select: all;
}

.pay-why { margin: 8px 0 0 !important; font-size: 12.5px !important; color: var(--faint) !important; }

/* The amount, as a value the buyer copies instead of retyping: a wrong amount is the most
   common way a panel payment fails to match its order. */
.pay-amount-value {
  font: 700 15px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: .04em;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 13px;
  color: var(--ink);
  user-select: all;
}

.pay-widget { margin: 4px auto 0; max-width: 560px; }
.pay-widget .kofi-slot { min-height: 420px; }

/* ---------------------------------------------------------------- Payhip window */

/* The checkout is a top-level window, not a frame: PayPal refuses to start inside an iframe
   ("could not initiate paypal payment (E008)"). So this card is the pending state - the amount,
   what to do, and a real link back to the window - while the modal polls the order. */
.payhip-card {
  padding: 24px 22px 20px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  text-align: center;
}

.payhip-wait-label {
  margin: 0 0 8px;
  color: var(--faint);
  font: 600 11px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.payhip-wait-amount {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 32px;
  letter-spacing: -.02em;
}
.payhip-wait-amount b { font-weight: 700; }
.payhip-wait-amount span {
  margin-left: 6px;
  color: var(--faint);
  font-size: 15px;
  letter-spacing: .02em;
}

.payhip-wait-text {
  margin: 0 auto 18px;
  max-width: 390px;
  color: var(--dim);
  font-size: 14px;
  line-height: 1.6;
}
.payhip-wait-text.is-live { color: var(--ink); }
.payhip-wait-text.is-warn { color: #f0b45a; }

.payhip-wait-hint {
  margin: 14px auto 0;
  max-width: 360px;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.6;
}

/* The line above the frame: the payment step, not a link to one. */
.payhip-note {
  margin: 0 0 14px;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  color: var(--dim); font-size: 14px; line-height: 1.6;
}
.payhip-note b { color: var(--ink); }

/* The bar directly above the form: the one line that makes the frame a payment step. */
.pay-paybar {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px;
  margin: 0 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.pay-paybar-total { font-size: 19px; letter-spacing: -.01em; }
.pay-paybar-by { color: var(--faint); font-size: 12.5px; }

/* Honest, and one line: Ko-fi's own form says "Tip", and pretending otherwise would be a lie
   in the one place the buyer is about to type a card number. */
.pay-tipnote { margin: 12px 0 0; font-size: 12px; color: var(--faint); line-height: 1.55; }

.pay-direct {
  margin: 0 0 18px;
  padding: 16px 18px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
}
.pay-direct p { margin: 0; color: var(--dim); font-size: 14px; line-height: 1.6; }
.pay-direct b { color: var(--ink); }
.pay-direct-note { margin-top: 8px !important; font-size: 13px !important; }

.pay-status {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 0 0;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  color: var(--dim);
  font-size: 13.5px;
  line-height: 1.5;
}
.pay-dot {
  flex: 0 0 auto;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(230, 184, 97, .55);
  animation: pay-pulse 1.6s ease-in-out infinite;
}
.pay-status.is-bad { color: var(--rose); border-color: rgba(194, 112, 122, .35); }
.pay-status.is-bad .pay-dot { background: var(--rose); box-shadow: none; animation: none; }
.pay-status.is-good { color: var(--cash); }
.pay-status.is-good .pay-dot { background: var(--cash); box-shadow: none; animation: none; }
.pay-status.is-wait { color: var(--gold); }

@keyframes pay-pulse {
  0%, 100% { opacity: .4; }
  50% { opacity: 1; }
}

.pay-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pay-fine { margin: 16px 0 0; font-size: 12.5px; color: var(--faint); line-height: 1.6; }
.pay-fine a { color: var(--dim); text-decoration: underline; text-underline-offset: 3px; }

.pay-done { padding: 34px 30px 28px; text-align: center; }
.pay-check {
  width: 64px; height: 64px; margin: 0 auto 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(107, 199, 133, .12);
  border: 1px solid rgba(107, 199, 133, .45);
  color: var(--cash);
  box-shadow: 0 0 34px rgba(107, 199, 133, .2);
}
.pay-check svg { width: 30px; height: 30px; }
.pay-done h3 { font-size: 28px; letter-spacing: -.02em; margin: 8px 0 10px; }
.pay-done-text { margin: 0 0 16px; color: var(--dim); font-size: 15px; }
.pay-done .receipt { margin: 0 0 4px; }
.pay-done .pay-actions { justify-content: center; }

@media (max-width: 620px) {
  .pay { padding: 0; }
  .pay-panel { border-radius: 0; border-left: 0; border-right: 0; min-height: 100%; }
  .pay-head { padding: 22px 20px 18px; }
  .pay-head h2 { font-size: 22px; }
  .pay-live, .pay-done { padding: 20px 20px 24px; }
  .pay-ref code { font-size: 13px; word-break: break-all; }
}

@media (prefers-reduced-motion: reduce) {
  .pay-dot { animation: none; }
}
