:root {
  --orange: #e8a14b;
  --orange-deep: #c47d2e;
  --cream: #f8e8c7;
  --pepe: #86a95a;
  --pepe-ink: #3f5a28;
  --ink: #151a1c;
  --ink-soft: #3d4648;
  --paper: #fff9ef;
  --error: #f35b50;
  --term: #80d99b;
  --white: #fffefb;
  --scene: #243026;
  --sans: "Segoe UI", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --display: "Arial Black", "Segoe UI", Arial, sans-serif;
  --mono: "Cascadia Mono", "Segoe UI Mono", Consolas, "Liberation Mono", ui-monospace, monospace;
  --shadow: 0 16px 40px rgba(21, 26, 28, 0.12);
  --header: 4.5rem;
}

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.25rem;
}

body {
  min-height: 100%;
  font-family: var(--sans);
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  color: inherit;
  background: none;
  border: 0;
}

a {
  color: inherit;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--orange);
  color: var(--ink);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  z-index: 80;
  transform: translateY(-120%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 0.9rem;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pepe-ink);
}

.h-display,
h1,
h2 {
  font-family: var(--display);
  letter-spacing: -0.045em;
  line-height: 0.9;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 5.2vw, 4.15rem);
  margin: 0.45rem 0 0.85rem;
}

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section-lead {
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.section-intro {
  max-width: 40rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.section-dark {
  background: var(--ink);
  color: var(--cream);
}

.section-dark .section-lead,
.section-dark .fine {
  color: #d9d0c2;
}

.section-dark .kicker {
  color: var(--orange);
}

.fine {
  margin-top: 1rem;
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.fine-on-dark {
  color: #c9c0b2;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(21, 26, 28, 0.08);
  box-shadow: 0 8px 24px rgba(21, 26, 28, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 10px;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.site-menu a {
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-menu a:not(.btn):hover {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.burger,
.burger::before,
.burger::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger::before {
  top: -6px;
}

.burger::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .burger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .burger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .burger::after {
  top: 0;
  transform: rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--orange-deep);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 var(--orange-deep);
}

.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: rgba(21, 26, 28, 0.28);
}

.btn-line:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(248, 232, 199, 0.35);
}

.btn-ghost:hover {
  border-color: var(--cream);
  transform: translateY(-2px);
}

.soon {
  display: none;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  padding: 0.2rem 0.4rem;
}

.is-soon .soon {
  display: inline-flex;
}

.btn-ghost .soon,
.section-dark .btn-primary .soon {
  background: var(--ink);
  color: var(--orange);
}

.hero {
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 46% 58% at 78% 46%, rgba(232, 161, 75, 0.38), transparent 62%),
    linear-gradient(rgba(21, 26, 28, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 26, 28, 0.04) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.25rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 5rem);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.15rem;
  min-width: 0;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4.8rem);
}

.line-api,
.line-face {
  display: block;
}

.line-face {
  color: #9a6218;
}

.lede {
  max-width: 36rem;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: var(--ink-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hud {
  position: relative;
  width: min(100%, 320px);
  padding: 0.85rem 0.95rem 0.35rem;
  border: 1px solid rgba(21, 26, 28, 0.14);
  background: rgba(255, 249, 239, 0.72);
}

.hud::before,
.hud::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--ink);
  border-style: solid;
}

.hud::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.hud::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 2px 2px 0;
}

.hud-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hud-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--term);
  box-shadow: 0 0 0 0 rgba(128, 217, 155, 0.7);
  animation: pulse 1.8s ease-in-out infinite;
}

.hud dl {
  margin-top: 0.35rem;
}

.hud dl div {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-top: 1px solid rgba(21, 26, 28, 0.08);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.hud dt {
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hud dd {
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hud dl div:nth-child(2) dd {
  color: #9a6218;
}

.hud dl div:nth-child(3) dd {
  color: var(--pepe-ink);
}

.hero-art {
  position: relative;
  margin: 0;
  animation: rise 0.9s ease both;
  animation-delay: 0.12s;
}

.hero-art img {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

.hero-art::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 6%;
  height: 28px;
  background: radial-gradient(ellipse, rgba(21, 26, 28, 0.28), transparent 70%);
  z-index: 0;
}

.hero-copy > * {
  animation: rise 0.7s ease both;
}

.hero-copy > *:nth-child(1) { animation-delay: 0.04s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.12s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.2s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.28s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.36s; }

.still {
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.still-copy {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding-bottom: 0.85rem;
}

.still-line {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.still img {
  width: 100%;
  height: auto;
}

.accident-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}

.term {
  background: #0e1314;
  border: 1px solid rgba(248, 232, 199, 0.12);
  border-radius: 16px;
  overflow: hidden;
  min-height: 320px;
}

.term.is-error {
  animation: errPulse 0.7s ease;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.9rem;
  background: #1b2224;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--cream);
}

.term-name {
  flex: 1;
}

.term-step {
  color: var(--orange);
}

.dots {
  display: inline-flex;
  gap: 0.35rem;
}

.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.dots span:nth-child(1) { background: var(--error); }
.dots span:nth-child(2) { background: var(--orange); }
.dots span:nth-child(3) { background: var(--term); }

.meter {
  height: 4px;
  background: rgba(248, 232, 199, 0.08);
}

.meter-fill {
  display: block;
  height: 100%;
  width: 20%;
  background: var(--orange);
  transition: width 0.35s ease;
}

.term-body {
  padding: 1rem 1.05rem 1.25rem;
  font-family: var(--mono);
  font-size: clamp(0.82rem, 1.6vw, 0.95rem);
  line-height: 1.6;
  color: #d7e6dc;
  min-height: 220px;
}

.prompt {
  color: var(--orange);
  margin-right: 0.35rem;
}

.line.dim { color: #8e9a96; }
.line.ok { color: var(--term); }
.line.bad { color: #ff8d86; }

.js .term-pane { display: none; }
.js .term-pane.is-active { display: block; }

.js .term-pane.is-active .line:last-child::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 1em;
  margin-left: 4px;
  background: var(--term);
  vertical-align: text-bottom;
  animation: blink 1.05s steps(1) infinite;
}

.js .term-pane.is-active .line {
  animation: lineIn 0.4s ease both;
}

.js .term-pane.is-active .line:nth-child(2) { animation-delay: 0.08s; }
.js .term-pane.is-active .line:nth-child(3) { animation-delay: 0.16s; }
.js .term-pane.is-active .line:nth-child(4) { animation-delay: 0.24s; }
.js .term-pane.is-active .line:nth-child(5) { animation-delay: 0.32s; }

.steps {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.step-btn {
  width: 100%;
  display: flex;
  gap: 0.85rem;
  text-align: left;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  color: var(--cream);
  border: 1px solid transparent;
  min-height: 44px;
}

.step-btn:hover {
  background: rgba(248, 232, 199, 0.05);
}

.step-btn[aria-selected="true"] {
  background: rgba(248, 232, 199, 0.08);
  border-color: rgba(232, 161, 75, 0.75);
}

.step-no {
  font-family: var(--mono);
  color: var(--orange);
  font-weight: 700;
  padding-top: 0.15rem;
}

.step-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.step-copy strong {
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.step-copy span {
  color: #d9d0c2;
  font-size: 0.95rem;
}

.source {
  width: min(100%, 420px);
  margin: 2rem auto 0;
}

.source img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(248, 232, 199, 0.16);
  background: #0e1314;
}

.source figcaption,
.post-card figcaption,
.caption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #d9d0c2;
}

.receipt-section {
  background:
    radial-gradient(ellipse 40% 50% at 80% 20%, rgba(232, 161, 75, 0.16), transparent 60%),
    var(--scene);
  color: var(--cream);
}

.receipt-section .kicker {
  color: var(--orange);
}

.receipt-section .section-lead {
  color: #e4d8c4;
}

.receipt-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.receipt {
  position: relative;
  width: min(100%, 400px);
  margin-inline: auto;
  background: var(--white);
  color: var(--ink);
  padding: 1.7rem 1.3rem 1.15rem;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
  transform: rotate(-1.2deg);
}

.receipt::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 16px;
  background: radial-gradient(circle, var(--scene) 7px, transparent 7.5px) left center / 18px 16px repeat-x;
}

.receipt-shop {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.receipt h3 {
  margin-top: 0.35rem;
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.rule {
  border: 0;
  border-top: 1px dashed rgba(21, 26, 28, 0.35);
  margin: 0.8rem 0;
}

.receipt dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.28rem 0;
  font-family: var(--mono);
  font-size: 0.92rem;
}

.receipt dt {
  color: var(--ink-soft);
}

.receipt dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.total-row dd {
  font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 2.15rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.receipt-out,
.receipt-state {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.receipt-out {
  font-size: 1rem;
}

.receipt-state {
  margin-top: 0.35rem;
  color: var(--pepe-ink);
}

.stamp {
  display: inline-block;
  margin-top: 0.9rem;
  border: 3px solid var(--pepe);
  color: var(--pepe-ink);
  font-family: var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.95rem;
  padding: 0.28rem 0.5rem;
  transform: rotate(-6deg);
}

.barcode {
  display: flex;
  align-items: stretch;
  gap: 2px;
  height: 46px;
  margin-top: 0.9rem;
}

.barcode span {
  flex: 1 1 2px;
  background: var(--ink);
}

.barcode span:nth-child(3n) { flex-grow: 2; }
.barcode span:nth-child(4n) { background: transparent; flex-grow: 0.7; }
.barcode span:nth-child(5n) { flex-grow: 0.5; }

.caption {
  text-align: center;
  color: var(--cream);
  margin-top: 1.1rem;
  font-size: 1.05rem;
}

.about {
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.portrait {
  margin: 0;
  max-width: 512px;
  background: var(--cream);
  border: 3px solid var(--ink);
  box-shadow: 14px 14px 0 var(--pepe);
}

.portrait img {
  width: 100%;
  height: auto;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.facts li {
  background: var(--cream);
  border-radius: 16px;
  padding: 0.9rem 0.8rem;
}

.facts strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.facts span {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.contract-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.spec-card {
  background: #0e1314;
  border: 1px solid rgba(128, 217, 155, 0.28);
  border-radius: 18px;
  padding: 1.1rem 1.15rem 1.15rem;
}

.spec-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--term);
  margin-bottom: 0.4rem;
}

.spec div {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.72rem 0;
  border-top: 1px solid rgba(248, 232, 199, 0.1);
  font-family: var(--mono);
}

.spec dt {
  color: #8e9a96;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  padding-top: 0.15rem;
}

.spec dd {
  margin: 0;
  color: var(--cream);
  font-weight: 700;
  overflow-wrap: anywhere;
}

#ca-value {
  color: var(--orange);
}

.spec-card .btn-copy {
  width: 100%;
  margin-top: 0.85rem;
  border: 1px solid rgba(248, 232, 199, 0.28);
  color: var(--cream);
  border-radius: 12px;
  min-height: 48px;
}

.spec-card .btn-copy:not(:disabled) {
  background: var(--orange);
  color: var(--ink);
  border-color: transparent;
  box-shadow: 0 4px 0 var(--orange-deep);
}

.spec-card .btn-copy:disabled {
  cursor: default;
  opacity: 1;
}

.screen {
  background: #0e1314;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(21, 26, 28, 0.16);
  box-shadow: var(--shadow);
}

.screen-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  background: #1b2224;
  color: var(--cream);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.screen-stage {
  min-height: 420px;
  background:
    linear-gradient(rgba(128, 217, 155, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128, 217, 155, 0.05) 1px, transparent 1px),
    #101516;
  background-size: 32px 32px, 32px 32px, auto;
}

.screen-wait {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  color: var(--cream);
}

.screen-kicker {
  font-family: var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--term);
}

.screen-title {
  margin-top: 0.45rem;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: -0.04em;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 0.95;
  max-width: 14ch;
}

.flatline {
  width: 100%;
  margin-top: 1.5rem;
  height: 72px;
  position: relative;
}

.flatline span {
  position: absolute;
  left: 0;
  right: 18%;
  top: 50%;
  height: 2px;
  background: var(--orange);
}

.flatline span::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  transform: translate(50%, -50%);
}

.chart-frame {
  display: block;
  width: 100%;
  min-height: 520px;
  height: 68vh;
  border: 0;
  background: #101516;
}

.chart-actions {
  margin-top: 1.1rem;
}

.buy {
  background: var(--cream);
}

.manual {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.manual li {
  background: var(--white);
  border-radius: 18px;
  padding: 1.15rem 1rem 1.25rem;
  border: 1px solid rgba(21, 26, 28, 0.08);
  min-height: 100%;
}

.num {
  display: block;
  font-family: var(--display);
  font-size: 1.8rem;
  color: #9a6218;
  letter-spacing: -0.04em;
  margin-bottom: 0.55rem;
}

.community {
  background: var(--paper);
}

.community-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.btn-x {
  margin-top: 1.25rem;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 4px 0 #000;
}

.btn-x:hover {
  transform: translateY(-2px);
}

.x-mark {
  font-size: 1.05rem;
  line-height: 1;
}

.origin-post {
  min-height: 180px;
  display: flex;
  justify-content: center;
}

.origin-post .twitter-tweet {
  margin: 0 auto !important;
}

.origin-post iframe {
  max-width: 100% !important;
}

.post-fallback {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.4rem;
  width: min(100%, 550px);
  min-height: 220px;
  padding: 1.2rem;
  text-decoration: none;
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: 8px 8px 0 var(--orange);
}

.post-fallback-kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pepe-ink);
}

.post-card {
  margin: 0;
  min-width: 0;
}

.post-card figcaption {
  color: var(--ink-soft);
}

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(2.2rem, 6vw, 3.5rem) 0 2rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
}

.footer-brand {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: -0.04em;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 0.9;
}

.footer-meta {
  margin-top: 0.45rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: #d9d0c2;
}

.footer-line {
  margin-top: 0.7rem;
  font-size: 1.15rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
}

.footer-links a {
  color: var(--cream);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--orange);
}

.site-footer .fine {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(248, 232, 199, 0.12);
}

.notice {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 1.1rem;
  max-width: calc(100% - 2rem);
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  text-align: center;
  box-shadow: 0 12px 30px rgba(21, 26, 28, 0.28);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.notice.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

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

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes pulse {
  0%,
  100% { box-shadow: 0 0 0 0 rgba(128, 217, 155, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(128, 217, 155, 0); }
}

@keyframes lineIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@keyframes errPulse {
  0%,
  100% { box-shadow: inset 0 0 0 0 rgba(243, 91, 80, 0); }
  40% { box-shadow: inset 0 0 0 2px rgba(243, 91, 80, 0.9); }
}

@media (max-width: 980px) {
  .accident-grid,
  .receipt-layout,
  .about-grid,
  .contract-grid,
  .community-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    order: -1;
  }

  .manual {
    grid-template-columns: 1fr 1fr;
  }

  .portrait {
    max-width: 420px;
  }
}

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.35rem 1rem 1rem;
    background: var(--paper);
    border-bottom: 1px solid rgba(21, 26, 28, 0.08);
  }

  .site-header.is-open .site-menu {
    display: flex;
  }

  .site-menu .btn {
    width: 100%;
    margin-top: 0.35rem;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
  }

  .hero-copy {
    display: contents;
  }

  .eyebrow { order: 1; }
  .hero h1 { order: 2; }
  .hero-art { order: 3; }
  .lede { order: 4; }
  .actions { order: 5; }
  .hud { order: 6; }

  .hero h1 {
    max-width: none;
  }

  .still-copy {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .manual,
  .facts {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 13vw, 3.4rem);
  }

  .receipt {
    transform: none;
  }

  .portrait {
    box-shadow: 8px 8px 0 var(--pepe);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal,
  .hero-copy > *,
  .hero-art,
  .hero-art img {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
