/* ============================================================
   Carelytics marketing — design tokens
   ============================================================ */

:root {
  /* Brand */
  --brand-blue:        #2f7df6;
  --brand-blue-strong: #1f6df0;
  --brand-blue-soft:   #e7f1ff;

  --navy:              #0b1736;
  --navy-2:            #14224a;   /* card on navy */
  --navy-3:            #1d2c5b;   /* hover on navy */

  --teal:              #14b8a6;
  --teal-soft:         #d0f5ef;

  --premium:           #8b5cf6;
  --premium-soft:      #ede4ff;

  /* Neutrals */
  --ink:        #0b1736;
  --ink-soft:   #475569;
  --line:       #e2e8f0;
  --line-soft:  #eef2f7;
  --bg:         #ffffff;
  --bg-soft:    #f7f9fc;

  /* Status */
  --warning:    #f59e0b;
  --danger:     #dc2626;
  --success:    #14b8a6;

  /* Geometry */
  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  22px;
  --radius-xl:  28px;

  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(11, 23, 54, 0.04), 0 1px 2px rgba(11, 23, 54, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 23, 54, 0.08), 0 2px 6px rgba(11, 23, 54, 0.04);
  --shadow-lg: 0 24px 48px rgba(11, 23, 54, 0.12), 0 6px 16px rgba(11, 23, 54, 0.06);

  --container-w: 1180px;
}

/* ============================================================
   Reset + base
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: rgba(47, 125, 246, 0.18);   /* brand-blue tap flash on touch */
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;                            /* iOS Safari: don't auto-resize on rotate */
}

body {
  font-family: "Manrope", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;          /* belt-and-suspenders: never allow horizontal scroll on mobile */
}

/* When the mobile menu is open, lock the page so scrolling the menu doesn't drag the page behind. */
body.menu-open { overflow: hidden; }

/* Honor focus styles for keyboard users; suppress the dotted ring on mouse clicks. */
:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

img, svg { max-width: 100%; display: block; }

/* Global anchor styling — exclude .btn so button color rules win on hover.
   (Without :not(.btn), the global a:hover overrides button hover color and
   makes text disappear on dark-bg buttons like .btn-on-navy.) */
a:not(.btn) { color: var(--brand-blue); text-decoration: none; }
a:not(.btn):hover { color: var(--brand-blue-strong); }
.btn { text-decoration: none; }

p { margin: 0 0 1rem; color: var(--ink-soft); }

ul { margin: 0 0 1rem; padding-left: 1.25rem; color: var(--ink-soft); }

h1, h2, h3, h4 {
  margin: 0 0 0.85rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 800;
}

h1 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.625rem); letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem;    font-weight: 700; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 0.85rem;
}

.eyebrow--on-dark { color: #88b9ff; }

.lede {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
}

.lede--on-dark { color: rgba(255, 255, 255, 0.82); }

.skip-link {
  position: absolute;
  top: -100px;
  left: 0.5rem;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
}
.skip-link:focus { top: 0.5rem; }

/* ============================================================
   Layout
   ============================================================ */

.container {
  width: min(var(--container-w), calc(100% - 2.5rem));
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
}
.section--tight  { padding: 3.75rem 0; }
.section--hero   { padding: 5rem 0 4.5rem; }

.section--white  { background: #fff;          color: var(--ink); }
.section--soft   { background: var(--bg-soft); color: var(--ink); }
.section--blue   { background: var(--brand-blue); color: #fff; }
.section--navy   { background: var(--navy);   color: #fff; }

.section--blue h1, .section--blue h2, .section--blue h3, .section--blue h4,
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 {
  color: #fff;
}

.section--blue p, .section--blue li,
.section--navy p, .section--navy li {
  color: rgba(255, 255, 255, 0.86);
}

.section--blue a:not(.btn),
.section--navy a:not(.btn) {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head--left { text-align: left; margin-left: 0; }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;          /* generous horizontal padding so text never crowds the pill edges */
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;                 /* keeps tall pills from inheriting body 1.6 line-height */
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand-blue);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-blue-strong); color: #fff; box-shadow: var(--shadow-md); }

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--ink); }

.btn-on-blue {
  background: #fff;
  color: var(--brand-blue);
}
.btn-on-blue:hover { background: var(--brand-blue-soft); }

.btn-on-navy {
  background: var(--brand-blue);
  color: #fff;
}
.btn-on-navy:hover { background: var(--brand-blue-strong); }

.btn-ghost-on-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-ghost-on-dark:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn-link {
  background: transparent;
  color: var(--brand-blue);
  padding-left: 0;
  padding-right: 0;
}
.btn-link:hover { color: var(--brand-blue-strong); }

.btn-arrow::after { content: "→"; }

/* ============================================================
   Site chrome
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  color: var(--ink);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand-mark { width: 28px; height: 28px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
/* Nav text links — uppercase, tight letter-spacing.
   Excludes .btn (the "See a demo" CTA keeps its standard btn styling)
   and matches the Product dropdown trigger which is one level deep. */
.nav-links > a:not(.btn),
.nav-links .has-dropdown > a {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  line-height: 1.2;
  background: transparent;
}
.nav-links > a:not(.btn):hover,
.nav-links .has-dropdown > a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-links > a.active,
.nav-links .has-dropdown > a.active {
  color: var(--brand-blue);
  text-decoration: underline;
  text-decoration-color: var(--brand-blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.nav-cta {
  margin-left: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  padding: 0.55rem 1.1rem;
}

/* Product dropdown (CSS-only on hover/focus) */
.has-dropdown { position: relative; }
.has-dropdown > a::after {
  content: "▾";
  margin-left: 0.3rem;
  font-size: 0.7rem;
  position: relative;
  top: -1px;
}
.dropdown {
  position: absolute;
  top: calc(100% + 0.3rem);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 580px;
  max-width: 92vw;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: block;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-md);
  color: var(--ink);
}
.dropdown a:hover { background: var(--bg-soft); }
.dropdown a strong { display: block; font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.dropdown a span   { display: block; font-size: 0.83rem; color: var(--ink-soft); margin-top: 0.1rem; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.95rem;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.2;
  cursor: pointer;
  color: var(--ink);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}
.site-footer h3 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.4fr;
  gap: 2.25rem;
}
.footer-grid a:not(.btn) {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  padding: 0.25rem 0;
  font-size: 0.92rem;
}
.footer-grid a:not(.btn):hover { color: #fff; }
.footer-grid .btn { margin-top: 0.25rem; }
.footer-brand {
  color: #fff;
  margin-bottom: 0.75rem;
}
.footer-copy { color: rgba(255, 255, 255, 0.65); font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: 4.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero--gradient {
  background:
    radial-gradient(800px 480px at 80% -10%, rgba(47, 125, 246, 0.12), transparent 60%),
    radial-gradient(560px 360px at 0% 0%, rgba(20, 184, 166, 0.08), transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.hero-trust {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.hero-trust strong { color: var(--ink); font-weight: 700; }

/* ============================================================
   Cards & feature columns
   ============================================================ */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
.card:hover { border-color: rgba(47, 125, 246, 0.4); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 0.5rem; }
.card p  { margin-bottom: 0.75rem; font-size: 0.95rem; }
.card a.btn-link { font-size: 0.9rem; font-weight: 600; }

/* Whole-card-clickable cards — used wherever the card has a single CTA link.
   Click anywhere on the card and you go where the bottom link goes. */
.card--linked {
  position: relative;        /* anchors the stretched-link ::after to the card, not the viewport */
  cursor: pointer;
}
.card--linked .btn-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.card--linked:hover { border-color: var(--brand-blue); transform: translateY(-2px); }
.card--linked:hover .btn-link { color: var(--brand-blue-strong); }
.card--linked:hover .card-icon { transform: scale(1.04); }
.card--linked .card-icon { transition: transform 0.15s ease; }
.card--linked > * { position: relative; }
.card--linked .btn-link { position: static; }   /* let ::after escape to the card */

.card--icon-blue,
.card--icon-teal,
.card--icon-premium {
  position: relative;
}
.card-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 1rem;
}
.card-icon--blue    { background: var(--brand-blue-soft); color: var(--brand-blue); }
.card-icon--teal    { background: var(--teal-soft);       color: var(--teal); }
.card-icon--premium { background: var(--premium-soft);    color: var(--premium); }
.card-icon--navy    { background: rgba(11,23,54,0.06);    color: var(--navy); }
.card-icon svg { width: 24px; height: 24px; }

/* Card on dark sections */
.card--on-dark {
  background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}
.card--on-dark p, .card--on-dark li { color: rgba(255, 255, 255, 0.78); }
.card--on-dark:hover { border-color: rgba(255, 255, 255, 0.18); background: var(--navy-3); }

/* ============================================================
   Check list
   ============================================================ */

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.check-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.85rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--teal-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314b8a6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / 12px;
}
.section--blue .check-list li,
.section--navy .check-list li { color: rgba(255, 255, 255, 0.86); }
.section--blue .check-list li::before,
.section--navy .check-list li::before {
  background-color: rgba(255, 255, 255, 0.16);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
}

/* ============================================================
   Stats row
   ============================================================ */

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.stats-row article strong {
  display: block;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stats-row article span { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.2rem; }
.section--navy .stats-row { border-top-color: rgba(255, 255, 255, 0.12); }
.section--navy .stats-row article strong { color: #fff; }
.section--navy .stats-row article span   { color: rgba(255, 255, 255, 0.7); }

/* ============================================================
   Screenshot frame (faux browser)
   ============================================================ */

.screen-frame {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.section--navy .screen-frame,
.section--blue .screen-frame { border-color: transparent; }

.screen-frame__chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.screen-frame__chrome .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d3dbe4;
}
.screen-frame__url {
  margin-left: 0.6rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.screen-frame__viewport {
  position: relative;
  background: #fff;
  min-height: 320px;
}
.screen-frame__placeholder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 1.75rem;
  background:
    repeating-linear-gradient(135deg, rgba(47,125,246,0.04) 0 12px, transparent 12px 24px),
    linear-gradient(180deg, #f8fbff 0%, #eef4fc 100%);
  min-height: 320px;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}
.screen-frame__placeholder-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-blue);
  background: var(--brand-blue-soft);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  line-height: 1.4;
}
.screen-frame__placeholder-title { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: 0.4rem 0 0.2rem; }
.screen-frame__placeholder-desc  { font-size: 0.9rem;  color: var(--ink-soft); margin: 0; max-width: 36rem; }
.screen-frame__placeholder-path  {
  margin-top: auto;
  padding-top: 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  color: var(--ink-soft);
  opacity: 0.7;
}

/* ============================================================
   Workflow stepper (e.g., OASIS workflow)
   ============================================================ */

.stepper {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.65rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.stepper li {
  position: relative;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--ink);
  font-size: 0.86rem;
  text-align: center;
}
.stepper li::after {
  content: "→";
  position: absolute;
  right: -0.55rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-soft);
  font-weight: 700;
  background: var(--bg);
  border-radius: 999px;
  width: 1.1rem;
  height: 1.1rem;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
}
.stepper li:last-child::after { content: ""; }
.stepper li small {
  display: block;
  margin-top: 0.25rem;
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section--navy .stepper li,
.section--blue .stepper li {
  background: var(--navy-2);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.section--navy .stepper li small,
.section--blue .stepper li small {
  color: rgba(255, 255, 255, 0.6);
}
.section--navy .stepper li::after,
.section--blue .stepper li::after { background: var(--navy); color: rgba(255, 255, 255, 0.6); }

/* ============================================================
   Pricing
   ============================================================ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.pricing-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
}
.pricing-card--featured {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 2px var(--brand-blue), var(--shadow-lg);   /* 2px ring is more legible than 1px */
  transform: translateY(-6px);
}
.pricing-card--featured .pricing-card__tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.4rem 0.95rem;                                     /* extra breathing room around "Most popular" */
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* When the featured pricing card sits inside a brand-blue or navy section,
   the brand-blue ring + tag would blend into the background. Re-color them. */
.section--blue .pricing-card--featured,
.section--navy .pricing-card--featured {
  border-color: #fff;
  box-shadow: 0 0 0 2px #fff, var(--shadow-lg);
}
.section--blue .pricing-card--featured .pricing-card__tag,
.section--navy .pricing-card--featured .pricing-card__tag {
  background: var(--navy);
  color: #fff;
}
.pricing-card__name { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-blue); }
.pricing-card--enterprise .pricing-card__name { color: var(--premium); }
.pricing-card__price {
  margin: 0.6rem 0 0.2rem;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.05;
}
.pricing-card__price-suffix { font-size: 1rem; color: var(--ink-soft); font-weight: 500; }
.pricing-card__sub { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 1.4rem; }
.pricing-card__cta { margin-bottom: 1.4rem; }
.pricing-card__cta .btn { width: 100%; }
.pricing-card__list { list-style: none; padding: 0; margin: 0; }
.pricing-card__list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.7rem;
  font-size: 0.93rem;
  color: var(--ink-soft);
}
.pricing-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--teal-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314b8a6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / 11px;
}
.pricing-card__divider { font-weight: 700; color: var(--ink); margin-top: 0.4rem; padding-top: 0.6rem; border-top: 1px solid var(--line); }

/* ============================================================
   Comparison table
   ============================================================ */

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 0.95rem;
}
.compare-table th,
.compare-table td {
  padding: 0.95rem 1.1rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.compare-table thead th {
  background: var(--bg-soft);
  font-weight: 700;
  font-size: 0.85rem;
}
.compare-table thead th.cell-us {
  background: var(--brand-blue);
  color: #fff;
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table th[scope="row"] {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
}
.compare-table .cell-us { background: rgba(47, 125, 246, 0.06); font-weight: 700; }
.compare-table .yes { color: var(--teal); font-weight: 700; }
.compare-table .no  { color: var(--ink-soft); }
.compare-table .partial { color: var(--warning); font-weight: 600; }

/* ============================================================
   Logo strip / placeholders
   ============================================================ */

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
}
.logo-strip__intro {
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}
.logo-strip__item {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
  border: 1px dashed var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
}

/* ============================================================
   FAQ
   ============================================================ */

/* FAQ layout — sticky header column on the left, two-column grid of Q&As on the right.
   Breaks the long vertical scroll of a stacked FAQ list. */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}
.faq-aside {
  position: sticky;
  top: 90px;
}
.faq-aside h2 { margin-top: 0.4rem; }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1rem;
}
.faq-grid details { margin-bottom: 0; }

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 0.65rem;
}
.faq details + details { margin-top: 0; }
.faq details[open] { border-color: var(--brand-blue); }
.faq summary {
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.1rem;
  top: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--brand-blue);
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 0.7rem; }

/* ============================================================
   Demo form
   ============================================================ */

.demo-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.demo-form {
  display: grid;
  gap: 0.85rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.demo-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}
.demo-form input,
.demo-form select,
.demo-form textarea {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  width: 100%;
  font-size: 0.95rem;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.demo-form textarea { min-height: 7rem; resize: vertical; }
.demo-form input:focus,
.demo-form select:focus,
.demo-form textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(47, 125, 246, 0.15);
}
.demo-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }

.alerts { display: grid; gap: 0.5rem; margin-bottom: 0.85rem; }
.alert {
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
}
.alert.success { background: var(--teal-soft);       color: #0f766e; }
.alert.error   { background: rgba(220,38,38,0.08);   color: var(--danger); }

/* ============================================================
   Misc
   ============================================================ */

.callout {
  background: var(--bg-soft);
  border-left: 4px solid var(--brand-blue);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--ink);
}
.callout--teal    { border-left-color: var(--teal); }
.callout--premium { border-left-color: var(--premium); }
.callout strong   { color: var(--ink); }

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.4;
}
.badge-blue    { background: var(--brand-blue-soft); color: var(--brand-blue); }
.badge-teal    { background: var(--teal-soft);       color: #0f766e; }
.badge-premium { background: var(--premium-soft);    color: #6d28d9; }
.badge-navy    { background: rgba(11,23,54,0.06);    color: var(--navy); }
.badge-on-dark { background: rgba(255,255,255,0.12); color: #fff; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(4, 1fr); }
  .stepper { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  .stepper li::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .faq-layout { grid-template-columns: 1fr; gap: 2rem; }
  .faq-aside { position: static; }
  .faq-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .section { padding: 4rem 0; }
  .hero { padding: 2.75rem 0 3rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
  .split  { grid-template-columns: 1fr; gap: 2rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card--featured { transform: none; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .demo-layout { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; }

  /* WCAG 2.2 — 44×44 minimum touch targets on touch devices */
  .nav-links > a,
  .nav-links .has-dropdown > a,
  .nav-links .dropdown a,
  .menu-toggle,
  .btn { min-height: 44px; }

  /* Form inputs — 16px minimum keeps iOS Safari from zooming on focus */
  .demo-form input,
  .demo-form select,
  .demo-form textarea {
    font-size: 16px;
  }

  .nav-links {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.25rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links > a { padding: 0.7rem 0.5rem; border-radius: 8px; }
  .nav-cta { margin-top: 0.5rem; align-self: flex-start; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 0.4rem; }

  /* On mobile, mega-menu items are surfaced flat */
  .has-dropdown > a::after { display: none; }
  .dropdown {
    position: static;
    transform: none;
    width: auto;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
    grid-template-columns: 1fr;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    margin-left: 0.5rem;
  }
  .dropdown a { padding: 0.55rem 0.5rem; }
  .dropdown a span { display: none; }
}

@media (max-width: 520px) {
  .stepper { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .demo-form .row-2 { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
