/* cardiomyopathy.ca, in the Cardiomyopathy Canada design system: purple #44206B leads (including the main button), violet #7D63C8 accents,
   ink #231F20 text; coral is not used, as red reads as a warning; Outfit 300 to 600 (SIL OFL 1.1, self-hosted);
   buttons 5px, cards 12px. No scripts and nothing loaded from elsewhere. */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 300; font-display: swap; src: url('/assets/fonts/outfit-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/outfit-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/outfit-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/outfit-latin-600-normal.woff2') format('woff2'); }
:root {
  --purple: #44206B; --purple-dark: #351852; --violet: #7D63C8; --lilac: #D9CCEF; --lilac-50: #F6F2FB;
  --ink: #231F20; --text: #231F20; --muted: #4A4453; --subtle: #5B5566; --line: #E6E0EC; --paper: #FFFFFF; --band: #F6F3F8;
  --font: 'Outfit', Arial, sans-serif;
  --radius: 12px; --shadow: 0 20px 50px rgba(68,32,107,.14);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--purple); text-underline-offset: 3px; }
a:hover { color: var(--purple-dark); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.top img { display: block; height: 40px; width: auto; }
.top nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.top nav a { text-decoration: none; color: var(--text); }
.top nav a:hover { color: var(--purple); }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; }
.eyebrow { margin: 0 0 16px; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); }
h1 { margin: 0 auto; max-width: 16ch; font-size: clamp(36px, 5.2vw, 58px); line-height: 1.06; letter-spacing: -0.02em; font-weight: 600; color: var(--purple); text-wrap: balance; }
.lede { margin: 22px auto 0; max-width: 40rem; font-size: clamp(17px, 2vw, 20px); color: var(--muted); text-wrap: pretty; }
.actions { margin-top: 32px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 5px; font-weight: 500; font-size: 16px; text-decoration: none; border: 1px solid transparent; transition: background 150ms, border-color 150ms, transform 150ms; }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--purple); color: #fff; }
.btn.primary:hover { background: var(--purple-dark); color: #fff; }
.btn.secondary { background: var(--paper); color: var(--purple); border-color: var(--lilac); }
.btn.secondary:hover { border-color: var(--violet); color: var(--purple-dark); }
.btn svg { width: 18px; height: 18px; flex: none; }
.meta { margin: 16px 0 0; font-size: 14px; color: var(--subtle); }

/* Preview */
.preview { margin: 48px auto 0; max-width: 1120px; padding: 0 24px; }
.preview figure { margin: 0; }
.preview img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.preview figcaption { margin-top: 12px; text-align: center; font-size: 14px; color: var(--subtle); }

/* Points */
.points { margin-top: 88px; padding: 64px 0; background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.grid h2 { margin: 0 0 8px; font-size: 19px; line-height: 1.3; font-weight: 500; color: var(--purple); }
.grid p { margin: 0; font-size: 16px; color: var(--muted); }
.grid .k { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); color: var(--violet); }
.grid .k svg { width: 22px; height: 22px; }

/* Note and coming */
.note { padding: 64px 0 24px; }
.note .wrap { max-width: 760px; text-align: center; }
.note p { margin: 0 0 12px; color: var(--muted); font-size: 16px; }
.note strong { font-weight: 600; color: var(--ink); }

/* Footer */
.foot { margin-top: 48px; border-top: 1px solid var(--line); }
.foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; min-height: 80px; font-size: 14px; color: var(--muted); padding-top: 16px; padding-bottom: 16px; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* Text pages */
.page { padding: 56px 0 24px; }
.page .wrap { max-width: 760px; }
.page h1 { margin: 0; max-width: none; text-align: left; font-size: clamp(30px, 4vw, 34px); line-height: 1.1; letter-spacing: -0.01em; }
.page .updated { margin: 12px 0 32px; font-size: 14px; color: var(--subtle); }
.page h2 { margin: 36px 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: var(--purple); }
.page p, .page li { color: var(--text); }
.page ul { padding-left: 22px; }
.page li { margin: 6px 0; }

/* Splash (brand kit design: purple page, reversed lockup, launch line, contact) */
.splash { background: var(--purple); }
.splash main { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 56px; padding: 48px 24px; text-align: center; color: #FFFFFF; }
.splash h1 { margin: 0; max-width: none; line-height: 0; }
.splash h1 img { display: block; width: 375px; max-width: 100%; height: auto; }
.splash-text { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.splash-text p { margin: 0; font-size: clamp(22px, 3vw, 30px); font-weight: 300; line-height: 1.3; color: var(--lilac); }
.splash-text a { font-size: clamp(17px, 2vw, 20px); font-weight: 500; color: #FFFFFF; text-decoration: none; border-bottom: 1.5px solid var(--violet); padding-bottom: 4px; }
.splash-text a:hover { color: var(--lilac); }
.splash :focus-visible { outline-color: var(--lilac); }

@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-top: 48px; }
  .points { margin-top: 56px; padding: 48px 0; }
}
@media (max-width: 480px) {
  .wrap, .preview { padding: 0 16px; }
  .top img { height: 34px; }
  .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .btn:active { transform: none; } }
@media print { .top nav, .actions, .foot nav { display: none; } .points { background: none; } }
.note code { font: 400 12.5px/1.5 ui-monospace, Menlo, Consolas, monospace; color: var(--muted); word-break: break-all; }
.note .small { font-size: 14px; }
