:root {
  color-scheme: light;
  --bg: #f6f8f7;
  --paper: #ffffff;
  --ink: #12323d;
  --muted: #5e7078;
  --line: #d8e2e2;
  --navy: #123d63;
  --teal: #0f7b83;
  --green: #21784c;
  --amber: #a76209;
  --red: #b53b31;
  --violet: #6e4fb2;
  --indigo: #3f5fa8;
  --shadow: 0 16px 40px rgba(18, 50, 61, 0.12);
  --radius: 8px;
  --dock-height: 72px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(18, 50, 61, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 50, 61, 0.06) 1px, transparent 1px),
    var(--bg);
  background-size: 28px 28px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  padding-bottom: var(--dock-height);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 10px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid rgba(216, 226, 226, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--teal);
  color: #fff;
  font-weight: 850;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.topnav {
  display: none;
  align-items: center;
  gap: 4px;
}

.topnav a {
  min-height: 40px;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 720;
}

.topnav a:hover,
.topnav a:focus-visible {
  background: #edf5f4;
  color: var(--teal);
  outline: none;
}

main {
  width: min(1160px, calc(100% - 28px));
  margin: 0 auto;
}

.hero {
  display: grid;
  gap: 22px;
  padding: 24px 0 20px;
}

.hero-copy {
  align-self: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.12;
}

h1 {
  max-width: 10ch;
  font-size: clamp(2.3rem, 11vw, 5.7rem);
  font-weight: 920;
  color: #0d2d3a;
}

h2 {
  font-size: clamp(1.65rem, 5vw, 3rem);
  color: #173644;
}

h3 {
  font-size: 1.08rem;
}

.hero-lede {
  max-width: 60ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 22px;
}

.button,
.compact-link,
.open-link,
.icon-button {
  min-height: 48px;
  border-radius: var(--radius);
  font-weight: 820;
}

.button,
.compact-link,
.open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 15px;
}

.button svg,
.compact-link svg,
.open-link svg,
.icon-button svg,
.card-icon svg,
summary svg,
.status-card svg,
.bottom-dock svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  stroke-width: 2.3;
}

.primary {
  background: var(--teal);
  color: #fff;
}

.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
}

.button:hover,
.compact-link:hover,
.open-link:hover,
.icon-button:hover,
.bottom-dock a:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.compact-link:focus-visible,
.open-link:focus-visible,
.icon-button:focus-visible,
.bottom-dock a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(15, 123, 131, 0.28);
  outline-offset: 2px;
}

.status-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #f1d6aa;
  border-radius: var(--radius);
  background: #fff8ea;
  color: #704000;
  font-weight: 760;
}

.hero-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.hero-shortcuts a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: #173644;
  font-weight: 850;
  box-shadow: 0 8px 20px rgba(18, 50, 61, 0.06);
}

.hero-shortcuts a:hover,
.hero-shortcuts a:focus-visible {
  border-color: rgba(15, 123, 131, 0.32);
  color: var(--teal);
  outline: none;
  transform: translateY(-1px);
}

.hero-media {
  display: none;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-media img {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool-panel {
  display: grid;
  gap: 10px;
  margin: 10px 0 24px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(18, 50, 61, 0.08);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.search-box svg {
  color: var(--teal);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.compact-link {
  background: #173644;
  color: #fff;
}

.section {
  padding: 34px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 18px;
}

.section-heading h2 + p {
  margin-top: 10px;
}

.action-grid,
.training-grid,
.scope-grid {
  display: grid;
  gap: 12px;
}

.action-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  min-height: 188px;
  padding: 15px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent, var(--teal));
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(18, 50, 61, 0.07);
}

.card-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent, var(--teal)) 14%, #fff);
  color: var(--accent, var(--teal));
}

.card-body {
  min-width: 0;
}

.card-step {
  display: block;
  margin-bottom: 4px;
  color: var(--accent, var(--teal));
  font-size: 0.8rem;
  font-weight: 880;
}

.card-body p {
  margin: 8px 0 0;
  color: var(--muted);
}

.card-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 52px;
  gap: 8px;
  align-self: end;
}

.card-actions.multi {
  grid-template-columns: 1fr 1fr 52px;
}

.open-link {
  background: var(--accent, var(--teal));
  color: #fff;
}

.open-link.light {
  border: 1px solid color-mix(in srgb, var(--accent, var(--teal)) 45%, #fff);
  background: #fff;
  color: var(--accent, var(--teal));
}

.icon-button {
  display: grid;
  width: 52px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent, var(--teal));
  cursor: pointer;
}

.accent-blue {
  --accent: var(--navy);
}

.accent-teal {
  --accent: var(--teal);
}

.accent-green {
  --accent: var(--green);
}

.accent-amber {
  --accent: var(--amber);
}

.accent-violet {
  --accent: var(--violet);
}

.accent-red {
  --accent: var(--red);
}

.accent-indigo {
  --accent: var(--indigo);
}

.accent-slate {
  --accent: #42515a;
}

.empty-state {
  margin: 16px 0 0;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.timeline-number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: var(--radius);
  background: #e7f4f2;
  color: var(--teal);
  font-weight: 900;
}

.timeline-number.warn {
  background: #fff0d2;
  color: #a94d00;
}

.timeline strong {
  display: block;
  font-size: 1.03rem;
}

.timeline p {
  margin: 4px 0 0;
  color: var(--muted);
}

.wide-visual {
  margin: 18px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(18, 50, 61, 0.08);
}

.wide-visual img {
  width: 100%;
  height: auto;
}

figcaption {
  padding: 10px 12px 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(18, 50, 61, 0.06);
}

summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 15px;
  color: #173644;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  margin-left: auto;
  color: var(--teal);
  font-size: 1.35rem;
  font-weight: 800;
}

details[open] summary::after {
  content: "-";
}

details ul {
  margin: 0;
  padding: 0 16px 16px 43px;
  color: var(--muted);
}

details li + li {
  margin-top: 8px;
}

.scope-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.scope-grid h3 {
  color: var(--teal);
}

.scope-grid p {
  margin: 8px 0 0;
  color: var(--muted);
}

.bottom-dock {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(216, 226, 226, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 38px rgba(18, 50, 61, 0.18);
  backdrop-filter: blur(16px);
}

.bottom-dock a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  border-radius: var(--radius);
  background: #edf5f4;
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 850;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: calc(var(--dock-height) + 24px);
  z-index: 40;
  max-width: min(360px, calc(100% - 32px));
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #173644;
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

[hidden] {
  display: none !important;
}

@media (min-width: 620px) {
  body {
    padding-bottom: 0;
  }

  .hero-media {
    display: block;
  }

  .topnav {
    display: flex;
  }

  .hero-actions,
  .tool-panel {
    grid-template-columns: auto auto;
    justify-content: start;
  }

  .action-grid,
  .training-grid,
  .scope-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bottom-dock {
    display: none;
  }

  .toast {
    bottom: 24px;
  }
}

@media (min-width: 920px) {
  .hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1fr);
    align-items: center;
    padding: 32px 0 28px;
  }

  .hero-shortcuts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .action-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .action-card {
    grid-template-columns: 1fr;
  }

  .card-actions {
    grid-template-columns: 1fr 52px;
  }

  .section-split {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(420px, 1.15fr);
    gap: 24px;
    align-items: start;
  }

  .section-split .section-heading {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }
}

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