/* Shared app landing page styles (Peel, Vitaliber).
   Defaults below are Peel's theme; each page can override the variables in its own theme file. */
@font-face { font-family: "Fraunces"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/fraunces-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/fraunces-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 500; font-style: italic; font-display: swap; src: url("/assets/fonts/fraunces-500-italic.woff2") format("woff2"); }

:root {
  --cream: #f7efe4;
  --cream-2: #f1e4d3;
  --paper: #fffaf3;
  --line: #eadbc7;
  --forest: #1f4330;
  --forest-2: #2b5a40;
  --forest-ink: #f3efe6;
  --sage: #9cbf86;
  --leaf: #5c9a48;
  --orange: #e0692e;
  --orange-2: #c9561f;
  --orange-soft: #fbe2cf;
  --ink: #1e2a23;
  --muted: #5e6a61;
  --low: #6aa84f;
  --mod: #e5a02b;
  --high: #d9473a;
  --allergen: #8a5cc7;
  --hero-glow: radial-gradient(circle at 40% 40%, #dfe9cf 0%, #cfe0bc 45%, transparent 70%);
  --blob: linear-gradient(160deg, #f6c9a6, #fbe2cf 55%, #e7efd9);
  --final-bg: linear-gradient(160deg, #fbe2cf, #f6d9c0);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --wrap: 1160px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 10px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 16px; border-radius: 12px; background: var(--forest); color: #fff; text-decoration: none; }
.skip:focus { top: 12px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--forest); letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; color: var(--orange); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 0.85rem; font-weight: 600; color: var(--forest); }
.eyebrow i { width: 22px; height: 22px; border-radius: 50%; background: var(--sage); display: grid; place-items: center; font-style: normal; font-size: 0.75rem; }
.section { padding: 84px 0; }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { margin: 0 0 14px; font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.08; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.1rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 10px 8px 22px; border-radius: 999px; font-weight: 650; text-decoration: none; border: 1.5px solid transparent; transition: transform .15s ease, background-color .15s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn .arrow { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.btn .arrow svg { width: 16px; height: 16px; }
.btn.dark { background: var(--forest); color: #fff; }
.btn.dark .arrow { background: var(--orange); }
.btn.dark:hover { background: var(--forest-2); }
.btn.light { background: var(--paper); color: var(--forest); border-color: var(--line); }
.btn.light .arrow { background: var(--forest); color: #fff; }
.btn small { display: block; font-size: 0.7rem; font-weight: 500; opacity: .75; line-height: 1; margin-bottom: 2px; }
.btn span.lbl { line-height: 1.1; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { margin: 16px 0 0; font-size: 0.9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.fine span::before { content: "✓ "; color: var(--leaf); font-weight: 700; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; padding: 14px 0; background: color-mix(in srgb, var(--cream) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--forest); }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand small { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; color: var(--muted); margin-left: 2px; }
.pillnav { display: none; gap: 2px; padding: 5px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.pillnav a { padding: 7px 14px; border-radius: 999px; font-size: 0.92rem; font-weight: 600; text-decoration: none; color: var(--muted); }
.pillnav a:hover { background: var(--cream-2); color: var(--forest); }
.top .btn { min-height: 42px; padding: 4px 6px 4px 16px; font-size: 0.92rem; }
.top .btn .arrow { width: 30px; height: 30px; }
@media (min-width: 900px) { .pillnav { display: flex; } }
@media (max-width: 420px) { .brand small { display: none; } .top .btn { padding-left: 12px; } }

/* Hero */
.hero { position: relative; margin-top: -72px; padding: 108px 0 72px; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 760px; height: 760px; right: -220px; top: -160px; border-radius: 50%; background: var(--hero-glow); z-index: -1; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero h1 { margin: 0 0 20px; font-size: clamp(2.8rem, 7.4vw, 5.2rem); line-height: 1.0; letter-spacing: -0.025em; }
.hero .lede { margin: 0 0 30px; color: var(--muted); font-size: 1.18rem; max-width: 34em; }
.stage { position: relative; width: min(100%, 470px); margin-inline: auto; padding: 0 40px; }
.stage .blob { position: absolute; inset: 8% 0 4% 0; border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; background: var(--blob); }
.phone { position: relative; width: 78%; margin-inline: auto; border-radius: 40px 40px 0 0; overflow: hidden; box-shadow: 0 40px 70px -20px rgba(31,67,48,.35); }
.phone img { width: 100%; }
.float { position: absolute; z-index: 2; background: rgba(255,250,243,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(234,219,199,.9); border-radius: 18px; padding: 12px 14px; box-shadow: 0 14px 30px -10px rgba(31,67,48,.25); font-size: 0.82rem; line-height: 1.35; max-width: 220px; }
.float b { display: block; font-family: var(--serif); font-weight: 600; font-size: 0.98rem; color: var(--forest); }
.tag { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 3px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.t-high { color: var(--high); background: #fbe1dd; }
.t-mod { color: #b57509; background: #fdecc8; }
.t-low { color: #3f7d2a; background: #e3f0da; }
.t-all { color: var(--allergen); background: #ece2f8; }
.t-res { color: #8a5a12; background: #f8e7c6; }
.f1 { left: -6px; top: 16%; }
.f2 { right: -10px; top: 46%; }
.f3 { left: 4px; bottom: 9%; }
@media (prefers-reduced-motion: no-preference) {
  .float { animation: drift 7s ease-in-out infinite; }
  .f2 { animation-delay: -2.5s; } .f3 { animation-delay: -5s; }
  @keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
}
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.08fr 1fr; } .hero { padding-top: 128px; } }
@media (max-width: 520px) { .stage { padding: 0 8px; } .float { max-width: 175px; font-size: 0.75rem; } .f1 { left: -4px; } .f2 { right: -4px; } .f3 { display: none; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 8px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 22px 22px 20px; }
.stat strong { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4vw, 2.7rem); color: var(--forest); line-height: 1; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 0.95rem; }
@media (min-width: 820px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* Problem */
.problem { text-align: center; }
.problem .chem { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 4.2vw, 2.6rem); color: var(--forest); opacity: .45; margin: 0 0 10px; }
.problem h2 { margin: 0 auto 18px; max-width: 18ch; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; }
.problem p { max-width: 40em; margin: 0 auto; color: var(--muted); font-size: 1.12rem; }

/* Steps */
.steps { display: grid; gap: 18px; counter-reset: s; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: 30px; overflow: hidden; display: flex; flex-direction: column; }
.step .shot { background: linear-gradient(170deg, var(--orange-soft), var(--cream-2)); padding: 26px 26px 0; height: 300px; overflow: hidden; }
.step .shot img { width: 72%; margin-inline: auto; border-radius: 26px 26px 0 0; box-shadow: 0 20px 40px -18px rgba(31,67,48,.35); }
.step .body { padding: 22px 24px 26px; }
.step .num { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 0.78rem; font-weight: 700; margin-bottom: 10px; }
.step h3 { margin: 0 0 6px; font-size: 1.45rem; }
.step p { margin: 0; color: var(--muted); }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Concern scale */
.scale { display: grid; gap: 14px; }
.scale-bar { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 999px; overflow: hidden; height: 14px; }
.scale-bar i:nth-child(1) { background: #3f8f3a; } .scale-bar i:nth-child(2) { background: var(--low); }
.scale-bar i:nth-child(3) { background: var(--mod); } .scale-bar i:nth-child(4) { background: var(--high); }
.scale-labels { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; font-weight: 650; font-size: 0.92rem; color: var(--forest); }
.flags { display: grid; gap: 14px; margin-top: 34px; }
.flag { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 20px 22px; }
.flag h3 { margin: 0 0 6px; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.flag h3 i { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.flag p { margin: 0; color: var(--muted); font-size: 0.97rem; }
@media (min-width: 720px) { .flags { grid-template-columns: repeat(3, 1fr); } }

/* Features */
.features { display: grid; gap: 14px; }
.feature { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 24px; }
.feature .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; background: var(--cream-2); margin-bottom: 14px; }
.feature h3 { margin: 0 0 6px; font-size: 1.28rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.feature .pro { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--orange-soft); color: var(--orange-2); font-family: var(--sans); font-size: 0.7rem; font-weight: 700; vertical-align: middle; }
@media (min-width: 680px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }

/* Who it's for */
.who { display: grid; gap: 14px; }
.who-card { border-radius: 28px; padding: 26px; min-height: 210px; display: flex; flex-direction: column; justify-content: flex-start; position: relative; overflow: hidden; }
.who-card .big { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; background: rgba(255,255,255,.65); margin-bottom: 18px; }
.who-card h3 { margin: 0 0 6px; font-size: 1.35rem; }
.who-card p { margin: 0; font-size: 0.97rem; color: var(--muted); }
.w1 { background: #ece2f8; } .w2 { background: #fde8d8; } .w3 { background: #e3eedb; } .w4 { background: #f6ead2; }
@media (min-width: 700px) { .who { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .who { grid-template-columns: repeat(4, 1fr); } }

/* Science band */
.band { background: var(--forest); color: var(--forest-ink); border-radius: 44px; width: min(100% - 20px, calc(var(--wrap) + 80px)); margin: 0 auto; padding: 80px 0; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; width: 520px; height: 520px; right: -180px; bottom: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(156,191,134,.28), transparent 70%); }
.band h2 { color: #fff; }
.band .section-head p { color: #c9d6cc; }
.science { display: grid; gap: 36px; position: relative; z-index: 1; }
.quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.25; color: #fff; margin: 0 0 22px; }
.sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sources li { padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.sources b { display: block; color: #fff; font-family: var(--serif); font-weight: 600; font-size: 1.08rem; }
.sources span { color: #c9d6cc; font-size: 0.95rem; }
table.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 22px; overflow: hidden; font-size: 0.95rem; }
.compare th, .compare td { padding: 13px 16px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.1); vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-family: var(--serif); font-weight: 600; color: #fff; font-size: 1.02rem; background: rgba(255,255,255,.06); }
.compare td:nth-child(2) { color: #fff; font-weight: 600; }
.compare td:nth-child(3) { color: #b9c7bd; }
.yes { color: var(--sage); } .no { color: #e9a38a; }
@media (min-width: 940px) { .science { grid-template-columns: 1fr 1.15fr; align-items: start; } }

/* Gallery */
.gallery { overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 0 18px; }
.gallery ul { list-style: none; margin: 0; padding: 0 20px; display: flex; gap: 16px; width: max-content; }
.gallery li { scroll-snap-align: center; }
.gallery img { width: 250px; border-radius: 26px; box-shadow: 0 16px 34px -18px rgba(31,67,48,.4); }
@media (min-width: 1200px) { .gallery ul { margin-inline: auto; } }

/* Pricing */
.plans { display: grid; gap: 16px; max-width: 900px; margin: 0 auto; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: 30px; padding: 30px; }
.plan.pro { background: var(--forest); color: var(--forest-ink); border-color: var(--forest); }
.plan.pro h3 { color: #fff; }
.plan h3 { margin: 0 0 4px; font-size: 1.7rem; }
.plan .sub { margin: 0 0 18px; color: var(--muted); }
.plan.pro .sub { color: #c9d6cc; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.plan li { padding-left: 28px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; font-weight: 800; background: #e3f0da; color: #3f7d2a; }
.plan.pro li::before { background: var(--orange); color: #fff; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; margin-bottom: 10px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 34px 18px 0; position: relative; font-family: var(--serif); font-weight: 600; font-size: 1.12rem; color: var(--forest); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--cream-2); display: grid; place-items: center; font-family: var(--sans); font-weight: 600; }
.faq details[open] summary::after { content: "–"; background: var(--orange); color: #fff; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* Final CTA */
.final { text-align: center; background: var(--final-bg); border-radius: 44px; padding: 70px 24px; }
.final h2 { margin: 0 auto 14px; max-width: 16ch; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; }
.final p { margin: 0 auto 28px; max-width: 34em; color: var(--muted); font-size: 1.1rem; }
.final .ctas { justify-content: center; }
.final .fine { justify-content: center; }

/* Footer */
.foot { padding: 48px 0 40px; color: var(--muted); font-size: 0.93rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { text-underline-offset: 3px; }
.foot a:hover { color: var(--forest); }
