/* CareCircle Collab — bare-bones marketing site (PRE-106) */
:root {
  --text: #1c1c1e;
  --text-secondary: #3a3a3c;
  --text-muted: #636366;
  --link: #007aff;
  --brand: #0554f2;
  --bg: #ffffff;
  --border: #e5e5ea;
  --max-width: 40rem;
}

* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a { color: var(--link); }
a:hover { text-decoration: none; }

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.site-logo-icon {
  display: block;
  border-radius: 22%;
  box-shadow:
    0 1px 2px rgba(42, 39, 36, 0.14),
    0 4px 14px rgba(5, 84, 242, 0.2);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.9rem;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
}

.site-nav a:hover { color: var(--link); }

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.1rem;
  margin: 1.75rem 0 0.5rem;
}

p, li { color: var(--text-secondary); }

.lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.muted {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--link);
  color: #fff !important;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.button-secondary {
  background: #f2f2f7;
  color: var(--text) !important;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.card {
  background: #f9f9fb;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
}

.card h2 { margin-top: 0; }

ul { padding-left: 1.25rem; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.25rem 2rem;
  margin-top: 2rem;
}

.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.75rem;
}

.site-footer a { color: var(--text-secondary); }

/* —— Homepage: hub pastels from ContentView —— */
.page-home {
  /* Matches ContentView hub button lightColor values */
  --hub-tasks: #f2faff;
  --hub-providers: #faf2ff;
  --hub-medications: #f2faf2;
  --hub-notes: #fffae6;
  --hub-family: #fafaff;
  --hub-circle: #e0edfa;
  --hub-tasks-accent: #4db3e6;
  --hub-providers-accent: #b380e6;
  --hub-medications-accent: #66cc99;
  --hub-notes-accent: #e6b366;
  --hub-family-accent: #9999cc;

  --text: #263045;
  --text-secondary: #3d4a5c;
  --text-muted: #5c677a;
  --border: rgba(38, 48, 69, 0.1);
  --link: #0554f2;
  --brand: #0554f2;

  background:
    linear-gradient(
      165deg,
      var(--hub-circle) 0%,
      var(--hub-tasks) 22%,
      var(--hub-providers) 44%,
      var(--hub-medications) 66%,
      var(--hub-notes) 100%
    );
  background-attachment: fixed;
  min-height: 100vh;
}

.page-home .site-header {
  background: color-mix(in srgb, var(--hub-circle) 88%, white);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--border);
}

.page-home .button {
  background: var(--brand);
}

.page-home .button-secondary {
  background: color-mix(in srgb, var(--hub-tasks) 70%, white);
  border: 1px solid var(--border);
  color: var(--text) !important;
}

.home-main {
  max-width: none;
  padding: 0;
}

.hero-panel {
  background:
    radial-gradient(ellipse 85% 60% at 50% 0%, color-mix(in srgb, var(--hub-circle) 90%, white), transparent 70%),
    linear-gradient(180deg, var(--hub-circle) 0%, var(--hub-tasks) 100%);
  padding: 2.75rem 1.25rem 2.5rem;
  text-align: center;
}

.hero-panel-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-panel h1 {
  font-size: clamp(1.85rem, 5vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
  color: var(--text);
}

.hero-sub {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-buttons {
  justify-content: center;
  margin-top: 1.5rem;
}

.hero-buttons .button {
  margin-top: 0;
}

.home-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.home-content .lead {
  font-size: 1.1rem;
  line-height: 1.65;
  margin: 0;
  color: var(--text-secondary);
}

.trust-line {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  font-style: italic;
  color: var(--text-muted);
}

.benefits {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1rem;
}

.benefit {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(38, 48, 69, 0.05);
}

.benefit-tasks { background: var(--hub-tasks); }
.benefit-meds { background: var(--hub-medications); }
.benefit-family { background: var(--hub-family); }

.benefit-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  position: relative;
}

.benefit-tasks .benefit-icon {
  background: color-mix(in srgb, var(--hub-tasks-accent) 18%, white);
}

.benefit-tasks .benefit-icon::after {
  background: var(--hub-tasks-accent);
}

.benefit-meds .benefit-icon {
  background: color-mix(in srgb, var(--hub-medications-accent) 18%, white);
}

.benefit-meds .benefit-icon::after {
  background: var(--hub-medications-accent);
}

.benefit-family .benefit-icon {
  background: color-mix(in srgb, var(--hub-family-accent) 18%, white);
}

.benefit-family .benefit-icon::after {
  background: var(--hub-family-accent);
}

.benefit-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
}

.benefit-icon-meds::after {
  width: 0.65rem;
  height: 0.35rem;
  border-radius: 2px;
}

.benefit-icon-private::after {
  width: 0.5rem;
  height: 0.65rem;
  border-radius: 2px 2px 0 0;
  box-shadow: inset 0 -0.15rem 0 currentColor;
}

.benefit-text {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.5;
}

.benefit-text strong {
  color: var(--text);
  font-weight: 600;
}

.card-warm {
  background: var(--hub-notes);
  border-color: var(--border);
  margin-top: 2rem;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(38, 48, 69, 0.05);
}

.page-home .site-footer {
  border-top-color: var(--border);
  background: color-mix(in srgb, var(--hub-family) 75%, white);
}
