/* SehatVault brand fonts (same files as the app) */
@font-face { font-family: 'Bitter'; src: url('../fonts/Bitter-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Bitter'; src: url('../fonts/Bitter-ExtraBold.woff2') format('woff2'); font-weight: 700 800; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('../fonts/IBMPlexSans-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('../fonts/IBMPlexSans-Medium.woff2') format('woff2'); font-weight: 500 700; font-display: swap; }
@font-face {
  font-family: 'Noto Nastaliq Urdu';
  src: url('../fonts/NotoNastaliqUrdu-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'Noto Nastaliq Urdu';
  src: url('../fonts/NotoNastaliqUrdu-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF;
}

/* Urdu RTL typography */
[dir="rtl"],
[lang="ur"],
.font-urdu {
  font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Urdu Typesetting', serif;
}

/*
 * SehatVault Public Website Stylesheet (site/css/style.css)
 * Strict adherence to brand tokens: Neelam, Ajrak, Zaffran, Kapaas, Jaali, Siyahi
 * Offline-first, zero third-party CDNs, zero external trackers, < 1s 3G loading
 */

:root {
  --neelam: #1E3A5F;
  --neelam-light: #2E527F;
  --neelam-tint: #E4EAF0;
  --ajrak: #A8442B;
  --ajrak-light: #C15738;
  --ajrak-tint: #F7EAE6;
  --zaffran: #C68A2E;
  --zaffran-light: #D69C42;
  --zaffran-tint: #FBF4E7;
  --bg: #E7E0D3;
  --surface: #FAF6EE;
  --kapaas: #FAF6EE;
  --siyahi: #211D1A;
  --text-soft: #6B655C;
  --jaali: #8C9A93;
  --border: rgba(33, 29, 26, 0.14);
  --border-subtle: rgba(33, 29, 26, 0.08);
  --good: #3F8F5F;
  --critical: #B3211A;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(33, 29, 26, 0.08);
  --shadow-md: 0 4px 12px rgba(33, 29, 26, 0.12);
  --shadow-lg: 0 8px 24px rgba(33, 29, 26, 0.16);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--siyahi);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-font {
  font-family: 'Georgia', serif;
  color: var(--neelam);
  line-height: 1.25;
}

a {
  color: var(--neelam);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--ajrak);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Nav */
.site-header {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--neelam);
  text-decoration: none;
}

.brand-badge {
  background-color: var(--ajrak);
  color: #FFFFFF;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  color: var(--siyahi);
  font-size: 15px;
}

.nav-links a:hover {
  color: var(--ajrak);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-align: center;
}

.btn-primary {
  background-color: var(--ajrak);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--ajrak-light);
  color: #FFFFFF;
}

.btn-secondary {
  background-color: var(--neelam);
  color: #FFFFFF;
}

.btn-secondary:hover {
  background-color: var(--neelam-light);
  color: #FFFFFF;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border);
  color: var(--siyahi);
}

.btn-outline:hover {
  border-color: var(--neelam);
  color: var(--neelam);
  background-color: rgba(30, 58, 95, 0.04);
}

.btn-whatsapp {
  background-color: #25D366;
  color: #0F3E1E;
  font-weight: 700;
}

.btn-whatsapp:hover {
  background-color: #20BA5A;
  color: #0F3E1E;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 17px;
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--zaffran-tint);
  border: 1px solid var(--zaffran);
  color: var(--zaffran);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 46px;
  margin-bottom: 20px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 20px;
  color: var(--text-soft);
  max-width: 720px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-trust-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: var(--text-soft);
  flex-wrap: wrap;
}

.hero-trust-bar span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Features Grid */
.section {
  padding: 70px 0;
}

.section-light {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 36px;
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-soft);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--neelam);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--neelam-tint);
  color: var(--neelam);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.6;
}

/* Differentiators Banner */
.diff-card {
  background-color: var(--surface);
  border-left: 4px solid var(--ajrak);
  border-radius: var(--radius-md);
  padding: 24px;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.diff-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.featured {
  border: 2px solid var(--ajrak);
  box-shadow: var(--shadow-md);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background-color: var(--ajrak);
  color: #FFFFFF;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.pricing-tier {
  font-size: 24px;
  margin-bottom: 8px;
}

.pricing-desc {
  color: var(--text-soft);
  font-size: 14px;
  margin-bottom: 24px;
  min-height: 42px;
}

.pricing-price {
  font-size: 40px;
  font-weight: 800;
  color: var(--neelam);
  font-family: 'Georgia', serif;
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-soft);
  font-family: sans-serif;
}

.pricing-discount-note {
  font-size: 13px;
  color: var(--good);
  font-weight: 600;
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-features li::before {
  content: "✓";
  color: var(--good);
  font-weight: bold;
}

/* Trust & Compliance Section */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  text-align: center;
}

.trust-item {
  padding: 24px 16px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.trust-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.trust-item h4 {
  font-size: 17px;
  margin-bottom: 8px;
}

.trust-item p {
  font-size: 14px;
  color: var(--text-soft);
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  color: var(--neelam);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.6;
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--siyahi);
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: #FFFFFF;
  font-size: 15px;
  color: var(--siyahi);
}

.form-control:focus {
  outline: none;
  border-color: var(--neelam);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.15);
}

/* Honeypot anti-bot hidden field */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  tabindex: -1 !important;
}

/* Footer */
.site-footer {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h5 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  color: var(--neelam);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-soft);
  font-size: 14px;
}

.footer-col ul li a:hover {
  color: var(--ajrak);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-soft);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }
  .nav-links {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Auth Cards & Workflow Panels (AG-260) */
.auth-wrapper {
  min-height: calc(100vh - 72px - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.auth-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(30, 58, 95, 0.08);
  width: 100%;
  max-width: 480px;
  padding: 32px 28px;
}

.auth-card-wide {
  max-width: 580px;
}

.auth-header {
  margin-bottom: 24px;
  text-align: center;
}

.auth-header h1, .auth-header h2 {
  font-size: 24px;
  color: var(--neelam);
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-soft);
}

.auth-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 14px;
  color: var(--text-soft);
}

.auth-footer a {
  color: var(--neelam);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
  color: var(--ajrak);
}

.alert-box {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-error {
  background-color: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

.alert-success {
  background-color: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
}

.alert-info {
  background-color: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E40AF;
}

.otp-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 18px 0;
}

.otp-digit {
  width: 48px;
  height: 54px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--neelam);
}

.otp-digit:focus {
  border-color: var(--neelam);
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.15);
}


/* Brand: official lockup = arch mark + Bitter ExtraBold wordmark */
body { font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
h1, h2, h3, h4 { font-family: 'Bitter', Georgia, serif; }
.brand-logo { font-family: 'Bitter', Georgia, serif; font-weight: 800; letter-spacing: -0.01em; gap: 10px; }
.brand-mark { width: 34px; height: 34px; flex: none; color: var(--neelam); }
@media (max-width: 600px) {
  .brand-logo { font-size: 18px; gap: 8px; }
  .brand-mark { width: 28px; height: 28px; }
  .nav-actions .btn { white-space: nowrap; padding: 8px 9px; font-size: 12.5px; margin-right: 0 !important; }
  .nav-actions { gap: 6px; display: flex; }
}
