/* =========================================================
   BillMyCare — Design System
   Trustworthy, clean healthcare-finance visual identity
   ========================================================= */

:root {
  /* Color tokens */
  --color-bg: #ffffff;
  --color-bg-alt: #f5f8f9;
  --color-bg-navy: #0e2a3a;
  --color-navy: #0e2a3a;
  --color-navy-soft: #163b4f;
  --color-text: #1f2d36;
  --color-muted: #586b76;
  --color-border: #e3e9ec;
  --color-border-strong: #cdd8dc;

  --color-primary: #1f6f78;      /* muted teal */
  --color-primary-dark: #164f56;
  --color-primary-light: #e6f1f1;
  --color-secondary: #3f6f8f;    /* muted blue */
  --color-secondary-light: #eaf1f5;
  --color-accent-green: #4a8f6d;
  --color-accent-green-light: #eaf5ef;

  --color-success: #2f8f5b;
  --color-success-bg: #eaf7ef;
  --color-danger: #b3423a;
  --color-danger-bg: #fbeceb;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #1f6f78 0%, #3f6f8f 100%);
  --gradient-navy: linear-gradient(160deg, #0e2a3a 0%, #163b4f 60%, #1c4a60 100%);
  --gradient-hero-glow: radial-gradient(60% 60% at 85% 15%, rgba(31,111,120,0.14) 0%, rgba(31,111,120,0) 70%),
                        radial-gradient(45% 45% at 8% 85%, rgba(63,111,143,0.12) 0%, rgba(63,111,143,0) 70%);

  /* Type */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Radius / shadow */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(14, 42, 58, 0.06), 0 1px 1px rgba(14, 42, 58, 0.04);
  --shadow-md: 0 8px 24px rgba(14, 42, 58, 0.08);
  --shadow-lg: 0 20px 45px rgba(14, 42, 58, 0.12);
  --shadow-glow: 0 10px 30px rgba(31, 111, 120, 0.22);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-max: 1180px;
  --header-height: 76px;
}

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

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--color-navy); line-height: 1.18; margin: 0 0 0.6em; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 4.8vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--color-text); }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); text-decoration: underline; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: 0.5em; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-navy);
  color: #fff;
  padding: 12px 18px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 64px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-navy { background: var(--gradient-navy); color: #fff; position: relative; overflow: hidden; }
.section-navy::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(45% 65% at 90% 10%, rgba(31,111,120,0.25) 0%, rgba(31,111,120,0) 65%);
  pointer-events: none;
}
.section-navy > .container { position: relative; z-index: 1; }
.section-navy h2, .section-navy h3, .section-navy p { color: #fff; }
.section-navy .muted { color: #b9cdd6; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.muted { color: var(--color-muted); }
.lede { font-size: 1.15rem; color: var(--color-muted); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-6 { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-6 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}

.two-col {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1.05fr 0.95fr; }
  .two-col.reverse { grid-template-columns: 0.95fr 1.05fr; }
  .two-col.reverse > *:first-child { order: 2; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s var(--ease-out), color 0.18s var(--ease-out), border-color 0.18s var(--ease-out), transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
  text-decoration: none;
  line-height: 1.1;
  min-height: 48px;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; transition: transform 0.18s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { box-shadow: 0 14px 32px rgba(31, 111, 120, 0.3); color: #fff; filter: brightness(1.04); }

.btn-secondary {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-border-strong);
}
.btn-secondary:hover { background: var(--color-bg-alt); color: var(--color-navy); border-color: var(--color-navy); }

.btn-on-navy {
  background: #fff;
  color: var(--color-navy);
  border-color: #fff;
}
.btn-on-navy:hover { background: var(--color-bg-alt); color: var(--color-navy); }

.btn-outline-on-navy {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.btn-outline-on-navy:hover { background: rgba(255,255,255,0.1); color: #fff; }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; min-height: 40px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--color-navy);
}
.brand:hover { text-decoration: none; color: var(--color-navy); }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 0.78rem;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  position: relative;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
  transition: right 0.2s var(--ease-out);
}
.main-nav a:hover { color: var(--color-primary); text-decoration: none; }
.main-nav a:hover::after { right: 0; }
.main-nav a[aria-current="page"] { color: var(--color-primary); }
.main-nav a[aria-current="page"]::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid var(--color-border-strong);
  background: #fff;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}
.nav-toggle:hover { background: var(--color-bg-alt); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Slide-in mobile drawer */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 42, 58, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease-out), visibility 0.25s var(--ease-out);
  z-index: 998;
}
.mobile-nav-overlay.open { opacity: 1; visibility: visible; }

.mobile-nav {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(84vw, 340px);
  background: #fff;
  box-shadow: -12px 0 40px rgba(14, 42, 58, 0.18);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 96px 12px 24px;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease-out);
  z-index: 999;
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  padding: 14px 16px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 10px;
}
.mobile-nav a:hover { background: var(--color-bg-alt); text-decoration: none; }
.mobile-nav a[aria-current="page"] { color: var(--color-primary); background: var(--color-primary-light); }
.mobile-nav .btn { margin: 16px 16px 0; }

body.nav-open { overflow: hidden; }

@media (min-width: 980px) {
  .main-nav { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
  .mobile-nav-overlay { display: none !important; }
}

/* Sticky mobile CTA bar */
.mobile-cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 400;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border);
  padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(14,42,58,0.08);
}
.mobile-cta-bar .btn { width: 100%; }
@media (min-width: 980px) {
  .mobile-cta-bar { display: none; }
}
@media (max-width: 979px) {
  body { padding-bottom: 78px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 68px;
  overflow: hidden;
  background-image: var(--gradient-hero-glow);
}
.hero-eyebrow { color: var(--color-primary); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 14px; }
.hero h1 { margin-bottom: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-note { margin-top: 16px; font-size: 0.88rem; color: var(--color-muted); }

.hero-art {
  position: relative;
  background: var(--color-bg-alt);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  padding: 20px;
  box-shadow: var(--shadow-lg);
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  background: var(--gradient-brand);
  border-radius: calc(var(--radius-xl) + 18px);
  opacity: 0.12;
  filter: blur(6px);
}
.hero-art img,
.hero-art svg { border-radius: var(--radius-md); width: 100%; height: auto; display: block; }

/* Differentiator bar (factual process highlights, not statistics) */
.diff-bar {
  display: grid;
  gap: 1px;
  grid-template-columns: 1fr;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 760px) {
  .diff-bar { grid-template-columns: repeat(4, 1fr); }
}
.diff-item {
  background: #fff;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.diff-item .icon-badge { margin-bottom: 0; flex-shrink: 0; width: 42px; height: 42px; }
.diff-item strong { display: block; color: var(--color-navy); font-size: 0.95rem; }
.diff-item span.sub { color: var(--color-muted); font-size: 0.82rem; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s var(--ease-out), transform 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--color-border-strong); }
.card:hover::before { transform: scaleX(1); }

.icon-badge {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.icon-badge svg { width: 24px; height: 24px; }
.card:hover .icon-badge {
  background: var(--gradient-brand);
  color: #fff;
  transform: scale(1.06);
}

.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

.card-list { list-style: none; padding: 0; margin: 0; }
.card-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}
.card-list li:last-child { border-bottom: none; }
.card-list .dot {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--color-danger-bg);
  color: var(--color-danger);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.card-list.positive .dot { background: var(--color-success-bg); color: var(--color-success); }

/* Process steps */
.steps { counter-reset: step; display: grid; gap: 28px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding-top: 8px; }
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient-navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 16px;
  box-shadow: 0 8px 18px rgba(14,42,58,0.22);
}

.stage { display: grid; gap: 16px; grid-template-columns: 56px 1fr; margin-bottom: 32px; }
.stage-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.stage h3 { margin-bottom: 6px; }

/* Trust indicators */
.trust-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item .icon-badge { background: rgba(255,255,255,0.12); color: #fff; margin-bottom: 0; flex-shrink: 0; }
.trust-item h3 { color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.trust-item p { color: #b9cdd6; margin: 0; }

/* Testimonial */
.testimonial-card {
  background: var(--color-bg-alt);
  border: 1.5px dashed var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  position: relative;
}
.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 8px; left: 24px;
  font-size: 4rem;
  font-weight: 800;
  color: var(--color-border-strong);
  line-height: 1;
  font-family: Georgia, serif;
}
.testimonial-card .quote { font-size: 1.15rem; font-style: italic; color: var(--color-navy); margin-bottom: 14px; }
.testimonial-card .label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  background: #fff;
  border: 1px solid var(--color-border-strong);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* CTA banner */
.cta-banner {
  position: relative;
  background: var(--gradient-navy);
  border-radius: var(--radius-xl);
  padding: 56px 32px;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 80% at 100% 0%, rgba(31,111,120,0.35) 0%, rgba(31,111,120,0) 60%),
              radial-gradient(40% 60% at 0% 100%, rgba(74,143,109,0.25) 0%, rgba(74,143,109,0) 60%);
  pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #cfe0e6; max-width: 640px; margin-left: auto; margin-right: auto; }

/* Article cards */
.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.article-thumb {
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-secondary-light), var(--color-primary-light));
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-secondary);
  margin-bottom: 18px;
  transition: transform 0.2s var(--ease-out);
}
.article-card:hover .article-thumb { transform: scale(1.02); }
.article-thumb svg { width: 40px; height: 40px; }
.article-card .tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.article-card .read-more { font-weight: 600; margin-top: auto; display: inline-block; }

/* FAQ accordion */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.faq-item:hover { border-color: var(--color-border-strong); box-shadow: var(--shadow-sm); }
.faq-item.open { border-color: var(--color-primary); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 22px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}
.faq-question .icon { flex-shrink: 0; transition: transform 0.2s ease; color: var(--color-primary); }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 22px;
}
.faq-item.open .faq-answer { max-height: 600px; padding: 0 22px 20px; }
.faq-answer p { color: var(--color-muted); margin: 0; }

/* ---------- Forms ---------- */
.form-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.form-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-brand);
}
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-navy);
}
.field .required { color: var(--color-danger); }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--color-border-strong);
  background: #fff;
  color: var(--color-text);
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--color-primary-light);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-error {
  color: var(--color-danger);
  font-size: 0.85rem;
  display: none;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--color-danger);
}
.field.has-error .field-error { display: block; }

.form-notice {
  background: var(--color-secondary-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.92rem;
  color: var(--color-navy);
  margin-bottom: 20px;
}
.form-notice strong { display: block; margin-bottom: 2px; }

.form-status {
  display: none;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-top: 18px;
  font-weight: 600;
}
.form-status.success { display: block; background: var(--color-success-bg); color: var(--color-success); }
.form-status.error { display: block; background: var(--color-danger-bg); color: var(--color-danger); }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

fieldset { border: none; padding: 0; margin: 0; }
legend { font-weight: 700; color: var(--color-navy); margin-bottom: 10px; padding: 0; }
.radio-row, .checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.radio-row input, .checkbox-row input { width: auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--gradient-navy);
  color: #cfe0e6;
  padding: 64px 0 24px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(40% 60% at 100% 100%, rgba(31,111,120,0.2) 0%, rgba(31,111,120,0) 65%);
  pointer-events: none;
}
.site-footer > .container { position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  margin-bottom: 40px;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-brand .brand { color: #fff; }
.footer-tagline { color: #9fb8c2; margin-top: 10px; font-size: 0.95rem; }
.site-footer h4 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #cfe0e6; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #9fb8c2;
}
.footer-disclaimer {
  font-size: 0.82rem;
  color: #9fb8c2;
  max-width: 900px;
  margin: 0 0 20px;
  line-height: 1.6;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.social-link:hover { background: rgba(255,255,255,0.18); text-decoration: none; }

/* ---------- Cookie consent ---------- */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 620px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 20px 22px;
  z-index: 900;
  display: none;
}
.cookie-banner.visible { display: block; }
.cookie-banner p { font-size: 0.9rem; margin-bottom: 14px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
/* Clear the sticky mobile CTA bar so the two don't overlap */
@media (max-width: 979px) {
  .cookie-banner { bottom: calc(78px + 12px); }
}

/* ---------- Misc content blocks ---------- */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.divider { border: none; border-top: 1px solid var(--color-border); margin: 48px 0; }

.service-detail {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  background: #fff;
}
.service-detail h3 { font-size: 1.4rem; margin-bottom: 18px; }
.service-detail-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .service-detail-grid { grid-template-columns: repeat(4, 1fr); }
}
.service-detail-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.service-detail-col p { font-size: 0.94rem; color: var(--color-text); margin: 0; }

.who-block {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--color-border);
}
.who-block:last-child { border-bottom: none; }
@media (min-width: 860px) {
  .who-block { grid-template-columns: 1fr 1fr; }
}

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.checklist svg { flex-shrink: 0; color: var(--color-primary); margin-top: 3px; width: 18px; height: 18px; }

.breadcrumb { font-size: 0.85rem; color: var(--color-muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--color-muted); }

.placeholder-box {
  border: 1.5px dashed var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: 20px;
  background: var(--color-bg-alt);
  font-size: 0.9rem;
  color: var(--color-muted);
}

.legal-content h2 { margin-top: 40px; }
.legal-content h3 { margin-top: 24px; }
.legal-content p, .legal-content li { color: var(--color-text); }
.legal-updated { color: var(--color-muted); font-size: 0.9rem; margin-bottom: 32px; }

/* Table (aging report style illustration on About/Resources if needed) */
table.simple-table { width: 100%; border-collapse: collapse; }
table.simple-table th, table.simple-table td {
  border: 1px solid var(--color-border);
  padding: 10px 12px;
  text-align: left;
  font-size: 0.92rem;
}
table.simple-table th { background: var(--color-bg-alt); }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.gap-sm { gap: 10px; }
.center-col { max-width: 760px; margin: 0 auto; }

/* Founder section */
.founder-card {
  display: grid;
  gap: 24px;
  align-items: start;
}
@media (min-width: 800px) {
  .founder-card { grid-template-columns: 220px 1fr; }
}
.founder-photo {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  border: 1.5px dashed var(--color-border-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 16px;
}

/* ---------- Timeline (How It Works) ---------- */
.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--color-border-strong);
}
@media (min-width: 820px) {
  .timeline::before { left: 50%; margin-left: -1px; }
}
.timeline-item {
  position: relative;
  padding-left: 72px;
  margin-bottom: 40px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-marker {
  position: absolute;
  left: 0; top: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gradient-navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 6px #fff, 0 8px 20px rgba(14,42,58,0.24);
  z-index: 1;
}
.timeline-item:nth-child(5n) .timeline-marker { background: var(--gradient-brand); }
.timeline-card {
  transition: box-shadow 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.timeline-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.timeline-marker svg { width: 24px; height: 24px; }
.timeline-item .timeline-step-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin-bottom: 4px;
  display: block;
}
.timeline-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.timeline-card h3 { margin-bottom: 6px; }
.timeline-card p { margin-bottom: 0; color: var(--color-muted); }

@media (min-width: 820px) {
  .timeline-item {
    padding-left: 0;
    width: 50%;
    margin-bottom: 56px;
  }
  .timeline-item:nth-child(odd) {
    padding-right: 56px;
    text-align: right;
    margin-left: 0;
  }
  .timeline-item:nth-child(even) {
    padding-left: 56px;
    margin-left: 50%;
  }
  .timeline-item:nth-child(odd) .timeline-marker {
    left: auto;
    right: -28px;
  }
  .timeline-item:nth-child(even) .timeline-marker {
    left: -28px;
  }
  .timeline-item:nth-child(odd) .timeline-step-label { justify-content: flex-end; }
}

.weekly-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent-green-light);
  color: var(--color-accent-green);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.weekly-badge svg { width: 16px; height: 16px; }

/* Visually hidden (a11y) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
