/* Relaunch shared base: fonts, tokens, header, buttons, forms, footer. Self-hosted fonts (SIL Open Font License). */
@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/SchibstedGrotesk.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/Newsreader.woff2") format("woff2"); font-weight: 300 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/Newsreader-Italic.woff2") format("woff2"); font-weight: 300 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/Figtree.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #f4f1ea;
  --paper-2: #ebe7dd;
  --white: #ffffff;
  --ink: #141210;
  --ink-2: #5f5a52;
  --ink-3: #6f6a62;
  --muted-on-ink: #a9a399;
  --hair: rgb(20 18 16 / 10%);
  --hair-2: rgb(20 18 16 / 6%);
  --red: #fc0008;
  --red-2: #d40007;
  --display: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --w: 1280px;
  --px: clamp(1.25rem, 4vw, 3.5rem);
  --gap: clamp(2rem, 5vw, 4.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4, p, dl, dd, dt, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; }
.wrap { max-width: var(--w); margin-inline: auto; padding-inline: var(--px); }
.section { padding-block: clamp(5rem, 10vw, 9rem); }
.display { font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; line-height: 0.98; text-wrap: balance; }
.display em, .it { font-family: var(--serif); font-style: italic; font-weight: 400; font-variation-settings: "opsz" 72; letter-spacing: -0.01em; color: var(--red); }
.eyebrow { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.eyebrow::before { content: ""; width: 0.5rem; height: 0.5rem; background: var(--red); border-radius: 999px; }
.lede { color: var(--ink-2); font-size: clamp(1.125rem, 1.5vw, 1.3125rem); text-wrap: pretty; max-width: 46ch; line-height: 1.55; }
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3.25rem; padding: 0 1.5rem; border-radius: 999px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; border: 1px solid transparent; overflow: hidden; isolation: isolate; transition: color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateY(101%); transition: transform 0.45s var(--ease); border-radius: inherit; }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary::before { background: var(--red-2); }
.btn-ghost { border-color: var(--hair); color: var(--ink); background: transparent; }
.btn-ghost::before { background: var(--ink); }
.btn-ghost:hover { color: #fff; border-color: var(--ink); }
.btn-red { background: var(--red-2); color: #fff; }
.btn-red::before { background: var(--ink); }
:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
.arrow-link { display: inline-flex; gap: 0.5rem; align-items: center; text-decoration: none; font-weight: 600; }
.arrow-link span { transition: transform 0.3s var(--ease); }
.arrow-link:hover span { transform: translateX(4px); }
.arrow-link:hover { color: var(--red-2); }

.skip-link { position: absolute; left: 1rem; top: -100%; z-index: 100; background: var(--ink); color: #fff; padding: 0.75rem 1rem; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; }
/* Header */
.header { position: sticky; top: 0; z-index: 80; background: rgb(244 241 234 / 80%); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.header.solid { border-color: var(--hair-2); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; gap: 1rem; }
.brand img { height: 1.375rem; width: auto; }
.nav { display: flex; align-items: center; gap: 2rem; font-size: 0.9375rem; font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink-2); transition: color 0.2s; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav .btn { min-height: 2.5rem; padding-inline: 1.1rem; font-size: 0.9375rem; color: var(--ink); }
.nav .btn:hover { color: #fff; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* Forms. Light fields by default; the homepage's dark start section overrides colours in home.css. */
.form { display: grid; gap: 1.1rem; }
.form-2 { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.45rem; font-size: 0.9375rem; color: var(--ink-2); }
.field input, .field textarea { width: 100%; background: var(--white); border: 1px solid var(--hair); border-radius: 12px; padding: 0.9rem 1rem; font-size: 1rem; color: var(--ink); transition: border-color 0.2s; }
.field input:hover, .field textarea:hover { border-color: rgb(20 18 16 / 35%); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid #2563eb; outline-offset: -1px; }
.field-error { color: var(--red-2); font-size: 0.9375rem; font-weight: 500; }
.consent { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.9375rem; color: var(--ink-2); }
.consent a { color: var(--ink); }
.consent input { margin-top: 0.3rem; accent-color: var(--red); width: 1.1rem; height: 1.1rem; flex: none; }
.honeypot { position: absolute; left: -9999px; }
.form-note { color: var(--ink-3); font-size: 0.875rem; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:disabled::before { display: none; }

/* Included list with red check marks. */
.incl { margin-top: 2rem; display: grid; gap: 0.5rem; }
.incl li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--ink-2); }
.incl svg { width: 1.2rem; height: 1.2rem; color: var(--red); flex: none; margin-top: 0.3rem; }

/* Footer */
.footer { background: var(--ink); color: var(--muted-on-ink); padding-block: 1rem 2rem; font-size: 0.9375rem; overflow: hidden; border-top: 1px solid rgb(244 241 234 / 8%); }
.footer-big { width: 100%; margin: 2rem 0 2.5rem; }
.footer-big img { width: 100%; height: auto; }
.footer-row { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--paper); }

html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal-line { opacity: 0; transform: translateY(0.3em); filter: blur(8px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
html.js .reveal-line.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal, html.js .reveal-line { opacity: 1; transform: none; transition: none; filter: none; }
}

/* Classes that replace inline styles. The content security policy blocks style attributes. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-6 { margin-top: 1.5rem; }

/* Currency variants. The worker stamps data-currency on <html> from the visitor's country. */
html[data-currency="CAD"] [data-cur="USD"],
html[data-currency="USD"] [data-cur="CAD"] { display: none; }

/* Inner pages: status, legal, and preview pages share one layout. */
.page { padding-block: clamp(4rem, 8vw, 7rem); }
.page h1 { font-size: clamp(2.6rem, 6vw, 5rem); max-width: 14ch; }
.page .lede { margin-top: 1.5rem; }
.page-actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; margin-top: 2rem; }
.page-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .page-grid { grid-template-columns: 1fr 1.2fr; } }

/* White panel with the red top rule, as on the homepage invoice. */
.panel { position: relative; overflow: hidden; background: var(--white); border-radius: 20px; padding: clamp(1.5rem, 3.5vw, 2.5rem); box-shadow: 0 40px 80px -50px rgb(20 18 16 / 45%), 0 0 0 1px var(--hair-2); }
.panel::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--red); }

/* Long-form prose (legal pages). */
.prose { margin-top: clamp(2.5rem, 5vw, 4rem); max-width: 68ch; color: var(--ink-2); line-height: 1.75; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--ink); margin-top: 3rem; text-wrap: balance; }
.prose h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; font-size: 1.125rem; color: var(--ink); margin-top: 1.75rem; }
.prose p, .prose li { text-wrap: pretty; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4rem; }
.prose a { color: var(--ink); text-decoration-color: var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
.prose a:hover { color: var(--red-2); }
.prose-date { font-size: 0.9375rem; color: var(--ink-3); }
.note { background: var(--white); border: 1px solid var(--hair-2); border-left: 3px solid var(--red); border-radius: 16px; padding: 1.1rem 1.4rem; color: var(--ink-2); }
.note strong { color: var(--ink); font-weight: 600; }
