/* ==========================================================================
   BusyCap design system — shared across all pages
   Cream background · navy ink · green accent · Fraunces headings · Inter Tight body
   (sms-demo.html intentionally keeps a self-contained inline copy of these
   tokens so the SMS opt-in evidence page has zero external dependencies.)
   ========================================================================== */

:root {
  --bg: #fafaf7;
  --bg-card: #ffffff;
  --bg-soft: #f3f2ed;
  --ink: #0f1c2e;
  --ink-soft: #3a4a5f;
  --ink-muted: #6b7a8f;
  --line: #e6e4dc;
  --line-strong: #d4d2c8;
  --accent: #15803d;
  --accent-deep: #0f5d2e;
  --accent-soft: #e8f3ec;
  --warn: #b45309;
  --error: #b42318;
  --error-soft: #fdf0ef;
  --shadow-sm: 0 1px 2px rgba(15, 28, 46, 0.04), 0 1px 3px rgba(15, 28, 46, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 28, 46, 0.06), 0 2px 4px rgba(15, 28, 46, 0.04);
  --shadow-lg: 0 12px 32px rgba(15, 28, 46, 0.08), 0 4px 8px rgba(15, 28, 46, 0.04);
  --radius: 14px;
  --radius-lg: 20px;
  --bubble-them: #e9e9eb;
  --bubble-us: #2563eb;
  --bubble-alert-bg: #0f1c2e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.8vw, 4rem); line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); }
h3 { font-size: 1.2rem; }

p { color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -9999px; top: 10px; background: #fff; padding: 8px 12px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 10px; }

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

/* ============ NAV ============ */
.nav {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 250, 247, 0.85);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-wordmark { display: block; width: auto; height: 34px; }
.nav-links { display: none; gap: 28px; font-size: 0.95rem; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
@media (min-width: 800px) { .nav-links { display: flex; } }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.15s ease, background 0.2s ease;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-deep); transform: translateY(-1px); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
  line-height: 1.3;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.25);
}
.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(21, 128, 61, 0.35);
}
.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}
.btn-secondary:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-arrow { transition: transform 0.2s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn[disabled] { opacity: 0.6; cursor: default; transform: none !important; box-shadow: none; }

/* ============ SECTIONS ============ */
section { padding: 88px 0; }
@media (max-width: 700px) { section { padding: 64px 0; } }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-tag {
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-family: 'Inter Tight', sans-serif;
}
.section-head p { margin-top: 18px; font-size: 1.1rem; }

.eyebrow {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-deep);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

/* ============ PAGE HERO (subpages) ============ */
.page-hero { padding: 64px 0 24px; position: relative; overflow: hidden; }
.page-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 65%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.page-hero .container, .page-hero .container-narrow { position: relative; z-index: 1; }
.page-hero-sub { margin-top: 22px; font-size: 1.18rem; color: var(--ink-soft); max-width: 620px; line-height: 1.55; }

/* ============ CARDS ============ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 700px) { .card { padding: 24px 20px; } }

.card-soft {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

/* Numbered step rows (workflow lists) */
.steps { display: flex; flex-direction: column; gap: 14px; }
.step-row {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.step-row:hover { transform: translateY(-2px); border-color: var(--accent); }
.step-row-num {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
  flex-shrink: 0;
  min-width: 34px;
}
.step-row h3 { margin-bottom: 4px; font-size: 1.08rem; }
.step-row p { font-size: 0.98rem; line-height: 1.55; }

/* Check list */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink-soft); line-height: 1.5; }
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f5d2e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
}
.check-list strong { color: var(--ink); }

/* Link cards */
.link-cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .link-cards { grid-template-columns: repeat(2, 1fr); } }
.link-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.link-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-sm); }
.link-card-title { font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.link-card-sub { font-size: 0.88rem; color: var(--ink-muted); line-height: 1.45; }

/* ============ DEMO CALLOUT (keyword + number) ============ */
.demo-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(21, 128, 61, 0.25);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.demo-callout-label { font-weight: 600; color: var(--accent-deep); font-size: 0.98rem; }
.demo-callout-number {
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 1.02rem;
}
.demo-callout-fine {
  flex-basis: 100%;
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.45;
}
.demo-callout-fine a { text-decoration: underline; text-underline-offset: 2px; }
.demo-callout-fine a:hover { color: var(--ink); }

.kw {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  border-radius: 7px;
  padding: 1px 9px;
  font-weight: 600;
  font-size: 0.9em;
  letter-spacing: 0.03em;
}

/* ============ TEXT LINKS ============ */
.inline-link { color: var(--accent-deep); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.inline-link:hover { color: var(--ink); }

/* ============ FORMS ============ */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 22px; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.field .hint { font-size: 0.85rem; color: var(--ink-muted); margin-top: -2px; }
.field .optional { font-weight: 500; color: var(--ink-muted); font-size: 0.85em; }

input[type="text"], input[type="tel"], input[type="email"], input[type="url"], select, textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  padding: 13px 14px;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:hover, select:hover, textarea:hover { border-color: var(--ink-muted); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.12); outline: none; }
textarea { resize: vertical; min-height: 110px; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233a4a5f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 42px; }

.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
.field-error { display: none; font-size: 0.85rem; color: var(--error); font-weight: 500; }
.field.invalid .field-error { display: block; }

.choice-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 560px) { .choice-grid { grid-template-columns: repeat(2, 1fr); } }
.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  padding: 11px 13px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.choice:hover { border-color: var(--ink-muted); }
.choice input { width: auto; accent-color: var(--accent); flex-shrink: 0; margin: 0; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }

/* Honeypot: hidden from humans, present for bots */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Form status banners */
.form-status { border-radius: var(--radius); padding: 18px 20px; margin-bottom: 22px; font-size: 0.98rem; line-height: 1.55; display: none; }
.form-status.error { display: block; background: var(--error-soft); border: 1px solid rgba(180, 35, 24, 0.3); color: #7a1c12; }
.form-status.error a { text-decoration: underline; font-weight: 600; }

.form-success { display: none; text-align: center; padding: 24px 8px; }
.form-success.visible { display: block; }
.form-success-icon {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-deep);
}
.form-success h3 { font-size: 1.5rem; margin-bottom: 10px; }
.form-success p { max-width: 420px; margin: 0 auto 8px; }

/* ============ LEGAL PROSE ============ */
.legal-main { max-width: 820px; margin: 0 auto; padding: 56px 24px 88px; }
.legal-main h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin-bottom: 12px; }
.legal-main .legal-dates { color: var(--ink-muted); font-size: 0.92rem; margin-bottom: 8px; }
.legal-main h2 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 38px 0 12px;
}
.legal-main p { margin-bottom: 14px; line-height: 1.65; }
.legal-main ul { padding-left: 24px; margin-bottom: 14px; color: var(--ink-soft); }
.legal-main ul li { margin: 8px 0; line-height: 1.6; }
.legal-main a { color: var(--accent-deep); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.legal-main a:hover { color: var(--ink); }
.legal-meta {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 22px 0;
  font-size: 0.96rem;
}
.legal-meta p { margin: 0; }

/* ============ FOOTER ============ */
footer {
  background: var(--ink);
  color: #8a99af;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
}
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; max-width: 340px; }
.footer-brand-line { color: #b8c5d6; }
.footer-fine { font-size: 0.8rem; line-height: 1.5; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
footer a { color: #b8c5d6; }
footer a:hover { color: #fff; }

/* ============ ANIMATION ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.page-hero .eyebrow, .page-hero h1, .page-hero .page-hero-sub { animation: fadeUp 0.6s ease backwards; }
.page-hero .eyebrow { animation-delay: 0.05s; }
.page-hero h1 { animation-delay: 0.15s; }
.page-hero .page-hero-sub { animation-delay: 0.25s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
