/* =========================================================================
   Clerkly - clerkly.us
   Design system + site styles
   ---------------------------------------------------------------------
   1.  Tokens
   2.  Reset & base
   3.  Layout primitives
   4.  Typography
   5.  Buttons & pills
   6.  Header / navigation
   7.  Hero
   8.  Cards & components
   9.  Page sections
   10. Forms
   11. Footer
   12. Utilities, motion & responsive
   ========================================================================= */

/* ---------------------------------------------------------------- 1. Tokens */
:root {
  /* Brand */
  --navy-900: #071527;
  --navy-800: #0b2545;
  --navy-700: #13385f;
  --blue-600: #1d6fa5;
  --blue-500: #2a8bc9;
  --teal-500: #17b8a6;
  --teal-400: #35d0be;
  --sand-400: #f2c879;

  /* Neutrals */
  --ink: #0c1b2a;
  --ink-soft: #33455c;
  --muted: #5b6b80;
  --line: #e3e9f1;
  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --bg-tint: #eef4fa;

  /* Semantic */
  --brand: var(--blue-600);
  --brand-ink: var(--navy-800);
  --accent: var(--teal-500);
  --danger: #c8372d;
  --success: #167a58;

  /* Type */
  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Space */
  --gutter: 24px;
  --maxw: 1180px;
  --maxw-narrow: 760px;
  --section-y: clamp(64px, 8vw, 112px);

  /* Radii & shadow */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-full: 999px;
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, .06), 0 2px 8px rgba(11, 37, 69, .05);
  --shadow-md: 0 4px 12px rgba(11, 37, 69, .07), 0 14px 32px rgba(11, 37, 69, .08);
  --shadow-lg: 0 18px 50px rgba(11, 37, 69, .16);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ----------------------------------------------------------- 2. Reset & base */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; display: block; }

a {
  color: var(--brand);
  text-decoration: none;
  transition: color .18s var(--ease);
}
a:hover { color: var(--navy-800); }

ul, ol { padding-left: 1.15em; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--navy-800); color: #fff; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--navy-800);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* --------------------------------------------------- 3. Layout primitives */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--maxw-narrow); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 5vw, 72px); }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--bg-tint); }
.section--dark {
  background: var(--navy-800);
  color: rgba(255, 255, 255, .78);
}
.section--dark h1, .section--dark h2,
.section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .lead { color: rgba(255, 255, 255, .74); }
.section--dark a { color: var(--teal-400); }
.section--dark a:hover { color: #fff; }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split--reverse .split__media { order: -1; }

/* ------------------------------------------------------------ 4. Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--brand-ink);
  line-height: 1.18;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.15rem, 4.6vw, 3.5rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.7rem, 3.1vw, 2.5rem); }
h3 { font-size: clamp(1.18rem, 1.8vw, 1.42rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.62;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section--dark .eyebrow { color: var(--teal-400); }

.section-head {
  max-width: 660px;
  margin-bottom: clamp(36px, 4vw, 56px);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head--center .eyebrow { justify-content: center; }

/* ------------------------------------------------------ 5. Buttons & pills */
.btn {
  --btn-bg: var(--navy-800);
  --btn-fg: #fff;
  --btn-bd: var(--navy-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: .97rem;
  font-weight: 700;
  line-height: 1;
  padding: 15px 26px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  text-align: center;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease);
}
.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { --btn-bg: var(--blue-600); --btn-bd: var(--blue-600); }
.btn--primary:hover { --btn-bg: var(--navy-700); --btn-bd: var(--navy-700); }

.btn--accent {
  --btn-bg: var(--accent);
  --btn-bd: var(--accent);
  --btn-fg: var(--navy-900);
}
.btn--accent:hover { --btn-bg: var(--teal-400); --btn-bd: var(--teal-400); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy-800);
  --btn-bd: var(--line);
}
.btn--ghost:hover { --btn-bd: var(--navy-800); }

.btn--light { --btn-bg: #fff; --btn-fg: var(--navy-800); --btn-bd: #fff; }

.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, .38);
}
.btn--outline-light:hover { --btn-bd: #fff; }

.btn--sm { padding: 11px 20px; font-size: .88rem; }
.btn--lg { padding: 17px 32px; font-size: 1.02rem; }
.btn--block { display: flex; width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.btn-row--center { justify-content: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--r-full);
  background: var(--bg-tint);
  border: 1px solid var(--line);
  font-size: .82rem;
  font-weight: 600;
  font-family: var(--font-head);
  color: var(--navy-700);
}
.pill--accent {
  background: rgba(23, 184, 166, .12);
  border-color: rgba(23, 184, 166, .3);
  color: #0d7d70;
}
.pill--live {
  background: rgba(22, 122, 88, .1);
  border-color: rgba(22, 122, 88, .25);
  color: var(--success);
}
.pill--live .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(22, 122, 88, .45); }
  70%  { box-shadow: 0 0 0 9px rgba(22, 122, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 122, 88, 0); }
}

/* --------------------------------------------------------------- 6. Header */
.topbar {
  background: var(--navy-800);
  color: rgba(255, 255, 255, .76);
  font-size: .84rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 40px;
  padding-block: 7px;
}
.topbar a { color: rgba(255, 255, 255, .93); font-weight: 600; }
.topbar a:hover { color: var(--teal-400); }
.topbar__links { display: flex; align-items: center; gap: 20px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(11, 37, 69, .06);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -.03em;
  color: var(--navy-800);
  flex: none;
}
.brand:hover { color: var(--navy-800); }
.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--navy-800), var(--blue-600) 62%, var(--teal-500));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(29, 111, 165, .3);
  flex: none;
}
.brand__text { line-height: 1.1; }
.brand__text small {
  display: block;
  font-family: var(--font-body);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  display: block;
  position: relative;
  padding: 10px 15px;
  border-radius: var(--r-sm);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .96rem;
  color: var(--ink-soft);
}
.nav__link:hover { color: var(--navy-800); background: var(--bg-soft); }
.nav__link.is-active { color: var(--navy-800); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

/* The in-drawer call-to-action only exists on small screens. */
.nav__cta { display: none; }

.nav__actions { display: flex; align-items: center; gap: 12px; flex: none; }

.nav__toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  position: relative;
  transition: background-color .2s var(--ease);
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform .25s var(--ease), top .2s var(--ease);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ----------------------------------------------------------------- 7. Hero */
.hero {
  position: relative;
  padding-block: clamp(56px, 7vw, 96px) clamp(64px, 8vw, 104px);
  background:
    radial-gradient(760px 420px at 88% -8%, rgba(23, 184, 166, .14), transparent 62%),
    radial-gradient(680px 460px at 4% 8%, rgba(29, 111, 165, .12), transparent 60%),
    var(--bg-soft);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .accent {
  background: linear-gradient(100deg, var(--blue-600), var(--teal-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--blue-600);
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  color: var(--muted);
}
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 17px; height: 17px; color: var(--accent); flex: none; }

/* Hero visual card */
.hero__card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px;
}
.hero__card::before {
  content: "";
  position: absolute;
  inset: -18px -18px auto auto;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 184, 166, .22), transparent 70%);
  z-index: -1;
}
.hero__card-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.hero__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--navy-800), var(--blue-500));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  flex: none;
}
.hero__card-head strong {
  display: block;
  font-family: var(--font-head);
  color: var(--navy-800);
  font-size: 1.02rem;
}
.hero__card-head small { color: var(--muted); font-size: .86rem; }

.task-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.task-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.task-list .check {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.task-list .check svg { width: 12px; height: 12px; }
.task-list .time { margin-left: auto; font-size: .78rem; color: var(--muted); }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.hero__stats b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.32rem;
  color: var(--navy-800);
  letter-spacing: -.02em;
}
.hero__stats span { font-size: .76rem; color: var(--muted); }

/* Logo / trust strip */
.logostrip {
  border-block: 1px solid var(--line);
  background: #fff;
  padding-block: 26px;
}
.logostrip__label {
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.logostrip__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 40px;
}
.logostrip__row span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy-800);
  opacity: .5;
  letter-spacing: -.01em;
  transition: opacity .2s var(--ease);
}
.logostrip__row span:hover { opacity: .9; }

/* --------------------------------------------------- 8. Cards & components */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              border-color .22s var(--ease);
}
.card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cfdcea;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .96rem; }

.card__icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--bg-tint);
  color: var(--blue-600);
}
.card__icon svg { width: 24px; height: 24px; }
.card__icon--accent { background: rgba(23, 184, 166, .12); color: #0d7d70; }
.card__icon--navy { background: rgba(11, 37, 69, .07); color: var(--navy-800); }
.card__icon--sand { background: rgba(242, 200, 121, .2); color: #9a7420; }

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
}
.card__link svg { width: 15px; height: 15px; transition: transform .18s var(--ease); }
.card__link:hover svg { transform: translateX(3px); }

.tick-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}
/* The marker is absolutely positioned rather than a flex sibling, so inline
   markup inside an item (<strong>, <em>, links) keeps flowing as normal text. */
.tick-list li {
  position: relative;
  padding-left: 30px;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(23, 184, 166, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d7d70' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.section--dark .tick-list li { color: rgba(255, 255, 255, .8); }

/* Steps */
.steps { counter-reset: step; }
.step {
  position: relative;
  padding: 30px 26px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: -18px;
  left: 26px;
  width: 46px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--navy-800);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .92rem;
  letter-spacing: .02em;
  box-shadow: 0 6px 16px rgba(11, 37, 69, .22);
}
.step h3 { margin-top: 8px; font-size: 1.14rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Stats band */
.statband {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.statband__item b {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
  line-height: 1.1;
}
.statband__item span {
  font-size: .9rem;
  color: rgba(255, 255, 255, .68);
}
.section--soft .statband__item b { color: var(--navy-800); }
.section--soft .statband__item span { color: var(--muted); }

/* Testimonials */
.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.quote__stars {
  display: flex;
  gap: 3px;
  color: #e8a33d;
  margin-bottom: 14px;
}
.quote__stars svg { width: 17px; height: 17px; }
.quote blockquote {
  margin: 0 0 20px;
  font-size: 1rem;
  line-height: 1.66;
  color: var(--ink-soft);
}
.quote__by {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.quote__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-tint);
  color: var(--navy-800);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .9rem;
  flex: none;
}
.quote__by strong {
  display: block;
  font-family: var(--font-head);
  color: var(--navy-800);
  font-size: .95rem;
}
.quote__by small { color: var(--muted); font-size: .84rem; }

/* Pricing */
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}
.price-card--featured {
  border-color: var(--navy-800);
  box-shadow: var(--shadow-lg);
}
.price-card__tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-800);
  color: #fff;
  font-family: var(--font-head);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--r-full);
  white-space: nowrap;
}
.price-card h3 { margin-bottom: 4px; }
.price-card__desc { color: var(--muted); font-size: .92rem; min-height: 44px; }
.price-card__price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 16px 0 4px;
  font-family: var(--font-head);
  color: var(--navy-800);
}
.price-card__price b { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; }
.price-card__price span { font-size: .92rem; color: var(--muted); font-weight: 600; }
.price-card__note { font-size: .82rem; color: var(--muted); margin-bottom: 20px; }
.price-card .tick-list { margin-bottom: 26px; }
.price-card .btn { margin-top: auto; }

/* Accordion (FAQ) */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.04rem;
  color: var(--navy-800);
  line-height: 1.4;
  transition: color .18s var(--ease);
}
.acc-trigger:hover { color: var(--blue-600); }
.acc-icon {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform .25s var(--ease), background-color .2s var(--ease);
}
.acc-icon::before { width: 12px; height: 2px; }
.acc-icon::after { width: 2px; height: 12px; }
.acc-trigger[aria-expanded="true"] .acc-icon {
  background: var(--navy-800);
  border-color: var(--navy-800);
}
.acc-trigger[aria-expanded="true"] .acc-icon::before,
.acc-trigger[aria-expanded="true"] .acc-icon::after { background: #fff; }
.acc-trigger[aria-expanded="true"] .acc-icon::after { transform: rotate(90deg); }
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
}
/* visibility (not just overflow) keeps collapsed links out of the tab order and
   out of the accessibility tree; the delay lets the close animation finish first */
.acc-panel > div {
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s linear .3s;
}
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-item.is-open .acc-panel > div { visibility: visible; transition-delay: 0s; }
.acc-panel p {
  color: var(--muted);
  font-size: .98rem;
  padding: 0 60px 24px 4px;
  margin: 0;
}
.acc-panel ul {
  color: var(--muted);
  font-size: .98rem;
  padding: 0 60px 24px 22px;
  margin: 0;
}

/* Videos */
.video-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 10px 20px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--line);
  background: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .18s var(--ease);
}
.filter-btn:hover { border-color: var(--navy-800); color: var(--navy-800); }
.filter-btn.is-active {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #fff;
}

.video-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.video-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.video-card__body h3 { font-size: 1.08rem; margin-bottom: 8px; }
.video-card__body p { color: var(--muted); font-size: .92rem; margin: 0 0 14px; }
.video-card__meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .8rem;
  color: var(--muted);
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700) 55%, var(--blue-600));
  border: 0;
  padding: 0;
  width: 100%;
  cursor: pointer;
  overflow: hidden;
  display: block;
}
.video-embed img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-embed__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(7, 21, 39, .32);
  transition: background-color .2s var(--ease);
}
.video-embed:hover .video-embed__play { background: rgba(7, 21, 39, .48); }
.video-embed__play i {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .3);
  transition: transform .22s var(--ease);
}
.video-embed:hover .video-embed__play i { transform: scale(1.08); }
.video-embed__play svg {
  width: 24px;
  height: 24px;
  margin-left: 4px;
  color: var(--navy-800);
  fill: var(--navy-800);
}
.video-embed.is-placeholder { cursor: default; }
.video-embed.is-placeholder .video-embed__play i { opacity: .55; }
.video-embed.is-placeholder:hover .video-embed__play { background: rgba(7, 21, 39, .32); }
.video-embed.is-placeholder:hover .video-embed__play i { transform: none; }

.video-embed__label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(7, 21, 39, .72);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-full);
  backdrop-filter: blur(4px);
}

/* Page hero (inner pages) */
.pagehero {
  background:
    radial-gradient(700px 380px at 82% -12%, rgba(23, 184, 166, .16), transparent 60%),
    radial-gradient(620px 400px at 6% 0%, rgba(42, 139, 201, .14), transparent 60%),
    var(--navy-800);
  color: rgba(255, 255, 255, .78);
  padding-block: clamp(52px, 6.5vw, 84px);
  text-align: center;
}
.pagehero h1 { color: #fff; margin-bottom: 16px; }
.pagehero .lead { color: rgba(255, 255, 255, .76); max-width: 680px; margin-inline: auto; }
.pagehero .eyebrow { color: var(--teal-400); }

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  font-size: .86rem;
  color: rgba(255, 255, 255, .58);
}
.breadcrumb a { color: rgba(255, 255, 255, .82); }
.breadcrumb a:hover { color: var(--teal-400); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }

/* Service detail rows */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 68px);
  align-items: center;
  padding-block: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.service-row:first-of-type { border-top: 0; padding-top: 0; }
.service-row--flip .service-row__media { order: -1; }

.feature-panel {
  background: linear-gradient(150deg, var(--bg-tint), #fff 70%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.feature-panel h4 {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.chiplist { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 0; list-style: none; }
.chiplist li {
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-size: .86rem;
  font-weight: 600;
  font-family: var(--font-head);
  color: var(--navy-700);
  box-shadow: var(--shadow-sm);
}

/* Timeline */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--blue-600), var(--teal-500));
  border-radius: 2px;
  opacity: .35;
}
.timeline__item { position: relative; padding-bottom: 34px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--blue-600);
  box-shadow: 0 0 0 4px rgba(29, 111, 165, .12);
}
.timeline__item h3 { font-size: 1.1rem; margin-bottom: 4px; }
.timeline__item .when {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-600);
  display: block;
  margin-bottom: 6px;
}
.timeline__item p { color: var(--muted); font-size: .95rem; margin: 0; }

/* CTA band */
.cta-band {
  background:
    radial-gradient(620px 320px at 88% 0%, rgba(23, 184, 166, .2), transparent 62%),
    radial-gradient(520px 340px at 4% 100%, rgba(42, 139, 201, .22), transparent 60%),
    var(--navy-800);
  border-radius: var(--r-lg);
  padding: clamp(38px, 5vw, 62px);
  color: rgba(255, 255, 255, .8);
  text-align: center;
}
.cta-band h2 { color: #fff; max-width: 620px; margin-inline: auto; }
.cta-band p { max-width: 560px; margin-inline: auto; }

/* Legal / long-form content */
.prose { max-width: 800px; }
.prose h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  margin-top: 44px;
  padding-top: 8px;
  scroll-margin-top: 110px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin-top: 28px; }
.prose ul, .prose ol { color: var(--ink-soft); }
.prose li { margin-bottom: 8px; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: .94rem;
}
.prose th, .prose td {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--line);
  vertical-align: top;
}
.prose th { background: var(--bg-soft); font-family: var(--font-head); color: var(--navy-800); }

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 16px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 36px;
}
.legal-meta strong { color: var(--navy-800); }

.toc {
  position: sticky;
  top: 110px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.toc h4 {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; display: grid; gap: 9px; }
.toc a {
  display: block;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.4;
}
.toc a:hover { color: var(--blue-600); }

.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.callout {
  background: var(--bg-tint);
  border: 1px solid #d5e3f0;
  border-left: 4px solid var(--blue-600);
  border-radius: var(--r-md);
  padding: 18px 22px;
  margin: 24px 0;
  font-size: .95rem;
  color: var(--ink-soft);
}
.callout strong { color: var(--navy-800); }

/* ---------------------------------------------------------------- 10. Forms */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3.4vw, 40px);
  box-shadow: var(--shadow-md);
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  color: var(--navy-800);
  margin-bottom: 7px;
}
.field .req { color: var(--danger); }
.field .hint { font-size: .82rem; color: var(--muted); font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 148px; resize: vertical; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b80' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 17px;
  padding-right: 42px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(42, 139, 201, .14);
}
.field input::placeholder, .field textarea::placeholder { color: #98a6b8; }

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); }
.field .error-msg {
  display: none;
  font-size: .84rem;
  color: var(--danger);
  margin-top: 6px;
  font-weight: 500;
}
.field.has-error .error-msg { display: block; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: .9rem;
  color: var(--muted);
  cursor: pointer;
}
.checkbox input {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--blue-600);
  -webkit-appearance: auto;
  appearance: auto;
}

.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  font-size: .93rem;
  font-weight: 500;
}
.form-status.is-visible { display: block; }
.form-status.is-success {
  background: rgba(22, 122, 88, .1);
  border: 1px solid rgba(22, 122, 88, .3);
  color: #0f5c42;
}
.form-status.is-error {
  background: rgba(200, 55, 45, .08);
  border: 1px solid rgba(200, 55, 45, .28);
  color: #96271f;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* Contact info list */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 15px; }
.info-list .ico {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--bg-tint);
  color: var(--blue-600);
  display: grid;
  place-items: center;
  flex: none;
}
.info-list .ico svg { width: 20px; height: 20px; }
.info-list strong {
  display: block;
  font-family: var(--font-head);
  color: var(--navy-800);
  font-size: .96rem;
  margin-bottom: 2px;
}
.info-list span, .info-list a { font-size: .94rem; color: var(--muted); }
.info-list a:hover { color: var(--blue-600); }

/* --------------------------------------------------------------- 11. Footer */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .62);
  padding-top: clamp(56px, 6vw, 80px);
  font-size: .94rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(28px, 4vw, 52px);
  padding-bottom: 46px;
}
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand:hover { color: #fff; }
.site-footer .brand__text small { color: rgba(255, 255, 255, .5); }
.footer__about { max-width: 320px; font-size: .92rem; line-height: 1.62; }

.footer__title {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer__links a {
  color: rgba(255, 255, 255, .66);
  font-size: .93rem;
}
.footer__links a:hover { color: var(--teal-400); }

.footer__contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.footer__contact li { display: flex; gap: 11px; align-items: flex-start; }
.footer__contact svg { width: 17px; height: 17px; color: var(--teal-400); flex: none; margin-top: 4px; }
.footer__contact a { color: rgba(255, 255, 255, .78); }
.footer__contact a:hover { color: var(--teal-400); }

.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, .16);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .8);
  transition: all .2s var(--ease);
}
.socials a:hover {
  background: var(--teal-500);
  border-color: var(--teal-500);
  color: var(--navy-900);
  transform: translateY(-2px);
}
.socials svg { width: 18px; height: 18px; }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-block: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 26px;
  font-size: .87rem;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; }
.footer__legal a { color: rgba(255, 255, 255, .66); }
.footer__legal a:hover { color: var(--teal-400); }

/* ----------------------------------------- 12. Utilities, motion, responsive */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 36px; }
.mb-0 { margin-bottom: 0; }
.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;
}
.is-hidden { display: none !important; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy-800);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .25s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.to-top svg { width: 19px; height: 19px; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ol { grid-template-columns: 1fr 1fr; display: grid; }
}

@media (max-width: 900px) {
  .nav__toggle { display: grid; }
  .nav__actions .btn { display: none; }

  /* The header must NOT create a containing block for the fixed drawer.
     backdrop-filter does exactly that, which would trap the menu inside the
     header's ~77px box and force the links into a scroll area. Solid
     background on small screens instead. */
  .site-header {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* Keep the hamburger (which becomes the X) painted above the open drawer.
     The drawer is positioned, so without this it would cover the toggle. */
  .nav__actions { position: relative; z-index: 2; }

  .nav__menu {
    position: fixed;
    top: 0;
    right: 0;
    /* dvh tracks the shrinking viewport when mobile browser chrome hides */
    height: 100vh;
    height: 100dvh;
    width: min(340px, 86vw);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: #fff;
    /* --header-h is measured at open time, so the first link always clears
       the header whether or not the top bar has scrolled away */
    padding-block: calc(var(--header-h, 117px) + 10px) max(22px, env(safe-area-inset-bottom));
    padding-inline: 20px;
    box-shadow: -12px 0 40px rgba(11, 37, 69, .16);
    transform: translateX(100%);
    /* hidden until opened, so off-canvas links are not tabbable */
    visibility: hidden;
    transition: transform .3s var(--ease), visibility 0s linear .3s;
    /* safety net for very short (landscape) screens only - the menu is sized
       to fit without scrolling on any normal phone */
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav__menu.is-open {
    transform: translateX(0);
    visibility: visible;
    transition-delay: 0s;
  }
  .nav__link {
    padding: 13px 14px;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav__link.is-active::after { display: none; }
  .nav__link.is-active { color: var(--blue-600); }
  .nav__cta { display: block; border-bottom: 0; }
  .nav__menu .btn { margin-top: 18px; display: flex; }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 21, 39, .45);
    backdrop-filter: blur(2px);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s var(--ease), visibility .28s var(--ease);
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }

  .hero__grid, .split, .service-row { grid-template-columns: 1fr; }
  .split--reverse .split__media,
  .service-row--flip .service-row__media { order: 0; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statband { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .topbar__inner { justify-content: center; }
  .topbar__links { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --gutter: 18px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .btn-row .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .toc ol { grid-template-columns: 1fr; }
  .acc-panel p, .acc-panel ul { padding-right: 10px; }
  .hero__stats { grid-template-columns: 1fr; gap: 14px; text-align: left; }
  .prose h2 { margin-top: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .topbar, .site-footer, .to-top, .cta-band, .nav-backdrop { display: none !important; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
  .section { padding-block: 12pt; }
}
