/* Care Agency CRM — landing page. Brand: burnt orange, black, white. */
:root {
  --orange: #CC5500;
  --orange-text: #A84500;   /* small orange text on white (AA) */
  --ember: #E2691F;
  --clay: #F6E6DA;
  --clay-2: #FBF3EC;
  --ink: #0B0B0B;
  --charcoal: #1E1E1E;
  --graphite: #2A2A2A;
  --muted: #5C5650;
  --muted-light: #B9B3AD;
  --line: #E8E1DA;
  --bone: #FAF8F5;
  --white: #FFFFFF;
  --ok: #1F8A4C;
  --warn: #C98A00;
  --bad: #B42318;

  --font-head: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgb(11 11 11 / .06), 0 8px 24px rgb(11 11 11 / .06);
  --wrap: 1180px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 800; max-width: 22ch; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 28px; } }
.wrap--narrow { max-width: 860px; }

.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; font: 600 1rem/1 var(--font-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, transform .15s, border-color .15s; }
.btn .ic { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: var(--ember); }
.btn--ghost { color: var(--white); border-color: rgb(255 255 255 / .28); }
.btn--ghost:hover { border-color: var(--white); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--charcoal); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgb(11 11 11 / .92); backdrop-filter: saturate(1.4) blur(10px); color: var(--white); border-bottom: 1px solid rgb(255 255 255 / .08); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.1rem/1 var(--font-head); letter-spacing: -0.01em; white-space: nowrap; }
.brand b { color: var(--orange); font-weight: 800; }
.nav__links { display: none; list-style: none; margin: 0; padding: 0; gap: 28px; }
.nav__links a { text-decoration: none; color: var(--muted-light); font-weight: 500; font-size: .95rem; }
.nav__links a:hover { color: var(--white); }
@media (min-width: 900px) { .nav__links { display: flex; } }
@media (max-width: 420px) { .brand span { font-size: .98rem; } .nav .btn--sm { padding: 0 12px; font-size: .88rem; } }

/* Dark sections */
.dark { background: var(--ink); color: var(--white); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 720px; height: 720px; background: radial-gradient(closest-side, rgb(204 85 0 / .35), transparent 70%); pointer-events: none; }
.hero__grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } .hero { padding: 104px 0 120px; } }
.eyebrow { display: inline-block; font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--clay); background: rgb(204 85 0 / .18); border: 1px solid rgb(204 85 0 / .45); padding: 6px 12px; border-radius: 999px; margin-bottom: 22px; }
.accent { color: var(--orange); }
.lede { margin-top: 22px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #D9D4CF; max-width: 58ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.trust { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; color: var(--muted-light); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

/* Hero mock dashboard */
.mock { background: var(--charcoal); border: 1px solid rgb(255 255 255 / .1); border-radius: var(--radius-lg); box-shadow: 0 30px 80px rgb(0 0 0 / .55), 0 0 0 1px rgb(204 85 0 / .15); overflow: hidden; }
.mock__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgb(255 255 255 / .08); background: #161616; }
.mock__bar span { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3a; }
.mock__bar span:first-child { background: var(--orange); }
.mock__bar em { margin-left: 10px; font-style: normal; font-size: .82rem; color: var(--muted-light); }
.mock__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; }
.tile { background: var(--graphite); border: 1px solid rgb(255 255 255 / .06); border-radius: 12px; padding: 14px; min-width: 0; }
.tile small { display: block; font-size: .75rem; color: var(--muted-light); text-transform: uppercase; letter-spacing: .05em; }
.tile strong { display: block; font: 800 2rem/1.1 var(--font-head); margin-top: 6px; }
.tile strong span { font-size: 1.1rem; color: var(--muted-light); font-weight: 600; }
.tile p { font-size: .82rem; color: #CFC9C3; margin-top: 4px; }
.tile--alert { background: linear-gradient(160deg, #3a1a05, var(--graphite)); border-color: rgb(204 85 0 / .55); }
.tile--alert strong { color: var(--ember); }
.tile--wide { grid-column: 1 / -1; }
.meter { height: 6px; border-radius: 6px; background: rgb(255 255 255 / .1); margin-top: 10px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--orange); border-radius: inherit; }
.feed { display: grid; gap: 10px; }
.feed__row { display: flex; align-items: center; gap: 10px; font-size: .86rem; color: #E8E3DE; min-width: 0; }
.feed__row .ic { width: 18px; height: 18px; color: var(--orange); }
.feed__row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { font-style: normal; font-size: .72rem; font-weight: 600; padding: 4px 8px; border-radius: 999px; background: rgb(204 85 0 / .2); color: #FFB98A; white-space: nowrap; }
.pill--ok { background: rgb(31 138 76 / .22); color: #7FE0A6; }
.pill--warn { background: rgb(201 138 0 / .22); color: #F5CC6B; }
@media (max-width: 380px) { .mock__body { grid-template-columns: 1fr; } }

/* Sections */
.section { padding: 80px 0; }
@media (min-width: 900px) { .section { padding: 112px 0; } }
.section--clay { background: var(--clay-2); }
.kicker { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-text); margin-bottom: 14px; }
.kicker--light { color: var(--ember); }
.kicker--ink { color: var(--ink); }
.section__lede { margin-top: 18px; font-size: 1.12rem; color: var(--muted); max-width: 70ch; }

.grid { display: grid; gap: 20px; margin-top: 48px; }
@media (min-width: 720px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin-top: 18px; }
.card p { margin-top: 10px; color: var(--muted); }
.icon-tile { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--clay); color: var(--orange-text); }
.icon-tile--dark { background: var(--ink); color: var(--orange); }

/* Stats */
.stats { display: grid; gap: 16px; margin: 48px 0 0; }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stats > div { border-left: 4px solid var(--orange); padding: 6px 0 6px 18px; }
.stats dt { font: 800 2rem/1.1 var(--font-head); color: var(--ink); }
.stats dd { margin: 6px 0 0; color: var(--muted); }
.stats sup a { color: var(--orange-text); text-decoration: none; font-weight: 700; padding: 0 2px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 20px; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { display: flex; gap: 18px; background: var(--white); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.steps__n { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: var(--white); display: grid; place-items: center; font: 800 1.2rem/1 var(--font-head); }
.steps h3 { display: flex; align-items: center; gap: 8px; }
.steps h3 .ic { color: var(--orange-text); width: 20px; height: 20px; }
.steps p { margin-top: 8px; color: var(--muted); }

/* Features */
.feature { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.feature:hover { border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-2px); }
.feature h3 { margin-top: 18px; }
.feature p { margin-top: 10px; color: var(--muted); }
.feature__win { font-weight: 700; color: var(--ink) !important; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 18px !important; }
.chips { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { font-size: .92rem; font-weight: 500; padding: 8px 14px; border-radius: 999px; background: var(--bone); border: 1px solid var(--line); }

/* Integrations */
#integrations h2 { max-width: 26ch; }
.strip__label { margin-top: 44px; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-light); font-family: var(--font-body); font-weight: 600; }
.strip__label span { text-transform: none; letter-spacing: 0; color: var(--ember); }
.strip { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.strip li { font: 700 1rem/1 var(--font-head); padding: 14px 18px; border-radius: 12px; background: var(--charcoal); border: 1px solid rgb(255 255 255 / .1); }
.strip--ga li { background: rgb(204 85 0 / .14); border-color: rgb(204 85 0 / .55); color: #FFD9BF; }
.fineprint { margin-top: 20px; font-size: .85rem; color: var(--muted); }
.fineprint--light { color: #9B958F; }

/* Comparison */
.table-wrap { margin-top: 40px; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.compare { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .98rem; }
.compare th, .compare td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--ink); color: var(--white); font-family: var(--font-head); font-size: 1rem; }
.compare thead th.us { background: var(--orange); }
.compare tbody th { font-weight: 600; width: 22%; background: var(--bone); }
.compare td { color: var(--muted); }
.compare td.us { color: var(--ink); font-weight: 500; background: #FFF8F2; }
.compare tr:last-child > * { border-bottom: 0; }
@media (max-width: 640px) {
  .table-wrap { overflow: visible; border: 0; box-shadow: none; }
  .compare { min-width: 0; }
  .compare thead { display: none; }
  .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100% !important; }
  .compare tr { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; box-shadow: var(--shadow); }
  .compare th, .compare td { padding: 12px 16px; }
  .compare td::before { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
  .compare td.us::before { content: "Care Agency CRM"; color: var(--orange-text); }
  .compare td:not(.us)::before { content: "Typical all-in-one"; color: var(--muted); }
  .compare tr:last-child > * { border-bottom: 1px solid var(--line); }
  .compare tr > *:last-child { border-bottom: 0 !important; }
}

/* Pricing teaser */
.pricing { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .pricing { grid-template-columns: 1.1fr .9fr; } }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.perks .ic { color: var(--white); background: var(--orange); border-radius: 50%; padding: 4px; width: 26px; height: 26px; }

/* FAQ */
.faq { margin-top: 36px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font: 700 1.08rem/1.35 var(--font-head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 500; color: var(--orange-text); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 70ch; }

/* Waitlist */
.waitlist { background: var(--orange); color: var(--ink); }
.waitlist__grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 980px) { .waitlist__grid { grid-template-columns: .8fr 1.2fr; gap: 56px; } .waitlist__copy { position: sticky; top: 110px; } }
.waitlist h2 { color: var(--ink); }
.waitlist__copy p:last-child { margin-top: 18px; font-size: 1.15rem; color: #1a0d03; max-width: 44ch; }
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: 28px 20px; box-shadow: 0 30px 70px rgb(60 20 0 / .3); }
@media (min-width: 600px) { .form-card { padding: 36px; } }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; padding: 0; }
.req { color: var(--orange-text); }
.opt { font-weight: 400; color: var(--muted); font-size: .82rem; margin-left: 4px; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--font-body); color: var(--ink); background: var(--bone);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 48px; transition: border-color .15s, background .15s;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); background: var(--white); box-shadow: 0 0 0 3px rgb(204 85 0 / .18); }
[aria-invalid="true"] { border-color: var(--bad) !important; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: .92rem; margin: 0; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bone); cursor: pointer; }
.checks label:has(input:checked) { border-color: var(--orange); background: #FFF3EA; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--orange); margin: 0; flex: none; }
.consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: .9rem !important; color: var(--muted); }
.consent input { margin-top: 3px; }
.consent a { color: var(--orange-text); }
.hint { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.err { font-size: .84rem; color: var(--bad); margin-top: 6px; min-height: 0; }
.err:empty { display: none; }
.form-note { text-align: center; font-size: .84rem; color: var(--muted); margin-top: 12px; }
.form-status { text-align: center; font-size: .9rem; margin-top: 8px; color: var(--bad); }
.form-status:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.success { text-align: center; padding: 24px 8px; }
.success:focus { outline: none; }
.success__icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--white); }
.success__icon .ic { width: 32px; height: 32px; stroke-width: 3; }
.success h3 { font-size: 1.6rem; }
.success p { margin-top: 12px; color: var(--muted); }
.success__stub { font-size: .84rem; background: var(--clay); color: var(--orange-text) !important; border-radius: 8px; padding: 8px 12px; display: inline-block; }

/* Sources + footer */
.sources { background: var(--bone); padding: 28px 0; font-size: .82rem; color: var(--muted); }
.sources ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.footer { padding: 56px 0 32px; }
.footer__grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1fr auto; align-items: start; } }
.footer__tag { margin-top: 12px; color: var(--muted-light); }
.footer__links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer__links a { color: var(--muted-light); text-decoration: none; font-size: .95rem; }
.footer__links a:hover { color: var(--white); }
.footer .fineprint { margin-top: 36px; border-top: 1px solid rgb(255 255 255 / .1); padding-top: 20px; }
