/* SnapFood marketing site — shared styles */

:root {
  --bg-dark: #0a0c0b;
  --bg-dark-2: #121514;
  --panel-dark: #181c1a;
  --green: #2fbe73;
  --green-bright: #45d98b;
  --green-deep: #1b5a47;
  --green-tint: #e9f7f0;
  --ink: #101613;
  --ink-soft: #39423d;
  --muted: #67716b;
  --muted-dark: #9aa59e;
  --bg-light: #ffffff;
  --bg-light-2: #f5f7f5;
  --line: #e4e8e5;
  --line-dark: #242927;
  --grade-s: #14b8a6;
  --grade-a: #2fbe73;
  --grade-b: #9bc53d;
  --grade-c: #f0a32f;
  --grade-d: #ef5d6f;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px rgba(10, 20, 15, 0.08);
  --shadow-lg: 0 24px 60px rgba(10, 20, 15, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "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);
  color: var(--ink);
  background: var(--bg-light);
  line-height: 1.6;
  font-size: 17px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; }

.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--dark { background: var(--bg-dark); color: #fff; }
.section--tint { background: var(--bg-light-2); }

.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-lead { font-size: 1.1rem; color: var(--muted); max-width: 620px; }
.section--dark .section-lead { color: var(--muted-dark); }

.accent { color: var(--green); }

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

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 11, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: -0.01em;
}
.nav__brand:hover { text-decoration: none; }
.nav__brand img { width: 32px; height: 32px; border-radius: 8px; }

.nav__links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  align-items: center;
}
.nav__links a { color: #cfd6d1; font-size: 15px; font-weight: 500; }
.nav__links a:hover { color: #fff; text-decoration: none; }

.nav__cta {
  background: var(--green);
  color: #06130c !important;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 15px;
  transition: background 0.15s ease;
}
.nav__cta:hover { background: var(--green-bright); text-decoration: none; }

@media (max-width: 820px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

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

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff !important;
  border: 1px solid #3a3f3c;
  border-radius: 14px;
  padding: 10px 22px 10px 16px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.btn-appstore:hover { transform: translateY(-2px); border-color: #6b736e; text-decoration: none; }
.btn-appstore svg { width: 28px; height: 34px; flex: none; }
.btn-appstore__text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.btn-appstore .btn-appstore__text small { font-size: 11px; font-weight: 500; opacity: 0.85; letter-spacing: 0.02em; color: #fff; }
.btn-appstore .btn-appstore__text strong { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: #fff; }

.btn-appstore--play svg { width: 26px; height: 28px; }

.cta-box__badges { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 14px;
  border: 1px solid var(--line-dark);
  color: #e6ebe8;
  font-weight: 600;
  font-size: 15px;
  transition: border-color 0.15s ease;
}
.btn-secondary:hover { border-color: #4a524d; text-decoration: none; color: #fff; }

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

.hero {
  background:
    radial-gradient(900px 520px at 78% 18%, rgba(47, 190, 115, 0.16), transparent 60%),
    radial-gradient(700px 420px at 8% 82%, rgba(20, 184, 166, 0.1), transparent 60%),
    var(--bg-dark);
  color: #fff;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  padding: clamp(48px, 7vw, 96px) 0 0;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin-bottom: 22px;
}

.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: #c3ccc6;
  max-width: 34em;
  margin-bottom: 32px;
}
.hero__lead strong { color: #fff; font-weight: 600; }

.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 26px; }

.hero__facts { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }

.chip {
  font-size: 13.5px;
  font-weight: 600;
  color: #d7ded9;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.chip svg { width: 14px; height: 14px; color: var(--green); }

.hero__phone-wrap { position: relative; display: flex; justify-content: center; }

.hero__phone {
  width: min(392px, 82vw);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55))
    drop-shadow(0 -6px 70px rgba(47, 190, 115, 0.18));
  margin-bottom: -80px;
}

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__ctas, .hero__facts { justify-content: center; }
  .hero__phone { margin-bottom: -60px; width: min(330px, 80vw); }
}

/* Grade strip */

.grade-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: #0d100f;
  position: relative;
  z-index: 2;
}
.grade-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 0;
  font-size: 15px;
  color: #b9c2bc;
}
.grade-strip__chips { display: inline-flex; gap: 8px; }

.grade-chip {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
}
.grade-chip--s { background: var(--grade-s); }
.grade-chip--a { background: var(--grade-a); }
.grade-chip--b { background: var(--grade-b); }
.grade-chip--c { background: var(--grade-c); }
.grade-chip--d { background: var(--grade-d); }
.grade-chip--muted { background: #232826; color: #939d97; }

/* ---------- Steps (How it works) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}

.step__num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--green-tint);
  color: var(--green-deep);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 17px;
}

.step h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15.5px; }
.step p em { color: var(--ink-soft); font-style: normal; font-weight: 600; }

/* ---------- Feature grid ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

.feature {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  background: #fff;
}
.feature svg { width: 26px; height: 26px; color: var(--green); margin-bottom: 14px; }
.feature h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature p { font-size: 14.5px; color: var(--muted); }

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

.carousel {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 48px 24px 8px;
  max-width: 1140px;
  margin: 0 auto;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }

.carousel figure {
  flex: 0 0 auto;
  width: min(280px, 72vw);
  scroll-snap-align: center;
}

.carousel img {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  width: 100%;
}

.carousel figcaption {
  text-align: center;
  font-size: 14px;
  color: var(--muted-dark);
  margin-top: 14px;
}

.carousel-hint { text-align: center; color: #7d877f; font-size: 13px; margin-top: 18px; }

/* ---------- Compare (why SnapFood) ---------- */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 48px;
}
@media (max-width: 820px) { .compare { grid-template-columns: 1fr; } }

.compare__col {
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  border: 1px solid var(--line);
  background: #fff;
}
.compare__col--snap {
  background: linear-gradient(160deg, #0e211a, #123227);
  border-color: rgba(47, 190, 115, 0.35);
  color: #fff;
}
.compare__col h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }
.compare__col ul { list-style: none; display: grid; gap: 12px; }
.compare__col li { display: flex; gap: 10px; font-size: 15px; color: var(--muted); align-items: flex-start; }
.compare__col--snap li { color: #cfe7db; }
.compare__col li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.compare__col li .no { color: #c8562f; }
.compare__col li .yes { color: var(--green); }

/* ---------- Guide cards ---------- */

.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 48px;
}
@media (max-width: 1000px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .guide-grid { grid-template-columns: 1fr; } }

.guide-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  color: var(--ink);
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.guide-card__tag { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-deep); }
.guide-card h3 { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; }
.guide-card p { font-size: 14px; color: var(--muted); flex: 1; }
.guide-card span { font-size: 14px; font-weight: 600; color: var(--green-deep); }

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

.faq-list { margin-top: 44px; display: grid; gap: 12px; }

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0 24px;
}
.faq-list details[open] { border-color: rgba(47, 190, 115, 0.5); }

.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 0;
  font-weight: 650;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--green);
  transition: transform 0.2s ease;
  flex: none;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }

.faq-list details > div { padding: 0 0 20px; color: var(--muted); font-size: 15.5px; }
.faq-list details a { font-weight: 600; }

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

.cta-band { text-align: center; }
.cta-band img.cta-icon {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  margin: 0 auto 26px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.cta-band h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 14px; }
.cta-band p { color: var(--muted-dark); font-size: 1.08rem; margin-bottom: 32px; }
.cta-band .hero__ctas { justify-content: center; }
.cta-band .fineprint { font-size: 13.5px; color: #7d877f; margin: 18px 0 0; }

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

.footer { background: var(--bg-dark); color: #aab4ae; border-top: 1px solid rgba(255, 255, 255, 0.06); padding: 56px 0 40px; font-size: 14.5px; }

.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.05rem; margin-bottom: 12px; }
.footer__brand img { width: 30px; height: 30px; border-radius: 8px; }

.footer h4 { color: #e6ebe8; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer a { color: #aab4ae; }
.footer a:hover { color: #fff; }

.footer__legal { border-top: 1px solid rgba(255, 255, 255, 0.07); padding-top: 24px; font-size: 13px; color: #77817a; display: grid; gap: 10px; }

/* ---------- Guide article pages ---------- */

.article-hero { background: var(--bg-dark); color: #fff; padding: 40px 0 48px; }

.breadcrumbs { font-size: 13.5px; color: #8b958e; margin-bottom: 22px; }
.breadcrumbs a { color: #b7c1ba; }
.breadcrumbs span { margin: 0 6px; }

.article-hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; max-width: 20em; }
.article-hero .meta { margin-top: 16px; font-size: 14px; color: #8b958e; }

.prose { max-width: 720px; margin: 0 auto; padding: 48px 24px 24px; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: 1.5rem; font-weight: 750; letter-spacing: -0.015em; margin-top: 2em; line-height: 1.25; }
.prose h3 { font-size: 1.15rem; font-weight: 700; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 0.5em; }
.prose li::marker { color: var(--green); font-weight: 700; }
.prose strong { color: var(--ink); }
.prose .note { font-size: 14px; color: var(--muted); border-left: 3px solid var(--line); padding-left: 14px; }

.answer-box {
  background: var(--green-tint);
  border: 1px solid rgba(47, 190, 115, 0.35);
  border-radius: var(--radius);
  padding: 22px 24px;
  font-size: 1.05rem;
}
.answer-box strong { color: var(--green-deep); }

.how-steps { counter-reset: hs; list-style: none; padding-left: 0 !important; }
.how-steps li { position: relative; padding-left: 52px; }
.how-steps li::before {
  counter-increment: hs;
  content: counter(hs);
  position: absolute;
  left: 0;
  top: 2px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--green-tint);
  color: var(--green-deep);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.how-steps li strong { display: block; margin-bottom: 2px; }

.figure-phone { margin: 2em auto; max-width: 300px; }
.figure-phone img { border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.figure-phone figcaption { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 12px; }

.cta-box {
  background: linear-gradient(160deg, #0e211a, #123227);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  margin: 2.4em 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-box h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.cta-box p { color: #b9d6c8; font-size: 15px; max-width: 30em; }

.related { border-top: 1px solid var(--line); margin-top: 3em; padding-top: 1.6em; }
.related h2 { margin-top: 0 !important; font-size: 1.2rem !important; }
.related ul { list-style: none; padding-left: 0 !important; }
.related a { font-weight: 600; }

.disclaimer { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 3em; padding-top: 1.4em; }

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