/* CareDay Family: mint ground from the icon, forest ink, coral for the one action that matters (download). */
:root {
  --bg: #F3F8F6;
  --surface: #FFFFFF;
  --band: #CFE4DE;
  --ink: #17302A;
  --muted: #4A5F58;
  --line: #D6E4DF;
  --sage: #A3BE98;
  --forest: #2D4F3A;
  --coral: #D4574A;
  --cta: #C44B3F;
  --cta-ink: #FFFFFF;
  --link: #2D6A4F;
  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1A17; --surface: #16241F; --band: #1B2F29; --ink: #E4EFEA; --muted: #A2B6AE;
    --line: #2A3D37; --sage: #6F8F66; --forest: #9CC7A6; --coral: #F08273;
    --cta: #F08273; --cta-ink: #1B0F0C; --link: #9CC7A6; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1A17; --surface: #16241F; --band: #1B2F29; --ink: #E4EFEA; --muted: #A2B6AE;
  --line: #2A3D37; --sage: #6F8F66; --forest: #9CC7A6; --coral: #F08273;
  --cta: #F08273; --cta-ink: #1B0F0C; --link: #9CC7A6; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%; max-width: 1080px; margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a.btn, .nav a.btn:hover { color: var(--cta-ink); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0; }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--forest); }

.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px;
  border-radius: 999px; background: var(--cta); color: var(--cta-ink); font-weight: 700; text-decoration: none;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; }
.btn-quiet { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }

/* Hero */
.hero { background: var(--band); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; padding-block: 72px; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-top: 12px; }
.hero p.lede { font-size: 1.2rem; color: var(--muted); max-width: 34ch; margin: 18px 0 28px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }

.phone-note { display: flex; flex-direction: column; gap: 14px; }
.note {
  background: var(--surface); border-radius: 22px; padding: 16px 18px; display: grid;
  grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: start;
  box-shadow: 0 10px 30px rgba(23, 48, 42, 0.12);
}
.note img { width: 44px; height: 44px; border-radius: 10px; }
.note .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 0.8rem; color: var(--muted); }
.note .meta b { color: var(--ink); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.74rem; }
.note .title { font-weight: 700; margin-top: 2px; }
.note .body { color: var(--muted); font-size: 0.95rem; }
.note.later { opacity: 0.75; transform: scale(0.96); transform-origin: top center; }
.caption { font-size: 0.8rem; color: var(--muted); text-align: center; }

/* Stat */
.stat { padding-block: 80px; }
.stat .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.big { font-family: var(--font-display); font-size: clamp(4.5rem, 12vw, 8rem); line-height: 0.95; color: var(--coral); }
.big small { display: block; font-family: var(--font-body); font-size: 1.05rem; color: var(--ink); font-weight: 700; margin-top: 10px; line-height: 1.4; }
.stat p { color: var(--muted); max-width: 52ch; margin: 0 0 14px; }
.dots { display: grid; grid-template-columns: repeat(10, 18px); gap: 8px; margin-bottom: 22px; }
.dots span { width: 18px; height: 18px; border-radius: 5px; background: var(--sage); }
.dots span.miss { background: var(--coral); }
.source { font-size: 0.85rem; }

/* Features */
.features { padding-block: 72px; border-top: 1px solid var(--line); }
.features h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); max-width: 22ch; margin-bottom: 36px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.feature h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; margin: 14px 0 6px; }
.feature p { margin: 0; color: var(--muted); }
.feature svg { width: 32px; height: 32px; color: var(--forest); }

/* Blog teaser + list */
.posts { padding-block: 72px; border-top: 1px solid var(--line); }
.posts-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.posts-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card {
  display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.post-card:hover { border-color: var(--sage); }
.post-card h3 { font-size: 1.45rem; }
.post-card p { margin: 0; color: var(--muted); }
.tag { align-self: flex-start; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--forest); background: var(--band); padding: 4px 10px; border-radius: 999px; }
.read { margin-top: auto; font-weight: 700; color: var(--link); }

/* CTA band */
.cta-band { background: var(--forest); color: var(--bg); }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: 48px; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--bg); max-width: 24ch; }

.site-foot { padding-block: 32px; color: var(--muted); font-size: 0.9rem; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Article */
.article { padding-block: 56px 80px; }
.article .wrap { max-width: 760px; }
.article header { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.article h1 { font-size: clamp(2.1rem, 5vw, 3rem); }
.byline { color: var(--muted); font-size: 0.95rem; }
.prose { max-width: 65ch; }
.prose h2 { font-size: 1.7rem; margin: 44px 0 12px; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 8px; }
.pullstat { margin: 32px 0; padding: 24px 26px; border-radius: 18px; background: var(--band); display: grid; gap: 4px; }
.pullstat b { font-family: var(--font-display); font-weight: 400; font-size: 2.6rem; line-height: 1; color: var(--coral); }
.fill { background: color-mix(in srgb, var(--coral) 18%, transparent); padding: 1px 4px; border-radius: 4px; }
.sources { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }
.sources ol { padding-left: 1.2em; display: grid; gap: 6px; }

.page-title { padding-block: 56px 8px; }
.page-title h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.page-title p { color: var(--muted); max-width: 52ch; }

@media (max-width: 760px) {
  .hero .wrap, .stat .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 48px; }
  .stat { padding-block: 0; }
  .feature-grid, .post-list { grid-template-columns: minmax(0, 1fr); }
  .nav { gap: 16px; }
  .dots { grid-template-columns: repeat(10, minmax(0, 18px)); gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Visuals ---------- */
.visual { margin: 36px 0; padding: 28px; border-radius: 22px; background: var(--band); display: grid; gap: 18px; }
.visual figcaption { font-size: 0.9rem; color: var(--muted); text-align: center; }
.screen { background: var(--surface); border-radius: 24px; padding: 18px; border: 1px solid var(--line); display: grid; gap: 12px; min-width: 0; }
.screen-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--forest); display: flex; align-items: center; gap: 8px; }
.avatar { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 0.75rem; font-weight: 700; color: var(--surface); background: var(--forest); letter-spacing: 0; }
.avatar.b { background: var(--coral); }
.appt { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: var(--bg); }
.appt.new { outline: 2px solid var(--coral); outline-offset: -2px; }
.datebox { border-radius: 10px; background: var(--surface); border: 1px solid var(--line); text-align: center; padding: 4px 0; line-height: 1.1; }
.datebox span { display: block; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; color: var(--coral); text-transform: uppercase; }
.datebox b { font-size: 1.15rem; }
.appt .who { font-size: 0.78rem; color: var(--muted); }
.appt .what { font-weight: 700; font-size: 0.95rem; line-height: 1.3; }
.banner { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--band); font-size: 0.88rem; }
.banner img { width: 30px; height: 30px; border-radius: 7px; }

.share { display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); gap: 12px; align-items: center; }
.sync { width: 48px; height: 48px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--forest); border: 1px solid var(--line); }
.sync svg { width: 24px; height: 24px; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: var(--sage); }
.timeline li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 16px; align-items: start; position: relative; }
.timeline .pin { width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 3px solid var(--sage); margin-top: 12px; }
.timeline li.final .pin { background: var(--coral); border-color: var(--coral); }
.timeline .when { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--forest); margin-bottom: 6px; }
.timeline .note { box-shadow: none; border: 1px solid var(--line); border-radius: 18px; }
.timeline li.final .note { background: var(--forest); color: var(--bg); border-color: var(--forest); }
.timeline li.final .note .body, .timeline li.final .note .meta { color: var(--bg); opacity: 0.85; }
.timeline li.final .note .meta b { color: var(--bg); }

.months { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; position: relative; }
.months div { text-align: center; font-size: 0.78rem; font-weight: 600; color: var(--muted); display: grid; gap: 6px; justify-items: center; }
.months div::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--sage); opacity: 0.5; }
.months div.start::before { opacity: 1; background: var(--forest); }
.months div.end::before { opacity: 1; background: var(--coral); }
.months div.start, .months div.end { color: var(--ink); }
.cal { background: var(--surface); border-radius: 20px; border: 1px solid var(--line); padding: 18px; display: grid; gap: 12px; }
.cal-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cal-head h3 { font-size: 1.4rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; font-variant-numeric: tabular-nums; }
.cal-grid .dow { font-size: 0.72rem; font-weight: 700; color: var(--muted); padding-bottom: 4px; }
.cal-grid .d { aspect-ratio: 1; max-width: 100%; display: grid; place-items: center; border-radius: 10px; font-size: 0.92rem; color: var(--ink); }
.cal-grid .d.remind { background: var(--band); }
.cal-grid .d.hit { background: var(--coral); color: var(--surface); font-weight: 700; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.85rem; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }

.split { padding-block: 72px; border-top: 1px solid var(--line); }
.split .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.split h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin: 10px 0 14px; }
.split p { color: var(--muted); max-width: 46ch; margin: 0 0 12px; }
.split .visual { margin: 0; }

@media (max-width: 760px) {
  .share { grid-template-columns: minmax(0, 1fr); justify-items: stretch; }
  .sync { justify-self: center; transform: rotate(90deg); }
  .split .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .visual { padding: 18px; }
  .months div { font-size: 0.7rem; }
}
.prose .timeline { padding-left: 0; }

/* ── App screenshots strip ── */
.screens .wrap { padding-block: 64px; }
.screens h2 { text-align: center; }
.screens-sub { text-align: center; color: var(--muted); margin: 8px auto 28px; max-width: 34rem; }
.shot-strip {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 4px 16px; -webkit-overflow-scrolling: touch;
}
.shot-strip:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; border-radius: 12px; }
.shot { flex: 0 0 min(240px, 70vw); scroll-snap-align: center; margin: 0; }
.shot img {
  width: 100%; height: auto; display: block; border-radius: 18px;
  box-shadow: 0 6px 24px rgba(23, 48, 42, 0.12); border: 1px solid var(--line);
}
