@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

/* Brand colours: see brand/README.md */
:root {
  --ink: #17282b;
  --muted: #4f5f62;
  --line: #e1e6e4;
  --paper: #ffffff;
  --soft: #f7f4ec;
  --night: #0e3a40;
  --night-2: #0a2c31;
  --accent: #147a72;
  --accent-dark: #0f615b;
  --accent-soft: #d4a72c;
  --on-night: #d6e3e1;
  --radius: 12px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--paper); padding: 8px 12px; border-radius: 6px; }

/* Header and footer */

.site-header { background: var(--night); color: #fff; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: block; line-height: 0; }
.brand img { height: 52px; width: auto; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-header nav a { color: var(--on-night); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--accent-soft); }

.site-footer { background: var(--night); color: #c7d6d4; margin-top: 72px; padding: 40px 0 24px; font-size: 0.95rem; }
.site-footer a { color: #eef3f1; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-inner p { margin: 0 0 4px; }
.footer-name { color: #fff; font-weight: 600; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; align-content: flex-start; }
.copyright { margin: 28px 0 0; font-size: 0.85rem; color: #9fb5b2; }

/* Sections */

.hero { background: linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%); color: #fff; padding: 72px 0 80px; }
.hero .lead { color: var(--on-night); }
.hero .button:not(.button-secondary, .button-disabled) { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--night); }
.hero .button:not(.button-secondary, .button-disabled):hover { background: #e2b94a; border-color: #e2b94a; }
.hero a:not(.button) { color: var(--accent-soft); }
.page-head { padding-top: 56px; padding-bottom: 8px; }
.section { padding-top: 56px; }
.lead { font-size: 1.2rem; max-width: 46em; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 600; color: var(--accent); margin: 0 0 8px; }
.hero .eyebrow { color: var(--accent-soft); }
.page-head + .section { padding-top: 24px; }
.prose > * { max-width: 46em; }
.prose > .table-scroll { max-width: 60em; }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose > :first-child { margin-top: 0; }
.prose h3 { margin-top: 1.2em; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; border: 2px solid var(--accent); }
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.button-secondary:hover { background: rgba(255, 255, 255, 0.08); border-color: #fff; }
.section .button-secondary, .page-head .button-secondary { color: var(--accent); border-color: var(--accent); }
.button-disabled, .button-disabled:hover { background: var(--soft); color: var(--muted); border-color: var(--line); cursor: default; }

.feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.feature > * { min-width: 0; }
.media { display: block; width: 100%; border-radius: var(--radius); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--night); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: var(--soft); border-radius: var(--radius); padding: 24px; }
.tile p { margin: 0; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.card-media .media { border-radius: 0; }
.card-body { padding: 20px 22px 22px; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--accent); }
.card-body p { margin: 0 0 8px; }
.price { font-weight: 600; }

.price-box { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.price-box .price { font-size: 1.3rem; margin: 0; }

/* Tables, lists, details */

table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.97rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--soft); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.modules td:nth-child(-n+2) { white-space: nowrap; }

.checks { list-style: none; padding: 0; }
.checks li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

details { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 8px; }
details p { margin: 0 0 8px; }

dl.details { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; }
dl.details dt { font-weight: 600; }
dl.details dd { margin: 0; }

.note { background: var(--soft); border-left: 4px solid var(--accent); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; }
.draft-notice { background: #fff4d6; border: 1px solid #f0cf73; color: #5c4400; padding: 12px 16px; border-radius: var(--radius); font-weight: 600; }
.missing { background: #ffe1e1; color: #8a1c1c; padding: 0 4px; border-radius: 4px; font-weight: 600; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { padding: 48px 0 56px; }
  .feature, .tiles { grid-template-columns: 1fr; }
  dl.details { grid-template-columns: 1fr; gap: 2px; }
  dl.details dd { margin-bottom: 10px; }
}
