/* Toerdle — marketing design system (shared by the landing + FAQ + Partner).
 *
 * Light-only, full-bleed, 1200px content column — mirrors index.html's bespoke
 * base so the marketing, partner, FAQ, legal, and help pages read as one system.
 * Cookie-free: self-hosted system font stack, zero third-party embeds (W-G5).
 */
:root {
  --ink: #0E1116;
  --ink-2: #333841;
  --muted: #5F674D;
  --soft: #7E8964;
  --page: #F4F7EE;
  --shell: #FFFFFF;
  --shell-2: #FBFCF7;
  --section: #EEF3DF;
  --stroke: #DDE5C2;
  --line: rgba(14, 17, 22, .07);
  --brand: #C8F23C;
  --brand-2: #AACF34;
  --brand-3: #89A629;
  --brand-4: #677D1F;
  --brand-5: #455415;
  --carbs: var(--brand-5);
  --protein: var(--brand-4);
  --fat: var(--brand-3);
  --blue-soft: #EEF3DF;
  --amber-soft: #E1E6C8;
  --green-soft: #F0FBD2;  /* brand wash — DDR-003 */
  --rose-soft: #F4F7EE;
  --shadow: 0 24px 70px -38px rgba(14, 17, 22, .42);
  --shadow-soft: 0 18px 52px -36px rgba(14, 17, 22, .32);
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--shell);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.page { width: 100%; margin: 0; overflow: hidden; border: 0; border-radius: 0; background: var(--shell); }
.wrap { width: min(100% - 72px, 1200px); margin: 0 auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 50;
  padding: 10px 16px; border-radius: 0 0 12px 0;
  /* Pinned, not var(--ink): --ink inverts to near-white in the dark ramp of the
     sibling sheet, and this rule is copied between the two. */
  background: #0B0E16; color: #fff; font-weight: 800;
}
.skip-link:focus { left: 0; }

/* ---- Nav ---- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 86px; padding-top: 6px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 800; }
.brand-mark {
  display: grid; width: 42px; height: 42px; place-items: center; overflow: hidden;
  border: 1px solid rgba(14, 17, 22, .08); border-radius: 12px; background: #fff;
  box-shadow: 0 14px 30px -22px rgba(14, 17, 22, .46);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 13px; font-weight: 700; }
.nav-links a { transition: color .18s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 10px;
  border-radius: var(--r-pill); font-size: 13px; font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { padding: 0 22px; color: #fff; background: var(--ink); box-shadow: 0 18px 38px -24px rgba(14, 17, 22, .8); }
.btn-secondary { padding: 0 18px; color: var(--ink); border: 1px solid var(--stroke); background: #fff; }

/* ---- Store badge ---- */
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.store-badge {
  display: inline-flex; min-width: 148px; min-height: 46px; align-items: center; gap: 10px;
  padding: 8px 15px; border-radius: var(--r-pill); color: #fff; background: #0B0C0F;
  box-shadow: 0 18px 36px -26px rgba(14, 17, 22, .9);
}
.store-badge svg { width: 19px; height: 19px; flex: 0 0 auto; }
.store-badge small, .store-badge strong { display: block; line-height: 1.05; }
.store-badge small { color: rgba(255, 255, 255, .68); font-size: 9px; font-weight: 700; }
.store-badge strong { margin-top: 2px; font-size: 13px; font-weight: 800; }

/* ---- Eyebrow ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border: 1px solid var(--stroke); border-radius: var(--r-pill); color: var(--ink-2);
  background: var(--shell-2); box-shadow: 0 12px 30px -26px rgba(14, 17, 22, .44);
  font-size: 12px; font-weight: 800;
}
.dot { width: 8px; height: 8px; border-radius: 99px; background: var(--brand-4); }

/* ---- Shared prose helpers ---- */
.lede { color: var(--muted); font-size: 18px; font-weight: 600; margin: 0; max-width: 60ch; }
.updated { color: var(--soft); font-size: 13px; font-weight: 700; margin: 6px 0 0; }

/* ---- Document pages ---- */
.doc-hero { padding: 34px 0 8px; }
.doc-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 40px; align-items: start;
}
.doc-hero h1 {
  font-size: 52px; font-weight: 800; line-height: 1.03; letter-spacing: -.01em;
  margin: 12px 0 12px; max-width: 14ch;
}
.doc-aside {
  padding: 24px; border: 1px solid var(--stroke); border-radius: var(--r-md);
  background: var(--shell); box-shadow: var(--shadow-soft);
}
.doc-aside img { width: 92px; margin: 0 0 14px; }
.doc-aside dl { margin: 0; display: grid; gap: 12px; }
.doc-aside div {
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 12px; border-top: 1px solid var(--stroke);
}
.doc-aside div:first-child { padding-top: 0; border-top: 0; }
.doc-aside dt { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.doc-aside dd { margin: 0; color: var(--ink); font-size: 13px; font-weight: 800; text-align: right; }
.doc-layout {
  display: grid; grid-template-columns: minmax(0, .78fr) minmax(280px, .22fr);
  gap: 34px; align-items: start; padding: 38px 0 12px;
}
.doc-prose { max-width: 760px; }
.doc-prose h2 {
  font-size: 28px; font-weight: 800; line-height: 1.15; letter-spacing: -.005em;
  margin: 42px 0 12px;
}
.doc-prose h2:first-child { margin-top: 0; }
.doc-prose h3 { font-size: 18px; font-weight: 800; margin: 26px 0 8px; }
.doc-prose p { color: var(--ink-2); font-size: 16px; line-height: 1.7; margin: 0 0 14px; }
.doc-prose ul, .doc-prose ol { color: var(--ink-2); margin: 0 0 18px; padding-left: 22px; }
.doc-prose li { margin: 7px 0; line-height: 1.65; }
.doc-prose a { color: var(--brand-5); text-decoration: underline; text-underline-offset: 2px; }
.doc-card {
  padding: 24px; border: 1px solid var(--stroke); border-radius: var(--r-md);
  background: var(--shell-2); margin: 0 0 16px;
}
.doc-card h3 { margin-top: 0; }
.doc-card p:last-child { margin-bottom: 0; }
.doc-card--calm { background: var(--green-soft); border-color: transparent; }
.doc-card--warn { background: var(--amber-soft); border-color: transparent; }
.doc-side-stack { display: grid; gap: 14px; position: sticky; top: 20px; }
.doc-side-card {
  padding: 20px; border: 1px solid var(--stroke); border-radius: var(--r-md);
  background: var(--shell);
}
.doc-side-card b { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 800; }
.doc-side-card p { margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.55; }
.doc-contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

/* ---- Footer ---- */
footer { padding: 58px 0 34px; }
.footer-grid {
  display: grid; grid-template-columns: minmax(210px, 1.35fr) repeat(3, minmax(120px, 1fr));
  gap: 36px; padding-top: 30px; border-top: 1px solid var(--stroke);
}
.footer-grid > div:first-child p { margin: 18px 0 0; color: var(--muted); font-size: 13px; font-weight: 650; }
.footer-links { display: grid; align-content: start; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 700; }
.footer-links strong { margin-bottom: 7px; color: var(--ink); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.footer-links a { transition: color .18s ease; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--stroke);
  color: var(--soft); font-size: 12px; font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media (max-width: 1020px) {
  .nav-links { display: none; }
  .doc-hero-grid, .doc-layout { grid-template-columns: 1fr; gap: 24px; }
  .doc-side-stack { position: static; }
}

@media (max-width: 720px) {
  .wrap { width: min(100% - 32px, 1130px); }
  .nav { min-height: 74px; }
  .nav-actions .btn-secondary { display: none; }
  .btn-primary { min-height: 42px; padding: 0 16px; }
  .doc-hero h1 { font-size: 38px; }
  .doc-contact-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 22px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; margin-top: 36px; }
}
