@import "theme.css";

/* ═══════════════════════════════════════════════════════
   CareLoop — design-system.css (marketing + portal components)
   ═══════════════════════════════════════════════════════ */

.section-inner { max-width: 1140px; margin: 0 auto; padding: 0 5vw; }
.section-pad { padding: 96px 5vw; }
.section-pad-sm { padding: 64px 5vw; }

/* Hero */
.ds-hero {
  padding-top: 64px;
  overflow: hidden;
  align-items: stretch;
}
.ds-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 64px);
}
.ds-hero-content {
  padding: 8vw 5vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border);
}
.ds-hero-right {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}
.ds-hero h1 {
  font-size: clamp(44px, 6vw, 96px);
  font-weight: 300;
  line-height: 0.94;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.ds-hero h1 em { font-style: italic; color: var(--sage); }
.ds-hero-lede {
  font-size: 18px;
  font-weight: 300;
  color: var(--sage);
  line-height: 1.65;
  max-width: 460px;
  margin-bottom: 2.5rem;
}
.ds-hero-ctas { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.ds-hero-eyebrow { margin-bottom: 1.5rem; }
.ds-hero-stat-card {
  background: var(--ink);
  color: var(--linen);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
}
.ds-stat-number {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 300;
  color: var(--voltage);
  display: block;
}
.ds-stat-label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(250,255,250,0.75);
}
.ds-stat-sub { font-size: 12px; color: rgba(250,255,250,0.4); margin-top: 3px; }

/* Social proof bar */
.ds-proof-bar {
  background: var(--ink);
  padding: 28px 5vw;
  border-top: 1px solid rgba(250,255,250,0.06);
}
.ds-proof-bar-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ds-proof-item { text-align: center; }
.ds-proof-num {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 300;
  color: var(--voltage);
}
.ds-proof-lbl {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250,255,250,0.5);
  margin-top: 4px;
}

/* Problem section */
.ds-problem {
  background: var(--ink);
  padding: 96px 5vw;
}
.ds-problem-inner { max-width: 1140px; margin: 0 auto; }
.ds-problem h2 {
  font-size: clamp(36px, 4.5vw, 72px);
  font-weight: 300;
  color: var(--linen);
  margin-bottom: 3rem;
}
.ds-problem h2 em { font-style: italic; color: var(--voltage); }
.ds-problem-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.ds-problem-card {
  background: rgba(250,255,250,0.05);
  border: 1px solid rgba(250,255,250,0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.ds-problem-card p { font-size: 15px; font-weight: 300; color: rgba(250,255,250,0.75); line-height: 1.65; }
.ds-problem-empathy {
  font-size: 17px;
  font-weight: 300;
  color: rgba(250,255,250,0.45);
  font-style: italic;
  margin-bottom: 2rem;
}
.ds-problem-stat {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(250,255,250,0.08);
}
.ds-problem-stat-num {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 300;
  color: var(--voltage);
}
.ds-problem-stat-label {
  font-size: 15px;
  font-weight: 300;
  color: rgba(250,255,250,0.5);
  line-height: 1.5;
}

/* Guide section */
.ds-guide {
  background: var(--linen);
  padding: 96px 5vw;
  border-top: 1px solid var(--border);
}
.ds-guide-inner { max-width: 1140px; margin: 0 auto; }
.ds-guide h2 {
  font-size: clamp(36px, 4vw, 64px);
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.ds-guide h2 em { font-style: italic; color: var(--sage); }
.ds-guide-sub {
  font-size: 16px;
  font-weight: 300;
  color: var(--sage);
  margin-bottom: 3.5rem;
  max-width: 520px;
}
.ds-guide-cards {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.ds-guide-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition);
}
.ds-guide-card:hover { border-color: var(--border-med); transform: translateY(-2px); }
.ds-guide-icon { font-size: 28px; margin-bottom: 1rem; }
.ds-guide-card h3 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}
.ds-guide-card p { font-size: 14px; font-weight: 300; color: var(--sage); line-height: 1.6; }
.ds-guide-creds {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
.ds-guide-creds blockquote {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 300;
  color: var(--linen);
  line-height: 1.4;
  margin: 0;
}
.ds-guide-creds cite {
  font-size: 13px;
  font-weight: 300;
  color: rgba(250,255,250,0.45);
  display: block;
  margin-top: 1rem;
  font-style: normal;
}
.ds-guide-credential-row {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(250,255,250,0.08);
}
.ds-credential-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(250,255,250,0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ds-credential-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--voltage);
}

/* Plan steps */
.ds-plan {
  background: var(--white);
  padding: 96px 5vw;
  border-top: 1px solid var(--border);
}
.ds-plan-inner { max-width: 1140px; margin: 0 auto; }
.ds-plan h2 {
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 3rem;
}
.ds-steps-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
}
.ds-step-card {
  background: var(--mist);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.ds-step-num {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 300;
  color: rgba(18,22,19,0.18);
  display: block;
  margin-bottom: 1rem;
}
.ds-step-card h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
}
.ds-step-card p { font-size: 14px; font-weight: 300; color: var(--sage); line-height: 1.65; }

/* Feature blocks */
.ds-feature-block {
  padding: 96px 5vw;
  border-top: 1px solid var(--border);
}
.ds-feature-block:nth-child(even) { background: var(--white); }
.ds-feature-block:nth-child(odd) { background: var(--linen); }
.ds-feature-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.ds-feature-inner.reversed { direction: rtl; }
.ds-feature-inner.reversed > * { direction: ltr; }
.ds-feature-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 1rem;
}
.ds-feature-block h2 {
  font-size: clamp(30px, 3.5vw, 52px);
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.ds-feature-block h2 em { font-style: italic; color: var(--sage); }
.ds-feature-block p {
  font-size: 16px;
  font-weight: 300;
  color: var(--sage);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.ds-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 2rem;
}
.ds-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 300;
  color: var(--sage);
}
.ds-feature-check {
  width: 18px;
  height: 1px;
  background: var(--voltage);
  flex-shrink: 0;
  margin-top: 10px;
}
.ds-feature-image {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ds-feature-image-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250,255,250,0.4);
}
.ds-feature-mock {
  background: rgba(250,255,250,0.06);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ds-feature-mock-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ds-feature-mock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--voltage);
  flex-shrink: 0;
}
.ds-feature-mock-text {
  height: 9px;
  background: rgba(250,255,250,0.12);
  border-radius: 4px;
}
.ds-feature-mock-text.w80 { width: 80%; }
.ds-feature-mock-text.w60 { width: 60%; }
.ds-feature-mock-text.w40 { width: 40%; }

/* Outcomes */
.ds-outcomes {
  background: var(--ink);
  padding: 96px 5vw;
}
.ds-outcomes-inner { max-width: 1140px; margin: 0 auto; }
.ds-outcomes h2 {
  font-size: clamp(36px, 4vw, 64px);
  font-weight: 300;
  color: var(--linen);
  margin-bottom: 0.75rem;
}
.ds-outcomes h2 em { font-style: italic; color: var(--voltage); }
.ds-outcomes-sub {
  font-size: 16px;
  font-weight: 300;
  color: rgba(250,255,250,0.45);
  margin-bottom: 3rem;
}
.ds-outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.ds-outcomes-card {
  background: rgba(250,255,250,0.04);
  border: 1px solid rgba(250,255,250,0.08);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color var(--transition);
}
.ds-outcomes-card:hover { border-color: rgba(43,238,75,0.3); }
.ds-outcomes-num {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 300;
  color: var(--voltage);
  display: block;
  margin-bottom: 8px;
}
.ds-outcomes-lbl {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(250,255,250,0.55);
}
.ds-outcomes-cta { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.ds-outcomes-demo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(250,255,250,0.06);
  color: rgba(250,255,250,0.55);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.ds-outcomes-demo-link:hover { background: rgba(250,255,250,0.12); color: var(--linen); }

/* Testimonials */
.ds-testimonials {
  background: var(--linen);
  padding: 96px 5vw;
  border-top: 1px solid var(--border);
}
.ds-testimonials-inner { max-width: 1140px; margin: 0 auto; }
.ds-testimonials h2 {
  font-size: clamp(36px,4vw,64px);
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 3rem;
}
.ds-testimonials h2 em { font-style: italic; color: var(--sage); }
.ds-testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.ds-testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ds-testimonial.featured { background: var(--ink); border-color: var(--ink); }
.ds-testimonial-stars { display: flex; gap: 3px; margin-bottom: 1rem; }
.ds-testimonial-star {
  width: 13px;
  height: 13px;
  background: var(--voltage);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.ds-testimonial-quote {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.5;
  flex: 1;
}
.ds-testimonial.featured .ds-testimonial-quote { color: var(--linen); }
.ds-testimonial-author { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.ds-testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--mist);
  overflow: hidden;
  flex-shrink: 0;
}
.ds-testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); }
.ds-testimonial.featured .ds-testimonial-avatar { background: rgba(250,255,250,0.1); color: rgba(250,255,250,0.6); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.ds-testimonial-author strong { display: block; font-size: 13px; font-weight: 500; color: var(--ink); }
.ds-testimonial.featured .ds-testimonial-author strong { color: var(--linen); }
.ds-testimonial-author span { display: block; font-size: 12px; font-weight: 300; color: var(--slate); }
.ds-testimonial.featured .ds-testimonial-author span { color: rgba(250,255,250,0.45); }

/* Pricing */
.ds-pricing {
  background: var(--mist);
  padding: 96px 5vw;
  border-top: 1px solid var(--border);
}
.ds-pricing-inner { max-width: 1000px; margin: 0 auto; }
.ds-pricing h2 {
  font-size: clamp(36px,4vw,64px);
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 0.75rem;
  text-align: center;
}
.ds-pricing h2 em { font-style: italic; color: var(--sage); }
.ds-pricing-sub { font-size: 16px; font-weight: 300; color: var(--sage); text-align: center; margin-bottom: 3rem; }
.ds-pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; margin-bottom: 2rem; }
.ds-pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.ds-pricing-card:hover { border-color: var(--border-med); box-shadow: var(--shadow-lg); }
.ds-pricing-card.featured { background: var(--ink); border-color: var(--ink); }
.ds-pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--voltage);
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 999px;
}
.ds-pricing-tier {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.75rem;
}
.ds-pricing-card.featured .ds-pricing-tier { color: rgba(250,255,250,0.35); }
.ds-pricing-price { display: flex; align-items: baseline; gap: 2px; margin-bottom: 4px; }
.ds-pricing-amount {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 300;
  color: var(--ink);
}
.ds-pricing-card.featured .ds-pricing-amount { color: var(--linen); }
.ds-pricing-period { font-size: 13px; font-weight: 300; color: var(--slate); margin-bottom: 1.5rem; }
.ds-pricing-card.featured .ds-pricing-period { color: rgba(250,255,250,0.35); }
.ds-pricing-divider { border: none; border-top: 1px solid var(--border); margin: 0 0 1.25rem; }
.ds-pricing-card.featured .ds-pricing-divider { border-top-color: rgba(250,255,250,0.1); }
.ds-pricing-features { list-style: none; flex: 1; display: flex; flex-direction: column; gap: 9px; margin-bottom: 1.5rem; }
.ds-pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 300;
  color: var(--sage);
}
.ds-pricing-card.featured .ds-pricing-features li { color: rgba(250,255,250,0.6); }
.ds-pricing-features li::before {
  content: '';
  display: block;
  width: 14px;
  height: 1px;
  background: var(--voltage);
  flex-shrink: 0;
  margin-top: 9px;
}
.ds-pricing-cta {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
}
.ds-pricing-cta.outline {
  border: 1px solid var(--border-med);
  color: var(--ink);
  background: transparent;
}
.ds-pricing-cta.outline:hover { background: var(--mist); }
.ds-pricing-cta.solid {
  background: var(--voltage);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--voltage-dark), 6px 6px 0 rgba(43,238,75,0.2);
}
.ds-pricing-cta.solid:hover {
  transform: translate(-1px,-1px);
  box-shadow: 4px 4px 0 var(--voltage-dark), 8px 8px 0 rgba(43,238,75,0.2);
}
.ds-pricing-trial-note { text-align: center; font-size: 13px; font-weight: 300; color: var(--slate); margin-top: 1rem; }

/* CTA banner */
.ds-cta {
  background: var(--ink);
  padding: 120px 5vw;
  text-align: center;
}
.ds-cta-inner { max-width: 700px; margin: 0 auto; }
.ds-cta h2 {
  font-size: clamp(44px,6vw,96px);
  font-weight: 300;
  color: var(--linen);
  margin-bottom: 1.5rem;
}
.ds-cta h2 em { font-style: italic; color: var(--voltage); }
.ds-cta-sub {
  font-size: 17px;
  font-weight: 300;
  color: rgba(250,255,250,0.5);
  margin-bottom: 2.5rem;
}
.ds-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--voltage);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--voltage-dark), 8px 8px 0 rgba(43,238,75,0.2);
  transition: transform var(--transition), box-shadow var(--transition);
}
.ds-cta-btn:hover {
  transform: translate(-2px,-2px);
  box-shadow: 6px 6px 0 var(--voltage-dark), 12px 12px 0 rgba(43,238,75,0.2);
  color: var(--ink);
}
.ds-cta-note {
  font-size: 12px;
  font-weight: 300;
  color: rgba(250,255,250,0.25);
  letter-spacing: 0.04em;
  margin-top: 1rem;
}

/* Footer */
.ds-footer {
  background: var(--ink);
  border-top: 1px solid rgba(250,255,250,0.06);
  padding: 60px 5vw 40px;
}
.ds-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.ds-footer-brand .wordmark { color: var(--linen); margin-bottom: 0.75rem; display: block; }
.ds-footer-brand .wordmark span { color: var(--voltage); }
.ds-footer-brand p { font-size: 14px; font-weight: 300; color: rgba(250,255,250,0.35); line-height: 1.6; }
.ds-footer-col h4 {
  font-size: 11px;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250,255,250,0.35);
  margin-bottom: 1rem;
}
.ds-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ds-footer-col ul li a {
  font-size: 14px;
  font-weight: 300;
  color: rgba(250,255,250,0.45);
  text-decoration: none;
  transition: color var(--transition);
}
.ds-footer-col ul li a:hover { color: var(--linen); }
.ds-footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(250,255,250,0.06);
}
.ds-footer-bottom p { font-size: 12px; font-weight: 300; color: rgba(250,255,250,0.2); }
.ds-hipaa-badge { display: flex; align-items: center; gap: 10px; }
.ds-hipaa-chip {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250,255,250,0.3);
  border: 1px solid rgba(250,255,250,0.12);
  border-radius: 4px;
  padding: 3px 8px;
}

/* Portal wrap */
.portal-wrap { min-height: 100vh; background: var(--linen); }

@media (max-width: 900px) {
  .ds-hero-inner { grid-template-columns: 1fr; }
  .ds-hero-content { border-right: none; padding: 3rem 5vw; }
  .ds-hero-right { min-height: 260px; padding: 2rem; }
  .ds-problem-grid, .ds-guide-cards, .ds-steps-grid, .ds-outcomes-grid, .ds-pricing-grid, .ds-testimonials-grid { grid-template-columns: 1fr; }
  .ds-feature-inner, .ds-feature-inner.reversed { grid-template-columns: 1fr; direction: ltr; }
  .ds-guide-creds { grid-template-columns: 1fr; }
  .ds-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .ds-hero-content, .ds-guide, .ds-plan, .ds-problem, .ds-outcomes, .ds-feature-block, .ds-testimonials, .ds-pricing, .ds-cta, .ds-footer { padding-left: 24px; padding-right: 24px; }
  .ds-footer-inner { grid-template-columns: 1fr; }
  .ds-footer-bottom { flex-direction: column; align-items: flex-start; }
  .ds-hero-ctas { flex-direction: column; align-items: flex-start; }
}