/* ============================================================
   Self-hosted Plus Jakarta Sans (variable) — no CDN dependency,
   so every text element always renders in the brand typeface.
   ============================================================ */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-latin-italic.woff2") format("woff2");
}

/* ============================================================
   Low Cal Pal — landing page
   Matched to the app's "Orchard Soft" system:
   off-white ground, sage-green primary, deep-green ink, warm
   hairline borders, soft rounded white cards, amber highlight.
   Type: Plus Jakarta Sans (the app's typeface).
   ============================================================ */

:root {
  --background: #f7f7f5;
  --surface: #f1f0ea;
  --paper: #ffffff;
  --ink: #33402c;
  --primary: #7a9b6d;
  --primary-hover: #69875d;
  --tint: #eaf1df;
  --hero-from: #dce9cc;
  --hero-to: #eaf1df;
  --page: #f8f8f5;                 /* very subtle off-white ground for content sections */
  --hero-dark-from: #3c4d35;       /* dark-green hero band */
  --hero-dark-to: #2b3625;
  --muted: #8b8875;
  --text-secondary: #556147;
  --text-tertiary: #6e7d63;
  --border: #ecebe5;
  --nav: #33402c;
  --premium-from: #405339;
  --premium-to: #2b3625;
  --highlight: #e8a23e;
  --on-highlight: #2a2517;

  --shadow: 30px 34px 70px -34px rgba(51, 64, 44, 0.34);
  --shadow-sm: 0 12px 30px -16px rgba(51, 64, 44, 0.32);
  --r-xl: 32px;
  --r-lg: 26px;
  --r-md: 18px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---------- shared bits ---------- */
.eyebrow {
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--primary-hover);
  margin: 0 0 0.9rem;
}
.eyebrow--center { text-align: center; }

.hl { color: var(--primary-hover); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn--pill {
  background: var(--primary);
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-size: 1rem;
  box-shadow: 0 8px 20px rgba(122, 155, 109, 0.35);
}
.btn--pill:hover { background: var(--primary-hover); }

.btn--store {
  background: var(--nav);
  color: #fff;
  padding: 0.85rem 1.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.btn--store:hover { background: #2a3524; transform: translateY(-2px); }
.btn--store svg { flex: none; }
.btn--store span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; font-size: 1.2rem; font-weight: 800; }
.btn--store small { font-weight: 600; font-size: 0.68rem; opacity: 0.82; letter-spacing: 0.02em; }
.btn--store-lg { padding: 1.05rem 2rem; border-radius: 20px; }
.btn--store-lg span { font-size: 1.4rem; }

/* ---------- phone frame (real screenshots) ---------- */
.device {
  position: relative;
  width: min(300px, 74vw);
  padding: 11px;                       /* titanium frame thickness */
  border-radius: 52px;
  background: linear-gradient(145deg, #5c625c 0%, #33372f 17%, #1d201c 50%, #33372f 83%, #606660 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.30),   /* top edge catches light */
    inset 0 -1px 1px rgba(0, 0, 0, 0.55),        /* bottom edge in shadow */
    0 30px 55px -22px rgba(12, 20, 12, 0.55),    /* soft ground shadow */
    0 14px 28px -16px rgba(12, 20, 12, 0.40);
}
/* physical side buttons */
.device::before,
.device::after {
  content: "";
  position: absolute;
  width: 3px;
  background: linear-gradient(180deg, #4b504a, #23261f);
}
.device::before {                      /* volume pair on the left */
  left: -2px;
  top: 25%;
  height: 40px;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 54px 0 0 #24271f;
}
.device::after {                       /* power button on the right */
  right: -2px;
  top: 33%;
  height: 66px;
  border-radius: 0 2px 2px 0;
}
.device img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--background);
}
/* feature screens: rounded with a thin black bezel */
.device > img {
  border-radius: 40px;
  box-shadow: 0 0 0 3px #0a0b0a;
}

/* auto-scrolling app-screen carousel inside the hero device */
.shots {
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  background: var(--background);
  box-shadow: 0 0 0 3px #0a0b0a;       /* thin black bezel around the screen */
}
.shots__track {
  display: flex;
  width: 600%;                 /* 5 screens + 1 clone of the first */
  animation: shots-scroll 18s infinite;
  animation-timing-function: ease-in-out;
}
.device .shots__track img {
  width: 16.6667%;             /* one screen = 1/6 of the track */
  border-radius: 0;
}
@keyframes shots-scroll {
  0%,   15% { transform: translateX(0); }
  20%,  35% { transform: translateX(-16.6667%); }
  40%,  55% { transform: translateX(-33.3333%); }
  60%,  75% { transform: translateX(-50%); }
  80%,  95% { transform: translateX(-66.6667%); }
  100%      { transform: translateX(-83.3333%); }
}
@media (prefers-reduced-motion: reduce) {
  .shots__track { animation: none; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(41, 51, 35, 0.86);
  backdrop-filter: blur(10px);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.85rem clamp(1.1rem, 4vw, 2rem);
}
.nav__brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.nav__logo { height: 40px; width: 40px; border-radius: 11px; object-fit: cover; }
.nav__word { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; color: #fff; }
.nav__links { display: flex; gap: 1.7rem; margin-left: auto; font-weight: 700; font-size: 0.98rem; }
.nav__links a { color: rgba(255, 255, 255, 0.82); transition: color 0.15s ease; }
.nav__links a:hover { color: #fff; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--hero-dark-from) 0%, var(--hero-dark-to) 100%);
}
/* giant scroll-driven calorie counter, layered behind the hero content */
.hero__counter {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
}
.hero__counter-num {
  font-weight: 800;
  font-size: clamp(4.9rem, 16.8vw, 15.4rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: #f6f4ec;
  opacity: 0.10;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  will-change: contents;
}
.hero__counter-unit {
  font-weight: 800;
  font-size: clamp(1rem, 2.4vw, 1.6rem);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: #f6f4ec;
  opacity: 0.09;
  margin-top: 0.6rem;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.6rem, 6vw, 5rem) clamp(1.1rem, 4vw, 2rem) clamp(2.8rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero .eyebrow { color: #a9c98f; }
.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  margin-bottom: 1.2rem;
  color: #f6f9f0;
}
.hero .hl { color: var(--highlight); }
.hero__lede {
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 34ch;
  margin: 0 0 2rem;
  font-weight: 500;
}
.hero__actions { display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap; }
.hero__badge { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.80); font-weight: 600; max-width: 21ch; line-height: 1.3; }
.hero__badge svg { flex: none; color: #a9c98f; }
/* light CTA so it pops on the dark hero */
.hero .btn--store { background: #fff; color: var(--nav); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.5); }
.hero .btn--store:hover { background: #eef1ea; transform: translateY(-2px); }

/* hero phone + floating chips */
.hero__stage {
  position: relative;
  display: flex;
  justify-content: center;
  justify-self: center;
}
.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--tint);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--highlight);
  box-shadow: var(--shadow-sm);
  animation: floaty 5s ease-in-out infinite;
}
.chip b { color: var(--highlight); }
.chip--a { top: 8%; right: -88px; animation-delay: 0s; }
.chip--b { top: 42%; left: -82px; animation-delay: 1.1s; }
.chip--c { bottom: 12%; right: -84px; animation-delay: 2.2s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ============================================================
   SOURCES STRIP
   ============================================================ */
.strip {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem clamp(1.1rem, 4vw, 2rem) 1.75rem;
  text-align: center;
}
.strip__label { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
.strip__logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem 1rem; }
.strip__logos li {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-secondary);
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
}

/* ============================================================
   SECTION HEAD + HOW IT WORKS
   ============================================================ */
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 2.8rem; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); }

.how {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.1rem, 4.9vw, 3.85rem) clamp(1.1rem, 4vw, 2rem) clamp(3rem, 7vw, 5.5rem);
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.step {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem 1.7rem;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease,
              background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.step.in { opacity: 1; transform: none; }
.step.in:hover {
  background: var(--tint);
  border-color: #d8e5c6;
  box-shadow: var(--shadow-sm);
}
.step:nth-child(2) { transition-delay: 0.1s; }
.step:nth-child(3) { transition-delay: 0.2s; }
.step__num {
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  background: var(--primary);
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  margin-bottom: 1.1rem;
}
.step__title { font-size: 1.4rem; margin-bottom: 0.6rem; }
.step p { margin: 0; color: var(--text-secondary); font-weight: 500; font-size: 0.98rem; }

/* ============================================================
   FEATURES
   ============================================================ */
.features { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2rem); display: flex; flex-direction: column; gap: clamp(3.5rem, 8vw, 6.5rem); }
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.feature.in { opacity: 1; transform: none; }
.feature--reverse .feature__text { order: 2; }
.feature__title { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
.nowrap { white-space: nowrap; }
.feature__icon {
  display: inline-block;
  vertical-align: -0.12em;
  width: 1em;
  height: 1em;
  margin-left: 0.38em;
}
.feature__body { color: var(--text-secondary); font-weight: 500; margin: 0 0 1.4rem; }
.ticks { display: flex; flex-direction: column; gap: 0.7rem; }
.ticks li {
  position: relative;
  padding-left: 2rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text-secondary);
}
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: 0.15rem;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 13px; background-position: center; background-repeat: no-repeat;
}
.feature__art { display: flex; justify-content: center; }

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.1rem, 4vw, 2rem);
}
.faq__list { display: flex; flex-direction: column; gap: 0.8rem; }
.qa {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.4rem 1.4rem;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.qa.in { opacity: 1; transform: none; }
.qa summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2rem 1.1rem 0;
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--ink);
  position: relative;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+";
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 600; color: var(--primary); line-height: 1;
}
.qa[open] summary::after { content: "–"; }
.qa p { margin: 0 0 1.1rem; color: var(--text-secondary); font-weight: 500; font-size: 1rem; }

/* ============================================================
   CTA
   ============================================================ */
.cta {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2rem) clamp(3rem, 7vw, 5rem);
}
.cta__inner {
  background: linear-gradient(155deg, var(--premium-from), var(--premium-to));
  border-radius: 40px;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 3rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta__inner::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(232, 162, 62, 0.16), transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(122, 155, 109, 0.28), transparent 45%);
  pointer-events: none;
}
.cta__title { position: relative; font-size: clamp(1.9rem, 4.5vw, 3rem); color: #fff; max-width: 20ch; margin: 0 auto 0.9rem; }
.cta__title .hl { color: var(--highlight); }
.cta__sub { position: relative; color: rgba(255, 255, 255, 0.82); font-weight: 500; margin: 0 0 2rem; }
.cta .btn--store { position: relative; background: var(--primary); color: #fff; }
.cta .btn--store:hover { background: var(--primary-hover); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem clamp(1.1rem, 4vw, 2rem) 3rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem;
  border-top: 1px solid var(--border);
}
.footer__brand { display: inline-flex; align-items: center; gap: 0.55rem; }
.footer__logo { height: 34px; width: 34px; border-radius: 10px; object-fit: cover; }
.footer .nav__word { font-size: 1.2rem; color: var(--ink); }
.footer__links { display: flex; gap: 1.3rem; margin-left: auto; font-weight: 700; font-size: 0.95rem; color: var(--text-secondary); }
.footer__links a:hover { color: var(--primary-hover); }
.footer__legal { width: 100%; margin: 0; color: var(--muted); font-size: 0.85rem; font-weight: 500; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lede { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__badge { justify-content: center; }
  .hero__stage { order: -1; }
  .steps { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 1.8rem; }
  .feature--reverse .feature__text { order: 0; }
  .feature__text { text-align: center; }
  .ticks { display: inline-flex; text-align: left; }
  .band { grid-template-columns: 1fr; }
  .nav__links { display: none; }
}

@media (max-width: 480px) {
  body { font-size: 17px; }
  .btn--pill { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
  .strip__logos li { font-size: 0.9rem; padding: 0.35rem 0.9rem; }
  .chip { font-size: 0.8rem; padding: 0.5rem 0.8rem; }
  .chip--a { right: -34px; }
  .chip--b { left: -30px; }
  .chip--c { right: -32px; }
}

:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
