/* ==========================================================================
   Covered — coveredcanada.ca
   Brand system v1.4 (Swiss modernist). Single stylesheet for the static site.
   Palette: Ink / White / Paper / Petrol / Grid / Muted. Type: Onest.
   ========================================================================== */

:root {
  /* Palette */
  --ink:        #0A0908;
  --white:      #FFFFFF;
  --paper:      #EDEBE2;
  --petrol:     #003B46;
  --petrol-dark:#002A33;
  --grid:       #E0DDD3;
  --muted:      #6B6862;

  /* Type */
  --f-sans: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --page:    1100px;   /* outer frame */
  --measure:  640px;   /* body text measure */
  --content:  880px;   /* hero / section content block */
  --gutter:    64px;
  --section-y: 96px;
}

* , *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.005em;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* Visually-hidden helper for accessibility */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--f-sans); font-weight: 600; font-size: 14px; line-height: 1;
  letter-spacing: -0.005em;
  text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  transition: background-color .12s ease, color .12s ease;
}
.btn--primary { background: var(--petrol); color: #fff; padding: 14px 30px; }
.btn--primary:hover { background: var(--petrol-dark); }
.btn--secondary {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink); padding: 12.5px 28px;
}
.btn--secondary:hover { background: var(--ink); color: #fff; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: block;
  font-weight: 600; font-size: 11px; line-height: 1.4;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--petrol);
  margin: 0 0 24px;
}

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--grid); }
.site-header__inner {
  max-width: var(--page); margin: 0 auto;
  padding: 24px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand__mark { display: block; height: 18px; width: auto; fill: var(--ink); }
.brand__name { font-weight: 700; font-size: 22px; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.brand__tm { font-size: 0.45em; font-weight: 600; vertical-align: top; line-height: 1; margin-left: 2px; }
.nav { display: flex; align-items: center; gap: 24px; }
.navlink {
  font-weight: 600; font-size: 13px; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.18em;
  text-decoration: none; color: var(--ink);
  transition: color .12s ease;
}
.navlink:hover { color: var(--petrol); }

/* ---------- Sections (full-bleed bg + constrained inner) ---------- */
.section { width: 100%; }
.section--white { background: var(--white); }
.section--paper { background: var(--paper); }
.section__inner {
  max-width: var(--page); margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}
.content { max-width: var(--content); }
.measure { max-width: var(--measure); }

/* ---------- Hero ---------- */
.hero .tagline { margin: 0; }
.tagline__l1 {
  display: block;
  font-weight: 600; font-size: 56px; line-height: 1.05; letter-spacing: -0.035em;
  color: var(--ink);
}
.tagline__l2 {
  display: block;
  font-weight: 400; font-style: italic; font-size: 31px; line-height: 1.12;
  letter-spacing: -0.02em; color: var(--petrol);
}
.subhead {
  font-size: 18px; line-height: 1.6; max-width: var(--measure);
  margin: 24px 0 0;
}
.hero__cta { display: flex; align-items: center; gap: 16px; margin-top: 32px; }

/* ---------- Prose paragraphs (What Covered is / Privacy) ---------- */
.prose { max-width: 720px; }
.prose p { max-width: var(--measure); margin: 0 0 16px; }
.stack-16 > * + * { margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.7); }
.site-footer__inner {
  max-width: var(--page); margin: 0 auto;
  padding: 32px var(--gutter);
  display: flex; justify-content: space-between; gap: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 13px; line-height: 1.5;
}
.site-footer a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color .12s ease; }
.site-footer a:hover { color: #fff; }
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-col--right { align-items: flex-start; }

/* ---------- Privacy page typography ---------- */
.prose h1 {
  font-weight: 700; font-size: 40px; line-height: 1.05; letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.prose .meta { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.prose h2 {
  font-weight: 600; font-size: 18px; line-height: 1.25; letter-spacing: -0.025em;
  margin: 32px 0 12px;
}
.prose ul { margin: 0 0 16px; padding-left: 1.2em; max-width: var(--measure); }
.prose li { margin: 0 0 8px; }
.prose a { color: var(--petrol); }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound h1 { font-weight: 700; font-size: 56px; letter-spacing: -0.035em; margin: 0 0 16px; }

/* ==========================================================================
   Responsive — phone
   ========================================================================== */
@media (max-width: 720px) {
  :root { --gutter: 24px; --section-y: 56px; }
  .tagline__l1 { font-size: 36px; }
  .tagline__l2 { font-size: 20px; }
  .subhead { font-size: 17px; }
  .hero__cta { flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-footer__inner { flex-direction: column; gap: 24px; }
  .prose h1, .notfound h1 { font-size: 40px; }
}

@media (max-width: 520px) {
  /* Keep the header uncluttered: Sign up button stays; the Sign in text link
     is still reachable in the hero and footer. */
  .site-header .navlink { display: none; }
}
