/* ───────── PulseVault Marketing Site — Shared Styles ───────── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@500;600;700;800&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #050d0d;
  --bg-card: #080f10;
  --bg-elev: #0f1c1d;
  --bg-input: #11201f;
  --border: #1a2c2d;
  --border-strong: #2a4244;
  --text: #e8f4f1;
  --text-dim: #9bb5b1;
  --text-muted: #5e7c78;
  --accent: #00e87a;
  --accent-dim: #00a85a;
  --accent-glow: rgba(0, 232, 122, 0.15);
  --teal: #00bfa5;
  --orange: #ffb74d;
  --red: #ff5252;
  --rd: 14px;
  --rs: 8px;
  --max-width: 1200px;
  --fh: 'Syne', system-ui, sans-serif;
  --fb: 'DM Sans', system-ui, sans-serif;
}

/* Light theme — toggled via [data-theme="light"] on <html> */
html[data-theme="light"] {
  --bg: #fafbfa;
  --bg-card: #ffffff;
  --bg-elev: #f3f6f5;
  --bg-input: #ffffff;
  --border: #e2e8e5;
  --border-strong: #c4d0cc;
  --text: #0a1612;
  --text-dim: #4a5e58;
  --text-muted: #7a8a85;
  --accent: #00a85a;
  --accent-dim: #007a42;
  --accent-glow: rgba(0, 168, 90, 0.12);
  --teal: #008a78;
  --orange: #d97706;
  --red: #dc2626;
}

html[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.92);
}
html[data-theme="light"] .hero h1 {
  background: linear-gradient(180deg, #0a1612 0%, #4a5e58 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
html[data-theme="light"] .stat-item .stat-value {
  background: linear-gradient(180deg, var(--accent), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
html[data-theme="light"] .btn-primary { color: #ffffff; }
html[data-theme="light"] .btn-primary:hover { background: var(--accent-dim); }
html[data-theme="light"] .auth-logo-icon, html[data-theme="light"] .nav-logo-icon {
  color: #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--fb);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: 0.8; }

h1, h2, h3, h4, h5 { font-family: var(--fh); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: 56px; }
h2 { font-size: 40px; }
h3 { font-size: 26px; }
h4 { font-size: 20px; }
p { color: var(--text-dim); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ─────── NAVIGATION ─────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 13, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fh);
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav-logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #050d0d;
  font-weight: 800;
  font-size: 14px;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 14px;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); opacity: 1; }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hamburger (hidden on desktop) */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  padding: 10px; margin: -10px -8px -10px 0;
  -webkit-tap-highlight-color: transparent;
}
.nav-burger span {
  display: block; height: 2px; width: 22px;
  background: var(--text); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile dropdown panel */
.nav-mobile-panel {
  display: none;
  flex-direction: column;
  padding: 8px 24px max(20px, env(safe-area-inset-bottom));
  gap: 2px;
  border-top: 1px solid var(--border);
  background: rgba(5, 13, 13, 0.97);
  backdrop-filter: blur(12px);
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
html[data-theme="light"] .nav-mobile-panel { background: rgba(255,255,255,0.97); }
.nav-mobile-panel.open { max-height: 80vh; padding-top: 12px; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
.nav-mobile-panel a[data-nav] {
  color: var(--text-dim); font-weight: 600; font-size: 16px;
  padding: 14px 4px; text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.nav-mobile-panel a[data-nav]:active,
.nav-mobile-panel a[data-nav].active { color: var(--accent); }
.nav-mobile-cta {
  display: flex; flex-direction: column; gap: 10px; margin-top: 16px;
}

/* ─────── BUTTONS ─────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--rs);
  font-family: var(--fb);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #050d0d;
}
.btn-primary:hover { background: #00ff88; opacity: 1; box-shadow: 0 0 24px var(--accent-glow); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { border-color: var(--accent); opacity: 1; }
.btn-ghost {
  background: transparent;
  color: var(--text-dim);
}
.btn-ghost:hover { color: var(--text); opacity: 1; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }

/* ─────── HERO ─────── */
.hero {
  position: relative;
  padding: 90px 0 80px;
  overflow: hidden;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%; left: 50%;
  width: 80%; height: 80%;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  transform: translateX(-50%);
  pointer-events: none;
  filter: blur(60px);
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px;
  background: var(--accent-glow);
  border: 1px solid rgba(0, 232, 122, 0.25);
  border-radius: 100px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  margin-bottom: 20px;
  background: linear-gradient(180deg, #fff 0%, #9bb5b1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 1;
}
.hero p.lead {
  font-size: clamp(16px, 2vw, 20px);
  max-width: 680px;
  margin: 0 auto 36px;
  color: var(--text-dim);
  position: relative;
  z-index: 1;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ─────── SECTIONS ─────── */
.section { padding: 70px 0; }
.section-tight { padding: 50px 0; }
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
}
.section-header p {
  font-size: 17px;
  max-width: 620px;
  margin: 0 auto;
}

/* ─────── FEATURE GRID ─────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--rd);
  transition: all .2s;
}
.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.feature-icon {
  width: 48px; height: 48px;
  background: var(--accent-glow);
  border: 1px solid rgba(0, 232, 122, 0.25);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-dim);
}

/* ─────── STATS ─────── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--rd);
  text-align: center;
}
.stat-item .stat-value {
  font-family: var(--fh);
  font-size: 38px;
  font-weight: 800;
  background: linear-gradient(180deg, var(--accent), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-item .stat-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ─────── PRICING ─────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--rd);
  padding: 32px;
  transition: all .2s;
  display: flex;
  flex-direction: column;
}
.price-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(0, 232, 122, 0.04) 100%);
}
.price-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent);
  color: #050d0d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 4px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.price-name { font-size: 18px; margin-bottom: 6px; }
.price-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 22px; }
.price-amount {
  font-family: var(--fh);
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 4px;
}
.price-period { color: var(--text-muted); font-size: 13px; }
.price-features {
  list-style: none;
  margin: 24px 0;
  flex: 1;
}
.price-features li {
  display: flex;
  align-items: start;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-dim);
}
.price-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ─────── DOCS ─────── */
.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding: 50px 0;
}
.docs-sidebar {
  position: sticky;
  top: 80px;
  height: fit-content;
  padding: 24px 0;
}
.docs-sidebar h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin: 18px 0 8px;
  font-weight: 600;
}
.docs-sidebar a {
  display: block;
  padding: 6px 12px;
  font-size: 14px;
  color: var(--text-dim);
  border-radius: 6px;
  margin-bottom: 2px;
}
.docs-sidebar a:hover, .docs-sidebar a.active {
  background: var(--bg-card);
  color: var(--text);
  opacity: 1;
}
.docs-content { max-width: 760px; }
.docs-content h1 {
  font-size: 36px;
  margin-bottom: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.docs-content h2 {
  font-size: 28px;
  margin: 36px 0 16px;
}
.docs-content h3 {
  font-size: 20px;
  margin: 24px 0 10px;
}
.docs-content p { margin-bottom: 14px; line-height: 1.75; }
.docs-content ul, .docs-content ol {
  margin: 0 0 16px 22px;
  color: var(--text-dim);
}
.docs-content li { margin-bottom: 6px; }
.docs-content code {
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 13px;
  background: var(--bg-elev);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}
.docs-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--rs);
  padding: 16px;
  margin: 16px 0;
  overflow-x: auto;
}
.docs-content pre code {
  background: transparent;
  color: var(--text-dim);
  padding: 0;
}
.docs-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 16px;
  margin: 16px 0;
  color: var(--text-dim);
  font-style: italic;
}

/* ─────── CTA SECTION ─────── */
.cta-band {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elev));
  border: 1px solid var(--border);
  border-radius: var(--rd);
  padding: 60px 40px;
  text-align: center;
  margin: 80px 0;
}
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { font-size: 17px; max-width: 540px; margin: 0 auto 28px; }

/* ─────── FOOTER ─────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 280px;
  margin-top: 16px;
}
.footer-col h4 {
  font-size: 11px;
  font-family: var(--fb);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 700;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 8px;
}
.footer-col a {
  color: var(--text-dim);
  font-size: 14px;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ─────── AUTH PAGE ─────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.auth-page::before {
  content: '';
  position: absolute;
  top: 30%; left: 50%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: blur(60px);
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--rd);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}
.auth-logo-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #050d0d;
  font-weight: 800;
  font-size: 18px;
}
.auth-logo h1 {
  font-size: 22px;
  margin: 0;
}
.auth-form .fg { margin-bottom: 16px; }
.auth-form label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}
.auth-form input {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--rs);
  color: var(--text);
  font-size: 14px;
  font-family: var(--fb);
}
.auth-form input:focus { outline: none; border-color: var(--accent); }
.auth-tabs {
  display: flex;
  background: var(--bg-input);
  border-radius: var(--rs);
  padding: 4px;
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1;
  padding: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  border-radius: 6px;
  transition: all .2s;
}
.auth-tab.active {
  background: var(--bg-card);
  color: var(--text);
}
.auth-error {
  color: var(--red);
  font-size: 12px;
  min-height: 18px;
  margin: 4px 0 12px;
}
.auth-foot {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ─────── RESPONSIVE ─────── */
/* ─────────────── RESPONSIVE ─────────────── */

/* Prevent iOS auto-zoom on input focus (needs >=16px), smooth momentum scroll,
   no tap-highlight flash, and respect the notch / home indicator. */
input, select, textarea { font-size: 16px; }
* { -webkit-tap-highlight-color: rgba(0,232,122,0.15); }
body {
  -webkit-overflow-scrolling: touch;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
.navbar { padding-top: env(safe-area-inset-top); }

/* Tablet & below (iPad portrait ~768, landscape handled by 1024) */
@media (max-width: 1024px) {
  :root { --max-width: 100%; }
  .container { padding-left: 28px; padding-right: 28px; }
}

/* iPad portrait and small tablets */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile-panel { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; }
  /* comparison / wide tables scroll horizontally instead of overflowing */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Phones */
@media (max-width: 768px) {
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  .hero { padding: 40px 0 36px; }
  .section { padding: 48px 0; }
  .container { padding-left: 20px; padding-right: 20px; }
  /* stack CTAs full-width and give them a comfortable tap height */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .btn-lg { padding: 14px 24px; }
  .btn { min-height: 44px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Small phones (iPhone SE / mini) */
@media (max-width: 380px) {
  h1 { font-size: 32px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .nav-inner { padding: 14px 16px; }
}
