/* =====================================================================
   VetCaseIQ — Marketing site stylesheet
   One central file. Brand tokens live in :root below.
   Primary teal  #1a9795   |   Primary blue/navy  #0d507b
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --color-bg: #f7f9fb;
  --color-surface: #ffffff;
  --color-surface-alt: #eef4f6;
  --color-primary: #0d507b;          /* deep navy/blue — trust, headings, nav, footer */
  --color-primary-dark: #093a5a;
  --color-secondary: #1a9795;        /* teal — accents, CTAs, interactive */
  --color-secondary-dark: #147a78;
  --color-accent: #1a9795;
  --color-mint: #e6f4f3;
  --color-text: #1f2a37;
  --color-heading: #0d507b;
  --color-muted: #5b6675;
  --color-border: #e2e8ee;
  --color-border-strong: #cdd8e2;
  --color-success: #2f8f6b;
  --color-warn: #b5762a;

  --shadow-soft: 0 1px 2px rgba(13, 80, 123, 0.05), 0 10px 28px rgba(13, 80, 123, 0.07);
  --shadow-hover: 0 2px 6px rgba(13, 80, 123, 0.08), 0 16px 40px rgba(13, 80, 123, 0.12);
  --shadow-inset: inset 0 0 0 1px var(--color-border);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --container: 1160px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Helvetica Neue", sans-serif;

  --gradient-hero: linear-gradient(135deg, #0d507b 0%, #12688f 55%, #1a9795 130%);
  --gradient-accent: linear-gradient(135deg, #1a9795 0%, #12688f 100%);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
.site-header {
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: 500px;
  height: 72px;
  object-fit: contain;
}
@media (max-width: 768px) {
  .site-header {
    min-height: 74px;
  }

  .nav {
    min-height: 74px;
    justify-content: flex-start;
  }

  .nav-toggle {
    flex-shrink: 0;
  }

.brand-logo,
.brand-logo-full {
    width: min(200px, calc(100vw - 148px));
    height: auto;
    max-height: 72px;
    object-fit: contain;
    margin-right: 0;
}
}

.brand-logo-full {
  width: 180px;
  height: auto;
  max-height: 52px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-weight: 800;
  color: var(--color-primary-dark, #0d507b);
}

.brand-tag {
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 3px;
}

@media (max-width: 768px) {
  .brand-logo-full {
    width: 150px;
    max-height: 46px;
  }

  .brand-tag {
    display: none;
  }
}
.header-container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding-left: 56px;
  padding-right: 56px;
}

.nav {
  min-height: 88px;
  display: flex;
  align-items: center;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  color: var(--color-heading);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1rem; }
a { color: var(--color-secondary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-secondary-dark);
  margin-bottom: 0.75rem;
}

.lead { font-size: 1.18rem; color: var(--color-muted); }

.muted { color: var(--color-muted); }
.center { text-align: center; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.container-narrow { max-width: 820px; }

.section { padding-block: clamp(3.25rem, 7vw, 5.5rem); }
.section-tight { padding-block: clamp(2.25rem, 4vw, 3rem); }
.section-surface { background: var(--color-surface); }
.section-alt { background: var(--color-surface-alt); }
.section-navy {
  background: var(--gradient-hero);
  color: #eaf3f8;
}
.section-navy h1, .section-navy h2, .section-navy h3 { color: #ffffff; }
.section-navy .lead, .section-navy p { color: #d3e6f0; }

.stack > * + * { margin-top: 1rem; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.section-head { max-width: 760px; margin: 0 auto 2.75rem; text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* Focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--color-secondary); color: #fff; }
.btn-primary:hover { background: var(--color-secondary-dark); color: #fff; box-shadow: var(--shadow-soft); }

.btn-navy { background: var(--color-primary); color: #fff; }
.btn-navy:hover { background: var(--color-primary-dark); color: #fff; box-shadow: var(--shadow-soft); }

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border-strong);
}
.btn-outline:hover { color: var(--color-primary); border-color: var(--color-primary); background: #fff; }

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }

.btn-lg { padding: 1rem 1.9rem; font-size: 1.06rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.btn-row.center { justify-content: center; }

/* ---------- Badges / pills ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 650;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  background: var(--color-mint);
  color: var(--color-secondary-dark);
  border: 1px solid #cfe8e6;
}
.badge-navy { background: #e6eef4; color: var(--color-primary); border-color: #cddcea; }
.badge-warn { background: #fbf1e2; color: var(--color-warn); border-color: #f0dcc0; }
.badge-neutral { background: #eef1f5; color: var(--color-muted); border-color: #e0e5eb; }
.badge-dot::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-secondary);
  display: inline-block;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
    min-height: 88px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 20px rgba(13, 80, 123, 0.08); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-right: auto;
  color: var(--color-primary);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--gradient-accent);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-soft);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 1.2rem; color: var(--color-primary); letter-spacing: -0.02em; }
.brand-tag { font-size: 0.68rem; color: var(--color-muted); font-weight: 600; letter-spacing: 0.01em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--color-text);
  font-weight: 550;
  font-size: 0.95rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
}
.nav-links a:hover { color: var(--color-primary); background: var(--color-surface-alt); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--color-secondary-dark); background: var(--color-mint); }

.nav-cta { display: flex; align-items: center; gap: 0.6rem; }
.nav-cta .btn { padding: 0.62rem 1.05rem; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: var(--gradient-hero);
  color: #eaf3f8;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 340px at 82% 10%, rgba(26,151,149,0.35), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero p.lead { color: #d6e8f1; }
.hero .safety-note {
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: #bfd9e6;
  max-width: 520px;
}
.hero-sub { color: #cfe3ee; font-size: 1.15rem; margin-bottom: 1.75rem; }

/* Page hero (smaller, interior pages) */
.page-hero {
  background: var(--gradient-hero);
  color: #eaf3f8;
  padding-block: clamp(2.75rem, 6vw, 4rem);
}
.page-hero h1 { color: #fff; }
.page-hero p { color: #d3e6f0; max-width: 720px; }
.page-hero .eyebrow { color: #9fd7d4; }

/* Breadcrumb */
.breadcrumb { font-size: 0.85rem; margin-bottom: 0.75rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.breadcrumb a { color: #b9dae8; }
.breadcrumb li + li::before { content: "/"; color: #7fb4cc; margin-right: 0.4rem; }
.breadcrumb [aria-current="page"] { color: #eaf3f8; }

/* ---------- Cards ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.card-hover:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: #d6e2ec; }
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }

.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--color-mint);
  color: var(--color-secondary-dark);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-size: 1.35rem;
  font-weight: 800;
}
.card-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
  margin-bottom: 1rem;
}

/* Trust strip */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.trust-item {
  display: flex; align-items: center; gap: 0.65rem;
  font-weight: 600; color: var(--color-primary);
  font-size: 0.98rem;
}
.trust-item .tick {
  flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--color-mint); color: var(--color-secondary-dark);
  display: grid; place-items: center; font-size: 0.85rem; font-weight: 800;
}

/* Feature list with check */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.7rem;
}
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0.05rem;
  width: 1.3rem; height: 1.3rem;
  background: var(--color-mint); color: var(--color-secondary-dark);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.75rem; font-weight: 800;
}
.x-list { list-style: none; margin: 0; padding: 0; }
.x-list li { position: relative; padding-left: 1.9rem; margin-bottom: 0.7rem; }
.x-list li::before {
  content: "×";
  position: absolute; left: 0; top: -0.05rem;
  width: 1.3rem; height: 1.3rem;
  background: #faeceb; color: #b5462a;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.9rem; font-weight: 800;
}

/* ---------- Image placeholders ---------- */
.img-ph {
  position: relative;
  border-radius: var(--radius-md);
  background:
    repeating-linear-gradient(45deg, rgba(13,80,123,0.045) 0 14px, rgba(13,80,123,0.02) 14px 28px),
    var(--color-surface-alt);
  border: 1.5px dashed var(--color-border-strong);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--color-muted);
  min-height: 220px;
  padding: 1.5rem;
  overflow: hidden;
}
.img-ph .img-ph-inner { max-width: 90%; }
.img-ph .img-ph-label {
  font-weight: 700; color: var(--color-primary);
  font-size: 0.95rem; margin-bottom: 0.35rem;
}
.img-ph .img-ph-sub { font-size: 0.82rem; color: var(--color-muted); }
.img-ph .img-ph-icon {
  font-size: 1.6rem; margin-bottom: 0.6rem; opacity: 0.6;
}
.img-ph.tall { min-height: 360px; }
.img-ph.wide { min-height: 300px; }

/* ---------- Report preview card (clickable PDF) ---------- */
.report-preview-card {
  position: relative;
  display: block;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.report-preview-card:hover,
.report-preview-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}
.report-preview-media {
  position: relative;
  line-height: 0;
  background: var(--color-surface-alt);
}
.report-preview-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1700 / 2200;
  object-fit: cover;
}
.report-preview-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 80, 123, 0.5) 0%, rgba(13, 80, 123, 0) 45%);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.report-preview-card:hover .report-preview-tint,
.report-preview-card:focus-visible .report-preview-tint {
  opacity: 1;
}
.report-preview-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.25rem;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}
.report-preview-card:hover .report-preview-cta,
.report-preview-card:focus-visible .report-preview-cta {
  background: var(--color-primary-dark);
}

.story-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.story-photo img {
  display: block;
  width: 100%;
  object-fit: cover;
}
.story-photo.compact {
  max-width: 70%;
  margin-inline: auto;
}
@media (max-width: 480px) {
  .story-photo img { height: 260px; aspect-ratio: auto; }
  .story-photo.compact { max-width: 100%; }
}

/* ---------- Report preview (homepage + example) ---------- */
.report-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  overflow: hidden;
}
.report-card-top {
  background: var(--color-primary);
  color: #fff;
  padding: 1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.report-card-top .r-title { font-weight: 700; font-size: 0.98rem; }
.report-card-top .r-dot { display: flex; gap: 0.35rem; }
.report-card-top .r-dot span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); }
.report-card-body { padding: 1.35rem 1.35rem 1.6rem; }

.report-section-row {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--color-border);
}
.report-section-row:last-child { border-bottom: 0; }
.report-section-row .rs-icon {
  flex: none; width: 30px; height: 30px; border-radius: 8px;
  background: var(--color-mint); color: var(--color-secondary-dark);
  display: grid; place-items: center; font-size: 0.85rem; font-weight: 800;
}
.report-section-row .rs-title { font-weight: 650; color: var(--color-primary); font-size: 0.96rem; }
.report-section-row .rs-desc { font-size: 0.85rem; color: var(--color-muted); }

/* Full example report styling */
.report-doc {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.report-doc-header {
  background: var(--gradient-hero);
  color: #fff;
  padding: 1.75rem;
}
.report-doc-header h2 { color: #fff; margin-bottom: 0.35rem; }
.report-doc-header .r-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.report-doc-header .badge { background: rgba(255,255,255,0.16); color: #eafcfb; border-color: rgba(255,255,255,0.35); }
.report-doc-body { padding: 1.75rem; }

.report-block { padding: 1.4rem 0; border-bottom: 1px solid var(--color-border); }
.report-block:first-child { padding-top: 0; }
.report-block:last-child { border-bottom: 0; padding-bottom: 0; }
.report-block h3 {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.1rem; margin-bottom: 0.85rem;
}
.report-block h3 .rb-num {
  flex: none; width: 26px; height: 26px; border-radius: 7px;
  background: var(--color-mint); color: var(--color-secondary-dark);
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 800;
}

.snapshot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem; }
.snapshot-item {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
}
.snapshot-item .s-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-muted); font-weight: 700; }
.snapshot-item .s-value { font-weight: 650; color: var(--color-primary); }

/* Differential block */
.dx {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
  background: var(--color-surface);
}
.dx:last-child { margin-bottom: 0; }
.dx-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.dx-head h4 { margin: 0; font-size: 1.05rem; color: var(--color-primary); }
.dx-meta { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.dx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 0.75rem; }
.dx-col h5 { margin: 0 0 0.4rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-muted); }
.dx-col ul { margin: 0; padding-left: 1.1rem; font-size: 0.92rem; }
.dx-col li { margin-bottom: 0.25rem; }
.dx-caveat {
  margin-top: 0.85rem;
  background: var(--color-mint);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  color: #14504e;
}

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px;
  width: 2px; background: var(--color-border-strong);
}
.timeline li { position: relative; padding-left: 3rem; padding-bottom: 1.4rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 8px; top: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--color-secondary);
}
.timeline .t-when { font-weight: 700; color: var(--color-primary); }
.timeline .t-what { color: var(--color-text); }

/* Process steps (how it works) */
.process { counter-reset: step; }
.process-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}
.process-step:last-child { border-bottom: 0; }
.process-step .ps-num {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--gradient-accent);
  color: #fff; font-weight: 800; font-size: 1.35rem;
  display: grid; place-items: center;
  box-shadow: var(--shadow-soft);
}
.process-step h3 { margin-bottom: 0.35rem; }

/* In/Out comparison */
.io-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.io-panel { border-radius: var(--radius-md); padding: 1.5rem; border: 1px solid var(--color-border); }
.io-in { background: var(--color-surface-alt); }
.io-out { background: var(--color-mint); border-color: #cbe6e4; }
.io-panel h3 { margin-bottom: 1rem; }

/* CTA band */
.cta-band {
  background: var(--gradient-hero);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.25rem);
  text-align: center;
  box-shadow: var(--shadow-hover);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d3e6f0; max-width: 620px; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 1.5rem; }

/* Safety callout */
.safety-callout {
  background: #eef4f6;
  border: 1px solid #d3e2ea;
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
}
.safety-callout.teal { border-left-color: var(--color-secondary); background: var(--color-mint); border-color: #cbe6e4; }
.safety-callout h3 { margin-bottom: 0.5rem; }
.safety-callout p:last-child { margin-bottom: 0; }

.notice {
  background: #fbf6ec;
  border: 1px solid #efe1c5;
  border-left: 4px solid var(--color-warn);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.15rem;
  font-size: 0.92rem;
  color: #6a4a1c;
}
.notice strong { color: #5a3f18; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 650; font-size: 0.9rem; color: var(--color-primary); }
.field label .req { color: #b5462a; }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 0.98rem;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--color-secondary); outline: none; box-shadow: 0 0 0 3px rgba(26,151,149,0.15); }
.field .hint { font-size: 0.8rem; color: var(--color-muted); }
.field .error-msg { font-size: 0.82rem; color: #b5462a; display: none; }
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: #d06a4e; }
.field.invalid .error-msg { display: block; }

.check-field { display: flex; align-items: flex-start; gap: 0.65rem; }
.check-field input { width: auto; margin-top: 0.25rem; flex: none; }
.check-field label { font-weight: 500; color: var(--color-text); font-size: 0.92rem; }

.form-note {
  margin-top: 1rem;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  color: var(--color-muted);
}
.form-success {
  display: none;
  background: var(--color-mint);
  border: 1px solid #bfe3e0;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  color: #14504e;
  font-weight: 600;
  margin-top: 1rem;
}

/* ---------- FAQ accordion ---------- */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  margin-bottom: 0.85rem;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  font-size: 1.02rem;
  color: var(--color-primary);
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-q .faq-icon { flex: none; transition: transform 0.2s ease; color: var(--color-secondary-dark); font-size: 1.3rem; line-height: 1; }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-a { padding: 0 1.25rem 1.2rem; color: var(--color-text); }
.faq-a p:last-child { margin-bottom: 0; }
/* JS-enhanced: collapse by default. Without JS, panels stay open (see main.js). */
.js .faq-a[hidden] { display: none; }

/* ---------- Team cards ---------- */
.team-card { text-align: center; }
.team-photo {
  width: 190px; height: 190px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #fff;
  display: grid; place-items: center;
  font-size: 1.9rem; font-weight: 800;
  box-shadow: var(--shadow-soft);
  border: 3px dashed rgba(255,255,255,0.5);
  position: relative;
}
.team-photo .ph-tag {
  position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  font-size: 0.62rem; background: #fff; color: var(--color-muted);
  border: 1px solid var(--color-border); border-radius: 999px;
  padding: 0.1rem 0.5rem; white-space: nowrap; font-weight: 700;
}
.team-photo.has-photo {
  background: none;
  border: 3px solid #fff;
  padding: 0;
  overflow: hidden;
}
.team-photo img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.team-card h3 { margin-bottom: 0.15rem; font-size: 1.15rem; }
.team-card .role { color: var(--color-secondary-dark); font-weight: 650; font-size: 0.9rem; margin-bottom: 0.65rem; }
.team-card .credentials { color: var(--color-muted); font-weight: 600; font-size: 0.82rem; margin-top: -0.5rem; margin-bottom: 0.65rem; }
.team-card .bio { font-size: 0.92rem; color: var(--color-muted); }

/* ---------- Tables (responsive) ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--color-border); }
table.data {
  width: 100%; border-collapse: collapse; background: #fff; font-size: 0.95rem;
}
table.data th, table.data td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--color-border); }
table.data th { background: var(--color-surface-alt); color: var(--color-primary); font-weight: 700; }
table.data tr:last-child td { border-bottom: 0; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--color-secondary); box-shadow: var(--shadow-hover); }
.price-card .p-name { font-weight: 800; color: var(--color-primary); font-size: 1.2rem; }
.price-card .p-price { font-size: 1.9rem; font-weight: 800; color: var(--color-secondary-dark); margin: 0.5rem 0 0.25rem; }
.price-card .p-price small { font-size: 0.85rem; color: var(--color-muted); font-weight: 600; }
.price-card ul { margin: 1rem 0 1.5rem; }
.price-card .btn { margin-top: auto; }
.price-card.soon { opacity: 0.94; }
.price-card.soon .p-price { color: var(--color-muted); }

/* ---------- Use case rows ---------- */
.usecase {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.usecase .uc-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--color-mint); color: var(--color-secondary-dark);
  display: grid; place-items: center; font-size: 1.5rem; font-weight: 800;
}
.usecase h3 { margin-bottom: 0.5rem; }
.uc-part { margin-bottom: 0.6rem; }
.uc-part .uc-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 700; color: var(--color-muted); display: block; margin-bottom: 0.1rem;
}
.uc-limit { font-size: 0.88rem; color: var(--color-warn); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary);
  color: #cfe0ec;
  padding-block: 3rem 1.5rem;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-logo-plate {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 10px 18px;
}
.footer-logo {
  display: block;
  height: 64px;
  width: auto;
}
.footer-about { font-size: 0.92rem; color: #b6cddd; margin-top: 0.85rem; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { color: #cfe0ec; font-size: 0.94rem; }
.footer-col a:hover { color: #fff; }
.footer-disclaimer {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 0.83rem;
  color: #9fbace;
  line-height: 1.6;
}
.footer-bottom {
  margin-top: 1.25rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem;
  font-size: 0.85rem; color: #9fbace;
}
.footer-bottom a { color: #cfe0ec; }

/* ---------- 404 ---------- */
.notfound {
  min-height: 62vh;
  display: grid; place-items: center; text-align: center;
  padding-block: 4rem;
}
.notfound .code {
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-accent);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 780px; }
.prose h2 { margin-top: 2.25rem; font-size: 1.4rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }

/* ---------- Utility spacing ---------- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* =====================================================================
   Responsive breakpoints — 1024 / 768 / 480
   ===================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
  .snapshot-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .header-container { padding-left: 20px; padding-right: 20px; }
  .nav-links,
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  /* Mobile menu drawer */
  .mobile-menu {
    display: none;
    border-top: 1px solid var(--color-border);
    background: #fff;
    padding: 0.75rem 1.5rem 1.25rem;
  }
  .mobile-menu.open { display: block; }
  .mobile-menu ul { list-style: none; margin: 0 0 1rem; padding: 0; }
  .mobile-menu li { border-bottom: 1px solid var(--color-border); }
  .mobile-menu a {
    display: block; padding: 0.85rem 0.25rem; color: var(--color-text);
    font-weight: 600; font-size: 1.02rem;
  }
  .mobile-menu a:hover { color: var(--color-primary); text-decoration: none; }
  .mobile-menu .m-cta { display: grid; gap: 0.6rem; margin-top: 0.5rem; }
  .mobile-menu .m-cta .btn { width: 100%; }

  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
  .team-photo { width: 135px; height: 135px; }
  .io-grid { grid-template-columns: 1fr; }
  .dx-grid { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
  .footer-logo { height: 48px; }
  .footer-logo-plate { padding: 8px 14px; }
  .process-step { grid-template-columns: 1fr; gap: 0.5rem; }
  .process-step .ps-num { width: 48px; height: 48px; font-size: 1.15rem; }
  .usecase { grid-template-columns: 1fr; }
  .report-doc-header, .report-doc-body { padding: 1.25rem; }
  .snapshot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .container { padding-inline: 1.15rem; }
  .trust-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .snapshot-grid { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  h1 { font-size: 1.9rem; }
  .dx-head { flex-direction: column; align-items: flex-start; }
}

/* Reveal mobile menu container only when JS present & below breakpoint */
.mobile-menu { }
@media (min-width: 769px) { .mobile-menu { display: none !important; } }

/* =====================================================================
   Print styles — mainly for the example report page
   ===================================================================== */
@media print {
  .site-header, .site-footer, .nav-toggle, .mobile-menu,
  .btn, .cta-band, .print-hide { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .report-doc { box-shadow: none; border: 1px solid #999; }
  .report-doc-header { background: #0d507b !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .section { padding-block: 0.5rem; }
  a { color: #000; text-decoration: none; }
}
