/* ==========================================================================
   DeskCare — Doctor-facing demo site
   ========================================================================== */

:root {
  --dark: #122e2a;
  --dark-2: #0b1f1c;
  --lime: #9cc949;
  --lime-2: #86b03a;
  --lime-soft: #eef6e2;
  --bg: #ffffff;
  --bg-alt: #f6f9f3;
  --ink: #142420;
  --muted: #5c6b64;
  --border: #e6ebe3;
  --shadow: 0 20px 50px -24px rgba(18, 46, 42, 0.28);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  line-height: 1.18;
  margin: 0;
  color: var(--dark);
}

p { margin: 0; }
a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 32px; font-size: 1.02rem; }

.btn-primary {
  background: var(--lime);
  color: var(--dark);
  box-shadow: 0 10px 25px -8px rgba(156, 201, 73, 0.55);
}
.btn-primary:hover { background: var(--lime-2); box-shadow: 0 14px 30px -8px rgba(156, 201, 73, 0.7); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--dark);
}
.btn-outline:hover { border-color: var(--lime); background: var(--lime-soft); }

.btn-outline-invert {
  background: transparent;
  border-color: rgba(255,255,255,0.3);
  color: var(--white, #fff);
}
.btn-outline-invert:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.55); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled {
  box-shadow: 0 8px 24px -18px rgba(18,46,42,0.35);
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.97);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 34px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  transition: color .2s var(--ease);
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.main-nav a:hover { color: var(--dark); }
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--dark); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  padding: 0;
}
.nav-toggle span {
  width: 100%;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 80px;
  overflow: hidden;
  background: var(--bg-alt);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
  animation: float 13s ease-in-out infinite;
}
.glow-1 { width: 380px; height: 380px; background: var(--lime); top: -160px; left: -120px; }
.glow-2 { width: 320px; height: 320px; background: #cfe8a3; bottom: -140px; right: -90px; animation-delay: -6s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(26px, -18px) scale(1.07); }
}

.hero-inner { max-width: 760px; text-align: center; margin: 0 auto; position: relative; z-index: 1; }
.eyebrow {
  display: inline-block;
  background: var(--lime-soft);
  color: var(--lime-2);
  border: 1px solid rgba(156, 201, 73, 0.4);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 700;
  margin-bottom: 18px;
}
.hero h1 .accent { color: var(--lime-2); }
.hero-sub {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 600px;
  margin: 0 auto 30px;
}
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.hero-hint { color: var(--muted); font-size: 0.85rem; }

/* ---------- Section head ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin-top: 12px; }
.section-head p { color: var(--muted); margin-top: 12px; }

.pill {
  display: inline-block;
  background: var(--lime-soft);
  color: var(--lime-2);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* ---------- What DeskCare does ---------- */
.what { padding: 90px 0; }
.what-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.what-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.what-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.what-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--lime-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.what-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.what-card p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Try it now ---------- */
.try-now {
  background: var(--dark);
  color: #fff;
  padding: 70px 0;
  overflow: hidden;
}
.try-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.try-copy { max-width: 480px; }
.try-copy h2 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2rem); margin: 12px 0 14px; }
.try-copy p { color: rgba(255,255,255,0.72); font-size: 0.98rem; }

.try-pointer { display: flex; align-items: center; gap: 14px; }
.pointer-bubble {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  animation: bob-side 3s ease-in-out infinite;
}
.bubble-icon { width: 16px; height: 16px; flex-shrink: 0; color: var(--lime); }
.pointer-arrow {
  width: 46px; height: 46px;
  flex-shrink: 0;
  color: var(--lime);
  animation: nudge 1.6s ease-in-out infinite;
}
@keyframes bob-side { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes nudge { 0%, 100% { transform: translate(0,0); } 50% { transform: translate(6px, 6px); } }

/* ---------- Timeline (How it Works) ---------- */
.timeline-section { padding: 80px 0 100px; }
.timeline {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding-left: 56px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}
.timeline-progress {
  position: absolute;
  left: 19px;
  top: 6px;
  width: 2px;
  height: 0%;
  background: linear-gradient(var(--lime), var(--lime-2));
  transition: height .15s linear;
}

.step {
  position: relative;
  padding-bottom: 52px;
}
.step:last-child { padding-bottom: 0; }
.step-marker {
  position: absolute;
  left: -56px;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
  transition: border-color .4s var(--ease), color .4s var(--ease), background .4s var(--ease), transform .4s var(--ease);
  z-index: 1;
}
.step.in-view .step-marker {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--dark);
  transform: scale(1.08);
}

.step-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.step.in-view .step-card { opacity: 1; transform: translateY(0); }

.step-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--lime-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.step-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 0.94rem; }
.step-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.step-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  background: var(--lime-soft);
  color: var(--lime-2);
  padding: 5px 12px;
  border-radius: 999px;
}
.meta-icon { width: 14px; height: 14px; flex-shrink: 0; }

.branch-note {
  margin-top: -30px;
  margin-bottom: 52px;
  margin-left: 8px;
  padding: 14px 18px;
  border-left: 3px solid var(--lime);
  background: var(--bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
  color: var(--muted);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.branch-note.in-view { opacity: 1; transform: translateY(0); }
.branch-note strong { color: var(--dark); }

/* ---------- How-it-works hero ---------- */
.page-hero {
  padding: 70px 0 40px;
  text-align: center;
  background: var(--bg-alt);
}
.page-hero .pill { margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 14px; }
.page-hero p { color: var(--muted); max-width: 600px; margin: 0 auto; font-size: 1.02rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--dark);
  color: #fff;
  padding: 70px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2rem); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.7); margin-bottom: 28px; }
.cta-band .hero-actions { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-2); color: rgba(255,255,255,0.6); padding: 46px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo img { height: 30px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.6); transition: color .2s var(--ease); }
.footer-links a:hover { color: var(--lime); }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.footer-bottom {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .what-grid { grid-template-columns: 1fr; }
  .try-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .timeline { padding-left: 46px; }
  .timeline::before, .timeline-progress { left: 14px; }
  .step-marker { left: -46px; width: 34px; height: 34px; font-size: 0.85rem; }
  .branch-note { margin-left: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
