/* Portion Monitor website. One stylesheet for every page, in the app's own teal. */
:root {
  color-scheme: light dark;
  --bg: #f6faf9;
  --surface: #ffffff;
  --surface-2: #e9f2f0;
  --text: #16211f;
  --muted: #4d5f5c;
  --accent: #007a72;
  --accent-ink: #ffffff;
  --border: #cfe0dd;
  --brand-top: #0e8f84;
  --brand-dark: #03403a;
  --carb: #f5b942;
  --protein: #e8644b;
  --veg: #5bc26a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1716;
    --surface: #182322;
    --surface-2: #1f2d2b;
    --text: #e6efed;
    --muted: #a7bab6;
    --accent: #6fd3c7;
    --accent-ink: #062c28;
    --border: #2b3d3a;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font-weight: 700; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--accent); }

/* buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600;
}
.btn.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn + .btn { margin-left: 10px; }

/* hero */
.hero {
  background: linear-gradient(160deg, var(--brand-top), var(--brand-dark));
  color: #fff; padding: 56px 0 0; overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: end; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero p { font-size: 1.15rem; color: #d3f1ec; max-width: 34rem; margin: 0 0 28px; }
.hero .cta { padding-bottom: 56px; }
.hero .btn { background: #fff; color: var(--brand-dark); }
.hero .btn.secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.hero .shot { justify-self: center; width: min(340px, 80vw); border-radius: 28px 28px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,0.35); }
.hero small { display: block; color: #a9ddd6; margin-top: 12px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; color: var(--accent); font-weight: 700; margin: 0 0 8px; }

/* sections */
section { padding: 56px 0; }
section h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
section .lead { color: var(--muted); font-size: 1.05rem; max-width: 40rem; margin: 0 0 32px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin: 48px 0; }
.feature:nth-child(even) .shot { order: -1; }
.feature .shot { width: min(300px, 70vw); justify-self: center; border-radius: 24px; box-shadow: 0 16px 40px rgba(3,64,58,0.25); }
.feature h3 { font-size: 1.4rem; margin: 0 0 8px; }
.feature p { color: var(--muted); margin: 0 0 12px; }
.feature ul { padding-left: 18px; color: var(--muted); margin: 0; }
.feature li { margin: 4px 0; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px 22px;
}
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.plate { display: inline-flex; gap: 6px; margin-bottom: 10px; }
.plate i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }

.answer { background: var(--surface-2); border-radius: 18px; padding: 20px 24px; margin: 16px 0; }
.answer h3 { margin: 0 0 6px; font-size: 1.1rem; }
.answer p { margin: 0; }

.faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { color: var(--muted); margin: 10px 0 0; }

.cta-band { background: var(--surface-2); border-radius: 24px; padding: 40px; text-align: center; }
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: var(--muted); margin: 0 0 20px; }

/* documents */
.doc { padding: 40px 0 80px; }
.doc h1 { font-size: 2rem; margin: 0 0 4px; letter-spacing: -0.02em; }
.doc .updated { color: var(--muted); margin: 0 0 32px; font-size: 0.95rem; }
.doc h2 { font-size: 1.2rem; margin: 36px 0 10px; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; }
.callout { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 22px; margin: 28px 0; }

footer {
  border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: 0.9rem;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; }
footer a { color: var(--muted); text-decoration: none; margin-right: 16px; }
footer a:hover { color: var(--accent); }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .shot { width: min(280px, 80vw); }
  .feature { grid-template-columns: 1fr; gap: 20px; }
  .feature:nth-child(even) .shot { order: 0; }
  .grid { grid-template-columns: 1fr; }
  .cta-band { padding: 28px 20px; }
  .btn + .btn { margin-left: 0; margin-top: 10px; }
}
