/* dpp.css — Decisionproof commercial surface
 * Phase 3: minimal stylesheet for all public pages
 * No external dependencies — self-contained.
 */

/* ─── Reset & Base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --brand-primary:   #4F46E5;   /* indigo-600 */
  --brand-hover:     #4338CA;   /* indigo-700 */
  --brand-light:     #EEF2FF;   /* indigo-50  */
  --text-primary:    #111827;   /* gray-900   */
  --text-secondary:  #6B7280;   /* gray-500   */
  --text-muted:      #9CA3AF;   /* gray-400   */
  --border:          #E5E7EB;   /* gray-200   */
  --surface:         #FFFFFF;
  --surface-alt:     #F9FAFB;   /* gray-50    */
  --danger:          #DC2626;   /* red-600    */
  --success:         #16A34A;   /* green-600  */
  --warning:         #D97706;   /* amber-600  */
  --radius-sm:       4px;
  --radius:          8px;
  --radius-lg:       12px;
  --shadow-sm:       0 1px 2px rgba(0,0,0,.05);
  --shadow:          0 4px 6px rgba(0,0,0,.07);
  --shadow-lg:       0 10px 40px rgba(0,0,0,.12);
  --max-w:           1120px;
  --font-sans:       -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono:       "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--brand-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Layout ──────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* ─── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav__logo {
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.nav__logo span { color: var(--brand-primary); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}

.nav__links a:hover {
  color: var(--text-primary);
  background: var(--surface-alt);
  text-decoration: none;
}

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 72px;
  text-align: center;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brand-primary);
  background: var(--brand-light);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 0 0 20px;
  color: var(--text-primary);
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, opacity .15s;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}
.btn--primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }

.btn--outline {
  background: transparent;
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.btn--outline:hover { background: var(--brand-light); }

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn--ghost:hover { background: var(--surface-alt); color: var(--text-primary); }

.btn--lg { padding: 14px 28px; font-size: 16px; }
.btn--sm { padding: 6px 14px; font-size: 13px; }
.btn--full { width: 100%; }

/* ─── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.card--elevated { box-shadow: var(--shadow-lg); }
.card--accent { border-color: var(--brand-primary); }

/* ─── Forms ───────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-input {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  appearance: none;
}

.form-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}

.form-input::placeholder { color: var(--text-muted); }
.form-input.error { border-color: var(--danger); }

.form-hint {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-secondary);
}

.form-hint.error { color: var(--danger); }

/* ─── Alerts ──────────────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  border: 1px solid transparent;
  margin-bottom: 16px;
}

.alert--success { background: #ECFDF5; color: #065F46; border-color: #A7F3D0; }
.alert--error   { background: #FEF2F2; color: #991B1B; border-color: #FECACA; }
.alert--warning { background: #FFFBEB; color: #92400E; border-color: #FDE68A; }
.alert--info    { background: #EFF6FF; color: #1E40AF; border-color: #BFDBFE; }
.alert--hidden  { display: none; }

/* ─── Badges ──────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  white-space: nowrap;
}

.badge--success { background: #DCFCE7; color: #15803D; }
.badge--warning { background: #FEF9C3; color: #A16207; }
.badge--error   { background: #FEE2E2; color: #B91C1C; }
.badge--info    { background: #DBEAFE; color: #1D4ED8; }
.badge--neutral { background: var(--surface-alt); color: var(--text-secondary); border: 1px solid var(--border); }

/* ─── Steps / Onboarding ──────────────────────────────────────────────────── */
.step-list { list-style: none; margin: 0; padding: 0; }

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.step-item:last-child { border-bottom: none; }

.step-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.step-icon--done    { background: #DCFCE7; color: #15803D; }
.step-icon--active  { background: var(--brand-light); color: var(--brand-primary); }
.step-icon--pending { background: var(--surface-alt); color: var(--text-muted); border: 1.5px solid var(--border); }

.step-content { flex: 1; }
.step-title { font-size: 15px; font-weight: 600; margin: 0 0 2px; }
.step-desc  { font-size: 14px; color: var(--text-secondary); margin: 0; }

/* ─── Pricing ─────────────────────────────────────────────────────────────── */
.pricing-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 420px;
  margin: 0 auto;
}

.pricing-card--featured {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(79,70,229,.1), var(--shadow-lg);
}

.pricing-price {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -2px;
  line-height: 1;
  margin: 12px 0 4px;
}

.pricing-price sup {
  font-size: 24px;
  letter-spacing: 0;
  vertical-align: top;
  margin-top: 10px;
  display: inline-block;
  font-weight: 700;
}

.pricing-period {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 15px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features .check { color: var(--success); font-weight: 700; }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copy { font-size: 13px; color: var(--text-muted); }

.footer__links {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links a { font-size: 13px; color: var(--text-muted); }
.footer__links a:hover { color: var(--text-secondary); }

/* ─── Spinner ─────────────────────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Section helpers ─────────────────────────────────────────────────────── */
.section { padding: 64px 0; }
.section--alt { background: var(--surface-alt); }

.section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 0 40px;
}

/* ─── Code ────────────────────────────────────────────────────────────────── */
pre, code {
  font-family: var(--font-mono);
  font-size: 13px;
}

pre {
  background: #1E1E2E;
  color: #CDD6F4;
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  line-height: 1.7;
}

code {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--brand-primary);
}

pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

/* ─── Utilities ───────────────────────────────────────────────────────────── */
.text-center  { text-align: center; }
.text-sm      { font-size: 14px; }
.text-xs      { font-size: 12px; }
.text-muted   { color: var(--text-secondary); }
.text-danger  { color: var(--danger); }
.text-success { color: var(--success); }
.mt-0  { margin-top: 0; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0  { margin-bottom: 0; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ─── How it works — numbered steps ──────────────────────────────────────── */
.how-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: step-counter;
}

.how-step {
  display: flex;
  gap: 28px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.how-step:last-child { border-bottom: none; }

.how-step__num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.how-step__body { flex: 1; }

.how-step__title {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.how-step__desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.65;
}

/* ─── Security — trust grid ───────────────────────────────────────────────── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.trust-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.trust-item__icon {
  font-size: 28px;
  margin-bottom: 14px;
  line-height: 1;
}

.trust-item__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.trust-item__desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* ─── Nav active state ────────────────────────────────────────────────────── */
.nav__links a[aria-current="page"] {
  color: var(--text-primary);
  font-weight: 600;
  background: var(--surface-alt);
}

/* ─── Additional margin utilities ────────────────────────────────────────── */
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 48px 0 40px; }
  .hero p { font-size: 16px; }
  .nav__links { gap: 0; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .section { padding: 40px 0; }
  /* Hide secondary nav items on mobile — accessible via footer */
  .nav__link--secondary { display: none; }
  .how-step { gap: 16px; }
  .how-step__num { width: 36px; height: 36px; font-size: 15px; }
}
