/* Headerbench website. One file, no framework. Matches the extension: system font, Chrome blue. */

:root {
  --bg: #ffffff;
  --bg-subtle: #f8f9fa;
  --surface: #ffffff;
  --text: #202124;
  --text-muted: #5f6368;
  --border: #dadce0;
  --border-strong: #bdc1c6;
  --accent: #1a73e8;
  --accent-hover: #1765cc;
  --accent-text: #ffffff;
  --accent-soft: #e8f0fe;
  --code-bg: #f1f3f4;
  --ok: #188038;
  --error: #c5221f;
  --notice-bg: #fef7e0;
  --notice-border: #f9e1a1;
  --radius: 8px;
  --wrap: 1080px;
  --narrow: 720px;
  --font:
    system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f1f1f;
    --bg-subtle: #262626;
    --surface: #2a2a2a;
    --text: #e8eaed;
    --text-muted: #a8acb1;
    --border: #3c4043;
    --border-strong: #5f6368;
    --accent: #8ab4f8;
    --accent-hover: #aecbfa;
    --accent-text: #202124;
    --accent-soft: #263548;
    --code-bg: #303134;
    --ok: #81c995;
    --error: #f28b82;
    --notice-bg: #3a3320;
    --notice-border: #5c4f1f;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-hover);
}

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

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
  font-weight: 650;
}

h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 1.8em;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

p,
ul,
ol,
dl {
  margin: 0 0 1em;
}

code,
kbd {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--code-bg);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  overflow-wrap: anywhere;
}

kbd {
  border: 1px solid var(--border);
  border-bottom-width: 2px;
}

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

.narrow {
  max-width: var(--narrow);
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: 0.875rem;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: var(--radius);
  z-index: 10;
}

.skip-link:focus {
  top: 12px;
}

/* Header and footer */

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

.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  font-size: 1.05rem;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.logo {
  color: var(--text-muted);
  flex: none;
}

.site-header nav {
  margin-left: auto;
}

.site-header nav ul {
  display: flex;
  gap: 4px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-header nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-header nav a:hover,
.site-header nav a[aria-current='page'] {
  color: var(--text);
}

.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
  padding: 48px 0 24px;
  font-size: 0.925rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

.site-footer h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 6px;
}

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

.site-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.brand-sm {
  font-size: 1rem;
  margin-bottom: 8px;
}

.fineprint {
  margin: 32px 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 550;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.btn-lg {
  min-height: 48px;
  padding: 0 24px;
  font-size: 1rem;
}

.btn-sm {
  min-height: 34px;
  padding: 0 14px;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--accent-text);
}

.btn-secondary {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.btn[hidden] {
  display: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 1em;
}

/* Sections */

.hero {
  padding: 88px 0 40px;
}

.hero h1 {
  max-width: 18ch;
}

.lede {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: 1.6em;
}

.hero-note {
  font-size: 0.925rem;
}

.install-pending {
  color: var(--text-muted);
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  max-width: 60ch;
}

.section {
  padding: 56px 0 0;
}

.section-lede {
  color: var(--text-muted);
  max-width: 62ch;
}

.band {
  padding: 24px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.feature h2 {
  font-size: 1.15rem;
  margin-top: 0;
}

.feature p {
  color: var(--text-muted);
}

.shot {
  margin: 40px 0 0;
}

.shot img {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgb(0 0 0 / 8%);
}

.shot figcaption {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.feature .shot {
  margin-top: 16px;
}

/* Tables */

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.5em;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.compare caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  color: var(--text-muted);
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}

.compare th,
.compare td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.compare thead th {
  background: var(--bg-subtle);
  font-weight: 600;
}

.compare td {
  overflow-wrap: anywhere;
}

.compare tbody th {
  font-weight: 500;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare tfoot th,
.compare tfoot td {
  border-top: 1px solid var(--border-strong);
  border-bottom: 0;
  font-weight: 600;
}

.pricing td {
  width: 22%;
}

.icon-check {
  color: var(--ok);
  vertical-align: -3px;
}

/* Pricing cards */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  gap: 24px;
  margin: 32px 0 16px;
}

.plan {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.plan-default {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.plan h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.plan p {
  color: var(--text-muted);
}

.plan .btn {
  margin-top: auto;
}

.price {
  color: var(--text) !important;
  margin-bottom: 0.5em;
}

.amount {
  font-size: 2.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.checklist {
  padding-left: 1.2em;
}

.checklist li {
  margin-bottom: 0.75em;
}

.notice {
  background: var(--notice-bg);
  border: 1px solid var(--notice-border);
  border-radius: var(--radius);
  padding: 12px 16px;
}

.faq dt {
  font-weight: 600;
  margin-top: 1.25em;
}

.faq dd {
  margin: 0.3em 0 0;
  color: var(--text-muted);
}

/* Prose pages */

.prose h2 {
  margin-top: 2em;
}

.prose li {
  margin-bottom: 0.4em;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin-bottom: 1em;
  min-height: 28px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 650;
  font-size: 0.875rem;
  display: grid;
  place-items: center;
}

.timeline {
  list-style: none;
  padding: 0;
  border-left: 2px solid var(--border);
}

.timeline li {
  padding-left: 18px;
  margin-bottom: 0.9em;
}

.cta {
  margin-top: 56px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-subtle);
}

.cta h2 {
  margin-top: 0;
}

.docs-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 24px;
  font-size: 0.9rem;
}

.toc h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 8px 0 12px;
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

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

.toc a:hover {
  color: var(--accent);
}

.docs-layout .prose {
  max-width: var(--narrow);
}

.docs-layout section {
  scroll-margin-top: 24px;
}

.docs-layout section h2 {
  margin-top: 1.6em;
}

/* Forms, licence and converter */

.form {
  margin: 24px 0;
}

.field {
  margin-bottom: 16px;
}

label {
  display: block;
  font-weight: 550;
  margin-bottom: 6px;
}

input[type='email'],
input[type='text'],
textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 10px 12px;
}

textarea {
  font-family: var(--mono);
  font-size: 0.875rem;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}

.status {
  min-height: 1.6em;
}

.status[data-tone='error'],
[data-tone='error'] {
  color: var(--error);
}

.status[data-tone='ok'] {
  color: var(--ok);
}

.license-result {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-subtle);
}

.license-result .key {
  word-break: break-all;
}

.manual summary {
  cursor: pointer;
  color: var(--accent);
}

.manual ol {
  margin-top: 12px;
}

.converter {
  margin: 32px 0;
}

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 36px 16px;
  margin-bottom: 20px;
  border: 2px dashed var(--border-strong);
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  font-weight: 400;
}

.dropzone:hover,
.dropzone.is-over {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.dropzone-title {
  font-weight: 600;
  color: var(--accent);
}

.dropzone input {
  margin-top: 12px;
  font: inherit;
  font-size: 0.875rem;
}

.report {
  margin: 0 0 40px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.report h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

.report-lines {
  padding-left: 1.2em;
  font-size: 0.925rem;
}

.report-lines [data-tone='warning'] {
  color: var(--text);
}

.report-lines [data-tone='info'] {
  color: var(--text-muted);
}

/* Small screens */

@media (max-width: 860px) {
  .feature-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .docs-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding: 0 16px;
  }

  .hero {
    padding-top: 48px;
  }

  .feature-grid,
  .footer-grid,
  .plans {
    grid-template-columns: 1fr;
  }

  .header-cta {
    display: none;
  }

  .site-header nav {
    margin-left: 0;
    width: 100%;
    padding-bottom: 12px;
  }
}
