/* CareDex — site styles
   Requires: caredex-tokens.css, caredex-ui.css
   ============================================================ */

/* ============================================================
   1. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--cd-font-body);
  background: var(--cd-paper);
  color: var(--cd-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--cd-signal-600);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
}

/* ============================================================
   2. LAYOUT UTILITIES
   ============================================================ */
.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--dark {
  background: var(--cd-ink);
  color: var(--cd-paper-text);
}

.section--paper {
  background: var(--cd-paper);
}

.section--white {
  background: var(--cd-card);
}

/* ============================================================
   3. NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cd-border);
  height: 64px;
}

/* Homepage: transparent until scrolled */
.nav--home {
  background: transparent;
  border-bottom-color: transparent;
  transition: background 0.25s, border-color 0.25s;
}

.nav--home.nav--scrolled {
  background: rgba(247, 245, 240, 0.95);
  border-bottom-color: var(--cd-border);
}

.nav-in {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-family: var(--cd-font-head);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.nav-logo:hover {
  text-decoration: none;
}

.nav-wordmark {
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin-left: auto;
}

.nav-link {
  color: var(--cd-ink);
  text-decoration: none;
  padding: 6px 12px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--cd-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--cd-signal-600);
  background: rgba(14, 154, 99, 0.06);
  text-decoration: none;
}

.nav-link.on {
  color: var(--cd-signal-600);
}

.has-dropdown {
  position: relative;
}

.nav-chevron {
  margin-left: 4px;
  transition: transform 0.2s;
  vertical-align: middle;
  flex-shrink: 0;
}

.has-dropdown.open .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 280px;
  background: var(--cd-card);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius-lg);
  box-shadow: 0 8px 32px rgba(11, 18, 32, 0.12);
  padding: 8px;
  display: none;
  gap: 2px;
  flex-direction: column;
  z-index: 200;
}

.has-dropdown.open .nav-dropdown {
  display: flex;
}

.nav-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--cd-radius);
  text-decoration: none;
  color: var(--cd-ink);
  transition: background 0.12s;
}

.nav-dropdown-item:hover {
  background: var(--cd-paper);
  text-decoration: none;
}

.nav-dropdown-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.nav-dropdown-title {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--cd-ink);
}

.nav-dropdown-sub {
  display: block;
  font-size: 12px;
  color: var(--cd-steel);
  margin-top: 2px;
  line-height: 1.4;
}

.nav-cta {
  margin-left: 8px;
}

/* Hamburger — mobile only */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--cd-radius-sm);
  margin-left: auto;
  transition: background 0.15s;
}

.nav-hamburger:hover {
  background: rgba(11, 18, 32, 0.06);
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--cd-ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   4. HERO — HOMEPAGE
   ============================================================ */
.hero {
  position: relative;
  background: var(--cd-paper);
  color: var(--cd-ink);
  padding: 84px 0 96px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(11, 18, 32, 0.13) 1.3px, transparent 1.3px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 90% 80% at 70% 30%, black 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 70% 30%, black 0%, transparent 65%);
  pointer-events: none;
}

.hero-in {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--cd-font-data);
  font-size: 12px;
  color: var(--cd-signal-600);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 22px;
  font-weight: 500;
}
.hero-kicker .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--cd-signal-600);
  box-shadow: 0 0 0 4px rgba(14, 154, 99, 0.15);
  flex-shrink: 0;
}

.hero-h1 {
  font-family: var(--cd-font-head);
  font-size: clamp(2.6rem, 4.5vw, 3.9rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--cd-ink);
  margin-bottom: 24px;
}

.hero-h1 .und {
  position: relative;
  white-space: nowrap;
  z-index: 0;
}
.hero-h1 .und::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 8px;
  height: 12px;
  background: rgba(43, 217, 143, 0.45);
  z-index: -1;
  border-radius: 3px;
}

.hero-sub {
  font-size: 18px;
  color: var(--cd-steel);
  line-height: 1.6;
  max-width: 46ch;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-noccc {
  font-family: var(--cd-font-data);
  font-size: 12px;
  color: var(--cd-steel);
  margin-top: 0;
}

.hero-proof {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-proof-num {
  font-family: var(--cd-font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--cd-ink);
  display: block;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-proof-label {
  font-family: var(--cd-font-data);
  font-size: 11px;
  color: var(--cd-steel);
  letter-spacing: 0.04em;
}

.hero-collage {
  position: relative;
  height: 440px;
}

/* Floating UI fragment cards inside the hero collage */
.collage-card {
  position: absolute;
  background: var(--cd-card);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius-lg);
  box-shadow: 0 18px 50px rgba(11, 18, 32, 0.13);
  color: var(--cd-ink);
}

/* Pulse line SVG that breaks out of collage frame */
.hc-pulse {
  position: absolute;
  bottom: -8px;
  left: -14px;
  z-index: 4;
  filter: drop-shadow(0 10px 18px rgba(11, 18, 32, 0.18));
}

/* ============================================================
   5. DATA STRIP
   ============================================================ */
.data-strip {
  background: var(--cd-card);
  border-top: 1px solid var(--cd-border);
  border-bottom: 1px solid var(--cd-border);
  padding: 18px 0;
}

.data-strip-in {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.data-item {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: var(--cd-font-data);
  font-size: 12px;
  color: var(--cd-steel-dark);
}

.data-item-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cd-signal);
  flex-shrink: 0;
}

.data-label {
  color: var(--cd-paper-text);
  font-weight: 500;
}

/* ============================================================
   6. FEATURE CARDS (3-up grid)
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--cd-card);
  border-radius: var(--cd-radius-lg);
  padding: 32px;
  border: 1px solid var(--cd-border);
  box-shadow: var(--cd-shadow-card);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--cd-paper);
  border-radius: var(--cd-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
  flex-shrink: 0;
}

.feature-title {
  font-family: var(--cd-font-head);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--cd-ink);
}

.feature-body {
  font-size: 15px;
  color: var(--cd-steel);
  line-height: 1.6;
}

/* ============================================================
   7. ICP DARK BAND (4-col who-its-for)
   ============================================================ */
.icp-band {
  background: var(--cd-ink);
  padding: 80px 0;
}

.icp-band-head {
  text-align: center;
  margin-bottom: 48px;
  color: var(--cd-paper-text);
}

.icp-band-head .section-title {
  color: var(--cd-paper-text);
}

.icp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.icp-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--cd-radius-lg);
  padding: 28px;
  transition: background 0.15s, border-color 0.15s;
}

.icp-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}

.icp-icon {
  font-size: 32px;
  margin-bottom: 16px;
  line-height: 1;
}

.icp-title {
  font-family: var(--cd-font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--cd-paper-text);
  margin-bottom: 8px;
}

.icp-market {
  font-family: var(--cd-font-data);
  font-size: 12px;
  color: var(--cd-signal);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.icp-body {
  font-size: 14px;
  color: var(--cd-steel-dark);
  line-height: 1.55;
}

/* ============================================================
   8. CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--cd-paper);
  padding: 96px 0;
  text-align: center;
}

.cta-h2 {
  font-family: var(--cd-font-head);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--cd-ink);
}

.cta-sub {
  font-size: 18px;
  color: var(--cd-steel);
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-fine {
  font-family: var(--cd-font-data);
  font-size: 12px;
  color: var(--cd-steel);
  margin-top: 16px;
}

/* ============================================================
   9. ICP HERO (solutions pages)
   ============================================================ */
.icp-hero {
  background: var(--cd-paper);
  padding: 80px 0 72px;
  color: var(--cd-ink);
  border-bottom: 1px solid var(--cd-border);
  position: relative;
  overflow: hidden;
}
.icp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(11, 18, 32, 0.1) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 70% 80% at 75% 40%, black 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 75% 40%, black 0%, transparent 65%);
  pointer-events: none;
}

.icp-hero-kicker {
  font-family: var(--cd-font-data);
  font-size: 11px;
  color: var(--cd-signal-600);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.icp-hero-h1 {
  font-family: var(--cd-font-head);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--cd-ink);
  margin-bottom: 16px;
}

.icp-hero-sub {
  font-size: 18px;
  color: var(--cd-steel);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.icp-hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--cd-border);
  flex-wrap: wrap;
}

.icp-stat-num {
  font-family: var(--cd-font-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--cd-ink);
  display: block;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.icp-stat-label {
  font-family: var(--cd-font-data);
  font-size: 11px;
  color: var(--cd-steel);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================================
   10. HOW IT WORKS STEPS
   ============================================================ */
.steps {
  padding: 80px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: steps;
}

.step {
  counter-increment: steps;
  position: relative;
}

.step::before {
  content: counter(steps);
  position: absolute;
  top: -8px;
  left: -8px;
  width: 36px;
  height: 36px;
  background: var(--cd-signal);
  color: var(--cd-ink);
  font-family: var(--cd-font-data);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 1;
}

.step-body {
  background: var(--cd-card);
  border-radius: var(--cd-radius-lg);
  padding: 32px 28px 28px;
  border: 1px solid var(--cd-border);
  margin-top: 12px;
  box-shadow: var(--cd-shadow-card);
}

.step-title {
  font-family: var(--cd-font-head);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--cd-ink);
}

.step-text {
  font-size: 15px;
  color: var(--cd-steel);
  line-height: 1.6;
}

/* ============================================================
   11. PRICING CARDS
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--cd-card);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius-lg);
  padding: 32px;
  box-shadow: var(--cd-shadow-card);
  position: relative;
}

.pricing-card--pro {
  border-color: var(--cd-signal-600);
  box-shadow: 0 0 0 3px rgba(14, 154, 99, 0.12), var(--cd-shadow-card);
}

.pricing-badge {
  display: inline-block;
  font-family: var(--cd-font-data);
  font-size: 11px;
  background: var(--cd-signal);
  color: var(--cd-ink);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.pricing-name {
  font-family: var(--cd-font-head);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--cd-ink);
}

.pricing-price {
  font-family: var(--cd-font-data);
  font-size: 36px;
  font-weight: 500;
  color: var(--cd-ink);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 16px;
  color: var(--cd-steel);
  font-weight: 400;
}

.pricing-desc {
  font-size: 14px;
  color: var(--cd-steel);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--cd-border);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.pricing-feature {
  font-size: 14px;
  padding-left: 20px;
  position: relative;
  color: var(--cd-ink);
  line-height: 1.45;
}

.pricing-feature::before {
  content: "✓";
  color: var(--cd-signal-600);
  position: absolute;
  left: 0;
  font-weight: 600;
}

/* ============================================================
   12. COMPARISON TABLE
   ============================================================ */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th {
  text-align: left;
  padding: 12px 16px;
  font-family: var(--cd-font-data);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cd-steel);
  border-bottom: 2px solid var(--cd-border);
}

.compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--cd-border);
  color: var(--cd-ink);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table .highlight {
  background: rgba(43, 217, 143, 0.08);
  font-weight: 600;
}

/* ============================================================
   13. CONTACT FORM
   ============================================================ */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--cd-ink);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius-sm);
  font-family: inherit;
  font-size: 15px;
  background: var(--cd-card);
  color: var(--cd-ink);
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--cd-signal-600);
  box-shadow: 0 0 0 3px rgba(14, 154, 99, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--cd-steel);
  opacity: 0.7;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235C6675' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

/* ============================================================
   14. LEGAL PAGES
   ============================================================ */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px;
}

.legal h1 {
  font-family: var(--cd-font-head);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--cd-ink);
}

.legal .legal-date {
  font-family: var(--cd-font-data);
  font-size: 12px;
  color: var(--cd-steel);
  margin-bottom: 40px;
}

.legal h2 {
  font-family: var(--cd-font-head);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--cd-ink);
}

.legal p,
.legal li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--cd-steel);
  margin-bottom: 12px;
}

.legal ul {
  padding-left: 20px;
  list-style: disc;
}

.legal ol {
  padding-left: 20px;
  list-style: decimal;
}

.legal a {
  color: var(--cd-signal-600);
  text-decoration: underline;
}

/* ============================================================
   15. SECTION TITLES
   ============================================================ */
.section-title {
  font-family: var(--cd-font-head);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--cd-ink);
}

.section--dark .section-title {
  color: var(--cd-paper-text);
}

.section-sub {
  font-size: 17px;
  color: var(--cd-steel);
  max-width: 560px;
  margin-bottom: 48px;
  line-height: 1.6;
}

.section--dark .section-sub {
  color: var(--cd-steel-dark);
}

.section-head {
  margin-bottom: 48px;
}

.section-head--center {
  text-align: center;
}

.section-head--center .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   16. FOOTER
   ============================================================ */
.footer {
  background: var(--cd-ink);
  color: var(--cd-paper-text);
  padding: 64px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--cd-paper-text);
  margin-bottom: 16px;
}

.footer-logo:hover {
  text-decoration: none;
}

.footer-wordmark {
  font-family: var(--cd-font-head);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: 14px;
  color: var(--cd-steel-dark);
  margin-bottom: 16px;
  line-height: 1.55;
  max-width: 260px;
}

.footer-ogl {
  font-family: var(--cd-font-data);
  font-size: 11px;
  color: var(--cd-steel-dark);
  line-height: 1.5;
  margin-bottom: 16px;
  max-width: 280px;
  opacity: 0.75;
}

.footer-copy {
  font-family: var(--cd-font-data);
  font-size: 11px;
  color: var(--cd-steel-dark);
  opacity: 0.65;
}

.footer-col-head {
  font-family: var(--cd-font-head);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cd-steel-dark);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--cd-steel-dark);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--cd-paper-text);
  text-decoration: none;
}

.footer-bar {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--cd-font-data);
  font-size: 12px;
  color: var(--cd-steel-dark);
}

/* ============================================================
   17. RESPONSIVE
   ============================================================ */

/* Tablet — 768px to 1024px */
@media (max-width: 1024px) {
  .icp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Mobile — below 768px */
@media (max-width: 768px) {
  /* Nav: hamburger mode */
  .nav-hamburger {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cd-paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px;
    overflow-y: auto;
    z-index: 99;
    border-top: 1px solid var(--cd-border);
    margin-left: 0;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu .nav-link {
    font-size: 16px;
    padding: 12px 8px;
    width: 100%;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
  }

  .has-dropdown {
    width: 100%;
  }

  .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    background: rgba(11, 18, 32, 0.04);
    border-radius: var(--cd-radius);
    display: none;
    padding: 4px;
    margin-top: 4px;
    min-width: unset;
    width: 100%;
  }

  .has-dropdown.open .nav-dropdown {
    display: flex;
  }

  /* Hero */
  .hero-in {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-collage {
    display: none;
  }

  .hero {
    padding: 72px 0 56px;
  }

  /* Grids: single column */
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .icp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }

  .footer-bar {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .section {
    padding: 60px 0;
  }

  .cta-section {
    padding: 64px 0;
  }

  .steps {
    padding: 60px 0;
  }
}

/* Small mobile — below 480px */
@media (max-width: 480px) {
  .icp-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-proof {
    gap: 20px;
  }

  .data-strip-in {
    gap: 20px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .legal {
    padding: 40px 0;
  }
}

/* ============================================================
   18. MISC UTILITIES
   ============================================================ */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-signal  { color: var(--cd-signal-600); }
.text-steel   { color: var(--cd-steel); }
.text-sm      { font-size: 13px; }

.mono { font-family: var(--cd-font-data); }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* Filter chip row — reuse pattern from app */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ICP hero: bare <h1>/.lead inside text column (pages without .icp-hero-h1) */
.icp-hero-text h1 {
  font-family: var(--cd-font-head);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--cd-ink);
  margin-bottom: 16px;
}

/* Brand feature-icon: rounded square, paper bg, holds an SVG mark */
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--cd-paper);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cd-signal-600);
  flex-shrink: 0;
}
.feature-icon svg { width: 22px; height: 22px; }

/* Brand trigger-icon: same treatment */
.trigger-icon {
  width: 44px;
  height: 44px;
  background: rgba(43, 217, 143, 0.1);
  border-radius: var(--cd-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cd-signal-600);
  margin-bottom: 16px;
}
.trigger-icon svg { width: 22px; height: 22px; }

/* ============================================================
   19. ICP HERO LAYOUT (solutions pages)
   — .icp-hero background/colour set in section 9 above
   ============================================================ */
.icp-hero-in,
.icp-hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.icp-hero-text,
.icp-hero-copy { /* natural grid flow */ }

/* Green-dot kicker on ICP/eyebrow labels — matches home hero */
.eyebrow,
.icp-hero-kicker,
.sec-kicker,
.icp-hero-copy .kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before,
.icp-hero-kicker::before,
.icp-hero-copy .kicker .dot {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--cd-signal-600);
  box-shadow: 0 0 0 4px rgba(14, 154, 99, 0.15);
  flex-shrink: 0;
}
/* software page uses an explicit .dot span — hide our generated one there */
.icp-hero-copy .kicker::before { content: none; }

/* software.njk hero aliases */
.icp-hero-lede {
  font-size: 18px;
  color: var(--cd-steel);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 0 32px;
}
.icp-hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.icp-hero-copy .kicker {
  font-family: var(--cd-font-data);
  font-size: 11px;
  color: var(--cd-signal-600);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 500;
}
.icp-hero-copy h1 {
  font-family: var(--cd-font-head);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--cd-ink);
  margin-bottom: 16px;
}
/* Map stray legacy vars some agents used to real tokens */
.icp-hero-visual .mono-n { color: var(--cd-signal-600) !important; }

.icp-hero-text { /* natural grid flow */ }

.icp-hero-visual {
  position: relative;
}

/* Generic semantic aliases used by page agents */
.eyebrow {
  font-family: var(--cd-font-data);
  font-size: 11px;
  color: var(--cd-signal-600);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.lead {
  font-size: 18px;
  color: var(--cd-steel);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-note {
  font-family: var(--cd-font-data);
  font-size: 12px;
  color: var(--cd-steel);
  margin-top: 12px;
}

/* Large button variant */
.cdx-btn--lg {
  padding: 14px 28px;
  font-size: 16px;
}

/* ============================================================
   20. DARK BAND (used in product + solutions pages)
   ============================================================ */
.band {
  background: var(--cd-ink);
  color: var(--cd-paper-text);
  padding: 80px 0;
}

.band h2, .band h3 {
  color: var(--cd-paper-text);
}

.band-in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ============================================================
   21. HERO COLLAGE CARD TYPES
   ============================================================ */
.hc-card {
  position: absolute;
  background: var(--cd-card);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius-lg);
  box-shadow: 0 18px 50px rgba(11, 18, 32, 0.13);
  color: var(--cd-ink);
}

/* Results table card — no padding (bar + rows set their own) */
.hc-table { padding: 0; }

/* Table row: 3-col grid (name | beds | rating), like the original */
.hc-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid #F0EDE6;
  font-size: 13px;
  color: var(--cd-ink);
}
.hc-row:last-child { border-bottom: none; }

/* ============================================================
   22. FEATURE CARDS (homepage + pages)
   ============================================================ */
.feature-card {
  background: var(--cd-card);
  border-radius: var(--cd-radius-lg);
  padding: 28px;
  border: 1px solid var(--cd-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-card-icon {
  width: 48px;
  height: 48px;
  background: var(--cd-paper);
  border-radius: var(--cd-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Pin/bell emojis in feature card titles — hide, SVG icon is used */
.feature-card-icon-emoji { display: none; }

.feature-card-title {
  font-family: var(--cd-font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--cd-ink);
}

.feature-card-body {
  font-size: 14.5px;
  color: var(--cd-steel);
  line-height: 1.65;
}

.feature-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feature-card-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}
.feature-card-list li {
  font-size: 13px;
  color: var(--cd-steel);
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-card-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.flow-step {
  background: var(--cd-paper);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius-sm);
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--cd-steel);
}
.flow-step--active {
  background: var(--cd-ink);
  color: var(--cd-paper-text);
  border-color: var(--cd-ink);
}
.flow-arrow { color: var(--cd-steel); font-size: 16px; }

/* Change indicator dots */
.feature-list-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.feature-list-dot--new  { background: var(--cd-signal-600); }
.feature-list-dot--drop { background: var(--cqc-inadequate); }

/* ============================================================
   23. CTA SECTION + CTA BLOCK
   ============================================================ */
.cta-section {
  background: var(--cd-paper);
  padding: 96px 0;
}

.cta-section-in {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-section-title {
  font-family: var(--cd-font-head);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-section-sub {
  font-size: 18px;
  color: var(--cd-steel);
  line-height: 1.6;
  margin-bottom: 36px;
}

.cta-section-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.cta-section-fine {
  font-family: var(--cd-font-data);
  font-size: 12px;
  color: var(--cd-steel);
}

/* Compact CTA block used inside solutions pages */
.cta-block {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================================
   24. DATA STRIP ITEMS
   ============================================================ */
.data-strip-in {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.data-strip-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--cd-font-data);
  font-size: 12.5px;
  color: var(--cd-steel);
}

.data-strip-item b {
  color: var(--cd-ink);
  font-weight: 500;
}

.data-strip-icon {
  color: var(--cd-signal-600);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.data-strip-divider {
  width: 1px;
  height: 16px;
  background: var(--cd-border);
  flex-shrink: 0;
}

.data-label { color: var(--cd-ink); font-weight: 500; }

/* ============================================================
   25. INLINE MARKERS
   ============================================================ */
/* Inline check/cross marks — templates supply the glyph; just colour it */
.check { color: var(--cd-signal-600); font-weight: 700; }
.cross { color: var(--cd-steel); }

/* ============================================================
   26. ICP SEGMENT LIST (product page dark band)
   ============================================================ */
.seg-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seg-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--cd-radius);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.seg-row:hover { background: rgba(255,255,255,0.07); text-decoration: none; }

.mono-n {
  font-family: var(--cd-font-data);
  font-size: 13px;
  color: var(--cd-signal);
  margin-left: auto;
  flex-shrink: 0;
}

/* ============================================================
   27. TRIGGER / ALERT CARDS
   ============================================================ */
.trigger-card {
  background: var(--cd-card);
  border-radius: var(--cd-radius-lg);
  padding: 24px;
  border: 1px solid var(--cd-border);
}

/* ============================================================
   28. PAGE HERO (product page)
   ============================================================ */
.page-hero {
  background: var(--cd-ink);
  color: var(--cd-paper-text);
  padding: 80px 0;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--cd-font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--cd-paper-text);
}
.page-hero p {
  font-size: 18px;
  color: var(--cd-steel-dark);
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

/* ============================================================
   29. PRICING EXTRAS
   ============================================================ */
/* .featured = alias for .pricing-card--pro */
.featured {
  border-color: var(--cd-signal-600) !important;
  box-shadow: 0 0 0 3px rgba(14,154,99,0.12);
  position: relative;
}

/* ============================================================
   30. COMPARE TABLE
   ============================================================ */
.compare-wrap { overflow-x: auto; }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.compare-table th {
  text-align: left;
  padding: 12px 16px;
  font-family: var(--cd-font-data);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--cd-steel);
  border-bottom: 2px solid var(--cd-border);
  white-space: nowrap;
}
.compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--cd-border);
  vertical-align: middle;
  color: var(--cd-ink);
}
.compare-table .highlight {
  background: rgba(43,217,143,0.06);
  font-weight: 600;
  color: var(--cd-ink);
}

/* ============================================================
   31. FAQ (native <details>)
   ============================================================ */
details {
  border-bottom: 1px solid var(--cd-border);
}
details summary {
  cursor: pointer;
  padding: 18px 0;
  font-family: var(--cd-font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--cd-ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: '+';
  font-size: 22px;
  color: var(--cd-steel);
  font-weight: 300;
  flex-shrink: 0;
}
details[open] summary::after { content: '−'; color: var(--cd-signal-600); }
details p {
  padding: 0 0 20px;
  color: var(--cd-steel);
  line-height: 1.7;
  font-size: 15px;
}
.faq-chevron { display: none; }

/* ============================================================
   32. ICP CARD SUB-ELEMENTS (homepage dark band)
   ============================================================ */
.icp-card-top {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}
.icp-card-emoji {
  font-size: 28px;
  display: block;
}
.icp-card-count {
  font-family: var(--cd-font-data);
  font-size: 11px;
  color: var(--cd-signal);
  letter-spacing: 0.04em;
}
.icp-card-title {
  font-family: var(--cd-font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--cd-paper-text);
  margin-bottom: 8px;
}
.icp-card-body {
  font-size: 14px;
  color: var(--cd-steel-dark);
  line-height: 1.55;
  margin-bottom: 16px;
}
.icp-card-link {
  font-size: 13px;
  color: var(--cd-signal);
  text-decoration: none;
  font-weight: 600;
}
.icp-card-link:hover { text-decoration: underline; }

/* ============================================================
   33. ICP BAND TITLE/SUB (may duplicate — safe to re-declare)
   ============================================================ */
.icp-band-title {
  font-family: var(--cd-font-head);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--cd-paper-text);
  margin-bottom: 12px;
}
.icp-band-sub {
  font-size: 17px;
  color: var(--cd-steel-dark);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   34. OGL ATTRIBUTION BAR
   ============================================================ */
.ogl-bar {
  background: var(--cd-paper);
  border-top: 1px solid var(--cd-border);
  padding: 20px 0;
}
.ogl-text {
  font-family: var(--cd-font-data);
  font-size: 11px;
  color: var(--cd-steel);
  line-height: 1.7;
  text-align: center;
}
.ogl-link { color: var(--cd-signal-600); }
.ogl-link:hover { text-decoration: underline; }

/* ============================================================
   35. STEP NUMBER (explicit element, used in some templates)
   ============================================================ */
.step-num {
  font-family: var(--cd-font-data);
  font-size: 13px;
  font-weight: 700;
  width: 32px;
  height: 32px;
  background: var(--cd-signal);
  color: var(--cd-ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

/* ============================================================
   36. NAV DROPDOWN (no icon layout)
   ============================================================ */
.nav-dropdown-title {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--cd-ink);
}
.nav-dropdown-sub {
  display: block;
  font-size: 12px;
  color: var(--cd-steel);
  margin-top: 1px;
}
/* Dropdown item: stack title + sub vertically */
.nav-dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: var(--cd-radius);
  text-decoration: none;
  color: var(--cd-ink);
  transition: background 0.12s;
}
.nav-dropdown-item:hover {
  background: var(--cd-paper);
  text-decoration: none;
}

/* ============================================================
   37. RESPONSIVE ADDITIONS
   ============================================================ */
@media (max-width: 960px) {
  .icp-hero-in {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .icp-hero-visual { display: none; }
  .band-in {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 720px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .cta-section-actions {
    flex-direction: column;
    align-items: center;
  }
}

.collage {
  position: relative;
  min-height: 460px;
}
