/*
 * The marketing site's stylesheet.
 *
 * Plain CSS, no framework: the site deploys as static assets, so there is no
 * runtime to compile it and no component library to load. The values are written
 * once as custom properties here and referenced everywhere below, so a change to
 * the palette or the spacing is one edit.
 *
 * Responsive by decision: the layout is a single column on small screens and the
 * mobile breakpoint is 48rem (768px). Nothing is wider than its container, so the
 * page does not scroll sideways at 360px.
 */

:root {
  --site-ground: #eef1f8;
  --site-surface: #ffffff;
  --site-ink: #161a28;
  --site-muted: #5b6478;
  --site-line: #d7dce8;
  --site-accent: #3b4fd8;
  --site-accent-ink: #ffffff;
  --site-radius: 14px;
  --site-shell: 68rem;
  --site-gap: 1.5rem;
  --site-section: clamp(3rem, 7vw, 5.5rem);
}

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

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

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  color: var(--site-ink);
  background: var(--site-ground);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.site-shell {
  width: min(100% - 2 * var(--site-gap), var(--site-shell));
  margin-inline: auto;
}

.site-skip {
  position: absolute;
  left: -9999px;
}

.site-skip:focus {
  left: var(--site-gap);
  top: var(--site-gap);
  z-index: 10;
  padding: 0.5rem 0.75rem;
  background: var(--site-surface);
  border-radius: 8px;
}

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

.site-header {
  background: var(--site-surface);
  border-bottom: 1px solid var(--site-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--site-gap);
  min-height: 4rem;
  flex-wrap: wrap;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  text-decoration: none;
}

.site-brand__mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--site-accent);
  color: var(--site-accent-ink);
  font-size: 0.8rem;
  font-weight: 800;
}

.site-nav__list {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.site-nav__link {
  text-decoration: none;
  color: var(--site-muted);
  font-weight: 600;
}

.site-nav__link--current,
.site-nav__link:hover {
  color: var(--site-ink);
}

.site-header__actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

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

.site-button {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
}

.site-button--primary {
  background: var(--site-accent);
  color: var(--site-accent-ink);
}

.site-button--ghost {
  background: transparent;
  border-color: var(--site-line);
  color: var(--site-ink);
}

/* -- hero ------------------------------------------------------------------ */

.site-hero {
  padding-block: var(--site-section);
  background: var(--site-surface);
}

.site-hero__eyebrow {
  margin: 0 0 0.5rem;
  color: var(--site-accent);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.site-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.1;
  max-width: 20ch;
}

.site-hero__lead {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  color: var(--site-muted);
  max-width: 60ch;
}

.site-hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0 0 0.75rem;
}

.site-hero__note {
  margin: 0;
  color: var(--site-muted);
  font-size: 0.9rem;
}

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

.site-section {
  padding-block: var(--site-section);
}

.site-section--sunk {
  background: var(--site-surface);
}

.site-section__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

.site-section__lead,
.site-cta__lead {
  margin: 0 0 1.5rem;
  color: var(--site-muted);
  max-width: 60ch;
}

.site-steps,
.site-stages {
  display: grid;
  gap: var(--site-gap);
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.site-step,
.site-stage {
  padding: 1.25rem;
  background: var(--site-surface);
  border: 1px solid var(--site-line);
  border-radius: var(--site-radius);
}

.site-section--sunk .site-step {
  background: var(--site-ground);
}

.site-step__number,
.site-stage__number {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-right: 0.5rem;
  border-radius: 999px;
  background: var(--site-accent);
  color: var(--site-accent-ink);
  font-size: 0.8rem;
  font-weight: 800;
}

.site-step__title,
.site-stage__title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.site-step__body,
.site-stage__body {
  margin: 0;
  color: var(--site-muted);
}

.site-step__link {
  color: var(--site-accent);
  text-decoration: none;
}

.site-step__link:hover {
  text-decoration: underline;
}

/* -- social proof ---------------------------------------------------------- */

.site-proof {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.site-proof__point {
  position: relative;
  padding: 0.75rem 1rem 0.75rem 2.25rem;
  background: var(--site-ground);
  border: 1px solid var(--site-line);
  border-radius: var(--site-radius);
  color: var(--site-ink);
}

.site-proof__point::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.1rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: var(--site-accent);
}

.site-proof__disclaimer {
  margin: 0;
  color: var(--site-muted);
  font-size: 0.9rem;
}

.site-cta {
  text-align: left;
}

/* -- pricing (QB-71) ------------------------------------------------------- */

.site-notice {
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--site-surface);
  border: 1px solid var(--site-line);
  border-left: 4px solid var(--site-accent);
  border-radius: var(--site-radius);
  color: var(--site-muted);
  max-width: 60ch;
}

.price-plans,
.price-addons {
  display: grid;
  gap: var(--site-gap);
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.price-plan,
.price-addon {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--site-surface);
  border: 1px solid var(--site-line);
  border-radius: var(--site-radius);
}

.price-plan__name,
.price-addon__name {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.price-plan__price,
.price-addon__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}

.price-plan__amount,
.price-addon__amount {
  font-size: 1.75rem;
  font-weight: 800;
}

.price-plan__cadence,
.price-addon__cadence {
  color: var(--site-muted);
}

.price-plan__mark,
.price-addon__mark {
  align-self: center;
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--site-line);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--site-muted);
}

.price-plan__for {
  margin: 0 0 1rem;
  color: var(--site-muted);
}

.price-plan__includes {
  flex: 1;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.price-plan__includes li {
  padding: 0.25rem 0 0.25rem 1.5rem;
  position: relative;
}

.price-plan__includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--site-accent);
  font-weight: 800;
}

.price-addon__body {
  margin: 0;
  color: var(--site-muted);
}

.price-compare__scroll {
  overflow-x: auto;
}

.price-compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--site-surface);
  border: 1px solid var(--site-line);
  border-radius: var(--site-radius);
}

.price-compare__caption {
  caption-side: top;
  text-align: left;
  padding: 0.5rem 0.75rem;
  color: var(--site-muted);
  font-size: 0.9rem;
}

.price-compare th,
.price-compare td {
  padding: 0.6rem 0.75rem;
  border-top: 1px solid var(--site-line);
  text-align: left;
}

.price-compare thead th {
  border-top: 0;
}

.price-compare__yes,
.price-compare__no {
  text-align: center;
  font-weight: 700;
}

.price-compare__yes {
  color: var(--site-accent);
}

.price-compare__no {
  color: var(--site-muted);
}

/* A tick or a dash is decoration for a sighted reader; this carries the same fact
   for a screen reader, so the table does not rely on a symbol or on colour. */
.price-compare__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.site-footer {
  padding-block: 2rem;
  background: var(--site-surface);
  border-top: 1px solid var(--site-line);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: var(--site-gap);
  flex-wrap: wrap;
  align-items: center;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--site-muted);
}

.site-footer__links {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.site-footer__links a {
  text-decoration: none;
  color: var(--site-muted);
}

/* -- the consent banner (QB-73) -------------------------------------------- */

/*
 * The banner is rendered by the consent script, so it is not in the served HTML and
 * a visitor with JavaScript disabled never sees it - which is correct, because with
 * no JavaScript there is no analytics to consent to. It is a fixed bar at the foot of
 * the viewport so it does not push the content, and it is a flat colour so its text
 * contrast is determinable.
 */
.site-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--site-gap);
  background: var(--site-surface);
  border-top: 1px solid var(--site-line);
  box-shadow: 0 -6px 18px rgba(22, 26, 40, 0.08);
}

.site-consent__text {
  margin: 0;
  max-width: 60ch;
  color: var(--site-ink);
}

.site-consent__text a {
  color: var(--site-accent);
}

.site-consent__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.site-consent__actions .site-button {
  cursor: pointer;
  font: inherit;
}

/* -- the privacy notice (QB-73) -------------------------------------------- */

.site-prose {
  max-width: 68ch;
}

.site-prose section + section {
  margin-top: 2rem;
}

.site-prose__title {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

.site-prose__body {
  margin: 0;
  color: var(--site-muted);
}

/* -- the mobile breakpoint ------------------------------------------------- */

@media (max-width: 48rem) {
  .site-header__inner {
    padding-block: 0.75rem;
  }

  .site-header__actions {
    width: 100%;
    margin-left: 0;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
