/* Calorie Papa — landing styles.
   Palette mirrors ios/MyApp/DesignSystem/Theme.swift (light scheme). */

:root{
  --brand:#4A9E33;
  --brand-deep:#3C8628;
  --accent:#F2A03A;
  --bg:#FBF6EC;
  --surface:#FFFFFF;
  --ink:#20231A;
  --muted:#6B7280;
  --line:#EBE5D8;
  --radius:20px;
  --radius-sm:14px;
  --maxw:1080px;
  --font:ui-rounded,"SF Pro Rounded",-apple-system,BlinkMacSystemFont,"Segoe UI Variable","Segoe UI",system-ui,Roboto,"Helvetica Neue",Arial,sans-serif;
  --shadow:0 10px 30px rgba(32,35,26,.08);
}

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

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

body{
  margin:0;
  font-family:var(--font);
  font-size:17px;
  line-height:1.65;
  color:var(--ink);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%}

a{color:var(--brand-deep)}

a:focus-visible,summary:focus-visible{
  outline:3px solid var(--brand);
  outline-offset:3px;
  border-radius:6px;
}

h1,h2,h3{line-height:1.15;font-weight:700;letter-spacing:-.01em}
h1{font-size:clamp(2rem,7vw,3.25rem);margin:0 0 14px}
h2{font-size:clamp(1.5rem,4.5vw,2.125rem);margin:0 0 10px}
h3{font-size:1.1875rem;margin:0 0 6px}

.wrap{max-width:var(--maxw);margin:0 auto;padding:0 20px;width:100%}

.section{padding:48px 20px}
.section > .lede{margin:0 0 28px}

.lede{color:var(--muted);font-size:1.0625rem;margin:0 0 24px}

.eyebrow{
  margin:0 0 10px;
  font-size:.8125rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--brand-deep);
}

/* ---------- header ---------- */

.site-head{background:var(--bg);border-bottom:1px solid var(--line)}

.head-inner{display:flex;align-items:center;gap:14px;padding-top:12px;padding-bottom:12px}

.brand{
  display:flex;align-items:center;gap:10px;
  font-weight:700;text-decoration:none;color:var(--ink);
  margin-right:auto;
}
.brand img{width:34px;height:34px;border-radius:9px;display:block}

.head-nav{display:none;gap:22px}
.head-nav a{text-decoration:none;color:var(--muted);font-weight:600;font-size:.9375rem}
.head-nav a:hover{color:var(--brand-deep)}

/* ---------- buttons ---------- */

.btn{
  display:inline-block;
  border-radius:999px;
  text-decoration:none;
  font-weight:600;
  text-align:center;
  transition:transform .15s ease,background-color .15s ease;
}
.btn:hover{transform:translateY(-1px)}

.btn-store{background:#111;color:#fff;padding:15px 30px;font-size:1.0625rem}
.btn-store:hover{background:#000}

.btn-sm{background:var(--brand);color:#fff;padding:9px 17px;font-size:.9375rem;white-space:nowrap}
.btn-sm:hover{background:var(--brand-deep)}

/* ---------- hero ---------- */

.hero{display:flex;flex-direction:column;gap:12px;padding-top:36px;padding-bottom:16px}
.hero-copy{flex:1 1 380px}
.hero .sub{font-size:clamp(1.0625rem,2.4vw,1.25rem);color:var(--muted);margin:0 0 26px;max-width:34em}

.hero-art{flex:1 1 300px;text-align:center;order:-1}
.hero-art img{width:min(230px,62vw);height:auto}

.trust{
  list-style:none;display:flex;flex-wrap:wrap;gap:8px 20px;
  margin:22px 0 0;padding:0;
  font-size:.9375rem;color:var(--muted);
}
.trust li{display:flex;align-items:center;gap:8px}
.trust li::before{
  content:"";width:7px;height:7px;border-radius:999px;
  background:var(--brand);flex:none;
}

/* ---------- steps ---------- */

.steps{list-style:none;counter-reset:s;margin:0;padding:0;display:grid;gap:16px}
.step{
  counter-increment:s;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:24px;
}
.step::before{
  content:counter(s);
  display:flex;align-items:center;justify-content:center;
  width:38px;height:38px;margin-bottom:14px;
  border-radius:999px;
  background:var(--accent);color:#4A2F08;
  font-weight:700;font-size:1.0625rem;
}
.step p{margin:0;color:var(--muted)}

/* ---------- screenshot gallery ---------- */

.gallery{
  display:flex;gap:14px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scroll-padding-inline:20px;
  padding:6px 20px 26px;
  scrollbar-width:thin;
}
.shot{flex:0 0 66vw;max-width:232px;margin:0;scroll-snap-align:center}
.shot img{
  width:100%;height:auto;display:block;
  border-radius:var(--radius-sm);
}
.shot figcaption{margin-top:14px;font-size:.9375rem;color:var(--muted);line-height:1.5}
.shot figcaption strong{display:block;color:var(--ink);font-size:1rem;margin-bottom:2px}

/* ---------- features ---------- */

.grid{display:grid;gap:16px}
.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:24px;
}
.card p{margin:0;color:var(--muted)}

.ico-wrap{
  display:inline-flex;align-items:center;justify-content:center;
  width:46px;height:46px;margin-bottom:14px;
  border-radius:var(--radius-sm);
  background:rgba(74,158,51,.11);
  color:var(--brand-deep);
}
.ico{display:block}

/* ---------- closing CTA ---------- */

.cta{text-align:center}
.cta img{width:min(160px,42vw);height:auto;margin-bottom:6px}
.cta .lede{margin-bottom:26px}

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

.faq details{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  padding:4px 20px;
  margin:12px 0;
}
.faq summary{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:14px 0;
  font-weight:600;cursor:pointer;list-style:none;
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{
  content:"";flex:none;
  width:9px;height:9px;
  border-right:2px solid var(--muted);
  border-bottom:2px solid var(--muted);
  transform:rotate(45deg);
  margin-top:-5px;
  transition:transform .2s ease;
}
.faq details[open] summary::after{transform:rotate(225deg);margin-top:2px}
.faq p{color:var(--muted);margin:0 0 16px}

/* ---------- footer ---------- */

footer{
  background:var(--surface);
  border-top:1px solid var(--line);
  margin-top:40px;
  padding:32px 0;
  text-align:center;
  color:var(--muted);
}
.foot-links{
  list-style:none;display:flex;flex-wrap:wrap;justify-content:center;
  gap:10px 26px;margin:0 0 18px;padding:0;
}
.foot-links a{font-weight:600;text-decoration:none}
.foot-links a:hover{text-decoration:underline}
.foot-note{margin:6px 0;font-size:.875rem;max-width:46em;margin-inline:auto}

/* ---------- legal pages ---------- */

.legal{max-width:760px;margin:0 auto;padding:40px 20px 16px}
.legal h1{font-size:clamp(1.75rem,5vw,2.375rem);margin-bottom:6px}
.legal h2{font-size:1.25rem;margin:34px 0 8px}
.legal h3{font-size:1.0625rem;margin:22px 0 6px}
.legal p,.legal li{color:#3A3E33}
.legal ul{padding-left:22px}
.legal li{margin:8px 0}
.legal a{overflow-wrap:break-word}
.updated{color:var(--muted);font-size:.9375rem;margin-top:0}
.callout{
  background:var(--surface);
  border:1px solid var(--line);
  border-left:4px solid var(--accent);
  border-radius:var(--radius-sm);
  padding:16px 20px;
  margin:20px 0;
}
.callout p{margin:0}
.back-link{display:inline-block;margin:28px 0 0;font-weight:600;text-decoration:none}
.back-link:hover{text-decoration:underline}

/* ---------- breakpoints ---------- */

@media (min-width:600px){
  .grid{grid-template-columns:repeat(2,1fr)}
  .steps{grid-template-columns:repeat(3,1fr)}
  .section{padding:64px 20px}
}

@media (min-width:760px){
  .head-nav{display:flex}
  .hero{flex-direction:row;align-items:center;gap:48px;padding-top:56px;padding-bottom:32px}
  .hero-art{order:0}
  .hero-art img{width:min(320px,34vw)}
  .shot{flex:0 0 210px}
}

@media (min-width:900px){
  .grid{grid-template-columns:repeat(3,1fr)}
  .section{padding:76px 20px}
  .shot{flex:0 0 220px}
}

@media (min-width:1240px){
  .gallery{justify-content:center}
}

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