/* ==========================================================================
   GovernScope marketing site
   Tokens mirror src/styles/global.css so the site and the app are one system.
   Static CSS, no build step. Light and dark themes, one theme per page load.
   ========================================================================== */

/* -------------------------------------------------- fonts (self-hosted) */
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
/* Geist replaces the app's Carlito for the marketing site. Carlito exists in
   the product because it is metric-compatible with Calibri for .docx export,
   which is irrelevant here and reads weak at display sizes. */
@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* -------------------------------------------------- tokens */
:root {
  /* brand — identical values to the app */
  --brand: #073f46;
  --brand-deep: #052f35;
  --brand-night: #03292e;
  --brand-mid: #16737a;
  --brand-soft: #e9f2f2;
  --brand-faint: #f1f7f7;
  --evidence: #b7a577;

  --ink: #101719;
  --ink-soft: #39474a;
  /* Darkened from the app's #6f7d80, which lands at 4.27:1 on white and misses
     WCAG AA for the small letterspaced labels this site uses it for. */
  --muted: #626f72;
  --divider: #d5ddde;

  /* semantic surfaces — swapped wholesale in dark mode */
  --bg: #ffffff;
  --bg-alt: #f4f8f8;
  --bg-deep: #03292e;
  --surface: #ffffff;
  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --text-muted: var(--muted);
  --line: var(--divider);
  --line-soft: #e6eced;

  /* on the deep teal panels */
  --on-deep: #f1f7f7;
  --on-deep-muted: #a9c2c4;
  --on-deep-line: rgba(233, 242, 242, 0.18);

  --accent: var(--brand);
  --accent-hover: var(--brand-deep);
  --accent-text: #ffffff;

  /* Brand lockup colours, kept separate so dark mode can invert them
     without disturbing the accent used for buttons and links. */
  --brand-ink: var(--brand);
  --brand-frame: rgba(7, 63, 70, 0.24);

  /* Hairline column rule, matching the app's workspace background. */
  --rule: rgba(7, 63, 70, 0.055);
  --rule-deep: rgba(233, 242, 242, 0.055);

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "EB Garamond", "Adobe Garamond Pro", Garamond, Georgia, serif;

  /* one radius system: sharp, matching the app */
  --radius: 2px;

  --shadow: 0 22px 60px rgba(3, 41, 46, 0.09);
  --shadow-soft: 0 10px 28px rgba(3, 41, 46, 0.055);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  --max: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1416;
    --bg-alt: #101c1f;
    --bg-deep: #061e22;
    --surface: #142124;
    --text: #edf3f3;
    --text-soft: #c2d2d3;
    --text-muted: #91a5a7;
    --line: #22383c;
    --line-soft: #1b2e31;

    --on-deep: #edf3f3;
    --on-deep-muted: #9db4b6;
    --on-deep-line: rgba(237, 243, 243, 0.16);

    --accent: #7fb5b8;
    --accent-hover: #9dc9cb;
    --accent-text: #05252a;

    --brand-ink: #d7e6e7;
    --brand-frame: rgba(215, 230, 231, 0.28);

    --rule: rgba(215, 230, 231, 0.055);
    --rule-deep: rgba(215, 230, 231, 0.05);

    --brand-soft: #16292d;
    --brand-faint: #122225;

    --shadow: 0 22px 60px rgba(0, 0, 0, 0.4);
    --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.28);
  }
}

/* -------------------------------------------------- reset + base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  letter-spacing: 0.012em;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Display type follows the app: EB Garamond at a light weight with tight
   tracking and near-solid leading. Weight 500 and loose tracking was what made
   the headings read heavy and generic. */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.032em;
  line-height: 1.03;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 6.4vw, 5rem);
  letter-spacing: -0.04em;
}
h2 {
  font-size: clamp(2.15rem, 4.4vw, 3.5rem);
  letter-spacing: -0.036em;
}
h3 {
  font-size: clamp(1.3rem, 1.8vw, 1.55rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h4 {
  margin: 0;
  font-size: 0.875rem;
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

p {
  margin: 0 0 1rem;
  max-width: 68ch;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* -------------------------------------------------- layout primitives */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line-soft);
}

.section--flush {
  border-top: 0;
}

.section--alt {
  background: var(--bg-alt);
  border-top: 0;
}

/* The product paints a 96px hairline column grid behind its workspace. Carrying
   that texture onto the site ties the two together and gives the flat sections
   a measured, drawing-board feel without adding decoration. */
.section--ruled {
  position: relative;
  background-image: linear-gradient(
    90deg,
    var(--rule) 1px,
    transparent 1px
  );
  background-size: 96px 100%;
  background-position: calc(50% + 0.5px) 0;
}
.section--ruled > * {
  position: relative;
}

.section--deep {
  background: var(--bg-deep);
  color: var(--on-deep);
  border-top: 0;
}
.section--deep h2,
.section--deep h3 {
  color: var(--on-deep);
}
.section--deep p {
  color: var(--on-deep-muted);
}

.lede {
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  color: var(--text-soft);
  max-width: 60ch;
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}
.section-head p {
  margin-top: 1rem;
  color: var(--text-soft);
}

.eyebrow {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 1.1rem;
}
/* On deep panels the product switches its eyebrows to the evidence gold.
   Matching that is what makes the site read as the same piece of software. */
.section--deep .eyebrow,
.cell--deep .eyebrow {
  color: var(--evidence);
}

/* -------------------------------------------------- metric band
   Mirrors the app's metric strip: oversized light numerals with a tight
   negative track, over a small letterspaced caps label. Every figure here is a
   real, checkable property of the product, not invented precision. */
.metrics {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border-block: 1px solid var(--line-soft);
}
@media (min-width: 640px) {
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 980px) {
  .metrics {
    grid-template-columns: repeat(4, 1fr);
  }
}
.metric {
  background: var(--bg);
  padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.25rem, 2.5vw, 2rem);
}
/* A shared value box keeps the labels on one baseline even when a figure uses
   the smaller multi-part size. */
.metric__value {
  display: flex;
  align-items: flex-end;
  min-height: clamp(2.7rem, 5.4vw, 4.05rem);
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.9;
  color: var(--text);
}
/* Multi-part figures such as the renewal thresholds need to stay on one line. */
.metric__value--series {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  white-space: nowrap;
}
.metric__label {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.section--deep .metrics {
  background: var(--on-deep-line);
  border-block-color: var(--on-deep-line);
}
.section--deep .metric {
  background: var(--bg-deep);
}
.section--deep .metric__value {
  color: var(--on-deep);
}
.section--deep .metric__label {
  color: var(--on-deep-muted);
}

/* -------------------------------------------------- brand lockup
   Replicates the app's own lockup: 42px mark, letterspaced caps wordmark with
   the V picked out in the evidence gold, and a descriptor beneath. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  color: var(--text);
  text-decoration: none;
}
.brand__mark {
  width: 42px;
  height: 42px;
  overflow: visible;
  fill: none;
  flex: none;
}
.brand__frame {
  stroke: var(--brand-frame);
  stroke-width: 1.4;
}
.brand__v {
  stroke: var(--brand-ink);
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 3.5;
}
.brand__check {
  stroke: var(--evidence);
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 2.4;
}
.brand__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.brand__name {
  color: var(--brand-ink);
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: 0.145em;
  line-height: 1;
  white-space: nowrap;
}
.brand__v-letter {
  color: var(--evidence);
}
.brand__scope {
  margin-left: 0.22em;
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.11em;
}
.brand__descriptor {
  color: var(--text-soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .brand__descriptor {
    display: none;
  }
}
/* On the deep teal footer the lockup inverts. */
.site-footer .brand__name,
.site-footer .brand__scope {
  color: var(--on-deep);
}
.site-footer .brand__descriptor {
  color: var(--on-deep-muted);
}
.site-footer .brand__frame {
  stroke: var(--on-deep-line);
}
.site-footer .brand__v {
  stroke: var(--on-deep);
}

/* -------------------------------------------------- buttons */
/* Uppercase and letterspaced, matching the product's own buttons. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  min-height: 48px;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.065em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 160ms ease,
    border-color 160ms ease, color 160ms ease;
}
.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-text);
}

.btn--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* on deep teal panels the outline button needs its own contrast pair */
.section--deep .btn--secondary,
.site-footer .btn--secondary {
  color: var(--on-deep);
  border-color: var(--on-deep-line);
}
.section--deep .btn--secondary:hover,
.site-footer .btn--secondary:hover {
  border-color: var(--on-deep);
  color: var(--on-deep);
}
.section--deep .btn--primary {
  background: var(--on-deep);
  color: var(--brand-night);
  border-color: var(--on-deep);
}
.section--deep .btn--primary:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--brand-night);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* -------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
@supports not (backdrop-filter: blur(10px)) {
  .site-header {
    background: var(--bg);
  }
}

.site-header .wrap {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 1.9rem);
}
.site-nav a:not(.btn) {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }
  .site-nav {
    position: absolute;
    inset: 78px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.25rem;
    display: none;
  }
  .site-nav[data-open="true"] {
    display: flex;
  }
  .site-nav a:not(.btn) {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 1.0625rem;
  }
  .site-nav .btn {
    margin-top: 1rem;
  }
}

/* -------------------------------------------------- hero (asymmetric split) */
.hero {
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

/* The headline takes the full measure at display scale, capped by character
   count rather than pixels so it always breaks to two lines. */
.hero__title {
  max-width: 24ch;
  margin-bottom: clamp(2rem, 3.5vw, 3rem);
}

.hero__body {
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  align-items: start;
}
@media (min-width: 900px) {
  .hero__body {
    grid-template-columns: 0.82fr 1.18fr;
  }
  /* The product shot runs past the container toward the viewport edge so it
     reads as a real screen rather than a small floating thumbnail. */
  .hero__figure {
    margin-right: calc(-1 * min(7vw, 6rem));
  }
}
.hero .lede {
  margin-bottom: 1.75rem;
}

.hero__figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--surface);
}
.hero__figure img {
  width: 100%;
  height: auto;
}

/* -------------------------------------------------- logo / credential strip */
.credential-strip {
  padding-block: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-alt);
}
.credential-strip__inner {
  display: grid;
  align-items: center;
  gap: 1rem clamp(1.5rem, 4vw, 3rem);
}
@media (min-width: 960px) {
  .credential-strip__inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}
.credential-strip p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: none;
}
.credential-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2.25rem);
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-soft);
}

/* -------------------------------------------------- bento / feature grid */
.bento {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 760px) {
  .bento--5 {
    grid-template-columns: repeat(6, 1fr);
  }
  .bento--5 > :nth-child(1) {
    grid-column: span 4;
  }
  .bento--5 > :nth-child(2) {
    grid-column: span 2;
  }
  .bento--5 > :nth-child(3) {
    grid-column: span 2;
  }
  .bento--5 > :nth-child(4) {
    grid-column: span 2;
  }
  .bento--5 > :nth-child(5) {
    grid-column: span 2;
  }
}

.cell {
  background: var(--surface);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.cell h3 {
  margin-bottom: 0.5rem;
}
.cell p {
  color: var(--text-soft);
  margin: 0;
  font-size: 1rem;
}
.cell--tint {
  background: var(--brand-faint);
}
.cell--deep {
  background: var(--bg-deep);
  color: var(--on-deep);
}
.cell--deep h3 {
  color: var(--on-deep);
}
.cell--deep p {
  color: var(--on-deep-muted);
}
.cell__figure {
  margin-top: 1.5rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

/* -------------------------------------------------- split rows */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 880px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--reverse > :first-child {
    order: 2;
  }
}
.split figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

/* -------------------------------------------------- scenario list */
.scenarios {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
}
@media (min-width: 800px) {
  .scenarios {
    grid-template-columns: repeat(2, 1fr);
  }
}
.scenarios li {
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent);
}
.scenarios strong {
  display: block;
  font-size: 1.0625rem;
  margin-bottom: 0.35rem;
}
.scenarios p {
  margin: 0;
  color: var(--text-soft);
}
.section--deep .scenarios li {
  border-left-color: var(--evidence);
}
.section--deep .scenarios strong {
  color: var(--on-deep);
}
/* Needed explicitly: `.scenarios p` and `.section--deep p` have equal
   specificity, and the former is declared later, so without this the body copy
   inherits the dark ink and drops to roughly 1.6:1 on the teal panel. */
.section--deep .scenarios p {
  color: var(--on-deep-muted);
}

/* -------------------------------------------------- pricing */
.tiers {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .tiers {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

.tier {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
.tier--featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
}
@media (min-width: 900px) {
  .tier--featured {
    margin-top: -1.25rem;
    padding-block: calc(clamp(1.5rem, 3vw, 2rem) + 1.25rem);
  }
}
.tier__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.35rem;
}
.tier__promise {
  color: var(--text-soft);
  font-size: 0.9875rem;
  margin-bottom: 1.25rem;
  min-height: 3rem;
}
.tier__price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}
.tier__amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
}
.tier__period {
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.tier__annual {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.tier .btn {
  width: 100%;
}
.tier__features {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 0.6rem;
  font-size: 0.9875rem;
  color: var(--text-soft);
}
.tier__features li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.6rem;
  align-items: start;
}
.tier__features svg {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.28rem;
  color: var(--accent);
  flex: none;
}
.tier__inherit {
  font-weight: 700;
  color: var(--text);
}

/* comparison table */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
table.compare {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9875rem;
}
table.compare th,
table.compare td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line-soft);
}
table.compare thead th {
  background: var(--bg-alt);
  font-family: var(--font);
  font-weight: 700;
  white-space: nowrap;
}
table.compare td:not(:first-child),
table.compare th:not(:first-child) {
  text-align: center;
  width: 8.5rem;
}
table.compare tbody th {
  font-weight: 400;
  color: var(--text-soft);
}
table.compare tr:last-child th,
table.compare tr:last-child td {
  border-bottom: 0;
}
table.compare .yes {
  color: var(--accent);
}
table.compare .no {
  color: var(--text-muted);
}

/* -------------------------------------------------- forms */
.form {
  display: grid;
  gap: 1.25rem;
  max-width: 34rem;
}
.field {
  display: grid;
  gap: 0.4rem;
}
/* Fieldsets group inputs only, so drop the default chrome. They stay display
   block and wrap their controls in an inner element, because a <legend> inside
   a grid or flex fieldset is special-cased by browsers and lands unpredictably. */
fieldset.field,
fieldset.plan-choice {
  display: block;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
fieldset.field > legend,
fieldset.plan-choice > legend {
  padding: 0;
}
.field label {
  font-size: 0.9375rem;
  font-weight: 700;
}
.field .hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  width: 100%;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-muted);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.field textarea {
  min-height: 8rem;
  resize: vertical;
}
.field .error {
  font-size: 0.875rem;
  color: #a33b45;
  margin: 0;
}
@media (prefers-color-scheme: dark) {
  .field .error {
    color: #e79aa2;
  }
}

.form-note {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.form-status {
  border: 1px solid var(--line);
  border-left: 2px solid #a33b45;
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.9375rem;
  background: var(--bg-alt);
}

.honeypot {
  position: absolute;
  left: -9999px;
}

/* plan chooser (get started) */
.plan-choice__grid {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 720px) {
  .plan-choice__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.plan-option {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  cursor: pointer;
  background: var(--surface);
  transition: border-color 160ms ease;
}
.plan-option:hover {
  border-color: var(--accent);
}
.plan-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.plan-option:has(input:checked) {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.plan-option:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.plan-option__name {
  font-weight: 700;
  display: block;
}
.plan-option__price {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.billing-toggle {
  display: inline-flex;
  justify-self: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0;
  padding: 0;
}
.billing-toggle label {
  position: relative;
  padding: 0.55rem 1.1rem;
  font-size: 0.9375rem;
  cursor: pointer;
  background: var(--surface);
  color: var(--text-soft);
}
.billing-toggle label:has(input:checked) {
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
}
.billing-toggle label:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.billing-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.btn[aria-busy="true"] {
  opacity: 0.72;
  pointer-events: none;
}

/* -------------------------------------------------- prose (legal pages) */
.prose {
  max-width: 44rem;
}
.prose h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  margin: 2.75rem 0 0.85rem;
}
.prose h3 {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.0625rem;
  margin: 1.75rem 0 0.5rem;
}
.prose ul {
  padding-left: 1.15rem;
  color: var(--text-soft);
}
.prose li {
  margin-bottom: 0.5rem;
}
.prose .updated {
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.prose .eyebrow {
  margin-bottom: 0.75rem;
}
.prose .callout {
  background: var(--brand-faint);
  border-left: 2px solid var(--accent);
  padding: 1rem 1.25rem;
  margin: 1.75rem 0;
  font-size: 0.9875rem;
  color: var(--text-soft);
}
.prose table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.prose table th,
.prose table td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line-soft);
}
.prose table th {
  background: var(--bg-alt);
  font-weight: 700;
}
.prose .table-scroll {
  margin: 1.5rem 0;
}

/* -------------------------------------------------- faq */
.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-soft);
  max-width: 46rem;
}
.faq details {
  border-bottom: 1px solid var(--line-soft);
}
.faq summary {
  cursor: pointer;
  padding: 1.1rem 0;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-size: 1.35rem;
  color: var(--accent);
  line-height: 1;
  flex: none;
}
.faq details[open] summary::after {
  content: "\2212";
}
.faq p {
  color: var(--text-soft);
  padding-bottom: 1.1rem;
  margin: 0;
}

/* -------------------------------------------------- closing CTA */
.cta-panel {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 860px) {
  .cta-panel {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

/* -------------------------------------------------- footer */
.site-footer {
  background: var(--bg-deep);
  color: var(--on-deep);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.site-footer a {
  color: var(--on-deep-muted);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--on-deep);
}
.site-footer .brand {
  color: var(--on-deep);
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--on-deep-line);
}
@media (min-width: 780px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}
.footer-grid p {
  color: var(--on-deep-muted);
  font-size: 0.9375rem;
  margin: 1rem 0 0;
  max-width: 32ch;
}
.footer-col h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--on-deep);
  margin: 0 0 1rem;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  font-size: 0.9375rem;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  justify-content: space-between;
  padding-top: 1.75rem;
  font-size: 0.875rem;
  color: var(--on-deep-muted);
}
.footer-legal ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

/* -------------------------------------------------- phone captures
   The product is genuinely used one handed on the clinic floor, so some
   screenshots are real phone captures. They are shown at device scale rather
   than stretched into a landscape frame. The larger corner radius here is
   device chrome, not UI chrome, so it does not break the 2px shape system. */
.split figure:has(img[src*="-phone"]),
.cell__figure:has(img[src*="-phone"]) {
  display: flex;
  justify-content: center;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.split figure:has(img[src*="-phone"]) img {
  max-width: 300px;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
/* Inside a bento cell the full phone height would tower over its neighbours,
   so the capture is cropped from the top to the part that carries the point. */
.cell__figure:has(img[src*="-phone"]) img {
  width: 260px;
  max-height: 340px;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  box-shadow: var(--shadow-soft);
}

/* In the wide bento cell, sit the copy and the phone side by side rather than
   stranding a narrow portrait capture in the middle of a lot of empty space. */
@media (min-width: 860px) {
  .cell--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: end;
  }
  .cell--split > :first-child {
    grid-column: 1;
  }
  .cell--split .cell__figure {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: end;
    margin-top: 0;
  }
}

/* No scroll-reveal here by design. Hiding content behind opacity: 0 until
   JavaScript reveals it means a script failure silently removes sections of a
   compliance product's pricing and features. Motion on this site is limited to
   hover and press feedback, which degrades safely. */

/* ------------------------------------------------ sector cards (home page) */
.sector-grid {
  display: grid;
  gap: 1px;
  background: var(--line, rgba(0,0,0,0.08));
  border: 1px solid var(--line, rgba(0,0,0,0.08));
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 720px) {
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .sector-grid { grid-template-columns: repeat(4, 1fr); }
}
.sector-grid li {
  background: var(--surface);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sector-grid .eyebrow { margin: 0; }
.sector-grid h3 { margin: 0; }
.sector-grid p { color: var(--text-soft); margin: 0; font-size: 1rem; flex: 1; }
.sector-grid a.more { font-weight: 600; margin-top: 0.75rem; }

/* Sector page: the list of audit domains as a compact two column list. */
.domain-list {
  columns: 1;
  column-gap: 2.5rem;
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.7;
}
@media (min-width: 720px) {
  .domain-list { columns: 2; }
}
.domain-list li { break-inside: avoid; margin-bottom: 0.35rem; }

/* Get-started: the two setup options sit side by side from tablet width. */
@media (min-width: 720px) {
  .plan-choice__grid--two { grid-template-columns: repeat(2, 1fr); }
}
.plan-option .hint { display: block; margin-top: 0.35rem; }

/* A rep's checkout offer, shown above the form it pre-fills. */
.offer-panel {
  border: 1px solid var(--brand, #073f46);
  background: var(--brand-faint);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.offer-panel p { margin: 0; }
.offer-panel [data-offer-terms] { font-weight: 600; margin: 0.35rem 0; }

/* Pricing: the two setup options. */
@media (min-width: 720px) {
  .tiers--two { grid-template-columns: repeat(2, 1fr); }
}

/* Booking page: free slots grouped by day. */
.booking__days { display: grid; gap: 1.5rem; margin-top: 1rem; }
.booking__day h2 { font-size: 1.25rem; margin: 0 0 0.75rem; }
.booking__slots { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.booking__slot {
  font: inherit;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink, inherit);
  cursor: pointer;
  min-width: 6.5rem;
}
.booking__slot:hover, .booking__slot:focus-visible { border-color: var(--brand); }
.booking__slot[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.booking__slot:disabled { opacity: 0.6; cursor: progress; }
.booking__confirmed { border: 1px solid var(--brand); background: var(--brand-faint); padding: 1.25rem; }
