/* DPDP Ready — shared stylesheet. Self-contained: system fonts, no external assets. */

:root {
  color-scheme: light;
  --bg: #f4f7fa;
  --surface: #ffffff;
  --text: #111827;
  --text-muted: #3f4d61;
  --brand: #123f5c;
  --brand-strong: #082f49;
  --accent: #076b61;
  --accent-hover: #05564e;
  --accent-soft: #dff3ef;
  --border: #cbd5e1;
  --danger: #a1261d;
  --danger-soft: #fde8e6;
  --shadow: 0 3px 14px rgba(8, 47, 73, 0.10);
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.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;
}

html { scroll-behavior: smooth; }

.skip-link {
  position: fixed; top: 0.5rem; left: 0.5rem; z-index: 100;
  padding: 0.65rem 1rem; border-radius: 8px;
  background: var(--surface); color: var(--brand-strong);
  border: 2px solid var(--accent); text-decoration: none;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: #075f91; }
a:hover { color: #064a70; }

a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: 1.15rem; color: var(--brand-strong);
  text-decoration: none; letter-spacing: 0.2px;
}
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--brand); color: #fff; font-size: 0.8rem; font-weight: 800;
}
.nav-links { display: flex; gap: 0.25rem; list-style: none; align-items: center; }
.nav-links a {
  display: block; padding: 0.5rem 0.85rem; border-radius: 8px;
  color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 0.95rem;
}
.nav-links a:hover { color: var(--brand-strong); background: var(--bg); }
.nav-links a.active { color: var(--brand-strong); background: var(--accent-soft); }
.nav-links a.nav-cta {
  background: var(--brand); color: #fff; margin-left: 0.35rem;
}
.nav-links a.nav-cta:hover { background: var(--brand-strong); color: #fff; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: 8px; padding: 0.45rem 0.6rem; cursor: pointer; color: var(--text);
  font-size: 1.1rem; line-height: 1;
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 0.5rem 1rem 1rem; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 0.85rem; }
  .nav-links a.nav-cta { margin: 0.5rem 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: #f8fafc; padding: 4.5rem 0 4rem;
}
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); line-height: 1.2; max-width: 720px; color: #fff; }
.hero p.lead { margin-top: 1rem; font-size: 1.15rem; max-width: 680px; color: #e2edf5; }
.hero .btn-row { margin-top: 2rem; display: flex; gap: 0.85rem; flex-wrap: wrap; }
.eyebrow {
  display: inline-block; margin-bottom: 1rem; padding: 0.3rem 0.8rem;
  border-radius: 999px; background: rgba(255, 255, 255, 0.14);
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: #f1f7fa;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 0.7rem 1.4rem; border-radius: 8px;
  font-weight: 600; text-decoration: none; font-size: 0.98rem;
  border: 2px solid transparent; cursor: pointer; transition: background 0.15s, color 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-outline { border-color: var(--brand); color: var(--brand-strong); background: var(--surface); }
.btn-outline:hover { background: var(--accent-soft); }

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: 2.25rem; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--brand-strong); }
.section-head p { margin-top: 0.6rem; color: var(--text-muted); }

.grid { display: grid; gap: 1.25rem; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
.section.alt .card { background: var(--bg); }
.card h3 { font-size: 1.08rem; color: var(--brand-strong); margin-bottom: 0.5rem; }
.card h2 { font-size: 1.18rem; color: var(--brand-strong); margin-bottom: 0.55rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; }
.card .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 9px; margin-bottom: 0.9rem;
  background: var(--accent-soft); color: var(--accent); font-size: 1.25rem;
}

/* ---------- Stats / penalty highlights ---------- */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 720px) { .stat-row { grid-template-columns: 1fr; } }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; box-shadow: var(--shadow);
}
.stat .num { font-size: 1.9rem; font-weight: 800; color: var(--brand-strong); line-height: 1.15; }
.stat .num.danger { color: var(--danger); }
.stat .label { margin-top: 0.35rem; color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Content pages ---------- */
.page-title { padding: 3rem 0 0.5rem; }
.page-title h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); color: var(--brand-strong); }
.page-title p { margin-top: 0.6rem; color: var(--text-muted); max-width: 700px; font-size: 1.05rem; }

.prose { max-width: 780px; }
.prose h2 { margin: 2.4rem 0 0.8rem; font-size: 1.45rem; color: var(--brand-strong); }
.prose h3 { margin: 1.6rem 0 0.5rem; font-size: 1.12rem; color: var(--brand-strong); }
.prose p { margin-bottom: 0.9rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.4rem; }
.prose li { margin-bottom: 0.45rem; }
.prose strong { color: var(--brand-strong); }

.note {
  border-left: 4px solid var(--accent); background: var(--accent-soft);
  padding: 0.9rem 1.1rem; border-radius: 0 8px 8px 0; margin: 1.2rem 0; font-size: 0.95rem;
}
.note.warn { border-left-color: var(--danger); background: var(--danger-soft); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 1.2rem 0; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 0.93rem; min-width: 560px; }
th, td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--accent-soft); color: var(--brand-strong); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: none; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 1rem 0 !important; }
.checklist li {
  position: relative; padding: 0.55rem 0 0.55rem 2.1rem; border-bottom: 1px dashed var(--border);
}
.checklist li::before {
  content: "✓"; position: absolute; left: 0.25rem; top: 0.5rem;
  width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 800;
}

/* ---------- FAQ ---------- */
details.faq {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 0.75rem; padding: 0;
}
details.faq summary {
  cursor: pointer; font-weight: 600; color: var(--brand-strong);
  padding: 1rem 1.25rem; list-style: none; position: relative;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 1.3rem; font-weight: 700;
}
details.faq[open] summary::after { content: "–"; }
details.faq .faq-body { padding: 0 1.25rem 1.1rem; color: var(--text-muted); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow); max-width: 640px;
}
.form-field { margin-bottom: 1.15rem; }
.form-field label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.95rem; }
.form-field .req { color: var(--danger); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 0.65rem 0.85rem; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); color: var(--text); font: inherit; font-size: 0.97rem;
}
#readiness-check fieldset { border: 0; }
#readiness-check input[type="checkbox"] {
  width: auto; margin-right: 0.55rem; accent-color: var(--accent);
}
#readiness-check .form-field label { display: flex; align-items: flex-start; font-weight: 500; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.form-field .hint { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.3rem; }
.field-error { color: var(--danger); font-size: 0.85rem; margin-top: 0.3rem; display: none; }
.form-field.invalid .field-error { display: block; }
.form-field.invalid input, .form-field.invalid textarea { border-color: var(--danger); }
/* Honeypot — hidden from humans, present for bots */
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

.form-status {
  display: none; padding: 0.9rem 1.1rem; border-radius: 8px; margin-bottom: 1.2rem; font-weight: 500;
}
.form-status.success { display: block; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent); }
.form-status.error { display: block; background: var(--danger-soft); color: var(--danger); border: 1px solid var(--danger); }
.btn:disabled { opacity: 0.7; cursor: wait; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: #fff; border-radius: var(--radius); padding: 2.5rem 2rem; text-align: center;
}
.cta-band h2 { font-size: 1.6rem; color: #fff; }
.cta-band p { margin: 0.6rem auto 1.4rem; max-width: 560px; color: #e2edf5; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 3.5rem; background: var(--surface); border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem; font-size: 0.92rem; color: var(--text-muted);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--brand-strong); margin-bottom: 0.6rem; font-size: 1rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--brand-strong); text-decoration: underline; }
.footer-disclaimer {
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border);
  font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between;
}

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 6rem 1rem; }
.error-page .code { font-size: 5rem; font-weight: 800; color: var(--brand); line-height: 1; }
.error-page p { margin: 1rem 0 2rem; color: var(--text-muted); }

/* ---------- Utility ---------- */
.mt-2 { margin-top: 2rem; }
.center { text-align: center; }

/* ---------- Capability screenshots ---------- */
.showcase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.showcase-figure {
  margin: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.showcase-figure img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--border); }
.showcase-figure figcaption { padding: 1rem 1.1rem; color: var(--text-muted); font-size: 0.92rem; }
.showcase-figure strong { display: block; margin-bottom: 0.25rem; color: var(--brand-strong); }
@media (max-width: 760px) { .showcase-grid { grid-template-columns: 1fr; } }

.service-meta {
  margin-top: 1rem; padding-top: 0.85rem; border-top: 1px solid var(--border);
  font-size: 0.88rem; color: var(--text-muted);
}
.timeline { display: grid; gap: 0.75rem; margin: 1rem 0 1.5rem; }
.timeline-item {
  display: grid; grid-template-columns: minmax(130px, 180px) 1fr; gap: 1rem;
  padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
}
.timeline-item strong { color: var(--brand-strong); }
@media (max-width: 560px) { .timeline-item { grid-template-columns: 1fr; gap: 0.25rem; } }

.process-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.75rem; }
.process-flow div {
  position: relative; min-height: 112px; padding: 1rem;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.process-flow strong, .process-flow span { display: block; }
.process-flow strong { color: var(--brand-strong); margin-bottom: 0.35rem; }
.process-flow span { color: var(--text-muted); font-size: 0.9rem; }
@media (max-width: 860px) { .process-flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .process-flow { grid-template-columns: 1fr; } }

.report-card {
  max-width: 780px; margin-top: 1.5rem; padding: 2rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.report-card[hidden] { display: none; }
.report-card h2 { color: var(--brand-strong); margin-bottom: 0.75rem; }
.report-card h3 { color: var(--brand-strong); margin: 1.25rem 0 0.5rem; }
.report-card ol { margin-left: 1.25rem; }
.report-card li { margin-bottom: 0.5rem; }
.report-disclaimer { margin-top: 1.25rem; color: var(--text-muted); font-size: 0.88rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
  .site-header, .site-footer, .page-title, #readiness-check, #readiness-result,
  .note, .no-print, .skip-link { display: none !important; }
  body, main, .section { background: #fff !important; color: #000 !important; padding: 0 !important; }
  .report-card { display: block !important; max-width: none; border: 0; box-shadow: none; padding: 0; }
  .report-card a { color: #000; }
}
