/* Health Sync — public site stylesheet.
   Covers the marketing landing page and the legal pages. It deliberately reuses
   the design tokens from web/src/styles.css (the signed-in console) so the
   public page and the app read as one product.

   Only Bootstrap 5.3 + this file are needed: the public pages ship no jQuery and
   no third-party theme, so there is nothing to build and nothing to fetch from
   another origin. */

:root {
  --hs-brand: #0d6efd;
  --hs-brand-dark: #0a58ca;
  --hs-brand-soft: #e8f1ff;
  --hs-ink: #1f2933;
  --hs-muted: #6b7280;
  --hs-surface: #f6f7f9;
  --hs-border: #e5e7eb;
  --hs-dark: #111827;
  --hs-radius: 12px;
  --hs-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px -12px rgba(16, 24, 40, .18);
  --hs-shadow-lg: 0 4px 8px rgba(16, 24, 40, .06), 0 24px 48px -24px rgba(16, 24, 40, .28);

  /* Bengali first: every mainstream desktop and mobile OS ships a Bengali face,
     so the page renders correctly without asking a font CDN. */
  --hs-font: 'Noto Sans Bengali', 'Hind Siliguri', 'SolaimanLipi', 'Kalpurush',
             'Nirmala UI', 'Bangla MN', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
}

body {
  font-family: var(--hs-font);
  color: var(--hs-ink);
  background: #fff;
  line-height: 1.7;               /* Bengali needs more leading than Latin */
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.45; font-weight: 600; }
a { text-decoration: none; }
a:not(.btn):hover { text-decoration: underline; }

.text-muted-2 { color: var(--hs-muted) !important; }

/* Anchors must clear the sticky navbar. */
.anchor { scroll-margin-top: 84px; }

/* --------------------------------------------------------------- icon sprite */

.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.7;
        stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-lg { width: 1.6em; height: 1.6em; }

/* --------------------------------------------------------------- site navbar */

.site-nav {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--hs-border);
}

.site-nav .navbar-brand { color: var(--hs-ink); font-weight: 700; letter-spacing: .2px; }

.site-nav .brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--hs-brand); color: #fff; flex: none;
}

.brand-sub { font-size: .72rem; font-weight: 500; color: var(--hs-muted); line-height: 1; margin-top: 2px; }

.site-nav .nav-link { color: var(--hs-ink); font-size: .95rem; padding: .5rem .75rem !important; }
.site-nav .nav-link:hover { color: var(--hs-brand); }

/* ---------------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 420px at 92% -10%, rgba(13, 110, 253, .16), transparent 62%),
    radial-gradient(720px 380px at 2% 8%, rgba(102, 16, 242, .10), transparent 60%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  padding: 4rem 0 4.5rem;
}

.hero h1 { font-size: clamp(1.85rem, 4.4vw, 2.9rem); font-weight: 700; }
.hero .lead { font-size: clamp(1rem, 1.6vw, 1.12rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; border: 1px solid var(--hs-border);
  box-shadow: var(--hs-shadow);
  color: var(--hs-brand-dark);
  border-radius: 999px; padding: .35rem .85rem;
  font-size: .82rem; font-weight: 600;
}

.trust-chips { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .875rem; color: var(--hs-muted); }
.trust-chips span { display: inline-flex; align-items: center; gap: .4rem; }
.trust-chips .icon { color: #16a34a; }

/* --------------------------------------------------------------- phone mock */

.phone {
  width: 100%; max-width: 310px; margin-inline: auto;
  border-radius: 34px; padding: 10px;
  background: linear-gradient(160deg, #1f2937, #0b1220);
  box-shadow: var(--hs-shadow-lg);
}

.phone-screen {
  background: var(--hs-surface); border-radius: 26px; overflow: hidden;
  min-height: 440px; padding: .9rem .9rem 1.1rem;
}

.phone-status {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .72rem; color: var(--hs-muted); padding: .1rem .2rem .6rem;
}

.mock-card {
  background: #fff; border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius); padding: .8rem .85rem;
  box-shadow: var(--hs-shadow); margin-bottom: .7rem;
}

.mock-row { display: flex; justify-content: space-between; gap: .5rem; padding: .4rem 0;
            border-top: 1px dashed var(--hs-border); font-size: .82rem; }
.mock-row:first-of-type { border-top: 0; }
.mock-label { font-weight: 600; }
.mock-sub { color: var(--hs-muted); font-size: .74rem; }

.mock-bubble {
  background: var(--hs-brand-soft); border-radius: 14px 14px 14px 4px;
  padding: .55rem .7rem; font-size: .8rem; max-width: 88%;
}

.mock-title { font-size: .82rem; font-weight: 700; margin-bottom: .1rem; }

.spark { width: 100%; height: 34px; stroke: var(--hs-brand); stroke-width: 2; fill: none; }

/* -------------------------------------------------------------- feature grid */

.feature-card {
  height: 100%; background: #fff; border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius); padding: 1.4rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.feature-card:hover { transform: translateY(-3px); box-shadow: var(--hs-shadow-lg); border-color: #d6e4ff; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.feature-card p { color: var(--hs-muted); font-size: .93rem; margin: 0; }

.feature-icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: .9rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--hs-brand-soft); color: var(--hs-brand-dark); font-size: 1.1rem;
}

/* ------------------------------------------------------------------- steps */

.step { position: relative; height: 100%; padding-left: 3.4rem; }
.step-num {
  position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--hs-brand); color: #fff; font-weight: 700;
}
.step h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.step p { color: var(--hs-muted); font-size: .93rem; margin: 0; }

/* --------------------------------------------------------------- dark band */

.band-dark {
  background: var(--hs-dark); color: #fff;
  border-radius: var(--hs-radius); padding: 2.5rem; position: relative; overflow: hidden;
}

.band-dark::after {
  content: ""; position: absolute; inset: auto -80px -120px auto;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 110, 253, .38), transparent 68%);
}

.band-dark h2 { color: #fff; }
.band-dark .lead, .band-dark p { color: rgba(255, 255, 255, .76); }
.band-dark .check { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .6rem; }
.band-dark .check .icon { color: #6ee7b7; margin-top: .25rem; }

/* --------------------------------------------------------------- trust cards */

.trust-card { height: 100%; background: #fff; border: 1px solid var(--hs-border);
              border-radius: var(--hs-radius); padding: 1.4rem; }
.trust-card h3 { font-size: 1rem; }
.trust-card p { color: var(--hs-muted); font-size: .92rem; margin: 0; }

/* --------------------------------------------------------------------- FAQ */

.faq .accordion-item { border: 1px solid var(--hs-border); border-radius: var(--hs-radius) !important;
                       margin-bottom: .6rem; overflow: hidden; }
.faq .accordion-button { font-family: inherit; font-weight: 600; font-size: 1rem; padding: 1rem 1.15rem;
                         color: var(--hs-ink); background: #fff; }
.faq .accordion-button:not(.collapsed) { color: var(--hs-brand-dark); background: var(--hs-brand-soft); box-shadow: none; }
.faq .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .18); }
.faq .accordion-body { color: var(--hs-muted); font-size: .95rem; }

/* --------------------------------------------------------------- CTA + footer */

.cta-band {
  background: linear-gradient(120deg, var(--hs-brand) 0%, #4f46e5 100%);
  color: #fff; border-radius: var(--hs-radius); padding: 2.5rem;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .85); }

.site-footer { background: var(--hs-dark); color: rgba(255, 255, 255, .68); font-size: .92rem; }
.site-footer h4, .site-footer h5 { color: #fff; font-size: .95rem; margin-bottom: .9rem; }
.site-footer a { color: rgba(255, 255, 255, .68); display: inline-block; padding: .18rem 0; }
.site-footer a:hover { color: #fff; }
.site-footer hr { border-color: rgba(255, 255, 255, .14); }
.site-footer .brand-mark { width: 32px; height: 32px; border-radius: 10px; display: inline-flex;
                           align-items: center; justify-content: center; background: var(--hs-brand); color: #fff; }

.section-soft { background: var(--hs-surface); }

@media (max-width: 575.98px) {
  .hero { padding: 2.5rem 0 3rem; }
  .band-dark, .cta-band { padding: 1.6rem; border-radius: 10px; }
  .step { padding-left: 0; padding-top: 3.1rem; }
}
