/* =========================================================================
   LiverCured — marketing site
   A specialty clinic of InstaCured. Design language borrowed from InstaCured
   (Apple-like: pill buttons, glass surfaces, generous whitespace, Poppins +
   Inter) rendered in LiverCured's forest-green / teal brand to match the app.
   ========================================================================= */

/* ------------------------------- Tokens -------------------------------- */
:root {
  /* Brand — matched to the patient app (#34726B) + logo teal (#149EA3) */
  --green-950: #07211d;
  --green-900: #0c2f29;
  --green-800: #143f38;
  --green-700: #1d5249;
  --green-600: #266155;
  --green-500: #34726b;   /* app primary */
  --green-400: #469186;
  --teal-500:  #149ea3;   /* logo / bright accent */
  --teal-400:  #1fb6bb;
  --teal-300:  #5eafb0;
  --mint-100:  #e8f4f1;
  --mint-50:   #f3faf8;

  /* Neutrals (Apple grays, from InstaCured) */
  --ink:        #10201d;
  --text-1:     #1d1d1f;
  --text-2:     #515f5c;   /* ~7:1 on white (WCAG AAA) */
  --text-3:     #5f6e6a;   /* ~4.7:1 on white (WCAG AA) */
  --surface:    #ffffff;
  --surface-2:  #f4f7f6;
  --surface-3:  #e9efed;
  --border:     #dde5e2;
  --border-soft:#e9efec;

  /* Glass */
  --glass:        rgba(255,255,255,0.72);
  --glass-border: rgba(8,40,34,0.08);
  --glass-dark:   rgba(10,32,28,0.55);

  /* Type */
  --font-display: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Geometry */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 36px;
  --r-pill: 100px;

  --shadow-sm: 0 1px 2px rgba(16,32,29,.06), 0 4px 14px rgba(16,32,29,.06);
  --shadow-md: 0 8px 30px rgba(16,32,29,.10);
  --shadow-lg: 0 30px 80px rgba(7,33,29,.30);
  --shadow-phone: 0 50px 120px -20px rgba(7,33,29,.55), 0 18px 50px rgba(7,33,29,.22);

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
}

/* ------------------------------- Reset --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
body {
  font-family: var(--font-body);
  color: var(--text-1);
  background: var(--surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--teal-300); color: var(--green-950); }

/* ----------------------------- Typography ------------------------------ */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; color: var(--text-1); }
.display { font-size: clamp(2.7rem, 7vw, 5.3rem); font-weight: 600; letter-spacing: -0.035em; line-height: 0.98; }
h2.section-title { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -0.03em; }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green-500);
}
.lede { font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--text-2); font-weight: 400; line-height: 1.5; }
.muted { color: var(--text-2); }

/* ----------------------------- Layout ---------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { position: relative; }
.section-pad { padding-block: clamp(72px, 11vw, 160px); }
.center { text-align: center; }
.stack-sm > * + * { margin-top: 0.6rem; }
.stack > * + * { margin-top: 1.1rem; }

/* ----------------------------- Buttons --------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.92em 1.7em; border-radius: var(--r-pill);
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem; letter-spacing: 0.01em;
  border: 1px solid transparent; white-space: nowrap; cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, color .25s, border-color .25s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--green-500); color: #fff; box-shadow: 0 8px 22px rgba(38,97,85,.32); }
.btn--primary:hover { background: var(--green-600); box-shadow: 0 12px 30px rgba(38,97,85,.42); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--green-700); border-color: var(--border); }
.btn--light:hover { border-color: var(--green-400); color: var(--green-600); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--ghost { background: transparent; color: var(--text-1); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--green-400); color: var(--green-600); }
.btn--ondark { background: rgba(255,255,255,0.10); color: #fff; border-color: rgba(255,255,255,0.22); backdrop-filter: blur(6px); }
.btn--ondark:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--green-700); }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.25); }
.btn--lg { padding: 1.05em 2.1em; font-size: 1.05rem; }
.btn svg { width: 1.1em; height: 1.1em; }

/* ------------------------------- Nav ----------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s, box-shadow .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--glass-border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.6em; }
.brand__mark { width: 34px; height: auto; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; letter-spacing: -0.02em; color: var(--text-1); }
.brand__name b { color: var(--green-500); font-weight: 600; }
.nav.is-light .brand__name { color: #fff; }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a {
  padding: 0.5em 0.9em; border-radius: var(--r-pill);
  font-size: 0.92rem; font-weight: 500; color: var(--text-2);
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--green-600); background: rgba(52,114,107,.07); }
.nav.is-light .nav__links a { color: rgba(255,255,255,.82); }
.nav.is-light .nav__links a:hover { color: #fff; background: rgba(255,255,255,.12); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__burger { display: none; width: 42px; height: 42px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--glass); align-items: center; justify-content: center; }
.nav__burger span { display: block; width: 18px; height: 2px; background: var(--text-1); position: relative; }
.nav__burger span::before, .nav__burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text-1); }
.nav__burger span::before { top: -6px; } .nav__burger span::after { top: 6px; }

@media (max-width: 900px) {
  .nav__links, .nav__cta .btn--text-hide { display: none; }
  .nav__burger { display: flex; }
}

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 110; background: var(--green-950); display: none; flex-direction: column; padding: 24px var(--gutter); }
.drawer.is-open { display: flex; animation: fade .25s ease; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.drawer__close { font-size: 1.8rem; color: #fff; background: none; border: none; line-height: 1; }
.drawer__links { display: flex; flex-direction: column; gap: 4px; margin-top: 12vh; }
.drawer__links a { color: #fff; font-family: var(--font-display); font-size: 2rem; font-weight: 600; padding: 0.3em 0; letter-spacing: -0.02em; }
.drawer__links a:active { color: var(--teal-400); }
.drawer .btn { margin-top: 28px; }

/* ------------------------------- Hero ---------------------------------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background: radial-gradient(120% 120% at 80% -10%, var(--green-700) 0%, var(--green-900) 45%, var(--green-950) 100%);
  color: #fff; overflow: hidden; padding-top: 100px;
}
.hero__mesh { position: absolute; inset: 0; pointer-events: none; }
.hero__mesh::before, .hero__mesh::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55;
}
.hero__mesh::before { width: 50vw; height: 50vw; left: -10vw; top: 10vh; background: radial-gradient(circle, var(--teal-500), transparent 65%); animation: float1 16s ease-in-out infinite; }
.hero__mesh::after { width: 42vw; height: 42vw; right: -6vw; bottom: -10vh; background: radial-gradient(circle, var(--green-400), transparent 60%); opacity: .4; animation: float2 20s ease-in-out infinite; }
.hero__grain { position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; width: 100%; }
.hero__copy { max-width: 620px; }
.hero .eyebrow { color: var(--teal-300); }
.hero__chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); backdrop-filter: blur(8px);
  font-size: 0.82rem; font-weight: 500; color: rgba(255,255,255,.92); margin-bottom: 26px;
}
.hero__chip b { background: var(--teal-400); color: var(--green-950); font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill); font-size: .72rem; letter-spacing: .03em; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 .grad { background: linear-gradient(105deg, #fff 10%, var(--teal-300) 55%, var(--teal-400) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { font-size: clamp(1.08rem, 1.7vw, 1.32rem); color: rgba(255,255,255,.82); max-width: 540px; line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__note { margin-top: 20px; font-size: .85rem; color: rgba(255,255,255,.68); }

/* Hero device */
.hero__device { position: relative; justify-self: center; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,.55); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.scroll-cue__mouse { width: 22px; height: 36px; border: 1.5px solid rgba(255,255,255,.45); border-radius: 12px; position: relative; }
.scroll-cue__mouse::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; border-radius: 3px; background: rgba(255,255,255,.7); transform: translateX(-50%); animation: scrollDot 1.8s infinite; }

/* Phone frame — shows full app screenshots at their natural ratio, never cropped */
.phone {
  position: relative; width: clamp(240px, 26vw, 320px);
  border-radius: 42px; padding: 10px; background: linear-gradient(160deg, #21332f, #060f0c);
  box-shadow: var(--shadow-phone);
}
.phone__screen { width: 100%; border-radius: 32px; overflow: hidden; background: #f4f7f6; line-height: 0; }
.phone__screen img { width: 100%; height: auto; display: block; }
.phone--float { animation: floatPhone 7s ease-in-out infinite; }

/* ----------------------------- Trust strip ----------------------------- */
.trust { background: var(--surface); border-bottom: 1px solid var(--border-soft); padding-block: 40px; }
.trust__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 30px; }
.trust__chip { display: inline-flex; align-items: center; gap: 9px; color: var(--text-2); font-size: .92rem; font-weight: 500; }
.trust__chip svg { width: 18px; height: 18px; color: var(--green-500); flex: none; }
.trust__divider { width: 1px; height: 18px; background: var(--border); }

/* ------------------------- Section header helper ----------------------- */
.sec-head { max-width: 760px; margin-inline: auto; }
.sec-head.left { margin-inline: 0; }
.sec-head .eyebrow { display: block; margin-bottom: 14px; }
.sec-head p.lede { margin-top: 18px; }

/* ------------------------- Fatty liver (dark) -------------------------- */
.fatty { background: linear-gradient(180deg, var(--green-950), var(--green-900) 60%, var(--green-800)); color: #fff; overflow: hidden; }
.fatty .eyebrow { color: var(--teal-300); }
.fatty h2 { color: #fff; }
.fatty .lede { color: rgba(255,255,255,.78); }
.fatty__hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.bigstat { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.04em; line-height: 0.9; }
.bigstat__num { font-size: clamp(5rem, 16vw, 11rem); background: linear-gradient(120deg, #fff, var(--teal-300)); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; }
.bigstat__label { font-family: var(--font-body); font-weight: 500; font-size: 1.15rem; color: rgba(255,255,255,.8); margin-top: 10px; max-width: 360px; line-height: 1.4; }
.factgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 70px; }
.fact {
  padding: 26px; border-radius: var(--r-lg); background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.09); backdrop-filter: blur(4px);
}
.fact__k { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; color: var(--teal-400); letter-spacing: -0.02em; }
.fact__t { margin-top: 6px; color: rgba(255,255,255,.78); font-size: .98rem; line-height: 1.45; }
.fatty__note { margin-top: 30px; font-size: .82rem; color: rgba(255,255,255,.66); max-width: 760px; }

/* ----------------------------- App showcase ---------------------------- */
.app { background: var(--surface-2); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.feature:nth-child(even) .feature__media { order: 2; }
.feature__copy { max-width: 480px; }
.feature__icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--mint-100); color: var(--green-500); margin-bottom: 22px; }
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 14px; }
.feature p { color: var(--text-2); font-size: 1.08rem; }
.feature__list { list-style: none; padding: 0; margin-top: 22px; display: grid; gap: 12px; }
.feature__list li { display: flex; gap: 11px; align-items: flex-start; color: var(--text-1); font-size: 1rem; }
.feature__list svg { width: 20px; height: 20px; color: var(--green-500); flex: none; margin-top: 2px; }
.feature__media { display: flex; justify-content: center; position: relative; }
.feature__media .phone { width: clamp(250px, 30vw, 340px); }
.feature__media::after { content: ""; position: absolute; inset: 10% 5%; border-radius: 50%; background: radial-gradient(circle, rgba(20,158,163,.18), transparent 70%); filter: blur(40px); z-index: -1; }

/* ------------------------------ How it works --------------------------- */
.how { background: var(--surface); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 60px; }
.step { padding: 34px 30px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--border-soft); position: relative; transition: transform .3s, box-shadow .3s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step__n { font-family: var(--font-display); font-weight: 600; font-size: 1rem; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--green-500); color: #fff; margin-bottom: 22px; }
.step h3 { font-size: 1.35rem; margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: 1rem; }
.steps__line { display: none; }

/* ------------------------------- Doctors ------------------------------- */
.doctors { background: linear-gradient(180deg, var(--mint-50), var(--surface)); }
.docgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 58px; }
.doc {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-xl);
  padding: 38px; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s;
}
.doc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.doc__head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.doc__avatar { width: 76px; height: 76px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: #fff; background: linear-gradient(150deg, var(--green-500), var(--teal-500)); box-shadow: 0 8px 20px rgba(20,158,163,.3); }
.doc__name { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.02em; }
.doc__role { color: var(--green-500); font-weight: 600; font-size: .92rem; margin-top: 3px; }
.doc__bio { color: var(--text-2); font-size: 1rem; }
.doc__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.doc__tags span { font-size: .8rem; font-weight: 500; color: var(--green-700); background: var(--mint-100); padding: 5px 12px; border-radius: var(--r-pill); }

/* --------------------------- Booking CTA (dark) ------------------------ */
.cta-book { background: radial-gradient(110% 130% at 50% 0%, var(--green-700), var(--green-950) 70%); color: #fff; text-align: center; overflow: hidden; }
.cta-book::before { content: ""; position: absolute; width: 60vw; height: 60vw; left: 50%; top: -30%; transform: translateX(-50%); background: radial-gradient(circle, rgba(20,158,163,.35), transparent 60%); filter: blur(70px); pointer-events: none; }
.cta-book .container { position: relative; z-index: 1; }
.cta-book h2 { color: #fff; }
.cta-book p { color: rgba(255,255,255,.8); max-width: 600px; margin: 18px auto 0; font-size: 1.15rem; }
.cta-book__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 38px; }
.cta-book__meta { margin-top: 26px; font-size: .85rem; color: rgba(255,255,255,.68); }

/* ------------------------------- LiverMD ------------------------------- */
.livermd { background: var(--surface); }
.livermd__card { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,70px); align-items: center; background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: var(--r-xl); padding: clamp(34px, 5vw, 64px); overflow: hidden; }
.livermd__copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.livermd__badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .85rem; color: var(--teal-500); margin-bottom: 16px; }
.livermd__badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-400); box-shadow: 0 0 0 4px rgba(31,182,187,.2); }
.livermd__bubbles { display: flex; flex-direction: column; gap: 12px; }
.bubble { padding: 14px 18px; border-radius: 20px; max-width: 86%; font-size: .98rem; line-height: 1.45; box-shadow: var(--shadow-sm); }
.bubble--user { align-self: flex-end; background: var(--green-500); color: #fff; border-bottom-right-radius: 6px; }
.bubble--bot { align-self: flex-start; background: #fff; color: var(--text-1); border: 1px solid var(--border-soft); border-bottom-left-radius: 6px; }

/* ------------------------------- Footer -------------------------------- */
.footer { background: var(--green-950); color: rgba(255,255,255,.7); padding-block: 70px 40px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand .brand__name { color: #fff; }
.footer__tag { margin-top: 16px; font-size: .95rem; color: rgba(255,255,255,.6); max-width: 300px; }
.footer h4 { font-family: var(--font-body); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 16px; }
.footer__links { list-style: none; padding: 0; display: grid; gap: 11px; }
.footer__links a { color: rgba(255,255,255,.72); font-size: .95rem; transition: color .2s; }
.footer__links a:hover { color: var(--teal-300); }
.footer__bottom { margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-start; }
.footer__legal { font-size: .8rem; color: rgba(255,255,255,.66); max-width: 720px; line-height: 1.6; }
.footer__copy { font-size: .82rem; color: rgba(255,255,255,.66); }
.footer__disclaimer { margin-top: 18px; font-size: .76rem; color: rgba(255,255,255,.55); line-height: 1.6; }

/* ----------------------------- Legal pages ----------------------------- */
.legal { padding-top: 130px; }
.legal__wrap { max-width: 820px; margin-inline: auto; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 10px; }
.legal__meta { color: var(--text-3); font-size: .9rem; margin-bottom: 36px; }
.legal__intro { font-size: 1.1rem; color: var(--text-2); padding: 22px 26px; background: var(--mint-50); border: 1px solid var(--border-soft); border-left: 4px solid var(--green-500); border-radius: var(--r-md); margin-bottom: 40px; }
.legal h2 { font-size: 1.45rem; margin-top: 46px; margin-bottom: 12px; scroll-margin-top: 90px; }
.legal h3 { font-size: 1.1rem; margin-top: 26px; margin-bottom: 8px; }
.legal p, .legal li { color: var(--text-2); font-size: 1rem; line-height: 1.7; }
.legal p { margin-top: 12px; }
.legal ul, .legal ol { margin-top: 12px; padding-left: 22px; }
.legal li { margin-top: 7px; }
.legal strong { color: var(--text-1); }
.legal .callout { padding: 20px 24px; background: var(--mint-100); border-radius: var(--r-md); margin-top: 20px; color: var(--green-800); }
.legal__toc { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: var(--r-md); padding: 22px 26px; margin-bottom: 40px; }
.legal__toc h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.legal__toc ol { columns: 2; gap: 30px; font-size: .92rem; padding-left: 18px; }
.legal__toc a { color: var(--green-600); }
.legal__toc a:hover { text-decoration: underline; }

/* ------------------------- Scroll reveal anim -------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ------------------------------ Keyframes ------------------------------ */
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(4vw,3vh) scale(1.1); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-3vw,-2vh) scale(1.08); } }
@keyframes floatPhone { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(-.6deg); } }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80%,100% { opacity: 0; transform: translate(-50%, 10px); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ------------------------------ Responsive ----------------------------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; gap: 50px; }
  .hero__copy { max-width: 100%; margin-inline: auto; }
  .hero__sub { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__chip { margin-inline: auto; }
  .fatty__hero { grid-template-columns: 1fr; gap: 40px; }
  .bigstat__label { margin-inline: auto; }
  .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature:nth-child(even) .feature__media { order: 0; }
  .feature__copy { max-width: 100%; text-align: center; }
  .feature__icon { margin-inline: auto; }
  .feature__list { text-align: left; max-width: 380px; margin-inline: auto; }
  .steps { grid-template-columns: 1fr; }
  .docgrid { grid-template-columns: 1fr; }
  .livermd__card { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .factgrid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .legal__toc ol { columns: 1; }
  .hero__actions .btn { width: 100%; }
}

/* =========================================================================
   Motion layer — per-section entrance animations
   ========================================================================= */

/* Hero: staggered load-in (base state is visible; `backwards` shows the
   from-state before start, so reduced-motion users still see content). */
.hero__chip,
.hero h1,
.hero__sub,
.hero__actions,
.hero__note,
.hero__device { animation: heroIn 1s cubic-bezier(.2,.7,.2,1) backwards; }
.hero__chip   { animation-delay: .05s; }
.hero h1      { animation-delay: .15s; }
.hero__sub    { animation-delay: .30s; }
.hero__actions{ animation-delay: .42s; }
.hero__note   { animation-delay: .54s; }
.hero__device { animation: heroDeviceIn 1.3s cubic-bezier(.2,.7,.2,1) .25s backwards; }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes heroDeviceIn { from { opacity: 0; transform: translateY(40px) scale(.92); } to { opacity: 1; transform: none; } }

/* Reveal direction variants (override the base .reveal transform) */
.reveal--scale { transform: translateY(30px) scale(.93); }
.reveal--scale.in { transform: none; }
.reveal--left  { transform: translateX(-46px); }
.reveal--left.in { transform: none; }
.reveal--right { transform: translateX(46px); }
.reveal--right.in { transform: none; }
.reveal--blur  { filter: blur(12px); }
.reveal--blur.in { filter: blur(0); }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* Fatty-liver: the big stat number sweeps a shine when it reveals */
.bigstat__num { background-size: 220% auto; }
.reveal.in .bigstat__num { animation: statShine 2.6s ease .35s 1 both; }
@keyframes statShine { 0% { background-position: 140% center; } 100% { background-position: 0 center; } }

/* App showcase: phones get a gentle hover tilt (hero phone keeps floating) */
.feature__media .phone { transition: transform .55s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.feature__media .phone:hover { transform: translateY(-8px) rotate(-.6deg) scale(1.015); }

/* How it works: number badge pops when the step reveals */
.step.reveal.in .step__n { animation: badgePop .6s cubic-bezier(.2,1.3,.4,1) .1s backwards; }
@keyframes badgePop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* Booking CTA: the glow breathes */
.cta-book::before { animation: ctaGlow 7s ease-in-out infinite; }
@keyframes ctaGlow {
  0%, 100% { opacity: .55; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.18); }
}

/* LiverMD: chat bubbles pop in sequence after the card reveals */
.livermd__bubbles.in .bubble { animation: bubbleIn .55s cubic-bezier(.2,.8,.2,1) backwards; }
.livermd__bubbles.in .bubble:nth-child(1) { animation-delay: .15s; }
.livermd__bubbles.in .bubble:nth-child(2) { animation-delay: .70s; }
.livermd__bubbles.in .bubble:nth-child(3) { animation-delay: 1.4s; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(16px) scale(.95); } to { opacity: 1; transform: none; } }

/* Trust strip: chips fade up in sequence */
.trust__chip { animation: trustIn .7s ease backwards; }
.trust__row > *:nth-child(1) { animation-delay: .05s; }
.trust__row > *:nth-child(3) { animation-delay: .12s; }
.trust__row > *:nth-child(5) { animation-delay: .19s; }
.trust__row > *:nth-child(7) { animation-delay: .26s; }
@keyframes trustIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* =========================================================================
   Accessibility — skip link, focus rings, and the WCAG toolbar
   ========================================================================= */
.skip-link {
  position: fixed; top: -64px; left: 12px; z-index: 2147483600;
  background: var(--green-700); color: #fff; padding: 11px 18px; border-radius: 12px;
  font-weight: 600; font-size: .95rem; box-shadow: var(--shadow-md); transition: top .2s ease;
}
.skip-link:focus { top: 12px; outline: 3px solid var(--teal-400); outline-offset: 2px; }

:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 2px; border-radius: 6px; }
.hero :focus-visible, .fatty :focus-visible, .cta-book :focus-visible, .footer :focus-visible,
.nav.is-light :focus-visible { outline-color: #fff; }

/* Accessibility launcher: small, persistent, sits just above the chat button */
.a11y-fab {
  position: fixed; right: 26px; bottom: 88px; z-index: 2147482900;
  width: 48px; height: 48px; border-radius: 50%; background: #fff;
  border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(7,33,29,.22);
  display: grid; place-items: center; color: var(--green-600); cursor: pointer;
  transition: transform .25s, box-shadow .25s, opacity .2s;
}
.a11y-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(7,33,29,.3); color: var(--teal-500); }
.a11y-fab svg { width: 26px; height: 26px; }
.a11y-fab.is-hidden { opacity: 0; pointer-events: none; transform: scale(.6); }

.a11y-panel {
  position: fixed; right: 26px; bottom: 88px; z-index: 2147482901;
  width: min(320px, calc(100vw - 36px)); max-height: min(74vh, 560px); overflow-y: auto;
  background: #fff; border-radius: 22px; box-shadow: 0 30px 80px rgba(7,33,29,.4);
  border: 1px solid var(--border-soft); display: none; font-family: var(--font-body);
  transform-origin: bottom right; animation: lmdpop .28s cubic-bezier(.2,.8,.2,1);
}
.a11y-panel.is-open { display: block; }
.a11y-panel__head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--border-soft); }
.a11y-panel__head svg { width: 22px; height: 22px; color: var(--green-600); flex: none; }
.a11y-panel__head b { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; flex: 1; }
.a11y-panel__x { background: var(--surface-2); border: none; width: 30px; height: 30px; border-radius: 50%; font-size: 1.2rem; line-height: 1; color: var(--text-2); cursor: pointer; }
.a11y-panel__x:hover { background: var(--surface-3); }
.a11y-panel__body { padding: 12px; }
.a11y-row { padding: 8px; }
.a11y-row__label { font-size: .82rem; font-weight: 600; color: var(--text-2); margin-bottom: 8px; letter-spacing: .01em; }
.a11y-text-ctrl { display: flex; align-items: center; gap: 8px; }
.a11y-text-ctrl button { flex: 1; padding: 9px 0; border: 1px solid var(--border); background: var(--surface-2); border-radius: 12px; font-weight: 600; color: var(--green-700); cursor: pointer; transition: background .2s, border-color .2s; }
.a11y-text-ctrl button:hover { background: var(--mint-100); border-color: var(--green-400); }
.a11y-text-ctrl span { min-width: 46px; text-align: center; font-size: .82rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.a11y-toggle {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-top: 6px;
  border: 1px solid var(--border-soft); background: var(--surface); border-radius: 14px; cursor: pointer;
  font-size: .92rem; font-weight: 500; color: var(--text-1); text-align: left; transition: background .2s, border-color .2s;
}
.a11y-toggle:hover { background: var(--surface-2); }
.a11y-toggle__ic { width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--mint-100); color: var(--green-600); display: grid; place-items: center; }
.a11y-toggle__ic svg { width: 19px; height: 19px; }
.a11y-toggle__txt { flex: 1; }
.a11y-toggle__sw { width: 40px; height: 24px; border-radius: 100px; background: var(--surface-3); position: relative; flex: none; transition: background .25s; }
.a11y-toggle__sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s; }
.a11y-toggle[aria-pressed="true"] { border-color: var(--green-400); background: var(--mint-50); }
.a11y-toggle[aria-pressed="true"] .a11y-toggle__sw { background: var(--green-500); }
.a11y-toggle[aria-pressed="true"] .a11y-toggle__sw::after { transform: translateX(16px); }
.a11y-reset { width: 100%; margin-top: 10px; padding: 11px; border: none; background: var(--surface-2); color: var(--text-2); font-weight: 600; border-radius: 12px; cursor: pointer; }
.a11y-reset:hover { background: var(--surface-3); color: var(--text-1); }
.a11y-panel__foot { padding: 4px 18px 16px; font-size: .72rem; color: var(--text-3); text-align: center; }
.a11y-panel__foot a { color: var(--green-600); text-decoration: underline; }

/* --- user-activated accessibility modes (set on <html>) --- */
html.a11y-contrast { --text-2: #20302c; --text-3: #20302c; --border: #9aaca7; }
html.a11y-contrast .hero__sub, html.a11y-contrast .fatty .lede, html.a11y-contrast .fatty__note,
html.a11y-contrast .footer__legal, html.a11y-contrast .footer__copy, html.a11y-contrast .footer__disclaimer,
html.a11y-contrast .cta-book p, html.a11y-contrast .hero__note, html.a11y-contrast .cta-book__meta { color: #fff !important; }
html.a11y-contrast a:not(.btn) { text-decoration: underline; }
html.a11y-contrast .btn--light, html.a11y-contrast .btn--ghost { border-color: var(--green-600); }

html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; }

html.a11y-font, html.a11y-font body { font-family: Verdana, Tahoma, "Segoe UI", sans-serif !important; letter-spacing: .015em; }
html.a11y-font h1, html.a11y-font h2, html.a11y-font h3, html.a11y-font h4,
html.a11y-font .brand__name, html.a11y-font .display { font-family: Verdana, Tahoma, sans-serif !important; }
html.a11y-font p, html.a11y-font li { line-height: 1.85 !important; }

html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}

/* =========================================================================
   Legal pages — refined, two-column reading layout
   ========================================================================= */
.legal { padding-top: 0; }
.legal-hero {
  background: radial-gradient(120% 140% at 80% -20%, var(--green-700), var(--green-900) 55%, var(--green-950));
  color: #fff; padding: 132px 0 64px; position: relative; overflow: hidden;
}
.legal-hero::after { content: ""; position: absolute; right: -8vw; top: -10vh; width: 40vw; height: 40vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(20,158,163,.4), transparent 65%); filter: blur(80px); pointer-events: none; }
.legal-hero .container { position: relative; z-index: 1; }
.legal-hero__back { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.75); font-size: .9rem; font-weight: 500; margin-bottom: 22px; }
.legal-hero__back:hover { color: #fff; }
.legal-hero .eyebrow { color: var(--teal-300); display: block; margin-bottom: 12px; }
.legal-hero h1 { color: #fff; font-size: clamp(2.4rem, 5.5vw, 3.6rem); margin: 0; }
.legal-hero__meta { color: rgba(255,255,255,.7); font-size: .95rem; margin-top: 14px; }

.legal__layout { display: grid; grid-template-columns: 248px 1fr; gap: 52px; padding-block: 52px 96px; align-items: start; }
.legal__side { position: sticky; top: 88px; }
.legal__toc { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: var(--r-lg); padding: 22px; margin: 0; }
.legal__toc h4 { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.legal__toc ol { list-style: none; counter-reset: toc; padding: 0; margin: 0; columns: 1; font-size: .9rem; }
.legal__toc li { counter-increment: toc; margin: 0; }
.legal__toc a { display: flex; gap: 9px; padding: 6px 8px; border-radius: 9px; color: var(--text-2); line-height: 1.35; transition: background .15s, color .15s; }
.legal__toc a::before { content: counter(toc); font-variant-numeric: tabular-nums; color: var(--green-500); font-weight: 600; flex: none; min-width: 16px; }
.legal__toc a:hover { background: var(--mint-100); color: var(--green-700); }

.legal__wrap { max-width: 760px; margin: 0; }
.legal__intro { font-size: 1.12rem; color: var(--text-1); padding: 24px 28px; background: linear-gradient(180deg, var(--mint-50), var(--surface)); border: 1px solid var(--border-soft); border-left: 4px solid var(--green-500); border-radius: var(--r-md); margin: 0 0 8px; line-height: 1.65; }
.legal h2 { font-size: 1.5rem; margin-top: 52px; margin-bottom: 14px; scroll-margin-top: 96px; padding-top: 26px; border-top: 1px solid var(--border-soft); }
.legal__wrap > h2:first-of-type { border-top: none; padding-top: 0; }
.legal h3 { font-size: 1.12rem; margin-top: 28px; margin-bottom: 8px; color: var(--green-800); }
.legal p, .legal li { color: var(--text-2); font-size: 1.02rem; line-height: 1.75; }
.legal__wrap a { color: var(--green-600); text-decoration: underline; text-underline-offset: 2px; }
.legal .callout { padding: 20px 24px; background: var(--mint-100); border: 1px solid #cfe6df; border-radius: var(--r-md); margin-top: 20px; color: var(--green-800); font-weight: 500; }
.legal__updated { display: inline-block; margin-bottom: 10px; }

@media (max-width: 900px) {
  .legal__layout { grid-template-columns: 1fr; gap: 28px; }
  .legal__side { position: static; }
  .legal__toc ol { columns: 2; gap: 24px; }
}
@media (max-width: 560px) {
  .legal__toc ol { columns: 1; }
  .a11y-fab { right: 18px; bottom: 84px; }
  .a11y-panel { right: 10px; left: 10px; width: auto; bottom: 84px; }
}
