/* CloudGRC website styles */

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --pine: #305a47;
  --pine-deep: #24483a;
  --pine-night: #15362b;
  --pine-50: #eef4f0;
  --pine-100: #dce8e1;
  --mint: #a9d6c0;
  --mist: #f4f7f5;
  --line: #d8e0db;
  --line-strong: #b5c4bb;
  --ink: #1a1a1a;
  --paper: #ffffff;
  --on-dark-soft: rgb(255 255 255 / 0.82);
  --on-dark-line: rgb(255 255 255 / 0.18);
  --risk: #a3302b;
  --risk-50: #fbeeec;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;
  --shadow-media: 0 1px 2px rgb(21 54 43 / 0.06), 0 28px 56px -28px rgb(21 54 43 / 0.38);
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 128px);
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

/* Page transitions between documents */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out 0.2s ease both; }
  ::view-transition-new(root) { animation: vt-in 0.42s var(--ease) both; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 20px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: var(--pine); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--pine-deep); }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; }
.section--night :focus-visible, .film :focus-visible, .media-dialog :focus-visible { outline-color: #fff; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; font-stretch: 92%; letter-spacing: -0.012em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.45rem + 3.7vw, 4.5rem); line-height: 1.02; letter-spacing: -0.035em; font-stretch: 84%; }
h2 { font-size: clamp(2rem, 1.4rem + 2.05vw, 3.125rem); line-height: 1.05; letter-spacing: -0.03em; font-stretch: 85%; }
h3 { font-size: 1.3125rem; line-height: 1.25; }
p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong { font-weight: 600; }
.lead { font-size: clamp(1.125rem, 1.02rem + 0.38vw, 1.3125rem); line-height: 1.55; max-width: 60ch; }
.mono { font-family: var(--mono); font-size: 0.9em; letter-spacing: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  background: var(--pine); color: #fff; padding: 10px 16px; border-radius: var(--radius-s);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* Layout */
.container { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--mist { background: var(--mist); }
.section--night { background: var(--pine-night); color: #fff; }
.section--night a:not(.btn) { color: #fff; }
.section--tight { padding-block: clamp(56px, 6vw, 88px); }
.section-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head > * + * { margin-top: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 8px; border: 1px solid transparent;
  font: 600 1rem/1.1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--pine-deep); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--pine-night); }
.btn-light:hover { background: var(--pine-50); color: var(--pine-night); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.45); }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn .icon { width: 18px; height: 18px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 0.94);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
  view-transition-name: site-header;
}
.site-header.is-scrolled, .site-header.menu-open { border-bottom-color: var(--line); }
.header-inner { min-height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; flex: none; }
.brand img { height: 38px; width: auto; }
.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: block; padding: 10px 12px; border-radius: var(--radius-s);
  color: var(--ink); text-decoration: none; font-size: 0.96875rem; font-weight: 500;
}
.nav-link:hover { color: var(--ink); background: var(--pine-50); }
.nav-link[aria-current="page"] { color: var(--pine); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 10px; }
.nav-cta { margin-left: 14px; }
.menu-toggle {
  display: none; margin-left: auto; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: #fff;
  font: 600 0.9375rem/1 var(--font); color: var(--ink); cursor: pointer;
}
.menu-toggle .icon { width: 18px; height: 18px; }
.menu-toggle .icon-close { display: none; }
.menu-open .menu-toggle .icon-close { display: block; }
.menu-open .menu-toggle .icon-menu { display: none; }

@media (max-width: 1180px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 28px 40px -28px rgb(21 54 43 / 0.35);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .menu-open .nav { display: block; }
  .nav-list {
    flex-direction: column; align-items: stretch; gap: 0;
    width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; padding-block: 8px 24px;
  }
  .nav-link { padding: 15px 2px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.0625rem; }
  .nav-link:hover { background: none; color: var(--pine); }
  .nav-link[aria-current="page"] { text-decoration: none; }
  .nav-cta { margin: 20px 0 0; }
  .nav-cta .btn { width: 100%; min-height: 48px; }
}

/* Home hero */
.hero { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(56px, 7vw, 104px); }
.hero-mark { width: 154px; height: auto; border-radius: 10px; margin-bottom: clamp(24px, 3vw, 36px); }
.hero-grid { display: grid; gap: 24px; }
.hero-side .actions { margin-top: 28px; }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 64px; align-items: end; }
  .hero-side { padding-bottom: 6px; }
}
.film {
  position: relative; margin-top: clamp(40px, 5vw, 64px); aspect-ratio: 16 / 9;
  border-radius: var(--radius-l); overflow: hidden; background: #0b1526; isolation: isolate;
  box-shadow: var(--shadow-media);
}
.film video { width: 100%; height: 100%; object-fit: cover; }
.film-toggle {
  position: absolute; right: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 12px;
  border-radius: 999px; border: 1px solid rgb(255 255 255 / 0.3); background: rgb(11 21 38 / 0.6);
  color: #fff; font: 600 0.875rem/1 var(--font); cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.film-toggle:hover { background: rgb(11 21 38 / 0.8); }
.film-toggle .icon { width: 16px; height: 16px; }
.film-toggle .icon-play { display: none; }
.film.is-paused .film-toggle .icon-play { display: block; }
.film.is-paused .film-toggle .icon-pause { display: none; }

@media (prefers-reduced-motion: no-preference) {
  [data-enter] { animation: enter 0.9s var(--ease) both; animation-delay: calc(var(--step, 0) * 90ms); }
  .film[data-enter] { animation-name: enter-film; animation-duration: 1.15s; }
}
@keyframes enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes enter-film { from { opacity: 0; transform: translateY(32px) scale(0.98); } to { opacity: 1; transform: none; } }

/* Applications band */
.apps { border-block: 1px solid var(--line); padding-block: 26px; }
.apps-inner { display: grid; gap: 18px; align-items: center; }
@media (min-width: 1000px) { .apps-inner { grid-template-columns: 250px 1fr; gap: 40px; } }
.apps-title { font-weight: 600; line-height: 1.4; }
.apps-groups { display: flex; flex-wrap: wrap; gap: 14px 36px; }
.apps-group { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.apps-label { font-size: 0.9375rem; }
.apps-group ul { display: flex; flex-wrap: wrap; gap: 8px; }
.apps-group li { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 0.9375rem; font-weight: 500; }

/* Four principles */
.pillars { border-top: 1px solid var(--line); }
.pillar { display: grid; gap: 14px 48px; padding-block: clamp(28px, 3.5vw, 44px); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .pillar { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: baseline; } }
.pillar-title { font-size: clamp(1.875rem, 1.15rem + 2.1vw, 3rem); font-stretch: 80%; letter-spacing: -0.032em; line-height: 1.02; }
.pillar-body { max-width: 62ch; }
.pillar-body > * + * { margin-top: 12px; }
.pillar-detail { font-weight: 600; font-size: 0.96875rem; color: var(--pine); }

/* Product tour */
.tour-tabs {
  display: flex; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
  border-bottom: 1px solid var(--line-strong);
}
.tour-tabs::-webkit-scrollbar { display: none; }
.tour-tab {
  flex: 1 0 auto; min-width: 158px; display: flex; align-items: center; gap: 10px;
  padding: 14px 12px 16px; margin-bottom: -1px; border: 0; border-bottom: 3px solid transparent;
  background: none; font: 600 0.96875rem/1.25 var(--font); color: var(--ink); text-align: left;
  cursor: pointer; scroll-snap-align: start; transition: border-color 0.3s ease, background-color 0.15s ease;
}
.tour-tab:hover { background: rgb(255 255 255 / 0.6); }
.tour-tab .num {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: #fff; font-size: 0.8125rem;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.tour-tab.is-done { border-bottom-color: var(--pine-100); }
.tour-tab.is-done .num { background: var(--pine-100); border-color: var(--pine-100); }
.tour-tab[aria-selected="true"] { border-bottom-color: var(--pine); }
.tour-tab[aria-selected="true"] .num { background: var(--pine); border-color: var(--pine); color: #fff; }
.tour-stage { display: grid; margin-top: 28px; }
.tour-panel {
  grid-area: 1 / 1; opacity: 0; visibility: hidden;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}
.tour-panel.is-active { opacity: 1; visibility: visible; transition: opacity 0.45s ease, visibility 0s; }
.tour-caption { display: grid; gap: 16px; margin-bottom: 20px; }
@media (min-width: 800px) { .tour-caption { grid-template-columns: 1fr auto; align-items: end; gap: 40px; } }
.tour-caption h3 { font-size: 1.5rem; font-stretch: 88%; letter-spacing: -0.02em; }
.tour-caption p { margin-top: 6px; max-width: 64ch; }
.zoom-btn {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink);
  font: 600 0.9375rem/1 var(--font); cursor: pointer; white-space: nowrap;
}
.zoom-btn:hover { border-color: var(--ink); }
.zoom-btn .icon { width: 16px; height: 16px; }
.frame { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-media); }
.frame img { width: 100%; }
@media (prefers-reduced-motion: reduce) { .tour-panel, .tour-panel.is-active { transition: none; } }

.watch { display: grid; gap: 16px; margin-top: clamp(32px, 4vw, 48px); }
@media (min-width: 800px) { .watch { grid-template-columns: 1fr 1fr; } }
.watch-card {
  display: grid; grid-template-columns: minmax(120px, 176px) 1fr; gap: 18px; align-items: center;
  padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-m); background: #fff;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.2s ease;
}
.watch-card:hover { border-color: var(--line-strong); box-shadow: 0 14px 28px -20px rgb(21 54 43 / 0.55); }
.watch-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 7px; overflow: hidden; background: var(--mist); }
.watch-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.watch-thumb .play {
  position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; border-radius: 50%;
  background: var(--pine); color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 18px rgb(0 0 0 / 0.25); transition: transform 0.2s var(--ease);
}
.watch-card:hover .play { transform: scale(1.08); }
.watch-thumb .play .icon { width: 18px; height: 18px; margin-left: 2px; }
.watch-title { display: block; font-weight: 600; font-size: 1.0625rem; line-height: 1.3; }
.watch-meta { display: block; margin-top: 4px; font-size: 0.9375rem; line-height: 1.45; }

/* Modules */
.modules { display: grid; column-gap: 48px; }
@media (min-width: 700px) { .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .modules { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.module { display: flex; flex-direction: column; gap: 10px; padding-block: 28px 36px; border-top: 1px solid var(--line); }
.module-icon {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: var(--pine-50); color: var(--pine); margin-bottom: 6px;
}
.module-icon .icon { width: 22px; height: 22px; }
.module p { flex: 1; }
.also { margin-top: clamp(32px, 4vw, 48px); padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-m); background: var(--mist); display: grid; gap: 20px; }
@media (min-width: 900px) { .also { grid-template-columns: 220px 1fr; gap: 40px; } }
.also h3 { font-size: 1.25rem; }
.also-list { display: grid; gap: 16px 40px; }
@media (min-width: 700px) { .also-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.also-list strong { display: block; }

/* Check lists */
.checks li { position: relative; padding-left: 30px; }
.checks li + li { margin-top: 12px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.28em; width: 19px; height: 19px;
  background: var(--pine); -webkit-mask: var(--check) center / contain no-repeat; mask: var(--check) center / contain no-repeat;
}
.section--night .checks li::before { background: var(--mint); }

/* Network section */
.network { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .network { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }
.network-copy > * + * { margin-top: 24px; }
.network-copy .checks { margin-top: 32px; }
.diagram svg { width: 100%; height: auto; }
.diagram-compact, .diagram-note { display: none; }
@media (max-width: 640px) {
  .diagram-wide { display: none; }
  .diagram-compact { display: block; }
  .diagram-note { display: block; margin-top: 14px; font-size: 0.9375rem; color: var(--on-dark-soft); }
  .diagram-compact text { font-size: 12px; }
  .diagram-compact .label { font-size: 12px; }
  .diagram-compact .core-title { font-size: 16px; }
  .diagram-compact .core-sub { font-size: 11px; }
}
.diagram text { font-family: var(--font); fill: #fff; font-size: 14px; font-weight: 600; }
.diagram .boundary { fill: rgb(255 255 255 / 0.035); stroke: rgb(255 255 255 / 0.5); stroke-width: 1.5; stroke-dasharray: 7 7; }
.diagram .label { font-size: 13px; font-weight: 500; fill: var(--on-dark-soft); }
.diagram .node rect { fill: rgb(255 255 255 / 0.07); stroke: rgb(255 255 255 / 0.34); }
.diagram .node--core rect { fill: #fff; stroke: none; }
.diagram .node--core text { fill: var(--pine-night); }
.diagram .core-title { font-size: 19px; font-weight: 700; }
.diagram .core-sub { font-size: 12.5px; font-weight: 500; }
.diagram .wire { fill: none; stroke: var(--mint); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 0; }
.diagram .node, .diagram .wire { transition: opacity 0.6s var(--ease), stroke-dashoffset 1.2s var(--ease); transition-delay: var(--d, 0s); }
.js .diagram:not(.is-in) .wire { stroke-dashoffset: 1; }
.js .diagram:not(.is-in) .node { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .diagram .node, .diagram .wire { transition: none; } }

/* Numbered steps (sequences only) */
.steps { display: grid; gap: 24px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; } }
.step { position: relative; display: grid; grid-template-columns: 36px 1fr; column-gap: 16px; }
.step-num {
  grid-row: span 2; position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; border: 1.5px solid var(--pine); background: var(--paper);
  color: var(--pine); font-weight: 600; font-size: 0.9375rem;
}
.section--mist .step-num { background: var(--mist); }
.step h3 { font-size: 1.125rem; align-self: center; }
.step p { margin-top: 4px; font-size: 0.96875rem; }
@media (min-width: 900px) {
  .step { display: block; padding-top: 54px; }
  .step-num { position: absolute; top: 0; left: 0; }
  .step::before { content: ""; position: absolute; top: 18px; left: 44px; right: -16px; height: 1.5px; background: var(--line-strong); }
  .step:last-child::before { display: none; }
}
.callout { margin-top: clamp(40px, 5vw, 56px); padding: 24px 28px; border-radius: var(--radius-m); background: var(--pine-50); max-width: 900px; }
.callout p + p { margin-top: 8px; }

/* Editions */
.editions { display: grid; gap: 24px; }
@media (min-width: 900px) { .editions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.edition {
  display: flex; flex-direction: column; gap: 20px; padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line); border-radius: var(--radius-l); background: #fff;
}
.edition--lead { border-color: var(--pine); box-shadow: inset 0 0 0 1px var(--pine); }
.edition h2, .edition h3 { font-size: clamp(1.625rem, 1.3rem + 0.9vw, 2rem); font-stretch: 86%; letter-spacing: -0.025em; }
.edition-for { font-weight: 500; margin-top: -8px; }
.edition .checks { flex: 1; }
.edition .actions { margin-top: 4px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price strong { font-size: clamp(2rem, 1.6rem + 1.2vw, 2.75rem); font-stretch: 84%; letter-spacing: -0.03em; line-height: 1; }
.price span { font-weight: 500; }

/* Founder note */
.note { display: grid; gap: 32px; align-items: center; }
@media (min-width: 800px) { .note { grid-template-columns: 220px minmax(0, 1fr); gap: 56px; } }
.note img { width: 220px; aspect-ratio: 5 / 7; object-fit: cover; border-radius: var(--radius-m); }
.note-quote p {
  font-size: clamp(1.75rem, 1.15rem + 2vw, 3rem); font-weight: 500; font-stretch: 86%;
  letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; max-width: 24ch;
}
.note-body { margin-top: 20px; max-width: 60ch; }
.byline { margin-top: 24px; display: grid; gap: 2px; }
.byline strong { font-size: 1.0625rem; }

/* Closing call to action */
.cta-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .cta-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; } }
.cta-grid .lead { margin-top: 20px; color: var(--on-dark-soft); }
.cta-steps li {
  display: grid; grid-template-columns: 36px 1fr; column-gap: 18px; row-gap: 2px;
  padding-block: 20px; border-top: 1px solid var(--on-dark-line);
}
.cta-steps li:last-child { border-bottom: 1px solid var(--on-dark-line); }
.cta-num {
  grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid rgb(255 255 255 / 0.6); font-weight: 600; font-size: 0.9375rem;
}
.cta-steps strong { font-size: 1.1875rem; line-height: 1.3; }
.cta-steps span:last-child { color: var(--on-dark-soft); }

/* Inner page hero */
.page-hero { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 6vw, 80px); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-top: 24px; }
.page-hero-split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .page-hero-split { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); } }
.page-hero-media { margin-top: clamp(40px, 5vw, 64px); }
.in-page-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.in-page-nav a {
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--ink); text-decoration: none; font-size: 0.9375rem; font-weight: 500;
}
.in-page-nav a:hover { border-color: var(--pine); color: var(--pine); }
.status { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; font-weight: 600; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #2f8f62; box-shadow: 0 0 0 4px rgb(47 143 98 / 0.18); }

/* Feature rows */
.feature { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) {
  .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; }
  .feature--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .feature--flip .feature-copy { order: 2; }
  .feature.feature--even { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
}
.feature-copy > * + * { margin-top: 20px; }
.feature-copy h2 { font-size: clamp(1.875rem, 1.35rem + 1.65vw, 2.75rem); }
.feature-copy .checks { margin-top: 28px; }
.feature-media--narrow { max-width: 440px; width: 100%; justify-self: center; }
.shot { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-media); }
.shot img { width: 100%; }
.shot--b { position: relative; width: 58%; margin: -36px 0 0 auto; }
.badge {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
  background: var(--pine-50); color: var(--pine); font-size: 0.875rem; font-weight: 600;
}
.section--night .badge { background: rgb(255 255 255 / 0.12); color: #fff; }
.mini-steps { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--pine-50); font-size: 0.9375rem; font-weight: 600; }
.mini-steps span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--pine); color: #fff; font-size: 0.75rem; }

/* Ruleset chain */
.chain { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.chain li {
  position: relative; padding: 12px 6px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: #fff; text-align: center; font-weight: 600; font-size: 0.9375rem;
}
.chain li + li::before { content: ""; position: absolute; left: -11px; top: 50%; width: 11px; height: 1.5px; background: var(--line-strong); }
.chain li:last-child { background: var(--pine); border-color: var(--pine); color: #fff; }
.chain-caption { font-size: 0.96875rem; }
@media (max-width: 560px) {
  .chain { grid-template-columns: 1fr; gap: 8px; }
  .chain li + li::before { left: 50%; top: -9px; width: 1.5px; height: 8px; }
}
.points li + li { margin-top: 16px; }
.points strong { display: block; }

/* Generic lists of items */
.grid-list { display: grid; column-gap: 48px; }
@media (min-width: 800px) {
  .grid-list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-list--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-list--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) { .grid-list--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.grid-list > li, .grid-list > div { padding-block: 26px 30px; border-top: 1px solid var(--line); }
.grid-list h3 { margin-bottom: 8px; }
.section--night .grid-list > li, .section--night .grid-list > div { border-top-color: var(--on-dark-line); }
.section--night .grid-list p { color: var(--on-dark-soft); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 0.9375rem; font-weight: 500; }
.wide-shot { margin-top: clamp(40px, 5vw, 56px); }

/* Risk Patrol alert */
.alert {
  max-width: 560px; width: 100%; justify-self: center; padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius-l); background: #fff; color: var(--ink); box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.6);
}
.alert-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.9375rem; }
.alert-source { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--risk); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--risk); animation: pulse 2.2s ease-out infinite; }
.alert-title { margin-top: 12px; font-size: 1.5rem; font-stretch: 88%; letter-spacing: -0.02em; }
.alert-events { margin-top: 18px; }
.alert-events li { display: grid; grid-template-columns: 58px 1fr; gap: 14px; padding-block: 14px; border-top: 1px solid var(--line); }
.alert-events time { font-family: var(--mono); font-weight: 500; font-size: 0.96875rem; padding-top: 1px; }
.alert-events strong { display: block; line-height: 1.35; }
.alert-events .meta { display: block; margin-top: 2px; font-size: 0.9375rem; }
.alert-match { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.alert-match li { padding: 6px 12px; border-radius: 999px; background: var(--risk-50); color: var(--risk); font-size: 0.875rem; font-weight: 600; }
.alert-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.fake-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line-strong); font-weight: 600; font-size: 0.9375rem; }
.fake-btn--danger { background: var(--risk); border-color: var(--risk); color: #fff; }
.alert .seq { transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); transition-delay: calc(var(--i, 0) * 520ms + 200ms); }
.js .alert[data-animate]:not(.is-in) .seq { opacity: 0; transform: translateY(12px); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(163 48 43 / 0.5); }
  70% { box-shadow: 0 0 0 10px rgb(163 48 43 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(163 48 43 / 0); }
}
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } .alert .seq { transition: none; } }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); background: #fff; }
.compare { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 1rem; }
.compare th, .compare td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--mist); font-weight: 600; }
.compare tbody th { font-weight: 500; }
.compare .group-row th { padding-top: 26px; font-weight: 600; font-size: 1.0625rem; border-bottom-color: var(--line-strong); }
.compare .us { font-weight: 600; color: var(--pine); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare--two td:first-child { width: 50%; }
.footnote { margin-top: 18px; font-size: 0.9375rem; max-width: 82ch; }

/* Services */
.service { display: grid; gap: 20px 48px; padding-block: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .service { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.service h2 { font-size: clamp(1.625rem, 1.25rem + 1.1vw, 2.25rem); }
.service-copy > * + * { margin-top: 16px; }
.service .checks { display: grid; gap: 12px 32px; align-content: start; }
.service .checks li + li { margin-top: 0; }
@media (min-width: 640px) { .service .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* SlashN.ai */
.slash-mark {
  font-family: var(--mono); font-weight: 500; font-size: clamp(6rem, 3rem + 11vw, 12rem);
  line-height: 0.9; letter-spacing: -0.06em; color: var(--pine); justify-self: center;
}

/* Forms */
.form-grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .form-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: start; } }
.form { display: grid; gap: 20px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--radius-l); background: #fff; }
.form h2 { font-size: clamp(1.625rem, 1.3rem + 0.9vw, 2rem); }
.form-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field .req { color: var(--risk); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: #fff; color: var(--ink); font: 400 1rem/1.4 var(--font);
}
.textarea { min-height: 150px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; padding-right: 42px; background: #fff var(--chevron) no-repeat right 14px center / 18px; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--pine); outline-offset: 1px; border-color: var(--pine); }
.input:user-invalid, .textarea:user-invalid { border-color: var(--risk); }
.form .btn { justify-self: start; }
.hp { display: none; }
.details { display: grid; gap: 28px; }
.details h2 { font-size: 1.0625rem; font-stretch: 100%; letter-spacing: 0; }
.details p { margin-top: 6px; }
.details a { color: var(--ink); }

/* About facts */
.facts { display: grid; margin-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line); }
.facts > div { padding-block: 18px; border-bottom: 1px solid var(--line); }
@media (min-width: 800px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .facts > div { padding: 24px 24px 24px 0; border-bottom: 0; }
  .facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
}
.facts dt { font-size: 0.9375rem; }
.facts dd { margin-top: 6px; font-size: 1.25rem; font-weight: 600; line-height: 1.3; font-stretch: 92%; }

/* Simple centered band */
.band { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .band { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; } }
.band .actions { margin-top: 0; }
.band p { margin-top: 12px; max-width: 62ch; }

/* Footer */
.site-footer { background: var(--mist); border-top: 1px solid var(--line); padding-top: clamp(56px, 6vw, 80px); font-size: 0.96875rem; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .footer-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; } }
.footer-brand img { height: 40px; width: auto; }
.footer-brand p { margin-top: 18px; max-width: 34ch; }
.footer-cols { display: grid; gap: 32px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footer-title { font-size: 0.96875rem; font-stretch: 100%; letter-spacing: 0; margin-bottom: 14px; }
.footer-cols li + li { margin-top: 10px; }
.footer-cols a { color: var(--ink); text-decoration: none; }
.footer-cols a:hover { color: var(--pine); text-decoration: underline; }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
  margin-top: clamp(40px, 5vw, 64px); padding-block: 24px; border-top: 1px solid var(--line); font-size: 0.875rem;
}

/* Media dialog */
.media-dialog {
  width: min(100vw - 32px, 1320px); max-width: none; max-height: calc(100vh - 32px); padding: 0; border: 0;
  border-radius: var(--radius-l); background: #0f1d18; color: #fff; overflow: hidden;
}
.media-dialog::backdrop { background: rgb(8 20 15 / 0.76); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.media-dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 10px 10px 20px; }
.media-dialog-title { font-weight: 600; font-size: 1rem; }
.dialog-close {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.3);
  background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; flex: none;
}
.dialog-close:hover { background: rgb(255 255 255 / 0.1); }
.dialog-close .icon { width: 18px; height: 18px; }
.media-dialog-body { background: #fff; }
.media-dialog-body video { width: 100%; max-height: calc(100vh - 100px); background: #000; }
.media-dialog-body img { width: 100%; max-height: calc(100vh - 100px); object-fit: contain; }
@media (prefers-reduced-motion: no-preference) { .media-dialog[open] { animation: dialog-in 0.28s var(--ease); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }

/* Thank you page */
.success { max-width: 720px; }
.success p { margin-top: 18px; }

/* Small helpers referenced by the pages */
.section--flush-top { padding-top: 0; }
.closing-line { margin-top: clamp(32px, 4vw, 48px); font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); font-weight: 600; font-stretch: 88%; letter-spacing: -0.015em; }
.pills--spaced { margin-top: 32px; }
.note-quote--long p { font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem); line-height: 1.32; max-width: 46ch; letter-spacing: -0.012em; font-stretch: 92%; }
.zoomable {
  display: block; width: 100%; padding: 0; font: inherit; color: inherit; text-align: inherit;
  cursor: zoom-in; -webkit-appearance: none; appearance: none;
}
.zoomable:hover { border-color: var(--line-strong); }

/* Small screen refinements */
@media (max-width: 700px) {
  .tour-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; border-bottom: 0; }
  .tour-tab { min-width: 0; padding: 12px 6px 12px 2px; gap: 8px; font-size: 0.875rem; border-bottom-color: var(--line); align-items: flex-start; }
  .tour-tab .num { width: 22px; height: 22px; font-size: 0.75rem; }
  .tour-stage { margin-top: 24px; }
}
@media (max-width: 560px) {
  .watch-card { grid-template-columns: 104px 1fr; gap: 14px; }
  .watch-thumb .play { width: 36px; height: 36px; }
  .film-toggle { right: 10px; bottom: 10px; min-height: 32px; padding: 0 10px 0 8px; font-size: 0.8125rem; }
  .film-toggle .icon { width: 13px; height: 13px; }
}

.form-status { font-size: 0.9375rem; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--risk); font-weight: 600; }
