/* Clinflare waitlist v2 — multi-indication home
   Design system: navy/charcoal ink, teal accent, system fonts, mobile-first */

:root {
  --bg: #f7f8fa;
  --bg-card: #ffffff;
  --bg-muted: #eef1f5;
  --ink: #1a2332;
  --ink-soft: #3d4a5c;
  --muted: #5c6b7a;
  --border: #d5dbe3;
  --accent: #0d7a7a;
  --accent-hover: #0a6363;
  --accent-soft: #e6f4f4;
  --focus: #0d7a7a;
  --max-prose: 42rem;
  --max-wide: 56rem;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(26, 35, 50, 0.06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  margin: 0 0 var(--space-5);
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  margin: 0 0 var(--space-5);
}

h3 {
  font-size: 1.1rem;
  margin: 0 0 var(--space-3);
}

p {
  margin: 0 0 var(--space-4);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
.table-scroll:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.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: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: var(--space-4);
}

.wrap {
  width: min(100% - 2rem, var(--max-wide));
  margin-inline: auto;
}

.prose {
  max-width: var(--max-prose);
}

.wrap.prose {
  margin-inline: auto;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  min-height: 3.25rem;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--accent);
}

.nav {
  display: none;
  align-items: center;
  gap: var(--space-5);
  font-size: 0.9rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.nav a:hover {
  color: var(--accent);
}

.nav-cta {
  font-weight: 600;
  color: var(--accent) !important;
}

@media (min-width: 720px) {
  .nav {
    display: flex;
  }
}

/* Hero */
.hero {
  padding: var(--space-8) 0 var(--space-7);
  background:
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 var(--space-4);
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
}

.subhead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: var(--space-6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-5);
}

.text-link {
  font-size: 0.95rem;
  font-weight: 500;
}

/* Sections */
.section {
  padding: var(--space-7) 0;
}

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

.section-title {
  max-width: var(--max-prose);
}

.section-cta {
  background: #fff;
  border-top: 1px solid var(--border);
  padding-bottom: var(--space-8);
}

.closing-line {
  margin-top: var(--space-5);
  max-width: var(--max-prose);
}

/* Cards */
.card-grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 720px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: var(--shadow);
}

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

/* Wave-1 indication list */
.indication-list {
  margin: 0 0 var(--space-5);
  padding: 0;
  list-style: none;
  counter-reset: ind;
}

.indication-list li {
  counter-increment: ind;
  position: relative;
  padding: var(--space-4) var(--space-4) var(--space-4) 3rem;
  margin-bottom: var(--space-3);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.indication-list li::before {
  content: counter(ind);
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
}

/* Depth-proof note */
.depth-note {
  margin: 0;
  padding: var(--space-5);
  background: var(--accent-soft);
  border: 1px solid #b8d9d9;
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.depth-note p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

/* Lists */
.check-list {
  margin: 0 0 var(--space-5);
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: var(--space-4);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
}

.honesty {
  margin: 0;
  padding: var(--space-4) var(--space-5);
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--ink);
  border-radius: var(--radius);
}

.honesty p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Indication interest tags (visual preview) */
.form-note {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: var(--space-5);
  padding: var(--space-3) var(--space-4);
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.tag-label {
  font-weight: 650;
  color: var(--ink);
  margin-bottom: var(--space-4);
}

.tag-grid {
  display: grid;
  gap: var(--space-3);
  margin: 0 0 var(--space-5);
  padding: 0;
  list-style: none;
}

@media (min-width: 520px) {
  .tag-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tag-chip {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--ink-soft);
  box-shadow: var(--shadow);
  user-select: none;
}

.tag-box {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  border: 2px solid var(--accent);
  border-radius: 3px;
  background: #fff;
}

.role-note {
  margin: 0;
  padding: var(--space-4);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

/* Comparison table */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--space-5) 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.compare {
  width: 100%;
  min-width: 28rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.compare th,
.compare td {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.compare th {
  background: var(--bg-muted);
  color: var(--ink);
  font-weight: 650;
  width: 50%;
}

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

.compare td:last-child {
  background: var(--accent-soft);
}

/* Pricing */
.price-row {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-5) 0 var(--space-3);
}

@media (min-width: 520px) {
  .price-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.price-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.price-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.price-unit {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: 0.15rem;
}

/* FAQ */
.faq {
  margin: 0;
}

.faq-item {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-item dt {
  font-weight: 650;
  color: var(--ink);
  margin-bottom: var(--space-2);
}

.faq-item dd {
  margin: 0;
}

/* Waitlist CTA */
.waitlist-panel {
  margin-top: var(--space-5);
  padding: var(--space-5);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.form-pending {
  margin: 0 0 var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: #fff8e6;
  border: 1px solid #e6d9a8;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.95rem;
}

.helper {
  margin: var(--space-4) 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.privacy {
  margin: var(--space-3) 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

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

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

.btn-block {
  width: 100%;
}

.btn-disabled,
.btn[aria-disabled="true"] {
  background: #9aadb0;
  color: #fff;
  cursor: not-allowed;
  pointer-events: none;
}

.btn:disabled {
  background: #9aadb0;
  color: #fff;
  cursor: not-allowed;
}

/* Footer */
.site-footer {
  padding: var(--space-6) 0 var(--space-7);
  border-top: 1px solid var(--border);
  background: var(--ink);
  color: #c5ced8;
}

.trust-line {
  margin: 0;
  max-width: var(--max-prose);
  font-size: 0.85rem;
  line-height: 1.55;
}

.site-footer a {
  color: #e8eef4;
}

.site-footer a:hover {
  color: #fff;
}

@media (max-width: 480px) {
  .hero {
    padding-top: var(--space-7);
  }

  .compare th,
  .compare td {
    padding: var(--space-3) var(--space-4);
  }

  .indication-list li {
    padding-left: 2.75rem;
  }
}
