/* Type: self-hosted Inter (variable, latin subset) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Metric-matched local fallback so the swap does not shift layout */
@font-face {
  font-family: "Inter-fallback";
  src: local("Arial");
  size-adjust: 107.4%;
  ascent-override: 90.2%;
  descent-override: 22.48%;
  line-gap-override: 0%;
}

/* Design tokens */
:root {
  --bg: #FAF9F7;
  --surface: #FFFFFF;
  --text: #1C1917;
  --muted: #57534E;
  --border: #E7E5E4;
  --accent: #15803D;
  --accent-contrast: #FFFFFF;
  --chip-ok-bg: #DCFCE7;
  --chip-ok-fg: #166534;
  --chip-warn-bg: #FEF3C7;
  --chip-warn-fg: #92400E;
  --chip-fail-bg: #FEE2E2;
  --chip-fail-fg: #B91C1C;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151412;
    --surface: #1D1B18;
    --text: #F5F4F2;
    --muted: #A8A29E;
    --border: #2E2B27;
    --accent: #4ADE80;
    --accent-contrast: #151412;
    --chip-ok-bg: #142B1C;
    --chip-ok-fg: #4ADE80;
    --chip-warn-bg: #2C230F;
    --chip-warn-fg: #FBBF24;
    --chip-fail-bg: #301616;
    --chip-fail-fg: #F87171;
  }
}

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

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

@media (min-width: 768px) {
  html {
    font-size: 18px;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Inter-fallback", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

h1 {
  font-size: clamp(2.25rem, 1.2rem + 4vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1.25rem;
}

h2 {
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.25rem;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.375rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Text measure */
main h1,
main h2,
main p,
main li {
  max-width: 70ch;
}

/* Monospace, only for prices and day counts */
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.95em;
}

/* Layout */
.container {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 32px;
  }
}

main > section {
  padding-block: 64px;
}

main > section + section {
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  main > section {
    padding-block: 96px;
  }
}

/* Links */
a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

/* Buttons */
.button {
  display: inline-block;
  padding: 0.6em 1.2em;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}

.button-primary:hover {
  filter: brightness(1.08);
}

.button-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--muted);
}

@media (prefers-reduced-motion: no-preference) {
  a,
  .button,
  .faq-list details {
    transition: filter 150ms ease, background-color 150ms ease,
      border-color 150ms ease, color 150ms ease,
      text-decoration-thickness 150ms ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Skip link */
.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 0.6em 1.2em;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  transform: translateY(-300%);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

main:focus {
  outline: none;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding-block: 14px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

/* Hero */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 1.75rem 0 1.25rem;
}

.note {
  color: var(--muted);
  font-size: 0.9em;
}

/* Services */
.panels {
  display: grid;
  gap: 20px;
  margin-top: 2.25rem;
}

.panel {
  max-width: 720px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px 20px;
}

@media (min-width: 768px) {
  .panel {
    padding: 32px;
  }
}

.panel > p:last-child {
  margin-bottom: 0;
}

.meta {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

/* Process */
.steps {
  max-width: 720px;
  margin: 1.5rem 0 2.25rem;
  padding-left: 1.625rem;
}

.steps li {
  margin-bottom: 1.125rem;
  padding-left: 0.375rem;
}

.steps li::marker {
  color: var(--muted);
  font-weight: 600;
}

.steps strong {
  font-weight: 600;
}

/* Audit run */
#audit-run {
  max-width: 720px;
  margin-top: 1.5rem;
}

.audit-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.875em;
  line-height: 1.5;
}

.audit-table th,
.audit-table td {
  padding: 10px 16px;
  text-align: left;
  vertical-align: top;
}

.audit-table th {
  font-weight: 400;
}

.audit-table td {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}

.audit-table tr + tr th,
.audit-table tr + tr td {
  border-top: 1px solid var(--border);
}

.chip {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.chip-ok {
  background: var(--chip-ok-bg);
  color: var(--chip-ok-fg);
}

.chip-warn {
  background: var(--chip-warn-bg);
  color: var(--chip-warn-fg);
}

.chip-fail {
  background: var(--chip-fail-bg);
  color: var(--chip-fail-fg);
}

.audit-caption {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9em;
}

/* Objection list */
.reasons li {
  margin-bottom: 0.875rem;
}

/* Credentials publications sub-list */
.pub-note {
  margin: 0.875rem 0 0.375rem;
  color: var(--muted);
  font-size: 0.9em;
}

.pub-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.9em;
}

.pub-list li {
  margin-bottom: 0.375rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 720px;
  margin-top: 2rem;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.faq-list details:hover {
  border-color: var(--muted);
}

.faq-list summary {
  padding: 14px 18px;
  font-weight: 600;
  cursor: pointer;
}

.faq-list details p {
  margin: 0;
  padding: 0 18px 16px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 40px;
  color: var(--muted);
  font-size: 0.9375em;
}

.site-footer p {
  margin: 0 0 0.75rem;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 0.75rem;
  padding: 0;
}

.footer-links li {
  margin: 0;
}

/* Product pages share the existing Arjunworks palette. */
.header-inner { flex-wrap: wrap; gap: 12px 24px; }
.wordmark { color: var(--text); text-decoration: none; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.product-primary { border-top: 3px solid var(--accent); }
.product-steps { display: grid; gap: 16px; padding-left: 24px; }
.access-panel { max-width: 760px; }
.access-email { overflow-wrap: anywhere; }
.product-kicker { color: var(--accent); font-weight: 600; }
@media (max-width: 640px) { .product-grid { grid-template-columns: 1fr; } }
