/* Nutrio+ marketing site (2026-09 rebuild). Mobile first: every layout starts
   as one column at 360-430px and widens at 760px / 1000px. Content is never
   hidden waiting for a scroll animation; the old site's reveal-on-scroll left
   whole sections faded out on phones. Legal pages keep using styles.css. */

:root {
  color-scheme: light;
  --bg: #F5F6F2;
  --bg-alt: #ECEFE8;
  --card: #FFFFFF;
  --ink: #0E1512;
  --muted: #56645C;
  --line: #DFE4DC;
  --green: #3E8C63;
  --green-2: #7FC7A1;
  --mint: #DDF0E4;
  --dark: #0C1511;
  --dark-2: #13221A;
  --radius: 24px;
  --wrap: 1120px;
  --pad: max(20px, env(safe-area-inset-left));
  --display: "Inter Tight", Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
:where(a, summary, [tabindex]):focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 10px; }

h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.035em; }
h1 { font-weight: 900; font-size: clamp(2.6rem, 11.5vw, 4.6rem); line-height: .98; }
h2 { font-weight: 800; font-size: clamp(2rem, 8.4vw, 3.2rem); line-height: 1.02; max-width: 16ch; }
h3 { font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
p { margin: 0; }
.g { color: var(--green); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }
.narrow { max-width: 760px; }

/* ── Header ── */
.top { position: sticky; top: 0; z-index: 20; background: rgba(245,246,242,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; }
.top-in { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.2rem/1 var(--display); letter-spacing: -.03em; }
.brand img { border-radius: 9px; }
.top-nav { display: none; gap: 28px; margin-left: auto; font-weight: 500; font-size: .95rem; }
.top-nav a { text-decoration: none; color: var(--muted); }
.top-nav a:hover { color: var(--ink); }
.pill { margin-left: auto; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem; padding: 10px 16px; border-radius: 99px; white-space: nowrap; }

/* ── App Store badge ── */
.badge { display: inline-flex; align-items: center; gap: 12px; background: #000; color: #fff; text-decoration: none; padding: 12px 22px 12px 18px; border-radius: 14px; min-height: 60px; transition: transform .15s; }
.badge:active { transform: scale(.97); }
.badge svg { width: 26px; height: 30px; }
.badge span { display: flex; flex-direction: column; line-height: 1.1; }
.badge small { font-size: .7rem; font-weight: 500; }
.badge b { font: 700 1.35rem/1.05 Inter; letter-spacing: -.02em; }
.badge.light { background: #fff; color: #000; }

/* ── Phone frame around a real screenshot ── */
.phone { background: #0b0b0b; padding: 9px; border-radius: 46px; box-shadow: 0 30px 60px -20px rgba(14,21,18,.35), 0 0 0 1px rgba(0,0,0,.08); }
.phone img { border-radius: 38px; width: 100%; }
.phone.sm { padding: 7px; border-radius: 36px; }
.phone.sm img { border-radius: 30px; }

/* ── Hero ── */
.hero { padding: 28px 0 0; overflow: hidden; }
.hero-in { display: grid; gap: 36px; }
.tag { display: inline-block; font-weight: 600; font-size: .85rem; color: var(--green); background: var(--mint); padding: 7px 12px; border-radius: 99px; margin-bottom: 18px; }
.lead { font-size: 1.1rem; color: var(--muted); margin-top: 18px; max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.more { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--line); padding-bottom: 2px; }

.hero-art { position: relative; height: 560px; margin-inline: calc(-1 * var(--pad)); }
.hero-art .plate { position: absolute; width: 440px; max-width: none; left: 50%; top: 40px; transform: translateX(-12%); border-radius: 50%; box-shadow: 0 40px 80px -30px rgba(14,21,18,.45); }
.hero-art .phone { position: absolute; width: 270px; left: 50%; top: 0; transform: translateX(-66%) rotate(-4deg); }
.hero-art .pop { position: absolute; width: min(94%, 420px); left: 50%; bottom: 36px; transform: translateX(-50%); border-radius: 18px; box-shadow: 0 24px 50px -16px rgba(14,21,18,.4); }

/* ── Facts strip ── */
.facts { background: var(--dark); color: #fff; }
.facts-in { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 12px; padding-block: 26px; }
.facts b { display: block; font: 900 2rem/1 var(--display); letter-spacing: -.03em; color: var(--green-2); }
.facts span { font-size: .88rem; color: #BFD0C6; }

/* ── Sections ── */
.sec { padding: 72px 0; }
.sec.alt { background: var(--bg-alt); }
.kicker { font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
.intro { color: var(--muted); font-size: 1.08rem; margin-top: 16px; max-width: 46ch; }
.sub { margin: 56px 0 18px; font-size: 1.3rem; }
.center { display: flex; justify-content: center; margin-top: 30px; }
.fine { font-size: .82rem; color: var(--muted); text-align: center; max-width: 52ch; margin: 16px auto 0; }

/* how it works */
.how { display: grid; gap: 30px; margin-top: 32px; }
.how-art { margin: 0; max-width: 400px; justify-self: center; }
.how-art img { border-radius: 28px; box-shadow: 0 30px 70px -24px rgba(14,21,18,.35); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px 20px 20px 64px; position: relative; color: var(--muted); }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font: 800 .95rem/32px var(--display); text-align: center; }
.steps b { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 2px; }
.ways { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ways li { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.ways b { display: block; font-size: .98rem; }
.ways span { font-size: .88rem; color: var(--muted); line-height: 1.4; display: block; margin-top: 4px; }

/* screens carousel: sideways swipe on phones, a row on desktop */
.shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 34px calc(-1 * var(--pad)) 0; padding: 6px var(--pad) 20px; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.shots figure { margin: 0; flex: 0 0 62%; max-width: 250px; scroll-snap-align: center; }
.shots figcaption { font-size: .9rem; font-weight: 600; margin-top: 12px; text-align: center; color: var(--ink); }
.cols { display: grid; gap: 14px; margin-top: 26px; }
.col { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.col ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.col li { padding-left: 28px; position: relative; color: var(--muted); }
.col li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%233E8C63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* dark "keep going" */
.dark { background: var(--dark); color: #fff; }
.dark .intro, .dark .note { color: #B8C9BF; }
.dark .kicker { color: var(--green-2); }
.game { display: grid; gap: 40px; }
.nums { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.nums div { background: var(--dark-2); border: 1px solid #1F3328; border-radius: 20px; padding: 18px; }
.nums b { display: block; font: 900 2.2rem/1 var(--display); color: var(--green-2); letter-spacing: -.03em; }
.nums span { font-size: .88rem; color: #C9D8CF; }
.note { font-size: .9rem; margin-top: 18px; }
.game-art { position: relative; justify-self: center; width: min(78%, 300px); }
.game-art .flames { position: absolute; width: 90px; right: -34px; bottom: 40px; filter: drop-shadow(0 12px 20px rgba(0,0,0,.4)); }

/* pricing */
.plans { display: grid; gap: 12px; margin-top: 30px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; position: relative; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px; }
.plan h3 { font-size: 1.05rem; }
.plan .price { font: 900 1.7rem/1 var(--display); letter-spacing: -.03em; grid-row: span 2; align-self: center; text-align: right; }
.plan .price small { display: block; font: 500 .8rem Inter; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.plan .per { font-size: .88rem; color: var(--muted); }
.plan.best { border: 2px solid var(--green); padding-top: 30px; }
.flag { position: absolute; top: -12px; left: 22px; background: var(--green); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; }

/* faq */
.faq { margin-top: 28px; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--green); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

/* final CTA */
.end { background: linear-gradient(160deg, #1d4a36, #0f2a1f); color: #fff; text-align: center; padding: 72px 0 80px; }
.end-in { display: flex; flex-direction: column; align-items: center; }
.end img { width: 200px; margin-bottom: 18px; }
.end h2 { max-width: none; }
.end p { color: #CFE3D7; margin: 12px 0 26px; }

/* footer */
.foot { padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.foot-in { display: grid; gap: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: .92rem; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot p { font-size: .8rem; color: var(--muted); max-width: 70ch; }

/* ── Wider screens ── */
@media (min-width: 760px) {
  .facts-in { grid-template-columns: repeat(4, 1fr); }
  .ways { grid-template-columns: repeat(4, 1fr); }
  .cols { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .plan { display: block; padding: 28px 24px; }
  .plan .price { text-align: left; margin: 14px 0 6px; }
  .plan .price small { display: inline; margin-left: 4px; }
  .shots figure { flex-basis: 220px; }
  .sec { padding: 100px 0; }
}
@media (min-width: 1000px) {
  .top-nav { display: flex; }
  .pill { margin-left: 8px; }
  .hero { padding-top: 56px; }
  .hero-in { grid-template-columns: 1.05fr 1fr; align-items: center; }
  .hero-art { height: 640px; margin: 0; }
  .hero-art .plate { width: 500px; top: 60px; }
  .hero-art .phone { width: 300px; }
  .how { grid-template-columns: 400px 1fr; align-items: center; gap: 60px; }
  .game { grid-template-columns: 1.1fr 1fr; align-items: center; }
  .shots { justify-content: center; overflow: visible; }
  .shots figure { flex: 1 1 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
