:root {
  --bg: #fbf8f4;
  --bg-elevated: #f3ede3;
  --bg-card: #ffffff;
  --violet: #6b3fe0;
  --violet-soft: rgba(107, 63, 224, 0.08);
  --headline: #4a2f72;
  --cyan: #00a7be;
  --cyan-soft: rgba(0, 167, 190, 0.1);
  --ink: #241f1a;
  --muted: #756e64;
  --border: #e8e1d6;
  --shadow: 0 1px 2px rgba(36, 31, 26, 0.04), 0 10px 28px rgba(36, 31, 26, 0.06);
  --max: 1080px;

  /* The apps themselves run a dark UI (built for low-light field use), so
     screenshot mockups keep their own dark tokens regardless of page theme. */
  --mock-bg: #141312;
  --mock-bg-elevated: #1d1b19;
  --mock-border: #322e28;
  --mock-text: #f2ede6;
  --mock-muted: #9b948a;
  --mock-accent-soft: rgba(0, 188, 212, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

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

header.site {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(251, 248, 244, 0.88);
  backdrop-filter: blur(8px);
  z-index: 20;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.logo .brand-cwi {
  color: var(--violet);
}

.logo .brand-care {
  color: var(--cyan);
}

nav.primary {
  display: flex;
  gap: 28px;
}

nav.primary a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}

nav.primary a:hover,
nav.primary a.active {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
}

@media (max-width: 720px) {
  nav.primary {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    display: none;
  }

  nav.primary.open {
    display: flex;
  }

  nav.primary a {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
  }

  .nav-toggle {
    display: block;
  }
}

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

.hero {
  padding: 96px 0 64px;
  text-align: center;
}

.hero .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 24px;
  color: var(--headline);
}

.hero p.lede {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 6px 18px rgba(107, 63, 224, 0.25);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--ink);
  border: 1px solid var(--border);
}

/* ---------- Journey band ---------- */

.journey {
  padding: 64px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

/* Echoes Progressor's own patient-card journey stepper (a chain of filled,
   icon-bearing circles connected by a thin line marking a patient's path through
   care) — the same visual language, scaled up to show the three apps as one
   continuous path rather than three separate products. */
.app-chain {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 44px;
}

.app-chain-node {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--node-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  flex: none;
}

.app-chain-node svg {
  width: 26px;
  height: 26px;
  display: block;
}

.app-chain-line {
  width: 64px;
  height: 2px;
  background: var(--border);
  flex: none;
}

@media (max-width: 560px) {
  .app-chain-node {
    width: 46px;
    height: 46px;
  }

  .app-chain-node svg {
    width: 20px;
    height: 20px;
  }

  .app-chain-line {
    width: 26px;
  }
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 820px) {
  .journey-grid {
    grid-template-columns: 1fr;
  }
}

.journey-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  text-decoration: none;
  color: var(--ink);
  display: block;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.journey-card:hover {
  border-color: var(--violet);
  transform: translateY(-2px);
}

.journey-card .stage {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 14px;
}

.journey-card h3 {
  font-size: 22px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.journey-card p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0 0 16px;
}

.journey-card .go {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.journey-card .go::after {
  content: "→";
  margin-left: 6px;
  color: var(--violet);
}

/* ---------- Audience cards (homepage "who this is for") ---------- */
/* Same visual language as .journey-card on purpose — this is a second way of
   slicing the same three products, not a new section of the site, so it should
   read as a sibling, not a competing design. */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 820px) {
  .audience-grid {
    grid-template-columns: 1fr;
  }
}

.audience-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  text-decoration: none;
  color: var(--ink);
  display: block;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.audience-card:hover {
  border-color: var(--violet);
  transform: translateY(-2px);
}

.audience-card .audience-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.audience-card h3 {
  font-size: 19px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.audience-card p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0 0 16px;
}

.audience-card .go {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.audience-card .go::after {
  content: "→";
  margin-left: 6px;
  color: var(--violet);
}

/* Per-audience closing CTA at the end of a product page — a calmer sibling of
   .callout, with an actual next step instead of just a cross-link. */
.close-cta {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
}

.close-cta h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.close-cta p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 20px;
}

.close-cta .price {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--violet);
  margin-bottom: 4px;
}

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

section.block {
  padding: 72px 0;
}

section.block.tight {
  padding: 48px 0;
}

section.block h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--headline);
}

section.block .section-lede {
  color: var(--muted);
  font-size: 16px;
  max-width: 680px;
  margin: 0 0 40px;
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- App hero (product pages) ---------- */

.app-hero {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--border);
}

.app-hero-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.app-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
}

.app-hero h1 {
  font-size: clamp(30px, 4.4vw, 44px);
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--headline);
}

.app-tagline {
  font-size: 19px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 8px;
}

.status-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--muted);
  margin-top: 18px;
}

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 720px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- Principle boundary callout ---------- */

.callout {
  border: 1px solid var(--violet);
  background: var(--violet-soft);
  border-radius: 14px;
  padding: 24px 28px;
  font-size: 15px;
  color: var(--ink);
}

.callout strong {
  color: var(--violet);
}

/* ---------- Screenshot / mockup gallery ---------- */

.screens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

@media (max-width: 820px) {
  .screens {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }
}

.phone-mockup {
  border: 1px solid var(--mock-border);
  border-radius: 28px;
  padding: 10px;
  background: var(--mock-bg-elevated);
  box-shadow: var(--shadow);
}

.phone-screen {
  aspect-ratio: 9 / 18;
  border-radius: 20px;
  background: linear-gradient(160deg, var(--mock-bg-elevated), var(--mock-bg));
  border: 1px solid var(--mock-border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.phone-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 20%,
    var(--mock-accent-soft),
    transparent 60%
  );
}

.phone-screen .placeholder-label {
  position: relative;
  color: var(--mock-muted);
  font-size: 13px;
  line-height: 1.5;
}

.phone-screen .placeholder-label b {
  display: block;
  color: var(--mock-text);
  font-size: 14px;
  margin-bottom: 6px;
}

.phone-screen.has-image {
  padding: 0;
}

.phone-screen img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.screen-caption {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}

/* A round Wear OS face, not a phone rectangle — same card treatment as
   .phone-mockup, but square with a circular screen to match the device. */
.watch-mockup {
  border: 1px solid var(--mock-border);
  border-radius: 28px;
  padding: 10px;
  background: var(--mock-bg-elevated);
  box-shadow: var(--shadow);
}

.watch-screen {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

.watch-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Apple Watch's screen is a rounded rectangle, not a circle — same .watch-mockup
   outer card (so both platforms sit in an identically-sized frame side by side
   regardless of each screenshot's native resolution), different inner shape so it
   still reads as the right device. */
.watch-screen-rect {
  aspect-ratio: 41 / 50;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
}

.watch-screen-rect img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Side-by-side platform comparison — deliberately its own grid, not folded into
   .screens, since "we support both platforms" deserves equal visual weight rather
   than being a fourth tile wrapping awkwardly under a 3-column phone row. */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 820px) {
  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 420px;
    margin: 0 auto;
  }
}

.platform-label {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

/* ---------- Team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 640px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-shadow: var(--shadow);
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
}

.team-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.team-card .role {
  color: var(--violet);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.team-card a.email {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--border);
}

.team-card a.email:hover {
  color: var(--ink);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 760px;
}

@media (max-width: 640px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-card .avatar {
  margin: 0 auto 16px;
}

.contact-card h3 {
  margin: 0 0 4px;
}

.contact-card .role {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
}

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

footer.site {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 48px 0 32px;
  margin-top: 40px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 14px;
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: var(--violet);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
