/* Longlyf website — "Charcoal & Gold" (docs/DESIGN_SYSTEM.md). No build step: plain CSS. */

@font-face { font-family: "DM Serif Display"; font-weight: 400; font-display: swap; src: url("fonts/dm-serif-display-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("fonts/poppins-latin-700-normal.woff2") format("woff2"); }

:root {
  --charcoal: #111214;
  --charcoal-2: #1b1c20;
  --charcoal-3: #24252b;
  --line-dark: #2e2f36;
  --cream: #f5f1e8;
  --paper: #f7f3ea;
  --white: #ffffff;
  --gold: #e8b04b;
  --gold-hover: #d59a2e;
  --gold-text: #8a6416;
  --gold-soft: #f6ead0;
  --text: #1a1a1a;
  --muted: #6b655b;
  --muted-dark: #a8a39a;
  --line: #e6dfd0;
  --success: #2f7a4e;
  --radius: 20px;
  --shadow: 0 18px 50px -18px rgba(40, 32, 20, 0.28);
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Poppins", "Segoe UI", Roboto, "Noto Sans Bengali", "Nirmala UI", system-ui, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--gold); color: var(--charcoal); font-weight: 600; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 14px;
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background .2s, border-color .2s, transform .2s, color .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--charcoal); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-ghost-dark { border-color: #4a4b52; color: var(--cream); }
.btn-ghost-dark:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { border-color: #d5ccb8; color: var(--text); background: var(--white); }
.btn-ghost:hover { border-color: var(--gold-text); color: var(--gold-text); }
.btn-dark { background: var(--charcoal); color: var(--cream); }
.btn-dark:hover { background: #2a2b31; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .25s, box-shadow .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(17, 18, 20, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line-dark); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: #d9d3c6; text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--gold); }
.nav-links a.btn-gold, .nav-links a.btn-gold:hover { color: var(--charcoal); }
.nav .btn { min-height: 44px; padding: 0 18px; font-size: 14px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid #3a3b42; background: transparent; color: var(--cream); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; margin: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--charcoal); color: var(--cream);
  padding: 150px 0 110px;
}
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); }
.hero::before { width: 620px; height: 620px; right: -160px; top: -200px; background: rgba(232, 176, 75, .22); }
.hero::after { width: 520px; height: 520px; left: -220px; bottom: -260px; background: rgba(232, 176, 75, .10); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(232, 176, 75, .35); background: rgba(232, 176, 75, .08); color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(232, 176, 75, .18); }
.hero h1 { margin-top: 22px; font-family: var(--serif); font-size: clamp(44px, 6.4vw, 82px); line-height: 1.02; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { margin-top: 22px; max-width: 540px; font-size: 18px; color: #cfc9bd; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-web { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 18px; color: #cfc9bd; font-size: 15px; }
.hero-web svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.hero-web a { color: var(--gold); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hero-web a:hover { color: var(--cream); }
.hero-notes { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; padding: 0; list-style: none; color: var(--muted-dark); font-size: 14px; }
.hero-notes li { display: inline-flex; align-items: center; gap: 8px; }
.hero-notes svg { width: 18px; height: 18px; color: var(--gold); }

/* Phone mock-up (pure CSS) */
.phone-stage { position: relative; display: grid; place-items: center; min-height: 560px; }
.phone {
  position: relative; width: 300px; height: 610px; border-radius: 46px; padding: 12px;
  background: linear-gradient(160deg, #2c2d33, #0b0c0e); box-shadow: 0 40px 90px -30px rgba(0,0,0,.8), inset 0 0 0 1px #3a3b42;
  transform: rotate(-3deg);
}
.screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: var(--paper); color: var(--text); }
.notch { position: absolute; top: 10px; left: 50%; width: 92px; height: 24px; transform: translateX(-50%); border-radius: 20px; background: #0b0c0e; z-index: 2; }
.app-top { padding: 46px 18px 16px; background: var(--charcoal); color: var(--cream); }
.app-top .hello { font-size: 12px; color: var(--muted-dark); }
.app-top .title { margin-top: 2px; font-family: var(--serif); font-size: 24px; line-height: 1.1; }
.app-search { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: #24252b; color: var(--muted-dark); font-size: 12px; }
.app-search svg { width: 15px; height: 15px; }
.app-body { padding: 16px 14px; }
.app-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.spec-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.spec { display: grid; justify-items: center; gap: 6px; padding: 10px 4px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); font-size: 10px; font-weight: 600; color: var(--text); }
.spec i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--gold-soft); color: var(--gold-text); font-style: normal; font-size: 15px; }
.token-card { margin-top: 16px; padding: 16px; border-radius: 20px; background: var(--charcoal); color: var(--cream); box-shadow: var(--shadow); }
.token-head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted-dark); }
.token-head .ok { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: rgba(143, 211, 168, .14); color: #8fd3a8; font-weight: 600; }
.token-num { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; }
.token-num b { font-family: var(--serif); font-weight: 400; font-size: 54px; line-height: 1; color: var(--gold); }
.token-num span { font-size: 12px; color: var(--muted-dark); }
.token-doc { margin-top: 10px; font-weight: 600; font-size: 14px; }
.token-meta { margin-top: 2px; font-size: 11px; color: var(--muted-dark); }
.token-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.token-actions span { padding: 9px 0; border-radius: 10px; text-align: center; font-size: 11px; font-weight: 600; }
.token-actions .a { background: var(--gold); color: var(--charcoal); }
.token-actions .b { border: 1px solid #3a3b42; color: var(--cream); }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px;
  background: var(--white); color: var(--text); box-shadow: 0 20px 40px -16px rgba(0,0,0,.55); font-size: 13px; line-height: 1.35;
  animation: float 6s ease-in-out infinite;
}
.float-card i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--gold-soft); color: var(--gold-text); font-style: normal; }
.float-card i svg { width: 18px; height: 18px; }
.float-card b { display: block; font-size: 14px; }
.float-card small { color: var(--muted); font-size: 12px; }
.float-a { left: -34px; top: 28px; }
.float-b { right: -24px; bottom: 18px; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */
section { scroll-margin-top: 80px; }
.section { padding: 110px 0; }
.section-head { max-width: 700px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.section-head h2 { margin-top: 12px; font-family: var(--serif); font-size: clamp(34px, 4.4vw, 54px); line-height: 1.08; }
.section-head p { margin-top: 16px; font-size: 17px; color: var(--muted); }

/* Strip */
.strip { background: var(--white); border-block: 1px solid var(--line); }
.strip ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 46px; margin: 0; padding: 26px 0; list-style: none; font-size: 15px; font-weight: 500; color: var(--muted); }
.strip li { display: inline-flex; align-items: center; gap: 10px; }
.strip svg { width: 20px; height: 20px; color: var(--gold-text); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; counter-reset: step; }
.step { position: relative; padding: 32px 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; right: 24px; top: 18px; font-family: var(--serif); font-size: 54px; line-height: 1; color: var(--gold-soft); }
.step .ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--charcoal); color: var(--gold); }
.step .ic svg { width: 26px; height: 26px; }
.step h3 { margin-top: 22px; font-size: 20px; font-weight: 600; }
.step p { margin-top: 8px; color: var(--muted); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.feature { padding: 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.feature .ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-text); }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { margin-top: 18px; font-size: 18px; font-weight: 600; }
.feature p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.feature.wide { grid-column: span 2; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; background: var(--charcoal); border-color: var(--charcoal); color: var(--cream); }
.feature.wide .ic { background: rgba(232, 176, 75, .14); color: var(--gold); }
.feature.wide h3 { margin-top: 0; }
.feature.wide p { color: var(--muted-dark); }
.feature.wide .bn { font-family: var(--sans); color: var(--gold); }

/* Clinics */
.clinics { position: relative; overflow: hidden; isolation: isolate; background: var(--charcoal); color: var(--cream); }
.clinics::before { content: ""; position: absolute; z-index: -1; width: 700px; height: 700px; right: -260px; top: -260px; border-radius: 50%; filter: blur(90px); background: rgba(232, 176, 75, .13); }
.clinics .section-head h2 { color: var(--cream); }
.clinics .section-head p { color: var(--muted-dark); }
.clinics .kicker { color: var(--gold); }
.clinic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.benefits { display: grid; gap: 14px; margin: 34px 0 0; padding: 0; list-style: none; }
.benefits li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 18px; border-radius: 16px; background: var(--charcoal-2); border: 1px solid var(--line-dark); }
.benefits .ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(232, 176, 75, .12); color: var(--gold); }
.benefits .ic svg { width: 20px; height: 20px; }
.benefits b { display: block; font-weight: 600; color: var(--cream); }
.benefits span { color: var(--muted-dark); font-size: 15px; }
.join-card { padding: 34px; border-radius: 26px; background: var(--paper); color: var(--text); box-shadow: 0 30px 80px -30px rgba(0,0,0,.7); }
.join-card h3 { font-family: var(--serif); font-size: 32px; line-height: 1.1; }
.join-card p { margin-top: 10px; color: var(--muted); }
.join-steps { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: j; }
.join-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.join-steps li::before { counter-increment: j; content: counter(j); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--charcoal); color: var(--gold); font-weight: 700; font-size: 14px; }
.join-actions { display: grid; gap: 10px; margin-top: 26px; }
.join-actions .btn { width: 100%; }
.join-need { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.join-need strong { color: var(--text); }
.join-steps a { color: var(--gold-text); font-weight: 600; }
.join-note { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; margin: 48px auto 0; }
.faq details { border-radius: 16px; background: var(--white); border: 1px solid var(--line); transition: border-color .2s; }
.faq details[open] { border-color: #e9cf96; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-text); font-size: 20px; font-weight: 500; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* CTA band */
.cta-band { padding: 0 0 110px; }
.cta-inner { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: 54px 56px; border-radius: 30px; background: linear-gradient(120deg, #f6ead0, #fbf4e4 55%, #ffffff); border: 1px solid #eed9a8; }
.cta-inner h2 { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; max-width: 560px; }
.cta-inner p { margin-top: 10px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--charcoal); color: var(--muted-dark); padding: 64px 0 34px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-grid img { height: 40px; width: auto; }
.foot-grid .tag { margin-top: 14px; max-width: 320px; }
.foot-grid h4 { margin: 0 0 14px; color: var(--cream); font-size: 15px; font-weight: 600; }
.foot-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--gold); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 13px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */
.legal-hero { background: var(--charcoal); color: var(--cream); padding: 140px 0 60px; }
.legal-hero h1 { font-family: var(--serif); font-size: clamp(38px, 5vw, 58px); line-height: 1.05; }
.legal-hero p { margin-top: 12px; color: var(--muted-dark); }
.legal { padding: 60px 0 100px; }
.legal article { max-width: 780px; margin-inline: auto; }
.legal h2 { margin: 40px 0 10px; font-family: var(--serif); font-size: 28px; line-height: 1.2; }
.legal h3 { margin: 22px 0 6px; font-size: 18px; font-weight: 600; }
.legal p, .legal li { color: #3a362f; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal .note { margin: 0 0 28px; padding: 16px 18px; border-radius: 14px; background: var(--gold-soft); border: 1px solid #eed9a8; color: var(--text); font-size: 15px; }
.legal a { color: var(--gold-text); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { padding: 130px 0 80px; }
  .hero-grid, .clinic-grid { grid-template-columns: 1fr; }
  .phone-stage { min-height: 0; padding-top: 10px; }
  .steps, .features { grid-template-columns: 1fr 1fr; }
  .feature.wide { grid-column: span 2; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: span 2; }
}
@media (max-width: 760px) {
  .nav-links { position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 22px; background: var(--charcoal); border-bottom: 1px solid var(--line-dark); transform: translateY(-140%); transition: transform .3s; }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--line-dark); font-size: 16px; }
  .nav-links .btn { margin-top: 14px; min-height: 50px; border-bottom: 0; }
  .menu-btn { display: grid; }
  .site-header { background: rgba(17, 18, 20, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .section { padding: 80px 0; }
  .steps, .features { grid-template-columns: 1fr; }
  .feature.wide { grid-column: auto; grid-template-columns: 1fr; }
  .phone { transform: none; width: 270px; height: 560px; }
  .float-card { display: none; }
  .cta-inner { padding: 36px 26px; }
  .join-card { padding: 26px 22px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-grid > :first-child { grid-column: auto; }
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Legal pages: contents sidebar + print */
.legal-grid { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.legal-grid article { max-width: 780px; margin: 0; }
.legal-toc { position: sticky; top: 100px; padding: 20px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); font-size: 14px; }
.legal-toc ol { margin: 10px 0 16px; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.legal-toc a { color: var(--muted); text-decoration: none; }
.legal-toc a:hover { color: var(--gold-text); }
.legal-toc .print-btn { width: 100%; min-height: 42px; font-size: 13px; }
.legal section h2 { scroll-margin-top: 96px; }
.legal-foot { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
@media (max-width: 980px) {
  .legal-grid { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}
@media print {
  .site-header, .site-footer, .legal-toc { display: none !important; }
  .legal-hero { padding: 0 0 12px; background: none; color: #000; }
  .legal-hero p { color: #444; }
  .legal { padding: 0; }
  .legal-grid { display: block; }
  .legal .note { border: 1px solid #ccc; background: none; }
  .legal a { color: #000; }
  body { background: #fff; }
}
