/* =========================================================================
   CREVSpro — Design System
   Tokens, base elements, layout primitives, and reusable components.
   Palette: off-white canvas, deep-navy ink, teal-blue + warm-amber accents.
   ========================================================================= */

:root {
  /* color */
  --ink: #0B1F33;          /* deep navy text/headings */
  --ink-2: #243447;        /* secondary text */
  --muted: #5A6B7B;        /* tertiary text */
  --line: #E2E8F0;         /* hairlines */
  --bg: #FFFFFF;
  --bg-soft: #F6F8FB;      /* off-white sections */
  --bg-muted: #EDF1F6;     /* muted gray sections */
  --navy-deep: #0B1F33;
  --navy-grad-a: #0B1F33;
  --navy-grad-b: #143150;

  --accent: #1A5FCE;       /* professional blue (AA on light backgrounds) */
  --accent-bright: #1F6FEB;/* brighter blue for icons/decoration only */
  --accent-2: #0A6A71;     /* teal (AA on muted/soft backgrounds) */
  --teal: #36B6C4;
  --warm: #C2410C;         /* warm CTA accent (AA: white text passes 4.5:1) */
  --warm-dark: #9A3412;

  --ok: #1E8E5A;
  --err: #C23A3A;

  /* type */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Sora', var(--font-sans);

  /* radius + shadow */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(11,31,51,.06), 0 1px 3px rgba(11,31,51,.04);
  --shadow: 0 6px 24px rgba(11,31,51,.08);
  --shadow-lg: 0 18px 48px rgba(11,31,51,.14);
  --ring: 0 0 0 3px rgba(31,111,235,.35);

  /* layout */
  --container: 1160px;
  --gutter: clamp(18px, 4vw, 40px);
  --section-y: clamp(56px, 8vw, 104px);
}

/* ---------------------------- reset/base ---------------------------- */
*, *::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: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-2);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; margin: 0 0 .4em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
strong { color: var(--ink); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 1000;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* ----------------------------- layout ------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
.section--muted { background: var(--bg-muted); }
.section--navy { background: linear-gradient(160deg, var(--navy-grad-a), var(--navy-grad-b)); color: #D9E2EC; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-inline: auto; }
.grid { display: grid; gap: clamp(16px, 2.2vw, 26px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* -------------------------- eyebrow/lead ---------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-sans); font-weight: 700; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2);
  margin: 0 0 .9rem;
}
.section--navy .eyebrow { color: var(--teal); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); }
.section--navy .lead { color: #C7D3E0; }

/* ----------------------------- buttons ------------------------------ */
.btn {
  --btn-bg: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-sans); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: .92em 1.5em; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .12s ease, box-shadow .15s ease, background-color .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--warm); color: #fff; box-shadow: 0 6px 18px rgba(194,65,12,.30); }
.btn-primary:hover { background: var(--warm-dark); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(26,95,206,.26); }
.btn-accent:hover { background: #1550b8; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #0a1928; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); background: #fff; }
.btn-ghost-light { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.30); }
.btn-ghost-light:hover { background: rgba(255,255,255,.18); }
.btn-lg { font-size: 1.06rem; padding: 1.05em 1.7em; }
.btn-block { width: 100%; }

/* ----------------------------- cards -------------------------------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(20px, 2.4vw, 30px); box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfdbe9; }
.card h3 { margin-top: .2rem; }
.card-icon {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(150deg, #eaf2ff, #e2f4f5); margin-bottom: 1rem;
  border: 1px solid #d9e6f5;
}
.card-icon svg { width: 26px; height: 26px; }

/* ------------------------------ pills ------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: .4em; font-size: .82rem; font-weight: 600;
  color: var(--accent-2); background: #e6f5f6; border: 1px solid #cfeaec;
  padding: .35em .8em; border-radius: 999px;
}
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 1.8em; margin-bottom: .55em; color: var(--ink-2); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .18em; width: 1.15em; height: 1.15em;
  border-radius: 50%; background: #e3f1ff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231F6FEB' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: .8em;
}

/* --------------------------- accordion ------------------------------ */
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-family: var(--font-display);
  font-weight: 600; color: var(--ink); font-size: 1.05rem; display: flex;
  align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.4rem; color: var(--accent); line-height: 1; flex: none;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--ink-2); }

/* ------------------------------ misc -------------------------------- */
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.tag-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  font-size: .9rem; font-weight: 500; color: var(--ink-2); background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: .5em 1em;
}
.section--muted .tag, .section--soft .tag { background: #fff; }

/* fade-in on scroll (progressive — visible by default if JS/IO absent) */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
.no-js [data-reveal], .reveal-off [data-reveal] { opacity: 1; transform: none; }
