/*
 * Cut Cares marketing site.
 *
 * No build step, no framework, no external font, no JavaScript. That is a
 * deliberate choice, not laziness: the audience includes people on old phones and
 * slow connections, and it lets the CSP stay at script-src 'none' with no
 * third-party origins — which in turn means the site sets no cookies and needs no
 * consent banner.
 *
 * Accessibility here is a requirement, not a polish pass. Body text is 1.125rem
 * because the readership is disabled and older people; contrast is checked to
 * WCAG AA; every interactive target is at least 48px; all motion is opt-in.
 */

:root {
  --teal-50:  #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;

  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --amber-500: #f59e0b;

  --measure: 68ch;
  --radius: 14px;
}

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

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

body {
  margin: 0;
  /* System stack: no webfont request, no layout shift, no third-party origin. */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;      /* 18px — this audience should not have to zoom */
  line-height: 1.65;
  color: var(--slate-800);
  background: #fff;
}

h1, h2, h3 { line-height: 1.2; color: var(--slate-900); text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin: 0 0 1rem; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); margin: 0 0 1rem; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; margin: 0 0 0.5rem; }

p { margin: 0 0 1rem; max-width: var(--measure); }

a { color: var(--teal-700); text-underline-offset: 3px; }
a:hover { color: var(--teal-800); }

/* A visible focus ring everywhere. Never remove this — keyboard and switch-device
   users have no other way to tell where they are. */
:focus-visible {
  outline: 3px solid var(--teal-600);
  outline-offset: 2px;
  border-radius: 4px;
}

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

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

.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;
}

.skip-link {
  position: absolute; left: -9999px;
  background: var(--slate-900); color: #fff;
  padding: 0.85rem 1.25rem; z-index: 100;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--slate-200);
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

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

.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  /* 48px, matching the nav links. The logo is 32px tall but the audience
     includes people with tremor and limited dexterity — the hit area should not
     be the size of the picture. */
  min-height: 48px;
  font-weight: 700; font-size: 1.15rem;
  color: var(--slate-900); text-decoration: none;
}

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

.nav-list a {
  display: inline-flex; align-items: center;
  min-height: 48px; padding: 0 0.85rem;       /* 48px touch target */
  border-radius: 10px;
  color: var(--slate-700); text-decoration: none; font-weight: 500;
}
.nav-list a:hover { background: var(--slate-100); color: var(--slate-900); }

.nav-cta {
  background: var(--teal-700); color: #fff !important;   /* see .btn-primary note */
  font-weight: 600;
}
.nav-cta:hover { background: var(--teal-800); }

/* Nav collapses to two rows rather than hiding behind a burger — a burger needs
   JavaScript, and this site has none. */
@media (max-width: 700px) {
  .header-inner { flex-direction: column; align-items: stretch; padding: 0.75rem 0; }
  .nav-list { flex-wrap: wrap; justify-content: center; }
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(3rem, 8vw, 6rem) 0;
  background:
    radial-gradient(60rem 30rem at 15% -10%, var(--teal-50), transparent 60%),
    linear-gradient(180deg, #fff, var(--slate-50));
}

.lede { font-size: clamp(1.15rem, 2.2vw, 1.4rem); color: var(--slate-600); max-width: 42ch; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin: 2rem 0 0.85rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 1.75rem;
  border-radius: var(--radius);
  font-weight: 600; font-size: 1.0625rem;
  text-decoration: none; border: 2px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

/* teal-700, not teal-600. White on #0d9488 measures 3.74:1, which fails WCAG AA
   for text under 18.66px bold / 24px regular — and this button is 17px. teal-700
   takes it to 5.5:1. The page claims AA conformance, so it has to actually hold. */
.btn-primary { background: var(--teal-700); color: #fff; }
.btn-primary:hover { background: var(--teal-800); color: #fff; }

.btn-secondary { background: #fff; color: var(--teal-800); border-color: var(--teal-600); }
.btn-secondary:hover { background: var(--teal-50); color: var(--teal-900); }

.btn-light { background: #fff; color: var(--teal-800); margin-top: 1rem; }
.btn-light:hover { background: var(--teal-50); color: var(--teal-900); }

.hero-note { color: var(--slate-600); font-size: 0.95rem; }

/* ---------- Trust bar ---------- */

.trust { background: var(--teal-900); color: #fff; padding: 2rem 0; }

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

.trust-item { display: grid; grid-template-columns: auto 1fr; gap: 0 0.75rem; align-items: start; }
.trust-item strong { grid-column: 2; color: #fff; }
.trust-item span:last-child { grid-column: 2; color: var(--teal-100); font-size: 0.95rem; }

.trust-mark {
  grid-row: span 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 999px;
  background: var(--teal-600); color: #fff; font-weight: 700;
}

/* ---------- Sections ---------- */

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--slate-50); }
.section-dark { background: var(--slate-900); color: var(--slate-100); }
.section-dark h2 { color: #fff; }

.section-lede { font-size: 1.2rem; color: inherit; opacity: 0.85; max-width: 55ch; margin-bottom: 2rem; }

/* ---------- Steps ---------- */

.steps {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  counter-reset: step;
}
.steps > li { position: relative; padding-top: 3.5rem; }

.step-num {
  position: absolute; top: 0; left: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--teal-600); color: #fff;
  font-weight: 700; font-size: 1.25rem;
}

/* ---------- Cards ---------- */

.cards {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: #fff; border: 1px solid var(--slate-200);
  border-radius: var(--radius); padding: 1.5rem;
}
.card p { margin-bottom: 0; color: var(--slate-600); }

/* ---------- Two column ---------- */

.two-col {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.ticks { list-style: none; margin: 1rem 0; padding: 0; max-width: var(--measure); }
.ticks li { position: relative; padding-left: 1.9rem; margin-bottom: 0.65rem; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--teal-600); font-weight: 700;
}
.ticks-light li::before { color: var(--amber-500); }

/* ---------- Table ---------- */

.tiers { border-collapse: collapse; width: 100%; margin: 1rem 0; }
.tiers th, .tiers td {
  text-align: left; padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--slate-200);
}
.tiers thead th { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-600); }
.tiers tbody th { font-weight: 600; }

.small { font-size: 0.95rem; color: var(--slate-600); }
.light { color: var(--slate-400); }

/* ---------- Footer ---------- */

.site-footer { background: var(--slate-900); color: var(--slate-400); padding: 3rem 0 2rem; }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 2rem;
  justify-content: space-between; align-items: start;
  padding-bottom: 2rem; border-bottom: 1px solid var(--slate-700);
}
.footer-brand { font-weight: 700; color: #fff; font-size: 1.15rem; margin-bottom: 0.25rem; }

.footer-links { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.footer-links a {
  display: inline-flex; align-items: center;
  min-height: 48px; padding: 0 0.85rem; border-radius: 10px;
  color: var(--slate-400); text-decoration: none;
}
.footer-links a:hover { color: #fff; background: var(--slate-800); }

.legal { margin-top: 1.5rem; max-width: 80ch; font-size: 0.85rem; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Honour a user's forced-colours / high-contrast mode instead of fighting it. */
@media (forced-colors: active) {
  .btn, .nav-cta { border: 2px solid currentColor; }
  .trust-mark, .step-num { border: 1px solid currentColor; }
}
