:root {
  --navy: #1d4f91;
  --navy-dark: #143a6b;
  --accent: #8fb6ff;
  --red: #ff5a67;
  --red-bg: #4a2733;
  --yellow: #f2c500;
  --yellow-ink: #f2c500;
  --yellow-bg: #463d1f;
  --green: #3ccf7f;
  --green-bg: #1d4436;
  --ink: #eef2f7;
  --muted: #bcc7d6;
  --line: #34507a;
  --bg: #1c2f4b;
  --card: #233a5c;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.top { background: var(--card); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 22px; letter-spacing: -0.3px; }
.logo img { width: 36px; height: 36px; border-radius: 9px; }
.logo .j { color: #ffffff; }
.logo .s { color: var(--red); }
nav a { margin-left: 18px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 48px; line-height: 1.08; margin: 0 0 16px; letter-spacing: -1px; }
.hero h1 .r { color: var(--red); }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 26px; max-width: 34em; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-width: 190px; padding: 10px 18px; border-radius: 12px; background: #ffffff; color: #1c2f4b; text-decoration: none; line-height: 1.15; }
.store small { font-size: 11px; opacity: 0.85; }
.store b { font-size: 19px; }
.store.soon { background: #3a5276; color: #eef2f7; cursor: default; }
.soon-note { width: 100%; font-size: 14px; color: var(--muted); margin-top: 2px; }
.hero .phone { justify-self: center; width: 100%; max-width: 440px; }
.hand { width: 100%; height: auto; display: block; }
.phone img { width: 290px; max-width: 100%; border-radius: 34px; box-shadow: 0 24px 60px rgba(0,0,0,0.5); display: block; }

/* Colors explainer */
section { padding: 48px 0; }
section h2 { font-size: 32px; margin: 0 0 8px; letter-spacing: -0.5px; }
section p.sub { color: var(--muted); margin: 0 0 28px; font-size: 18px; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tier { border-radius: 16px; padding: 20px; }
.tier h3 { margin: 0 0 6px; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.tier p { margin: 0; color: var(--ink); }
.dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.t-red { background: var(--red-bg); } .t-red .dot { background: var(--red); }
.t-yellow { background: var(--yellow-bg); } .t-yellow .dot { background: var(--yellow); }
.t-green { background: var(--green-bg); } .t-green .dot { background: var(--green); }
.sample { margin-top: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; font-size: 18px; line-height: 1.8; }
.sample .h { font-weight: 900; }
.sample .r { color: var(--red); font-weight: 800; text-decoration: underline; }
.sample .y { color: var(--yellow-ink); font-weight: 800; }
.sample .g { color: var(--green); }

/* Features */
.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 28px; }
.feature h3 { margin: 0 0 4px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); }

/* Screens */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.shots img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 10px 28px rgba(0,0,0,0.45); display: block; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.plan.best { border: 2px solid var(--accent); background: #2b4a75; }
.plan h3 { margin: 0 0 4px; font-size: 18px; }
.plan .price { font-size: 34px; font-weight: 900; margin: 4px 0; }
.plan .price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan p { margin: 0; color: var(--muted); }
.badge { display: inline-block; background: var(--green); color: #1c2f4b; font-size: 13px; font-weight: 800; padding: 2px 10px; border-radius: 999px; margin-bottom: 6px; }
.fine { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* Legal pages */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 20px 60px; }
.doc h1 { font-size: 34px; margin: 0 0 6px; }
.doc h2 { font-size: 22px; margin: 28px 0 8px; }
.doc h3 { font-size: 18px; margin: 20px 0 6px; }
.doc li { margin: 4px 0; }

/* Footer */
footer { padding: 32px 0 44px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; }
footer a { color: var(--muted); }

@media (max-width: 820px) {
  .hero { padding-top: 32px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .hero p.lead { font-size: 18px; }
  .hero .phone { max-width: 340px; }
  .tiers, .plans { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  nav a { margin-left: 12px; font-size: 14px; }
  .store { min-width: 0; flex: 1 1 160px; }
}

.hero { background: radial-gradient(1200px 500px at 75% 40%, #2d4e7c 0%, var(--bg) 70%); }
html { color-scheme: dark; }

.nosign { display: inline-flex; align-items: center; gap: 10px; background: rgba(60, 207, 127, 0.16); border: 2px solid var(--green); color: #ffffff; font-weight: 800; font-size: 22px; padding: 10px 20px 10px 12px; border-radius: 999px; margin-bottom: 22px; }
.nosign .ck { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #1c2f4b; font-size: 19px; font-weight: 900; }
@media (max-width: 820px) { .nosign { font-size: 17px; white-space: nowrap; padding: 8px 16px 8px 9px; } .nosign .ck { width: 28px; height: 28px; font-size: 16px; } }
/* Hero animation: phone floats; each app screen fades in on top, scrolls down, then the next one */
.hand .float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hand .scr { animation: 20s linear infinite; }
.hand .scr1 { animation-name: scr1; } .hand .scr2 { animation-name: scr2; opacity: 0; } .hand .scr3 { animation-name: scr3; opacity: 0; } .hand .scr4 { animation-name: scr4; opacity: 0; }
@keyframes scr1 { 0%,28% { opacity: 1; } 28.1%,94% { opacity: 0; } 94.1%,100% { opacity: 1; } }
@keyframes scr2 { 0%,25% { opacity: 0; } 28%,53% { opacity: 1; } 53.1%,100% { opacity: 0; } }
@keyframes scr3 { 0%,50% { opacity: 0; } 53%,78% { opacity: 1; } 78.1%,100% { opacity: 0; } }
@keyframes scr4 { 0%,75% { opacity: 0; } 78%,97% { opacity: 1; } 100% { opacity: 0; } }
@keyframes body1 { 0%,8% { transform: translateY(0); } 20%,28% { transform: translateY(-223.0px); } 29%,100% { transform: translateY(0); } }
.hand .body1 { animation: body1 20s ease-in-out infinite; }
@keyframes body2 { 0%,33% { transform: translateY(0); } 45%,100% { transform: translateY(-304.1px); } }
.hand .body2 { animation: body2 20s ease-in-out infinite; }
@keyframes body3 { 0%,58% { transform: translateY(0); } 70%,100% { transform: translateY(-356.1px); } }
.hand .body3 { animation: body3 20s ease-in-out infinite; }
@keyframes body4 { 0%,83% { transform: translateY(0); } 95%,100% { transform: translateY(-198.8px); } }
.hand .body4 { animation: body4 20s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .hand .float, .hand .scr, .hand .body1, .hand .body2, .hand .body3, .hand .body4 { animation: none; } .hand .scr2, .hand .scr3, .hand .scr4 { opacity: 0; } }

.logo span, nav a { white-space: nowrap; }
@media (max-width: 480px) { nav a[href="#how"] { display: none; } .logo { font-size: 20px; } .nosign { font-size: 15.5px; gap: 8px; } }

/* Hero phone mockup: one scan shown across the app's tabs (Ingredients, Nutrition, My scans), sliding to the next tab */
.hero .phone.mk { position: relative; max-width: 440px; min-height: 660px; display: flex; align-items: center; justify-content: center; }
.mk::before { content: ""; position: absolute; width: 400px; height: 400px; max-width: 100%; aspect-ratio: 1; border-radius: 50%; background: #2b4a75; }
.mk-dot { position: absolute; border-radius: 50%; }
.mk-d1 { width: 30px; height: 30px; right: 18px; top: 110px; background: var(--red); }
.mk-d2 { width: 22px; height: 22px; left: 8px; top: 150px; background: var(--yellow); }
.mk-d3 { width: 18px; height: 18px; right: 34px; bottom: 120px; background: var(--green); }
.mk-dev { position: relative; width: 310px; height: 630px; box-sizing: border-box; background: #0e1626; border-radius: 50px; padding: 11px; box-shadow: 0 30px 60px rgba(0,0,0,0.35); }
.mk-scr { --vh: 448px; position: relative; width: 100%; height: 100%; background: #fafaf8; border-radius: 40px; overflow: hidden; color: #1a1a1a; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; display: flex; flex-direction: column; }
.mk-isl { position: absolute; z-index: 3; top: 10px; left: 50%; margin-left: -44px; width: 88px; height: 26px; border-radius: 999px; background: #0e1626; }
.mk-bar { height: 84px; box-sizing: border-box; padding: 46px 12px 8px 14px; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.mk-back { background: #1a1a1a; color: #fff; font-weight: 700; font-size: 12px; border-radius: 999px; padding: 0 12px; height: 30px; display: flex; align-items: center; flex-shrink: 0; }
.mk-title { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.mk-star { flex-shrink: 0; }
.mk-tabs { height: 36px; margin: 0 14px 10px; box-sizing: border-box; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 3px; background: #e9eae5; border-radius: 12px; flex-shrink: 0; }
.mk-tabs span { display: flex; align-items: center; justify-content: center; border-radius: 9px; font-size: 11.5px; font-weight: 700; color: #6b6b66; animation: mk-tab 21s infinite; }
.mk-tabs span:nth-child(1), .mk-foot i:nth-child(1) { animation-delay: -0.6s; } .mk-tabs span:nth-child(2), .mk-foot i:nth-child(2) { animation-delay: 6.4s; } .mk-tabs span:nth-child(3), .mk-foot i:nth-child(3) { animation-delay: 13.4s; }
.mk-stage { position: relative; height: var(--vh); overflow: hidden; }
.mk-s { position: absolute; inset: 0; overflow: hidden; background: #fafaf8; transform: translateX(100%); animation: mk-slide 21s infinite ease-in-out; animation-delay: var(--d); }
.mk-s1 { --d: -0.6s; } .mk-s2 { --d: 6.4s; } .mk-s3 { --d: 13.4s; }
.mk-body { padding: 2px 14px 14px; display: flex; flex-direction: column; gap: 10px; animation: mk-scroll 21s infinite ease-in-out; animation-delay: var(--d); }
.mk-foot { flex: 1; display: flex; justify-content: center; align-items: center; gap: 6px; border-top: 1px solid #e6e6e1; background: #fafaf8; }
.mk-foot i { width: 7px; height: 7px; border-radius: 50%; background: #d9dad4; animation: mk-pdot 21s infinite; }
.mk-sum { border-radius: 14px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; }
.mk-sum-r { background: #fde7ea; } .mk-sum-g { background: #e3f2e9; }
.mk-sum b { display: block; font-size: 14px; font-weight: 800; }
.mk-sum small { display: block; font-size: 11px; color: #4a4a45; }
.mk-n { width: 30px; height: 30px; border-radius: 50%; background: #c8102e; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 15px; flex-shrink: 0; }
.mk-sum-g .mk-n { background: #16794a; }
.mk-cnt { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mk-cnt div { background: #fff; border: 1px solid #e2e2dc; border-radius: 12px; padding: 8px 10px; }
.mk-cnt b { display: block; font-size: 24px; font-weight: 900; line-height: 1.1; }
.mk-cnt small { font-size: 11px; color: #4a4a45; }
.mk-cr { color: #c8102e; } .mk-cy { color: #7d5f00; } .mk-cg { color: #16794a; }
.mk-h { font-size: 15px; font-weight: 800; margin-top: 2px; }
.mk-ing { background: #fff; border: 1px solid #e2e2dc; border-radius: 14px; padding: 12px; font-size: 13px; line-height: 1.85; }
.mk-r { background: #fde7ea; color: #b00d27; font-weight: 800; text-decoration: underline; border-radius: 4px; padding: 0 3px; }
.mk-y { background: #fff0b8; color: #6e5300; font-weight: 700; border-radius: 4px; padding: 0 3px; }
.mk-g { background: #e3f2e9; color: #13693f; border-radius: 4px; padding: 0 3px; }
.mk-leg { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 10px; color: #4a4a45; }
.mk-leg span { display: flex; align-items: center; gap: 4px; }
.mk i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.mk-lr { background: #c8102e; } .mk-ly { background: #f2c200; } .mk-lg { background: #16794a; }
.mk-why { background: #fff; border: 1px solid #e2e2dc; border-radius: 14px; padding: 10px 12px; box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
.mk-why-h { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.mk-why-h i { width: 10px; height: 10px; }
.mk-why-h span { margin-left: auto; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 8px; }
.mk-b-r { color: #b00d27; background: #fde7ea; }
.mk-why p { margin: 4px 0 0; font-size: 11.5px; line-height: 1.4; color: #4a4a45; }
.mk-nf { background: #fff; border: 2px solid #1a1a1a; padding: 6px 9px; font-size: 11px; }
.mk-nf-t { display: block; font-size: 24px; font-weight: 900; letter-spacing: -0.4px; line-height: 1.05; }
.mk-nf-sv { font-size: 10.5px; margin-top: 2px; }
.mk-nf-s, .mk-nf-c, .mk-nf-r { display: flex; justify-content: space-between; align-items: baseline; }
.mk-nf-s { font-weight: 800; padding: 1px 0 4px; border-bottom: 7px solid #1a1a1a; }
.mk-nf-c { font-size: 18px; font-weight: 900; padding: 2px 0; border-bottom: 4px solid #1a1a1a; }
.mk-nf-dv { text-align: right; font-size: 9.5px; font-weight: 700; padding: 3px 0; border-bottom: 1px solid #1a1a1a; }
.mk-nf-r { padding: 4px 0; border-bottom: 1px solid #1a1a1a; }
.mk-nf-r:last-child { border-bottom: 0; }
.mk-nf-i { padding-left: 12px; }
.mk-nf-i2 { padding-left: 24px; padding-right: 4px; background: #e3f2e9; }
.mk-nf-i2 b { color: #16794a; }
.mk-ms-h { display: flex; justify-content: space-between; align-items: baseline; }
.mk-ms-h b { font-size: 19px; font-weight: 900; letter-spacing: -0.3px; }
.mk-ms-h span { font-size: 12px; color: #6b6b66; text-decoration: underline; }
.mk-card { background: #fff; border: 1px solid #e2e2dc; border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 5px; }
.mk-cur { border: 2px solid #1d4f91; padding: 9px 11px; }
.mk-card-h { display: flex; gap: 8px; align-items: flex-start; }
.mk-card-h b { flex: 1; font-size: 13px; font-weight: 800; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-card-h small { font-size: 10.5px; color: #6b6b66; flex-shrink: 0; }
.mk-card-c { display: flex; gap: 9px; flex-wrap: wrap; font-size: 11.5px; color: #4a4a45; }
.mk-card-c span { display: flex; align-items: center; gap: 4px; }
.mk-card-c i { width: 9px; height: 9px; }
.mk-card-c b { font-size: 14px; font-weight: 900; }
.mk-card-s { font-size: 11.5px; color: #4a4a45; }
.mk-card-s b { font-weight: 900; }
.mk-note { font-size: 10px; color: #6b6b66; text-align: center; }
.mk-share { background: #1d4f91; color: #fff; border-radius: 14px; padding: 10px 12px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.mk-share b { font-size: 14px; font-weight: 900; }
.mk-share span { font-size: 10.5px; }
@keyframes mk-slide { 0% { transform: translateX(100%); } 3% { transform: translateX(0); } 32% { transform: translateX(0); } 35% { transform: translateX(-100%); } 100% { transform: translateX(-100%); } }
@keyframes mk-scroll { 0%, 8% { transform: translateY(0); } 24%, 35% { transform: translateY(min(0px, calc(-100% + var(--vh)))); } 36%, 100% { transform: translateY(0); } }
@keyframes mk-tab { 0% { color: #6b6b66; background: transparent; box-shadow: none; } 3%, 32% { color: #1a1a1a; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.12); } 35%, 100% { color: #6b6b66; background: transparent; box-shadow: none; } }
@keyframes mk-pdot { 0% { background: #d9dad4; } 3%, 32% { background: #1a1a1a; } 35%, 100% { background: #d9dad4; } }
@media (prefers-reduced-motion: reduce) {
  .mk-s, .mk-body, .mk-tabs span, .mk-foot i { animation: none; }
  .mk-s1 { transform: none; }
  .mk-tabs span:first-child { color: #1a1a1a; background: #fff; }
  .mk-foot i:first-child { background: #1a1a1a; }
}
@media (max-width: 820px) {
  .hero .phone.mk { min-height: 600px; max-width: 360px; justify-self: center; }
  .mk::before { width: 320px; height: 320px; }
  .mk-dev { width: 280px; height: 570px; border-radius: 44px; padding: 10px; }
  .mk-scr { --vh: 392px; border-radius: 35px; }
  .mk-d1 { right: 2px; top: 70px; }
  .mk-d3 { right: 8px; bottom: 90px; }
}

/* Support page */
.sup-lead { font-size: 19px; color: var(--muted); margin: 6px 0 0; }
.mailbox { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin: 22px 0 8px; }
.mailbox small { display: block; color: var(--muted); font-size: 14px; margin-bottom: 2px; }
.mailbox a { font-size: 24px; font-weight: 700; color: var(--ink); word-break: break-all; }
.copy { background: var(--ink); color: var(--bg); border: 0; border-radius: 999px; height: 44px; padding: 0 20px; font: inherit; font-weight: 700; cursor: pointer; }
.copy:hover { background: #ffffff; }
