/* Schema Shield marketing site design system.
   Shared by the landing page (app/routes/_index) and the static pages in
   /public (install, support, privacy, terms). Loaded per-page so these global
   resets never reach the embedded admin app under /app. */

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

:root {
  color-scheme: light;

  /* Brand palette, sampled from the logo (#09366A / #195A99 / #617181). */
  --brand-900: #062748;
  --brand-800: #09366a;
  --brand-700: #0f4a8a;
  --brand-600: #195a99;
  --brand-500: #2b72b8;
  --brand-100: #e6eff9;
  --brand-50: #f2f7fc;
  --accent-400: #5dade2;

  --ink-900: #0b1524;
  --ink-800: #1c2b3f;
  --ink-700: #33445c;
  --ink-600: #4b5c74;
  --ink-500: #64748b;

  --surface: #ffffff;
  --surface-muted: #f6f8fb;
  --line: #e3e8ef;
  --line-strong: #cfd8e3;

  --success-700: #0f6b45;
  --success-50: #e8f6ef;
  --danger-700: #9f1239;
  --danger-50: #fdeaee;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(11, 21, 36, 0.06);
  --shadow-sm: 0 1px 3px rgba(11, 21, 36, 0.08), 0 1px 2px rgba(11, 21, 36, 0.04);
  --shadow-md: 0 6px 16px rgba(11, 21, 36, 0.08), 0 2px 6px rgba(11, 21, 36, 0.05);
  --shadow-lg: 0 18px 44px rgba(6, 39, 72, 0.16), 0 4px 12px rgba(11, 21, 36, 0.06);

  --measure: 68ch;
  --page: 1140px;
  --nav-h: 68px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* ------------------------------------------------------------------ base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  width: 100%;
  overflow-x: hidden;
  background: var(--surface);
  color: var(--ink-700);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  color: var(--ink-900);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 1.35rem + 2.8vw, 3.25rem);
}

h2 {
  font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.1rem);
}

h3 {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

p {
  text-wrap: pretty;
}

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

a {
  color: var(--brand-600);
  text-decoration: none;
}

a:hover {
  color: var(--brand-800);
  text-decoration: underline;
}

code {
  padding: 0.15em 0.4em;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-muted);
  color: var(--ink-800);
  font-family: var(--font-mono);
  font-size: 0.875em;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--brand-800);
  color: #fff;
  font-weight: 600;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
  text-decoration: none;
}

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

/* --------------------------------------------------------------- layout */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding-inline: 24px;
}

@media (max-width: 640px) {
  .wrap {
    padding-inline: 18px;
  }
}

.section {
  padding-block: clamp(56px, 7vw, 96px);
}

.section--muted {
  background: var(--surface-muted);
  border-block: 1px solid var(--line);
}

.section--tight {
  padding-block: clamp(40px, 5vw, 64px);
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(32px, 4vw, 52px);
  text-align: center;
}

.section-subtitle {
  margin-top: 14px;
  color: var(--ink-500);
  font-size: 1.0625rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.eyebrow--on-dark {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(6px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--brand-700);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--brand-800);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--light {
  background: #fff;
  color: var(--brand-800);
  box-shadow: var(--shadow-md);
}

.btn--light:hover {
  color: var(--brand-900);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn--outline {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--ink-800);
}

.btn--outline:hover {
  border-color: var(--brand-500);
  color: var(--brand-700);
  background: var(--brand-50);
}

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn--outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn--lg {
  padding: 16px 34px;
  font-size: 1.0625rem;
}

.btn--block {
  width: 100%;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  background: var(--line-strong);
  color: var(--ink-500);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

/* ------------------------------------------------------------------ nav */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--nav-h);
}

/* The supplied logo is a stacked lockup, so nav bars pair the shield mark with
   a text wordmark; the full lockup is reserved for hero and card headers. */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--brand-800);
}

.brand-lockup:hover {
  text-decoration: none;
}

.brand-lockup img {
  width: auto;
  height: 30px;
}

.brand-lockup span {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.012em;
}

.site-nav__brand {
  margin-right: auto;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

/* :not(.btn) so the nav CTA keeps its button colours — an element+class
   selector would otherwise outrank .btn--primary. */
.site-nav__links a:not(.btn) {
  color: var(--ink-700);
  font-size: 0.9375rem;
  font-weight: 550;
}

.site-nav__links a:not(.btn):hover {
  color: var(--brand-700);
  text-decoration: none;
}

.site-nav__links a[aria-current="page"] {
  color: var(--brand-700);
  font-weight: 650;
}

@media (max-width: 860px) {
  .site-nav__links {
    gap: 18px;
  }

  .site-nav__links li:not(.site-nav__cta) {
    display: none;
  }
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 8vw, 110px);
  background:
    radial-gradient(1000px 460px at 78% -12%, rgba(93, 173, 226, 0.36), transparent 62%),
    radial-gradient(760px 420px at 8% 108%, rgba(15, 74, 138, 0.55), transparent 60%),
    linear-gradient(140deg, var(--brand-800) 0%, var(--brand-600) 100%);
  color: #fff;
  text-align: center;
}

/* Faint grid so the large gradient field doesn't read as flat. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 16ch;
  margin-inline: auto;
  color: #fff;
}

.hero__lede {
  max-width: 58ch;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.hero__fineprint {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.875rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  list-style: none;
}

.hero__trust li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9375rem;
  font-weight: 550;
}

.hero__trust svg {
  flex: 0 0 auto;
  opacity: 0.85;
}

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

.grid {
  display: grid;
  gap: 22px;
}

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

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
  background: var(--brand-100);
  color: var(--brand-700);
}

.card h3 {
  margin-bottom: 8px;
  color: var(--ink-900);
}

.card p {
  color: var(--ink-600);
  font-size: 0.9375rem;
}

.card ul,
.card ol {
  margin-top: 10px;
  padding-left: 20px;
  color: var(--ink-600);
  font-size: 0.9375rem;
}

.card li {
  margin-bottom: 6px;
}

.card li::marker,
.faq__answer li::marker {
  color: var(--brand-500);
}

/* Numbered "how it works" steps. */
.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 30px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: var(--radius-pill);
  background: var(--brand-700);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
}

/* ---------------------------------------------------------------- stats */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  max-width: 940px;
  margin-inline: auto;
}

.stat {
  padding: 30px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
  box-shadow: var(--shadow-xs);
}

.stat__number {
  color: var(--brand-700);
  font-size: clamp(2.25rem, 1.8rem + 2vw, 2.875rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat__label {
  margin-top: 6px;
  color: var(--ink-800);
  font-size: 0.9375rem;
  font-weight: 600;
}

.stat__note {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 0.8125rem;
}

.source-note {
  max-width: 760px;
  margin: 28px auto 0;
  color: var(--ink-500);
  font-size: 0.8125rem;
  text-align: center;
}

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

.pricing-card {
  max-width: 560px;
  margin-inline: auto;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin: 18px 0 6px;
}

.pricing-card__amount {
  color: var(--ink-900);
  font-size: clamp(3rem, 2.4rem + 2.4vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.pricing-card__period {
  color: var(--ink-500);
  font-size: 1.125rem;
  font-weight: 550;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 28px 0;
  text-align: left;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--ink-700);
  font-size: 0.9375rem;
}

.feature-list svg {
  margin-top: 3px;
  color: var(--success-700);
}

/* ------------------------------------------------------------- callouts */

.callout {
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand-600);
  border-radius: var(--radius);
  background: var(--brand-50);
}

.callout h3 {
  margin-bottom: 6px;
}

.callout p + p {
  margin-top: 8px;
}

.callout__meta {
  display: block;
  color: var(--ink-500);
  font-size: 0.875rem;
}

/* ---------------------------------------------------- document / legal */

.doc-hero {
  padding-block: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
}

.doc-hero h1 {
  font-size: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
}

.doc-hero__lede {
  max-width: var(--measure);
  margin-top: 12px;
  color: var(--ink-600);
  font-size: 1.0625rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-600);
  font-size: 0.8125rem;
  font-weight: 550;
}

.doc-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding-block: clamp(40px, 5vw, 64px);
}

@media (max-width: 900px) {
  .doc-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

.doc-toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

@media (max-width: 900px) {
  .doc-toc {
    position: static;
  }
}

.doc-toc h2 {
  margin-bottom: 12px;
  color: var(--ink-500);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc-toc ol {
  display: grid;
  gap: 8px;
  list-style: none;
  counter-reset: toc;
}

.doc-toc li {
  counter-increment: toc;
}

.doc-toc a {
  display: grid;
  grid-template-columns: 1.75em 1fr;
  color: var(--ink-600);
  font-size: 0.875rem;
  line-height: 1.45;
}

/* Mirrors the numbering on the section headings. */
.doc-toc a::before {
  content: counter(toc) ".";
  color: var(--ink-500);
}

.doc-toc a:hover {
  color: var(--brand-700);
  text-decoration: none;
}

.doc-body {
  max-width: var(--measure);
}

.doc-body > section + section {
  margin-top: 40px;
}

.doc-body h2 {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 1.375rem;
}

.doc-body h3 {
  margin: 24px 0 8px;
  color: var(--ink-800);
  font-size: 1.0625rem;
}

.doc-body p,
.doc-body ul,
.doc-body ol {
  margin-bottom: 14px;
}

.doc-body ul,
.doc-body ol {
  padding-left: 22px;
}

.doc-body li {
  margin-bottom: 7px;
}

.doc-body li::marker {
  color: var(--brand-500);
}

.doc-body > section > :last-child {
  margin-bottom: 0;
}

.definition-list {
  display: grid;
  gap: 4px 16px;
  margin-bottom: 14px;
}

@media (min-width: 560px) {
  .definition-list {
    grid-template-columns: max-content 1fr;
  }
}

.definition-list dt {
  color: var(--ink-800);
  font-weight: 600;
}

.definition-list dd {
  color: var(--ink-600);
}

/* ------------------------------------------------------------------ faq */

.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin-inline: auto;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.faq__item[open] {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: var(--ink-900);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary:hover {
  background: var(--surface-muted);
}

.faq__item summary::after {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2px solid var(--ink-500);
  border-bottom: 2px solid var(--ink-500);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.18s ease;
}

.faq__item[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.faq__answer {
  padding: 0 20px 20px;
  color: var(--ink-600);
  font-size: 0.9375rem;
}

.faq__answer > * + * {
  margin-top: 10px;
}

.faq__answer ul,
.faq__answer ol {
  padding-left: 20px;
}

.faq__answer li {
  margin-bottom: 6px;
}

/* -------------------------------------------------------- install form */

.auth-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--nav-h));
  padding: clamp(32px, 5vw, 64px) 20px;
  background:
    radial-gradient(760px 380px at 50% -10%, rgba(93, 173, 226, 0.18), transparent 65%),
    var(--surface-muted);
}

.auth-card {
  width: 100%;
  max-width: 460px;
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.auth-card h1 {
  font-size: 1.75rem;
}

.auth-card__lede {
  margin-top: 8px;
  color: var(--ink-600);
}

.field {
  margin-top: 24px;
  text-align: left;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-800);
  font-size: 0.875rem;
  font-weight: 600;
}

.field input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-900);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder {
  color: #9aa7b8;
}

.field input:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(43, 114, 184, 0.16);
}

.field__hint {
  margin-top: 7px;
  color: var(--ink-500);
  font-size: 0.8125rem;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid #f5c2cd;
  border-radius: var(--radius-sm);
  background: var(--danger-50);
  color: var(--danger-700);
  font-size: 0.875rem;
}

.alert:empty {
  display: none;
}

.alert svg {
  flex: 0 0 auto;
  margin-top: 2px;
}

/* Small print under a primary action, on both the install card and pricing. */
.fineprint {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-500);
  font-size: 0.8125rem;
  line-height: 1.6;
  text-align: center;
}

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

.site-footer {
  padding-block: 56px 32px;
  border-top: 1px solid var(--line);
  background: var(--ink-900);
  color: rgba(255, 255, 255, 0.72);
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 640px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

.site-footer__brand .brand-lockup {
  margin-bottom: 14px;
  color: #fff;
}

.site-footer__brand .brand-lockup img {
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.site-footer__brand p {
  max-width: 34ch;
  font-size: 0.875rem;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

.site-footer h2 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer ul {
  display: grid;
  gap: 10px;
  list-style: none;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: none;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 24px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8125rem;
}

/* Single-line footer for the install page, which has no secondary navigation. */
.site-footer--slim {
  padding-block: 24px;
}

.site-footer--slim .site-footer__bottom {
  padding-top: 0;
}

/* -------------------------------------------------- motion and printing */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-nav,
  .site-footer,
  .doc-toc,
  .skip-link {
    display: none !important;
  }

  body {
    color: #000;
  }

  .doc-layout {
    display: block;
  }

  .doc-body {
    max-width: none;
  }

  .faq__answer {
    display: block !important;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    word-break: break-all;
  }
}

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

.billing-toggle-row {
  margin-bottom: clamp(28px, 3vw, 40px);
  text-align: center;
}

.billing-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

/* Equal-width segments. Left to size themselves, "Monthly" and
   "Annual 2 months free" differ by nearly 2x and the control reads lopsided. */
.billing-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 0 auto;
  min-width: 172px;
  padding: 10px 20px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-600);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.billing-toggle button:hover:not(.is-active) {
  color: var(--brand-700);
  background: var(--brand-50);
}

.billing-toggle button.is-active {
  background: var(--brand-700);
  color: #fff;
}

/* The saving reads as a badge rather than trailing grey text. */
.billing-toggle button span {
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--success-50);
  color: var(--success-700);
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.billing-toggle button.is-active span {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

@media (max-width: 460px) {
  .billing-toggle {
    width: 100%;
  }

  .billing-toggle button {
    min-width: 0;
    flex: 1 1 0;
    padding: 10px 12px;
  }
}

.pricing-grid {
  max-width: 880px;
  margin-inline: auto;
}

.pricing-tier {
  position: relative;
  padding: clamp(26px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.pricing-tier--featured {
  border-color: var(--brand-500);
  box-shadow: var(--shadow-lg);
}

.pricing-tier__flag {
  position: absolute;
  top: -13px;
  left: clamp(26px, 3vw, 36px);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--brand-700);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.pricing-tier h3 {
  font-size: 1.375rem;
}

.pricing-tier__tagline {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 0.9375rem;
}

.pricing-tier .pricing-card__price {
  justify-content: flex-start;
  margin: 18px 0 2px;
}

.pricing-tier__note {
  color: var(--ink-500);
  font-size: 0.875rem;
}

/* Tiers sit side by side with differing feature counts, so the card stretches
   and the call to action is pinned to the bottom — otherwise the two buttons
   land at different heights. */
.pricing-grid {
  align-items: stretch;
}

.pricing-tier {
  display: flex;
  flex-direction: column;
}

.pricing-tier .feature-list {
  flex: 1 0 auto;
}
