/* insightCISO — site styles. Colours are the brand kit's palette; the one
   rule: on light grounds the accent is Harbour, on dark grounds it is Sky.
   Sky on a light ground measures 2.20:1 and is never used there.
   Since 7-Oct-26 the whole site is light, top to bottom, as CORE's app pages
   are (Paper is the ground): no Ink banners, so no Sky anywhere on the page.
   Drawing follows insightCISO-CORE (frontend/src/styles/tokens.css, base.css):
   cards lie flat with a 1px Line edge at 10px corners, small labels are
   tracked capitals, the frame is 1280px, focus rings are 2px Harbour. Buttons
   and inputs follow CORE's FRONT pages (Login.module.css: pill buttons,
   12px inputs), not its in-app 7px buttons -- this site is a front page. Same seven colours, same two faces, same files. */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #13212A;
  --harbour: #326485;
  --sky: #6CB1D0;
  --mist: #D4E6ED;
  --paper: #F7F6F2;
  --slate: #5A6872;
  --line: #D8DFE4;
  /* The hero's rings on Paper: Mist at the centre fading out to Paper, in
     the same steps the Ink rings took from Sky to Ink. Tints of the kit,
     not new colours. */
  --ring-1: #E6EFF2;
  --ring-2: #EEF3F4;
  --ring-3: #F3F5F4;
  --display: "Fraunces", Georgia, serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 7.5vw, 96px);
  --radius: 10px;
  --radius-input: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-optical-sizing: auto;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--harbour); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--harbour); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 14px; }
h3 { font-size: clamp(24px, 2vw, 28px); line-height: 1.25; margin-bottom: 12px; }
p { margin: 0; }

.wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 600 17px/1 var(--body); text-decoration: none; cursor: pointer; border: 1px solid transparent;
  white-space: nowrap;
}
/* Paper, not Sky: Sky stays with the logo and the rings, as in CORE, and a
   bright blue button is MusterGRC's signature. */
.btn-nav { background: var(--harbour); color: #FFFFFF; min-height: 46px; padding: 0 22px; font-size: 16px; }
.btn-nav:hover { background: var(--ink); color: #FFFFFF; }
.btn-primary { background: var(--harbour); color: #FFFFFF; min-height: 52px; }
.btn-primary:hover { background: var(--ink); color: #FFFFFF; }
.btn-harbour { background: var(--harbour); color: #FFFFFF; min-height: 52px; border: 0; width: 100%; }
.btn-harbour:hover { background: var(--ink); color: #FFFFFF; }
.text-link { display: inline-flex; align-items: center; min-height: 52px; padding: 0 8px; color: var(--harbour); font-weight: 600; text-underline-offset: 4px; }
.text-link:hover { color: var(--ink); }

/* Hero: Paper, with concentric rings fading from Mist into Paper, centred
   off the bottom-right corner (CORE's ring motif, drawn for a light ground).
   Radii scale with the viewport; a Line rule closes it off from the page. */
.hero {
  --r: clamp(84px, 10.5vw, 150px);
  --at: 84% 97%;
  position: relative;
  overflow: hidden;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at var(--at),
      var(--mist) 0 var(--r),
      var(--ring-1) calc(var(--r) + 0.5px) calc(var(--r) * 1.667),
      var(--ring-2) calc(var(--r) * 1.667 + 0.5px) calc(var(--r) * 2.333),
      var(--ring-3) calc(var(--r) * 2.333 + 0.5px) calc(var(--r) * 3),
      var(--paper) calc(var(--r) * 3 + 0.5px));
  padding-bottom: 104px;
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 92px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: var(--slate); text-decoration: none; font-size: 16px; font-weight: 500;
}
.nav-link:hover { color: var(--ink); }
.nav .btn { margin-left: 14px; }

.hero-copy { padding-top: clamp(48px, 6vw, 88px); }
.hero-copy > * { max-width: 620px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--harbour); margin-bottom: 14px; }
.hero .eyebrow { margin-bottom: 18px; }
.hero h1 { font-size: clamp(42px, 5.2vw, 68px); line-height: 1.06; letter-spacing: -0.025em; max-width: 680px; }
.lede { margin-top: 26px; font-size: clamp(18px, 1.5vw, 20px); color: var(--slate); max-width: 600px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 36px; }

/* Sections */
.section { padding-top: clamp(64px, 7vw, 104px); padding-bottom: clamp(64px, 7vw, 96px); }
.section-white { background: #FFFFFF; }
.intro { font-size: 19px; color: var(--slate); max-width: 680px; }
.intro + .intro { margin-top: 14px; }
.strong { font-weight: 600; }

/* What I do: a ruled list of questions, read like a letter, not a grid of tiles. */
.questions { margin-top: 40px; border-top: 1px solid var(--line); max-width: 1088px; }
.q { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 12px 64px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.q h3 { margin: 0; }
.q p { font-size: 17px; color: var(--slate); max-width: 640px; }
.q .get { margin-top: 14px; color: var(--ink); font-weight: 600; font-size: 16px; padding-left: 14px; border-left: 2px solid var(--harbour); }

/* Resilience: three plans as flat cards, then the exercises that test them. */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.plan { background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 32px; }
.plan .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--harbour); background: var(--mist); border-radius: 4px; padding: 2px 8px; margin-bottom: 18px; }
.plan p:last-child { font-size: 17px; color: var(--slate); }
.exercises { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 72px; margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.exercises > div p { font-size: 17px; color: var(--slate); margin-top: 12px; }
.ex-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.ex-list li { font-size: 17px; color: var(--slate); padding-left: 22px; position: relative; }
.ex-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 2px; background: var(--harbour); }
.ex-list strong { color: var(--ink); font-weight: 600; }

.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 72px; margin-top: 48px; }
.principle { border-top: 1px solid var(--line); padding-top: 20px; }
.p-head { font-family: var(--display); font-size: 28px; line-height: 1.3; }
.principle p + p { margin-top: 8px; color: var(--slate); }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 96px; }
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 600; }
.opt { font-weight: 400; color: var(--slate); }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--slate); border-radius: var(--radius-input); background: #FFFFFF; color: var(--ink);
  font: 16px/1.5 var(--body);
}
.field input { height: 52px; padding: 0 16px; }
.field textarea { padding: 14px 16px; resize: vertical; min-height: 140px; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 1px; }
.note { font-size: 15px; color: var(--slate); }

.foot { background: var(--paper); color: var(--slate); border-top: 1px solid var(--line); }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 120px; padding-top: 28px; padding-bottom: 28px; }
.foot img { height: 34px; width: auto; }
.foot p { font-size: 15px; }
.foot a { color: var(--harbour); }
.foot a:hover { color: var(--ink); }

/* Privacy and other text pages: the bar alone, no rings, then a reading column. */
.hero-plain { background: var(--paper); padding-bottom: 0; }
.prose { max-width: 1280px; }
.prose > * { max-width: 720px; }
.prose h1 { font-size: clamp(36px, 4vw, 52px); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 20px; }
.prose h2 { font-size: clamp(24px, 2.2vw, 30px); margin: 48px 0 12px; scroll-margin-top: 24px; }
.prose p, .prose li { font-size: 18px; color: var(--slate); }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 14px 0 0; padding-left: 22px; }
.prose li + li { margin-top: 10px; }
.prose ul + p { margin-top: 14px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .intro { margin-bottom: 12px; }
.updated { font-size: 15px; }

/* 404 */
.plain { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.plain img { height: 160px; width: auto; margin-bottom: 12px; }
.plain h1 { font-size: clamp(36px, 4vw, 52px); letter-spacing: -0.02em; }

@media (max-width: 960px) {
  .q, .plans, .exercises { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .principles { grid-template-columns: 1fr; gap: 32px; }
  .nav-link { display: none; }
  .brand img { height: 34px; }
  .nav .btn { margin-left: 0; font-size: 15px; padding: 0 16px; min-height: 44px; }
  /* Rings drop to the bottom-right corner, below the copy. */
  .hero { --r: 64px; --at: 100% 100%; padding-bottom: 240px; }
  .plan { padding: 26px 22px; }
  .q { padding: 28px 0; }
}
@media (max-width: 420px) {
  .btn-nav { display: none; }
}
.btn-inline { width: auto; }

/* Contact form states */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }
.status { font-size: 16px; font-weight: 600; min-height: 0; }
.status:empty { display: none; }
.status.ok { color: #33573D; }
.status.err { color: #8A2A31; }
.btn[disabled] { opacity: 0.7; cursor: progress; }
