/* ========================
   Clearpath — Theme Stylesheet
   ======================== */

:root {
  --bg: #F9F7F4;
  --fg: #1A1A1A;
  --fg-muted: #6B6560;
  --green: #1B4332;
  --green-mid: #2D6A4F;
  --green-light: #40916C;
  --amber: #B5530A;
  --amber-light: #F4E4D4;
  --border: #E5E0D8;
  --surface: #FFFFFF;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* === Navigation === */
.nav {
  position: sticky;
  top: 0;
  background: rgba(249,247,244,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 0 24px;
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--green);
  letter-spacing: -0.01em;
}
.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* === Hero === */
.hero {
  padding: 80px 24px 72px;
}
.hero-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 20px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}
.hero-headline em {
  font-style: italic;
  color: var(--green);
}
.hero-lede {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 48px;
}
.hero-meta {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.hero-meta-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--green);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-meta-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  line-height: 1.5;
}
.hero-meta-divider {
  width: 1px;
  background: var(--border);
  margin: 0 28px;
}

/* === Compliance Dashboard Visual === */
.compliance-dashboard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(27,67,50,0.08), 0 1px 4px rgba(0,0,0,0.04);
  font-size: 0.78rem;
}
.dash-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--fg);
  color: #fff;
}
.dash-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dash-dot.green { background: #34D399; }
.dash-dot.yellow { background: #FBBF24; }
.dash-dot.red { background: #F87171; }
.dash-title {
  margin-left: 8px;
  font-size: 0.72rem;
  opacity: 0.6;
  letter-spacing: 0.04em;
}
.dash-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dash-row {
  display: grid;
  grid-template-columns: 130px 1fr 80px;
  align-items: center;
  gap: 12px;
}
.dash-label {
  font-size: 0.72rem;
  color: var(--fg-muted);
}
.dash-bar {
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
}
.dash-fill {
  height: 100%;
  border-radius: 3px;
}
.dash-fill.green { background: #10B981; }
.dash-fill.yellow { background: #F59E0B; }
.dash-fill.red { background: #EF4444; }
.dash-status { font-size: 0.7rem; font-weight: 600; }
.dash-status.green { color: #10B981; }
.dash-status.yellow { color: #F59E0B; }
.dash-status.red { color: #EF4444; }
.dash-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-top: 1px solid var(--border);
  background: rgba(16,185,129,0.06);
}
.dash-badge-icon {
  width: 20px;
  height: 20px;
  background: #10B981;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
}
.dash-badge span {
  font-size: 0.72rem;
  font-weight: 600;
  color: #059669;
}

/* === Risk Section === */
.risk {
  background: var(--green);
  color: white;
  padding: 80px 24px;
}
.risk-inner { max-width: 1120px; margin: 0 auto; }
.risk-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.risk-headline h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
  color: white;
  margin-bottom: 56px;
  max-width: 560px;
}
.risk-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 48px;
}
.risk-stat {
  padding: 36px 32px;
  background: rgba(255,255,255,0.04);
}
.risk-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: white;
  margin-bottom: 12px;
  line-height: 1;
}
.risk-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}
.risk-callout {
  position: relative;
  padding-left: 40px;
}
.risk-quote-mark {
  position: absolute;
  left: 0;
  top: -8px;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: rgba(255,255,255,0.3);
}
.risk-callout p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  font-style: italic;
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 12px;
}
.risk-attribution {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}

/* === What / Features Grid === */
.what {
  padding: 80px 24px;
  background: var(--surface);
}
.what-inner { max-width: 1120px; margin: 0 auto; }
.what-header {
  margin-bottom: 64px;
  max-width: 600px;
}
.what-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 12px;
}
.what-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.what-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
}
.what-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.what-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}
.what-icon {
  color: var(--green);
  margin-bottom: 16px;
}
.what-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.what-card p {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* === How It Works === */
.how {
  padding: 80px 24px;
  background: var(--bg);
}
.how-inner { max-width: 1120px; margin: 0 auto; }
.how-header {
  margin-bottom: 64px;
  max-width: 480px;
}
.how-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 12px;
}
.how-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.how-step {
  padding: 36px 28px;
  border-right: 1px solid var(--border);
  background: var(--surface);
}
.how-step:last-child { border-right: none; }
.how-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--green);
  opacity: 0.3;
  margin-bottom: 20px;
}
.how-step h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.how-step p {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* === Features Split === */
.features {
  padding: 80px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.features-inner { max-width: 1120px; margin: 0 auto; }
.features-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.features-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 16px;
}
.features-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.features-text > p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}
.features-list {
  list-style: none;
  margin-bottom: 32px;
}
.features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  margin-bottom: 12px;
}
.feat-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  font-size: 0.65rem;
  flex-shrink: 0;
}
.features-note {
  padding: 20px;
  background: var(--amber-light);
  border-radius: 8px;
  border-left: 3px solid var(--amber);
}
.features-note p {
  font-size: 0.82rem;
  color: var(--fg);
  line-height: 1.6;
}

/* === AI Assistant Visual === */
.assistant-box {
  background: var(--fg);
  border-radius: 16px;
  overflow: hidden;
  font-size: 0.78rem;
}
.assistant-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.assistant-dots {
  display: flex;
  gap: 5px;
}
.assistant-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.assistant-title {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}
.assistant-messages {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.assistant-msg { display: flex; flex-direction: column; gap: 4px; }
.assistant-question { align-items: flex-end; }
.assistant-answer { align-items: flex-start; }
.assistant-q-bubble {
  background: var(--green-mid);
  color: white;
  padding: 10px 14px;
  border-radius: 12px 12px 2px 12px;
  font-size: 0.76rem;
  max-width: 240px;
  line-height: 1.5;
}
.assistant-a-bubble {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  padding: 10px 14px;
  border-radius: 12px 12px 12px 2px;
  font-size: 0.76rem;
  max-width: 280px;
  line-height: 1.6;
}

/* === Pricing === */
.pricing {
  padding: 80px 24px;
  background: var(--bg);
}
.pricing-inner { max-width: 1120px; margin: 0 auto; }
.pricing-header {
  margin-bottom: 56px;
  text-align: center;
}
.pricing-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 12px;
}
.pricing-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.pricing-card {
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  position: relative;
}
.pricing-card.featured {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: white;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
}
.pricing-tier {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.pricing-amount {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--green);
  line-height: 1;
  margin-bottom: 12px;
}
.pricing-amount span {
  font-size: 1rem;
  color: var(--fg-muted);
  font-family: var(--font-body);
  font-weight: 400;
}
.pricing-desc {
  font-size: 0.82rem;
  color: var(--fg-muted);
  margin-bottom: 28px;
  line-height: 1.5;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-features li {
  font-size: 0.85rem;
  color: var(--fg);
  padding-left: 20px;
  position: relative;
}
.pricing-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--green-light);
}
.pricing-footnote {
  text-align: center;
  font-size: 0.8rem;
  color: var(--fg-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* === Closing === */
.closing {
  padding: 96px 24px;
  background: var(--green);
  color: white;
}
.closing-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.closing-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: white;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.closing-content p {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  margin-bottom: 20px;
}
.closing-content p:last-child { margin-bottom: 0; }

/* === Footer === */
.footer {
  padding: 40px 24px;
  background: var(--fg);
  color: rgba(255,255,255,0.5);
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: white;
  display: block;
  margin-bottom: 6px;
}
.footer-brand p {
  font-size: 0.8rem;
}
.footer-legal p {
  font-size: 0.75rem;
  max-width: 420px;
  line-height: 1.6;
}

/* === Responsive === */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .features-split { grid-template-columns: 1fr; gap: 48px; }
  .what-grid { grid-template-columns: repeat(2, 1fr); }
  .how-steps { grid-template-columns: repeat(2, 1fr); }
  .how-step { border-bottom: 1px solid var(--border); }
  .how-step:nth-child(even) { border-right: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .risk-stats { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}
@media (max-width: 600px) {
  .hero { padding: 56px 20px 48px; }
  .what-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; }
  .how-step { border-right: none; border-bottom: 1px solid var(--border); }
  .how-step:last-child { border-bottom: none; }
  .hero-meta { flex-direction: column; gap: 20px; }
  .hero-meta-divider { display: none; }
  .dash-row { grid-template-columns: 1fr 1fr; }
  .dash-label { display: none; }
}