/* ==========================================================================
   ExactMark · Insurers & claims teams
   Light mode · corporate cobalt · Manrope 600 headings / Inter body
   ========================================================================== */

/* 1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --bg: #ffffff;
  --surface: #f2f5fb;
  --surface-2: #e8edf8;
  --text: #0c1a33;
  --muted: #5a6785;
  --line: #d6dcea;
  --accent: #1b4fd8;
  --accent-deep: #163fae;
  --accent-soft: rgba(27, 79, 216, .12);
  --radius: 8px;
  --radius-card: 12px;
  --wrap: 1140px;
  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --shadow: 0 20px 44px -26px rgba(12, 26, 51, .35);
}

/* 2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.012em;
  line-height: 1.15;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.2rem, 4.3vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 2.9vw, 2.3rem); }
h3 { font-size: 1.15rem; }
h3 small { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-left: 8px; vertical-align: middle; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .85em;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
}
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* 3. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 70px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
}
.brand img { width: 26px; height: 26px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--accent); }

/* 4. Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -12px rgba(27, 79, 216, .7); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-sm { padding: 10px 16px; font-size: .92rem; }
.text-link { font-weight: 600; color: var(--accent); }

/* 5. Hero
   -------------------------------------------------------------------------- */
.hero {
  padding: 80px 0 88px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}
.lede { font-size: 1.1rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin: 28px 0 18px; }
.trust-line { display: flex; flex-wrap: wrap; font-size: .88rem; color: var(--muted); margin: 0; }
.trust-line span + span::before { content: "·"; margin: 0 10px; color: var(--accent); }

/* 6. Hero visual: claims-platform window
   -------------------------------------------------------------------------- */
.hero-visual { position: relative; padding-bottom: 140px; }
.app-window {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.app-titlebar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: .82rem;
}
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #c3cbdf; }
.app-title { font-weight: 600; color: var(--text); flex: 1; }
.session-chip {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}
.app-body { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; padding: 18px; }
.photo-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 70%, #6e778c 0%, transparent 55%),
    linear-gradient(160deg, #cfd5e2 0%, #8e97ab 55%, #4f586d 100%);
}
.photo-mark {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(27, 79, 216, .55) .8px, transparent 1.2px);
  background-size: 14px 14px;
  opacity: .45;
  animation: shimmer 5s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { opacity: .3; }
  50% { opacity: .6; }
}
.photo-caption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-size: .68rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(12, 26, 51, .75);
  color: #fff;
}
.thumb-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.thumb-row i { display: block; aspect-ratio: 1; border-radius: 6px; background: linear-gradient(150deg, #dfe4ee, #aab3c6); }
.thumb-row i:first-child { outline: 2px solid var(--accent); outline-offset: 1px; }
.detail-pane { display: grid; gap: 14px; align-content: start; }
.detail-block { padding: 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.detail-label { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.line { display: block; height: 9px; border-radius: 3px; background: #c9d1e3; margin-top: 7px; }
.line:first-of-type { margin-top: 0; }
.w-40 { width: 40%; }
.w-50 { width: 50%; }
.w-55 { width: 55%; }
.w-70 { width: 70%; }
.w-80 { width: 80%; }
.w-90 { width: 90%; }
.match-card {
  position: absolute;
  left: 22px;
  bottom: 0;
  width: min(320px, 90%);
  background: var(--bg);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  font-size: .85rem;
  animation: rise .8s ease-out .4s both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.match-label { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 700; }
.match-card strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1rem; margin: 4px 0 2px; }
.match-source { display: block; color: var(--muted); font-variant-numeric: tabular-nums; }
.match-ranked { margin-top: 12px; display: grid; gap: 7px; }
.match-ranked li {
  display: grid;
  grid-template-columns: 60px 1fr 36px;
  align-items: center;
  gap: 8px;
  font-size: .74rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.match-ranked i { position: relative; display: block; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.match-ranked i::after { content: ""; position: absolute; inset: 0; border-radius: 3px; background: var(--accent); }
.match-ranked .r1 i::after { width: 89%; }
.match-ranked .r2 i::after { width: 8%; background: #9fb0d8; }
.match-ranked .r3 i::after { width: 4%; background: #9fb0d8; }
.match-ranked b { text-align: right; font-weight: 600; color: var(--text); }

/* 7. Value strip: four fact tiles
   -------------------------------------------------------------------------- */
.value-strip { padding: 40px 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.value-grid article {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 22px 22px 20px;
}
.value-grid strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--accent);
  letter-spacing: -.01em;
  margin-bottom: 6px;
}
.value-grid span { font-size: .9rem; color: var(--muted); }

/* 8. Sections
   -------------------------------------------------------------------------- */
.section { padding: 92px 0; }
.section-panel { background: var(--surface); }
.section-head { max-width: 42em; margin-bottom: 44px; }
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px 26px 24px;
}

/* Problem → solution */
.problem-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.problem-copy p { color: var(--muted); }
.leak-list { margin-top: 24px; display: grid; gap: 10px; }
.leak-list li {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  font-size: .95rem;
  color: var(--muted);
}
.leak-list li::before { content: ""; flex: 0 0 4px; border-radius: 2px; background: var(--accent); }
.leak-list strong { color: var(--text); font-weight: 600; margin-right: 4px; }
.solution-card {
  background: var(--surface-2);
  border-radius: var(--radius-card);
  padding: 32px;
}
.solution-card p { color: var(--text); font-size: .98rem; }
.solution-card p:last-child { margin-bottom: 0; }

/* How it works: three horizontal step cards */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px 26px;
  box-shadow: 0 12px 30px -24px rgba(12, 26, 51, .4);
}
.step-num {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .06em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}
.step-card p { color: var(--muted); font-size: .96rem; margin: 0; }

/* Capabilities: card grid */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cap-grid .card { border-top: 3px solid var(--accent); }
.cap-grid p { color: var(--muted); font-size: .96rem; margin: 0; }

/* FAQ: two-column grid of question cards */
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.faq-card h3 { display: flex; gap: 12px; align-items: flex-start; }
.faq-card h3::before {
  content: "?";
  flex: 0 0 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .9rem;
  font-weight: 700;
}
.faq-card p { color: var(--muted); font-size: .96rem; margin: 0; }

/* 9. Final CTA band
   -------------------------------------------------------------------------- */
.cta-band { padding: 40px 0 96px; }
.cta-panel {
  text-align: center;
  padding: 64px 40px;
  border-radius: 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.cta-panel h2 { max-width: 22em; margin: 0 auto .5em; }
.cta-panel p { color: var(--muted); font-size: 1.08rem; max-width: 40em; margin: 0 auto; }
.cta-actions { display: flex; gap: 24px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 30px; }

/* 10. Footer
   -------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: .92rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-brand .brand { font-size: 1rem; }
.footer-brand .brand img { width: 22px; height: 22px; }
.tagline { color: var(--muted); }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: var(--text); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }

/* 11. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 600px; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-grid { grid-template-columns: 1fr; }
  .steps, .cap-grid { grid-template-columns: 1fr 1fr; }
  .site-nav a:not(.btn) { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .hero { padding: 48px 0 44px; }
  .section { padding: 60px 0; }
  .value-grid, .steps, .cap-grid, .faq-grid { grid-template-columns: 1fr; }
  .app-body { grid-template-columns: 1fr; }
  .session-chip { display: none; }
  .hero-visual { padding-bottom: 0; }
  .match-card { position: static; width: auto; margin-top: 16px; }
  .hero-actions, .cta-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .btn { width: 100%; }
  .cta-panel { padding: 44px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* 12. Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
