/* CareNod website. Warm, calm, readable: large type, generous spacing,
   high contrast. Matches the app's teal. Light and dark themes. */

:root {
  --teal: #1d6f6a;
  --teal-strong: #155651;
  --teal-soft: #e3f1ef;
  --ok: #2e7d32;
  --sos: #c62828;
  --bg: #f7f5f0;
  --surface: #ffffff;
  --text: #1f2a2a;
  --muted: #4f5d5c;
  --line: #dde3e1;
  --radius: 20px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px rgb(0 0 0 / 0.06);
  --max: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --teal: #6cc2bb;
    --teal-strong: #8fd4ce;
    --teal-soft: #17302e;
    --ok: #7bc47f;
    --bg: #0f1514;
    --surface: #18201f;
    --text: #e8eeed;
    --muted: #a7b5b3;
    --line: #2a3533;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.125rem/1.65 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-strong); }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* Header ------------------------------------------------------------------ */

.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.35rem; }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; gap: 20px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--text); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 14px; border: 0;
  background: var(--teal); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
@media (prefers-color-scheme: dark) { .btn { color: #0f1514; } }
.btn:hover { background: var(--teal-strong); color: #fff; }
@media (prefers-color-scheme: dark) { .btn:hover { color: #0f1514; } }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--teal); border: 2px solid var(--line); }
.btn-ghost:hover { background: var(--teal-soft); color: var(--teal-strong); }

/* Hero -------------------------------------------------------------------- */

.hero { padding: 48px 0 72px; }
.hero .wrap { display: grid; gap: 48px; align-items: center; grid-template-columns: 1.1fr 0.9fr; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }
.eyebrow { display: inline-block; background: var(--teal-soft); color: var(--teal-strong); padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.1; letter-spacing: -0.02em; margin: 18px 0 16px; }
.lead { font-size: 1.3rem; color: var(--muted); margin: 0 0 28px; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { margin-top: 20px; color: var(--muted); font-size: 1rem; }

/* Phone mock-up (pure CSS, mirrors the parent's home screen) */
.phone {
  justify-self: center; width: min(320px, 100%); aspect-ratio: 9 / 18.5;
  background: var(--surface); border: 10px solid #1f2a2a; border-radius: 40px; padding: 26px 18px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px;
}
.phone .hello { font-size: 1.25rem; font-weight: 600; }
.phone .ok, .phone .sos { border-radius: 22px; color: #fff; text-align: center; font-weight: 800; display: grid; place-items: center; }
.phone .ok { background: var(--ok); flex: 1.3; font-size: 2.2rem; }
.phone .ok small, .phone .sos small { display: block; font-weight: 500; font-size: 0.85rem; margin-top: 4px; }
.phone .sos { background: var(--sos); flex: 0.8; font-size: 1.7rem; }
.phone .note { font-size: 0.85rem; color: var(--muted); text-align: center; }

/* Sections ---------------------------------------------------------------- */

section { padding: 64px 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 12px; }
.section-lead { color: var(--muted); font-size: 1.2rem; max-width: 40rem; margin: 0 0 36px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
section.alt .card { background: var(--bg); box-shadow: none; }
.card h3 { margin: 12px 0 6px; font-size: 1.25rem; }
.card p { margin: 0; color: var(--muted); }
.icon { width: 48px; height: 48px; border-radius: 14px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; }
.icon svg { width: 26px; height: 26px; }

.steps { counter-reset: step; }
.steps .card::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal); color: #fff; font-weight: 700;
}
@media (prefers-color-scheme: dark) { .steps .card::before { color: #0f1514; } }

/* Pricing */
.price { font-size: 2.2rem; font-weight: 800; margin: 8px 0 0; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.card ul { padding-left: 1.2em; margin: 16px 0 0; color: var(--text); }
.card li { margin: 6px 0; }
.card.featured { border: 2px solid var(--teal); }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; font-size: 1.15rem; }
details p { color: var(--muted); margin: 12px 0 0; }

/* Waitlist form ----------------------------------------------------------- */

.waitlist { background: var(--teal); color: #fff; border-radius: 28px; padding: clamp(28px, 5vw, 56px); }
@media (prefers-color-scheme: dark) { .waitlist { background: var(--teal-soft); color: var(--text); } }
.waitlist h2 { color: inherit; }
.waitlist p { opacity: 0.92; }
.form { display: grid; gap: 14px; max-width: 560px; margin-top: 24px; }
.form .row { display: flex; gap: 12px; flex-wrap: wrap; }
.form input[type="email"], .form select {
  flex: 1 1 220px; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 2px solid transparent;
  font: inherit; color: var(--text); background: #fff;
}
@media (prefers-color-scheme: dark) { .form input[type="email"], .form select { background: var(--surface); border-color: var(--line); } }
.form .btn { background: #fff; color: var(--teal-strong); }
.form .btn:hover { background: var(--teal-soft); }
@media (prefers-color-scheme: dark) { .form .btn { background: var(--teal); color: #0f1514; } }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; }
.consent input { width: 22px; height: 22px; margin-top: 3px; flex: none; }
.form-status { min-height: 1.6em; font-weight: 600; }
.hp { position: absolute; left: -5000px; }
.waitlist a { color: inherit; }

/* Legal pages ------------------------------------------------------------- */

.legal { padding: 24px 0 72px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.5rem; margin-top: 40px; }
.legal h3 { font-size: 1.2rem; margin-top: 28px; }
.legal .updated { color: var(--muted); }
.legal table { width: 100%; border-collapse: collapse; font-size: 1rem; margin: 16px 0; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { background: var(--teal-soft); }
.callout { background: var(--teal-soft); border-radius: 16px; padding: 16px 20px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 24px; }
.toc ol { margin: 8px 0 0; padding-left: 1.2em; }

/* Footer ------------------------------------------------------------------ */

.site-footer { padding: 40px 0 56px; color: var(--muted); font-size: 1rem; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted); }

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

/* The nav's link colour must not override buttons inside it. */
.nav a.btn { color: #fff; }
.nav a.btn:hover { color: #fff; }
@media (prefers-color-scheme: dark) { .nav a.btn, .nav a.btn:hover { color: #0f1514; } }
