:root {
  color-scheme: dark;
  --bg: #11110f;
  --panel: #1d1d19;
  --paper: #f8f6ee;
  --ink: #f4f1e7;
  --muted: #b9b4a7;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #f0c36a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(240, 195, 106, 0.18), transparent 34rem),
    linear-gradient(180deg, #171713 0%, var(--bg) 48%, #090908 100%);
  color: var(--ink);
  font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.page {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.hero {
  min-height: 58vh;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.bary-mark {
  position: relative;
  width: 156px;
  height: 156px;
  border: 4px solid #5f5b50;
  border-radius: 38px;
  background: #f6f2e8;
  box-shadow: inset -26px 0 rgba(0, 0, 0, 0.08), 0 24px 70px rgba(0, 0, 0, 0.38);
}

.antenna {
  position: absolute;
  left: 72px;
  top: -28px;
  width: 12px;
  height: 34px;
  border-radius: 999px;
  background: #d8b45f;
}

.eye {
  position: absolute;
  top: 50px;
  width: 16px;
  height: 34px;
  border-radius: 999px;
  background: #1d180f;
}

.eye.left {
  left: 46px;
}

.eye.right {
  right: 46px;
}

.mouth {
  position: absolute;
  left: 48px;
  top: 92px;
  width: 60px;
  height: 28px;
  border-bottom: 8px solid #1d180f;
  border-radius: 0 0 999px 999px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(3.8rem, 10vw, 8rem);
  line-height: 0.9;
  margin: 0 0 18px;
}

h2 {
  line-height: 1.12;
  margin: 0 0 10px;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  max-width: 760px;
  margin: 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 34px 0;
}

.features article,
.details,
.document {
  background: color-mix(in srgb, var(--panel), transparent 10%);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.features article {
  padding: 22px;
}

.examples {
  border-top: 1px solid var(--line);
  padding: 38px 0 42px;
}

.section-heading {
  display: grid;
  gap: 8px;
  max-width: 680px;
  margin-bottom: 24px;
}

.section-heading .eyebrow,
.section-heading h2,
.section-heading p {
  margin: 0;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
}

.receipt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(230px, 1fr));
  gap: 24px;
}

.mini-receipt {
  position: relative;
  min-height: 176px;
  display: grid;
  grid-template-rows: auto minmax(92px, 1fr);
  align-items: center;
  gap: 16px;
  padding: 26px 22px 24px;
  color: #15130f;
  background:
    repeating-linear-gradient(180deg, rgba(20, 18, 14, 0.045) 0 1px, transparent 1px 15px),
    linear-gradient(180deg, #fffdf8 0%, var(--paper) 100%);
  border: 1px solid rgba(0, 0, 0, 0.12);
  clip-path: polygon(0 5%, 9% 6%, 18% 3%, 32% 5%, 45% 2%, 58% 5%, 72% 3%, 84% 5%, 100% 3%, 100% 95%, 91% 94%, 80% 97%, 66% 95%, 54% 98%, 42% 95%, 28% 97%, 16% 94%, 0 96%);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
}

.tilt-left {
  transform: rotate(-0.7deg);
}

.tilt-right {
  transform: rotate(0.6deg);
}

.receipt-label {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 100%;
  overflow-wrap: anywhere;
  font: 800 0.72rem/1.18 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.03em;
  margin: 0;
  text-align: center;
}

.receipt-message {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 10px;
  border-top: 2px solid rgba(21, 19, 15, 0.68);
  border-bottom: 2px solid rgba(21, 19, 15, 0.68);
  margin: 0;
  text-align: center;
  font: 900 clamp(1.12rem, 2vw, 1.48rem)/1.12 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere;
}

.features p,
.details p,
.document p {
  color: var(--muted);
  margin: 0;
}

.details {
  padding: 26px;
}

.details nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.document {
  max-width: 760px;
  padding: 34px;
}

.document h1 {
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  margin-top: 12px;
}

.document h2 {
  margin-top: 30px;
}

.document p + p {
  margin-top: 14px;
}

.back {
  font-weight: 700;
}

.updated {
  font-size: 0.94rem;
}

@media (max-width: 740px) {
  .page {
    padding: 28px 0;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 34px 0;
  }

  .bary-mark {
    width: 124px;
    height: 124px;
    border-radius: 30px;
  }

  .antenna {
    left: 56px;
  }

  .eye {
    top: 39px;
  }

  .eye.left {
    left: 35px;
  }

  .eye.right {
    right: 35px;
  }

  .mouth {
    left: 35px;
    top: 70px;
    width: 54px;
  }

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

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

  .mini-receipt {
    min-height: 164px;
    grid-template-rows: auto minmax(86px, 1fr);
  }

  .document {
    padding: 24px;
  }
}
