/* Carevetta public pages: home, pricing, terms, privacy, sign-up, set-up link, 404. Phone first, light and dark. */
:root { color-scheme: light dark;
  --bg: #ffffff; --soft: #f5f6f8; --text: #111c24; --muted: #5a6872; --line: #e1e5e9; --brand: #0e5a66; --brand-ink: #fff;
  --brand-soft: #e6f1f3; --warn-bg: #fdf0c4; --warn: #6b4800; --err: #b42318; --focus: #1a6fc4; accent-color: var(--brand); }
@media (prefers-color-scheme: dark) { :root { --bg: #0d1316; --soft: #161e22; --text: #e6edef; --muted: #9eadb3; --line: #2a363d;
  --brand: #5cc4d1; --brand-ink: #062b31; --brand-soft: #15343a; --warn-bg: #3a2f0c; --warn: #f5d47a; --err: #ff8a7d; --focus: #8ab8ff; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
header.site { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 2; }
header.site .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; margin-right: auto; }
nav.links { display: flex; gap: 6px 16px; align-items: center; flex-wrap: wrap; }
nav.links a { text-decoration: none; color: var(--text); font-size: 15px; }
.btn { display: inline-block; border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; font: inherit; font-weight: 600; text-decoration: none; color: var(--text); background: var(--bg); cursor: pointer; }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn.wide { width: 100%; text-align: center; }
nav.links .btn { padding: 7px 12px; }
.draft { background: var(--warn-bg); color: var(--warn); padding: 10px 14px; border-radius: 10px; font-size: 14px; margin: 16px 0; }
.hero { padding: 48px 0 32px; }
.hero h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 14px; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 0 22px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.small { font-size: 14px; color: var(--muted); }
section.band { padding: 36px 0; border-top: 1px solid var(--line); }
section.band.soft { background: var(--soft); }
h2 { font-size: 26px; letter-spacing: -.01em; margin: 0 0 16px; line-height: 1.2; }
h3 { font-size: 17px; margin: 0 0 6px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: var(--bg); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.plan { border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.plan.best { border: 2px solid var(--brand); }
.price { font-size: 38px; font-weight: 700; letter-spacing: -.02em; }
.price span { font-size: 16px; font-weight: 500; color: var(--muted); }
ul.ticks { margin: 0; padding-left: 20px; }
ul.ticks li { margin: 4px 0; }
.toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 0 0 18px; }
.toggle button { font: inherit; border: 0; padding: 8px 14px; background: var(--bg); color: var(--text); cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin: 8px 0 0; color: var(--muted); }
footer.site { border-top: 1px solid var(--line); padding: 26px 0 40px; font-size: 14px; color: var(--muted); }
footer.site nav { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-bottom: 10px; }
.legal h2 { font-size: 20px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--text); }
form.box, div.box { border: 1px solid var(--line); border-radius: 14px; padding: 22px; max-width: 460px; margin: 28px auto; background: var(--bg); }
form.box h1, div.box h1 { font-size: 26px; margin: 0 0 6px; }
.field { display: block; margin: 14px 0; }
.field span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.field input { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 15px; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.error { color: var(--err); font-weight: 600; min-height: 1.4em; margin: 8px 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.note { background: var(--brand-soft); border-radius: 10px; padding: 12px 14px; font-size: 15px; }
.legal h1.top { margin-top: 28px; }

/* 0.11.2 home page (sales page rewrite). Phone first; no images; reveal = progressive enhancement only. */
.skip { position: absolute; left: -10000px; top: 8px; background: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 5; }
.skip:focus { left: 8px; }
.center { text-align: center; }
.cta.center { justify-content: center; }
.sub { color: var(--muted); font-size: 17px; max-width: 640px; margin: -6px 0 24px; }
.sub.center { margin-left: auto; margin-right: auto; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin: 0 0 10px; }
.btn.big { padding: 13px 20px; font-size: 17px; border-radius: 12px; }
.hero2 { padding: 40px 0 44px; background: linear-gradient(180deg, var(--brand-soft), var(--bg) 85%); }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } .hero2 { padding: 64px 0 64px; } }
.hero2 h1 { font-size: clamp(32px, 6.2vw, 52px); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 16px; text-wrap: balance; }
.hero2 .lead { font-size: 19px; color: var(--muted); max-width: 600px; margin: 0 0 24px; }
ul.assure { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); }
ul.assure li::before { content: "\2713"; color: var(--brand); font-weight: 700; margin-right: 6px; }

.mock { margin: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); box-shadow: 0 24px 60px -24px rgb(14 90 102 / .35); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--soft); font-size: 14px; }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-bar b { margin-left: 8px; }
.mock-body { padding: 18px; }
.score { display: flex; gap: 14px; align-items: center; font-size: 15px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.muted { color: var(--muted); }
.ring { flex: none; width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--brand) 0 92%, var(--line) 92% 100%); }
.ring span { width: 52px; height: 52px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
ol.needs { list-style: none; margin: 0; padding: 0; }
ol.needs li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
ol.needs li:last-child { border-bottom: 0; }
ol.needs div { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 15px; line-height: 1.3; }
ol.needs span { color: var(--muted); font-size: 13px; }
ol.needs em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--brand); border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #d92d20; } .dot.amber { background: #e3a008; } .dot.blue { background: #2e7cd6; }
.mock figcaption { font-size: 12px; color: var(--muted); padding: 8px 14px; border-top: 1px solid var(--line); background: var(--soft); }

.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card h3 { font-size: 18px; }
.card.pain { border-top: 4px solid #e3a008; }
.card.trust { border-top: 4px solid var(--brand); }

ol.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
ol.steps li { border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
ol.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 700; margin-bottom: 10px; }

.compare-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
table.compare { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.compare td:nth-child(2) { color: var(--muted); }
.compare td:nth-child(3) { font-weight: 600; }
.compare td:nth-child(3)::before { content: "\2713  "; color: var(--brand); }

section.band.dark { background: #0e3f47; color: #eaf6f7; border-top: 0; }
section.band.dark .eyebrow { color: #8fd9e2; }
.kit { display: grid; gap: 24px; align-items: center; padding-top: 12px; padding-bottom: 12px; }
@media (min-width: 880px) { .kit { grid-template-columns: 1fr 1fr; } }
.kit p { color: #c6e3e6; font-size: 17px; }
ul.kitlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
ul.kitlist li { background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .14); border-radius: 12px; padding: 12px 14px; }

.founder p { font-size: 17px; }
.plans { max-width: 640px; margin: 0 auto 14px; }
.founding { max-width: 640px; margin: 18px auto 0; background: var(--brand-soft); border-radius: 12px; padding: 14px 16px; font-size: 15px; }

.faq summary { list-style: none; display: flex; align-items: center; gap: .6ch; padding: 4px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ""; flex: none; width: .55em; height: .55em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: -45deg; margin-right: 4px; }
.faq details[open] > summary::before { rotate: 45deg; }
.faq details::details-content { interpolate-size: allow-keywords; overflow: clip; contain: layout; }
.faq details:not([open])::details-content { block-size: 0; }
section.band.final { background: linear-gradient(180deg, var(--bg), var(--brand-soft)); padding: 56px 0; }

@media (prefers-reduced-motion: no-preference) {
  .faq summary::before { transition: rotate .2s; }
  .faq details::details-content { transition: block-size, content-visibility; transition-duration: .3s; transition-timing-function: ease-in-out; transition-behavior: allow-discrete; }
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes rise { from { opacity: 0; translate: 0 24px; } }
    .reveal { animation: rise auto ease-out backwards; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}
@media (max-width: 560px) { nav.links .wide-only { display: none; } header.site .wrap { flex-wrap: nowrap; } }
[id] { scroll-margin-top: 76px; }
