/* Breakout GRC marketing site. Tokens from brand/tokens/tokens.css (Paper theme, Night via prefers-color-scheme). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/Inter-Regular.woff") format("woff");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/Inter-Medium.woff") format("woff");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/Inter-SemiBold.woff") format("woff");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/Inter-Bold.woff") format("woff");
}

:root {
  --surface: #f7f4ef;
  --surface-raised: #ffffff;
  --surface-sunken: #eee8df;
  --ink: #15222c;
  --ink-muted: #4b5964;
  --line: #d8d0c4;
  --line-strong: #8c8478;
  --copper: #9c4e26;
  --copper-strong: #7e3d1c;
  --copper-soft: #f1dccb;
  --on-copper: #ffffff;
  --verdigris: #2e6b5f;
  --verdigris-soft: #d5e8e2;
  --slate: #1f3341;
  --on-slate: #f7f4ef;
  --on-slate-muted: #c9d1d6;
  --caution: #8a5a0f;
  --danger: #a23b2f;
  --focus-ring: var(--copper);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: Inter, "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #10181e;
    --surface-raised: #182229;
    --surface-sunken: #0b1115;
    --ink: #eee8df;
    --ink-muted: #a9b4bc;
    --line: #2c3a44;
    --line-strong: #5e6e79;
    --copper: #e0915f;
    --copper-strong: #f2b48c;
    --copper-soft: #3a2519;
    --on-copper: #10181e;
    --verdigris: #7cc2b0;
    --verdigris-soft: #183a33;
    --slate: #182229;
    --on-slate: #eee8df;
    --on-slate-muted: #a9b4bc;
    --caution: #e2b25c;
    --danger: #e8877b;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
}

a {
  color: var(--copper);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--copper-strong);
}
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  top: var(--space-2);
  background: var(--surface-raised);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
}
.skip:focus {
  left: var(--space-4);
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Header */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
}
.brand img {
  display: block;
  height: 32px;
  width: auto;
}
.label {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-header .label {
  color: var(--ink-muted);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--space-12);
  padding: var(--space-12) 0;
  align-items: start;
}
.eyebrow {
  color: var(--copper);
  margin: 0 0 var(--space-4);
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}
h1 {
  margin: 0;
  font-size: 56px;
  line-height: 60px;
  letter-spacing: -0.01em;
}
.lede {
  margin: var(--space-6) 0 0;
  font-size: 18px;
  line-height: 28px;
  color: var(--ink-muted);
  max-width: 52ch;
}

.frameworks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-8) 0 0;
  padding: 0;
  list-style: none;
}
.frameworks li {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  padding: 2px var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--ink-muted);
}

/* Waitlist form */
.waitlist {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-8);
}
.waitlist h2 {
  margin: 0 0 var(--space-2);
  font-size: 28px;
  line-height: 34px;
}
.waitlist .sub {
  margin: 0 0 var(--space-6);
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 20px;
}
.field {
  display: block;
  margin-bottom: var(--space-4);
}
.field > span {
  display: block;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.field abbr {
  text-decoration: none;
  color: var(--copper);
}
input[type="email"],
input[type="text"],
select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 10px var(--space-3);
}
input[aria-invalid="true"] {
  border-color: var(--danger);
}
.consent {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-muted);
  margin: var(--space-2) 0 var(--space-6);
}
.consent input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--copper);
  flex: none;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
button {
  width: 100%;
  font: inherit;
  font-weight: 600;
  color: var(--on-copper);
  background: var(--copper);
  border: 0;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-6);
  cursor: pointer;
}
button:hover {
  background: var(--copper-strong);
}
button[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.status {
  min-height: 20px;
  margin: var(--space-3) 0 0;
  font-size: 14px;
  line-height: 20px;
}
.status.ok {
  color: var(--verdigris);
}
.status.err {
  color: var(--danger);
}

/* Pillars */
.pillars {
  border-top: 1px solid var(--line);
  padding: var(--space-12) 0;
}
.pillars > h2 {
  margin: 0 0 var(--space-8);
  font-size: 28px;
  line-height: 34px;
}
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-8);
}
.pillar h3 {
  position: relative;
  margin: 0 0 var(--space-2);
  padding-top: var(--space-6);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
}
.pillar h3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--copper);
}
.pillar p {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-muted);
}

/* Status strip: the Met / Partially met / Not met vocabulary, always with words */
.status-demo {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.chip {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
}
.chip.met {
  color: var(--verdigris);
  background: var(--verdigris-soft);
}
.chip.partial {
  color: var(--caution);
  background: var(--surface-sunken);
}
.chip.not-met {
  color: var(--danger);
  background: var(--copper-soft);
}

/* Footer */
.site-footer {
  background: var(--slate);
  color: var(--on-slate);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
  font-size: 14px;
  line-height: 20px;
}
.site-footer img {
  height: 24px;
  width: auto;
  display: block;
  margin-bottom: var(--space-3);
}
.site-footer p {
  margin: 0;
  color: var(--on-slate-muted);
}
.site-footer nav {
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
}
.site-footer a {
  color: var(--on-slate);
}

/* Prose pages */
.prose {
  max-width: 70ch;
  padding: var(--space-12) 0;
}
.prose h1 {
  font-size: 40px;
  line-height: 46px;
  margin-bottom: var(--space-2);
}
.prose h2 {
  font-size: 20px;
  line-height: 28px;
  font-family: var(--font-sans);
  margin-top: var(--space-8);
}
.prose p,
.prose li {
  color: var(--ink-muted);
}
.muted {
  color: var(--ink-muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .pillar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .wrap {
    padding: 0 var(--space-4);
  }
  h1 {
    font-size: 38px;
    line-height: 44px;
  }
  .pillar-grid {
    grid-template-columns: 1fr;
  }
  .waitlist {
    padding: var(--space-6);
  }
  .site-header .label {
    display: none;
  }
}
