/* CaseFlow Theme */

/* ===== TOKENS ===== */
:root {
  --cream: #FAF8F2;
  --cream-mid: #F0EAE0;
  --teal-dark: #0F2B33;
  --teal-mid: #1A4A56;
  --teal-light: #2A6B7B;
  --teal-xlight: #D4E8EC;
  --amber: #D4840A;
  --amber-light: #F0A836;
  --amber-xlight: #FEF3DC;
  --charcoal: #1A1A1A;
  --gray-600: #4A4A4A;
  --gray-400: #8A8A8A;
  --gray-200: #D8D8D8;
  --white: #FFFFFF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 248, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  background: var(--teal-dark);
  color: var(--amber);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  letter-spacing: -0.02em;
}

.logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--teal-dark);
  letter-spacing: -0.02em;
}

.nav-right {
  display: flex;
  align-items: center;
}

.nav-tagline {
  font-size: 0.8rem;
  color: var(--gray-400);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 8rem 3rem 5rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--cream);
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.shape-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  background: var(--teal-dark);
}

.shape-1 {
  width: 600px;
  height: 600px;
  right: -100px;
  top: -150px;
}

.shape-2 {
  width: 300px;
  height: 300px;
  right: 200px;
  bottom: 50px;
  background: var(--amber);
}

.shape-line {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gray-200), transparent);
  margin-right: 38%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  align-items: center;
}

.hero-text {
  grid-column: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--amber-xlight);
  color: var(--amber);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--teal-dark);
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.headline-line {
  display: block;
}

.headline-accent {
  color: var(--amber);
  font-style: italic;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 480px;
  font-weight: 400;
}

/* ===== PHONE MOCKUP ===== */
.hero-visual {
  grid-column: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.phone-mockup {
  width: 280px;
  background: var(--white);
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(15, 43, 51, 0.12), 0 4px 12px rgba(15, 43, 51, 0.08);
  border: 1px solid rgba(15, 43, 51, 0.08);
}

.phone-screen {
  background: var(--cream);
  border-radius: 28px;
  padding: 1.25rem;
  overflow: hidden;
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--gray-200);
}

.mockup-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-mid), var(--teal-light));
  flex-shrink: 0;
}

.mockup-lines {
  flex: 1;
}

.mockup-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--teal-dark);
}

.mockup-sub {
  font-size: 0.7rem;
  color: var(--gray-400);
  margin-top: 1px;
}

.mockup-messages {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.msg {
  display: flex;
}

.msg-patient {
  justify-content: flex-start;
}

.msg-clinic {
  justify-content: flex-end;
}

.msg-bubble {
  max-width: 85%;
  padding: 0.5rem 0.75rem;
  border-radius: 14px;
  font-size: 0.72rem;
  line-height: 1.45;
}

.msg-patient .msg-bubble {
  background: var(--white);
  color: var(--charcoal);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.msg-clinic-bubble {
  background: var(--teal-dark);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.mockup-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.action-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
}

.action-green {
  background: #E8F5EE;
  color: #2E7D32;
}

.action-amber {
  background: var(--amber-xlight);
  color: var(--amber);
}

.chip-icon {
  font-size: 0.65rem;
}

/* Stat cards beside phone */
.stat-card {
  position: absolute;
  background: var(--white);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  box-shadow: 0 4px 16px rgba(15, 43, 51, 0.1);
  border: 1px solid rgba(15, 43, 51, 0.06);
}

.stat-card-1 {
  left: -60px;
  top: 30%;
}

.stat-card-2 {
  right: -60px;
  bottom: 20%;
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--teal-dark);
  line-height: 1;
}

.stat-label {
  font-size: 0.68rem;
  color: var(--gray-400);
  margin-top: 0.2rem;
  line-height: 1.3;
}

/* ===== PROBLEM ===== */
.problem {
  background: var(--teal-dark);
  color: var(--white);
  padding: var(--space-2xl) 3rem;
  position: relative;
  overflow: hidden;
}

.problem::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 132, 10, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.problem-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.problem-header {
  margin-bottom: 3.5rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--white);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.problem-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.problem-icon {
  color: var(--amber);
  margin-bottom: 1.25rem;
}

.problem-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.problem-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
}

.problem-quote {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
}

.problem-quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  max-width: 800px;
  margin-bottom: 0.75rem;
}

.problem-quote cite {
  font-size: 0.75rem;
  color: var(--amber);
  letter-spacing: 0.02em;
}

/* ===== FEATURES ===== */
.features {
  background: var(--cream);
  padding: var(--space-2xl) 3rem;
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.features-header {
  margin-bottom: 4rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.feature-item {
  display: flex;
  gap: 1.5rem;
  padding: 2.5rem;
  border-bottom: 1px solid var(--gray-200);
  border-right: 1px solid var(--gray-200);
}

.feature-item:nth-child(2n) {
  border-right: none;
}

.feature-item:nth-child(3),
.feature-item:nth-child(4) {
  border-bottom: none;
}

.feature-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--teal-xlight);
  line-height: 1;
  flex-shrink: 0;
  width: 60px;
  letter-spacing: -0.04em;
}

.feature-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 0.6rem;
}

.feature-body p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ===== OUTCOMES ===== */
.outcomes {
  background: linear-gradient(135deg, var(--teal-mid) 0%, var(--teal-dark) 100%);
  padding: var(--space-2xl) 3rem;
}

.outcomes-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.outcomes-header {
  margin-bottom: 3.5rem;
}

.section-title.light {
  color: var(--white);
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.outcome-stat {
  text-align: center;
}

.outcome-number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.8rem;
  color: var(--amber);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.outcome-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

/* ===== CLOSING ===== */
.closing {
  background: var(--cream);
  padding: var(--space-2xl) 3rem;
}

.closing-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: center;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  color: var(--teal-dark);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.closing-body {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.closing-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.closing-stat-block {
  background: var(--teal-dark);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 320px;
}

.closing-big-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 4rem;
  color: var(--amber);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.closing-big-label {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.closing-divider {
  width: 40px;
  height: 2px;
  background: var(--amber);
  margin: 0 auto 1.5rem;
  opacity: 0.5;
}

.closing-small {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  font-style: italic;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--teal-dark);
  color: var(--white);
  padding: 4rem 3rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark-sm {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.9rem;
  background: var(--amber);
  color: var(--teal-dark);
  padding: 0.2rem 0.45rem;
  border-radius: 5px;
}

.logo-name-sm {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
  max-width: 220px;
}

.footer-links {
  display: contents;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col-head {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.25rem;
}

.footer-col span:not(.footer-col-head) {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    display: none;
  }

  .problem-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-item {
    border-right: none;
  }

  .feature-item:nth-child(3) {
    border-bottom: 1px solid var(--gray-200);
  }

  .outcomes-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .closing-inner {
    grid-template-columns: 1fr;
  }

  .closing-visual {
    order: -1;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 7rem 1.5rem 4rem;
  }

  .problem,
  .features,
  .outcomes,
  .closing,
  .footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .navbar {
    padding: 1rem 1.5rem;
  }

  .nav-tagline {
    display: none;
  }

  .outcomes-grid {
    grid-template-columns: 1fr;
  }

  .outcome-number {
    font-size: 2.2rem;
  }
}