/* ============================================================
   ChewView — its own identity.
   Warm dinner-table feel: green + sunny amber, rounded & chunky,
   Fredoka display + Inter text. A friendly sibling of Esprizzle,
   not a copy of it.
   ============================================================ */

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

:root {
  /* Brand — green leads, warm amber supports, tomato for contrast only */
  --green: #2BB761;
  --green-deep: #178A47;
  --green-ink: #0E3D24;
  --green-soft: #E7F7ED;
  --green-line: rgba(43,183,97,0.28);

  --sun: #F5A524;          /* warm amber accent */
  --sun-deep: #C97A0E;
  --sun-soft: #FDEFD3;

  --tomato: #F26D5B;
  --tomato-deep: #D84A36;
  --tomato-soft: #FDE7E2;

  /* Neutrals — warm, kitchen-table cream */
  --cream: #FBF6EC;
  --cream-2: #F4ECDC;
  --paper: #FFFFFF;
  --ink: #21271E;
  --ink-2: #5A6356;
  --muted: #8C9387;
  --border: rgba(33,39,30,0.10);
  --border-2: rgba(33,39,30,0.06);

  /* Type */
  --display: "Fraunces", "Iowan Old Style", "Georgia", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  /* Chunky rounded radii */
  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 30px;
  --r-xl: 40px;
  --r-pill: 999px;

  /* Soft, warm-tinted shadows */
  --sh-sm: 0 2px 8px rgba(60,50,20,.06);
  --sh: 0 12px 30px rgba(60,50,20,.09), 0 3px 8px rgba(60,50,20,.05);
  --sh-lg: 0 26px 56px rgba(60,50,20,.14);
  --sh-xl: 0 40px 80px rgba(40,35,15,.20);

  --max-w: 1180px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; scroll-padding-top: 96px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  background:
    radial-gradient(900px 620px at 6% -6%, rgba(255,203,49,.16), transparent 55%),
    radial-gradient(820px 560px at 102% -2%, rgba(79,141,247,.13), transparent 55%),
    radial-gradient(760px 620px at 50% 118%, rgba(43,183,97,.11), transparent 60%),
    #FBFAF8;
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: var(--green-deep); text-decoration: none; }
::selection { background: rgba(43,183,97,.22); }

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; margin: 0; text-wrap: balance; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
section { padding: 6.5rem 0; }
@media (max-width: 720px) { section { padding: 4.5rem 0; } }

/* ── EYEBROW (chunky pill) ─────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--green-soft); color: var(--green-deep);
}
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.eyebrow.sun { background: var(--sun-soft); color: var(--sun-deep); }
.eyebrow.tomato { background: var(--tomato-soft); color: var(--tomato-deep); }
.eyebrow.on-dark { background: rgba(255,255,255,0.1); color: #BFE9CC; }

.section-title { font-family: var(--display); font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; margin: 18px 0 1rem; }
.section-lede { color: var(--ink-2); font-size: 1.12rem; max-width: 640px; margin-bottom: 3.25rem; line-height: 1.6; }

/* ── NAV ───────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(251,246,236,0.82);
  backdrop-filter: saturate(150%) blur(18px);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  border-bottom: 1px solid var(--border-2);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 82px; max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
.logo { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 32px; letter-spacing: -0.01em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 48px; height: 48px; border-radius: 13px; box-shadow: 0 5px 14px rgba(23,138,71,0.30); }
.logo:hover .logo-mark { content: url('assets/app-icon-dark.png'); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a { color: var(--ink-2); font-size: 15px; font-weight: 600; position: relative; transition: color .2s; font-family: var(--sans); }
.nav-links > a:not(.nav-cta):hover { color: var(--green-deep); text-decoration: none; }
.nav-links a.active { color: var(--green-deep); }
.nav-cta {
  background: var(--green); color: #fff !important; padding: 11px 14px 11px 20px;
  border-radius: var(--r-pill); font-size: 14.5px; font-weight: 700; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 9px;
  box-shadow: 0 6px 16px rgba(23,138,71,0.26); transition: transform .2s, box-shadow .2s, background .2s;
}
.nav-cta:hover { background: var(--green-ink); text-decoration: none !important; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(23,138,71,0.32); }
.nav-cta .price-pill { background: var(--green-ink); color: #fff; border-radius: var(--r-pill); font-size: 13.5px; padding: 2px 10px; font-weight: 700; transition: background .2s; }
.nav-cta:hover .price-pill { background: var(--green); color: #fff; }
@media (max-width: 860px) { .nav-links > a:not(.nav-cta) { display: none; } }
@media (max-width: 540px) {
  .nav { height: 66px; padding: 0 16px; gap: 10px; }
  .logo { font-size: 21px; gap: 9px; }
  .logo-mark { width: 36px; height: 36px; border-radius: 11px; }
  .nav-cta { padding: 8px 10px 8px 14px; font-size: 13px; gap: 7px; }
  .nav-cta .price-pill { font-size: 12px; padding: 2px 8px; }
}
@media (max-width: 410px) {
  .logo { font-size: 18px; gap: 7px; }
  .logo-mark { width: 30px; height: 30px; border-radius: 9px; }
  .nav-cta { padding: 7px 9px 7px 12px; font-size: 12px; }
}

/* ── BUTTONS ───────────────────────────────────────── */
.btn-app {
  display: inline-flex; align-items: center; gap: 13px;
  background: var(--green-ink); color: #fff !important;
  padding: 14px 24px 14px 19px; border-radius: var(--r-pill);
  text-decoration: none !important; box-shadow: var(--sh);
  transition: transform .15s ease, box-shadow .15s ease; line-height: 1.1;
}
.btn-app:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
.btn-app svg { width: 28px; height: 28px; flex-shrink: 0; }
.btn-app .l1 { font-size: 11px; font-weight: 400; opacity: 0.78; letter-spacing: 0.02em; display: block; }
.btn-app .l2 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; display: block; margin-top: 1px; font-family: var(--display); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.95rem 1.6rem; border: 2px solid var(--green-line);
  color: var(--green-deep); font-weight: 700; font-size: 0.95rem;
  border-radius: var(--r-pill); text-decoration: none; transition: all .2s; font-family: var(--sans);
}
.btn-ghost:hover { background: var(--green-soft); border-color: var(--green); text-decoration: none; }

.check { width: 18px; height: 18px; border-radius: 50%; background: var(--green-soft); color: var(--green-deep); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex-shrink: 0; }

.dot-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(43,183,97,0.18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(43,183,97,0.18);} 50% { box-shadow: 0 0 0 7px rgba(43,183,97,0.04);} }

/* ── FOOTER ────────────────────────────────────────── */
footer { background: var(--green-ink); color: rgba(255,255,255,0.72); padding: 64px 0 32px; }
footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 720px) { footer .container { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { footer .container { grid-template-columns: 1fr; gap: 32px; } }
footer h4 { color: #fff; font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px; font-weight: 700; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin-bottom: 10px; font-size: 14px; }
footer a { color: rgba(255,255,255,0.72); }
footer a:hover { color: #fff; text-decoration: underline; }
footer .logo { color: #fff; }
footer .logo-mark { box-shadow: none; }
footer .footer-tag { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.62); margin: 14px 0 18px; max-width: 320px; }
footer .badges { display: flex; gap: 8px; flex-wrap: wrap; }
footer .badge { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); color: rgba(255,255,255,0.88); padding: 5px 12px; border-radius: var(--r-pill); font-size: 11.5px; font-weight: 600; }
footer .footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 44px; padding-top: 22px; font-size: 13px; color: rgba(255,255,255,0.5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
@media (max-width: 540px) { footer .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; } }

/* ── FADE-UP ───────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); }
.fade-up.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fade-up { opacity: 1; transform: none; transition: none; } }
