/* Shopperlis landing page. Plain CSS, no build step. Brand: deep navy + teal + mint (docs/decisions/m11-branding.md). */
:root {
  --bg: #ffffff;
  --tint: #f3f5f8;
  --panel: #ffffff;
  --line: #dfe4ea;
  --fg: #0f2942;
  --muted: #586474;
  --ink: #0f2942; /* dark surfaces: primary button, CTA band */
  --on-ink: #ffffff;
  --accent: #4ce0b3; /* fresh mint: accent fills (navy text on it) */
  --accent-deep: #008072; /* teal that is readable as text on --bg */
  --paper: #fffdf7;
  --paper-fg: #0f2942;
  --paper-muted: #6b7280;
  --radius: 12px;
  --font: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', 'Roboto Mono', Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1c2e;
    --tint: #0f2942;
    --panel: #15304d;
    --line: #2a4566;
    --fg: #eef2f7;
    --muted: #a3afbf;
    --ink: #eef2f7;
    --on-ink: #0a1c2e;
    --accent-deep: #4ce0b3;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.6 var(--font);
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
h1,
h2,
h3 {
  line-height: 1.2;
  text-wrap: balance;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
[id] {
  scroll-margin-top: 84px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 20px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 20;
  background: var(--ink);
  color: var(--on-ink);
  padding: 8px 12px;
  border-radius: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--on-ink);
}
.btn-primary:hover {
  opacity: 0.9;
}
.btn-ghost {
  border-color: var(--line);
  color: var(--fg);
}
.btn-ghost:hover {
  border-color: var(--fg);
}
.btn-accent {
  background: var(--accent);
  color: #0f2942;
}
.btn-accent:hover {
  filter: brightness(1.06);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.mark {
  width: 34px;
  height: 34px;
  flex: none;
}
.nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.97rem;
}
.nav a:hover {
  color: var(--fg);
}
.bar > .btn {
  min-height: 40px;
  padding: 0 16px;
}

/* Hero */
.hero {
  padding-block: 72px 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}
.kicker {
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.lede {
  margin-top: 20px;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34em;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-points {
  margin-top: 28px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.97rem;
}
.hero-points li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.hero-points li::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-1px);
}

/* Receipt illustration: always printed on paper, in both themes. */
.receipt {
  justify-self: center;
  width: 100%;
  max-width: 340px;
}
.receipt-paper {
  background: var(--paper);
  color: var(--paper-fg);
  font: 400 0.84rem/1.45 var(--mono);
  padding: 22px 20px 30px;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 18px 40px -18px rgb(15 23 42 / 0.35), 0 0 0 1px rgb(15 23 42 / 0.08);
  transform: rotate(1.5deg);
  /* torn bottom edge */
  --tooth: 12px;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--tooth) 51% repeat-x,
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth) / 2) no-repeat;
}
.receipt-head {
  display: grid;
  gap: 2px;
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 1px dashed #c8ccd2;
}
.receipt-head span {
  color: var(--paper-muted);
}
.receipt-lines {
  width: 100%;
  border-collapse: collapse;
  margin-block: 10px;
}
.receipt-lines td {
  padding: 5px 0;
  vertical-align: top;
}
.receipt-lines td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-left: 12px;
}
.receipt-lines small {
  display: block;
  color: var(--paper-muted);
  font-size: 0.74rem;
}
.receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-block: 10px;
  border-block: 1px dashed #c8ccd2;
  font-size: 1.05rem;
}
.receipt-meta {
  margin-top: 10px;
  display: grid;
  gap: 2px;
  color: var(--paper-muted);
}
.receipt-meta div {
  display: flex;
  justify-content: space-between;
}
.receipt-meta dd {
  font-variant-numeric: tabular-nums;
}
.receipt-foot {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--paper-muted);
  font-size: 0.72rem;
  line-height: 1.4;
}
.qr {
  flex: none;
  width: 54px;
  height: 54px;
  border: 4px solid var(--paper);
  outline: 1px solid #c8ccd2;
  background:
    conic-gradient(#0f2942 25%, #0000 0 50%, #0f2942 0 75%, #0000 0) 0 0 / 12px 12px,
    conic-gradient(#0000 25%, #0f2942 0 50%, #0000 0) 3px 3px / 18px 18px;
}
.receipt figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Sections */
.section {
  padding-block: 76px;
}
.section-tint {
  background: var(--tint);
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  max-width: 22em;
}
.section-lede {
  margin-top: 14px;
  color: var(--muted);
  max-width: 40em;
}
h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.features {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 40px;
}
.feature {
  border-top: 2px solid var(--fg);
  padding-top: 16px;
}
.feature p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.98rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.shops {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.shops li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.97rem;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.panel h3:not(:first-child) {
  margin-top: 22px;
}
.panel p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.98rem;
}

.steps {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 40px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #0f2942;
  font-weight: 800;
  margin-bottom: 14px;
}
.steps p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Contact band: navy in both themes. */
.cta {
  background: #0f2942;
  color: #ffffff;
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 48px;
  align-items: center;
  justify-content: space-between;
}
.cta p {
  margin-top: 12px;
  color: #c5cdd8;
  max-width: 36em;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 26px;
  color: var(--muted);
  font-size: 0.92rem;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}

@media (max-width: 900px) {
  .hero-grid,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .features,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero {
    padding-block: 48px 56px;
  }
  .section {
    padding-block: 56px;
  }
}
@media (max-width: 680px) {
  .nav {
    display: none;
  }
  .bar > .btn {
    margin-left: auto;
  }
  .features,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The paper's mask clips its own box-shadow, so the shadow comes from a wrapper. */
.receipt-shadow {
  filter: drop-shadow(0 16px 22px rgb(15 23 42 / 0.2)) drop-shadow(0 0 1px rgb(15 23 42 / 0.35));
}
