/* Colours are the app's own, copied from alimenta_mobile/src/theme/tokens.ts.
   Somebody opening this site after using the app should not have to wonder
   whether it is the same product. */
:root {
  --brand: #22a45d;
  --brand-deep: #17804a;
  --brand-soft: #e6f5ec;
  --brand-text: #17804a;
  --background: #f2f3f5;
  --surface: #ffffff;
  --surface-muted: #f7f8fa;
  --foreground: #16181d;
  --muted-foreground: #5f6672;
  --muted: #a0a6b0;
  --on-brand: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --border-mid: rgba(0, 0, 0, 0.14);
  --radius: 14px;
  --radius-lg: 20px;
  --page: 1080px;
  --prose: 44rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--brand-text); }
a:hover { color: var(--brand); }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 20px; }

/* ── Header ──────────────────────────────────────────────────────────── */
.site-header { background: var(--brand); color: var(--on-brand); }
.site-header a { color: var(--on-brand); text-decoration: none; }
.site-header .wrap {
  display: flex; align-items: center; gap: 20px;
  min-height: 64px; flex-wrap: wrap; padding-block: 10px;
}
.brand { font-weight: 800; font-size: 22px; letter-spacing: -0.2px; margin-right: auto; }
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.site-nav a { opacity: 0.92; }
.site-nav a:hover, .site-nav a[aria-current="page"] { opacity: 1; text-decoration: underline; }
/* The language switcher sat on the same line as the nav in the same
   colour and weight, so three languages read as three more sections.
   It is one control now: a sunk track with the current language raised
   out of it, which is a shape nobody mistakes for a link. */
.lang {
  display: flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  font-size: 13px; font-weight: 600;
}
.lang a {
  padding: 5px 11px; border-radius: 999px;
  opacity: 0.78; white-space: nowrap;
}
.lang a:hover { opacity: 1; }
.lang a[aria-current="true"] {
  background: var(--surface); color: var(--brand-deep);
  opacity: 1; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14);
}
.site-nav { padding-right: 6px; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { background: var(--brand); color: var(--on-brand); padding: 20px 0 64px; }
.hero h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.12; margin: 0 0 16px; max-width: 18ch; letter-spacing: -0.5px; }
.hero p { font-size: clamp(17px, 2.4vw, 21px); margin: 0 0 10px; max-width: 46ch; opacity: 0.94; }
.hero .note { font-size: 15px; opacity: 0.8; }

/* ── Sections and cards ──────────────────────────────────────────────── */
section { padding: 56px 0; }
section > .wrap > h2 { font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 28px; letter-spacing: -0.3px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted-foreground); font-size: 16px; }
.steps { counter-reset: step; }
.steps .card::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 12px;
  border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); font-weight: 800;
}

.band { background: var(--surface); }

.stores { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block; padding: 14px 26px; border-radius: var(--radius);
  background: var(--brand); color: var(--on-brand); font-weight: 700; text-decoration: none;
}
.btn:hover { background: var(--brand-deep); color: var(--on-brand); }
.btn.ghost { background: transparent; color: var(--brand-text); border: 1.5px solid var(--border-mid); }
.pending { color: var(--muted-foreground); font-size: 16px; margin: 0; }

.linklist { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); list-style: none; padding: 0; margin: 0; }
.linklist a {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px; text-decoration: none; font-weight: 600;
}
.linklist a:hover { border-color: var(--brand); }

/* ── Prose pages (FAQ, legal, support) ───────────────────────────────── */
.page { padding: 44px 0 72px; }
.page .wrap { max-width: var(--prose); }
.page h1 { font-size: clamp(28px, 4.6vw, 40px); margin: 0 0 10px; letter-spacing: -0.4px; }
.page .lede { color: var(--muted-foreground); font-size: 18px; margin: 0 0 36px; }
.page h2 { font-size: 22px; margin: 40px 0 12px; }
.page h3 { font-size: 18px; margin: 26px 0 6px; }
.page p, .page li { color: var(--foreground); }
.page .answer { color: var(--muted-foreground); margin: 0 0 18px; }
.page ul { padding-left: 22px; }
.page li { margin-bottom: 8px; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 32px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 4px; }

.fill-in {
  background: #fff6d8; border: 1px dashed #d8a200; border-radius: 6px;
  padding: 1px 6px; font-weight: 600; color: #7a5c00;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 44px 0 32px; margin-top: 20px; }
.site-footer .cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted-foreground); font-size: 14px; display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 640px) {
  section { padding: 40px 0; }
  .site-header .wrap { min-height: 0; }
}

/* ── The app, beside the promise ─────────────────────────────────────── */
.hero-grid { display: grid; gap: 36px; grid-template-columns: 1fr; align-items: center; }
.phone { justify-self: center; }
.phone img {
  display: block; width: 310px; height: auto;
  border-radius: 28px; border: 6px solid rgba(0, 0, 0, 0.28);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.26);
}
@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 48px; }
  .hero { padding-bottom: 72px; }
  .phone { justify-self: end; }
}

/* ── Card icons ──────────────────────────────────────────────────────── */
.card-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: 14px;
  border-radius: 13px; background: var(--brand-soft); color: var(--brand-text);
}
.card-icon svg { width: 24px; height: 24px; }
.steps .card::before { display: none; }
.steps .card { counter-increment: step; position: relative; }
.steps .card h3::before {
  content: counter(step) ". "; color: var(--brand-text); font-weight: 800;
}
