@import url("/assets/tokens.css");
/* Public site — semantic HTML only (no class hooks). */

:root {
  --bg: #ffffff;
  --surface: #f8f9fa;
  --ink: #0a0a0a;
  --secondary: #3c4043;
  --muted: #5f6368;
  --line: #dadce0;
  --line-strong: #bdc1c6;
  --red: #e10600;
  --red-soft: #fce8e6;
  --focus: #1a73e8;
  --sans: "Sora", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
  --radius: 0.5rem;
  --wide: 1000px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

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

html {
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  min-height: 100vh;
  font: 1rem/1.55 var(--sans);
  color: var(--ink);
  background: var(--bg);
}

body > a.skip,
body > a:first-child {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  min-height: 48px;
  z-index: 20;
  text-decoration: none;
  font-weight: 600;
}
body > a.skip:focus,
body > a.skip:focus-visible,
body > a:first-child:focus,
body > a:first-child:focus-visible { top: 0.75rem; }

a { color: var(--red); text-underline-offset: 0.15em; }
a:hover { color: #b00500; }
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 0.15rem;
}

code, pre { font-family: var(--mono); font-size: 0.875em; }
code {
  background: var(--surface);
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
}

main {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* â€”â€” Site chrome header only (not page titles inside main) â€”â€” */
body > header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.5rem, 2vw, 1rem);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 0.75rem 0;
  box-sizing: border-box;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

body > header > p {
  margin: 0;
  flex: 0 0 auto;
}

body > header > p > a {
  color: var(--ink);
  font-weight: 700;
  font-size: clamp(0.92rem, 2.8vw, 1.25rem);
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

body > header > p > a strong { color: var(--red); font-weight: 700; }

body > header nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  margin-left: auto;
  min-width: 0;
}

body > header nav a {
  color: var(--secondary);
  font-size: clamp(0.62rem, 2vw, 0.875rem);
  font-weight: 500;
  text-decoration: none;
  padding: 0.45rem clamp(0.12rem, 0.7vw, 0.55rem);
  min-height: 44px;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 0;
  white-space: nowrap;
  flex: 0 0 auto;
  background: none;
}

body > header nav a:hover,
body > header nav a:last-child:hover {
  background: none;
  color: var(--secondary);
}

body > header nav a[aria-current="page"],
body > header nav a[aria-current="page"]:hover {
  background: none;
  color: var(--red);
}

body > header nav a:last-child {
  margin-left: 0;
  padding-inline: clamp(0.12rem, 0.7vw, 0.55rem);
  background: none;
  color: var(--secondary);
  font-weight: 500;
}

/* â€”â€” Footer (full-bleed, classless) â€”â€” */
footer {
  width: calc(100% + 3rem);
  max-width: none;
  margin: clamp(3.5rem, 8vw, 6rem) -1.5rem 0;
  padding: 0;
  color: #e8eaed;
  background:
    linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
  border-top: 3px solid var(--red);
  position: relative;
  overflow: clip;
  box-sizing: border-box;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: min(28rem, 55%);
  height: 1px;
  background: linear-gradient(90deg, var(--red), transparent);
  opacity: 0.85;
  pointer-events: none;
}

footer > div:first-child {
  width: min(var(--wide), calc(100% - 2rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.7fr));
  gap: clamp(1.75rem, 4vw, 3rem);
  padding: clamp(2.75rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 2.75rem);
  position: relative;
  z-index: 1;
  align-items: start;
}

footer > div:first-child > section {
  padding: 0;
  max-width: 22rem;
}

footer > div:first-child > section > p:first-child {
  margin: 0 0 1.15rem;
}

footer > div:first-child > section > p:first-child > a {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}

footer > div:first-child > section > p:first-child > a strong {
  color: var(--red);
  font-weight: 700;
}

footer > div:first-child > section > p:nth-child(2) {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.45;
  max-width: none;
}

footer nav h2 {
  margin: 0 0 0.85rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9aa0a6;
  line-height: 1.2;
}

footer nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 1fr;
  max-width: none;
}

footer nav li {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0;
  display: block;
}

footer nav a {
  color: #e8eaed;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  display: inline-block;
  padding: 0.15rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

footer nav a:hover {
  color: #fff;
  border-bottom-color: var(--red);
}

footer > div:last-child {
  width: min(var(--wide), calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.15rem 0 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

footer > div:last-child p {
  margin: 0;
  max-width: none;
  color: #9aa0a6;
  font-size: 0.8125rem;
}

footer > div:last-child small {
  font-size: inherit;
  letter-spacing: 0.01em;
}

@media (max-width: 900px) {
  footer > div:first-child {
    grid-template-columns: 1fr 1fr;
  }

  footer > div:first-child > section {
    grid-column: 1 / -1;
    max-width: 36rem;
  }
}

@media (max-width: 560px) {
  footer > div:first-child,
  footer > div:last-child {
    width: min(var(--wide), calc(100% - 1.25rem));
  }

  footer > div:first-child {
    grid-template-columns: 1fr;
  }
}

/* â€”â€” Main defaults â€”â€” */
main {
  padding: 1.75rem 1.5rem 0;
  display: block;
}

main h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 18ch;
  text-wrap: balance;
}

main h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

main h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

main > section,
main > article {
  padding: 0 0 clamp(2.5rem, 6vw, 4rem);
}

main > hr {
  height: 1px;
  border: 0;
  margin: 0 0 clamp(2rem, 5vw, 3rem);
  background: var(--line);
}

/* Hero: first section or header inside main */
main > section:first-child,
main > header:first-child,
main > article:first-of-type {
  padding-top: clamp(2.5rem, 7vw, 5rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  max-width: 48rem;
}

main > section:first-child > p:first-child,
main > header:first-child > p:first-child,
main > article:first-of-type > p:first-child {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

main > section:first-child > p:nth-of-type(2),
main > header:first-child > p:nth-of-type(2),
main p:where(:not(:has(+ *)) ) {
  /* fallback handled below */
}

main > section:first-child p,
main > header:first-child p,
main > article:first-of-type > p {
  color: var(--secondary);
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 40rem;
  font-weight: 400;
}

main > section:first-child > p > a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 600;
}

/* Prose blocks */
main section > p,
main article > p,
main > p {
  color: var(--secondary);
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 40rem;
}

/* Features as a long-read */
main:has(> article) > article {
  max-width: 40rem;
}

main:has(> article) > article h2 {
  margin: 2.35rem 0 0.7rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

main:has(> article) > article h2 + p {
  margin-top: 0;
}

main:has(> article) > article h3 {
  margin: 1.85rem 0 0.55rem;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

main:has(> article) > article h4 {
  margin: 1.65rem 0 0.45rem;
  font-size: 1rem;
  font-weight: 600;
}

main:has(> article) > article h4 + p {
  margin-top: 0.35rem;
}

main:has(> article) > article pre {
  max-width: 100%;
}

/* Two-column product cards */
main section > div:has(> article) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

main section > div > article {
  margin: 0;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

main section > div > article h3 {
  margin: 0 0 0.55rem;
}

main section > div > article p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--secondary);
  line-height: 1.6;
  flex: 1;
}

/* Numbered steps */
main ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
  max-width: 42rem;
  counter-reset: step;
}

main ol > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: var(--secondary);
  min-width: 0;
  box-sizing: border-box;
}

main ol > li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  font-size: 0.8125rem;
  font-weight: 700;
}

main ol > li strong { color: var(--ink); }

/* Closing CTA band â€” full-width card, not a status banner */
main > section:last-of-type > aside:not([role="status"]) {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  max-width: none;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

main > section:last-of-type > aside:not([role="status"]) > h2 {
  margin-top: 0;
}

main > section:last-of-type > aside:not([role="status"]) > p {
  max-width: 40rem;
}

/* Primary action links */
main nav[aria-label="Get started"],
html[data-page="home"] main nav {
  margin-top: 1.5rem;
}

main nav[aria-label="Get started"] a,
html[data-page="home"] main nav a[href="/pricing"],
main form button[type="submit"],
main form button:not([type]),
#paypalRekeyBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.5rem;
  background: var(--red);
  border: 1px solid var(--red);
  color: #fff;
  font: 700 1rem var(--sans);
  text-decoration: none;
  border-radius: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}

main nav[aria-label="Get started"] a:hover,
html[data-page="home"] main nav a[href="/pricing"]:hover,
main form button[type="submit"]:hover:not(:disabled),
#paypalRekeyBtn:hover:not(:disabled) {
  background: #c80500;
  border-color: #c80500;
  color: #fff;
}

main form button:disabled,
main form input:disabled,
#paypalRekeyBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Code samples */
main pre {
  background: #202124;
  border: 1px solid #3c4043;
  color: #e8eaed;
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  overflow-x: auto;
  max-width: 100%;
  font-size: 0.8125rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

main pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
  white-space: inherit;
}

main pre [data-comment] {
  color: #8ab4f8;
  font-style: italic;
}

main pre [data-note] {
  color: #81c995;
  font-style: italic;
}

main details {
  margin-top: 0.85rem;
  color: var(--muted);
}

main details pre {
  margin-top: 0.75rem;
}

main summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
}

/* Feature catalog cards (li with a title + blurb) */
main section > ul:has(> li > h3) {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  align-items: stretch;
}

main section > ul:has(> li > h3) > li {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  box-sizing: border-box;
}

main section > ul:has(> li > h3) > li h3 {
  margin: 0 0 0.45rem;
}

main section > ul:has(> li > h3) > li p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
  flex: 1;
}

/* Plain measure / fact lists — not Help category cards */
main section > ul:not(#helpCats):not(#helpHits):not(:has(> li > h3)) {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 28rem;
  border-top: 1px solid var(--line);
}

main section > ul:not(#helpCats):not(#helpHits):not(:has(> li > h3)) > li {
  margin: 0;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  background: none;
  border-radius: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
}

/* Status notes only â€” do not style CTA asides */
main aside[role="status"],
main [role="status"] {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  color: var(--ink);
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  margin: 1rem 0 0;
  max-width: 40rem;
}

/* â€”â€” Pricing layout â€”â€” */
html[data-page="features"] main,
html[data-page="pricing"] main,
html[data-page="help"] main {
  padding-top: clamp(2.25rem, 6vw, 4.25rem);
  padding-bottom: clamp(3rem, 8vw, 5.5rem);
}

html[data-page="features"] main > article:first-of-type,
html[data-page="pricing"] main > article:first-of-type,
html[data-page="help"] main > header {
  max-width: 40rem;
  padding-top: 0;
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

html[data-page="features"] main h1,
html[data-page="pricing"] main h1,
html[data-page="help"] main h1 {
  margin: 0 0 1.75rem;
  max-width: 18ch;
  font-size: clamp(2.15rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

html[data-page="features"] main > article:first-of-type > p:first-child,
html[data-page="pricing"] main > article:first-of-type > p:first-child,
html[data-page="help"] main > header > p:first-child {
  margin: 0 0 0.7rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

html[data-page="features"] main > article:first-of-type > p:not(:first-child),
html[data-page="pricing"] main > article:first-of-type > p:not(:first-child),
html[data-page="help"] main > header > p:not(:first-child) {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--secondary);
  max-width: 40rem;
  font-weight: 400;
}

html[data-page="features"] main > article {
  max-width: 44rem;
}

/* — Pricing layout — */
main:has(> #pricingForm) {
  display: block;
  padding-top: clamp(2.25rem, 6vw, 4.25rem);
  padding-bottom: clamp(3rem, 8vw, 5.5rem);
}

main:has(> #pricingForm) > article {
  padding: 0;
  max-width: 40rem;
}

#pricingForm {
  margin: 0;
  padding: clamp(1.35rem, 3vw, 1.85rem);
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 1.5rem 2.5rem;
  align-items: start;
  position: static;
  box-shadow: none;
}

#pricingForm > section {
  padding: 0;
  margin: 0;
  max-width: none;
}

#pricingForm > section h2 {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

#pricingForm fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

#pricingForm legend {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  width: 100%;
  font-weight: 600;
  margin-bottom: 0.35rem;
  padding: 0;
}

#pricingForm fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  cursor: pointer;
}

#pricingForm fieldset label:has(input:checked) {
  border-color: var(--red);
  background: var(--red-soft);
  color: var(--red);
}

#pricingForm > section:first-of-type {
  display: grid;
  gap: 1rem;
}

#pricingForm > section > p:nth-of-type(1) {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

#pricingForm > section > p:nth-of-type(2) {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

#pricingForm > section > p:nth-of-type(2) strong {
  font-size: clamp(2.15rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  font-weight: 700;
}

#pricingForm > section > p:nth-of-type(2) span {
  color: var(--muted);
  font-size: 0.875rem;
}

#planSaveLabel {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

#pricingForm > section > label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--secondary);
}

#pricingForm input[type="range"] {
  width: 100%;
  margin-top: 0.5rem;
  accent-color: var(--red);
}

#pricingForm > section ul {
  list-style: none;
  padding: 0.85rem 0 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
  border-top: 1px solid var(--line);
}

#pricingForm > section:first-of-type ul {
  border-top: 1px solid var(--line);
}

#pricingForm > section:last-of-type ul {
  padding-top: 0;
  border-top: 0;
}

#pricingForm > section ul li {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--secondary);
  background: none;
  border-radius: 0;
}

#pricingForm > section:first-of-type ul li {
  border-bottom: 0;
  padding: 0.15rem 0;
}

#pricingForm > section:first-of-type ul strong {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}

#pricingForm > section:first-of-type ul span {
  color: var(--muted);
}

#pricingForm > section:last-of-type ul li:last-child { border-bottom: 0; }

#pricingForm button[type="submit"] {
  width: 100%;
  margin-top: 0.25rem;
}

#pricingError {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0;
}

/* â€”â€” Login â€”â€” */
html[data-page="login"] main {
  max-width: 26rem;
  margin-inline: auto;
  padding: clamp(4rem, 12vh, 6rem) 0 4rem;
}

html[data-page="login"] main > div > p:first-child {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

html[data-page="login"] main > div > h1 {
  margin: 0 0 1.15rem;
}

#loginForm {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

#loginForm label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--secondary);
}

#loginForm input {
  width: 100%;
  margin-top: 0.4rem;
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

#loginForm input:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

#loginForm button { width: 100%; }

html[data-page="login"] main p:has(> #paypalRekeyBtn) {
  margin-top: 1rem;
}

html[data-page="login"] main #paypalRekeyBtn {
  width: 100%;
}

/* â€”â€” Help â€”â€” */
#helpQ {
  width: min(36rem, 100%);
  margin: 0.5rem 0 0.35rem;
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font: 1rem var(--sans);
}

#helpHits {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 36rem;
}

#helpHits li {
  border-bottom: 1px solid var(--line);
  padding: 0;
  background: none;
  border-radius: 0;
}

#helpHits li:last-child { border-bottom: 0; }

#helpHits a {
  display: block;
  padding: 0.55rem 0.7rem;
  color: var(--ink);
  text-decoration: none;
}

#helpHits a:hover { color: var(--red); }

#helpHits li:not(:has(a)) {
  padding: 0.55rem 0.7rem;
  color: var(--muted);
}

#helpCats {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  align-items: stretch;
}

#helpCats li {
  padding: 0;
  background: none;
  border: 0;
  min-width: 0;
  height: 100%;
}

#helpCats a {
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 3.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  box-sizing: border-box;
}

html[data-page="help"] main {
  overflow-wrap: anywhere;
}

html[data-page="help"] main > header {
  margin: 0 0 1.75rem;
  border: 0;
  background: none;
}

html[data-page="help"] main > div {
  max-width: 40rem;
}

html[data-page="help"] main > section {
  max-width: none;
  padding: 0 0 1.75rem;
  border: 0;
  background: none;
}

html[data-page="help"] main > section h2 {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

html[data-page="help"] main > section:not(#helpBrowse) {
  text-align: left;
}

html[data-page="help"] main > section > label[for="helpQ"] {
  display: block;
  position: static;
  width: auto;
  height: auto;
  margin: 0 0 0.4rem;
  clip: auto;
  overflow: visible;
  white-space: normal;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

html[data-page="help"] #helpQ {
  display: block;
  width: 100%;
  max-width: 40rem;
  margin: 0.4rem 0 0;
  min-height: 48px;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  font: 1rem/1.4 var(--sans);
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
}

html[data-page="help"] #helpQ:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

html[data-page="help"] #helpHits {
  width: 100%;
  max-width: 40rem;
  margin: 0.5rem 0 0;
  border: 0;
  border-top: 1px solid var(--ink);
  border-radius: 0;
  text-align: left;
}

html[data-page="help"] #helpHits a,
html[data-page="help"] #helpHits li:not(:has(a)) {
  padding: 0.75rem 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  font-weight: 500;
}

html[data-page="help"] #helpCats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.25rem 0 0;
  max-width: none;
  width: 100%;
  border: 0;
}

html[data-page="help"] #helpCats li {
  display: block;
  height: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--bg);
}

html[data-page="help"] #helpCats a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.35rem;
  width: 100%;
  height: 100%;
  min-height: 48px;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
}

html[data-page="help"] #helpCats span {
  display: block;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--muted);
}

html[data-page="help"] #helpCats li:hover {
  border-color: var(--red);
}

html[data-page="help"] #helpCats a:hover {
  border: 0;
  color: var(--red);
}

@media (min-width: 640px) {
  html[data-page="help"] #helpCats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
  }
}


main > nav[aria-label="Breadcrumb"] {
  margin: 0 0 0.75rem;
}

main > nav[aria-label="Breadcrumb"] ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
  max-width: none;
  counter-reset: none;
}

main > nav[aria-label="Breadcrumb"] li {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  grid-template-columns: none;
  color: var(--muted);
  font-size: 0.9rem;
}

main > nav[aria-label="Breadcrumb"] li::before { content: none; }

main > nav[aria-label="Breadcrumb"] li:not(:last-child)::after {
  content: " / ";
  color: var(--line-strong);
}

main > nav[aria-label="Breadcrumb"] a {
  color: var(--muted);
  text-decoration: none;
}

main > nav[aria-label="Breadcrumb"] [aria-current="page"] {
  color: var(--ink);
}

/* Help category / related topic indexes */
#helpTopics,
#helpRelated {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 44rem;
  border-top: 1px solid var(--line);
}

#helpTopics > li,
#helpRelated > li {
  border-bottom: 1px solid var(--line);
  padding: 0;
  background: none;
  border-radius: 0;
}

#helpTopics a,
#helpRelated a {
  display: block;
  padding: 0.85rem 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

#helpTopics a:hover,
#helpRelated a:hover {
  color: var(--red);
}

main > ul:not(#helpCats):not(#helpHits):not(#helpTopics):not(#helpRelated) {
  max-width: 44rem;
  padding-left: 1.2rem;
  color: var(--secondary);
  line-height: 1.55;
}

main > ul:not(#helpCats):not(#helpHits):not(#helpTopics):not(#helpRelated) > li {
  margin: 0.35rem 0;
  padding: 0;
  border: 0;
  background: none;
}

/* Billing return key row */
#accessKey {
  font-size: 1rem;
}

#copyKey {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 1rem;
  margin-left: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font: 600 0.875rem var(--sans);
  border-radius: 1.5rem;
  cursor: pointer;
}

#copyKey:hover {
  border-color: var(--red);
  color: var(--red);
}

main > section:first-child nav[aria-label="Get started"] {
  margin-top: 1.75rem;
}

main > section:first-child > p:has(> small),
main > section:last-of-type > aside > p:has(> small) {
  margin-top: 0.85rem;
  max-width: 36rem;
}

main > section:first-child small,
main > section:last-of-type > aside small {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

/* FAQ */
main dl {
  margin: 0;
  padding: 0;
  max-width: 40rem;
  border-top: 1px solid var(--line);
}

main dl > div {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

main dt {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}

main dd {
  margin: 0;
  color: var(--secondary);
  font-size: 1rem;
  line-height: 1.6;
}

/* Landing: hero only (site header and footer match all public pages) */
html[data-layout="landing"]:not([data-page="home"]) main > section {
  padding-bottom: clamp(3rem, 7vw, 4.5rem);
}

html[data-layout="landing"]:not([data-page="home"]) main > section:first-child {
  min-height: min(72vh, 36rem);
  padding-top: clamp(3.5rem, 9vw, 6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 42rem;
}

/* Motion */
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

main > section:first-child > *,
main > header:first-child > *,
main > article:first-of-type > * {
  animation: rise 0.45s var(--ease) both;
}

main > section:first-child > *:nth-child(1),
main > header:first-child > *:nth-child(1) { animation-delay: 0.02s; }
main > section:first-child > *:nth-child(2),
main > header:first-child > *:nth-child(2) { animation-delay: 0.08s; }
main > section:first-child > *:nth-child(3),
main > header:first-child > *:nth-child(3) { animation-delay: 0.14s; }

@media (prefers-reduced-motion: reduce) {
  main > section:first-child > *,
  main > header:first-child > *,
  main > article:first-of-type > * {
    animation: none !important;
  }
}

html[data-page="home"] ::selection {
  background: var(--red);
  color: #fff;
}

html[data-page="home"] body {
  padding-left: 0;
  padding-right: 0;
  --home-inset: max(1.5rem, calc((100% - 1000px) / 2 + 1.5rem));
}

html[data-page="home"] body > header {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: var(--home-inset);
  padding-right: var(--home-inset);
}

html[data-page="home"] main#content {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
}

html[data-page="home"] main > section {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 5.5rem var(--home-inset);
}

html[data-page="home"] main > section:first-of-type {
  width: 100%;
  max-width: none;
  min-height: calc(100dvh - 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

html[data-page="home"] main > section:first-of-type > h1 {
  margin: 0;
  max-width: none;
  font-size: clamp(2.15rem, 6.4vw, 4.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.05em;
  text-wrap: pretty;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

html[data-page="home"] main > section:first-of-type > h1 strong {
  color: var(--red);
  font-weight: 600;
  white-space: nowrap;
}

html[data-page="home"] main > section {
  background: #fff;
  color: #000;
}

html[data-page="home"] main > section h2,
html[data-page="home"] main > section h3,
html[data-page="home"] main > section dt,
html[data-page="home"] main > section dd,
html[data-page="home"] main > section p {
  color: inherit;
}

html[data-page="home"] main > section dl > div {
  border-bottom-color: rgba(0, 0, 0, 0.22);
}

html[data-page="home"] footer {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  border-top: 0;
}

html[data-page="home"] main h2 {
  margin: 0 0 1.15rem;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

html[data-page="home"] main p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.5;
}

html[data-page="home"] main p + p {
  margin-top: 0.85rem;
}

html[data-page="home"] main h3 {
  margin: 0 0 1.15rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

html[data-page="home"] main > section > h3:first-child {
  padding-top: 0.35rem;
  border-top: 1px solid var(--line);
}

html[data-page="home"] main > section:first-of-type > h3:first-child {
  border-top: 0;
  padding-top: 0;
}

html[data-page="home"] main h3 + h3,
html[data-page="home"] main p + h3 {
  margin-top: 3.25rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--line);
}

html[data-page="home"] main dl {
  margin: 1rem 0 0;
}

html[data-page="home"] main dl > div {
  margin: 0 0 0.9rem;
  padding: 0 0 0.9rem;
  border-bottom: 1px solid var(--line);
}

html[data-page="home"] main dl > div:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

html[data-page="home"] main dt {
  margin: 0 0 0.25rem;
  font-weight: 600;
}

html[data-page="home"] main dd {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.5;
}

html[data-page="home"] main nav {
  margin-top: 1.25rem;
}

html[data-page="home"] main > section:nth-of-type(2),
html[data-page="home"] main > section:nth-of-type(3),
html[data-page="home"] main > section:nth-of-type(4) {
  max-width: none;
}

main .eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
}

html[data-page="home"] main > section:first-of-type .eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
}

html[data-page="home"] .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html[data-page="home"] main .home-board {
  margin: 2.25rem 0 0;
  max-width: 56rem;
  padding: 1.35rem 1.25rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

html[data-page="home"] main .home-board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

html[data-page="home"] main .home-board-site {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 500;
}

html[data-page="home"] main .home-board-range {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

html[data-page="home"] main .home-board-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 520px) {
  html[data-page="home"] main .home-board-metrics {
    grid-template-columns: 1fr;
  }
}

html[data-page="home"] main .home-board-metric {
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: #fff;
}

html[data-page="home"] main .home-board-metric--hero {
  border-color: rgba(225, 6, 0, 0.22);
  background: var(--red-soft);
}

html[data-page="home"] main .home-board-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

html[data-page="home"] main .home-board-value {
  display: block;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1;
  color: var(--secondary);
}

html[data-page="home"] main .home-board-panels {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  html[data-page="home"] main .home-board-panels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

html[data-page="home"] main .home-board-panel {
  padding: 0.85rem 0.9rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: #fff;
}

html[data-page="home"] main .home-board-panel-title {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

html[data-page="home"] main .home-board-bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

html[data-page="home"] main .home-board-bars li {
  display: grid;
  grid-template-columns: minmax(0, 5.5rem) 1fr;
  align-items: center;
  gap: 0.5rem;
}

html[data-page="home"] main .home-board-bar-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1.2;
  color: var(--secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-page="home"] main .home-board-bar-track {
  display: block;
  height: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red) 0%, rgba(225, 6, 0, 0.35) 100%);
  width: var(--w, 50%);
  opacity: 0.85;
}

html[data-page="home"] main .home-cta-note {
  margin-top: 0.85rem;
  font-size: 0.9375rem;
  color: #444;
}

html[data-page="home"] main > section.home-board-section .home-lead,
html[data-page="home"] main > section.home-board-section h2,
html[data-page="home"] main > section.home-audit h2,
html[data-page="home"] main > section.home-audit > p.home-lead,
html[data-page="home"] main > section.home-faq h2,
html[data-page="home"] main > section.home-cta h2,
html[data-page="home"] main > section.home-cta p {
  max-width: 38rem;
}

html[data-page="home"] main > section.home-audit {
  background: var(--surface);
}

html[data-page="home"] main .home-audit-list {
  margin-top: 2rem;
  max-width: 42rem;
}

html[data-page="home"] main .home-audit-list dt {
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}

html[data-page="home"] main .home-audit-list dd strong {
  font-weight: 600;
  color: var(--red);
}

html[data-page="home"] main > section.home-faq dl {
  max-width: 42rem;
}

html[data-page="home"] main .home-more {
  margin-top: 1.75rem;
  max-width: 38rem;
}

html[data-page="home"] main > section.home-cta nav {
  margin-top: 1.25rem;
}

html[data-page="home"] main > section.home-board-section {
  display: block;
}

@media (min-width: 800px) {
  html[data-page="home"] main > section.home-board-section {
    display: block;
  }
}
html[data-page="features"] main > article {
  max-width: 44rem;
}

html[data-page="features"] main > article > nav[aria-label="On this page"] {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 1.75rem 0 2.25rem;
  max-width: none;
}

html[data-page="features"] main > article > nav[aria-label="On this page"] a {
  font-size: 0.875rem;
  font-weight: 500;
}

html[data-page="features"] main > article h2 {
  scroll-margin-top: 5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

html[data-page="features"] main > article h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

html[data-page="features"] main > article dl {
  margin: 1rem 0 0;
}

html[data-page="features"] main > article dl > div {
  margin: 0;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

html[data-page="features"] main > article dl > div:last-child {
  border-bottom: 0;
}

html[data-page="features"] main > article dt {
  margin: 0 0 0.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

html[data-page="features"] main > article dd {
  margin: 0;
  color: var(--secondary);
  line-height: 1.5;
}

html[data-page="features"] main > article details {
  margin: 1.25rem 0 0;
}

html[data-page="features"] main > article details pre {
  max-height: 24rem;
  overflow: auto;
}

html[data-page="features"] main > article nav[aria-label="Get started"] {
  margin-top: 2rem;
}

@media (max-width: 900px) {
  main section > div:has(> article) {
    grid-template-columns: 1fr;
  }

  #pricingForm {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  main {
    max-width: 1000px;
    width: calc(100% - 1.25rem);
  }
  html[data-page="home"] main#content {
    width: 100%;
  }
  html[data-page="home"] {
    --home-inset: 0.75rem;
  }
}

@media (max-width: 360px) {
  html[data-page="home"] {
    --home-inset: 0.5rem;
  }
  body > header > p > a {
    font-size: 0.82rem;
  }
  body > header nav a {
    font-size: 0.62rem;
    padding-inline: 0.22rem;
  }
}
