:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-muted: #f0f4fa;
  --ink: #0b1220;
  --ink-secondary: #435166;
  --ink-muted: #64748b;
  --border: #dde5f0;
  --border-strong: #c5d1e2;
  --accent: #0f4c81;
  --accent-bright: #1463a8;
  --accent-soft: #e7f0fa;
  --emerald: #0d7a5f;
  --emerald-soft: #e6f6f1;
  --amber: #9a5b13;
  --amber-soft: #fef4e6;
  --danger: #b42318;
  --danger-soft: #fef2f2;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.05);
  --shadow-md: 0 10px 30px rgba(11, 18, 32, 0.06);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-bright);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 840px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 249, 252, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

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

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 0.94rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--ink-secondary);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.9rem;
}

.nav-cta:hover {
  background: #1a253a;
  text-decoration: none;
}

/* Hero */
.hero {
  padding: 68px 0 52px;
  background-image:
    radial-gradient(circle at 85% 10%, rgba(20, 99, 168, 0.08), transparent 42%),
    linear-gradient(to right, rgba(197, 209, 226, 0.22) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(197, 209, 226, 0.22) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 820px;
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 1.12rem;
  color: var(--ink-secondary);
  max-width: 720px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}

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

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

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

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

.btn-secondary:hover {
  background: var(--surface-muted);
}

/* Badges & Trust Bar */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.trust-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.trust-item strong {
  display: block;
  font-size: 0.92rem;
  color: var(--ink);
}

.trust-item span {
  display: block;
  font-size: 0.84rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* Sections & Cards */
.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-header h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.5vw, 2.05rem);
  letter-spacing: -0.02em;
}

.section-header p {
  margin: 0;
  color: var(--ink-secondary);
}

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

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.94rem;
}

.flow-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

/* Status pills & Code blocks */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.pill-green {
  background: var(--emerald-soft);
  color: var(--emerald);
}

.pill-blue {
  background: var(--accent-soft);
  color: var(--accent);
}

.pill-amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.pill-red {
  background: var(--danger-soft);
  color: var(--danger);
}

pre,
code {
  font-family: var(--font-mono);
}

pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-size: 0.84rem;
  line-height: 1.55;
  margin: 14px 0;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.88em;
  word-break: break-all;
}

/* Tables & Forms */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--surface-muted);
  color: var(--ink-secondary);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

tr:last-child td {
  border-bottom: none;
}

.callout {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  padding: 16px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  font-size: 0.94rem;
}

.callout-emerald {
  border-left-color: var(--emerald);
  background: var(--emerald-soft);
}

/* Legal prose */
.prose {
  padding: 48px 0 64px;
}

.prose h1 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.025em;
}

.prose .meta {
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.prose h2 {
  margin: 28px 0 10px;
  font-size: 1.25rem;
}

.prose p,
.prose li {
  color: var(--ink-secondary);
}

/* Hosted Checkout & Dashboard Helpers */
.checkout-shell {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 16px;
}

.checkout-card {
  width: 100%;
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.kv-list {
  margin: 18px 0;
  border-top: 1px solid var(--border);
}

.kv-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.kv-row span:first-child {
  color: var(--ink-muted);
}

.kv-row strong,
.kv-row code {
  text-align: right;
  color: var(--ink);
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.input-group label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.input-group input,
.input-group select {
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  background: var(--surface);
  color: var(--ink);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 32px 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--ink-secondary);
}
