/* Landing plenishglp1.com — bảng màu "Cam mơ" của app (mobile/lib/core/theme/app_palette.dart).
   Mảng lớn chỉ kem / mơ (an toàn cho người buồn nôn); nâu mực chỉ ở khối Privacy để phá nhịp. */
:root {
  --bg: #FBF5EE;
  --bg-2: #F4ECE2;
  --surface: #FFFFFF;
  --ink: #2B1F1A;
  --ink-2: #5B4A41;
  --ink-3: #725F55;
  --primary: #B8481F;
  --primary-dark: #933816;
  --hero: #F6AD7B;
  --sun: #FBD0A6;
  --emph: #863214;       /* chữ nhấn trên nền mơ: ~4,6:1 (store_shots.EMPH) */
  --tint: #FCE6D6;
  --divider: #EADFD3;
  --t-protein: #F5E3D8;
  --t-fiber: #E2EFDF;
  --t-water: #DFEAF6;
  --radius: 24px;
  --shadow: 0 1px 2px rgba(58, 42, 34, .06), 0 8px 24px rgba(58, 42, 34, .08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); font-weight: 700; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; color: var(--ink); }
h2 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.1; font-weight: 900; letter-spacing: -0.02em; }
h3 { font-size: 20px; line-height: 1.25; font-weight: 800; }
p { margin: 0; color: var(--ink-2); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.narrow { max-width: 760px; }
.center { text-align: center; }
.sub { max-width: 640px; margin: 14px auto 0; font-size: 18px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }

/* ── Nav ─────────────────────────────────────────────────────────── */
.nav { background: var(--hero); position: relative; z-index: 3; }
.nav-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span { font-size: 23px; font-weight: 900; letter-spacing: -0.02em; }
.nav nav { display: none; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--ink); text-decoration: none; font-weight: 700; }
.nav nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 720px) { .nav nav { display: flex; } }
.btn {
  margin-left: auto; display: inline-flex; align-items: center; height: 44px; padding: 0 20px;
  background: var(--ink); color: var(--bg); border-radius: 999px; text-decoration: none; font-weight: 800; font-size: 16px;
}
@media (min-width: 720px) { .btn { margin-left: 0; } }
.btn:hover { background: #000; }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero { position: relative; background: var(--hero); overflow: hidden; }
.sun {
  position: absolute; border-radius: 50%; background: var(--sun);
  width: 420px; height: 420px; right: -150px; top: 250px;
}
@media (min-width: 900px) { .sun { width: 560px; height: 560px; right: -60px; top: -120px; } }
.hill {
  position: absolute; z-index: 2; left: -40%; right: -40%; bottom: -150px; height: 260px;
  background: var(--bg); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero-in { position: relative; z-index: 1; display: grid; gap: 28px; padding-top: 28px; }
@media (min-width: 900px) { .hero-in { grid-template-columns: 1.08fr .92fr; align-items: center; gap: 40px; padding-top: 40px; } }
.eyebrow { font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--emph); }
h1 {
  margin-top: 12px; font-size: clamp(44px, 7.2vw, 78px); line-height: 1.0; font-weight: 900; letter-spacing: -0.03em;
}
h1 em { font-style: normal; color: var(--emph); }
.lead { margin-top: 18px; font-size: 19px; line-height: 1.55; color: var(--ink); max-width: 34em; }
.hero-copy { padding-bottom: 8px; }
@media (min-width: 900px) { .hero-copy { padding-bottom: 150px; } }

.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 26px; }
.badges.center { justify-content: center; }
.badges a { display: block; line-height: 0; border-radius: 9px; }
.badge-ios img { height: 48px; width: auto; }
/* PNG của Google có lề trong suốt 41px/646px — kéo lề âm để thân badge cao đúng 48px như badge Apple. */
.badge-play img { height: 71.4px; width: auto; margin: -11.7px; }

.trust { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.trust li {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px 6px 10px;
  background: var(--bg); border-radius: 999px; font-size: 15px; font-weight: 700; color: var(--ink);
}
.trust li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat;
}

.hero-art { position: relative; justify-self: center; width: min(78vw, 320px); margin-bottom: -60px; }
@media (min-width: 900px) { .hero-art { width: 360px; margin-bottom: -40px; } }
.hero-art .phone { width: 100%; }
.float { position: absolute; filter: drop-shadow(0 8px 12px rgba(90, 50, 25, .22)); }
.f-protein { width: 24%; left: -16%; top: 38%; transform: rotate(-10deg); }
.f-fiber { width: 22%; right: -14%; top: 16%; transform: rotate(8deg); }
.f-water { width: 17%; right: -10%; top: 52%; transform: rotate(-6deg); }
@media (max-width: 899px) {
  .f-protein { left: -9%; }
  .f-fiber { right: -7%; }
  .f-water { right: -5%; }
}

/* ── Goals ───────────────────────────────────────────────────────── */
.goals { padding: 24px 0 24px; position: relative; z-index: 2; }
.goal-grid { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 760px) { .goal-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.goal { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.goal .tile { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 20px; margin-bottom: 16px; }
.goal .tile img { width: 52px; height: 52px; object-fit: contain; }
.g-protein .tile { background: var(--t-protein); }
.g-fiber .tile { background: var(--t-fiber); }
.g-water .tile { background: var(--t-water); }
.goal p { margin-top: 6px; }
/* Điện thoại: thẻ ngang (ô icon trái, chữ phải) cho khỏi ba thẻ cao chồng nhau. */
@media (max-width: 759px) {
  .goal { display: grid; grid-template-columns: 60px 1fr; column-gap: 16px; padding: 18px; }
  .goal .tile { width: 60px; height: 60px; border-radius: 16px; margin: 0; grid-row: span 2; }
  .goal .tile img { width: 40px; height: 40px; }
  .goal p { margin-top: 2px; font-size: 16px; }
}

/* ── Feature rows ────────────────────────────────────────────────── */
.feature { padding: 36px 0; }
.feat-in { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) {
  .feature { padding: 40px 0; }
  .feat-in { grid-template-columns: 1fr 1fr; gap: 56px; }
  .flip .feat-art { order: 2; }
}
.feat-art { position: relative; display: grid; place-items: center; padding: 8px 0; }
.feat-art::before {
  content: ""; position: absolute; width: min(86vw, 400px); aspect-ratio: 1; border-radius: 50%;
  background: var(--tint); top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.feat-art .phone { position: relative; width: min(70vw, 300px); }
@media (min-width: 860px) { .feat-art .phone { width: 280px; } }
.report-art .phone { transform: translateX(-14%); }
.report-art .paper {
  position: absolute; width: min(50vw, 250px); right: max(0%, calc(50% - 240px)); bottom: 6%;
}
.kicker { font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.feat-copy h2 { margin-top: 8px; }
.feat-copy p:not(.kicker) { margin-top: 14px; font-size: 18px; }
.feat-copy .aside { font-size: 16px !important; color: var(--ink-3); }

/* ── Meds ────────────────────────────────────────────────────────── */
.meds { padding: 48px 0 72px; }
.meds h2 { font-size: clamp(24px, 3.2vw, 34px); }

/* ── Privacy (khối tối phá nhịp — UI_RULES) ─────────────────────── */
.privacy { background: var(--ink); padding: 72px 0; }
.privacy h2 { color: var(--bg); }
.privacy h3 { color: var(--hero); font-size: 19px; }
.privacy p { color: #E9DCCF; margin-top: 6px; }
.privacy a { color: var(--hero); }
.priv-grid { display: grid; gap: 28px; margin: 36px 0 32px; }
@media (min-width: 720px) { .priv-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 48px; } }
@media (min-width: 1000px) { .priv-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── Plans ───────────────────────────────────────────────────────── */
.plans { padding: 80px 0 40px; }
.plan-grid { display: grid; gap: 16px; margin: 36px auto 0; max-width: 860px; }
@media (min-width: 760px) { .plan-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
.plan { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.plan.premium { background: var(--tint); box-shadow: inset 0 0 0 2px var(--hero); }
.plan h3 { font-size: 24px; font-weight: 900; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 0; }
.plan li { position: relative; padding: 7px 0 7px 30px; color: var(--ink); font-weight: 600; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/13px no-repeat;
}
.plan .note { margin-top: 14px; font-size: 15px; color: var(--ink-3); }

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq { padding: 64px 0 40px; }
.faq h2 { margin-bottom: 24px; }
details { border-bottom: 1px solid var(--divider); }
summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-size: 19px; font-weight: 800; color: var(--ink);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 28px; font-weight: 700; color: var(--primary); line-height: 1;
}
details[open] summary::after { content: "–"; }
details p { padding: 0 0 20px; }

/* ── CTA ─────────────────────────────────────────────────────────── */
.cta { padding: 48px 0 80px; }
.cta-in {
  position: relative; overflow: hidden; background: var(--hero); border-radius: 32px;
  text-align: center; padding: 40px 20px 48px; max-width: 1072px;
}
@media (min-width: 640px) { .cta-in { padding: 48px 40px 56px; } }
.cta-in::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: var(--sun);
  left: 50%; top: -220px; transform: translateX(-50%);
}
.cta-in > * { position: relative; }
.cta-nib { width: 150px; margin: 0 auto 8px; filter: drop-shadow(0 10px 14px rgba(90, 50, 25, .2)); }
.cta h2 { font-size: clamp(30px, 4.6vw, 48px); }
.cta p { margin-top: 8px; font-size: 19px; color: var(--ink); }

/* ── Footer ──────────────────────────────────────────────────────── */
.foot { background: var(--bg-2); padding: 36px 0 44px; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot nav a { color: var(--ink); }
.foot p { font-size: 14px; color: var(--ink-3); margin-top: 10px; max-width: 860px; }
