/* ==========================================================================
   VeganCheckr — vegancheckr.com design system
   Brand: blue #0079fe (App Store screenshots), leaf green #39b54a (icon)
   ========================================================================== */

:root {
  --blue: #0079fe;
  --blue-dark: #005fd6;
  --blue-deep: #0b3a8a;
  --navy: #0b1f3a;
  --green: #39b54a;
  --green-dark: #2c9a3c;
  --red: #e5484d;
  --ink: #1d2a38;
  --muted: #56687b;
  --bg: #ffffff;
  --bg-soft: #f2f7ff;
  --bg-mint: #f0faf1;
  --line: #dfe8f2;
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.10);
  --shadow-lg: 0 24px 60px rgba(11, 31, 58, 0.16);
  --radius: 16px;
  --radius-lg: 24px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

section { padding: clamp(64px, 9vw, 108px) 0; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.15; letter-spacing: -0.02em; }

h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }

.section-kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  background: #e3efff;
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 16px;
}

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.08rem; }

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
  margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 2px 8px rgba(11,31,58,.12); }

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--blue); text-decoration: none; }
/* The in-menu Download button is for the mobile menu only — the standalone
   header button covers desktop. Hide it (and its li, where :has is supported). */
.nav-links .btn { display: none; }
.nav-links li:has(> .btn) { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--navy);
}

/* --------------------------------------------------------------------------
   Buttons & badges
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 8px 20px rgba(0, 121, 254, 0.35);
}
.btn:hover { background: var(--blue-dark); transform: translateY(-1px); text-decoration: none; }
.btn.small { padding: 10px 18px; font-size: 0.9rem; box-shadow: none; }
.btn.ghost {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--line);
  box-shadow: none;
}
.btn.ghost:hover { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn.inverse { background: #fff; color: var(--blue); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.btn.inverse:hover { background: #eef5ff; }

.appstore-badge img { height: 54px; width: auto; }
.appstore-badge:hover { opacity: .88; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(0, 121, 254, 0.14), transparent 60%),
    radial-gradient(800px 500px at -10% 30%, rgba(57, 181, 74, 0.10), transparent 55%),
    var(--bg);
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 84px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hero h1 .accent { color: var(--blue); }
.hero .subtitle {
  margin-top: 20px;
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 560px;
}

.hero-ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 32px; }

.hero-note { margin-top: 14px; font-size: 0.9rem; color: var(--muted); }

.trust-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; list-style: none; }
.trust-chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(11,31,58,.05);
}
.trust-chips .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }

/* Phone mockup */
.phone-wrap { display: flex; justify-content: center; position: relative; }
.phone {
  width: min(320px, 78vw);
  border-radius: 46px;
  border: 10px solid var(--navy);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--navy);
  transform: rotate(2.5deg);
}
.phone img { border-radius: 36px; }
.phone-wrap .float-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 14px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: var(--shadow);
  color: var(--navy);
}
.float-badge.vegan { top: 14%; left: -4%; }
.float-badge.nonvegan { bottom: 12%; right: -4%; }
.float-badge .ico {
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.85rem; font-weight: 800; flex: none;
}
.float-badge.vegan .ico { background: var(--green); }
.float-badge.nonvegan .ico { background: var(--red); }

/* --------------------------------------------------------------------------
   Stats / social proof strip
   -------------------------------------------------------------------------- */

.stats-strip { background: var(--navy); padding: 26px 0; }
.stats-strip .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px 32px;
}
.stat { color: #fff; display: flex; align-items: baseline; gap: 10px; }
.stat b { font-size: 1.35rem; letter-spacing: -0.01em; }
.stat span { color: #9fb6d4; font-size: 0.92rem; }

/* --------------------------------------------------------------------------
   Feature cards
   -------------------------------------------------------------------------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c9dcf2; }

.card .icon-tile {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  background: #e3efff;
}
.card .icon-tile.green { background: #e2f6e5; }
.card .icon-tile.amber { background: #fdf1dc; }
.card .icon-tile.rose { background: #fde7e8; }
.card .icon-tile.violet { background: #efe8fd; }
.card .icon-tile.cyan { background: #dff5f9; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card .card-link { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}

.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 28px 30px;
}
.step .num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 6px 16px rgba(0,121,254,.35);
}
.step:nth-child(2) .num { background: var(--green); box-shadow: 0 6px 16px rgba(57,181,74,.35); }
.step:nth-child(3) .num { background: var(--blue-deep); box-shadow: 0 6px 16px rgba(11,58,138,.3); }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.98rem; }

/* --------------------------------------------------------------------------
   Screenshots carousel
   -------------------------------------------------------------------------- */

.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(260px, 68vw);
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 24px 26px;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) transparent;
}
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: #bcd6f5; border-radius: 4px; }

.shot { scroll-snap-align: center; }
.shot img {
  border-radius: 26px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.shot figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Guides grid
   -------------------------------------------------------------------------- */

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #c9dcf2;
  text-decoration: none;
}
.guide-card .tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-dark);
  background: #e2f6e5;
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 14px;
}
.guide-card .tag.blue { color: var(--blue-dark); background: #e3efff; }
.guide-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.guide-card p { color: var(--muted); font-size: 0.92rem; flex: 1; }
.guide-card .read { margin-top: 16px; font-weight: 700; font-size: 0.92rem; color: var(--blue); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-list { max-width: 820px; margin: 0 auto; }

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  font-weight: 700;
  color: var(--navy);
  position: relative;
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--blue);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--muted); }
.faq-item .faq-body a { font-weight: 700; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 40px;
  align-items: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: #d7e8ff; max-width: 520px; font-size: 1.08rem; }
.cta-band .hero-ctas { margin-top: 28px; }
.cta-qr {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  justify-self: center;
}
.cta-qr img { width: 170px; height: 170px; margin: 0 auto; }
.cta-qr span { display: block; margin-top: 10px; font-size: 0.82rem; font-weight: 700; color: var(--navy); }

/* --------------------------------------------------------------------------
   Blog cards
   -------------------------------------------------------------------------- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.post-card .post-top {
  height: 10px;
  background: linear-gradient(90deg, var(--blue), var(--green));
}
.post-card .post-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card .meta { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--blue); margin-bottom: 10px; }
.post-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.post-card p { color: var(--muted); font-size: 0.92rem; flex: 1; }
.post-card .read { margin-top: 14px; font-weight: 700; font-size: 0.9rem; color: var(--blue); }

/* --------------------------------------------------------------------------
   Article / guide pages (.prose)
   -------------------------------------------------------------------------- */

.page-hero {
  background:
    radial-gradient(900px 420px at 80% -20%, rgba(0,121,254,.12), transparent 60%),
    var(--bg-soft);
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--line);
}

.breadcrumbs { font-size: 0.86rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs .sep { margin: 0 8px; color: #b0c1d4; }

.page-hero h1 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); max-width: 860px; }
.page-hero .lede { margin-top: 16px; font-size: 1.12rem; color: var(--muted); max-width: 760px; }
.article-meta { margin-top: 18px; font-size: 0.88rem; color: var(--muted); }
.article-meta b { color: var(--navy); }

.article-layout { padding: clamp(40px, 6vw, 72px) 0; }

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin: 2.2em 0 0.6em; font-size: 1.65rem; }
.prose h3 { margin: 1.8em 0 0.5em; font-size: 1.22rem; }
.prose p { margin: 1em 0; }
.prose ul, .prose ol { margin: 1em 0 1em 1.4em; }
.prose li { margin: 0.45em 0; }
.prose li::marker { color: var(--blue); font-weight: 700; }
.prose strong { color: var(--navy); }
.prose blockquote {
  border-left: 4px solid var(--green);
  background: var(--bg-mint);
  padding: 16px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.4em 0;
  color: var(--ink);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
}
.prose th, .prose td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.prose th { background: var(--bg-soft); color: var(--navy); font-weight: 700; white-space: nowrap; }
.prose img { border-radius: var(--radius); box-shadow: var(--shadow); margin: 1.6em 0; }

.verdict {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 999px;
  padding: 6px 14px;
}
.verdict.yes { background: #e2f6e5; color: var(--green-dark); }
.verdict.no { background: #fde7e8; color: #c03540; }
.verdict.maybe { background: #fdf1dc; color: #9a6b13; }

/* In-article app callout */
.app-callout {
  background: linear-gradient(135deg, #eaf3ff 0%, #f0faf1 100%);
  border: 1px solid #cfe2f7;
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 2.2em 0;
}
.app-callout .co-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.app-callout .co-head img { width: 46px; height: 46px; border-radius: 11px; box-shadow: 0 2px 8px rgba(11,31,58,.15); margin: 0; }
.app-callout .co-head strong { color: var(--navy); font-size: 1.08rem; }
.app-callout ol, .app-callout ul { margin: 0.6em 0 1em 1.3em; }
.app-callout .btn { margin-top: 6px; }
.app-callout p { margin: 0.5em 0; }

/* Related links */
.related { max-width: 760px; margin: 48px auto 0; }
.related h2 { font-size: 1.3rem; margin-bottom: 18px; }
.related ul { list-style: none; display: grid; gap: 10px; }
.related li a {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 600;
  color: var(--navy);
}
.related li a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy);
  color: #b9c9de;
  padding: 64px 0 36px;
  margin-top: 0;
  font-size: 0.94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer p { max-width: 300px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; }
.site-footer li { margin: 9px 0; }
.site-footer a { color: #b9c9de; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: #8ba1bd;
}

/* --------------------------------------------------------------------------
   Reveal animations
   -------------------------------------------------------------------------- */

/* Content is visible by default; JS adds .pre before observing, so pages
   degrade gracefully without JavaScript (and for crawler rendering). */
.reveal.pre { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.pre.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal.pre { opacity: 1; transform: none; transition: none; }
  .card:hover, .guide-card:hover, .post-card:hover, .btn:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .cards-grid, .steps, .guides-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-qr { display: none; }
}

@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phone { transform: none; }
  .float-badge.vegan { left: 2%; }
  .float-badge.nonvegan { right: 2%; }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 24px;
    gap: 18px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav > .btn { display: none; }
  .nav-links .btn { display: inline-flex; }
  .nav-links li:has(> .btn) { display: block; }
}

@media (max-width: 560px) {
  .cards-grid, .steps, .guides-grid, .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-strip .container { justify-content: flex-start; }
  body { font-size: 16px; }
}
