/* King of the Hill
   A dusk sky, one hill, and everything underneath it is the people who lost. */

:root {
  --night: #050506;
  --indigo: #0b0b0d;
  --plum: #15130f;
  --rose: #2a2114;
  --ember: #6e5220;
  --gold: #d8b45a;
  --gold-deep: #a8842c;
  --gold-foil: linear-gradient(180deg, #fbefc4 0%, #e3c46f 38%, #a8842c 68%, #e8cd86 100%);
  --cream: #f4ecdb;
  --cream-dim: rgba(244, 236, 219, 0.62);
  --earth: #0c0b09;
  --earth-deep: #070605;
  --ink: #0c0b09;

  --display: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --mono: 'Jost', 'Futura', 'Avenir Next', system-ui, sans-serif;

  --ridge: max(30svh, 16.7vw, 210px);
  --gutter: clamp(16px, 4vw, 48px);
}

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

html {
  background: var(--earth-deep);
  color: var(--cream);
  font-family: var(--display);
    -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  overflow-x: hidden;
  background: var(--earth-deep);
}

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

h1,
h2,
p,
ol,
blockquote {
  margin: 0;
  padding: 0;
}

ol {
  list-style: none;
}

[hidden] {
  display: none !important;
}

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

/* ---------- demo banner ---------- */

.demo-banner {
  position: relative;
  z-index: 5;
  padding: 8px var(--gutter);
  background: var(--gold);
  color: var(--ink);
  font: 500 0.8rem/1.3 var(--mono);
  text-align: center;
  letter-spacing: 0.04em;
}

/* ---------- the sky ---------- */

.sky {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    var(--night) 0%,
    var(--indigo) 30%,
    var(--plum) 56%,
    var(--rose) 76%,
    var(--ember) 90%,
    #b08a3e 100%
  );
}

.stars {
  position: absolute;
  inset: 0 0 35% 0;
  z-index: -3;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 27% 62%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 41% 9%, #ffe9b8 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 44%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 71% 23%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 83% 71%, #ffe9b8 50%, transparent 51%),
    radial-gradient(2px 2px at 93% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 83%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 49% 78%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 35% 36%, #fff 50%, transparent 51%);
  background-size: 520px 420px;
  -webkit-mask-image: linear-gradient(#000 30%, transparent);
  mask-image: linear-gradient(#000 30%, transparent);
  animation: twinkle 5s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

/* A poster sunburst turning slowly behind the hill. */
.rays {
  position: absolute;
  z-index: -3;
  left: 50%;
  bottom: calc(var(--ridge) * var(--rise, 0.62));
  width: 240vmax;
  aspect-ratio: 1;
  translate: -50% 50%;
  background: repeating-conic-gradient(rgba(216, 180, 90, 0.075) 0 1.5deg, transparent 1.5deg 10deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, 0.5) 22%, transparent 60%);
  mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, 0.5) 22%, transparent 60%);
  animation: turn 240s linear infinite;
}

@keyframes turn {
  to { rotate: 360deg; }
}

.sun {
  position: absolute;
  z-index: -2;
  left: 50%;
  bottom: calc(var(--ridge) * var(--rise, 0.62));
  width: min(42vmin, 380px);
  aspect-ratio: 1;
  translate: -50% 50%;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #fff6d8 0%, #e8c66f 30%, #a8842c 75%, #5c4416 100%);
  box-shadow:
    0 0 50px 10px rgba(216, 180, 90, 0.35),
    0 0 160px 60px rgba(110, 82, 32, 0.4);
}

/* ---------- top bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(14px, 2.4vw, 26px) var(--gutter);
}

.wordmark {
  display: inline-grid;
  justify-items: center;
  gap: 2px;
  color: var(--gold);
  text-decoration: none;
  line-height: 1;
}

/* "I'M THE" in tracked capitals between two hairlines. */
.logo-pre {
  display: flex;
  align-items: center;
  gap: 0.7em;
  font: 500 clamp(0.5rem, 0.75vw, 0.62rem) / 1 var(--mono);
  letter-spacing: 0.42em;
  margin-right: -0.42em;
  text-transform: uppercase;
}

.logo-pre::before,
.logo-pre::after {
  content: '';
  width: 1.8em;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

/* "Richest" in gold-foil italic, with a crown for the dot of the i. */
.logo-main {
  font-family: var(--display);
  font-size: clamp(1.9rem, 2.8vw, 2.5rem);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.04em 0.08em 0.08em;
  background: var(--gold-foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 8px rgba(216, 180, 90, 0.25));
}

.logo-i {
  position: relative;
}

.logo-crown {
  position: absolute;
  left: 50%;
  bottom: 0.7em;
  width: 0.36em;
  translate: -18% 0;
  rotate: 8deg;
  fill: #e8c66f;
}

.watchers {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 241, 214, 0.22);
  border-radius: 999px;
  color: var(--cream-dim);
  font: 400 0.75rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.watchers span {
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(216, 180, 90, 0.7);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  to { box-shadow: 0 0 0 10px rgba(216, 180, 90, 0); }
}

/* ---------- the throne ---------- */

.throne {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: clamp(10px, 1.8vh, 20px);
  padding: clamp(8px, 2vh, 24px) var(--gutter) clamp(20px, 5vh, 56px);
  text-align: center;
}

.reign-clock {
  color: var(--cream-dim);
  font: 400 clamp(0.7rem, 1.1vw, 0.85rem) / 1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.reign-clock time {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.crown {
  width: clamp(44px, 6vw, 72px);
  fill: var(--gold);
  filter: drop-shadow(0 4px 18px rgba(255, 201, 74, 0.55));
  transform-origin: 50% 100%;
  animation: bob 6s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { rotate: -3deg; translate: 0 0; }
  50% { rotate: 3deg; translate: 0 -5px; }
}

.proclamation {
  max-width: min(22ch, 100%);
  font-size: clamp(2.5rem, 7.6vw, 6.6rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
}

.proclamation.medium {
  max-width: min(26ch, 100%);
  font-size: clamp(1.9rem, 5.2vw, 4.4rem);
  line-height: 1.02;
}

.proclamation.long {
  max-width: min(32ch, 100%);
  font-size: clamp(1.55rem, 3.9vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -0.018em;
}

.proclamation.vacant {
  font-style: italic;
  font-weight: 400;
  color: var(--cream-dim);
}

.proclamation::before {
  content: '“';
  color: var(--gold);
}

.proclamation::after {
  content: '”';
  color: var(--gold);
}

.proclamation.vacant::before,
.proclamation.vacant::after {
  content: none;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 14px;
  font: 500 clamp(0.8rem, 1.3vw, 1rem) / 1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.byline .paid {
  color: var(--gold);
}

.byline .paid:empty {
  display: none;
}

.report {
  padding: 4px 8px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: rgba(255, 241, 214, 0.42);
  font: 400 0.68rem/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.report:hover {
  color: var(--cream);
}

.tally .report {
  padding: 0;
}

/* Dethroning: the old words fall off the hill, the new ones land. */
.throne.toppled .proclamation,
.throne.toppled .byline,
.throne.toppled .crown {
  animation: topple 0.55s cubic-bezier(0.6, 0, 0.9, 0.4) forwards;
}

.throne.landed .proclamation,
.throne.landed .byline {
  animation: land 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.throne.landed .crown {
  animation: land 0.7s 0.12s cubic-bezier(0.2, 1.8, 0.4, 1) both, bob 6s 0.9s ease-in-out infinite;
}

@keyframes topple {
  to { opacity: 0; translate: 0 45vh; rotate: 9deg; }
}

@keyframes land {
  from { opacity: 0; translate: 0 -40px; scale: 1.08; }
}

.quake {
  animation: quake 0.5s linear;
}

@keyframes quake {
  20% { translate: -6px 3px; }
  40% { translate: 5px -4px; }
  60% { translate: -4px 2px; }
  80% { translate: 3px -1px; }
}

/* ---------- the gate (call to action, standing on the hill) ---------- */

.gate {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  height: calc(var(--ridge) * 0.74);
  padding: 0 var(--gutter);
  text-align: center;
}

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 8px 8px 26px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(180deg, #f3dc95, var(--gold) 50%, var(--gold-deep));
  box-shadow:
    0 0 0 1px #f8e7b0 inset,
    0 0 0 4px var(--night),
    0 0 0 5px rgba(216, 180, 90, 0.7),
    0 18px 40px rgba(0, 0, 0, 0.6);
  color: var(--ink);
  cursor: pointer;
  overflow: hidden;
  transition: translate 0.12s ease, box-shadow 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 250, 230, 0.6) 50%, transparent 60%);
  translate: -120% 0;
  animation: sheen 4.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sheen {
  0%, 60% { translate: -120% 0; }
  100% { translate: 120% 0; }
}

.cta:hover {
  translate: 0 -2px;
  box-shadow:
    0 0 0 1px #f8e7b0 inset,
    0 0 0 4px var(--night),
    0 0 0 5px var(--gold),
    0 24px 48px rgba(0, 0, 0, 0.65);
}

.cta:active {
  translate: 0 1px;
  box-shadow:
    0 0 0 1px #f8e7b0 inset,
    0 0 0 4px var(--night),
    0 0 0 5px var(--gold),
    0 8px 18px rgba(0, 0, 0, 0.6);
}

.cta:disabled {
  cursor: progress;
  filter: saturate(0.5);
}

.cta-label {
  font: 600 clamp(0.82rem, 1.25vw, 0.98rem) / 1 var(--mono);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cta-price {
  padding: 10px 16px;
  border-radius: 1px;
  background: var(--ink);
  color: var(--gold);
  font: 600 clamp(1.15rem, 1.8vw, 1.4rem) / 1 var(--display);
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cta-price:empty {
  display: none;
}

.cta-price.bumped {
  animation: bump 0.5s cubic-bezier(0.2, 1.8, 0.4, 1);
}

@keyframes bump {
  from { scale: 1.35; background: var(--ember); color: #fff; }
}

.cta-note {
  color: var(--cream-dim);
  font: 400 0.78rem/1.4 var(--mono);
  letter-spacing: 0.03em;
}

/* ---------- the ridge ---------- */

.ridge {
  position: absolute;
  z-index: -1;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: var(--ridge);
  pointer-events: none;
}

.ridge-far {
  fill: #1a1712;
  opacity: 0.75;
}

.ridge-mid {
  fill: #110f0c;
}

.ridge-near {
  fill: var(--earth);
}

.flag rect {
  fill: var(--earth);
}

.pennant {
  fill: #b3203f;
  transform-box: fill-box;
  transform-origin: 0 50%;
  animation: flutter 2.6s ease-in-out infinite;
}

@keyframes flutter {
  0%, 100% { transform: skewY(-5deg) scaleX(1); }
  50% { transform: skewY(6deg) scaleX(0.88); }
}

/* ---------- underground ---------- */

.earth {
  position: relative;
  background:
    radial-gradient(rgba(255, 241, 214, 0.035) 1px, transparent 1.5px) 0 0 / 9px 9px,
    linear-gradient(var(--earth), var(--earth-deep) 900px);
}

.ledger,
.section-head,
.rules,
.colophon,
.bedrock {
  width: min(100% - 2 * var(--gutter), 980px);
  margin-inline: auto;
}

.ledger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 3vw, 40px);
  padding: clamp(28px, 6vw, 64px) 0 clamp(36px, 7vw, 80px);
  text-align: center;
}

.figure {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.figure b {
  color: var(--gold);
  font-size: clamp(1.7rem, 5.4vw, 4rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.figure span {
  color: var(--cream-dim);
  font: 400 clamp(0.62rem, 1.1vw, 0.8rem) / 1.3 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.section-head {
  display: grid;
  gap: 8px;
  padding-bottom: clamp(18px, 3vw, 30px);
}

.section-head h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.section-head p {
  color: var(--cream-dim);
  font: 400 0.85rem/1.5 var(--mono);
}

/* Each fallen king is a layer of rock. */
.strata li {
  --tone: #15130f;
  position: relative;
  margin-top: -7px;
  padding: calc(clamp(16px, 2.6vw, 26px) + 7px) var(--gutter) clamp(16px, 2.6vw, 26px);
  background: var(--tone);
  clip-path: polygon(0 7px, 9% 1px, 23% 6px, 38% 0, 54% 5px, 69% 1px, 84% 7px, 100% 2px, 100% 100%, 0 100%);
}

.strata li:nth-child(4n + 2) {
  --tone: #1a1712;
  clip-path: polygon(0 2px, 12% 7px, 29% 1px, 47% 6px, 61% 0, 77% 6px, 91% 1px, 100% 6px, 100% 100%, 0 100%);
}

.strata li:nth-child(4n + 3) {
  --tone: #13110d;
  clip-path: polygon(0 5px, 15% 0, 33% 7px, 50% 2px, 66% 7px, 81% 0, 100% 5px, 100% 100%, 0 100%);
}

.strata li:nth-child(4n + 4) {
  --tone: #181510;
}

.stratum {
  display: grid;
  grid-template-columns: 4.5ch minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 6px clamp(12px, 3vw, 32px);
  width: min(100%, 980px);
  margin-inline: auto;
}

.stratum .rank {
  color: rgba(255, 241, 214, 0.38);
  font: 400 0.8rem/1.4 var(--mono);
  font-variant-numeric: tabular-nums;
}

.stratum .words {
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.25;
  color: rgba(255, 241, 214, 0.9);
  overflow-wrap: anywhere;
}

.stratum .who {
  display: block;
  margin-top: 6px;
  color: var(--cream-dim);
  font: 400 0.72rem/1.4 var(--mono);
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stratum .tally {
  display: grid;
  justify-items: end;
  gap: 4px;
  font: 400 0.78rem/1.3 var(--mono);
  color: var(--cream-dim);
  white-space: nowrap;
}

.stratum .tally b {
  color: var(--gold);
  font-weight: 500;
  font-size: 0.95rem;
}

.strata li.fresh {
  animation: settle 0.9s cubic-bezier(0.2, 1, 0.3, 1) both;
}

@keyframes settle {
  from { max-height: 0; padding-block: 0; opacity: 0; }
  to { max-height: 400px; }
}

.bedrock {
  padding: clamp(28px, 5vw, 48px) 0;
  color: rgba(255, 241, 214, 0.34);
  font: 400 0.75rem/1.5 var(--mono);
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
}

.strata:not(:empty) + .bedrock {
  border-top: 1px dashed rgba(255, 241, 214, 0.14);
}

/* ---------- rules ---------- */

.rules {
  padding: clamp(40px, 8vw, 96px) 0 clamp(24px, 5vw, 48px);
}

.rules .section-head {
  width: auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(14px, 2.4vw, 24px);
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid rgba(255, 241, 214, 0.14);
  border-radius: 18px;
  background: rgba(255, 241, 214, 0.035);
  color: var(--cream-dim);
  font-size: 1.05rem;
  line-height: 1.45;
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 3rem;
  font-weight: 700;
  line-height: 0.9;
}

.steps b {
  display: block;
  margin-bottom: 4px;
  color: var(--cream);
  font-size: 1.3rem;
  font-weight: 700;
}

.fine {
  margin-top: clamp(20px, 3vw, 32px);
  max-width: 76ch;
  color: rgba(255, 241, 214, 0.5);
  font: 400 0.78rem/1.7 var(--mono);
}

.fine a {
  color: var(--gold);
}

.colophon {
  padding: clamp(32px, 6vw, 72px) 0 calc(clamp(32px, 6vw, 72px) + env(safe-area-inset-bottom));
  color: rgba(255, 241, 214, 0.4);
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  font-style: italic;
  text-align: center;
}

/* ---------- the decree (claim dialog) ---------- */

.decree {
  width: min(100% - 24px, 520px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--cream);
  color: var(--ink);
  box-shadow:
    0 0 0 6px rgba(255, 201, 74, 0.35),
    0 40px 120px rgba(0, 0, 0, 0.7);
  overflow: auto;
}

.decree::backdrop {
  background: rgba(5, 5, 6, 0.82);
  backdrop-filter: blur(6px);
}

.decree[open] {
  animation: unroll 0.35s cubic-bezier(0.2, 1.3, 0.4, 1);
}

@keyframes unroll {
  from { opacity: 0; translate: 0 24px; scale: 0.96; }
}

.decree form {
  position: relative;
  display: grid;
  gap: 16px;
  padding: clamp(22px, 5vw, 36px);
}

.close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(27, 15, 20, 0.08);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.close:hover {
  background: rgba(27, 15, 20, 0.16);
}

.decree-eyebrow {
  color: var(--rose);
  font: 500 0.72rem/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.decree h2 {
  margin-top: -8px;
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.field {
  display: grid;
  gap: 6px;
}

.field-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 500 0.72rem/1.3 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(27, 15, 20, 0.7);
}

.field-label output {
  font-variant-numeric: tabular-nums;
}

.field-label output.over {
  color: #c2182b;
}

.field textarea,
.field input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid rgba(27, 15, 20, 0.2);
  border-radius: 12px;
  background: #fffaf0;
  font-size: 1.05rem;
}

.field textarea {
  min-height: 5.2em;
  resize: vertical;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
}

.field textarea::placeholder,
.field input::placeholder {
  color: rgba(27, 15, 20, 0.35);
  font-style: italic;
  font-weight: 400;
}

.field textarea:focus,
.field input:focus {
  border-color: var(--ink);
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 201, 74, 0.6);
}

.error {
  padding: 10px 14px;
  border-radius: 10px;
  background: #fbdcd6;
  color: #7c1020;
  font: 500 0.82rem/1.4 var(--mono);
}

.cta-pay {
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  margin-top: 4px;
  box-shadow:
    0 0 0 1px #f8e7b0 inset,
    0 0 0 3px var(--cream),
    0 0 0 4px rgba(168, 132, 44, 0.8),
    0 10px 20px rgba(12, 11, 9, 0.2);
}

.decree-note {
  color: rgba(27, 15, 20, 0.6);
  font: 400 0.72rem/1.5 var(--mono);
  text-align: center;
}

/* ---------- the verdict (after paying) ---------- */

.verdict {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(5, 5, 6, 0.86);
  backdrop-filter: blur(8px);
  animation: fade 0.3s ease;
}

@keyframes fade {
  from { opacity: 0; }
}

.verdict-card {
  display: grid;
  justify-items: center;
  gap: 16px;
  width: min(100%, 520px);
  padding: clamp(26px, 6vw, 44px);
  border-radius: 24px;
  background: linear-gradient(170deg, var(--indigo), var(--plum));
  box-shadow:
    0 0 0 1px rgba(255, 241, 214, 0.18),
    0 40px 120px rgba(0, 0, 0, 0.7);
  text-align: center;
}

.verdict-card h2 {
  font-size: clamp(2rem, 7vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.verdict-card p {
  color: var(--cream-dim);
  font-size: 1.1rem;
  line-height: 1.45;
  text-wrap: pretty;
}

.verdict[data-state='checking'] .crown {
  animation: spin 1.4s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}

.verdict[data-state='outbid'] .crown,
.verdict[data-state='failed'] .crown {
  fill: var(--cream-dim);
  filter: none;
  transform-origin: 50% 50%;
  rotate: 168deg;
  animation: none;
}

@keyframes spin {
  to { rotate: 360deg; }
}

.verdict-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
  margin-top: 6px;
}

.verdict-actions .cta {
  padding: 14px 26px;
  font-size: 1.15rem;
  font-weight: 700;
}

.ghost {
  padding: 12px 20px;
  border: 1px solid rgba(255, 241, 214, 0.3);
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  font: 500 0.82rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.ghost:hover {
  background: rgba(255, 241, 214, 0.1);
}

.verdict-actions button:empty {
  display: none;
}

/* ---------- toasts and confetti ---------- */

.toasts {
  position: fixed;
  z-index: 30;
  left: 50%;
  top: calc(14px + env(safe-area-inset-top));
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(100% - 24px, 560px);
  translate: -50% 0;
  pointer-events: none;
}

.toast {
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
  animation: toast-in 0.4s cubic-bezier(0.2, 1.4, 0.4, 1), toast-out 0.4s 4.6s ease forwards;
}

@keyframes toast-in {
  from { opacity: 0; translate: 0 -20px; }
}

@keyframes toast-out {
  to { opacity: 0; translate: 0 -12px; }
}

.confetti {
  position: fixed;
  inset: 0;
  z-index: 40;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------- demo checkout page ---------- */

.demo-checkout {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 24px;
  background: linear-gradient(170deg, var(--night), var(--plum));
  text-align: center;
}

.demo-checkout main {
  display: grid;
  justify-items: center;
  gap: 20px;
  max-width: 520px;
}

.demo-checkout h1 {
  color: var(--gold);
  font-size: clamp(3rem, 12vw, 5rem);
  font-weight: 700;
}

.demo-checkout p {
  font-size: 1.2rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.demo-checkout .demo-tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font: 500 0.75rem/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-checkout .cta {
  padding: 16px 28px;
  font-size: 1.2rem;
  font-weight: 700;
}

.demo-checkout a {
  color: var(--cream-dim);
  font: 400 0.85rem/1 var(--mono);
}

/* ---------- the climb: the hill grows, and the scenery changes ---------- */

.ridge {
  overflow: visible;
}

.ridge-base {
  fill: var(--earth);
}

.mount {
  transform-origin: 1200px 400px;
  transition: transform 1.6s cubic-bezier(0.2, 1.2, 0.3, 1);
}

.flag {
  transform-origin: 1200px 80px;
  transition: transform 1.6s cubic-bezier(0.2, 1.2, 0.3, 1);
}

.ridge-far,
.ridge-mid {
  transition: opacity 1.2s ease, translate 1.2s ease;
}

.sun,
.rays,
.homeworld,
.marble,
.clouds,
.nebula {
  transition: opacity 1.2s ease, bottom 1.6s cubic-bezier(0.2, 1.2, 0.3, 1);
}

.altitude {
  padding: 6px 14px;
  border: 1px solid rgba(255, 201, 74, 0.45);
  border-radius: 999px;
  background: rgba(5, 5, 6, 0.45);
  color: var(--gold);
  font: 500 clamp(0.68rem, 1.1vw, 0.82rem) / 1.2 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

/* Scenery that only exists at some heights. */
.clouds,
.homeworld,
.marble,
.satellite,
.nebula {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.clouds {
  z-index: -1;
  left: -10%;
  right: -10%;
  bottom: 0;
  height: calc(var(--ridge) * 0.7);
  background:
    radial-gradient(ellipse 22% 60% at 12% 78%, rgba(255, 236, 222, 0.95), transparent 70%),
    radial-gradient(ellipse 30% 70% at 34% 92%, rgba(255, 226, 214, 0.9), transparent 70%),
    radial-gradient(ellipse 24% 55% at 58% 74%, rgba(255, 240, 230, 0.95), transparent 70%),
    radial-gradient(ellipse 34% 75% at 80% 95%, rgba(255, 224, 210, 0.9), transparent 70%),
    radial-gradient(ellipse 20% 50% at 96% 70%, rgba(255, 238, 226, 0.9), transparent 70%),
    linear-gradient(transparent 55%, rgba(255, 230, 216, 0.8));
  filter: blur(6px);
  animation: drift 60s ease-in-out infinite alternate;
}

@keyframes drift {
  from { translate: -4% 0; }
  to { translate: 4% 0; }
}

.homeworld {
  z-index: -2;
  left: 50%;
  top: calc(100% - var(--ridge) * 0.62);
  width: 300vmax;
  aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 18% 4% at 42% 3%, rgba(255, 255, 255, 0.8), transparent 70%),
    radial-gradient(ellipse 14% 3% at 58% 5%, rgba(255, 255, 255, 0.7), transparent 70%),
    radial-gradient(ellipse 10% 3% at 50% 2%, rgba(86, 160, 96, 0.8), transparent 70%),
    radial-gradient(circle at 50% 0%, #4ea0ff 0%, #1b5fbf 9%, #0a2a66 22%, #04122e 40%);
  box-shadow:
    0 0 0 3px rgba(150, 210, 255, 0.55),
    0 0 70px 26px rgba(90, 170, 255, 0.5);
}

.marble {
  z-index: -2;
  left: 14%;
  top: 22%;
  width: min(10vmin, 96px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 60% 22% at 40% 30%, rgba(255, 255, 255, 0.85), transparent 70%),
    radial-gradient(ellipse 40% 18% at 65% 65%, rgba(255, 255, 255, 0.75), transparent 70%),
    radial-gradient(circle at 60% 55%, #3f9a5b 0 18%, transparent 19%),
    radial-gradient(circle at 35% 35%, #5cb0ff, #1b5fbf 60%, #0a2a66);
  box-shadow: inset -0.9vmin -0.6vmin 1.6vmin rgba(0, 0, 0, 0.65), 0 0 24px rgba(110, 180, 255, 0.5);
}

.satellite {
  z-index: -2;
  top: 26%;
  left: 0;
  width: 46px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(90deg, #6fa8ff 0 36%, #e9eef7 36% 64%, #6fa8ff 64%);
  box-shadow: 0 0 10px rgba(200, 225, 255, 0.8);
}

.nebula {
  z-index: -3;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 22% 30%, rgba(170, 70, 220, 0.55), transparent 70%),
    radial-gradient(ellipse 45% 38% at 78% 24%, rgba(40, 170, 200, 0.45), transparent 70%),
    radial-gradient(ellipse 60% 40% at 55% 62%, rgba(230, 80, 130, 0.35), transparent 70%);
  filter: blur(20px);
}

/* Clouds and Everest: the lower hills sink away and cloud rolls in. */
.sky[data-stage='clouds'] .clouds {
  opacity: 0.55;
}

.sky[data-stage='clouds'] .ridge-far {
  opacity: 0.4;
}

.sky[data-stage='everest'] {
  background: linear-gradient(180deg, var(--night) 0%, #14120e 40%, #3a2c16 70%, #a07a34 92%, #e8cf8c 100%);
}

.sky[data-stage='everest'] .clouds {
  opacity: 1;
}

.sky:not([data-stage='ground'], [data-stage='clouds']) :is(.ridge-far, .ridge-mid) {
  opacity: 0;
  translate: 0 60px;
}

/* Stratosphere: deep blue above, the haze of the planet below. */
.sky[data-stage='stratosphere'] {
  background: linear-gradient(180deg, #030310 0%, #071040 36%, #123a8a 66%, #4f93d8 88%, #bfe0ff 100%);
}

.sky[data-stage='stratosphere'] .clouds {
  opacity: 0.5;
  height: calc(var(--ridge) * 0.3);
}

.sky[data-stage='stratosphere'] .rays {
  opacity: 0.35;
}

.sky[data-stage='stratosphere'] .sun {
  background: radial-gradient(circle at 50% 40%, #ffffff 0%, #fff3c4 45%, #ffd98a 100%);
  box-shadow: 0 0 60px 20px rgba(255, 255, 255, 0.4), 0 0 160px 70px rgba(150, 200, 255, 0.35);
}

/* Everything from here up is space: black sky, stars everywhere, no sunbeams. */
.sky:is([data-stage='space'], [data-stage='orbit'], [data-stage='moon'], [data-stage='mars'], [data-stage='jupiter'], [data-stage='saturn'], [data-stage='pluto'], [data-stage='interstellar']) {
  background: linear-gradient(180deg, #000 0%, #03030d 62%, #080d22 100%);
}

.sky:is([data-stage='space'], [data-stage='orbit'], [data-stage='moon'], [data-stage='mars'], [data-stage='jupiter'], [data-stage='saturn'], [data-stage='pluto'], [data-stage='interstellar']) .stars {
  inset: 0;
  background-size: 340px 280px;
  -webkit-mask-image: none;
  mask-image: none;
}

.sky:is([data-stage='space'], [data-stage='orbit'], [data-stage='moon'], [data-stage='mars'], [data-stage='jupiter'], [data-stage='saturn'], [data-stage='pluto'], [data-stage='interstellar']) .rays {
  opacity: 0;
}

/* Edge of space and orbit: the curve of the Earth below, the sun a hard white star. */
.sky:is([data-stage='space'], [data-stage='orbit']) .homeworld {
  opacity: 1;
}

.sky[data-stage='orbit'] .homeworld {
  top: calc(100% - var(--ridge) * 0.46);
  width: 210vmax;
}

.sky:is([data-stage='space'], [data-stage='orbit']) .sun {
  left: 82%;
  bottom: 74%;
  width: min(7vmin, 64px);
  background: #fff;
  box-shadow: 0 0 30px 12px rgba(255, 255, 255, 0.85), 0 0 110px 50px rgba(255, 244, 214, 0.35);
}

.sky[data-stage='orbit'] .satellite {
  opacity: 1;
  animation: pass 26s linear infinite;
}

@keyframes pass {
  from { translate: -10vw 6vh; rotate: -8deg; }
  to { translate: 110vw -8vh; rotate: -8deg; }
}

/* Planets sit mostly behind the summit so they never cover the words above it. */
.sky:is([data-stage='moon'], [data-stage='mars'], [data-stage='jupiter'], [data-stage='saturn'], [data-stage='pluto']) .sun {
  translate: -50% 80%;
}

.byline,
.report,
.altitude,
.reign-clock {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}

/* The Moon. */
.sky[data-stage='moon'] .sun {
  width: min(44vmin, 400px);
  background:
    radial-gradient(circle at 30% 34%, rgba(120, 118, 112, 0.55) 0 7%, transparent 8%),
    radial-gradient(circle at 62% 26%, rgba(120, 118, 112, 0.45) 0 5%, transparent 6%),
    radial-gradient(circle at 48% 52%, rgba(120, 118, 112, 0.5) 0 10%, transparent 11%),
    radial-gradient(circle at 74% 58%, rgba(120, 118, 112, 0.4) 0 6%, transparent 7%),
    radial-gradient(circle at 24% 66%, rgba(120, 118, 112, 0.4) 0 4%, transparent 5%),
    radial-gradient(circle at 40% 36%, #f4f1ea 0%, #cfcbc2 55%, #8f8b84 100%);
  box-shadow: 0 0 50px 14px rgba(255, 255, 255, 0.28), inset -3vmin -2vmin 6vmin rgba(0, 0, 0, 0.45);
}

.sky[data-stage='moon'] .marble {
  opacity: 1;
}

/* Mars, with home a pale blue dot. */
.sky[data-stage='mars'] .sun {
  width: min(46vmin, 420px);
  background:
    radial-gradient(ellipse 30% 14% at 36% 40%, rgba(110, 40, 22, 0.55), transparent 70%),
    radial-gradient(ellipse 24% 12% at 64% 58%, rgba(110, 40, 22, 0.5), transparent 70%),
    radial-gradient(ellipse 16% 6% at 50% 6%, rgba(255, 240, 230, 0.9), transparent 70%),
    radial-gradient(circle at 40% 36%, #f08a52 0%, #c9532c 55%, #7a2a16 100%);
  box-shadow: 0 0 60px 16px rgba(240, 120, 70, 0.35), inset -3vmin -2vmin 6vmin rgba(0, 0, 0, 0.5);
}

.sky:is([data-stage='mars'], [data-stage='jupiter'], [data-stage='saturn']) .marble {
  opacity: 1;
  width: 5px;
  background: #9fd0ff;
  box-shadow: 0 0 10px 3px rgba(150, 205, 255, 0.8);
}

/* Jupiter and Saturn: banded giants. */
.sky:is([data-stage='jupiter'], [data-stage='saturn']) .sun {
  width: min(50vmin, 460px);
  background:
    radial-gradient(ellipse 12% 7% at 66% 62%, #b5482a 0 60%, transparent 62%),
    linear-gradient(176deg, #c9a37c 0 12%, #e9d3b2 12% 22%, #b9794f 22% 31%, #ecd9bd 31% 44%, #a8623c 44% 52%, #e3c9a4 52% 63%, #b98558 63% 72%, #e9d6b8 72% 84%, #a9764f 84%);
  box-shadow: 0 0 60px 16px rgba(240, 200, 150, 0.3), inset -4vmin -3vmin 8vmin rgba(0, 0, 0, 0.55);
}

.sky[data-stage='saturn'] .sun {
  width: min(44vmin, 400px);
  background: linear-gradient(176deg, #d9c08a 0 16%, #f0e0b4 16% 30%, #cdb07a 30% 42%, #efe2bd 42% 58%, #c9a96e 58% 70%, #ead9a8 70% 86%, #c2a06a 86%);
}

.sky[data-stage='saturn'] .sun::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 210%;
  height: 46%;
  translate: -50% -50%;
  rotate: -16deg;
  border-radius: 50%;
  border: clamp(8px, 2.2vmin, 22px) solid rgba(236, 219, 170, 0.8);
  box-shadow: 0 0 0 3px rgba(190, 165, 110, 0.6), inset 0 0 0 3px rgba(190, 165, 110, 0.6);
}

/* Pluto and beyond. */
.sky[data-stage='pluto'] .sun {
  width: min(24vmin, 220px);
  background:
    radial-gradient(ellipse 34% 30% at 58% 60%, #f3e8da 0 70%, transparent 72%),
    radial-gradient(circle at 40% 36%, #d8c2aa 0%, #a98c74 60%, #5f4c40 100%);
  box-shadow: 0 0 40px 10px rgba(230, 215, 200, 0.22), inset -2vmin -1.4vmin 4vmin rgba(0, 0, 0, 0.55);
}

.sky[data-stage='pluto'] .nebula {
  opacity: 0.35;
}

.sky[data-stage='interstellar'] .nebula {
  opacity: 1;
}

.sky[data-stage='interstellar'] .sun {
  opacity: 0;
}

/* ---------- the journey strip ---------- */

.journey {
  width: min(100% - 2 * var(--gutter), 980px);
  margin-inline: auto;
  padding-top: clamp(28px, 6vw, 64px);
}

.journey-now {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  margin-bottom: 18px;
}

.journey-now b {
  color: var(--gold);
  font-size: clamp(1.6rem, 4.4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.journey-now span {
  color: var(--cream-dim);
  font: 400 0.82rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.journey-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 241, 214, 0.25) transparent;
}

.journey-track li {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  gap: 4px;
  min-width: 112px;
  padding: 22px 26px 0 0;
  color: rgba(255, 241, 214, 0.42);
}

.journey-track li::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 241, 214, 0.16);
}

.journey-track li::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--earth);
  border: 2px solid rgba(255, 241, 214, 0.3);
}

.journey-track li.passed::before {
  background: var(--gold-deep);
}

.journey-track li:is(.passed, .here)::after {
  border-color: var(--gold);
  background: var(--gold);
}

.journey-track li.here::after {
  box-shadow: 0 0 0 5px rgba(255, 201, 74, 0.25);
}

.journey-track li:is(.passed, .here) {
  color: var(--cream);
}

.journey-track b {
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
}

.journey-track li.here b {
  color: var(--gold);
}

.journey-track span {
  font: 400 0.66rem/1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- small screens ---------- */

@media (max-width: 560px) {
  .ledger {
    gap: 10px;
  }

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

  .stratum .rank {
    display: none;
  }

  .cta-note {
    font-size: 0.68rem;
  }
}

@media (max-height: 560px) {
  .sky {
    --ridge: max(16.7vw, 190px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Old Money details ---------- */

.altitude {
  border-radius: 0;
  background: transparent;
  border-color: rgba(216, 180, 90, 0.5);
}

.byline,
.reign-clock,
.altitude,
.cta-note,
.watchers {
  letter-spacing: 0.26em;
}

.proclamation::before,
.proclamation::after {
  font-style: normal;
}

.watchers {
  border-radius: 0;
  border-color: rgba(216, 180, 90, 0.3);
}

.section-head h2,
.decree h2,
.verdict-card h2,
.journey-now b {
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.steps li {
  border-radius: 0;
  border-color: rgba(216, 180, 90, 0.22);
}

.steps li::before {
  font-style: italic;
  font-weight: 500;
}

.decree,
.verdict-card {
  border-radius: 2px;
}

.decree {
  box-shadow: 0 0 0 1px rgba(216, 180, 90, 0.6), 0 0 0 7px var(--night), 0 0 0 8px rgba(216, 180, 90, 0.35), 0 40px 120px rgba(0, 0, 0, 0.8);
}

.verdict-card {
  background: linear-gradient(170deg, #0f0e0b, #070605);
  box-shadow: 0 0 0 1px rgba(216, 180, 90, 0.45), 0 40px 120px rgba(0, 0, 0, 0.8);
}

.field textarea,
.field input {
  border-radius: 0;
}

.field textarea {
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
}

.ghost {
  border-radius: 0;
  border-color: rgba(216, 180, 90, 0.4);
}

.toast {
  border-radius: 0;
  font-style: italic;
  font-size: 1.15rem;
}

.demo-checkout h1 {
  font-style: italic;
}

/* ---------- legal pages and links ---------- */

.colophon-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 18px;
  font: 400 0.74rem/1.6 var(--mono);
  font-style: normal;
  letter-spacing: 0.06em;
}

.colophon-links a,
.legal-foot a {
  color: rgba(255, 241, 214, 0.55);
  text-decoration: none;
  border-bottom: 1px solid rgba(216, 180, 90, 0.35);
}

.colophon-links a:hover,
.colophon-links a:focus-visible,
.legal-foot a:hover,
.legal-foot a:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.decree-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.legal {
  background: linear-gradient(175deg, var(--night), var(--earth-deep) 60%);
}

.legal-head {
  display: flex;
  justify-content: center;
  padding: clamp(28px, 5vw, 48px) var(--gutter) 0;
}

.legal-body {
  width: min(100% - 2 * var(--gutter), 720px);
  margin: clamp(32px, 6vw, 64px) auto 0;
  color: rgba(244, 236, 219, 0.82);
  font: 400 0.95rem/1.75 var(--mono);
  overflow-wrap: anywhere;
}

.legal-body h1 {
  color: var(--cream);
  font: italic 600 clamp(2.2rem, 6vw, 3.4rem) / 1.05 var(--display);
}

.legal-body h2 {
  margin: 2.4em 0 0.6em;
  color: var(--gold);
  font: 600 clamp(1.3rem, 3vw, 1.6rem) / 1.2 var(--display);
}

.legal-body p,
.legal-body ul {
  margin: 0 0 1em;
}

.legal-body ul {
  padding-left: 1.2em;
}

.legal-body li {
  margin-bottom: 0.6em;
}

.legal-body li::marker {
  color: var(--gold-deep);
}

.legal-body b {
  color: var(--cream);
  font-weight: 500;
}

.legal-body a {
  color: var(--gold);
  text-underline-offset: 2px;
}

.legal-updated {
  margin-top: 12px !important;
  color: rgba(255, 241, 214, 0.45);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  width: min(100% - 2 * var(--gutter), 720px);
  margin: clamp(48px, 8vw, 80px) auto 0;
  padding: 24px 0 calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(216, 180, 90, 0.18);
  font: 400 0.78rem/1.6 var(--mono);
  letter-spacing: 0.06em;
}

/* On narrow screens the pay button's label wraps so the price stays visible. */
.cta-pay .cta-price {
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .cta-pay .cta-label {
    min-width: 0;
    white-space: normal;
    letter-spacing: 0.16em;
    line-height: 1.3;
    text-align: left;
  }
}

.legal-owner {
  margin: 20px 0 28px !important;
  padding: 12px 16px;
  border: 1px solid rgba(216, 180, 90, 0.3);
  border-left: 3px solid var(--gold);
  background: rgba(216, 180, 90, 0.06);
  color: var(--cream);
}

.colophon-owner {
  margin-top: 14px;
  font: 400 0.74rem/1.6 var(--mono);
  font-style: normal;
  letter-spacing: 0.04em;
}

.colophon-owner a,
.legal-foot-owner a {
  color: var(--gold);
  text-decoration: none;
}

.colophon-owner a:hover,
.colophon-owner a:focus-visible,
.legal-foot-owner a:hover,
.legal-foot-owner a:focus-visible {
  text-decoration: underline;
}

.legal-foot .legal-foot-owner a {
  border-bottom: 0;
}

.legal-foot-owner {
  flex-basis: 100%;
  text-align: center;
  color: rgba(255, 241, 214, 0.45);
}
