/* ==========================================================================
   Sanitica – Law Firms Landing Page
   ========================================================================== */

/* -- Hero ----------------------------------------------------------------- */

.lf-hero {
  padding: 160px 0 80px;
  text-align: center;
}
.lf-hero .section-label { text-align: center; }
.lf-hero h1 {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.lf-hero h1 .gradient {
  background: linear-gradient(135deg, var(--teal), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lf-hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 600px;
  margin: 0 auto 40px;
}

/* -- Risk grid ------------------------------------------------------------ */

.lf-risk-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.lf-risk-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}
.lf-risk-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
  opacity: 0.6;
}
.lf-risk-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.lf-risk-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(232, 54, 79, 0.08);
  border: 1px solid rgba(232, 54, 79, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
}

.lf-risk-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}
.lf-risk-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* -- Mode cards (vertical with before/after) ------------------------------ */

.lf-mode-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.lf-mode-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 32px;
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--border);
  transition: all 0.4s ease;
}
.lf-mode-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.lf-mode-card--clean { border-left-color: var(--mode-clean); }
.lf-mode-card--pseudo { border-left-color: var(--mode-pseudo); }
.lf-mode-card--meta { border-left-color: var(--mode-meta); }

.lf-mode-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.lf-mode-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.lf-mode-card--clean .lf-mode-icon { background: var(--mode-clean-bg); border-color: rgba(232, 54, 79, 0.15); }
.lf-mode-card--pseudo .lf-mode-icon { background: var(--mode-pseudo-bg); border-color: rgba(168, 85, 247, 0.15); }
.lf-mode-card--meta .lf-mode-icon { background: var(--mode-meta-bg); border-color: rgba(234, 179, 8, 0.15); }

.lf-mode-title {
  font-size: 18px;
  font-weight: 600;
}
.lf-mode-usecase {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 2px;
}
.lf-mode-card--clean .lf-mode-usecase { color: var(--mode-clean); }
.lf-mode-card--pseudo .lf-mode-usecase { color: var(--mode-pseudo); }
.lf-mode-card--meta .lf-mode-usecase { color: var(--mode-meta); }

.lf-mode-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.lf-mode-example {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.lf-mode-example-panel {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
}
.lf-mode-example-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
}
.lf-example-before .lf-mode-example-label { color: var(--red); }
.lf-example-after .lf-mode-example-label { color: var(--teal); }
.lf-mode-card--pseudo .lf-example-after .lf-mode-example-label { color: var(--mode-pseudo); }
.lf-mode-card--meta .lf-example-after .lf-mode-example-label { color: var(--mode-meta); }

.lf-example-before { color: var(--text-muted); }
.lf-example-after { color: var(--teal); }
.lf-mode-card--pseudo .lf-example-after { color: var(--mode-pseudo); }
.lf-mode-card--meta .lf-example-after { color: var(--mode-meta); }
.lf-pii { color: var(--red); text-decoration: line-through; opacity: 0.7; }

/* -- Scenario ------------------------------------------------------------- */

.lf-scenario {
  margin-top: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.lf-scenario-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
}
.lf-scenario-tab {
  flex: 1;
  padding: 14px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-bottom: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.3s;
  text-align: center;
}
.lf-scenario-tab:first-child { border-radius: 12px 0 0 0; }
.lf-scenario-tab:last-child { border-radius: 0 12px 0 0; }
.lf-scenario-tab.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-bottom-color: var(--bg-surface);
}
.lf-scenario-tab--danger.active { color: var(--red); }
.lf-scenario-tab--safe.active { color: var(--teal); }

.lf-scenario-panel {
  display: none;
  padding: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 0 0 12px 12px;
  border-top: none;
}
.lf-scenario-panel.active { display: block; }

.lf-doc-window {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.lf-doc-window-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.lf-doc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.lf-doc-dot--red { background: #E8364F; }
.lf-doc-dot--yellow { background: #EAB308; }
.lf-doc-dot--green { background: #22C55E; }
.lf-doc-window-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 8px;
}
.lf-doc-window-body {
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 2;
  color: var(--text-secondary);
}
.lf-doc-window-body .lf-pii {
  text-decoration: none;
  background: rgba(232, 54, 79, 0.12);
  border: 1px solid rgba(232, 54, 79, 0.25);
  border-radius: 3px;
  padding: 1px 4px;
  color: var(--red);
}
.lf-doc-window-body .lf-safe {
  color: var(--teal);
}

.lf-scenario-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
}

/* -- Compliance grid ------------------------------------------------------ */

.lf-compliance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.lf-compliance-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}
.lf-compliance-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.lf-compliance-num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.4;
}

.lf-compliance-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.lf-compliance-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* -- CTA ------------------------------------------------------------------ */

.lf-cta {
  text-align: center;
  padding: 100px 0 80px;
  position: relative;
}
.lf-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0, 240, 212, 0.06), transparent 70%);
  pointer-events: none;
}
.lf-cta h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.lf-cta p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.75;
}

/* -- Responsive ----------------------------------------------------------- */

@media (max-width: 1080px) {
  .lf-hero h1 { font-size: 36px; }
  .lf-risk-grid { grid-template-columns: 1fr; }
  .lf-compliance-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .lf-hero { padding: 130px 0 60px; }
  .lf-hero h1 { font-size: 28px; }
  .lf-mode-example { grid-template-columns: 1fr; }
  .lf-scenario-tab { font-size: 13px; padding: 12px 16px; }
  .lf-scenario-panel { padding: 20px; }
  .lf-doc-window-body { padding: 16px; font-size: 12px; }
}
