/*
  Colour follows the app (CHECKme/CLAUDE.md §6): one brand accent, purple 275°; category colours are
  Apple's system tints and live on dots and bars only, never on text; green, orange and red are states,
  not decoration, so the page does not use them.
*/

:root {
  color-scheme: light dark;
  --ink: #1d1d1f;
  --ink-soft: #4d4d52;
  --ink-mute: #6e6e73;
  --paper: #f5f5f7;
  --paper-2: #ebebf0;
  --card: #ffffff;
  --line: rgba(0, 0, 0, 0.09);
  --accent: #9430d9;
  --accent-soft: #f3e8fc;
  --accent-ink: #ffffff;
  --night: #1d1d1f;
  --night-ink: #f5f5f7;
  --fill: rgba(120, 120, 128, 0.16);
  --shadow: 0 24px 60px rgba(40, 20, 60, 0.08);
  --radius: 28px;

  --c-veg: #34c759;
  --c-fruit: #ff9500;
  --c-meat: #ff3b30;
  --c-fish: #32ade6;
  --c-dairy: #ffcc00;
  --c-bread: #a2845e;
  --c-frozen: #007aff;
  --c-pantry: #5856d6;
  --c-drinks: #30b0c7;
  --c-snacks: #ff2d55;
  --c-household: #00c7be;
  --c-other: #8e8e93;

  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f5f5f7;
    --ink-soft: #b4b4ba;
    --ink-mute: #8e8e93;
    --paper: #000000;
    --paper-2: #1c1c1e;
    --card: #1c1c1e;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #b85cf0;
    --accent-soft: #2a1639;
    --accent-ink: #14041f;
    --night: #1c1c1e;
    --fill: rgba(120, 120, 128, 0.32);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);

    --c-veg: #30d158;
    --c-fruit: #ff9f0a;
    --c-meat: #ff453a;
    --c-fish: #64d2ff;
    --c-dairy: #ffd60a;
    --c-bread: #ac8e68;
    --c-frozen: #0a84ff;
    --c-pantry: #5e5ce6;
    --c-drinks: #40c8e0;
    --c-snacks: #ff375f;
    --c-household: #63e6e2;
    --c-other: #98989d;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 34rem),
    var(--paper);
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* Nav */

.nav {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  margin-top: 16px;
  padding: 10px 10px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: 0 10px 35px rgba(30, 20, 40, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.app-icon {
  width: 38px;
  height: 38px;
  border-radius: 22.5%;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(60, 20, 90, 0.18);
}

.nav-links {
  display: flex;
  gap: 4px;
  margin: 0 auto;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--fill);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 8px;
}

.langs {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.langs a {
  min-width: 36px;
  padding: 7px 8px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.langs a[aria-current] {
  color: var(--night-ink);
  background: var(--night);
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 14px;
  color: var(--accent-ink);
  background: var(--accent);
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover {
  background: color-mix(in srgb, var(--accent) 88%, var(--ink));
}

@media (prefers-color-scheme: dark) {
  .langs a[aria-current] {
    color: var(--ink);
    background: #3a3a3c;
  }
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 80px);
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 24px;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

h1 em {
  display: block;
  font-style: normal;
  color: var(--accent);
}

.intro {
  max-width: 580px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 34px;
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin: 0;
  padding: 0 20px 0 16px;
  border-radius: 14px;
  color: var(--night-ink);
  background: var(--night);
  font-size: 16px;
  font-weight: 750;
}

@media (prefers-color-scheme: dark) {
  .soon {
    color: var(--ink);
    border: 1px solid var(--line);
  }
}

.soon-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent);
}

.devices {
  color: var(--ink-mute);
  font-size: 15px;
  font-weight: 600;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 14px;
  font-weight: 700;
}

.chips li::before,
.checklist li::before,
.ticks li::before {
  content: '';
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 16px no-repeat;
}

/* Example receipt */

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-visual::before {
  content: '';
  position: absolute;
  width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 34%, transparent), transparent 68%);
  filter: blur(10px);
}

.receipt {
  position: relative;
  width: min(100%, 420px);
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--card);
  box-shadow:
    0 40px 80px -24px rgba(60, 20, 90, 0.28),
    0 12px 30px -12px rgba(0, 0, 0, 0.12);
  transform: rotate(1.5deg);
}

.receipt-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
}

.receipt-head strong {
  display: block;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.receipt-head span {
  display: block;
  margin-top: 3px;
  color: var(--ink-mute);
  font-size: 13px;
  font-weight: 600;
}

.receipt-total {
  text-align: end;
}

.receipt-total strong {
  font-size: 30px;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.composition {
  display: flex;
  gap: 2px;
  height: 12px;
  margin: 18px 0 8px;
  overflow: hidden;
  border-radius: 6px;
}

.composition span {
  min-width: 6px;
}

.c-veg { background: var(--c-veg); }
.c-fruit { background: var(--c-fruit); }
.c-meat { background: var(--c-meat); }
.c-fish { background: var(--c-fish); }
.c-dairy { background: var(--c-dairy); }
.c-bread { background: var(--c-bread); }
.c-frozen { background: var(--c-frozen); }
.c-pantry { background: var(--c-pantry); }
.c-drinks { background: var(--c-drinks); }
.c-snacks { background: var(--c-snacks); }
.c-household { background: var(--c-household); }
.c-other { background: var(--c-other); }

.lines {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lines li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.cat {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}

.line-name,
.line-sum {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.line-sum {
  text-align: end;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.lines small {
  display: block;
  color: var(--ink-mute);
  font-size: 12px;
  font-weight: 500;
}

/* On / off the list: the accent and a neutral fill, the same pair in the receipt and in the demo. */

.split {
  margin-top: 16px;
}

.split-bar {
  display: flex;
  gap: 2px;
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
}

.split-bar .on,
.key.on {
  background: var(--accent);
}

.split-bar .off,
.key.off {
  background: var(--c-other);
}

.split dl {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  margin: 10px 0 0;
}

.split dl div {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.split dt {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.split dd {
  margin: 0;
  font-size: 14px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.key {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Sections */

section {
  scroll-margin-top: 96px;
}

.section {
  padding: clamp(56px, 8vw, 104px) 0 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h3 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
}

.section-head p {
  margin: 16px 0 0;
  font-size: clamp(17px, 1.8vw, 20px);
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.step {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 15px;
  font-weight: 800;
}

/* Four moments */

.moments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.moment {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3.4vw, 40px);
}

.moment p {
  margin: 14px 0 24px;
}

.demo {
  margin-top: auto;
  padding: 18px;
  border-radius: 18px;
  background: var(--paper);
}

@media (prefers-color-scheme: dark) {
  .demo {
    background: #2c2c2e;
  }
}

.demo-title {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--card);
  font-size: 14px;
  font-weight: 650;
}

.tags .tag-more {
  color: var(--accent);
  background: var(--accent-soft);
}

.shelf {
  margin: 0;
  padding: 0;
  list-style: none;
}

.shelf li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  font-size: 15px;
  font-weight: 650;
}

.shelf li + li {
  border-top: 1px solid var(--line);
}

.shelf small {
  color: var(--ink-mute);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tick {
  width: 20px;
  height: 20px;
  border: 2px solid var(--c-other);
  border-radius: 50%;
}

.shelf .done span:not(.tick) {
  color: var(--ink-mute);
  text-decoration: line-through;
}

.shelf .done .tick {
  border-color: var(--accent);
  background: var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 16px no-repeat;
}

.demo .split {
  margin: 0;
}

.demo-number {
  display: grid;
  gap: 4px;
}

.demo-number strong {
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.demo-number span {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
}

.demo-number small {
  color: var(--ink-mute);
  font-size: 14px;
  font-weight: 650;
}

/* Three checks */

.checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  padding: clamp(24px, 3vw, 32px);
}

.checks p {
  margin: 12px 0 0;
}

.review {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  margin-top: 18px;
  padding: clamp(24px, 3.4vw, 36px);
  background: var(--accent-soft);
  border-color: transparent;
  box-shadow: none;
}

.review p {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 550;
}

.ticks,
.checklist {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  display: flex;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.ticks li::before {
  margin-top: 2px;
}

/* Small things */

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

.more .card {
  padding: clamp(22px, 2.8vw, 30px);
}

.more h3 {
  font-size: 21px;
  letter-spacing: -0.02em;
}

.more p {
  margin: 10px 0 0;
  font-size: 16px;
}

/* Privacy */

.dark-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--radius);
  color: #f5f5f7;
  background:
    radial-gradient(circle at 100% 0%, rgba(184, 92, 240, 0.28), transparent 30rem),
    #1d1d1f;
  box-shadow: var(--shadow);
}

@media (prefers-color-scheme: dark) {
  .dark-card {
    border: 1px solid var(--line);
    background:
      radial-gradient(circle at 100% 0%, rgba(184, 92, 240, 0.22), transparent 30rem),
      #1c1c1e;
  }
}

.dark-card .kicker,
.dark-card .text-link {
  color: #c98af5;
}

.dark-card p {
  margin: 18px 0 0;
  color: #c7c7cc;
  font-size: 18px;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 650;
  line-height: 1.35;
}

.checklist li::before {
  width: 22px;
  height: 22px;
  background-color: #b85cf0;
  background-size: 22px;
}

.text-link {
  display: inline-flex;
  margin-top: 26px;
  font-weight: 750;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* CTA */

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(56px, 8vw, 104px);
  padding: clamp(40px, 6vw, 72px) 24px;
  border-radius: var(--radius);
  text-align: center;
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.22), transparent 60%),
    linear-gradient(160deg, #a445e8, #7a1fbf);
}

.cta .app-icon {
  width: 88px;
  height: 88px;
  margin-bottom: 24px;
  box-shadow: 0 16px 32px rgba(40, 0, 70, 0.35);
}

.cta p {
  max-width: 520px;
  margin: 14px 0 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

.cta .button {
  color: #5c1391;
  background: #ffffff;
}

.cta .button:hover {
  background: #f3e8fc;
}

/* Footer */

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 32px;
  margin-top: 28px;
  padding: 28px 4px 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-mute);
  font-size: 14px;
  line-height: 1.55;
}

footer p {
  margin: 0;
  color: inherit;
  font-size: inherit;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: flex-end;
}

footer a {
  text-decoration: none;
}

footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Support */

.support {
  padding: clamp(40px, 7vw, 88px) 0 0;
}

.support h1,
.doc h1 {
  font-size: clamp(40px, 6vw, 64px);
}

.support .lead,
.doc .lead {
  max-width: 720px;
  margin: 18px 0 32px;
  font-size: 20px;
}

.support .lead a,
.contact a:not(.button),
.faq a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.faq {
  padding: 8px clamp(20px, 3vw, 32px);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 0;
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v9M3.5 8h9' fill='none' stroke='%239430d9' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 16px no-repeat;
  transition: transform 0.2s ease;
}

@media (prefers-color-scheme: dark) {
  .faq summary::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v9M3.5 8h9' fill='none' stroke='%23b85cf0' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  }
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: -6px 0 22px;
  max-width: 620px;
}

.contact {
  position: sticky;
  top: 96px;
  padding: clamp(24px, 3vw, 32px);
  background: var(--accent-soft);
  border-color: transparent;
  box-shadow: none;
}

.contact h2 {
  font-size: 26px;
  letter-spacing: -0.03em;
}

.contact p {
  margin: 12px 0 22px;
  color: var(--ink);
}

.contact .button {
  width: 100%;
}

/* Documents (privacy, 404) */

.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) 0 0;
}

.doc .meta {
  margin: 0 0 12px;
  color: var(--ink-mute);
  font-size: 14px;
}

.doc h2 {
  margin: 40px 0 0;
  font-size: 24px;
  letter-spacing: -0.025em;
}

.doc p,
.doc li,
.doc td,
.doc th {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
}

.doc ul {
  padding-inline-start: 22px;
}

.doc li + li {
  margin-top: 6px;
}

.doc strong {
  color: var(--ink);
}

.doc a {
  text-underline-offset: 3px;
}

.table {
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.doc table {
  width: 100%;
  border-collapse: collapse;
}

.doc th,
.doc td {
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1.45;
  text-align: start;
  vertical-align: top;
}

.doc th {
  color: var(--ink);
  font-weight: 750;
}

.doc tr + tr td,
.doc tbody tr:first-child td {
  border-top: 1px solid var(--line);
}

/* Draft markers: only in `npm run preview` builds, never deployed. */

.draft-note {
  margin: 0 0 28px;
  padding: 14px 18px;
  border: 2px dashed var(--accent);
  border-radius: 16px;
  color: var(--ink);
  font-weight: 650;
}

mark.draft {
  padding: 1px 4px;
  border-radius: 4px;
  color: #3b0a5c;
  background: #e9c8fb;
  font-weight: 700;
}

.back {
  display: inline-flex;
  margin-bottom: 28px;
  gap: 6px;
  color: var(--ink-soft);
  font-weight: 650;
  text-decoration: none;
}

/* Reveal on scroll */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 0.7s ease,
      transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .js .reveal.in {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Responsive */

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .checks,
  .more {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-grid,
  .review {
    grid-template-columns: 1fr;
  }

  .contact {
    position: static;
  }
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 44px;
  }

  .receipt {
    transform: none;
  }

  .moments,
  .dark-card {
    grid-template-columns: 1fr;
  }

  footer {
    grid-template-columns: 1fr;
  }

  footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .checks,
  .more {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .page {
    width: calc(100% - 32px);
  }

  .nav {
    padding: 8px 8px 8px 10px;
  }

  .nav .button {
    display: none;
  }

  .brand span {
    font-size: 16px;
  }

  .langs a {
    min-width: 32px;
    padding: 7px 6px;
  }

  .receipt {
    padding: 18px;
  }
}
