/* Sham Connect — standalone stylesheet (no CDN, system fonts only) */

:root {
  --brand-700: #0b7a56;
  --brand-600: #0ea371;
  --brand-500: #1abb6c;
  --brand-400: #25d366;
  --brand-50: #ecfdf5;
  --ink-900: #0b2e27;
  --ink-700: #334155;
  --ink-500: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --danger-600: #dc2626;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 46, 39, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--bg);
}

h1,
h2,
h3,
h4 {
  color: var(--ink-900);
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--brand-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-600);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--brand-400);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  display: block;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1em 0.4em;
  word-break: break-word;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.section {
  padding: 4rem 0;
}

.section--soft {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-500);
  max-width: 48rem;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.6rem;
  text-decoration: none;
}

.brand img {
  height: 40px;
  width: auto;
}

/* Mobile nav toggle: CSS-only (hidden checkbox + labelled hamburger), no JS, works via file:// */
.nav-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-900);
  cursor: pointer;
  user-select: none;
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: background 0.2s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, top 0.2s ease;
}

.nav-toggle-bars::before {
  top: -7px;
}

.nav-toggle-bars::after {
  top: 7px;
}

.nav-toggle-input:checked ~ .nav-toggle .nav-toggle-bars {
  background: transparent;
}

.nav-toggle-input:checked ~ .nav-toggle .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle-input:checked ~ .nav-toggle .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-toggle-input:focus-visible ~ .nav-toggle {
  outline: 3px solid var(--brand-400);
  outline-offset: 2px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  display: block;
  text-decoration: none;
  color: var(--ink-700);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--brand-700);
  background: var(--brand-50);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-400));
  color: #fff;
}

.btn--ghost {
  background: #fff;
  color: var(--brand-700);
  border-color: var(--line);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero */
.hero {
  padding: 5rem 0 4rem;
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(37, 211, 102, 0.18), transparent 60%),
    radial-gradient(50% 70% at 10% 90%, rgba(14, 163, 113, 0.14), transparent 60%);
}

.hero h1 span {
  display: block;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

/* Cards & grids */
.grid {
  display: grid;
  gap: 1.25rem;
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 1px 2px rgba(11, 46, 39, 0.04);
}

.card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

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

.card--link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card--link:hover {
  border-color: var(--brand-500);
  box-shadow: var(--shadow);
  color: inherit;
}

.card--link .link {
  color: var(--brand-700);
  font-weight: 700;
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-700);
  border: 1px solid rgba(14, 163, 113, 0.25);
  vertical-align: middle;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #fff;
}

th,
td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--bg-soft);
  color: var(--ink-900);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

/* Steps */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-400));
}

.steps li p:last-child {
  margin-bottom: 0;
}

/* Notices */
.notice {
  border-left: 4px solid var(--brand-600);
  background: var(--brand-50);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

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

/* Legal prose */
.prose {
  max-width: 52rem;
}

.prose h2 {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.prose h2:first-of-type {
  margin-top: 1.5rem;
  border-top: 0;
  padding-top: 0;
}

.prose ul,
.prose ol {
  padding-left: 1.5rem;
  margin: 0 0 1em;
}

.prose li {
  margin-bottom: 0.35rem;
}

.meta {
  color: var(--ink-500);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 3rem 0 0;
  margin-top: 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 32rem;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.footer-brand strong {
  display: block;
  color: var(--ink-900);
}

.footer-brand span {
  color: var(--ink-500);
  font-size: 0.9rem;
}

.footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-900);
  margin: 0 0 0.75rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-nav a,
.footer-contact a {
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.footer-contact p {
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0;
}

.footer-meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-500);
}

/* Responsive */
@media (max-width: 900px) {
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .header-inner {
    flex-wrap: wrap;
    min-height: 0;
    padding: 0.6rem 0;
    row-gap: 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    flex-basis: 100%;
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows 0.25s ease, visibility 0.25s ease;
  }

  .nav-toggle-input:checked ~ .nav {
    grid-template-rows: 1fr;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    min-height: 0;
    overflow: hidden;
  }

  .nav a {
    padding: 0.85rem 0.75rem;
    font-size: 1rem;
    border-radius: 10px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 2.75rem 0;
  }

  .hero {
    padding: 3rem 0 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .btn-row {
    display: none;
  }

  body {
    color: #000;
  }

  .prose h2 {
    break-after: avoid;
  }
}
