/* ===================== Design tokens ===================== */
:root {
  --bg: #0d1117;
  --bg-alt: #11161d;
  --surface: #161b22;
  --surface-2: #1c232c;
  --border: #283039;
  --text: #e6edf3;
  --text-dim: #9aa7b4;
  --accent: #3fb950;
  --accent-2: #2ea043;
  --grad-a: #3fb950;
  --grad-b: #56d4dd;
  --radius: 14px;
  --maxw: 1080px;
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ===================== Reset / base ===================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================== Brand ===================== */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand__dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  box-shadow: 0 0 16px rgba(63, 185, 80, 0.6);
}
.brand__name { color: var(--text); }

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: linear-gradient(135deg, var(--grad-a), var(--accent-2)); color: #04140a; }
.btn--primary:hover { filter: brightness(1.07); }
.btn--ghost { border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--small { padding: 8px 16px; font-size: 14px; background: var(--surface-2); border-color: var(--border); }
.btn--small:hover { border-color: var(--accent); }

/* ===================== Nav ===================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__links { display: flex; align-items: center; gap: 26px; font-size: 15px; color: var(--text-dim); }
.nav__links a:not(.btn):hover { color: var(--text); }

/* ===================== Hero ===================== */
.hero {
  position: relative;
  padding: 96px 0 80px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 50% -10%, rgba(63,185,80,.18), transparent 70%),
    radial-gradient(500px 300px at 80% 10%, rgba(86,212,221,.12), transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 600;
  color: var(--accent); margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(34px, 6vw, 60px); line-height: 1.08; font-weight: 800;
  letter-spacing: -0.03em; margin-bottom: 22px;
}
.grad {
  background: linear-gradient(120deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub {
  max-width: 640px; margin: 0 auto 32px; font-size: 18px; color: var(--text-dim);
}
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__note { margin-top: 18px; font-size: 14px; color: var(--text-dim); }

/* ===================== Sections ===================== */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__title { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -0.02em; text-align: center; }
.section__lead { text-align: center; color: var(--text-dim); font-size: 17px; margin: 10px 0 48px; }

/* ===================== Grid / cards ===================== */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card[data-service] { cursor: pointer; }
.card[data-service]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.card__icon { font-size: 26px; margin-bottom: 14px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 15px; }
.card__more {
  display: inline-block; margin-top: 14px;
  font-size: 14px; font-weight: 600; color: var(--accent);
}
.card__more::after { content: " →"; transition: margin .15s ease; }
.card:hover .card__more::after { margin-left: 4px; }

/* ===================== Modal ===================== */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal__overlay {
  position: absolute; inset: 0;
  background: rgba(3, 6, 10, 0.72);
  backdrop-filter: blur(4px);
}
.modal__panel {
  position: relative;
  width: 100%; max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  animation: modalIn .18s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal__icon { font-size: 34px; margin-bottom: 12px; }
.modal__panel h3 { font-size: 22px; margin-bottom: 12px; }
.modal__panel p { color: var(--text-dim); font-size: 15.5px; line-height: 1.7; }
.modal__cta { margin-top: 24px; }
.modal__close {
  position: absolute; top: 14px; right: 16px;
  width: 34px; height: 34px; border-radius: 8px;
  background: transparent; border: none; color: var(--text-dim);
  font-size: 26px; line-height: 1; cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.modal__close:hover { color: var(--text); background: var(--surface-2); }

/* ===================== Steps ===================== */
.steps { list-style: none; display: grid; gap: 18px; max-width: 760px; margin: 0 auto; }
.step {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.step__num {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800;
  background: linear-gradient(135deg, var(--grad-a), var(--accent-2)); color: #04140a;
}
.step h3 { font-size: 18px; margin-bottom: 4px; }
.step p { color: var(--text-dim); font-size: 15px; }

/* ===================== Pricing ===================== */
.pricing { max-width: 820px; margin: 0 auto; align-items: stretch; }
.plan {
  position: relative;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px;
  display: flex; flex-direction: column;
}
.plan--featured { border-color: var(--accent); box-shadow: 0 0 40px rgba(63,185,80,.12); }
.plan__badge {
  position: absolute; top: -12px; right: 20px;
  background: linear-gradient(135deg, var(--grad-a), var(--accent-2)); color: #04140a;
  font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
}
.plan__name { font-size: 20px; margin-bottom: 8px; }
.plan__price { margin-bottom: 14px; }
.plan__amt { font-size: 34px; font-weight: 800; }
.plan__per { color: var(--text-dim); font-size: 15px; }
.plan__desc { color: var(--text-dim); font-size: 15px; margin-bottom: 18px; }
.plan__list { list-style: none; display: grid; gap: 10px; margin-top: auto; }
.plan__list li { padding-left: 26px; position: relative; font-size: 15px; }
.plan__list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800;
}
.pricing__note { text-align: center; color: var(--text-dim); font-size: 14px; margin-top: 22px; }

/* Care plan band */
.careplan {
  max-width: 820px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(63,185,80,.10), rgba(86,212,221,.06)),
    var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: 0 0 50px rgba(63,185,80,.16);
}
.careplan__badge { position: static; display: inline-block; margin-bottom: 14px; }
.careplan__title { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; }
.careplan__per { font-size: 17px; font-weight: 500; color: var(--text-dim); margin-left: 4px; }
.careplan__desc { color: var(--text-dim); font-size: 15px; margin-top: 10px; }
.careplan__list { margin-top: 0; }

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

/* ===================== Calendly ===================== */
.calendly-inline-widget {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ===================== Footer ===================== */
.footer { border-top: 1px solid var(--border); padding: 48px 0; background: var(--bg-alt); }
.footer__inner { display: grid; gap: 8px; place-items: center; text-align: center; }
.footer__tag { color: var(--text-dim); font-size: 15px; }
.footer__contact a { color: var(--accent); }
.footer__copy { color: var(--text-dim); font-size: 13px; margin-top: 6px; }

/* ===================== Responsive ===================== */
@media (max-width: 860px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav__links a:not(.btn) { display: none; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 56px 0; }
}
