/* Receipt Reader — receipt-reader.com
 * Fonts are self-hosted on purpose: loading them from Google's CDN sends every visitor's
 * IP address to Google, which German and Spanish regulators treat as a GDPR transfer. */

@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/bricolage.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/fonts/dmsans.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/dmsans-italic.woff2) format('woff2'); }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/dmmono-400.woff2) format('woff2'); }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/dmmono-500.woff2) format('woff2'); }

:root {
  --ground: #f7f4f0;      /* the app's own background */
  --paper: #fffdf8;       /* thermal paper */
  --ink: #1f1a14;         /* the black of the RR mark */
  --muted: #6b6055;
  --rule: #e0d6c6;
  --amber: #e8962a;       /* the scan line in the app icon */
  --amber-ink: #95590b;   /* amber that passes contrast as text on paper */
  --amber-wash: #fbe7c6;
  --band: #fffdf8;
  --band-ink: #1f1a14;
  --band-muted: #6b6055;
  --shadow: 0 1px 0 rgba(60, 40, 10, .06), 0 18px 40px -18px rgba(60, 40, 10, .35);

  --display: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--amber-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--amber-wash); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* ── Header ─────────────────────────────────────────── */
.site-head { padding-block: 22px; }
.site-head .wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.125rem/1 var(--display); letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px var(--rule); }
.site-nav { margin-left: auto; display: flex; gap: clamp(14px, 3vw, 28px); flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--amber-ink); }

/* ── Type ───────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--display); line-height: 1.05; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34em; }

/* ── Hero ───────────────────────────────────────────── */
.hero { padding-block: clamp(32px, 6vw, 72px) clamp(64px, 9vw, 120px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 {
  font-size: clamp(2.9rem, 7.4vw, 5.6rem);
  font-weight: 800;
  font-variation-settings: 'opsz' 96;
  letter-spacing: -.045em;
  line-height: .93;
}
.hero h1 .line { display: block; }
.hero .lede { margin-top: 28px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px 11px 14px; border-radius: 12px;
  background: var(--ink); color: var(--ground); text-decoration: none;
  line-height: 1.15;
}
.store svg { width: 24px; height: 24px; flex: none; fill: currentColor; }
.store small { display: block; font-size: .72rem; opacity: .75; }
.store strong { font: 600 1.05rem/1.1 var(--display); letter-spacing: -.01em; }
.store[aria-disabled="true"] { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); cursor: default; }
.price-note { margin-top: 18px; font-size: .95rem; color: var(--muted); }

/* The receipt and the scan. This is the one animated moment on the site. */
.scan-stage { position: relative; display: flex; justify-content: center; padding-block: 12px 128px; }
.receipt {
  position: relative;
  width: min(350px, 100%);
  --paper-fixed: #fffdf8;
  background: var(--paper-fixed);
  padding: 30px 26px 40px;
  font: 400 .86rem/1.75 var(--mono);
  color: #1f1a14;
  box-shadow: var(--shadow);
  transform: rotate(-2.2deg);
  /* torn thermal-paper bottom edge */
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat,
                conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 10px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat,
                conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 10px repeat-x;
}
.receipt .r-head { text-align: center; margin-bottom: 10px; }
.receipt .r-name { font-weight: 500; font-size: 1rem; letter-spacing: .06em; }
.receipt .r-row { display: flex; justify-content: space-between; gap: 12px; }
.receipt .r-cut { border-top: 1.5px dashed #d6cab6; margin: 10px 0; }
.receipt .r-total { font-weight: 500; font-size: 1rem; }
.receipt .r-thanks { text-align: center; margin-top: 14px; color: #6b6055; }
.receipt .hit { position: relative; display: inline-block; }
.receipt .hit::before {
  content: ''; position: absolute; inset: -1px -5px; border-radius: 4px;
  background: #fbe7c6; box-shadow: inset 0 0 0 1.5px var(--amber);
  z-index: -1; opacity: 0; transform: scaleX(.6); transform-origin: left;
  animation: hit .35s ease-out forwards; animation-delay: var(--at);
}
.receipt .content { position: relative; z-index: 0; }
.scanline {
  position: absolute; left: -14px; right: -14px; top: 0; height: 2px;
  background: var(--amber); border-radius: 2px;
  box-shadow: 0 0 14px 3px rgba(232, 150, 42, .55), 0 0 2px 1px rgba(232, 150, 42, .9);
  opacity: 0;
  animation: sweep 2.3s cubic-bezier(.45, .05, .55, .95) .5s forwards;
}
@keyframes sweep {
  0% { top: 8px; opacity: 0; }
  8% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: calc(100% - 16px); opacity: 0; }
}
@keyframes hit { to { opacity: 1; transform: none; } }

.expense {
  position: absolute; right: max(-12px, calc(50% - 250px)); bottom: 0;
  width: min(270px, 86%);
  background: var(--paper); border-radius: 16px;
  padding: 16px 18px; box-shadow: var(--shadow), 0 0 0 1px var(--rule);
  font-size: .9rem; line-height: 1.35;
  opacity: 0; transform: translateY(14px);
  animation: arrive .5s cubic-bezier(.2, .8, .2, 1) 2.9s forwards;
}
.expense .e-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.expense .e-name { font: 650 1.05rem/1.2 var(--display); letter-spacing: -.01em; }
.expense .e-amt { font: 500 1.05rem/1 var(--mono); }
.expense .e-meta { margin-top: 6px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.expense .e-cat { display: inline-flex; align-items: center; gap: 6px; }
.expense .e-cat::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.expense .e-saved { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule); font-size: .82rem; color: var(--muted); }
@keyframes arrive { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .scanline { display: none; }
  .receipt .hit::before, .expense { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ── Sections ───────────────────────────────────────── */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-head { max-width: 40rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.125rem; }

/* How it works: a real sequence, so it is numbered. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 20px; }
.steps li::before { content: counter(step); display: block; font: 800 3.2rem/1 var(--display); color: var(--amber-ink); margin-bottom: 18px; letter-spacing: -.04em; }
.steps p { margin-top: 10px; color: var(--muted); }

/* Features */
.features { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(32px, 6vw, 80px); }
.feature { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 16px; padding-block: 24px; border-top: 1px solid var(--rule); }
.feature svg { grid-row: span 2; width: 28px; height: 28px; stroke: var(--amber-ink); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.feature p { color: var(--muted); }

.currency-demo {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 18px clamp(18px, 3vw, 36px);
  background: var(--paper); border-radius: 20px; padding: clamp(22px, 4vw, 36px);
  box-shadow: 0 0 0 1px var(--rule);
}
.currency-demo .amt { font: 500 clamp(1.4rem, 3vw, 2.1rem)/1 var(--mono); letter-spacing: -.02em; white-space: nowrap; }
.currency-demo .amt small { display: block; font: 400 .85rem/1.4 var(--body); color: var(--muted); letter-spacing: 0; margin-top: 8px; white-space: normal; }
.currency-demo .arrow { width: 36px; height: 36px; stroke: var(--amber); stroke-width: 2; fill: none; }
.currency-demo .arrow-wrap { display: flex; align-items: center; gap: 18px; }
.currency-demo p { color: var(--muted); max-width: 30em; }

/* Privacy band */
.band { background: var(--band); color: var(--band-ink); }
.band h2 { color: var(--band-ink); }
.band .section-head p { color: var(--band-muted); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.facts h3 { color: var(--band-ink); }
.facts p { margin-top: 10px; color: var(--band-muted); }
.facts .fact { border-top: 2px solid var(--ink); padding-top: 20px; }
.band { border-block: 1px solid var(--rule); }

/* Pricing */
.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 32px); max-width: 880px; }
.plan { background: var(--paper); border-radius: 20px; padding: clamp(24px, 4vw, 36px); box-shadow: 0 0 0 1px var(--rule); }
.plan.full { box-shadow: 0 0 0 2px var(--ink), var(--shadow); }
.plan .price { font: 800 clamp(2.4rem, 5vw, 3.2rem)/1 var(--display); letter-spacing: -.04em; margin-top: 14px; }
.plan .price span { font: 400 1rem/1 var(--body); letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.plan li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; }
.plan li::before { content: ''; width: 12px; height: 7px; border: solid var(--amber-ink); border-width: 0 0 2px 2px; transform: translateY(.5em) rotate(-45deg); }
.plans-note { margin-top: 24px; color: var(--muted); font-size: .95rem; max-width: 46em; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font: 600 1.15rem/1.35 var(--display); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 22px; color: var(--muted); max-width: 40em; }
.faq details > div p + p { margin-top: 10px; }

/* Closing call */
.closing { text-align: left; }
.closing .wrap { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 32px; }
.closing h2 { max-width: 14em; }

/* ── Document pages (support, privacy, deletion) ─────── */
.doc { padding-block: clamp(24px, 5vw, 56px) clamp(64px, 9vw, 112px); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -.04em; }
.doc h2 { font-size: 1.5rem; letter-spacing: -.02em; margin-top: 2.6rem; margin-bottom: .6rem; }
.doc h3 { margin-top: 1.6rem; margin-bottom: .4rem; }
.doc p, .doc li { color: var(--ink); }
.doc p + p, .doc ul, .doc ol { margin-top: .9rem; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li + li { margin-top: .4rem; }
.doc .updated, .doc .sub { color: var(--muted); margin-top: 12px; margin-bottom: 2rem; }
.doc code { font: .9em var(--mono); background: var(--paper); padding: 1px 5px; border-radius: 4px; box-shadow: 0 0 0 1px var(--rule); }
.doc .panel { background: var(--paper); border-radius: 16px; padding: 22px 24px; box-shadow: 0 0 0 1px var(--rule); margin-top: 1.4rem; }
.doc .panel h2:first-child, .doc .panel h3:first-child { margin-top: 0; }
.doc .path { font-weight: 600; }
.doc :target { scroll-margin-top: 24px; }
.doc h2:target { color: var(--amber-ink); }

.link-list { list-style: none; padding: 0 !important; display: grid; gap: 0; margin-top: 1.4rem !important; }
.link-list li { margin: 0 !important; border-top: 1px solid var(--rule); }
.link-list li:last-child { border-bottom: 1px solid var(--rule); }
.link-list a { display: block; padding: 16px 0; color: var(--ink); text-decoration: none; }
.link-list a strong { font: 600 1.1rem/1.3 var(--display); display: block; }
.link-list a span { color: var(--muted); font-size: .95rem; }
.link-list a:hover strong { color: var(--amber-ink); }

/* ── Footer ─────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--rule); padding-block: 40px 48px; font-size: .95rem; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: start; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.site-foot a { color: var(--ink); text-decoration: none; }
.site-foot a:hover { color: var(--amber-ink); text-decoration: underline; }

/* ── Narrow screens ─────────────────────────────────── */
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .expense { right: 0; }
  .features, .plans { grid-template-columns: minmax(0, 1fr); }
  .steps, .facts { grid-template-columns: minmax(0, 1fr); }
  .currency-demo { grid-template-columns: minmax(0, 1fr); }
  .currency-demo .arrow { transform: rotate(90deg); }
}
@media (max-width: 520px) {
  .site-nav { margin-left: 0; width: 100%; }
  .receipt { font-size: .78rem; padding-inline: 20px; }
}

@media print {
  .site-head, .site-foot, .scanline { display: none; }
  body { background: #fff; color: #000; }
}
