/* SwasthyaLink landing page — design system aligned with the PWA (app.swasthyalink.co.in).
   Brand tokens match frontend globals.css: teal #0D9488/#0F766E, amber #F59E0B,
   ink navy #0F172A/#1E293B, ink-500 #64748B. Font: Plus Jakarta Sans. */

:root {
  --teal: #0D9488;
  --teal-dark: #0F766E;
  --amber: #F59E0B;
  --navy: #0F172A;
  --ink: #1E293B;
  --ink-500: #64748B;
  --slate: #F8FAFC;
  --line: #E2E8F0;
  --teal-50: #F0FDFA;
  --shadow: 0 1px 3px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Noto Sans Devanagari", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: "Plus Jakarta Sans", system-ui, sans-serif; color: var(--navy); margin: 0 0 .5rem; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Buttons (consistent system) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.2rem; border-radius: 10px; font-weight: 600; font-family: "Plus Jakarta Sans", sans-serif;
  transition: .15s; cursor: pointer; border: 1px solid transparent; font-size: .95rem;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost { background: #fff; border-color: #cbd5e1; color: var(--navy); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.02rem; }

/* Work-in-progress banner removed (beta notice retired) — .wip-banner rules dropped. */

/* Google Play badge + equal-weight CTA highlighting.
   Both the Play badge and the Web App button carry the same amber ring so
   neither is visually subordinate (founders directive: highlight both). */
.badge-link {
  display: inline-flex; align-items: center; justify-content: center;
  background: #000; border: 1px solid rgba(255,255,255,.85); border-radius: 12px;
  padding: .5rem .8rem; transition: .15s; box-shadow: 0 0 0 3px var(--amber);
}
.badge-link img { height: 44px; width: auto; display: block; }
.badge-link:hover { transform: translateY(-2px); box-shadow: 0 0 0 3px var(--amber), 0 6px 18px rgba(245,158,11,.35); }

.cta-row-secondary { margin-top: .7rem; }
.cta-highlight {
  box-shadow: 0 0 0 3px var(--amber);
  border-color: var(--amber) !important;
}
.cta-highlight:hover {
  box-shadow: 0 0 0 3px var(--amber), 0 6px 18px rgba(245,158,11,.35);
  border-color: var(--amber) !important;
}
/* Nav Play button — compact, matches .nav-cta weight */
.nav-play {
  background: #000 !important;
  border: 1px solid #fff;
  display: inline-flex; align-items: center; gap: .35rem;
}
.nav-play:hover { background: #222 !important; }

/* Navbar */
.nav { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.nav .wrap { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.2rem; color: #fff; }
.brand-accent { color: var(--teal); }
.nav-links { display: flex; gap: 1.1rem; margin-left: auto; flex-wrap: wrap; }
.nav-links a { color: #cbd5e1; font-size: .9rem; font-weight: 500; }
.nav-links a:hover { color: #fff; }
.nav-cta { margin-left: .5rem; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #042F2E 0%, #0F766E 45%, var(--teal) 100%); color: #fff; padding: 72px 0 56px; }
.hero-motif { position: absolute; right: -80px; top: -40px; opacity: .18; pointer-events: none; }
.hero-inner { position: relative; text-align: center; max-width: 880px; margin: 0 auto; }
.pill { display: inline-block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: .4rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.1; margin: 1.2rem 0 .6rem; font-weight: 800; }
.sub-headline { font-size: 1.08rem; opacity: .92; max-width: 700px; margin: 0 auto; }
.cta-row { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }
.trust-strip { display: flex; gap: 1.6rem; flex-wrap: wrap; justify-content: center; margin-top: 2.2rem; font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.92); }
.trust-strip span { display: inline-flex; align-items: center; gap: .45rem; }
.trust-strip .ico { width: 18px; height: 18px; color: var(--amber); }

section { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 2.2rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 .4rem; }
.section-head p { color: var(--ink-500); max-width: 640px; margin: 0 auto; }
.band { background: var(--slate); }

/* Tabs */
.tabs { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.6rem; }
.tab-btn { padding: .6rem 1.2rem; border-radius: 999px; border: 1px solid #cbd5e1; background: #fff; cursor: pointer; font-weight: 600; font-family: "Plus Jakarta Sans", sans-serif; color: var(--ink); }
.tab-btn.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.tab-panel { display: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 2rem; max-width: 920px; margin: 0 auto; }
.tab-panel.active { display: block; }
.tab-panel h3 { color: var(--navy); margin-top: 0; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.2rem 0 1.6rem; }
.feat { background: var(--slate); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; }
.feat .ico { display: inline-flex; width: 34px; height: 34px; color: var(--teal); }
.feat .ico svg { width: 34px; height: 34px; }
.feat p { margin: .5rem 0 0; font-size: .9rem; color: var(--ink); }

/* Calculator */
.calc { max-width: 680px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.8rem; }
.calc label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.calc input { width: 100%; padding: .7rem .8rem; border: 1px solid #cbd5e1; border-radius: 8px; margin-bottom: .3rem; font-size: 1rem; font-family: inherit; background: #fff; color: var(--ink); }
.calc input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,148,136,.15); }
.calc .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.bar { height: 16px; border-radius: 8px; background: #e2e8f0; overflow: hidden; margin-top: .3rem; }
.bar > span { display: block; height: 100%; }
.bar.branded > span { background: #94a3b8; }
.bar.generic > span { background: var(--teal); }
.savings-note { margin-top: 1rem; font-size: .85rem; color: var(--ink-500); }
.savings-note.center, .center { text-align: center; }

/* Roadmap kanban */
.kanban { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.kanban .col { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem; }
.kanban .col h4 { margin: 0 0 .8rem; display: flex; align-items: center; gap: .4rem; font-size: 1rem; }
.kanban .item { font-size: .88rem; padding: .5rem 0; border-top: 1px solid #f1f5f9; color: var(--ink); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-g { background: #16a34a; } .dot-y { background: var(--amber); } .dot-b { background: #2563eb; }

/* UPI */
.upi { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 2.5rem; max-width: 720px; margin: 0 auto; }
.upi .qr { display: inline-block; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.upi .qr img { width: 220px; height: 220px; display: block; }
.upi p.legal { font-size: .82rem; color: var(--ink-500); max-width: 560px; margin: 1rem auto 0; }

/* Community board */
.board-wrap { max-width: 820px; margin: 0 auto; }
.suggest-form { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.4rem; margin-bottom: 1.5rem; }
.suggest-form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.suggest-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.suggest-form input, .suggest-form textarea, .suggest-form select { width: 100%; padding: .65rem .75rem; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; background: #fff; color: var(--ink); }
.suggest-form input:focus, .suggest-form textarea:focus, .suggest-form select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,148,136,.15); }
.suggest-form .hp { position: absolute; left: -9999px; }
.sort-tabs, .filter-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.sort-tabs button, .filter-tabs button { padding: .4rem .9rem; border: 1px solid #cbd5e1; background: #fff; border-radius: 999px; cursor: pointer; font-size: .82rem; font-family: inherit; color: var(--ink); }
.sort-tabs button.active, .filter-tabs button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
#board .card { display: flex; gap: .8rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem; margin-bottom: .8rem; align-items: flex-start; }
#board .upvote { background: var(--teal-50); border: 1px solid #99f6e4; color: var(--teal); border-radius: 8px; padding: .4rem .6rem; cursor: pointer; font-weight: 700; }
#board .card-body h4 { margin: .1rem 0 .3rem; color: var(--navy); }
#board .card-body p { margin: 0; font-size: .9rem; color: var(--ink); }
#board .card-badges { display: flex; gap: .5rem; margin-bottom: .3rem; }
.badge-status, .badge-role { font-size: .7rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; }
.badge-role { background: #EEF2FF; color: #4338CA; }
.badge-status { background: #FEF3C7; color: #92400E; }
.empty { color: var(--ink-500); text-align: center; padding: 2rem; }

/* Footer */
.site-footer { background: var(--navy); color: #cbd5e1; padding: 44px 0 28px; margin-top: 40px; }
.site-footer a { color: #93c5b1; }
.site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; }
.foot-grid h5 { color: #fff; margin: 0 0 .6rem; font-size: .95rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; line-height: 1.9; font-size: .88rem; }
.foot-notice { border-top: 1px solid rgba(255,255,255,.1); margin-top: 1.8rem; padding-top: 1.2rem; font-size: .8rem; color: #94a3b8; }
.foot-notice p { margin: .3rem 0; }

@media (max-width: 640px) {
  .calc .row, .suggest-form .grid2 { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
}
