/* SOC2Starter — marketing site.
   Brand blue is shared with the app on purpose, so the site and the product
   feel like one thing. Everything around it — neutrals, type, motion, and the
   dark theme — is set here.

   The design idea follows the product's own argument: evidence over
   checkboxes. Pages should read like a well-kept record, so weight goes to
   type and rhythm rather than to decoration, and the one element that carries
   real emphasis on a guide is the short answer at the top. */

/* ---------------------------------------------------------------- fonts

   Self-hosted so there is no third-party request and no CSP change; the
   site's genuine advantage is that it renders in well under a second.
   `swap` means text paints immediately in the fallback. */

@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/public-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/public-sans-italic.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------- tokens */

:root {
  --ink: #0B1220;
  --ink-80: #263248;
  --ink-60: #4C566B;
  --ink-40: #78829A;
  --line: #E2E7EF;
  --line-strong: #CBD3E0;
  --surface: #FFFFFF;
  --surface-sunk: #EEF1F6;
  --canvas: #F4F6F9;

  --brand: #1E5EFF;
  --brand-ink: #1A52E0;
  --brand-soft: #E9EFFF;
  --brand-edge: #BED0FF;

  --ok: #0E9F6E;
  --ok-soft: #E4F5EE;
  --warn: #B7791F;
  --warn-soft: #FCF4E4;

  --radius: 14px;
  --radius-sm: 9px;
  --measure: 68ch;

  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  --lift: 0 1px 2px rgba(11, 18, 32, .04), 0 12px 32px -20px rgba(11, 18, 32, .28);
  --ease: cubic-bezier(.2, .7, .3, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #EDF1F7;
    --ink-80: #D2DAE6;
    --ink-60: #A3AEC0;
    --ink-40: #7B8699;
    --line: #222C3B;
    --line-strong: #334054;
    --surface: #141B26;
    --surface-sunk: #101722;
    --canvas: #0B1018;

    --brand: #7C9BFF;
    --brand-ink: #97AFFF;
    --brand-soft: #17203A;
    --brand-edge: #2C3D66;

    --ok: #4ECFA0;
    --ok-soft: #10261F;
    --warn: #E0A94C;
    --warn-soft: #2A2114;

    --lift: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 32px -20px rgba(0, 0, 0, .9);

    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink-80);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--brand-soft); color: var(--ink); }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

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

/* Headings carry the serif. Optical sizing lets one file work at 1rem and
   at 3rem without the large sizes looking loose. */
h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.014em;
  margin: 0 0 .5em;
  font-weight: 600;
  text-wrap: balance;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.15rem, 5vw, 3.15rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.5rem; }
h3 {
  font-family: var(--sans);
  font-size: 1.03rem;
  font-weight: 650;
  letter-spacing: -0.005em;
  line-height: 1.4;
  margin-top: 1.75rem;
}

p { margin: 0 0 1.05rem; }
ul, ol { margin: 0 0 1.05rem; padding-left: 1.3rem; }
li { margin-bottom: .45rem; }
li::marker { color: var(--ink-40); }
strong { color: var(--ink); font-weight: 650; }
em { font-style: italic; }
small { font-size: .85rem; color: var(--ink-40); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
  background: var(--surface-sunk);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .1em .35em;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--measure); }

/* ---------------------------------------------------------------- header */

header.site {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
header.site .wrap {
  display: flex; align-items: center; gap: 24px;
  min-height: 66px; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--ink); font-size: 1.05rem; letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 28px; height: 28px; border-radius: 8px; background: var(--ink);
  color: var(--surface); display: grid; place-items: center;
  font-size: 13px; font-weight: 700; letter-spacing: 0;
  transition: transform .35s var(--ease);
}
.brand:hover .mark { transform: rotate(-6deg) scale(1.06); }

nav.site { margin-left: auto; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
nav.site a {
  color: var(--ink-60); font-size: .93rem; font-weight: 500;
  position: relative; padding: 4px 0;
  transition: color .2s var(--ease);
}
nav.site a:hover { color: var(--ink); text-decoration: none; }

/* A link's underline grows from the left rather than blinking on. */
nav.site a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
nav.site a:not(.btn):hover::after { transform: scaleX(1); }
nav.site a[aria-current="page"] { color: var(--ink); }
nav.site a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); background: var(--brand); }

/* `nav.site a` outranks `.btn-primary`, which left the header CTA grey on blue. */
nav.site a.btn-primary,
nav.site a.btn-primary:hover { color: #fff; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease),
              transform .16s var(--ease), box-shadow .24s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(30, 94, 255, .28); }
.btn-primary:hover { background: var(--brand-ink); box-shadow: 0 6px 20px -6px rgba(30, 94, 255, .55); }

.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink-40); background: var(--surface-sunk); }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 1.75rem 0 .75rem; }

/* ---------------------------------------------------------------- sections */

section { padding: 68px 0; }
section.tight { padding: 44px 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }

/* Small labels stay sentence case and lean on weight and color instead of
   tracked-out capitals. */
.eyebrow {
  font-size: .82rem; font-weight: 650; letter-spacing: 0;
  color: var(--brand); margin-bottom: .7rem;
}
.lede {
  font-size: clamp(1.08rem, 2vw, 1.24rem); color: var(--ink-60);
  max-width: 62ch; line-height: 1.6;
}

.hero { padding: 92px 0 68px; }
.hero h1 { max-width: 20ch; }

/* The one orchestrated moment on the site: the hero settles into place on
   load. Everything else only moves in response to something a person did. */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.hero > .wrap > *,
.hero .wrap > * {
  animation: rise .62s var(--ease) both;
}
.hero .wrap > *:nth-child(1) { animation-delay: .02s; }
.hero .wrap > *:nth-child(2) { animation-delay: .10s; }
.hero .wrap > *:nth-child(3) { animation-delay: .18s; }
.hero .wrap > *:nth-child(4) { animation-delay: .26s; }
.hero .wrap > *:nth-child(5) { animation-delay: .34s; }

/* ---------------------------------------------------------------- cards */

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Plain cards stay flat and bordered. Elevation is reserved for the two
   things that earn it: the featured plan, and a guide you can click. */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.steps { counter-reset: step; }
.steps .card::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center;
  width: 27px; height: 27px; border-radius: 8px;
  background: var(--brand-soft); color: var(--brand);
  border: 1px solid var(--brand-edge);
  font-size: .82rem; font-weight: 700; margin-bottom: 13px;
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- pricing */

.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); align-items: start; }
.plan {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.plan.featured {
  border-color: var(--brand);
  box-shadow: 0 10px 34px -14px rgba(30, 94, 255, .42);
}
.plan .price {
  font-family: var(--serif); font-size: 2.4rem; font-weight: 600;
  color: var(--ink); letter-spacing: -0.03em; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.plan .price span {
  font-family: var(--sans); font-size: .95rem; font-weight: 500;
  color: var(--ink-40); letter-spacing: 0;
}
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; margin-bottom: .55rem; }
.plan li::before { content: "✓"; color: var(--ok); font-weight: 700; flex: none; }
.plan li.off { color: var(--ink-40); }
.plan li.off::before { content: "—"; color: var(--ink-40); }

.tag {
  display: inline-block; font-size: .78rem; font-weight: 650; letter-spacing: 0;
  padding: 4px 11px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
  border: 1px solid var(--brand-edge); margin-bottom: 10px;
}

/* ---------------------------------------------------------------- notices */

.notice {
  background: var(--brand-soft); border-left: 3px solid var(--brand);
  padding: 15px 19px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0; font-size: .95rem;
}
.notice.warn { background: var(--warn-soft); border-left-color: var(--warn); }
.notice p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- tables */

.table-wrap {
  overflow-x: auto; margin: 1.35rem 0;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface);
}
table { border-collapse: collapse; width: 100%; font-size: .93rem; background: var(--surface); }
th, td { border-bottom: 1px solid var(--line); padding: 11px 14px; text-align: left; vertical-align: top; }
th {
  background: var(--surface-sunk); color: var(--ink); font-weight: 650;
  font-size: .86rem; letter-spacing: 0;
}
tr:last-child td { border-bottom: 0; }
.table-wrap table { border: 0; }

/* ---------------------------------------------------------------- legal pages */

.legal { padding: 60px 0 84px; }
.legal .wrap { max-width: var(--measure); }
.legal h2 { font-size: 1.35rem; margin-top: 2.6rem; }
.legal h3 { font-size: 1rem; }
.legal .updated { color: var(--ink-40); font-size: .9rem; margin-bottom: 2rem; }

/* ---------------------------------------------------------------- footer */

footer.site {
  background: #0B1220; color: #A7B0C0; padding: 52px 0 42px;
  font-size: .92rem;
}
footer.site a { color: #C9D2E0; }
footer.site a:hover { color: #fff; }
footer.site .cols { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
footer.site h4,
footer.site h2.foot-h {
  font-family: var(--sans);
  color: #fff; font-size: .9rem; letter-spacing: 0; text-transform: none;
  margin: 0 0 13px; font-weight: 650; line-height: 1.3;
}
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 8px; }
footer.site .fine {
  margin-top: 38px; padding-top: 25px; border-top: 1px solid #253044;
  color: #7C8698; font-size: .85rem;
}

@media (max-width: 640px) {
  nav.site { gap: 14px; width: 100%; margin-left: 0; padding-bottom: 12px; }
  section { padding: 50px 0; }
  .hero { padding: 58px 0 46px; }
  body { font-size: 16px; }
}

/* ---------------------------------------------------------------- blog

   Articles are the only pages on this site written to be found rather than
   navigated to, so they get two things the rest does not: a measure narrow
   enough to read a thousand words in, and a direct answer at the top that
   both a person skimming and an answer engine quoting can take at face
   value without reading the rest. */

.post-list { display: grid; gap: 18px; margin-top: 32px; }

.post-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  transition: border-color .22s var(--ease), box-shadow .28s var(--ease),
              transform .28s var(--ease);
}
.post-card:hover {
  border-color: var(--brand-edge);
  box-shadow: var(--lift);
  transform: translateY(-2px);
}
.post-card h2, .post-card h3 { margin: 0 0 .4rem; font-size: 1.2rem; line-height: 1.3; }
.post-card h2 a, .post-card h3 a { color: var(--ink); }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--brand); text-decoration: none; }
.post-card p { margin: 0 0 .75rem; color: var(--ink-60); }
.post-card .kicker {
  font-size: .82rem; font-weight: 650; letter-spacing: 0;
  text-transform: none; color: var(--brand); margin: 0 0 .45rem;
}

.article { padding: 52px 0 84px; }
.article .wrap { max-width: var(--measure); }
.article p { font-size: 1.02rem; }
.article h2 { font-size: 1.55rem; margin-top: 2.9rem; }
.article h3 { font-size: 1.06rem; margin-top: 2.1rem; }
.article .table-wrap { margin: 1.6rem 0; }
.article table { font-size: .93rem; }
.article ul, .article ol { margin-bottom: 1.3rem; }

.post-meta {
  color: var(--ink-40); font-size: .9rem;
  margin: 0 0 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line);
}
.post-meta a { color: var(--ink-40); text-decoration: underline; }

/* The short answer. Deliberately the first thing under the headline, and the
   one element on the page given real emphasis — it is what gets quoted. */
.answer {
  background: var(--brand-soft);
  border: 1px solid var(--brand-edge);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px; margin: 0 0 2.2rem;
}
.answer p { font-size: 1.06rem; }
.answer p:last-child { margin-bottom: 0; }
.answer .label {
  font-size: .84rem; font-weight: 650; letter-spacing: 0; text-transform: none;
  color: var(--brand); display: block; margin-bottom: .5rem;
}

.callout {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 26px; margin: 2.2rem 0;
}
.callout p:last-child { margin-bottom: 0; }

.next-up { margin-top: 3.5rem; border-top: 1px solid var(--line); padding-top: 1.6rem; }
.next-up h2 { font-size: 1.15rem; margin-top: 0; }
.next-up ul { list-style: none; padding: 0; }
.next-up li { margin-bottom: .65rem; }

.crumbs { font-size: .85rem; color: var(--ink-40); margin-bottom: 1.5rem; }
.crumbs a { color: var(--ink-40); }
.crumbs a:hover { color: var(--brand); }

/* Contents. Also the thing that gives Google sitelink jump-links to a section,
   and lets an answer engine cite one heading rather than the whole page. */
.toc {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 21px 25px; margin: 0 0 2.5rem;
}
.toc-title {
  font-size: .84rem; font-weight: 650; letter-spacing: 0; text-transform: none;
  color: var(--ink-40); margin: 0 0 .8rem;
}
.toc ol { margin: 0; padding-left: 1.15rem; }
.toc li { margin-bottom: .38rem; }
.toc a { color: var(--ink-80); }
.toc a:hover { color: var(--brand); }

/* Anchored headings get a little offset so the sticky header does not cover them. */
.article h2[id], .article h3[id] { scroll-margin-top: 88px; }

/* ---------------------------------------------------------------- motion off

   Everything above degrades to a static page; nothing depends on animation
   to become visible. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .hero .wrap > * { opacity: 1; transform: none; }
}
