/* CareCompanion — site styles
   Tokens, layout, and components. No purple. Sage = HOME, Sunrise = WORK. */

:root {
  --cc-ink: #0E1B2C;
  --cc-ink-2: #1B2A40;
  --cc-sand: #F7F2EA;
  --cc-sand-2: #EFE7D8;
  --cc-sage: #7AA489;
  --cc-sage-700: #5E866D;
  --cc-sage-100: rgba(122, 164, 137, 0.15);
  --cc-sunrise: #E07A4B;
  --cc-sunrise-700: #B65E36;
  --cc-sunrise-100: rgba(224, 122, 75, 0.14);
  --cc-cloud: #FFFFFF;
  --cc-mist: #E6ECEF;

  --cc-radius-card: 16px;
  --cc-radius-pill: 999px;
  --cc-radius-sm: 10px;

  --cc-font-display: "Fraunces", Georgia, "Cooper", serif;
  --cc-font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --cc-shadow-sm: 0 1px 2px rgba(14, 27, 44, 0.06), 0 1px 1px rgba(14, 27, 44, 0.04);
  --cc-shadow-md: 0 8px 24px rgba(14, 27, 44, 0.08);

  --cc-max: 1160px;
}

/* Base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--cc-sand);
  color: var(--cc-ink);
  font-family: var(--cc-font-ui);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  section { padding: clamp(48px, 12vw, 80px) 0; }
}

img, svg { max-width: 100%; display: block; }
a { color: var(--cc-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--cc-sunrise);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Typography */
h1, h2, h3, .display {
  font-family: var(--cc-font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.4rem, 4.8vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.45rem); line-height: 1.2; }
p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; line-height: 1.5; color: var(--cc-ink-2); max-width: 56ch; }

/* Layout */
.container { max-width: var(--cc-max); margin: 0 auto; padding: 0 24px; }
section { padding: clamp(64px, 9vw, 112px) 0; }
section.tight { padding: clamp(40px, 6vw, 72px) 0; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cc-ink-2);
  margin-bottom: 14px;
  font-weight: 600;
}

/* Pills, chips, badges */
.cc-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: var(--cc-radius-pill);
  background: var(--cc-mist); color: var(--cc-ink);
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cc-pill--strong { background: var(--cc-ink); color: var(--cc-sand); padding: 10px 16px; font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 14px; }
.cc-pill--sage { background: var(--cc-sage-100); color: var(--cc-sage-700); }
.cc-pill--sunrise { background: var(--cc-sunrise-100); color: var(--cc-sunrise-700); }

.cc-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 10px; border-radius: 999px; font-weight: 500; }
.cc-chip--source { background: var(--cc-sage-100); color: var(--cc-sage-700); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  font-size: 1rem; font-weight: 600;
  border-radius: var(--cc-radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn--sage { background: var(--cc-sage); color: var(--cc-cloud); }
.btn--sage:hover { background: var(--cc-sage-700); color: var(--cc-cloud); }

.btn--sunrise { background: var(--cc-sunrise); color: var(--cc-cloud); }
.btn--sunrise:hover { background: var(--cc-sunrise-700); color: var(--cc-cloud); }

.btn--ghost-sage { background: transparent; color: var(--cc-sage-700); border-color: var(--cc-sage); }
.btn--ghost-sage:hover { background: var(--cc-sage); color: var(--cc-cloud); }

.btn--ghost-sunrise { background: transparent; color: var(--cc-sunrise-700); border-color: var(--cc-sunrise); }
.btn--ghost-sunrise:hover { background: var(--cc-sunrise); color: var(--cc-cloud); }

.btn--ghost-ink { background: transparent; color: var(--cc-ink); border-color: var(--cc-ink); }
.btn--ghost-ink:hover { background: var(--cc-ink); color: var(--cc-sand); }

.btn--lg { padding: 16px 26px; font-size: 1.05rem; }

/* Wordmark */
.cc-wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--cc-ink); }
.cc-wordmark__dot {
  width: 11px; height: 11px; border-radius: 999px; background: var(--cc-sage);
  box-shadow: 0 0 0 4px rgba(122,164,137,0.18);
}
.cc-wordmark--work .cc-wordmark__dot { background: var(--cc-sunrise); box-shadow: 0 0 0 4px rgba(224,122,75,0.18); }
.cc-wordmark__text { font-family: var(--cc-font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 242, 234, 0.85);
  backdrop-filter: saturate(120%) blur(8px);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--cc-mist);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.nav__links {
  display: flex; gap: 28px; align-items: center;
  list-style: none; padding: 0; margin: 0;
}
.nav__links a { font-weight: 500; font-size: 0.96rem; color: var(--cc-ink-2); }
.nav__links a:hover { color: var(--cc-ink); }
.nav__right { display: flex; gap: 12px; align-items: center; }

/* Language switch */
.lang-switch {
  display: inline-flex; align-items: center;
  padding: 3px;
  border-radius: var(--cc-radius-pill);
  background: var(--cc-mist);
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
}
.lang-switch a {
  padding: 5px 10px;
  border-radius: var(--cc-radius-pill);
  color: var(--cc-ink-2);
  text-decoration: none;
  line-height: 1;
}
.lang-switch a:hover { text-decoration: none; color: var(--cc-ink); }
.lang-switch a[aria-current="true"] {
  background: var(--cc-ink); color: var(--cc-sand);
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__right .btn { display: none; }
}
@media (max-width: 420px) {
  .nav__inner { padding: 12px 0; }
  .cc-wordmark__text { font-size: 19px; }
}

/* Hero */
.hero {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(64px, 9vw, 112px);
}
.hero__grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center;
}
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
}
.hero__title { font-size: clamp(2.4rem, 5.6vw, 4.4rem); margin-top: 18px; }
.hero__sub { font-size: 1.15rem; line-height: 1.5; color: var(--cc-ink-2); max-width: 56ch; margin-bottom: 28px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.hero__trust { font-size: 0.9rem; color: var(--cc-ink-2); max-width: 50ch; }
.hero__visual { display: flex; justify-content: center; }

@media (max-width: 520px) {
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__title { font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1.05; }
  .hero__sub { font-size: 1.05rem; }
}

/* Phone mockup */
.phone {
  width: min(360px, 92%);
  aspect-ratio: 9 / 19;
  background: var(--cc-ink);
  border-radius: 44px;
  padding: 14px;
  box-shadow: var(--cc-shadow-md);
  position: relative;
}
.phone::before {
  content: "";
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 24px; background: #000; border-radius: 0 0 18px 18px;
}
.phone__screen {
  width: 100%; height: 100%;
  background: var(--cc-sand);
  border-radius: 32px;
  overflow: hidden;
  display: flex; flex-direction: column;
  padding: 40px 18px 18px;
}
.phone__bar {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; font-weight: 600; color: var(--cc-ink-2);
  padding: 0 6px 14px;
}
.phone__bar .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--cc-sage); display: inline-block; margin-right: 6px; vertical-align: middle; }
.phone__q {
  font-family: var(--cc-font-display);
  font-size: 1.1rem; line-height: 1.25;
  color: var(--cc-ink);
  margin: 4px 0 16px;
}
.phone__card {
  background: var(--cc-cloud);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--cc-shadow-sm);
  margin-bottom: 12px;
}
.phone__card .label { font-size: 11px; font-weight: 600; color: var(--cc-sage-700); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.phone__card p { font-size: 0.92rem; line-height: 1.4; margin: 0 0 10px; color: var(--cc-ink); }
.phone__next {
  margin-top: auto;
  background: var(--cc-sage); color: var(--cc-cloud);
  padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: 0.95rem;
  text-align: center;
}
.phone--work .phone__bar .dot { background: var(--cc-sunrise); }
.phone--work .phone__card .label { color: var(--cc-sunrise-700); }
.phone--work .phone__next { background: var(--cc-sunrise); }

/* Partner strip */
.partners { background: var(--cc-sand-2); }
.partners__inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; justify-content: center; }
.partners__label { font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cc-ink-2); font-weight: 600; }
.partners__list { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; list-style: none; padding: 0; margin: 0; }
.partners__list li { color: var(--cc-ink-2); font-weight: 600; font-size: 0.95rem; }

/* Product split cards */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.product-card {
  background: var(--cc-cloud);
  border: 1px solid var(--cc-mist);
  border-radius: var(--cc-radius-card);
  padding: 36px;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 100%;
}
.product-card__accent {
  position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: var(--cc-sage);
}
.product-card--work .product-card__accent { background: var(--cc-sunrise); }
.product-card h3 { font-size: 1.7rem; margin: 14px 0 12px; }
.product-card ul { padding: 0; margin: 0 0 24px; list-style: none; }
.product-card li { padding: 8px 0 8px 26px; position: relative; color: var(--cc-ink-2); }
.product-card li::before {
  content: ""; position: absolute; left: 0; top: 16px;
  width: 14px; height: 14px; border-radius: 999px;
  background: var(--cc-sage-100); border: 2px solid var(--cc-sage);
}
.product-card--work li::before { background: var(--cc-sunrise-100); border-color: var(--cc-sunrise); }
.product-card .btn { align-self: flex-start; margin-top: auto; }

/* Steps */
.steps { counter-reset: step; }
.steps__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 0; margin: 0; list-style: none; }
@media (max-width: 860px) { .steps__list { grid-template-columns: 1fr; } }
.step {
  background: var(--cc-cloud);
  border: 1px solid var(--cc-mist);
  border-radius: var(--cc-radius-card);
  padding: 28px;
  position: relative;
}
.step__num {
  font-family: var(--cc-font-display);
  font-size: 2.4rem; line-height: 1; color: var(--cc-sage-700); font-weight: 600;
  margin-bottom: 12px;
  display: block;
}
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: var(--cc-ink-2); margin: 0; }
.steps--work .step__num { color: var(--cc-sunrise-700); }

/* Stats */
.stats { background: var(--cc-ink); color: var(--cc-sand); }
.stats h2 { color: var(--cc-sand); }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .stats__grid { grid-template-columns: 1fr; } }
.stat {
  padding: 28px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--cc-radius-card);
}
.stat__num { font-family: var(--cc-font-display); font-size: 2.6rem; font-weight: 600; color: var(--cc-sand); margin-bottom: 6px; }
.stat__label { font-size: 1rem; color: var(--cc-mist); margin-bottom: 8px; }
.stat__source { font-size: 0.8rem; color: rgba(230, 236, 239, 0.7); font-style: italic; }
.stats__note { color: var(--cc-mist); max-width: 70ch; margin-top: 28px; font-size: 1.02rem; }

/* Voices */
.voices__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) { .voices__grid { grid-template-columns: 1fr; } }
.voice {
  background: var(--cc-cloud);
  border: 1px solid var(--cc-mist);
  border-radius: var(--cc-radius-card);
  padding: 30px;
}
.voice blockquote {
  margin: 0 0 14px;
  font-family: var(--cc-font-display);
  font-size: 1.4rem;
  line-height: 1.3;
  color: var(--cc-ink);
}
.voice blockquote::before { content: "\201C"; font-size: 2.2rem; color: var(--cc-sage); margin-right: 4px; vertical-align: -10px; }
.voice cite { font-style: normal; font-size: 0.92rem; color: var(--cc-ink-2); }

/* Access */
.access { background: var(--cc-sand-2); text-align: center; }
.access__inner { max-width: 720px; margin: 0 auto; }

/* FAQ */
.faq__list { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--cc-cloud);
  border: 1px solid var(--cc-mist);
  border-radius: var(--cc-radius-card);
  padding: 18px 22px;
  margin-bottom: 12px;
}
.faq summary {
  font-family: var(--cc-font-display);
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--cc-font-ui); font-size: 1.6rem; color: var(--cc-sage-700); }
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { margin: 12px 0 0; color: var(--cc-ink-2); }

/* Closing CTA */
.cta-band { background: var(--cc-ink); color: var(--cc-sand); text-align: center; }
.cta-band h2 { color: var(--cc-sand); margin-bottom: 14px; }
.cta-band p { color: var(--cc-mist); margin-bottom: 28px; }
.cta-band .btn--ghost-ink { color: var(--cc-sand); border-color: var(--cc-sand); }
.cta-band .btn--ghost-ink:hover { background: var(--cc-sand); color: var(--cc-ink); }

/* Footer */
.footer { background: var(--cc-sand-2); padding: 64px 0 28px; border-top: 1px solid var(--cc-mist); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }
.footer__brand .cc-wordmark { margin-bottom: 14px; }
.footer__tagline {
  font-family: var(--cc-font-display);
  font-size: 1.05rem; line-height: 1.35;
  color: var(--cc-ink);
  margin: 0 0 18px;
  max-width: 28ch;
}
.footer__addr { font-style: normal; color: var(--cc-ink-2); font-size: 0.95rem; line-height: 1.7; display: block; }
.footer__addr span { display: block; }
.footer__contact { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.footer__contact a { color: var(--cc-ink); font-size: 0.95rem; word-break: break-word; }
.footer__col h4 { font-family: var(--cc-font-ui); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cc-ink-2); margin: 0 0 12px; font-weight: 700; }
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: 8px; }
.footer__col a { color: var(--cc-ink); font-size: 0.96rem; }
.footer__bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--cc-mist); font-size: 0.86rem; color: var(--cc-ink-2); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* HOME / WORK page specifics */
.feature {
  background: var(--cc-cloud);
  border: 1px solid var(--cc-mist);
  border-radius: var(--cc-radius-card);
  padding: 30px;
  display: flex; flex-direction: column; gap: 12px;
}
.feature__icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--cc-sage-100); color: var(--cc-sage-700);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--cc-font-display); font-size: 1.4rem; font-weight: 600;
}
.feature--work .feature__icon { background: var(--cc-sunrise-100); color: var(--cc-sunrise-700); }
.feature h3 { font-size: 1.2rem; margin: 0; }
.feature p { color: var(--cc-ink-2); margin: 0; }

.features__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) { .features__grid { grid-template-columns: 1fr; } }

.protections { background: var(--cc-ink); color: var(--cc-sand); }
.protections h2 { color: var(--cc-sand); }
.protections__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 24px 0 0; }
@media (max-width: 860px) { .protections__list { grid-template-columns: 1fr; } }

.interop {
  background: var(--cc-sand-2);
  border-radius: var(--cc-radius-card);
  padding: 40px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
}
@media (max-width: 860px) { .interop { grid-template-columns: 1fr; } }

/* Why us cards */
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .why__grid { grid-template-columns: 1fr; } }
.why-card {
  background: var(--cc-cloud);
  border: 1px solid var(--cc-mist);
  border-radius: var(--cc-radius-card);
  padding: 28px;
}
.why-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.why-card p { color: var(--cc-ink-2); margin: 0; }

/* Utility */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--cc-ink-2); }

/* Skip link */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--cc-ink); color: var(--cc-sand);
  padding: 10px 14px; border-radius: 8px;
  z-index: 100;
}
.skip:focus { left: 16px; top: 16px; }
