:root {
  --ink: #1c1c1f;
  --ink-soft: #6b6966;
  --paper: #f6f3ec;
  --red: #cc3326;
  --surface: #f6f6f7;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.wordmark {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wordmark img { width: 28px; height: 28px; border-radius: 7px; }

/* Landing */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 48px 0 72px;
}

.hero h1 {
  font-family: var(--mono);
  font-size: clamp(38px, 6vw, 60px);
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin: 0 0 16px;
}

.hero p.lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 30ch;
}

.cta {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 16px 26px;
  border-radius: 12px;
}

.cta.soon { cursor: default; }

.receipt {
  background: var(--paper);
  padding: 34px 28px 30px;
  font-family: var(--mono);
  font-size: 13px;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.14)) drop-shadow(0 12px 24px rgba(0, 0, 0, 0.08));
  --tooth: 10px;
  -webkit-mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--tooth) 51% repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--tooth) 51% repeat-x;
          mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--tooth) 51% repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--tooth) 51% repeat-x;
  transform: rotate(1.5deg);
}

.receipt .title {
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.25em;
  font-size: 18px;
  margin-bottom: 4px;
}

.receipt .meta {
  text-align: center;
  color: var(--ink-soft);
  font-size: 11px;
}

.receipt hr {
  border: 0;
  border-top: 1px dashed var(--ink-soft);
  margin: 16px 0;
}

.receipt .line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 8px 0;
}

.receipt .line .dots {
  flex: 1;
  border-bottom: 1px dotted var(--ink-soft);
  transform: translateY(-3px);
}

.receipt .line b { font-weight: 700; }

.receipt .total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 16px;
}

.stamp {
  color: var(--red);
  border: 3px solid var(--red);
  border-radius: 4px;
  padding: 4px 10px;
  letter-spacing: 0.12em;
  font-weight: 800;
  transform: rotate(-7deg);
}

.barcode {
  height: 38px;
  margin-top: 18px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 13px);
}

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

.feature {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px;
}

.feature .k {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--red);
  margin-bottom: 10px;
}

.feature p { margin: 0; font-size: 16px; line-height: 1.45; }

footer {
  border-top: 1px solid #ececec;
  padding: 28px 0 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 14px;
}

footer nav { display: flex; gap: 22px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Legal pages */

.doc {
  max-width: 680px;
  padding: 24px 0 72px;
}

.doc h1 {
  font-family: var(--mono);
  letter-spacing: 0.04em;
  font-size: 32px;
  margin: 8px 0 6px;
}

.doc .updated { color: var(--ink-soft); font-size: 14px; margin: 0 0 32px; }
.doc h2 { font-size: 19px; margin: 36px 0 10px; }
.doc p, .doc li { font-size: 16px; line-height: 1.6; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }

.callout {
  background: var(--paper);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 16px; }
  .features { grid-template-columns: 1fr; }
  .receipt { transform: none; }
}
