/* Grocery list landing — warm paper background, raspberry accent (the sibling projects are blue, green and orange), light/dark.
   Type: Fraunces (serif, self-hosted) for headings and the brand; system-ui only for running text.
   Radii: 4px for small controls, 8px for boxes, 12px only for the two closing cards; phone and screenshots keep device shapes. */
@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-latin-wght.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
:root {
  --bg: #f6f3ee; --card: #fff; --text: #22201c; --muted: #6b655c; --line: #e7e1d8;
  --accent: #b3274b; --accent-soft: rgba(179, 39, 75, 0.1); --gold: #f2c14e;
  --solid: #a8203f;
  --shadow: 0 18px 50px rgba(40, 30, 10, 0.18);
  --r-sm: 4px; --r-md: 8px; --r-lg: 12px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1a18; --card: #262422; --text: #f1ede6; --muted: #a39c90; --line: #36332f;
    --accent: #e3708a; --accent-soft: rgba(227, 112, 138, 0.16);
    --solid: #b3274b;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; line-height: 1.12; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 12px max(16px, calc(50% - 560px));
  background: color-mix(in srgb, var(--bg) 85%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-family: var(--serif); font-weight: 700; font-size: 22px; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: var(--r-sm); }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.links a:hover { color: var(--text); }
.lang { padding: 6px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card); color: var(--text); font: 700 13px system-ui, sans-serif; cursor: pointer; }
@media (max-width: 640px) { .links { display: none; } .lang { margin-left: auto; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: var(--r-sm); font-weight: 700; text-decoration: none; transition: transform 0.15s, box-shadow 0.2s; }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--solid); color: #fff; box-shadow: 0 10px 24px rgba(120, 20, 45, 0.3); }
.btn.ghost { background: var(--card); color: var(--text); border: 1.5px solid var(--line); }
.btn.bmc { background: #ffdd00; color: #1d1a05; box-shadow: 0 8px 20px rgba(255, 200, 0, 0.3); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ctas.center { justify-content: center; }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px; max-width: 1120px; margin: 0 auto; padding: 56px 16px 40px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; }
.hero h1 { margin: 0; font-size: clamp(38px, 5.6vw, 64px); font-weight: 650; }
.hero h1 span { display: inline-block; font-style: italic; font-weight: 500; color: var(--accent); }
.lead { margin: 18px 0 0; color: var(--muted); font-size: 19px; max-width: 560px; }
/* plain typographic list instead of chips */
.pills { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 26px 0 0; padding: 0; list-style: none; }
.pills li { padding: 0 14px; border-left: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.pills li:first-child { padding-left: 0; border-left: 0; }

/* phone with the live demo */
.hero-phone { display: grid; justify-items: center; gap: 12px; scroll-margin-top: 80px; }
.phone { position: relative; width: 340px; height: 700px; padding: 26px 10px 12px; border-radius: 48px; background: #0b0d12; box-shadow: var(--shadow), inset 0 0 0 2px #2a2e37; }
.phone-notch { position: absolute; z-index: 2; top: 10px; left: 50%; width: 70px; height: 6px; transform: translateX(-50%); border-radius: 999px; background: #2a2e37; }
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 30px; background: var(--bg); }
.phone-cover { position: absolute; inset: 26px 10px 12px; display: grid; place-items: center; border-radius: 30px; background: url('screenshots/en/list.png') top center / cover;
  color: #fff; font-weight: 800; font-size: 18px; text-decoration: none; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); }
.phone-cover::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: rgba(40, 12, 20, 0.45); }
.phone-cover { isolation: isolate; }
html[lang='es'] .phone-cover { background-image: url('screenshots/es/list.png'); }
.phone-cover::before { z-index: -1; }
.phone.live .phone-cover { display: none; }
.phone-note { max-width: 340px; margin: 0; color: var(--muted); font-size: 14px; text-align: center; }
.phone-full { font-size: 14px; font-weight: 600; }

/* sections */
.section { max-width: 1120px; margin: 0 auto; padding: 56px 16px; scroll-margin-top: 60px; }
.section > h2 { margin: 0 0 8px; font-size: clamp(28px, 3.6vw, 42px); text-align: center; }
.sub { margin: 0 auto 28px; max-width: 640px; color: var(--muted); text-align: center; }

/* features: an open ruled grid, numbered in the serif — no boxes */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 28px; margin-top: 40px; counter-reset: feat; }
.grid .card { padding: 14px 0 0; border-top: 2px solid var(--text); counter-increment: feat; }
.grid .card::before { content: counter(feat, decimal-leading-zero); font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--accent); letter-spacing: 0.04em; }
.card h3 { margin: 8px 0 6px; font-size: 21px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.shots { display: flex; gap: 18px; justify-content: center; overflow-x: auto; padding-top: 8px; scrollbar-width: none; }
.shots img { width: 220px; flex: none; border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); }

.privacy { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.privacy h2 { margin: 0 0 10px; font-size: clamp(28px, 3.6vw, 42px); }
.privacy p { margin: 0; color: var(--muted); font-size: 18px; }
.checks { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.checks li { position: relative; padding: 14px 0 14px 26px; border-top: 1px solid var(--line); }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li::before { content: ''; position: absolute; left: 0; top: 22px; width: 10px; height: 10px; background: var(--accent); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; display: grid; align-content: start; gap: 10px; padding: 56px 20px 20px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; top: 12px; left: 20px; font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1; color: var(--accent); }
.steps code { display: block; padding: 10px 12px; border-radius: var(--r-sm); background: #221a1c; color: #f1e3e6; font: 13px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow-x: auto; white-space: nowrap; }
.steps span { color: var(--muted); font-size: 15px; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card.big { display: grid; align-content: start; justify-items: start; gap: 12px; padding: 30px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.card.big h2 { margin: 4px 0 0; font-size: 28px; }
.card.big p { font-size: 16px; }
.card.coffee { background: color-mix(in srgb, #ffdd00 12%, var(--card)); }

.footer { padding: 30px 16px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; text-align: center; }

/* responsive */
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .phone { width: 280px; height: 560px; }
  .privacy, .duo, .steps { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } .shots { justify-content: flex-start; } .shots img { width: 180px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
