/* Cardea Supervision — waitlist landing page.
   No web fonts, no frameworks, no JS: one HTML file + this stylesheet, so the page paints in well
   under a second on a phone and can be dropped onto Netlify with no build step.
   Palette matches the Cardea app (teal-700 primary on slate); every text/background pair below
   clears WCAG AA. */

:root {
  --teal-900: #134e4a;
  --teal-700: #0f766e;   /* 5.3:1 on white  */
  --teal-600: #0d9488;
  --teal-50:  #f0fdfa;
  --ink:      #0f172a;   /* 16.9:1 on white */
  --ink-mid:  #475569;   /* 8.1:1  on white */
  --ink-soft: #64748b;   /* 4.8:1  on white — AA for body text */
  --line:     #e2e8f0;
  --bg:       #ffffff;
  --bg-alt:   #f8fafc;
  --radius:   12px;
  --wrap:     1080px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.15rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 650; }
h3 { font-size: 1.0625rem; font-weight: 650; }
p  { margin: 0 0 1rem; }
a  { color: var(--teal-700); }
a:hover { color: var(--teal-900); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 680px; }

.muted { color: var(--ink-soft); }
.small { font-size: .8125rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--teal-700); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* Honeypot — hidden from people, visible to bots. */
.hp { position: absolute; left: -9999px; }

:where(a, button, input, select):focus-visible {
  outline: 2px solid var(--teal-600);
  outline-offset: 2px;
}

/* ---------------- header ---------------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(8px);
  position: sticky; top: 0; z-index: 20;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-weight: 700; color: var(--teal-700); font-size: 1.0625rem; letter-spacing: -0.01em; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--teal-700); color: #fff;
  font: inherit; font-weight: 600; line-height: 1.2;
  padding: 13px 22px; border-radius: 10px;
  text-decoration: none; text-align: center;
  transition: background .15s ease;
}
.btn:hover { background: var(--teal-900); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: .875rem; border-radius: 8px; }
.btn-block { width: 100%; padding: 14px 22px; }

/* ---------------- hero ---------------- */
.hero { padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem); background: linear-gradient(180deg, var(--teal-50), var(--bg)); }
.eyebrow {
  text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 700;
  color: var(--teal-700); margin-bottom: .75rem;
}
.hero h1 { max-width: 16ch; }
.lede { font-size: clamp(1.0625rem, 2vw, 1.1875rem); color: var(--ink-mid); max-width: 60ch; margin-bottom: 1.75rem; }

.hero-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; }
.hero-form input[type=email] { flex: 1 1 240px; }
.microcopy { font-size: .8125rem; color: var(--ink-soft); margin-top: .75rem; }

/* ---------------- form controls ---------------- */
input[type=email], select {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px;
}
input[type=email]::placeholder { color: #94a3b8; }
input[type=email]:focus, select:focus { border-color: var(--teal-600); }

.stack-form { margin-top: 1.5rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .375rem; }
.req { color: #b91c1c; }

/* ---------------- sections ---------------- */
.section { padding: clamp(2.75rem, 6vw, 4.25rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-sub { color: var(--ink-mid); max-width: 62ch; margin-top: -.25rem; margin-bottom: 1.75rem; }
.section-cta { background: var(--teal-50); border-top: 1px solid var(--line); }

/* ---------------- cards ---------------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0; color: var(--ink-mid); }
.card h3 { color: var(--teal-900); }

.two-up { display: grid; gap: 32px; grid-template-columns: 1fr; }
.two-up p.muted { margin-top: -.35rem; font-size: .875rem; }

.ticks { list-style: none; margin: 1rem 0 0; padding: 0; }
.ticks li { position: relative; padding-left: 1.6rem; margin-bottom: .6rem; color: var(--ink-mid); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--teal-600);
}

/* The "what it checks" list. Wider measure and more air than a plain tick list: each item is a
   two-sentence argument rather than a feature bullet, and cramming them reads as small print. */
.checks { max-width: 60ch; margin-inline: auto; }
.checks li { margin-bottom: 1rem; line-height: 1.6; }
.checks strong { color: var(--ink); }

/* ---------------- pricing ---------------- */
.tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
.tier {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; text-align: center;
}
.tier-featured { border-color: var(--teal-600); box-shadow: 0 0 0 1px var(--teal-600); }
.ribbon {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--teal-700); color: #fff; font-size: .6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; margin: 0;
  white-space: nowrap;
}
.price { margin: .25rem 0 .25rem; }
.amount { font-size: 2rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.amount-sm { font-size: 1.25rem; }
.per { color: var(--ink-soft); font-size: .9375rem; }
.tier-sub { color: var(--ink-soft); font-size: .875rem; margin: 0; }

/* ---------------- founder ---------------- */
.founder {
  margin: 0; padding: 24px 26px;
  border-left: 3px solid var(--teal-600); background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0;
}
.founder p { font-size: 1.0625rem; color: var(--ink-mid); margin-bottom: .75rem; }
.founder footer { font-size: .875rem; color: var(--ink-soft); font-weight: 600; }

/* ---------------- footer ---------------- */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; background: var(--bg-alt); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: flex-start; }
.brand-sm { font-weight: 700; color: var(--teal-700); margin-bottom: .1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .4rem; font-size: .875rem; }
.legal { margin-top: 1.75rem; max-width: 70ch; }

/* ---------------- responsive ---------------- */
@media (min-width: 640px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .two-up { grid-template-columns: 1fr 1fr; gap: 44px; }
  .tiers { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .tiers { grid-template-columns: repeat(4, 1fr); }
}

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