:root {
  --bg: #ffffff;
  --ink: #07111f;
  --muted: #526173;
  --line: #d9e4ec;
  --soft: #f4f9fc;
  --blue: #6ecbf4;
  --blue-dark: #0d6f9c;
  --dark: #05070a;
  --ok: #127a45;
  --warn: #9a6b00;
  --bad: #b42318;
  --radius: 8px;
  --shadow: 0 16px 48px rgba(7, 17, 31, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1rem; color: var(--muted); }
h1, h2, h3 { margin: 0 0 1rem; line-height: 1.08; letter-spacing: 0; }
h1 { font-size: clamp(2.4rem, 5vw, 5rem); }
h2 { font-size: clamp(1.8rem, 3vw, 3rem); }
h3 { font-size: 1.15rem; }
ul { margin: 0; padding-left: 1.2rem; }
button, input, textarea, select { font: inherit; }

.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 40px)); }
.section { padding: 88px 0; }
.light { background: var(--soft); }
.dark { background: var(--dark); color: #fff; }
.dark p, .dark li { color: #d8e2ea; }
.center-text { text-align: center; }
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  z-index: 30;
}
.skip-link:focus { top: 12px; }
.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand img { width: 190px; max-height: 64px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: .95rem; font-weight: 650; }
.site-nav a { text-decoration: none; color: #253245; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--blue-dark); }
.nav-cta {
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink) !important;
}
.nav-toggle { display: none; background: none; border: 0; padding: 10px; }
.nav-toggle-line, .nav-toggle-line::before, .nav-toggle-line::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  content: "";
}
.nav-toggle-line::before { transform: translateY(-7px); }
.nav-toggle-line::after { transform: translateY(5px); }

.hero { padding: 72px 0 88px; background: linear-gradient(180deg, #fff 0%, #f8fcfe 100%); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 48px; align-items: center; }
.hero-copy { max-width: 650px; }
.hero-lede { font-size: 1.35rem; color: #243244; }
.hero-media {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #eaf6fb;
}
.hero-media img { aspect-ratio: 16 / 10; object-fit: cover; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--blue-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--blue);
}
.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.button-row.center { justify-content: center; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}
.button.primary { background: var(--ink); color: #fff; }
.button.secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.button.light-button { background: #fff; color: var(--ink); }
.button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.section-heading { max-width: 820px; margin-bottom: 36px; }
.section-heading.narrow { max-width: 760px; }
.check-list { display: grid; gap: 12px; padding: 0; list-style: none; }
.check-list li {
  position: relative;
  padding-left: 28px;
  color: #263548;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 10px;
  height: 10px;
  border: 2px solid var(--blue-dark);
  border-radius: 50%;
}
.check-list.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }

.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.comparison > div, .phase-card, .service-grid article, .article-card, .report-panel, .form-card, .notice, .score-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.comparison > div { padding: 28px; }
.comparison ul { display: grid; gap: 10px; color: var(--muted); }

.phase-grid, .service-grid, .content-grid, .article-grid, .report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.phase-card, .service-grid article, .article-card { padding: 26px; }
.phase-card span, .price, .article-meta {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--blue-dark);
  font-size: .82rem;
  font-weight: 800;
}
.tag-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-grid span {
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: 9px 12px;
  color: #eaf6fb;
  background: rgba(255, 255, 255, .05);
}
.split-panel {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 36px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.dark .split-panel {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .14);
}
.service-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.service-grid.large { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.founder { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.final-cta { text-align: center; background: linear-gradient(180deg, #f7fbfe 0%, #fff 100%); }
.final-cta h2 { max-width: 900px; margin-left: auto; margin-right: auto; }

.page-hero { background: var(--soft); padding: 68px 0; }
.page-hero p { font-size: 1.16rem; }
.report-hero h1 {
  max-width: 820px;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  overflow-wrap: anywhere;
}
.lifecycle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.lifecycle div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.lifecycle span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
}
.content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.content-grid article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.dark .content-grid article { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .16); }
.gate-list { display: grid; gap: 12px; }
.gate-list div {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.gate-list span { color: var(--muted); }

.form-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.form-card { display: grid; gap: 16px; padding: 26px; box-shadow: var(--shadow); }
label { display: grid; gap: 7px; font-weight: 750; }
input, select, textarea {
  width: 100%;
  border: 1px solid #cbd8e2;
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
}
textarea { resize: vertical; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; font-weight: 650; }
.checkbox-label input { width: auto; margin-top: 6px; }
.drop-zone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 28px;
  border: 2px dashed #a9c5d8;
  border-radius: var(--radius);
  background: #f8fcfe;
  text-align: center;
  cursor: pointer;
}
.drop-zone.is-dragging {
  border-color: var(--blue-dark);
  background: #eef9fe;
}
.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  left: 50%;
  bottom: 16px;
  opacity: 0;
  pointer-events: none;
}
.drop-zone-title {
  display: block;
  font-size: 1.15rem;
  font-weight: 900;
}
.drop-zone-text,
.drop-zone-file {
  display: block;
  color: var(--muted);
  font-weight: 650;
}
.drop-zone-file {
  max-width: 100%;
  margin-top: 10px;
  overflow-wrap: anywhere;
  color: var(--blue-dark);
}
.fine-print { font-size: .9rem; color: #647386; }
.notice { padding: 16px; }
.notice.success { border-color: rgba(18, 122, 69, .4); background: #effaf5; color: var(--ok); }
.notice.error { border-color: rgba(180, 35, 24, .35); background: #fff4f2; color: var(--bad); }

.article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-card h2 { font-size: 1.35rem; }
.article-card a { text-decoration: none; }
.text-link { color: var(--blue-dark); font-weight: 800; }
.article-detail h1 { font-size: clamp(2.2rem, 4vw, 4rem); }
.article-subtitle { font-size: 1.24rem; color: #263548; }
.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 20px 0 36px;
  color: var(--muted);
  font-weight: 700;
}
.article-detail p { font-size: 1.06rem; }
.article-cta {
  margin-top: 44px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.report-summary {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 40px;
  align-items: center;
}
.score-card { padding: 26px; text-align: center; }
.score-card span, .score-card small { display: block; color: var(--muted); font-weight: 800; }
.score-card strong { display: block; font-size: 4rem; line-height: 1; }
.score-meter {
  position: relative;
  height: 10px;
  margin-top: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d92d20 0 45%, #f2b705 45% 80%, #16a163 80% 100%);
}
.score-meter i {
  position: absolute;
  top: 50%;
  left: min(100%, max(0%, var(--score)));
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 2px 8px rgba(7, 17, 31, .25);
  transform: translate(-50%, -50%);
}
.report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.report-panel { padding: 24px; }
.report-panel h2 { font-size: clamp(1.8rem, 3vw, 2.45rem); }
.report-panel p:last-child { margin-bottom: 0; }
.data-list { display: grid; gap: 10px; margin: 0; }
.data-list div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.data-list dt { font-weight: 800; }
.data-list dd { margin: 0; color: var(--muted); text-align: right; overflow-wrap: anywhere; }
.status-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.status-list span {
  padding: 9px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  font-weight: 800;
  font-size: .9rem;
}
.status-list .pass { color: var(--ok); background: #effaf5; border-color: rgba(18, 122, 69, .35); }
.status-list .fail { color: var(--bad); background: #fff4f2; border-color: rgba(180, 35, 24, .35); }
.status-list .pending { color: var(--warn); background: #fff8e6; border-color: rgba(154, 107, 0, .28); }
.issue-list { display: grid; gap: 14px; }
.issue { border-left: 5px solid var(--line); padding: 18px; border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.issue span { font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.severity-critical { border-left-color: var(--bad); }
.severity-warning { border-left-color: var(--warn); }
.severity-info { border-left-color: var(--blue-dark); }

.player-shell { min-height: calc(100vh - 76px); background: #eef6fb; }
.player-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.player-toolbar h1 { font-size: 1.35rem; margin: 0; }
.player-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 0;
  height: calc(100vh - 154px);
}
#scorm-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.runtime-panel {
  overflow: auto;
  padding: 20px;
  border-left: 1px solid var(--line);
  background: #fff;
}
.runtime-panel h2, .runtime-panel h3 { margin-top: 0; }
.status-list.mini { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; }
pre {
  max-height: 220px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fbfe;
  font-size: .82rem;
}
.runtime-log {
  max-height: 180px;
  overflow: auto;
  margin: 0 0 18px;
  padding-left: 20px;
  font-size: .82rem;
}

.legal h2 { font-size: 1.35rem; margin-top: 2rem; }
.site-footer { background: var(--dark); color: #fff; padding: 54px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr 1.1fr; gap: 36px; }
.footer-logo { width: 180px; margin-bottom: 16px; }
.site-footer p { color: #cbd8e2; }
.site-footer h2 { font-size: .95rem; margin-bottom: 12px; }
.site-footer a { display: block; color: #dbe8ef; text-decoration: none; margin: 8px 0; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #aab8c5;
  font-size: .9rem;
}

@media (max-width: 980px) {
  .site-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px; }
  .nav-toggle { display: inline-flex; }
  .hero-grid, .two-col, .form-layout, .split-panel, .report-summary, .player-grid { grid-template-columns: 1fr; }
  .phase-grid, .service-grid, .service-grid.large, .article-grid, .content-grid, .report-grid, .lifecycle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .player-grid { height: auto; }
  #scorm-frame { height: 70vh; min-height: 520px; }
  .runtime-panel { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .container, .narrow { width: min(100% - 28px, 1120px); }
  .section { padding: 60px 0; }
  .hero { padding-top: 48px; }
  .phase-grid, .service-grid, .service-grid.large, .article-grid, .content-grid, .report-grid, .lifecycle, .comparison, .check-list.compact, .status-list, .footer-grid { grid-template-columns: 1fr; }
  .player-toolbar { align-items: flex-start; flex-direction: column; }
  .data-list div { display: grid; }
  .data-list dd { text-align: left; }
  .footer-bottom { flex-direction: column; }
  .brand img { width: 165px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .site-header, .site-footer, .button-row, .final-cta { display: none !important; }
  .section { padding: 20px 0; }
  .report-grid { grid-template-columns: 1fr 1fr; }
}
