/* Tokens copied from web/src/theme.css by tools/build_site.py. Do not edit here. */
:root {
  --bg: #f6f3ee;
  --bg-glow: #eaf2ec;
  --surface: #fffdfa;
  --surface-2: #f3efe8;
  --text: #1c211e;
  --muted: #646b66;
  --line: #e6e0d5;
  --line-strong: #d6cfc2;
  --accent: #2b7a5b;
  --accent-strong: #1f6349;
  --accent-text: #ffffff;
  --accent-soft: #e5f0ea;
  --danger: #b4412d;
  --focus: #2b7a5b;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-1: 0 1px 2px rgb(64 48 24 / 0.06), 0 1px 1px rgb(64 48 24 / 0.03);
  --shadow-2: 0 1px 2px rgb(64 48 24 / 0.06), 0 10px 28px -14px rgb(64 48 24 / 0.22);
  --ring: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --grid: #ebe6dc;
  --ghost: #857e72;
  /* category groups – dataviz reference palette, validated on #fffdfa */
  --tone-food: #2a78d6; --tone-drinks: #eb6834; --tone-home: #1baf7a; --tone-out: #eda100;
  --tone-shopping: #e87ba4; --tone-car: #008300; --tone-subs: #4a3aa7; --tone-neutral: #a8a294;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111412;
    --bg-glow: #17231d;
    --surface: #1a1e1b;
    --surface-2: #222724;
    --text: #e9ede9;
    --muted: #9ba49e;
    --line: #2b322e;
    --line-strong: #39413c;
    --accent: #62bc93;
    --accent-strong: #7fcda8;
    --accent-text: #0d1a13;
    --accent-soft: #1f3128;
    --danger: #e4836f;
    --focus: #62bc93;
    --shadow-1: 0 1px 0 rgb(255 255 255 / 0.03) inset, 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-2: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 12px 30px -14px rgb(0 0 0 / 0.7);
    --grid: #262c28;
    --ghost: #a9b2ac;
    /* same hues, stepped for the dark surface (validated on #1a1e1b) */
    --tone-food: #3987e5; --tone-drinks: #d95926; --tone-home: #199e70; --tone-out: #c98500;
    --tone-shopping: #d55181; --tone-car: #008300; --tone-subs: #9085e9; --tone-neutral: #6f6b62;
  }
}

/* unbagbot public site. Colours, radii, shadows and the focus ring come from the tokens above
   (copied from web/src/theme.css by tools/build_site.py). Nothing is loaded from CSS: no images, no imports. */

:root {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 64rem;
  --gutter: 1.25rem;
  --duration: 160ms;
}

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

html {
  color-scheme: light dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image: radial-gradient(60rem 26rem at 50% -8rem, var(--bg-glow), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font: 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { flex: 1 0 auto; }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 { margin: 0; line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 1.35rem + 2vw, 2.75rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.375rem, 1.2rem + 0.9vw, 1.875rem); font-weight: 680; letter-spacing: -0.02em; margin-bottom: 1.25rem; }
h3 { font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.01em; }
p, li { text-wrap: pretty; }
p { margin: 0 0 1rem; }

a { color: var(--accent-strong); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 1rem; }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Skip link, header ---------- */
.skip {
  position: absolute; left: 0.75rem; top: 0.75rem; z-index: 10;
  padding: 0.6rem 1rem; border-radius: var(--radius);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-2);
  transform: translateY(-300%);
}
.skip:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 3.5rem; }
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem; min-height: 2.75rem;
  color: var(--text); font-weight: 700; letter-spacing: -0.02em; text-decoration: none;
}
.brand::before {
  content: ""; flex: none; width: 1.4rem; height: 1.4rem; border-radius: 0.45rem;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 70%, #ffffff), var(--accent) 55%, var(--accent-strong));
}

.lang { display: flex; gap: 0.25rem; }
.lang a {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 0.8rem;
  border-radius: var(--radius); color: var(--muted); font-size: 0.875rem; font-weight: 600;
  letter-spacing: 0.04em; text-decoration: none;
  transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
}
.lang a[aria-current="true"] { background: var(--accent-soft); color: var(--text); }

/* ---------- Buttons ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0; }
.cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem;
  padding: 0 1.4rem; border-radius: var(--radius); border: 1px solid transparent;
  background: var(--accent); color: var(--accent-text); font-weight: 600; text-decoration: none;
  transition: transform var(--duration) var(--ease), background-color var(--duration) var(--ease);
}
.cta.secondary { background: transparent; border-color: var(--line-strong); color: var(--text); }
.cta:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .cta:hover { background: var(--accent-strong); }
  .cta.secondary:hover { background: var(--surface-2); }
  .lang a:hover { background: var(--surface-2); color: var(--text); }
  .lang a[aria-current="true"]:hover { background: var(--accent-soft); }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 4vw, 3rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 38rem; margin-top: 1rem; }
.status {
  display: inline-flex; align-items: center; gap: 0.5rem; margin: 1.5rem 0 0.5rem;
  font-size: 0.875rem; font-weight: 600; color: var(--text);
}
.status::before {
  content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); flex: none;
}
.privacy-line { font-size: 0.9375rem; color: var(--muted); margin: 0; max-width: 38rem; }

.demo { margin: 0; justify-self: center; width: 100%; max-width: 24rem; }
.demo svg { display: block; width: 100%; height: auto; font: 13px/1 var(--font); }
.demo figcaption { margin-top: 0.75rem; font-size: 0.8125rem; color: var(--muted); text-align: center; }
.d-paper { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1; }
.d-mono { font-family: var(--mono); font-size: 12px; fill: var(--text); }
.d-store { font-family: var(--mono); font-size: 11px; fill: var(--muted); letter-spacing: 0.08em; }
.d-total { font-family: var(--mono); font-size: 12px; font-weight: 700; fill: var(--text); }
.d-rule { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 3; }
.d-check { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.d-note { fill: var(--accent-strong); font-size: 13px; font-weight: 600; }
.d-arrow { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.d-label { fill: var(--text); font-size: 13px; }
.d-value { fill: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.d-track { fill: var(--surface-2); }
.d-bar-1 { fill: var(--tone-food); }
.d-bar-2 { fill: var(--tone-drinks); }
.d-bar-3 { fill: var(--tone-home); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(2rem, 5vw, 3.5rem); border-top: 1px solid var(--line); }
.section.tight { padding-top: 1.5rem; border-top: 0; }
.page-head { padding-block: clamp(2rem, 6vw, 3.5rem) 1rem; }
.prose { max-width: 44rem; }
.prose p, .prose li { max-width: 40rem; }
.small { font-size: 0.875rem; color: var(--muted); }
.more { margin: 1.25rem 0 0; font-weight: 600; }
.quote {
  margin: 0 0 0.75rem; padding: 1rem 1.25rem; border-left: 3px solid var(--accent);
  background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow-1);
}
.controller { margin-top: 1rem; }

.cards { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card, .cards > li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.25rem; box-shadow: var(--shadow-1);
}
.cards h3 { margin-bottom: 0.4rem; }
.cards p { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.steps { counter-reset: step; }
.steps > li { counter-increment: step; }
.steps > li::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 1.75rem; height: 1.75rem; margin-bottom: 0.75rem; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-strong); font-size: 0.875rem; font-weight: 700;
}

.split { display: grid; gap: 1.5rem 3rem; align-items: start; }
.paper {
  font-family: var(--mono); font-size: 0.9375rem; background: var(--surface);
  border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 0.9rem 1.1rem; max-width: 22rem;
}
.paper p { margin: 0; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0.15rem; top: 0.45em; width: 0.5rem; height: 0.5rem;
  border-radius: 50%; background: var(--accent);
}
.ticks.planned li::before { background: transparent; border: 2px solid var(--muted); }
h3 + .ticks { margin-top: 0.75rem; }
.prose h3 { margin-top: 1.5rem; }

.soon-list { display: grid; gap: 1rem; margin: 0 0 1rem; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.soon-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; }
.soon-list p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.9375rem; }
.tag {
  display: inline-block; margin-bottom: 0.5rem; padding: 0.1rem 0.55rem; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); font-size: 0.75rem; font-weight: 600;
}

.pilot p { margin: 0; color: var(--muted); text-align: center; max-width: 40rem; margin-inline: auto; }

/* ---------- Data table ---------- */
.facts {
  width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); overflow: hidden;
}
.facts th, .facts td {
  padding: 0.85rem 1rem; text-align: left; vertical-align: top; font-size: 0.9375rem;
  border-bottom: 1px solid var(--line);
}
.facts thead th { background: var(--surface-2); color: var(--muted); font-size: 0.8125rem; font-weight: 650; }
.facts tbody tr:last-child td { border-bottom: 0; }
.facts .tag { display: block; width: fit-content; margin-bottom: 0.5rem; }

@media (max-width: 55.99rem) {
  .facts thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
  }
  .facts, .facts tbody, .facts tr, .facts td { display: block; }
  .facts tr { padding-block: 0.5rem; border-bottom: 1px solid var(--line); }
  .facts tbody tr:last-child { border-bottom: 0; }
  .facts td { border: 0; padding: 0.4rem 1rem; }
  .facts td::before {
    content: attr(data-label); display: block; margin-bottom: 0.1rem;
    color: var(--muted); font-size: 0.75rem; font-weight: 650;
  }
}

/* ---------- 404 ---------- */
.notfound { padding-block: clamp(3rem, 12vw, 6rem); }
.h1-en { margin: 0.5rem 0 0; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); color: var(--muted); letter-spacing: -0.02em; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 2rem; border-top: 1px solid var(--line); padding-block: 1.75rem; color: var(--muted); font-size: 0.875rem; }
.site-footer p { margin: 0 0 0.35rem; }
.site-footer ul { list-style: none; margin: 0.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-footer a { display: inline-flex; align-items: center; min-height: 2.5rem; }
.site-footer .block + .block { margin-top: 1.25rem; }

/* ---------- Wider screens ---------- */
@media (min-width: 56rem) {
  :root { --gutter: 2rem; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; }
  .split { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .cta:active { transform: none; }
}
