/* Deal It Health landing page. Brand palette = the app's (lib/core/theme/app_theme.dart),
   the same tokens as the main landing page. */
:root {
  --navy: #0D1235; --navy-deep: #0A0E27; --navy-up: #1A2456; --line: #2A3570;
  --gold: #C9A84C; --gold-l: #FAC775; --gold-d: #A07828; --cream: #F7F3EA;
  --surface: #F4F5F9; --white: #FFFFFF; --text-2: #5A6070; --text-3: #6B7392; --border: #E0E4F0;
  --on-navy: #C5CAE0;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--navy); font: 400 16px/1.6 Inter, system-ui, sans-serif; overflow-x: hidden; }
html[lang=ar] body { font-family: 'IBM Plex Sans Arabic', Inter, system-ui, sans-serif; }
html[lang=ar] .en, html:not([lang=ar]) .ar { display: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }

/* Navy band: header + hero, like the app's navy headers */
.band { background: radial-gradient(120% 90% at 75% 0%, var(--navy-up) 0%, var(--navy) 45%, var(--navy-deep) 100%); color: #fff; }
.top { display: flex; align-items: center; gap: 20px; padding-block: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo .mark { position: relative; flex: none; width: 30px; height: 36px; }
.logo .mark .icon { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.logo .word { font: 700 22px 'Playfair Display', serif; color: #fff; }
.logo .word span { color: var(--gold); }
.links { display: flex; gap: 18px; margin-inline-start: auto; font-size: 14px; color: var(--on-navy); }
.links a { text-decoration: none; }
.links a:hover { color: var(--gold-l); }
.pill { display: inline-block; font-size: 12px; line-height: 1.4; padding: 3px 10px; border-radius: 99px; }
.pill-gold { color: var(--gold-l); background: #C9A84C1F; border: 1px solid #C9A84C66; }
.pill-lang { font: inherit; font-size: 13px; color: var(--gold-l); background: none; border: 1px solid #C9A84C66; border-radius: 99px; padding: 5px 14px; cursor: pointer; }

.hero { padding-block: 32px 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(30px, 5vw, 50px); line-height: 1.15; font-weight: 600; margin: 16px 0 12px; color: #fff; overflow-wrap: anywhere; }
.hero h1 em { font-style: normal; color: var(--gold-l); }
.hero .sub { font-size: 17px; color: var(--on-navy); max-width: 34em; margin-bottom: 22px; }
.badges { display: flex; flex-wrap: wrap; gap: 16px 10px; padding-top: 10px; }
.badge { position: relative; display: inline-flex; align-items: center; gap: 10px; min-width: 168px; padding: 9px 16px; border-radius: 12px; background: var(--navy-deep); border: 1px solid #ffffff33; color: #fff; text-decoration: none; }
.badge svg { width: 22px; height: 22px; flex: none; }
.badge .t { display: flex; flex-direction: column; line-height: 1.15; }
.badge small { font-size: 10px; letter-spacing: .04em; opacity: .85; }
.badge b { font-size: 16px; font-weight: 600; }
.badge .soon-k { position: absolute; inset-inline-end: -6px; top: -14px; font-size: 10px; padding: 2px 8px; border-radius: 99px; background: var(--gold); color: var(--navy-deep); font-weight: 600; }
.badge:not(.soon) .soon-k { display: none; }
.badge.soon { cursor: default; }

/* Light sections */
.block { padding-block: 48px 8px; }
.block h2 { font-size: 24px; font-weight: 600; margin-bottom: 16px; color: var(--navy); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.card .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: var(--gold-l); }
.card .ic svg { width: 24px; height: 24px; display: block; }
.card h3 { font-size: 16px; font-weight: 600; margin: 12px 0 4px; }
.card p { font-size: 14px; color: var(--text-2); }
.card-gold { border-color: var(--gold); }
.card-gold .ic { background: var(--gold); color: var(--navy); }
.card-soon { border: 1px dashed #C0C8D8; background: #EEF0F5; }
.card-soon .ic { background: #D8DCE8; color: var(--text-3); }
.card-soon p { color: var(--gold-d); font-weight: 600; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.steps li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text-2); }
.steps .n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--gold-l); font-size: 13px; font-weight: 600; display: grid; place-items: center; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 48px; padding-block: 18px 28px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.foot nav { display: flex; gap: 16px; }

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .links { display: none; }
  .pill-lang { margin-inline-start: auto; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) { .cards { grid-template-columns: minmax(0, 1fr); } .hero { padding-block: 24px 40px; } }

/* Logo intro: the main page's timings minus the 1.5 s cart (spec section 7). */
/* Starting states apply only while scripts run and the intro is not marked done, so
   without JS, or with reduced motion (.done) in either language, the logo shows whole. */
.icon .lg-draw { stroke-dasharray: 1; }
.js .logo:not(.done) .icon .lg-draw { stroke-dashoffset: 1; }
.js .logo:not(.done) .icon .lg-fill, .js .logo:not(.done) .icon .lg-dot { opacity: 0; }
.icon .lg-dot { transform-box: fill-box; transform-origin: center; }
html.js:not([dir=rtl]) .logo:not(.done) .word { clip-path: inset(0 100% 0 0); }
html.js[dir=rtl] .logo:not(.done) .word { clip-path: inset(0 0 0 100%); }
.logo.go .icon .lg-bag { animation: draw .8s cubic-bezier(.6,0,.3,1) .1s forwards; }
.logo.go .icon .lg-arc { animation: draw .5s cubic-bezier(.6,0,.3,1) .45s forwards; }
.logo.go .icon .lg-line { animation: draw .3s ease .55s forwards; }
.logo.go .icon .lg-base { animation: fadein .4s ease .6s forwards; }
.logo.go .icon .lg-dot { animation: pop .45s cubic-bezier(.2,1.6,.4,1) .75s forwards; }
.logo.go .icon .lg-ink { animation: draw .55s cubic-bezier(.6,0,.3,1) .8s forwards; }
.logo.go .icon .lg-stem { animation: fadein .35s ease 1.15s forwards; }
.logo.go .word { animation: wipe .7s cubic-bezier(.2,.8,.2,1) 1.25s forwards; }
.logo.go.rechk .icon .lg-ink { animation: redraw .6s cubic-bezier(.6,0,.3,1) both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes redraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@keyframes pop { 0% { opacity: 1; transform: scale(0); } 100% { opacity: 1; transform: scale(1); } }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
