/* Countersigned public site: one stylesheet for every public page (plan rev. 23, the approved
   v2 design in design-review/site-v2.css). Served from /site/site.css with a version query.
   Inter is self-hosted (public/site/fonts, SIL Open Font License in OFL.txt): no third-party
   requests, so visitors' addresses never go to a font service.
   Changes from the review file: label grey darkened to #5B6B80 and ticks to the action green,
   for WCAG AA contrast; visible focus on every link; styles for the legal, help, contact and
   sign-up pages; small layout helpers that replace the old inline style attributes. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/site/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/site/fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/site/fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/site/fonts/inter-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/site/fonts/inter-latin-800-normal.woff2") format("woff2");
}


:root {
  /* Brand (unchanged) */
  --ink: #14284B;          /* header, brand navy */
  --signed: #1E9E6A;       /* accent green: ticks, accent bars */
  --action: #157A51;       /* primary button green */
  --signed-navy: #3CC48B;  /* green on dark backgrounds */
  --page: #F7F8FA;         /* page background */
  --surface: #FFFFFF;
  /* Refined neutrals */
  --heading: #0F172A;      /* slate-900 */
  --body: #475569;         /* slate-600 */
  --label: #5B6B80;        /* review used slate-400 (#94A3B8), 2.6:1; this is 5.4:1 on white (WCAG AA) */
  --line: #E2E8F0;         /* slate-200 */
  --line-soft: #F1F5F9;    /* slate-100 */
  --row-hover: rgba(248, 250, 252, .8); /* slate-50/80 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, .05);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, .08), 0 2px 4px -2px rgba(15, 23, 42, .05);
  --radius: 12px;
  --radius-btn: 8px;
  --pending-bg: #FDF1DC;
  --pending: #8A5300;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--body);
  font: 16px/1.6 "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--action); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
header.site { background: var(--ink); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .06); }
header.site .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; flex-wrap: wrap; }
header.site img { height: 26px; width: auto; display: block; }
header.site nav { display: flex; gap: 6px; margin-left: auto; align-items: center; flex-wrap: wrap; }
header.site nav a:not(.btn) {
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-btn);
  transition: color .15s ease, background-color .15s ease;
}
header.site nav a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .06); }
header.site nav .btn { margin-left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-btn);
  padding: 10px 20px;            /* py-2.5 px-5 */
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter .15s ease, transform .1s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 2px solid var(--signed-navy); outline-offset: 2px; }
.btn-primary { background: var(--action); color: #fff; box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-primary:hover { color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
header.site .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .35); }

/* ---------- Typography ---------- */
main { padding: 64px 0 88px; }

h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--heading);
  margin: 0 0 20px;
  max-width: 820px;
}
h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--heading);
  margin: 80px 0 32px;           /* mb-8 */
}
h3 {
  font-size: 17px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--heading);
  margin: 0 0 8px;
}
p { margin: 0 0 12px; }
.lead { font-size: 19px; line-height: 1.6; color: var(--body); max-width: 720px; }
.muted { color: var(--body); }
.fine { font-size: 14px; color: var(--label); }

/* ---------- Grids and cards ---------- */
.grid { display: grid; gap: 20px; }
.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px;                  /* between p-6 and p-8 */
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .muted { font-size: 15px; }

/* Step numbers ("How it works") */
.check { color: var(--signed); font-weight: 700; }
.step h3 { display: flex; align-items: center; gap: 12px; }
.step h3 .check {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(30, 158, 106, .1);
  color: var(--action);
  font-size: 14px;
  font-weight: 700;
}

/* ---------- Problem / solution cards ---------- */
.ps { grid-template-rows: auto auto; }
.ps-card { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 20px; }
.problem { color: var(--heading); font-size: 17px; font-weight: 500; margin: 0; }
.problem span, .fix span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.problem span { color: var(--label); }
.fix {
  position: relative;
  color: var(--heading);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.5;
  margin: 0;
  padding-left: 18px;
  align-self: start;
}
.fix::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  border-radius: 9999px;          /* rounded-full */
  background: var(--signed);
}
.fix span { color: var(--signed); }

/* ---------- Tick lists ---------- */
ul.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
ul.ticks li { display: flex; align-items: flex-start; gap: 12px; color: var(--body); font-size: 15px; line-height: 1.55; }
ul.ticks li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 9999px;
  background: rgba(30, 158, 106, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23157A51' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.why ul.ticks { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); column-gap: 32px; }

/* ---------- Pricing cards ---------- */
.plans { align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; padding: 32px; }
.plan h3 { font-size: 18px; margin: 0; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin: 16px 0 4px; }
.plan .amount { font-size: 40px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; color: var(--heading); }
.plan .per { font-size: 15px; font-weight: 500; color: var(--label); }
.plan .sub { font-size: 14px; color: var(--label); margin: 0 0 24px; }
.plan ul.ticks { padding-top: 24px; border-top: 1px solid var(--line-soft); margin-bottom: 28px; }
.plan .cta { margin-top: auto; }
.plan .cta .btn { width: 100%; }
.plan.featured { border-color: rgba(21, 122, 81, .55); box-shadow: 0 0 0 1px rgba(21, 122, 81, .55), var(--shadow-md); }
.badge {
  position: absolute;
  top: -12px;
  left: 32px;
  background: var(--action);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  padding: 4px 10px;
  border-radius: 9999px;
  box-shadow: var(--shadow-sm);
}
/* Home page's compact pricing preview */
.plan-mini .amount { font-size: 34px; }
.plan-mini { padding: 28px; }

/* ---------- Comparison table ---------- */
.table-card { padding: 0; overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--surface); }
th, td { padding: 14px 20px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--line-soft); }
thead th { font-size: 13px; font-weight: 600; color: var(--heading); background: #FBFCFD; border-bottom: 1px solid var(--line); }
thead th:not(:first-child), td:not(:first-child) { text-align: center; width: 120px; }
tbody tr { transition: background-color .12s ease; }
tbody tr:hover { background: var(--row-hover); }
tbody tr:last-child td { border-bottom: 0; }
td { color: var(--body); }
td.check, td .check { color: var(--action); font-weight: 700; font-size: 16px; }
td .muted { color: var(--label); }
tr.group th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--label);
  background: #FBFCFD;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: 12px;
  padding-bottom: 12px;
}
tr.group:hover { background: transparent; }

/* ---------- Trust banner ---------- */
.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  margin-top: 48px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.trust-item { display: flex; gap: 14px; align-items: flex-start; padding: 22px 24px; }
.trust-item + .trust-item { border-left: 1px solid var(--line-soft); }
.trust-icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(30, 158, 106, .1);
  color: var(--action);
}
.trust-icon svg { width: 18px; height: 18px; }
.trust-item strong { display: block; color: var(--heading); font-size: 15px; font-weight: 650; line-height: 1.35; margin-bottom: 2px; }
.trust-item span { display: block; color: var(--body); font-size: 14px; line-height: 1.5; }
@media (max-width: 760px) { .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line-soft); } }

/* ---------- FAQ ---------- */
.faq { gap: 16px; }
.faq .card h3 { font-size: 16px; }

/* ---------- Misc ---------- */
.banner { background: var(--pending-bg); color: var(--pending); padding: 12px 16px; border-radius: var(--radius-btn); font-weight: 600; margin-bottom: 24px; }
.textlink { font-weight: 600; text-decoration: none; }
.textlink::after { content: " \2192"; }
.textlink:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--line); background: var(--surface); padding: 32px 0; font-size: 14px; color: var(--label); }
footer.site .wrap { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
footer.site a { color: var(--body); text-decoration: none; }
footer.site a:hover { color: var(--heading); }

/* ---------- Forms (contact, sign-up) ---------- */
label { display: block; font-weight: 600; font-size: 14px; color: var(--heading); margin: 16px 0 6px; }
input, textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  font: inherit;
  color: var(--heading);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px rgba(21, 122, 81, .15); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 640px) {
  main { padding: 40px 0 64px; }
  h1 { font-size: 34px; }
  h2 { font-size: 24px; margin: 56px 0 24px; }
  .lead { font-size: 17px; }
  .card, .plan { padding: 24px; }
  th, td { padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .btn:active { transform: none; }
}

/* ---------- Focus (keyboard) ---------- */
a:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; border-radius: 4px; }
header.site a:focus-visible { outline-color: var(--signed-navy); }
.btn-primary:focus-visible, .btn-outline:focus-visible { outline-color: var(--action); }
header.site .btn:focus-visible { outline-color: var(--signed-navy); }
button:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }

/* ---------- Layout helpers (replace inline styles) ---------- */
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.after { margin-top: 20px; }
.after-lg { margin-top: 48px; }
.narrow { max-width: 640px; }
.push { margin-left: auto; }

/* ---------- Legal pages (Markdown from the settings) ---------- */
.legal h2 { font-size: 22px; margin: 32px 0 12px; }
.legal h3 { font-size: 17px; margin: 24px 0 8px; }
.legal h2:first-child, .legal h3:first-child { margin-top: 0; }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 12px; }
.legal li { margin: 4px 0; }
/* Nov 4: the legal text's own tables (Privacy Section 1, DPA Section 2, Terms Annex 2), not the
   pricing table's centred 120px columns. Fixed layout, so the columns share the width. */
.legal table { table-layout: fixed; width: 100%; margin: 0 0 16px; border: 1px solid var(--line); }
.legal table th, .legal table td { width: auto; text-align: left; vertical-align: top; overflow-wrap: anywhere; border-bottom: 1px solid var(--line-soft); }
.legal table th:first-child, .legal table td:first-child { width: 22%; font-weight: 600; }
.legal table tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  /* On a phone the table scrolls sideways inside the card instead of squeezing its columns. */
  .legal table { display: block; overflow-x: auto; table-layout: auto; }
  .legal table th, .legal table td { min-width: 160px; }
}

/* ---------- Help pages ---------- */
.help { max-width: 820px; }
.help h2 { margin: 56px 0 20px; }
.help ul, .help ol { padding-left: 22px; }
.help ol.steps > li { margin: 0 0 16px; }
.help li { margin: 6px 0; }
.help .see { display: block; color: var(--body); font-size: 15px; margin-top: 4px; }
.help .see::before { content: "You should see: "; font-weight: 700; color: var(--action); }
.help code { background: var(--line-soft); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; font-size: 14px; color: var(--heading); }
.help dt { font-weight: 700; color: var(--heading); margin-top: 20px; }
.help dd { margin: 6px 0 0; }
/* Rev. 35: the Desktop guide's "To get started" and its steps. */
.help h2.big { font-size: 34px; margin-top: 72px; }
.help h3 { margin: 40px 0 12px; }
.help h4 { font-size: 17px; color: var(--heading); margin: 28px 0 8px; }

/* ---------- Sign-up (closed) ---------- */
.notice { max-width: 560px; }
.notice h1 { font-size: 34px; }
