/* H4 «What's for dinner? Your lunch already knows.» — /what-to-eat-for-dinner/
   (BL-020). The design is the mobile clean copy «Лендинг H4 мобильный —
   чистовик» (390 pt): one phone-width column centred on any screen, like the
   H2 quiz landing. Without JavaScript the page is whole: Apple wording, and
   every store button already carries the OneLink. /assets/h4.js swaps the
   wording to Google Play / Health Connect on Android and sends the events. */

:root {
  --h4-page: #FCF6F1;
  --h4-outside: #ecebf4;
  --h4-ink: #23232b;
  --h4-text: #4b4b57;
  --h4-muted: #6a6a76;
  --h4-violet: #6B3FD6;
  --h4-green: #13742F;  /* #178A3A in the design; darker for 4.5:1 contrast of white 11px text */
  --h4-orange: #F26418;
  --h4-peach: #FBB877;
  --h4-font: 'Figtree', -apple-system, system-ui, sans-serif;
  --h4-sys: -apple-system, system-ui, 'SF Pro Text', sans-serif;
}

html { -webkit-text-size-adjust: 100%; }
* { box-sizing: border-box; }
body.h4 { margin: 0; background: var(--h4-outside); font-family: var(--h4-font); color: var(--h4-ink); }
.h4 a { color: var(--h4-violet); }
.h4 img { display: block; }
.h4 h1, .h4 h2, .h4 h3, .h4 p { margin: 0; }

.h4-app { max-width: 480px; margin: 0 auto; background: var(--h4-page); position: relative; overflow: hidden; min-height: 100vh; }
@media (min-width: 520px) {
  .h4-app { margin: 32px auto; border-radius: 28px; box-shadow: 0 20px 50px rgba(60, 30, 10, .14); min-height: 0; }
}

/* ---------- nav ---------- */
.h4-nav { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 0; position: relative; z-index: 2; }
.h4 a.h4-logo { display: flex; align-items: center; gap: 8px; font: 800 19px/1 var(--h4-font); letter-spacing: -.4px; color: var(--h4-ink); text-decoration: none; }
.h4-logo img { width: 26px; height: 26px; border-radius: 7px; }
.h4 a.h4-pill { height: 34px; padding: 0 14px; border-radius: 17px; background: var(--h4-ink); color: #fff; display: inline-flex; align-items: center; font: 700 13px/1 var(--h4-font); text-decoration: none; }

/* ---------- hero ---------- */
.h4-hero { position: relative; padding: 34px 20px 0; overflow: hidden; }
.h4-sun { position: absolute; border-radius: 50%; z-index: 0; }
.h4-sun-a { left: -220px; top: 300px; width: 600px; height: 600px; background: radial-gradient(circle at 70% 30%, #FBB877 0%, #F79447 45%, #F26A1E 100%); }
.h4-sun-b { left: 250px; top: 190px; width: 420px; height: 420px; background: linear-gradient(215deg, #FCBE82 0%, #F7943F 42%, #F0651C 100%); }
@media (min-width: 420px) { .h4-sun-b { left: auto; right: -280px; } }
.h4-hero-in { position: relative; z-index: 1; }
.h4-h1 { font: 800 42px/1.02 var(--h4-font); letter-spacing: -1.4px; text-wrap: pretty; }
.h4-h1 span { color: var(--h4-violet); }
.h4-lead { margin-top: 16px !important; font: 500 17px/1.4 var(--h4-font); color: var(--h4-text); max-width: 330px; text-wrap: pretty; }
.h4-ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.h4 a.h4-btn { height: 54px; border-radius: 27px; background: var(--h4-ink); color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; font: 700 16px/1 var(--h4-font); text-decoration: none; }
.h4 a.h4-btn:hover { background: #000; color: #fff; }
.h4 a.h4-alt { font: 600 13px/1 var(--h4-font); color: var(--h4-muted); text-decoration: none; text-align: center; padding: 4px 0; }
.h4 a.h4-alt:hover { color: var(--h4-ink); }
.h4-ico-play { display: none; }
.h4.is-android .h4-ico-apple { display: none; }
.h4.is-android .h4-ico-play { display: block; }
.h4-free { display: flex; align-items: center; gap: 10px; margin-top: 14px; font: 500 12px/1.3 var(--h4-font); color: var(--h4-muted); }
.h4-free-tag { height: 26px; padding: 0 11px; border-radius: 13px; background: var(--h4-green); color: #fff; display: inline-flex; align-items: center; letter-spacing: .6px; font: 600 11px/1 var(--h4-font); flex: none; white-space: nowrap; }

/* the phone with the «today's gap» widget */
.h4-phone { position: relative; z-index: 1; margin: 30px auto 0; width: 310px; max-width: 100%; border-radius: 40px 40px 0 0; background: #fff; box-shadow: 0 -14px 40px rgba(130, 60, 10, .2); padding: 9px 9px 0; }
.h4-screen { border-radius: 32px 32px 0 0; overflow: hidden; background: #F4F3F8; position: relative; height: 440px; }
.h4-status { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px 0; font: 600 13px/1 var(--h4-sys); color: #1c1c1e; }
.h4-status i { width: 20px; height: 10px; border: 1.5px solid #1c1c1e; border-radius: 3px; }
.h4-today { display: flex; justify-content: space-between; align-items: center; padding: 14px 12px 0; }
.h4-today b { font: 700 19px/1 var(--h4-sys); color: #1c1c1e; }
.h4-hp-pill { height: 24px; padding: 0 9px; border-radius: 12px; background: #fff; color: #6a2fc0; display: inline-flex; align-items: center; gap: 5px; font: 600 11px/1 var(--h4-sys); }
.h4-hp-pill img { width: 13px; height: 13px; }
/* the widget is drawn at 640 px (as in H4GapWidget) and scaled to 0.44 */
.h4-widget-box { position: absolute; left: 6px; top: 142px; width: 282px; height: 361px; }
.h4-widget { width: 640px; transform: scale(.44); transform-origin: 0 0; background: #fff; border-radius: 44px; box-shadow: 0 30px 70px rgba(60, 30, 120, .18); font-family: var(--h4-sys); color: #1c1c1e; overflow: hidden; }
.gw-head { display: flex; align-items: center; gap: 18px; padding: 30px 34px 0; }
.gw-photo { position: relative; width: 96px; height: 96px; border-radius: 24px; background: url('/assets/h4/d-fried-eggs.webp') center / cover; flex: none; }
.gw-frame { position: absolute; inset: 12px; border: 3px solid #fff; border-radius: 14px; }
.gw-logged { position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); white-space: nowrap; background: #fff; color: #2e8a58; border-radius: 12px; padding: 4px 10px; font: 700 15px system-ui; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.gw-meal { flex: 1; min-width: 0; }
.gw-slot { font: 500 17px system-ui; letter-spacing: .8px; color: #8e8e93; text-transform: uppercase; }
.gw-title { font: 600 25px/1.2 system-ui; margin-top: 4px; }
.gw-macros { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.gw-macros span { background: #f4f3f8; border-radius: 10px; padding: 4px 10px; font: 600 16px system-ui; }
.gw-macros .gw-p { background: #fdebd9; color: #b85c0a; }
.gw-macros .gw-m { color: #3a3a44; font-weight: 500; }
.gw-today { margin: 26px 34px 0; background: #f4f3f8; border-radius: 26px; padding: 22px 24px; }
.gw-today-head { display: flex; justify-content: space-between; align-items: center; }
.gw-today-t { font: 600 24px system-ui; }
.gw-hp { display: flex; align-items: center; gap: 10px; }
.gw-hp span { font: 500 17px system-ui; color: #6b6b76; }
.gw-ring { width: 40px; height: 40px; border-radius: 20px; border: 4px solid #dcd3f3; border-top-color: #7b45c9; border-right-color: #7b45c9; display: flex; align-items: center; justify-content: center; font: 700 14px system-ui; color: #6a2fc0; }
.gw-groups { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 12px; margin-top: 18px; }
.gw-g { background: #fff; border-radius: 20px; padding: 14px 16px; }
.gw-g-hot { background: #fff4e6; outline: 3px solid #f5a623; outline-offset: -3px; }
.gw-g-n { font: 500 16px system-ui; color: #6b6b76; }
.gw-g-v { font: 700 30px system-ui; margin-top: 2px; }
.gw-g-v span { font: 500 16px system-ui; color: #8e8e93; }
.gw-bar { height: 7px; border-radius: 4px; background: #eeedf2; margin-top: 10px; position: relative; }
.gw-g-hot .gw-bar { background: #f6e2c6; }
.gw-bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: #c9c6d6; }
.gw-g-hot .gw-bar span { background: #f5a623; }
.gw-g-s { font: 500 16px system-ui; color: #8e8e93; margin-top: 8px; }
.gw-g-hot .gw-g-s { font-weight: 700; color: #d9741a; }
.gw-kcal { margin-top: 18px; display: flex; justify-content: space-between; align-items: baseline; font: 600 19px system-ui; }
.gw-kcal small { font: 400 16px system-ui; color: #8e8e93; }
.gw-kcal-bar { height: 10px; border-radius: 5px; background: #eeedf2; margin-top: 8px; position: relative; }
.gw-kcal-bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: #f5a623; }
.gw-gap { margin: 26px 34px 0; display: flex; align-items: center; gap: 12px; font: 600 24px/1.25 system-ui; color: #1c1650; }
.gw-gap i { width: 12px; height: 12px; border-radius: 6px; background: #7b45c9; flex: none; }
.gw-gap span { color: #6a3fd6; }
.gw-pick { margin: 16px 34px 34px; display: flex; gap: 16px; align-items: center; background: #fff; border: 2px solid #e8e2f6; border-radius: 26px; padding: 14px; box-shadow: 0 10px 28px rgba(60, 30, 120, .10); }
.gw-pick-img { width: 112px; height: 112px; border-radius: 20px; background: url('/assets/h4/d-fish.webp') center / cover; flex: none; }
.gw-pick-body { flex: 1; min-width: 0; }
.gw-pick-t { font: 600 25px/1.2 system-ui; }
.gw-pick-m { font: 500 18px system-ui; color: #6b6b76; margin-top: 6px; }
.gw-pick-m b { color: #d9741a; font-weight: 700; }
.gw-pick-m img { display: inline; width: 22px; height: 22px; vertical-align: -5px; }
.gw-pick-btns { display: flex; gap: 10px; margin-top: 14px; }
.gw-pick-btns span { height: 46px; display: inline-flex; align-items: center; border-radius: 23px; font: 600 18px system-ui; }
.gw-add { background: #7b45c9; color: #fff; padding: 0 22px; }
.gw-light { border: 2px solid #e2e0ea; color: #3a3a44; padding: 0 18px; }

/* ---------- how it works ---------- */
.h4-how { padding: 44px 20px 8px; display: flex; flex-direction: column; gap: 30px; }
.h4-health { display: flex; align-items: center; gap: 14px; padding: 18px 16px 18px 20px; border-radius: 22px; background: linear-gradient(100deg, #EDE6FF 0%, #D9CCFF 100%); color: #4b2fa3; }
.h4-health svg { flex: none; }
.h4-health-t { flex: 1; min-width: 0; }
.h4-health-h { font: 700 19px/1.2 var(--h4-sys); color: #3e2a8f; }
.h4-health-s { font: 500 13px/1.35 var(--h4-sys); color: #6f5fb0; margin-top: 4px; }
.h4-health-pics { position: relative; width: 86px; height: 52px; flex: none; }
.h4-health-pics i { position: absolute; top: 0; width: 52px; height: 52px; border-radius: 12px; box-shadow: 0 2px 8px rgba(60, 30, 120, .18); }
.h4-pic-a { left: 0; background: url('/assets/h4/d-barley.webp') center / cover; transform: rotate(-8deg); }
.h4-pic-b { left: 30px; top: 2px !important; background: url('/assets/h4/d-fish.webp') center / cover; transform: rotate(6deg); }
.h4-kicker { font: 600 12px/1 var(--h4-font); letter-spacing: 1.2px; }
.h4-orange { color: var(--h4-orange); }
.h4-peach { color: var(--h4-peach); }
.h4-violet { color: var(--h4-violet); }
.h4-green { color: var(--h4-green); }
.h4-steps { display: grid; grid-template-columns: 44px 1fr; gap: 14px 16px; align-items: start; }
.h4-step-ico { width: 44px; height: 44px; border-radius: 22px; background: #fff; border: 1px solid #ECEBF0; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.h4-step-ico img { width: 44px; height: 44px; object-fit: cover; }
.h4-ico-scan { background: #fff url('/assets/h4/phone-scan.webp') 50% 42% / 160%; }
.h4-ico-dish { background: #fff url('/assets/h4/fish-potato-cutlets.webp') center / cover; }
.h4-steps h3 { font: 700 19px/1.2 var(--h4-font); letter-spacing: -.3px; }
.h4-steps p { font: 500 15px/1.4 var(--h4-font); color: var(--h4-text); margin-top: 4px; text-wrap: pretty; }

/* ---------- dark: no plan to follow ---------- */
.h4-dark { margin: 36px 0 0; padding: 36px 20px 40px; background: var(--h4-ink); color: var(--h4-page); position: relative; overflow: hidden; }
.h4-dark-sun { position: absolute; right: -160px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #F79447 0%, #F26A1E 55%, rgba(242, 106, 30, 0) 72%); opacity: .9; }
.h4-dark-in { position: relative; z-index: 1; }
.h4-h2 { font: 800 32px/1.05 var(--h4-font); letter-spacing: -1px; text-wrap: pretty; }
.h4-dark .h4-h2 { margin-top: 14px; }
.h4-dark .h4-h2 span { color: var(--h4-peach); }
.h4-dark p { margin-top: 14px; font: 500 16px/1.45 var(--h4-font); color: #cfcfd8; text-wrap: pretty; }
.h4-shot { margin-top: 24px; border-radius: 22px; overflow: hidden; background: #2d2d38; aspect-ratio: 4 / 3; position: relative; }
.h4-shot img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 38%; }
.h4-shot-tag { position: absolute; left: 14px; bottom: 14px; height: 34px; padding: 0 14px; border-radius: 17px; background: #fff; color: var(--h4-ink); display: inline-flex; align-items: center; gap: 8px; font: 700 13px/1 var(--h4-font); }
.h4-shot-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--h4-green); }

/* ---------- the Nordic way ---------- */
.h4-nordic { padding: 40px 20px 0; }
.h4-nordic .h4-h2 { margin-top: 14px; font-size: 30px; letter-spacing: -.9px; }
.h4-nordic p { margin-top: 12px; font: 500 16px/1.45 var(--h4-font); color: var(--h4-text); text-wrap: pretty; }
.h4-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.h4-pair img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 18px; }
.h4-card { border-radius: 20px; background: #fff; box-shadow: 0 8px 24px rgba(60, 30, 10, .08); }
.h4-hp { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 16px; }
.h4-hp img { width: 52px; height: 52px; border-radius: 14px; flex: none; }
.h4-hp b { display: block; font: 700 16px/1.2 var(--h4-font); }
.h4-hp span { display: block; font: 500 14px/1.35 var(--h4-font); color: var(--h4-text); margin-top: 3px; }

/* ---------- plans ---------- */
.h4-plans { padding: 44px 20px 0; }
.h4-plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.h4-plan { border-radius: 20px; background: #fff; padding: 18px 16px; box-shadow: 0 8px 24px rgba(60, 30, 10, .08); }
.h4-plan-pro { background: var(--h4-violet); color: #fff; box-shadow: 0 12px 30px rgba(107, 63, 214, .3); }
.h4-plan-n { font: 700 17px/1.2 var(--h4-font); }
.h4-plan-p { font: 800 26px/1 var(--h4-font); letter-spacing: -.8px; margin-top: 8px; }
.h4-plan-p small { font: 600 13px/1 var(--h4-font); opacity: .85; letter-spacing: 0; }
.h4-plan ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; font: 500 13px/1.35 var(--h4-font); color: var(--h4-text); }
.h4-plan-pro ul { color: #efe9ff; }

/* ---------- final CTA ---------- */
.h4-final { margin-top: 44px; padding: 40px 20px 36px; background: linear-gradient(180deg, #FCF6F1 0%, #FBE3CF 100%); }
.h4-final .h4-h2 { font-size: 34px; letter-spacing: -1.1px; }
.h4-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 34px; font: 500 12px/1 var(--h4-font); color: var(--h4-muted); }
.h4 a.h4-logo-s { gap: 6px; font-size: 14px; letter-spacing: 0; }
.h4-logo-s img { width: 18px; height: 18px; border-radius: 5px; }
.h4-foot nav { display: flex; gap: 14px; }
.h4-foot nav a { color: var(--h4-muted); text-decoration: none; }
.h4-foot nav a:hover { color: var(--h4-ink); }

@media (max-width: 359px) {
  .h4-h1 { font-size: 36px; }
  .h4-free { flex-wrap: wrap; }
}

/* ---------- FAQ (BL-021, SEO): plain <details>, one open at a time is not enforced ---------- */
.h4-faq { padding: 44px 20px 0; }
.h4-faq .h4-h2 { margin-top: 14px; font-size: 30px; letter-spacing: -.9px; }
.h4-faq-list { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.h4-faq details { border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(60, 30, 10, .08); padding: 0 18px; }
.h4-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; font: 700 16px/1.3 var(--h4-font); }
.h4-faq summary::-webkit-details-marker { display: none; }
.h4-faq summary::after { content: '+'; flex: none; font: 600 22px/1 var(--h4-font); color: var(--h4-violet); }
.h4-faq details[open] summary::after { content: '–'; }
.h4-faq details p { margin: 0 0 16px !important; font: 500 15px/1.45 var(--h4-font); color: var(--h4-text); }
