:root {
  --accent: #0078ff;
  --text: #1e293b;
  --text-light: #64748b;
  --bg: #f8fafc;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
}

header, section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: auto;
}

h1, h2, h3 { margin: 0 0 1rem; }
p { margin-bottom: 1.5rem; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.2s ease, transform 0.1s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #005fcc;
  transform: translateY(-1px);
}

.btn-outline {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-outline:hover {
  background: #ebf4ff;
}

/* ---------------- Nav ---------------- */
/* Transparent Navigation */
.nav.transparent-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;                   /* Ensure full width */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 3rem 0.6rem 3rem;  /* top, right, bottom, left */

  z-index: 1000;
  background: rgba(255, 255, 255, 0); /* Fully transparent initially */
  transition: background 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.nav.transparent-nav.scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(8px);
}

.nav-left {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 42px;                  /* smaller logo in navbar */
  width: auto;
  object-fit: contain;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;             /* pushes right side to the end */
}


.btn-nav {
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-nav:hover {
  background: #005fcc;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
  }

  .nav-right {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-logo img {
    height: 44px;
  }
}

/* ---------------- Hero ---------------- */
.hero-logo {
  height: 300px;                 /* smaller hero logo */
  width: auto;
  object-fit: contain;
  margin-bottom: 1.5rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.hero {
  text-align: center;
  padding-top: 1rem;  /* space below fixed nav */
  padding-bottom: 5rem;
}

/* Smaller top margin for hero pages with transparent nav */
body.home .hero {
  padding-top: 4.5rem; /* this applies only when you add class="home" to <body> */
}

@media (max-width: 768px) {
  .hero-logo {
    height: 250px;
    margin-bottom: 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    height: 150px;
  }
}


/* ---------------- Features ---------------- */
.features {
  text-align: center;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.feature {
  background: #f9fafb;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.feature:hover { transform: translateY(-4px); }

.feature img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

/* ---------------- Pricing ---------------- */
.pricing {
  text-align: center;
  background: var(--bg);
  padding-top: 6rem;
  padding-bottom: 8rem;
}

.pricing h2 { font-size: 2rem; }

.plans {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
}

.plan {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 2rem;
  width: 280px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.plan:hover { transform: translateY(-4px); }

.plan h3 { margin-bottom: 0.5rem; font-size: 1.3rem; }

.price { font-size: 2rem; color: var(--accent); margin-bottom: 1rem; }




/* --------------------------------------------
   LEGAL PAGES (Terms, Privacy)
-------------------------------------------- */
body.legal main.legal {
  max-width: 900px;
  margin: 7rem auto 5rem;  /* aligns under fixed nav */
  padding: 0 2rem;
  line-height: 1.7;
}

body.legal .page-header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.25rem;
}

body.legal .page-header p {
  color: var(--text-light);
  margin-bottom: 2rem;
}


.about-page {
  max-width: 900px;             /* matches your privacy span */
  margin: 7rem auto 5rem;       /* same top/bottom spacing under fixed nav */
  padding: 0 2rem;              /* same horizontal padding */
  line-height: 1.7;
  font-size: 1.05rem;
  color: #1e293b;
}

.about-page h1 {
  font-size: 2.2rem;
  margin-bottom: 0.25rem;
  color: #111;
  font-weight: 600;
}

.about-page p {
  color: #334155;
  margin-bottom: 1.5rem;
}

.about-signoff {
  margin-top: 2.5rem;
  font-style: italic;
  color: #475569;
  font-weight: 500;
}


/* --------------------------------------------
   INFO PAGES — Privacy, Terms, About
-------------------------------------------- */
.legal-page {
  max-width: 800px;
  margin: 6rem auto;
  padding: 0 2rem;
  line-height: 1.7;
  font-size: 1.05rem;
  color: #1e293b;
}

.legal-page h1 {
  font-size: 2.2rem;
  margin-bottom: 0.25rem;
  color: #111;
  font-weight: 600;
}

.legal-page h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.legal-page p {
  margin-bottom: 1.25rem;
  color: #334155;
}

.legal-page ul {
  margin: 1rem 0 1.5rem 1.25rem;
  color: #334155;
}

.legal-page .muted {
  color: #64748b;
  margin-bottom: 2rem;
  display: block;
}


/* ---------------- Footer ---------------- */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: var(--text-light);
}



/* ---------------------------
   NAVBAR — shared styles
--------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(8px);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: .25rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}


.nav-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.nav-logo img {
  height: 75px;
  width: auto;
  object-fit: contain;
}

/* Hide links on mobile by default */
.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* ---------------------------
   HAMBURGER BUTTON
--------------------------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #111;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animate to X when open */
.nav.open .nav-toggle span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.nav.open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.nav.open .nav-toggle span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* ---------------------------
   MOBILE BEHAVIOR
--------------------------- */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    
    
  }

  @media (max-width: 768px) {
  .nav-inner {
    padding: 0.25rem .5rem;  /* narrower sides, same top/bottom */
  }

  .nav-logo img {
    height: 55px;  /* slightly smaller logo for mobile */
  }
}


  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: none;
  }

  .nav-links a {
    padding: 1rem 0;
    width: 100%;
    text-align: center;
  }

  .nav.open .nav-links {
    display: flex;
  }
}
.how-it-works, .security {
  text-align: center;
  padding: 5rem 2rem;
  background: #f8fafc;
}

.how-it-works h2, .security h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #0f172a;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.step h3 {
  font-size: 1.2rem;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.step p {
  color: #475569;
  line-height: 1.6;
}

.security-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 600px;
  display: grid;
  gap: 0.75rem;
  font-size: 1.05rem;
  color: #1e293b;
}


/* ==============================
   Audience-specific theming
   ============================== */
body[data-audience="legal"] {
  --accent: #2563eb;     /* Bright legal blue */
  --bg: #f8fafc;
  --text: #1e293b;
  --text-light: #64748b;
}

body[data-audience="clinical"] {
  --accent: #059669;     /* Calm emerald green */
  --bg: #f9fffb;
  --text: #134e4a;
  --text-light: #4b5563;
}

body[data-audience="other"] {
  --accent: #7c3aed;     /* Subtle violet */
  --bg: #f9f7ff;
  --text: #2e1065;
  --text-light: #6b21a8;
}

.beta-banner {
  background: #ffc65b;
  border-bottom: 1px solid #e5e7eb;
  text-align: center;
  font-size: 0.95rem;
  color: #111827;
  padding: 0.75rem 1rem;
  line-height: 1.4;
}

.beta-banner a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  margin-left: 0.25rem;
}

.beta-banner a:hover {
  text-decoration: underline;
}


.article-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 6rem 2rem;
  line-height: 1.65;
  font-size: 1.05rem;
}

.article-container h1,
.article-container h2,
.article-container h3 {
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #111;
}

.article-container p,
.article-container li {
  margin-bottom: 1.15rem;
}

.article-container ul {
  padding-left: 1.2rem;
}

.article-container hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2.5rem 0;
}





/* ------------------------------
   ARTICLE PAGES — Solid Navy Nav
------------------------------- */
body.article-page .navbar {
  background: #0f172a !important;
  padding: 0.8rem 0 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
  backdrop-filter: none !important;
}

body.article-page .navbar .nav-link,
body.article-page .navbar-brand,
body.article-page .navbar-toggler i {
  color: #fff !important;
}

body.article-page .navbar-toggler {
  border-color: #fff !important;
}


.article-wrapper {
  max-width: 820px;
  margin: 140px auto 80px;
  padding: 0 1.25rem;
}
