/* ==========================================================
STYLESHEET STRUCTURE

1. CSS VARIABLES
2. GLOBAL / RESET
3. LAYOUT
4. HEADER / NAVBAR
5. BUTTONS
6. HERO
7. OPTIONAL HERO CARD / VISUAL PANELS
8. CONTENT SECTIONS
9. CARDS / PATH CARDS
10. FOOTER
11. UTILITIES
12. RESPONSIVE
========================================================== */

/* ===============================
1. CSS VARIABLES
Reusable colors, shadows, spacing, and shared design tokens
=============================== */

:root {
  /* Core UnderstandMyScan blues */
  --navy: #0b2340;
  --navy-deep: #000C1A;
  --navy-ink: #020f23;
  --blue-dark: #0d2542;
  --blue-card: #132a47;
  --blue-soft: #183756;
  --teal: #2f8f9d;
  --teal-bright: #5fd0d8;
  --teal-light: #6fd4dc;
  --teal-pale: #b9f6fb;

  /* Text and surfaces */
  --text: #243746;
  --muted: #8fa3b6;
  --page-bg: #10233d;
  --section-bg-soft: rgba(95, 208, 216, 0.055);
  --border: rgba(255, 255, 255, 0.12);
  --blue-border: rgba(95, 208, 216, 0.22);
  --blue-border-strong: rgba(95, 208, 216, 0.38);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --max: 1180px;

  /* Reusable card styling */
  --card-bg: rgba(19, 42, 71, 0.92);
  --card-bg-polished: linear-gradient(180deg, rgba(24, 55, 86, 0.96), rgba(14, 36, 65, 0.94));
  --card-border: 1px solid rgba(95, 208, 216, 0.16);
  --card-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

/* ===============================
2. GLOBAL / RESET
Base styles that apply site-wide
=============================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 18% 0%, rgba(95, 208, 216, 0.06), transparent 30%),
    linear-gradient(180deg, var(--page-bg) 0%, #0b1c33 100%);
  color: #e8f0f7;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===============================
3. LAYOUT
Shared layout helpers
=============================== */

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

/* ===============================
4. HEADER / NAVBAR
Top site navigation
=============================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

/* Brand / logo */
.brand {
  display: inline-flex;
  align-items: center;
  padding-left: 24px;
  text-decoration: none;
}

/* Navigation links */
.nav-links {
  display: flex;
  align-items: center;
}

/* Navigation links */
.nav-links a {
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  position: relative;
  transition: all 0.2s ease;
}

/* Teal separator */
.nav-links a:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 18px;
  background: rgba(95,208,216,0.45);
}

/* Hover button effect */
.nav-links a:hover {
  background: rgba(255,255,255,0.12);
  color: white;
}

/* Hover state */
.nav-links a:hover {
  color: white;
}

/* Active stays highlighted */
.nav-links a.active {
  background: rgba(255,255,255,0.16);
  color: white;
}

/* Upload Report CTA button in nav */
.nav-links a.nav-cta {
  background: var(--teal-bright);
  color: #0a1628 !important;
  font-weight: 700;
  margin-left: 10px;
  padding: 8px 18px;
}
.nav-links a.nav-cta:hover {
  background: var(--teal-pale);
  color: #0a1628 !important;
}
/* Remove separator pipe before the CTA button */
.nav-links a:nth-last-child(2)::after {
  display: none;
}
/* ===============================
5. BUTTONS
Reusable button styles
=============================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

.btn-primary {
  background: var(--teal);
  color: white;
}

.btn-primary:hover {
  background: #256f79;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ── HERO ── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 680px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  opacity: 0.18;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(2, 15, 35, 0.92) 0%,
      rgba(2, 15, 35, 0.78) 38%,
      rgba(2, 15, 35, 0.35) 60%,
      rgba(2, 15, 35, 0.08) 78%,
      rgba(2, 15, 35, 0.18) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(2, 15, 35, 0.06) 0%,
      rgba(2, 15, 35, 0.42) 100%
    );
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 clamp(32px, 7vw, 96px);
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Polished hero physician image: softer edge, better face alignment, subtle focus halo */
.hero-inner::after {
  content: "";
  position: absolute;
  inset: 0;

  background-image:
    radial-gradient(
      circle at 72% 38%,
      rgba(2,15,35,0.0) 0%,
      rgba(2,15,35,0.05) 40%,
      rgba(2,15,35,0.18) 70%
    ),
    url("images/breast-imaging-hero-woman.png");

  background-size: cover;
  background-position: right top;
  background-repeat: no-repeat;

  clip-path: inset(0 round 14px);

  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,0,0,0.05) 28%,
    rgba(0,0,0,0.25) 42%,
    rgba(0,0,0,0.6) 52%,
    rgba(0,0,0,0.85) 62%,
    black 72%,
    black 100%
  );

  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,0,0,0.05) 28%,
    rgba(0,0,0,0.25) 42%,
    rgba(0,0,0,0.6) 52%,
    rgba(0,0,0,0.85) 62%,
    black 72%,
    black 100%
  );

  filter: saturate(1.05) brightness(1.1) contrast(1.05) opacity(1);
  z-index: 0;
  pointer-events: none;
}

.hero-inner::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at 75% 40%,
      rgba(95, 208, 216, 0.07),
      transparent 62%
    ),
    linear-gradient(
      to right,
      rgba(2, 15, 35, 0.98) 0%,
      rgba(2, 15, 35, 0.92) 40%,
      rgba(2, 15, 35, 0.55) 55%,
      rgba(2, 15, 35, 0.18) 70%,
      rgba(2, 15, 35, 0.05) 85%
    );

  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: 72px 0;
}

.hero-title {
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  font-weight: 800;
  line-height: 1.15;
  color: #F0F6FA;
  margin: 0 0 14px;
  letter-spacing: -0.015em;
}

.hero-emphasis {
  display: block;
  color: #5EDBE8;
}
.hero-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  margin: 0 0 32px;
}

.hero-trust-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-trust-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 14px 16px;
  backdrop-filter: blur(4px);
}

.hero-trust-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.hero-trust-icon--teal {
  background: rgba(94,219,232,0.15);
  border: 1px solid rgba(94,219,232,0.3);
}

.hero-trust-icon--pink {
  background: rgba(244,166,178,0.15);
  border: 1px solid rgba(244,166,178,0.3);
}

.hero-trust-card-title {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.hero-trust-card-title--teal { color: #5EDBE8; }
.hero-trust-card-title--pink { color: #F4A6B2; }

.hero-trust-card-body {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  padding: 15px 28px;
  border-radius: 8px;
  margin-bottom: 14px;
}

.hero-cta-note {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.55;
  margin: 0;
}

.hero-trust-bar {
  position: relative;
  z-index: 1;
  background: rgba(0,0,0,0.45);
  border-top: 1px solid rgba(94,219,232,0.12);
  backdrop-filter: blur(8px);
}

.hero-trust-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 48px;
  display: flex;
  align-items: center;
}

.hero-trust-bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: center;
}

.trust-bar-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #D0E8F0;
  margin-bottom: 1px;
}

.trust-bar-body {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

.hero-trust-bar-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

@media (max-width: 1200px) {
  .hero-inner::after {
    background-position: right top;
    filter: saturate(1.05) brightness(1.1) contrast(1.05) opacity(0.95);
  }

  .hero-inner::before {
    background:
      linear-gradient(
        to right,
        rgba(2, 15, 35, 0.98) 0%,
        rgba(2, 15, 35, 0.94) 44%,
        rgba(2, 15, 35, 0.58) 62%,
        rgba(2, 15, 35, 0.20) 78%,
        rgba(2, 15, 35, 0.08) 100%
      );
  }
}

/* Primary button */
.btn-primary {
  display: inline-block;
  padding: 16px 36px;
  font-size: 0.98rem;
  font-weight: 600;
  background: var(--teal-bright);
  color: #0f2a45;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(0,0,0,0.35);
}

/* How it works Section */

/* ===============================
HOW IT WORKS
=============================== */

.how-section {
  padding: 20px 0 6px;
}

.how-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 18px;
}

.how-intro h2 {
  margin-bottom: 12px;
}

.how-intro p {
  color: rgba(255,255,255,0.78);
}

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

.how-card {
  background: var(--card-bg-polished);
  border: var(--card-border);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: var(--card-shadow);
}

.how-number {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(95,208,216,0.18);
  border: 1px solid rgba(95,208,216,0.35);
  color: #5fd0d8;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.how-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: white;
}

.how-card p {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
  margin: 0;
}


/* Reduce top padding on the topics wrapper section */
#topics {
  padding-top: 8px;
}

/* Topic section heading */

.section-intro h2 {
  display: inline-block;
  position: relative;
  margin-bottom: 28px;
  font-size: 1.9rem;
}

/* subtle teal line */

.section-intro h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;

  width: 100%;
  height: 2px;

  background: #5fd0d8;
  border-radius: 2px;
}

/* ===============================
7. OPTIONAL HERO CARD / VISUAL PANELS
Kept in case you want to bring back visual cards later
=============================== */

.hero-card {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  backdrop-filter: none;
}

.visual-panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 22px;
}

.visual-title {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--teal-light);
  margin-bottom: 14px;
}

.scan-box {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.visual-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 10px;
  text-align: center;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ===============================
8. CONTENT SECTIONS
General section and intro styles
=============================== */

section {
  padding: 60px 0;
  background: transparent;
}

.section-intro h2 {
  color: white;
}

.section-intro p {
  color: rgba(255, 255, 255, 0.78);
}

/* Trust strip */
.trust-strip {
  margin-top: -30px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-item {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--card-shadow);
}

.trust-item strong {
  display: block;
  margin-bottom: 8px;
  color: white;
}

.trust-item span {
  color: rgba(255, 255, 255, 0.78);
}

/* Feature section layout */

/* ===============================
FEATURE SECTION LAYOUT
Image + text split sections
=============================== */

.feature-section {
  padding: 50px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* Reverse layout for alternating sections */
.feature-grid-reverse .feature-text {
  order: 1;
}

.feature-grid-reverse .feature-image,
.feature-grid-reverse .photo-block {
  order: 2;
  width: 100%;
  max-width: 480px;
  justify-self: end;
}

/* Text side */
.feature-text {
  max-width: 540px;
}

.feature-text h2 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: white;
}

.feature-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 18px;
}

/* Link */
.feature-link {
  color: #5fd0d8;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.feature-link .arrow {
  transition: transform 0.2s ease;
}

.feature-link:hover {
  color: #b9f6fb;
}

.feature-link:hover .arrow {
  transform: translateX(4px);
}

/* Image side */
.feature-image {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.feature-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
  border-radius: 22px;
  position: relative;
  z-index: 2;
}

/* Teal offset border panel */
.feature-image::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  background: rgba(95, 208, 216, 0.32);
  z-index: -1;
}

/* Photo block — image with teal border + caption below */
.photo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Reset order inside photo-block so image always comes first */
.photo-block .feature-image {
  order: 0;
}

.photo-caption {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  margin-top: 28px;
}

.photo-caption-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.01em;
}

.photo-caption-divider {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.35);
}

.photo-caption-title {
  font-size: 0.95rem;
  color: #5fd0d8;
  font-weight: 500;
}

/* Divider between sections */
.section-divider {
  height: 32px;
  background: linear-gradient(
    to bottom,
    rgba(95, 208, 216, 0) 0%,
    rgba(95, 208, 216, 0.10) 50%,
    rgba(95, 208, 216, 0) 100%
  );
}

/* Section that explains why I am doing this */
.mission-section {
  padding: 70px 0;
}

.mission-content {
  position: relative;
  max-width: 820px;
  margin: 0 auto;

  background: var(--card-bg-polished);
  border-radius: 22px;
  padding: 46px 50px;

  border: var(--card-border);
  box-shadow: var(--card-shadow);
}

/* teal offset border */

.mission-content::after {
  content: "";
  position: absolute;
  right: -16px;
  bottom: -16px;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  background: rgba(95,208,216,0.18);
  z-index: -1;
}

.mission-content h2 {
  font-size: 2.2rem;
  margin-bottom: 18px;
  text-align: center;
  color: white;
}

.mission-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.82);
  margin-bottom: 16px;
}

.mission-content p:last-child {
  margin-bottom: 0;
}

.mission-signature {
  margin-top: 26px;
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
  font-size: 0.98rem;
}

.mission-signature strong {
  display: inline-block;
  position: relative;

  color: #5fd0d8;
  font-size: 1.2rem;
  font-weight: 700;

  margin: 12px 0 10px 0;
}

/* teal line */

.mission-signature strong::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #5fd0d8;
  border-radius: 2px;
}

.mission-signature .credential {
  display: block;
  margin-bottom: 0px;
  line-height: 1.55;
}

/* ===============================
9. CARDS / PATH CARDS
Main content cards and topic cards
=============================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--card-shadow);
  color: white;
}

.paths-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.path-card {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--card-shadow);
  color: white;
}

.icon-badge {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: rgba(95, 208, 216, 0.10);
  border: 1px solid var(--blue-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.path-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.path-links a {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 0.9rem;
  color: white;
}

.path-card h3 {
  color: white;
}

.path-card p {
  color: rgba(255, 255, 255, 0.75);
}

/* ===============================
10. FOOTER
Bottom site footer
=============================== */

.footer {
  background: #0d2542;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 0;
  color: white;
}

.footer h4,
.footer p,
.footer a,
.footer small {
  color: rgba(255, 255, 255, 0.82);
}

.footer h4 {
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 30px;
}

.footer small {
  display: block;
  margin-top: 12px;
  color: #8899aa;
}

/* ===============================
11. UTILITIES
Small reusable helper classes
=============================== */

.text-center {
  text-align: center;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mt-20 {
  margin-top: 20px;
}

.mt-40 {
  margin-top: 40px;
}

.hidden {
  display: none;
}

/* ===============================
13. TOOL PAGE — REPORT EXPLAINER
Textarea, upload, action button, info cards
=============================== */

/* Constrained width for the tool area */
.tool-container {
  max-width: 820px;
}

/* Main input card */
.tool-card {
  background: var(--card-bg-polished);
  border: var(--card-border);
  border-radius: 20px;
  padding: 36px 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  margin-bottom: 28px;
}

/* Label above textarea */
.tool-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Report text area */
.tool-textarea {
  width: 100%;
  background: rgba(8, 22, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px 18px;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.tool-textarea::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.tool-textarea:focus {
  border-color: rgba(95, 208, 216, 0.5);
}

/* "or" divider */
.tool-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.9rem;
  font-weight: 600;
}

.tool-divider::before,
.tool-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

/* PDF upload button */
.tool-upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  box-sizing: border-box;
}

.tool-upload-label:hover {
  background: rgba(95, 208, 216, 0.08);
  border-color: rgba(95, 208, 216, 0.4);
  color: #5fd0d8;
}

.tool-upload-icon {
  font-size: 1.4rem;
  line-height: 1;
}

/* Hide the native file input */
.tool-upload-input {
  display: none;
}

/* Drag-and-drop zone */
.tool-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 32px 20px;
  background: rgba(8, 22, 42, 0.45);
  border: 2px dashed rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.tool-dropzone--over {
  background: rgba(95, 208, 216, 0.08);
  border-color: rgba(95, 208, 216, 0.55);
}

.tool-dropzone--loaded {
  border-color: rgba(95, 208, 216, 0.45);
  background: rgba(95, 208, 216, 0.06);
}

.tool-dropzone-icon {
  font-size: 2rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 4px;
}

.tool-dropzone--over .tool-dropzone-icon,
.tool-dropzone--loaded .tool-dropzone-icon {
  color: #5fd0d8;
}

.tool-dropzone-main {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.tool-dropzone-sub {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.42);
  margin: 0;
}

.tool-dropzone-browse {
  color: #5fd0d8;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tool-dropzone-browse:hover {
  color: #b9f6fb;
}

.tool-dropzone-file {
  font-size: 0.9rem;
  font-weight: 600;
  color: #5fd0d8;
  margin: 4px 0 0 0;
  min-height: 1.2em;
}

/* Action button row */
.tool-action {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.tool-btn {
  padding: 16px 52px;
  font-size: 1.05rem;
}

.tool-faq-link {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 14px;
}

.tool-faq-link a {
  color: #5fd0d8;
  text-decoration: none;
  font-weight: 600;
}

.tool-faq-link a:hover {
  text-decoration: underline;
}

/* Two-column info cards below the tool */
.tool-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 0;
}

.tool-info-card {
  background: var(--card-bg-polished);
  border: var(--card-border);
  border-radius: 16px;
  padding: 28px 28px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.tool-info-card--full {
  grid-column: 1 / -1;
}

.tool-info-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin: 0 0 12px 0;
}

.tool-info-card p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
}

.tool-info-card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 680px) {
  .tool-info-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    padding: 24px 20px;
  }
}

/* ===============================
14. INTERIOR PAGE STYLES
Compact hero + content layout for inner pages
=============================== */

/* Compact page banner (replaces full homepage hero on interior pages) */
.page-hero {
  padding: 60px 0 50px;
  background-image:
    linear-gradient(135deg, rgba(2, 15, 35, 0.90), rgba(13, 37, 66, 0.88) 55%, rgba(47, 143, 157, 0.46)),
    url("./images/mri-wall.png");
  background-size: cover;
  background-position: center;
  color: white;
  border-bottom: 1px solid rgba(95, 208, 216, 0.18);
}

.page-hero-content {
  max-width: 720px;
}

.page-eyebrow {
  display: inline-block;
  background: rgba(95, 208, 216, 0.15);
  border: 1px solid rgba(95, 208, 216, 0.35);
  color: #5fd0d8;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.page-hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: white;
  margin: 0 0 16px 0;
}

.page-hero-sub {
  font-size: 1.08rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.80);
  max-width: 560px;
  margin: 0;
}

/* Main content area for interior pages */
.content-page {
  padding: 60px 0 80px;
}

/* Narrow readable column for long-form text */
.content-narrow {
  max-width: 760px;
}

/* Individual content block */
.content-section {
  margin-bottom: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(95, 208, 216, 0.3);
}

.content-section:last-of-type {
  border-bottom: none;
}

.content-section h2 {
  font-size: 1.65rem;
  font-weight: 700;
  color: white;
  margin: 0 0 16px 0;
  letter-spacing: -0.01em;
}

.content-section p {
  font-size: 1.05rem;
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 16px;
}

.content-section p:last-child {
  margin-bottom: 0;
}

/* Styled bullet list inside content sections */
.content-list {
  margin: 12px 0 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.content-list li {
  padding-left: 24px;
  position: relative;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.content-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5fd0d8;
  opacity: 0.7;
}

/* Section divider label (e.g. "MRI of the Brain") */
.content-topic-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5fd0d8;
  padding-top: 40px;
  margin-bottom: 40px;
}

/* Disclaimer / callout box */
/* Bold text in content sections */
.content-section strong {
  color: var(--teal-light);
}

/* Report structure diagram */
.report-diagram {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 20px 0;
  border-left: 3px solid var(--teal);
  padding-left: 20px;
}

.report-diagram-item {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.75);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  gap: 10px;
}

.report-diagram-item:last-child {
  border-bottom: none;
}

.report-diagram-item--highlight {
  color: var(--teal-light);
  font-weight: 700;
  font-size: 1.02rem;
}

.report-diagram-label {
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(47, 143, 157, 0.2);
  color: var(--teal-light);
  border: 1px solid rgba(47, 143, 157, 0.4);
  border-radius: 999px;
  padding: 2px 10px;
  letter-spacing: 0.03em;
}

/* Blockquote for example report wording */
.report-quote {
  background: rgba(19, 42, 71, 0.7);
  border-left: 3px solid var(--teal);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 16px 0;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.97rem;
}

/* FAQ page */
.faq-item {
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-item summary.faq-question {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 22px 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  margin: 0;
  user-select: none;
}

.faq-item summary.faq-question::-webkit-details-marker {
  display: none;
}

.faq-item summary.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--teal-light);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.2s ease;
}

.faq-item[open] summary.faq-question::after {
  content: '−';
}

.faq-item summary.faq-question:hover {
  color: var(--teal-light);
}

.faq-body {
  padding: 0 4px 20px;
}

.faq-item strong {
  color: var(--teal-light);
}

.faq-item p {
  font-size: 0.98rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 12px;
}

.faq-item p:last-child {
  margin-bottom: 0;
}

.faq-item .content-list {
  margin: 8px 0 12px 0;
}

.disclaimer-box {
  background: rgba(19, 42, 71, 0.92);
  border: 1px solid rgba(95, 208, 216, 0.25);
  border-left: 3px solid #5fd0d8;
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 48px;
}

.disclaimer-box p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.disclaimer-box strong {
  color: #5fd0d8;
}

/* Footer links */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #5fd0d8;
}


/* ===============================
POLISHED BLUE CONTENT ELEMENTS
Reusable elements for education pages, callouts, and page sections
=============================== */

.education-card,
.info-card,
.callout-card {
  background: var(--card-bg-polished);
  border: var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.info-box,
.content-callout {
  background: rgba(95, 208, 216, 0.075);
  border: 1px solid var(--blue-border);
  border-left: 4px solid var(--teal-bright);
  border-radius: 12px;
  padding: 18px 22px;
}

.info-box strong,
.content-callout strong {
  color: var(--teal-light);
}

.education-link,
.inline-link {
  color: var(--teal-bright);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(95, 208, 216, 0.45);
}

.education-link:hover,
.inline-link:hover {
  color: var(--teal-pale);
  text-decoration-color: var(--teal-pale);
}

/* ===============================
12. RESPONSIVE
Tablet and mobile adjustments
=============================== */

@media (max-width: 980px) {
  .hero-grid,
  .paths-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .nav {
    flex-direction: column;
    gap: 12px;
  }

  h1 {
    font-size: 2.6rem;
  }
}
/* ===============================
13. STRUCTURED RESULTS (finding cards)
Used by results.html and view.html
=============================== */

/* Finding card */
.finding-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 28px;
}
.finding-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid #e5e7eb;
}
.finding-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0a1628;
  margin: 0;
  flex: 1;
}
.finding-name[contenteditable="true"] {
  border-bottom: 2px dashed #5fd0d8;
  outline: none;
  padding-bottom: 2px;
}
.btn-delete-finding {
  background: none;
  border: 1px solid #fca5a5;
  color: #dc2626;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
  margin-left: 16px;
}
.btn-delete-finding:hover { background: #fef2f2; }

/* Finding section */
.finding-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f3f4f6;
}
.finding-section:last-of-type { border-bottom: none; }
.finding-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.finding-section-heading {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #0369a1;
  margin: 0;
}
.btn-delete-section {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 2px 6px;
}
.btn-delete-section:hover { color: #dc2626; }
.finding-section-content {
  color: #374151;
  line-height: 1.75;
  font-size: 0.97rem;
  min-height: 24px;
  white-space: pre-wrap;
}
.finding-section-content[contenteditable="true"] {
  outline: none;
  border: 1px dashed #d1d5db;
  border-radius: 6px;
  padding: 8px 10px;
}

/* Resource list */
.resource-list { list-style: none; padding: 0; margin: 0 0 10px; }
.resource-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.resource-item a { color: #0369a1; }
.btn-delete-resource {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 0.82rem;
  padding: 0 4px;
}
.btn-delete-resource:hover { color: #dc2626; }

/* Add section / resource / illustration inline forms */
.add-section-dropdown { position: relative; display: inline-block; margin-top: 12px; }
.add-section-menu {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 100;
  min-width: 220px;
  padding: 6px 0;
}
.add-section-menu.open { display: block; }
.add-section-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 16px;
  background: none;
  border: none;
  font-size: 0.93rem;
  color: #374151;
  cursor: pointer;
}
.add-section-menu button:hover { background: #f3f4f6; }
.btn-add-section {
  background: #f3f4f6;
  border: 1px dashed #9ca3af;
  color: #6b7280;
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 0.88rem;
  cursor: pointer;
  margin-top: 10px;
}
.btn-add-section:hover { background: #e5e7eb; color: #374151; }
.inline-add-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}
.inline-add-form input {
  flex: 1;
  min-width: 160px;
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.88rem;
}
.inline-add-form button {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.88rem;
  cursor: pointer;
  border: none;
  background: #0369a1;
  color: #fff;
  font-weight: 600;
}

/* Finding divider */
.finding-divider {
  border: none;
  border-top: 2px solid #e5e7eb;
  margin: 8px 0 28px;
}

/* Re-run button */
.btn-rerun {
  background: #fff;
  color: #0369a1;
  border: 1px solid #0369a1;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  font-weight: 500;
}
.btn-rerun:hover { background: #f0f9ff; }
.btn-rerun:disabled { opacity: 0.5; cursor: not-allowed; }

/* view.html urgency block (dark background version) */
.view-urgency-block {
  background: rgba(253, 186, 116, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-left: 4px solid #d97706;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 16px 0;
}

.no-print { display: none !important; }

/* ===============================
PHYSICIAN / ABOUT PREVIEW SECTION
Polished homepage physician block
=============================== */

.physician-section {
  padding: 82px 0 72px;
}

.physician-grid {
  gap: clamp(44px, 6vw, 72px);
  align-items: center;
}

.physician-text {
  max-width: 560px;
}

.section-eyebrow {
  display: inline-block;
  position: relative;
  margin-bottom: 34px;
  color: #5fd0d8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.section-eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -18px;
  width: 46px;
  height: 1px;
  background: rgba(95, 208, 216, 0.75);
}

.physician-text h2 {
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}

.physician-text h2 span {
  color: #5fd0d8;
}

.physician-text p {
  font-size: 1.05rem;
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: 22px;
}

.physician-text .feature-link {
  margin-top: 12px;
  font-size: 1.05rem;
}

.physician-photo-block {
  max-width: 590px !important;
  width: 100%;
  justify-self: end;
}

.physician-image {
  max-width: 590px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(2, 15, 35, 0.25);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
}

.physician-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 18px;
  background:
    linear-gradient(
      to right,
      rgba(2, 15, 35, 0.72) 0%,
      rgba(2, 15, 35, 0.35) 24%,
      rgba(2, 15, 35, 0.05) 48%,
      rgba(2, 15, 35, 0.00) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(2, 15, 35, 0.08) 0%,
      rgba(2, 15, 35, 0.18) 100%
    );
  pointer-events: none;
}

.physician-image::after {
  display: none;
}

.physician-image img {
  max-height: 520px;
  border-radius: 18px;
  object-position: center 42%;
  filter: saturate(0.95) brightness(1.02) contrast(1.03) opacity(0.96);
}

.physician-caption {
  margin-top: 24px;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.physician-caption-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(95, 208, 216, 0.35);
  background: rgba(95, 208, 216, 0.08);
}

.physician-caption .photo-caption-name {
  font-size: 1.18rem;
}

.physician-caption .photo-caption-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.24);
}

.physician-caption .photo-caption-title {
  font-size: 1.08rem;
}

@media (max-width: 900px) {
  .physician-section {
    padding: 58px 0 54px;
  }

  .physician-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid-reverse .physician-text,
  .feature-grid-reverse .physician-photo-block {
    order: initial;
    justify-self: center;
  }

  .physician-text,
  .physician-photo-block {
    max-width: 100% !important;
  }

  .physician-caption {
    gap: 10px;
  }
}
