:root {
  --paper-yellow: #FCE490;
  --ink: #0C0C0A;
  --panel: #F0EADE;
  --receipt: #EADED2;
  --gold: #EAC00C;
  --red: #D8483C;
  --border: 3px solid var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper-yellow);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

body.has-entered .intro-gate {
  display: none;
}

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

button,
a {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

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

h1,
h2,
h3,
.ticker,
.button,
.tip-button,
.eyebrow {
  font-family: "Archivo Black", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.55rem, 11vw, 6.8rem);
  line-height: 0.9;
  max-width: 840px;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(2.3rem, 9vw, 4.4rem);
  line-height: 0.92;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.02rem;
  line-height: 1.05;
}

.eyebrow {
  margin-bottom: 10px;
  font-size: 0.8rem;
}

.intro-gate,
.site-shell,
.site-header,
.hero,
.section,
.receipt-footer {
  background: var(--paper-yellow);
}

.intro-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.intro-gate__inner {
  width: 100%;
  min-height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.intro-video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 102px);
  object-fit: contain;
  background: var(--paper-yellow);
  order: 2;
}

.intro-button {
  min-width: 0;
  min-height: 36px;
  padding: 7px 10px;
  font-size: 0.78rem;
  order: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 10px 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  border-bottom: var(--border);
}

.brand {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.site-nav,
.header-actions,
.section-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 6px 0;
  font-weight: 900;
  text-decoration: none;
}

.header-actions {
  align-items: stretch;
}

.header-actions .button,
.section-ctas .button {
  min-height: 40px;
  padding: 8px 11px;
  font-size: 0.78rem;
}

.section-ctas {
  margin-top: 14px;
}

.hero {
  min-height: calc(100vh - 42px);
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 24px 18px 26px;
  display: grid;
  align-items: center;
  gap: 16px;
}

.hero__copy {
  min-width: 0;
}

.hero__kiosk {
  width: min(100%, 310px);
  justify-self: center;
}

.contract-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

.ticker {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: clamp(2.1rem, 10vw, 4rem);
  font-weight: 900;
}

.ca-pill,
.button,
.tip-button,
.card,
.download-card,
.kiosk-panel,
.screen-panel,
.receipt {
  border: var(--border);
  border-radius: 10px;
}

.ca-pill {
  padding: 10px 12px;
  background: var(--panel);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  font-weight: 800;
}

.button {
  min-height: 44px;
  padding: 10px 14px;
  text-decoration: none;
  text-align: center;
}

.button:active,
.tip-button:active,
.item-button:active,
.fee-row:active {
  transform: translateY(2px);
}

.button--ink {
  background: var(--panel);
}

.button--primary {
  color: var(--ink);
  background: var(--red);
}

.button.cta--buy {
  background: var(--gold);
}

.section {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 48px 18px;
}

.section__heading {
  margin-bottom: 18px;
}

.section-subtitle {
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: 800;
}

.kiosk-panel {
  display: grid;
  gap: 14px;
  padding: 12px;
  background: var(--panel);
}

.kiosk-stage {
  min-height: 330px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.kiosk-stage img {
  width: min(100%, 360px);
  transform-origin: center center;
  backface-visibility: hidden;
}

.kiosk-stage img.turning {
  animation: machine-turn 450ms cubic-bezier(.34,1.56,.64,1);
}

.screen-panel {
  padding: 12px;
  background: var(--panel);
}

.screen-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  font-weight: 900;
}

.flow-block {
  margin-bottom: 12px;
}

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

.item-button {
  min-height: 64px;
  padding: 9px;
  border: var(--border);
  border-radius: 10px;
  background: var(--panel);
  font-weight: 900;
  text-align: left;
}

.item-button span {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.receipt {
  margin-bottom: 12px;
  padding: 12px;
  background: var(--receipt);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
}

.receipt-line,
.receipt-total,
.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.receipt-line span:first-child,
.receipt-row span:first-child {
  overflow-wrap: anywhere;
}

.receipt-total {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 2px dashed var(--ink);
  font-weight: 900;
}

.receipt-total--grand {
  font-size: 1.02rem;
}

.fee-row {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  padding: 8px;
  border: var(--border);
  border-radius: 10px;
  background: var(--panel);
  text-align: left;
}

.fee-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.fee-row.is-shaking {
  animation: shake-fee 300ms linear;
}

.pay-button {
  width: 100%;
  margin-top: 2px;
  font-size: 1.35rem;
}

.tip-prompt {
  display: grid;
  gap: 8px;
}

.tip-button {
  width: 100%;
  border: var(--border);
  border-radius: 10px;
  background: var(--panel);
}

.tip-button--20 {
  min-height: 48px;
  font-size: 1.02rem;
}

.tip-button--40 {
  min-height: 58px;
  font-size: 1.24rem;
}

.tip-button--soul {
  min-height: 74px;
  color: var(--ink);
  background: var(--red);
  font-size: 1.52rem;
}

.tip-button--none {
  min-height: 38px;
  color: #5d5a53;
  background: transparent;
  border-color: #5d5a53;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  text-transform: none;
}

.outcome {
  margin-top: 12px;
}

.outcome p:first-child {
  margin-bottom: 10px;
  font-family: "Archivo Black", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  text-transform: uppercase;
  line-height: 1.05;
}

.final-receipt {
  margin-top: 10px;
}

.quiet-line {
  margin-top: 28px;
  font-size: 0.82rem;
  opacity: 0;
}

.quiet-line.is-visible {
  opacity: 1;
  transition: opacity 500ms linear;
}

#start-over {
  width: 100%;
  margin-top: 12px;
}

.card-grid,
.download-grid {
  display: grid;
  gap: 10px;
}

.card,
.download-card {
  background: var(--panel);
}

.card {
  padding: 14px;
}

.card p {
  margin-bottom: 0;
  font-weight: 800;
}

.download-card {
  padding: 12px;
  display: grid;
  align-items: end;
  gap: 10px;
}

.download-card img {
  width: 100%;
  max-height: 170px;
  object-fit: contain;
}

.download-card .button {
  display: block;
}

.receipt-footer {
  width: min(calc(100% - 36px), 740px);
  margin: 22px auto 46px;
}

.receipt-footer__inner {
  padding: 22px 18px 30px;
  border-top: 3px dashed var(--ink);
  background: var(--receipt);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), 96% 100%, 92% calc(100% - 16px), 88% 100%, 84% calc(100% - 16px), 80% 100%, 76% calc(100% - 16px), 72% 100%, 68% calc(100% - 16px), 64% 100%, 60% calc(100% - 16px), 56% 100%, 52% calc(100% - 16px), 48% 100%, 44% calc(100% - 16px), 40% 100%, 36% calc(100% - 16px), 32% 100%, 28% calc(100% - 16px), 24% 100%, 20% calc(100% - 16px), 16% 100%, 12% calc(100% - 16px), 8% 100%, 4% calc(100% - 16px), 0 100%);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.receipt-footer a {
  font-weight: 900;
  text-decoration-thickness: 2px;
}

.receipt-footer p {
  margin: 22px auto 0;
  max-width: 620px;
  text-align: center;
  font-weight: 900;
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: no-preference) {
  .floaty {
    animation: floaty 4s ease-in-out infinite;
  }

  @keyframes floaty {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-6px);
    }
  }

  @keyframes machine-turn {
    0% {
      transform: rotateY(180deg);
    }
    100% {
      transform: rotateY(0deg);
    }
  }

  @keyframes shake-fee {
    0%,
    100% {
      transform: translateX(0);
    }
    25% {
      transform: translateX(-7px);
    }
    50% {
      transform: translateX(7px);
    }
    75% {
      transform: translateX(-4px);
    }
  }
}

@media (min-width: 720px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding-inline: 24px;
  }

  .site-nav {
    justify-content: center;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 380px;
    padding-inline: 24px;
    gap: 24px;
  }

  .hero__kiosk {
    width: min(100%, 380px);
  }

  .section {
    padding-inline: 24px;
  }

  .kiosk-panel {
    grid-template-columns: 42% minmax(0, 1fr);
    padding: 16px;
    align-items: center;
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .download-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.tc-section {
  background: #FCE490;
}

.tc-wrap {
  display: grid;
  gap: 16px;
}

.tc-intro-card,
.tc-stat-card,
.tc-body-card,
.tc-quote {
  background: #F0EADE;
  border: 3px solid #0C0C0A;
  border-radius: 10px;
}

.tc-intro-card,
.tc-body-card,
.tc-quote {
  padding: 16px;
}

.tc-intro-card h2,
.tc-body-card h3,
.tc-stat-card h3 {
  color: #0C0C0A;
  font-family: "Archivo Black", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tc-intro-card h2 {
  margin-bottom: 12px;
}

.tc-intro-card p,
.tc-body-card p {
  max-width: 68ch;
  color: #0C0C0A;
  line-height: 1.65;
}

.tc-intro-card p:last-child,
.tc-body-card p:last-child {
  margin-bottom: 0;
}

.tc-stat-grid {
  display: grid;
  gap: 10px;
}

.tc-stat-card {
  padding: 14px;
}

.tc-stat-card strong {
  display: block;
  color: #0C0C0A;
  font-family: "Archivo Black", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(3.1rem, 16vw, 5rem);
  line-height: 0.9;
}

.tc-stat-card span {
  display: block;
  width: 72px;
  height: 8px;
  margin: 12px 0 14px;
  background: #EAC00C;
}

.tc-stat-card h3 {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.08;
}

.tc-stat-card p {
  margin-bottom: 0;
  color: #0C0C0A;
  font-size: 0.8rem;
  line-height: 1.45;
}

.tc-body-card h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  line-height: 1.05;
}

.tc-quote {
  margin: 0;
  border-left: 6px solid #EAC00C;
  color: #0C0C0A;
  font-size: clamp(1.35rem, 6vw, 2rem);
  font-style: italic;
  font-weight: 900;
  line-height: 1.22;
}

.tc-sources {
  margin: 0;
  max-width: 68ch;
  color: #0C0C0A;
  font-size: 80%;
  font-style: italic;
  line-height: 1.5;
}

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