/* MedChrona — dark, minimal, type-forward. One committed look. */

:root {
  --bg: #0a0a0d;
  --surface: #141419;
  --surface-2: #1a1a21;
  --line: #26262e;
  --line-strong: #3a3a46;
  --text: #f2f2f6;
  --muted: #a2a2ae;
  --faint: #6b6b78;
  --accent: #34c98a;
  --accent-deep: #24a870;
  --accent-soft: rgba(52, 201, 138, 0.12);
  --radius: 20px;
  --radius-sm: 12px;
  --font-display: "Inter Tight", "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

::selection { background: var(--accent); color: #0a0a0d; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 13, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(10, 10, 13, 0.92); }

.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { display: block; }
.brand svg path { stroke: var(--text); }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 650; color: var(--text);
  letter-spacing: -0.02em;
}
.brand-name span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--muted);
  font-size: 0.93rem; font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* Buttons: pill, minimal */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  border-radius: 999px; padding: 13px 26px; font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease,
              transform 0.18s ease, box-shadow 0.18s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--text); color: #0a0a0d; }
.btn-primary:hover { background: #ffffff; box-shadow: 0 8px 28px rgba(255, 255, 255, 0.14); }
.btn-accent { background: var(--accent); color: #0a0a0d; }
.btn-accent:hover { background: #4fdba0; box-shadow: 0 8px 28px rgba(52, 201, 138, 0.30); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-login { padding: 10px 20px; }

.nav-toggle { display: none; }

/* ---------- Hero: centered, cinematic ---------- */

.hero {
  position: relative;
  padding: 110px 0 90px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto;
  height: 130%;
  pointer-events: none;
  background:
    radial-gradient(56% 46% at 50% 0%, rgba(52, 201, 138, 0.13), transparent 68%),
    radial-gradient(40% 34% at 78% 22%, rgba(96, 130, 214, 0.10), transparent 70%);
}
.hero .wrap { position: relative; display: block; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6.4vw, 4.9rem);
  line-height: 1.04; font-weight: 650; letter-spacing: -0.035em;
  margin: 0 auto 26px; max-width: 15em;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted);
  max-width: 42em; margin: 0 auto 34px;
  text-wrap: balance;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-note { margin-top: 26px; font-size: 0.9rem; color: var(--faint); }

/* Showcase frame beneath the hero copy — the "product shot" */
.hero-stage { margin: 64px auto 0; max-width: 660px; position: relative; text-align: left; }
.hero-stage::before {
  content: ""; position: absolute; inset: -1px;
  border-radius: calc(var(--radius) + 1px);
  background: linear-gradient(135deg, rgba(224,147,46,0.5), rgba(224,147,46,0.06) 34%, rgba(96,130,214,0.28) 82%);
  pointer-events: none;
}
.hero-panel {
  position: relative;
  background: var(--surface); border-radius: var(--radius);
  padding: 30px 32px; color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transition: transform 0.15s ease-out;
  will-change: transform;
}
.hero-panel .case-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.hero-panel .case-title strong { font-size: 1.05rem; letter-spacing: -0.01em; }
.badge {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 4px 11px; border-radius: 999px; text-transform: uppercase;
}
.badge-review { background: var(--accent-soft); color: var(--accent); }
.badge-done { background: rgba(46, 178, 108, 0.14); color: #4ecd8d; }
.hero-panel .meta { font-size: 0.86rem; color: var(--muted); margin-bottom: 18px; }
.timeline { list-style: none; border-left: 1px solid var(--line-strong); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 15px 20px; font-size: 0.9rem; }
.timeline li:last-child { padding-bottom: 2px; }
.timeline li::before {
  content: ""; position: absolute; left: -5.5px; top: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--surface);
}
.timeline li .t-date { font-weight: 600; color: var(--text); margin-right: 8px; font-variant-numeric: tabular-nums; }
.timeline li .t-src { color: var(--faint); }

/* ---------- Sections ---------- */

section { padding: 104px 0; }
section.alt { background: transparent; }

.kicker {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 650;
  color: var(--text); letter-spacing: -0.03em; line-height: 1.12;
  margin-bottom: 18px;
}
.section-intro { color: var(--muted); max-width: 46em; margin-bottom: 48px; font-size: 1.06rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--surface-2); }
.card h3 {
  font-family: var(--font-display);
  font-size: 1.12rem; font-weight: 600; color: var(--text);
  letter-spacing: -0.015em; margin-bottom: 10px;
}
.card p { font-size: 0.95rem; color: var(--muted); }
.card .num {
  font-family: var(--font-display); font-size: 2rem; color: var(--accent);
  font-weight: 650; display: block; margin-bottom: 8px;
}

/* steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  position: relative; padding: 28px 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.step:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 650;
  color: var(--accent); display: inline-block; margin-bottom: 14px;
  background: var(--accent-soft); border-radius: 999px; padding: 4px 12px;
  letter-spacing: 0.06em;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: 8px;
  letter-spacing: -0.015em;
}
.step p { font-size: 0.92rem; color: var(--muted); }

/* ---------- Carousel (scroll-snap) ---------- */

.carousel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.carousel-head h2 { margin-bottom: 0; }
.carousel-arrows { display: flex; gap: 10px; }
.car-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line-strong);
  color: var(--text); font-size: 1.1rem; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.car-btn:hover { border-color: var(--text); transform: translateY(-2px); }

.carousel {
  display: flex; gap: 18px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 340px; scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
  transition: border-color 0.22s ease, background 0.22s ease;
}
.slide:hover { border-color: var(--line-strong); background: var(--surface-2); }
.slide .tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); background: var(--accent-soft);
  border-radius: 999px; padding: 4px 12px; margin-bottom: 16px;
}
.slide h3 {
  font-family: var(--font-display);
  font-size: 1.12rem; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 8px;
}
.slide p { font-size: 0.92rem; color: var(--muted); }

/* ---------- Big statement ---------- */

.statement { text-align: center; }
.statement .big {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 650;
  letter-spacing: -0.035em; line-height: 1.1; max-width: 18em; margin: 0 auto 22px;
}
.statement .big em { font-style: normal; color: var(--accent); }
.statement p { color: var(--muted); max-width: 44em; margin: 0 auto; }

/* ---------- Pricing tiles ---------- */

.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.tiers-3 { grid-template-columns: repeat(3, 1fr); }
.tier {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; display: flex; flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.tier:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.tier.feature { border-color: var(--accent); }
.tier .tier-name { font-family: var(--font-display); font-weight: 650; color: var(--text); font-size: 1.1rem; letter-spacing: -0.015em; }
.tier .tier-for { font-size: 0.86rem; color: var(--muted); margin: 4px 0 18px; }
.tier .price { font-family: var(--font-display); font-size: 2.4rem; color: var(--text); font-weight: 650; letter-spacing: -0.03em; }
.tier .price small { font-family: var(--font-body); font-size: 0.85rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.tier ul { list-style: none; margin: 20px 0 26px; flex: 1; }
.tier ul li {
  font-size: 0.9rem; color: var(--text); padding: 8px 0 8px 26px;
  position: relative; border-top: 1px solid var(--line);
}
.tier ul li::before { content: "✓"; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }
.tier .btn { text-align: center; }
.tier-tag {
  align-self: flex-start; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); background: var(--accent-soft);
  border-radius: 999px; padding: 4px 12px; margin-bottom: 12px;
}

/* ---------- Prose / misc ---------- */

.prose p { margin-bottom: 18px; color: var(--text); max-width: 46em; }
.prose p.muted { color: var(--muted); }

.check-list { list-style: none; }
.check-list li { padding: 10px 0 10px 32px; position: relative; border-bottom: 1px solid var(--line); }
.check-list li:last-child { border-bottom: none; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.cta-band {
  text-align: center; padding: 110px 0; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(52% 62% at 50% 100%, rgba(52, 201, 138, 0.14), transparent 70%);
}
.cta-band .wrap { position: relative; }
.cta-band h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.cta-band p { color: var(--muted); margin-bottom: 32px; }

/* forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--text); background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-note {
  background: var(--accent-soft); border: 1px solid rgba(52, 201, 138, 0.3);
  padding: 16px 18px; border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--text);
  margin: 18px 0;
}
button.btn { border: none; cursor: pointer; font-size: 1rem; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); color: var(--muted); padding: 64px 0 34px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 44px; }
.site-footer .brand-name { color: var(--text); }
.site-footer h4 {
  color: var(--text); font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.12em; margin-bottom: 14px; font-weight: 600;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--muted); text-decoration: none; transition: color 0.15s ease; }
.site-footer a:hover { color: var(--text); }
.footer-legal { border-top: 1px solid var(--line); padding-top: 24px; font-size: 0.8rem; color: var(--faint); }

/* ---------- Motion ---------- */

.hero h1 .w {
  display: inline-block; opacity: 0;
  transform: translateY(0.5em);
  animation: wordIn 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
@keyframes wordIn { to { opacity: 1; transform: translateY(0); } }

.hero p.lede, .hero-ctas, .hero-note { opacity: 0; animation: fadeUp 0.8s ease forwards; }
.hero p.lede { animation-delay: 0.4s; }
.hero-ctas  { animation-delay: 0.55s; }
.hero-note  { animation-delay: 0.7s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero-stage { opacity: 0; animation: fadeUp 0.9s ease 0.5s forwards; }
.timeline li { opacity: 0; animation: fadeUp 0.55s ease forwards; }
.timeline li:nth-child(1) { animation-delay: 1.0s; }
.timeline li:nth-child(2) { animation-delay: 1.15s; }
.timeline li:nth-child(3) { animation-delay: 1.3s; }
.timeline li:nth-child(4) { animation-delay: 1.45s; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero h1 .w, .hero p.lede, .hero-ctas, .hero-note, .hero-stage, .timeline li { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-3, .grid-4, .steps { grid-template-columns: 1fr 1fr; }
  .tiers { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: block; background: none; border: 1px solid var(--line-strong);
    border-radius: 999px; padding: 8px 14px; font-size: 1rem; color: var(--text); cursor: pointer;
  }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute;
    top: 68px; left: 0; right: 0; background: var(--bg);
    border-bottom: 1px solid var(--line); padding: 20px 28px; gap: 16px;
  }
  .grid-3, .grid-2, .grid-4, .steps, .tiers, .form-grid { grid-template-columns: 1fr; }
  section { padding: 68px 0; }
  .hero { padding: 76px 0 60px; }
  .slide { flex-basis: 84%; }
  .carousel-head { flex-direction: column; align-items: flex-start; }
}

/* ---------- Full-screen hero + photographic section heroes ---------- */

.hero-full {
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 90px 0;
  background-size: cover; background-position: center;
  background-color: var(--bg);
}
.hero-full::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,10,13,0.72) 0%, rgba(10,10,13,0.45) 45%, rgba(10,10,13,0.92) 100%);
}
.hero-full .wrap { position: relative; z-index: 2; }
.hero-full h1 { text-shadow: 0 2px 30px rgba(0,0,0,0.5); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 2; color: var(--muted); font-size: 1.3rem; text-decoration: none;
  animation: cueBob 2.2s ease-in-out infinite;
}
@keyframes cueBob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

.hero-img {
  background-size: cover; background-position: center;
  background-color: var(--bg);
}
.hero-img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,10,13,0.78) 0%, rgba(10,10,13,0.55) 55%, rgba(10,10,13,1) 100%);
}
.hero-img .wrap { position: relative; z-index: 2; }

.photo-card {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--surface);
}
.photo-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- Section variance: bento grid + vertical timeline ---------- */

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bento .card.span2 { grid-column: span 2; }
.bento .card.big h3 { font-size: 1.5rem; }
.bento .card.big p { font-size: 1.02rem; max-width: 40em; }
.bento .card .badge-line {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); background: var(--accent-soft);
  border-radius: 999px; padding: 4px 12px; margin-bottom: 14px;
}
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } .bento .card.span2 { grid-column: auto; } }

.vtimeline { position: relative; max-width: 760px; margin-top: 48px; padding-left: 42px; }
.vtimeline::before {
  content: ""; position: absolute; left: 10px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(180deg, var(--accent), rgba(52,201,138,0.12));
}
.vt-item { position: relative; padding-bottom: 44px; }
.vt-item:last-child { padding-bottom: 0; }
.vt-item::before {
  content: ""; position: absolute; left: -38px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}
.vt-item .vt-step {
  display: inline-block; font-family: var(--font-display); font-size: 0.78rem; font-weight: 650;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.vt-item h3 {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
  letter-spacing: -0.02em; margin-bottom: 8px;
}
.vt-item p { color: var(--muted); max-width: 44em; }

/* directional reveal for timeline */
.reveal-left { opacity: 0; transform: translateX(-26px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-left.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal-left { opacity: 1; transform: none; } }

/* Client Login: white text on the deeper brand emerald (Kevin, 8/21) */
.btn-accent.btn-login { background: var(--accent-deep); color: #ffffff; }
.btn-accent.btn-login:hover { background: var(--accent); color: #ffffff; }

/* Audience chips (Who we serve) */
.chiprow { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--accent); background: var(--accent-soft);
  border-radius: 999px; padding: 4px 12px;
}
