/* Zugo landing page. Colour tokens mirror packages/core/lib/src/ui/theme/app_colors.dart. */

:root {
  --zugo: #6CB645;        /* logo background */
  --lime: #A8CF38;        /* small accents */
  --brand: #007A38;       /* primary buttons, links */
  --brand-light: #E8F5E1;
  --brand-ink: #006B35;   /* green text on light surfaces */
  --brand-deep: #01582E;  /* logo leaf: hero, footer */
  --bg: #FFFFFF;
  --bg-2: #FAFAFA;
  --surface: #FFFFFF;
  --text: #212121;
  --text-2: #6B6B6B;
  --border: #E0E0E0;
  --link: #007A38;
  --shadow: 0 8px 24px rgba(1, 88, 46, 0.12);
  --area-fill: #6CB645;   /* delivery-area figure */
  --area-line: #007A38;
  --area-ink: #01582E;
  --r-sm: 6px;
  --r: 8px;
  --gutter: 16px;
  --max: 1120px;
  --header-h: 64px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121512;
    --bg-2: #181C18;
    --surface: #1E231E;
    --text: #ECEFEA;
    --text-2: #AEB6AE;
    --border: #2F362F;
    --brand-light: #1B3A27;
    --brand-ink: #9BDB84;
    --link: #8FD27A;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    --area-fill: #8FD27A;
    --area-line: #A8CF38;
    --area-ink: #E4F3DA;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; text-wrap: balance; }
p { margin: 0 0 16px; }
ul, ol { margin: 0; padding: 0; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--brand-deep);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.hero :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible { outline-color: var(--lime); }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-decoration: none;
  color: var(--brand-ink);
  font-weight: 600;
  font-size: 17px;
  white-space: nowrap;
}
.brand img { width: 36px; height: 36px; flex: none; }
@media (max-width: 399.98px) {
  .brand-tail { display: none; } /* "Zugo" alone on the narrowest phones */
}
.nav ul { list-style: none; display: flex; gap: 4px; }
.nav a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
}
.nav a:hover { background: var(--brand-light); color: var(--brand-ink); }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--r-sm);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

/* The five nav links plus brand and button need ~900px in one row; below that, the ☰ menu. */
@media (max-width: 899.98px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: absolute;
    left: calc(-1 * var(--gutter));
    right: calc(-1 * var(--gutter));
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 8px var(--gutter) 12px;
  }
  .site-header.nav-open .nav { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: 12px 8px; font-size: 16px; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
  transition: background-color 0.15s, color 0.15s, transform 0.15s, border-color 0.15s;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: 14px; }
.btn-light { background: #fff; color: var(--brand-deep); }
.btn-light:hover { background: #E8F5E1; }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.75); color: #fff; }
.btn svg { flex: none; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

/* ── Hero ── */
.hero {
  background: var(--brand-deep);
  color: #fff;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  gap: 32px;
  padding-top: 40px;
}
.hero-wordmark { width: 140px; height: auto; margin-bottom: 4px; }
.eyebrow, .kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.eyebrow { color: var(--lime); }
.kicker { color: var(--brand-ink); }
.hero h1 {
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}
.hero-lead {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
  margin-bottom: 24px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-size: 13px; color: rgba(255, 255, 255, 0.72); margin: 14px 0 0; max-width: 520px; }
.hero-visual {
  background: var(--zugo);
  border-radius: var(--r) var(--r) 0 0;
  padding: 28px 24px 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.hero-visual img { width: min(100%, 300px); height: auto; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.hero-copy > * { animation: rise 0.6s ease-out both; }
.hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.hero-copy > :nth-child(3) { animation-delay: 0.12s; }
.hero-copy > :nth-child(4) { animation-delay: 0.18s; }
.hero-copy > :nth-child(5) { animation-delay: 0.24s; }
.hero-copy > :nth-child(6) { animation-delay: 0.3s; }
.hero-visual { animation: rise 0.8s ease-out 0.2s both; }

@media (min-width: 720px) {
  .hero h1 { font-size: 36px; }
}
@media (min-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
    gap: 48px;
    padding-top: 64px;
  }
  .hero-copy { padding-bottom: 64px; }
  .hero-wordmark { width: 160px; }
  .hero h1 { font-size: 44px; }
  .hero-visual { padding: 40px 32px 0; }
  .hero-visual img { width: min(100%, 360px); }
}

/* ── Sections ── */
.section { padding: 56px 0; } /* anchor offset comes from html scroll-padding-top */
.section-alt { background: var(--bg-2); }
.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head p:last-child { color: var(--text-2); margin: 0; }
.section h2 { font-size: 26px; font-weight: 700; }
@media (min-width: 720px) {
  .section { padding: 80px 0; }
  .section h2 { font-size: 32px; }
  .section-head { margin-bottom: 36px; }
}

.grid { display: grid; gap: 16px; list-style: none; }
@media (min-width: 720px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .features { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
}
.card h3 { font-size: 17px; font-weight: 600; margin: 12px 0 6px; }
.card p { color: var(--text-2); margin: 0; font-size: 15px; }
.card p + p { margin-top: 8px; }
.icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r);
  background: var(--brand-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
}
.step { position: relative; }
.step-no {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── Screenshots ── */
.shots-title { font-size: 20px; font-weight: 600; margin: 40px 0 16px; }
.shots {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 0 12px;
  -webkit-overflow-scrolling: touch;
}
.shot { flex: 0 0 min(72%, 280px); scroll-snap-align: start; margin: 0; }
.shot img { border-radius: var(--r); border: 1px solid var(--border); width: 100%; }
.shot figcaption { font-size: 14px; color: var(--text-2); margin-top: 8px; text-align: center; }
@media (min-width: 720px) {
  .shots { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; max-width: 880px; }
  .shot { flex: none; }
}

/* ── Delivery area ── */
.area-grid { display: grid; gap: 28px; }
.area-figure {
  background: var(--brand-light);
  border-radius: var(--r);
  padding: 24px;
  display: flex;
  justify-content: center;
}
.area-figure svg { width: min(100%, 320px); height: auto; }
.check-list { list-style: none; display: grid; gap: 10px; margin: 0 0 24px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.area-cta { margin: 0; }
@media (min-width: 900px) {
  .area-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px; }
}

/* ── FAQ ── */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  font-weight: 600;
  font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 10px;
  border-right: 2px solid var(--brand-ink);
  border-bottom: 2px solid var(--brand-ink);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { color: var(--text-2); margin: 0 0 18px; padding-right: 32px; }

/* ── Contact ── */
.contact-card a { font-weight: 600; overflow-wrap: anywhere; }
.contact-card address { font-style: normal; color: var(--text-2); font-size: 15px; margin-bottom: 8px; }
.contact-hours { color: var(--text-2); margin: 20px 0 0; }

/* ── CTA band ── */
.cta-band {
  background: var(--brand);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}
.cta-band h2 { font-size: 26px; font-weight: 700; margin-bottom: 20px; }
.cta-band .hero-actions { justify-content: center; }
@media (min-width: 720px) {
  .cta-band { padding: 64px 0; }
  .cta-band h2 { font-size: 32px; }
}

/* ── Footer ── */
.site-footer {
  background: var(--brand-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 40px 0 24px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 17px;
}
.footer-brand img { width: 36px; height: 36px; }
.footer-tag { margin: 8px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { display: inline-block; padding: 6px 0; color: #fff; text-decoration: none; font-weight: 500; font-size: 15px; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 24px;
  padding-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
}

/* ── 404 ── */
.notfound-body { min-height: 100vh; display: flex; flex-direction: column; }
.notfound-body main { flex: 1; }
.notfound { padding: 72px 0; text-align: center; }
.notfound .big { font-size: 64px; line-height: 1; margin-bottom: 8px; }
.notfound h1 { font-size: 30px; }
.notfound p { color: var(--text-2); max-width: 480px; margin: 0 auto 24px; }

/* ── Motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
  }
  .btn:hover { transform: none; }
}

/* Download page */
.download { padding: 48px 0 72px; }
.download h1 { font-size: 30px; margin: 0 0 8px; }
.dl-lead { color: var(--text-2); max-width: 620px; margin: 0 0 28px; }
.dl-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.dl-card { text-align: center; padding: 24px 20px; }
.dl-card h2 { font-size: 20px; margin: 4px 0 8px; }
.dl-card p { margin-bottom: 16px; }
.dl-emoji { font-size: 40px; line-height: 1; margin: 0 0 4px; }
.dl-meta { color: var(--text-2); font-size: 13px; margin: 12px 0 0; }
.dl-card .dl-meta { margin-bottom: 0; }
.dl-h2 { font-size: 20px; margin: 36px 0 12px; }
.dl-steps { color: var(--text-2); padding-left: 22px; max-width: 620px; margin: 0; }
.dl-steps li + li { margin-top: 8px; }
.nav a[aria-current="page"] { color: var(--brand-ink); font-weight: 600; }
@media (min-width: 700px) { .dl-grid { grid-template-columns: 1fr 1fr; } }
