:root {
  --forest: #123d33;
  --forest-deep: #092b24;
  --jade: #1e7a61;
  --mint: #b7dccf;
  --cream: #f5f0e4;
  --paper: #fffdf8;
  --coral: #ee775f;
  --ink: #18342d;
  --muted: #66766f;
  --line: rgba(18, 61, 51, .14);
  --display: Georgia, 'Times New Roman', serif;
  --body: 'Trebuchet MS', 'Gill Sans', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 5vw, 80px); transition: .3s ease; }
.site-header.scrolled { height: 68px; background: rgba(255,253,248,.9); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-size: 20px; font-weight: 700; }
.brand-mark { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 50% 50% 46% 54%; color: white; background: var(--forest); font-style: italic; }
.main-nav { display: flex; align-items: center; gap: 34px; font-size: 14px; }
.main-nav > a:not(.nav-cta) { position: relative; }
.main-nav > a:not(.nav-cta)::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px; background: var(--forest); transition: right .25s; }
.main-nav > a:hover::after { right: 0; }
.nav-cta { color: white; background: var(--forest); padding: 12px 19px; border-radius: 999px; }
.menu-button { display: none; border: 0; background: none; padding: 10px; }
.menu-button span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px; background: var(--forest); }

.hero { min-height: 780px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: clamp(30px, 5vw, 80px); padding: 122px clamp(24px, 6vw, 96px) 72px; background: radial-gradient(circle at 7% 85%, rgba(183,220,207,.44), transparent 24%), linear-gradient(110deg, var(--cream) 0 55%, #dbe8df 55% 100%); }
.hero-copy { position: relative; z-index: 2; max-width: 680px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--jade); text-transform: uppercase; letter-spacing: .15em; font-size: 12px; font-weight: 700; }
.eyebrow > span { width: 32px; height: 1px; background: currentColor; }
.eyebrow.light { color: var(--mint); }
h1, h2, h3 { margin-top: 0; font-family: var(--display); font-weight: 500; }
h1 { max-width: 720px; margin-bottom: 27px; font-size: clamp(52px, 5.7vw, 88px); line-height: .98; letter-spacing: -.045em; }
h1 em { color: var(--jade); font-weight: 400; }
.hero-lead { max-width: 600px; margin: 0 0 32px; color: #52655f; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 25px; padding: 17px 24px; border-radius: 4px; font-weight: 700; transition: transform .25s, box-shadow .25s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(9,43,36,.16); }
.button-primary { color: white; background: var(--forest); }
.button-coral { color: var(--forest-deep); background: var(--coral); }
.text-link { padding: 12px 0; border-bottom: 1px solid var(--forest); font-weight: 700; font-size: 14px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 21px; margin-top: 36px; color: #65746f; font-size: 12px; }
.trust-row i { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 5px; border-radius: 50%; color: var(--forest); background: var(--mint); font-style: normal; }
.hero-visual { position: relative; align-self: stretch; min-height: 590px; }
.hero-photo-wrap { position: absolute; inset: 0 -8vw 0 0; overflow: hidden; border-radius: 0 0 0 120px; }
.hero-photo-wrap::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,61,51,.08), transparent 40%); }
.hero-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: 55% center; }
.floating-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 14px 17px; background: rgba(255,253,248,.94); box-shadow: 0 18px 50px rgba(9,43,36,.19); backdrop-filter: blur(10px); font-size: 12px; animation: float 5s ease-in-out infinite; }
.floating-card b, .floating-card span { display: block; }
.floating-card span { margin-top: 3px; color: var(--muted); }
.appointment-card { left: -48px; bottom: 95px; min-width: 260px; }
.appointment-card > i { margin-left: auto; color: white; background: var(--jade); width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; font-style: normal; }
.calendar-icon { width: 42px; height: 42px; display: grid; place-items: center; color: white; background: var(--coral); font-family: var(--display); font-size: 19px; }
.whatsapp-card { right: 1vw; top: 95px; animation-delay: -2s; }
.wa-dot { width: 38px; height: 38px; display: grid !important; place-items: center; margin: 0 !important; border-radius: 50%; color: white !important; background: #2a9d72; font-weight: 700; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.proof-band { display: flex; align-items: center; justify-content: center; gap: 45px; padding: 23px 6vw; color: white; background: var(--forest); }
.proof-band p { margin: 0; color: var(--mint); font-family: var(--display); font-style: italic; }
.proof-band div { display: flex; align-items: center; gap: 24px; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.proof-band i { width: 4px; height: 4px; border-radius: 50%; background: var(--coral); }

.section { padding: clamp(80px, 9vw, 140px) clamp(24px, 7vw, 112px); }
.section-heading { max-width: 730px; margin-bottom: 60px; }
.section-heading.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-heading.centered .eyebrow { justify-content: center; }
h2 { margin-bottom: 22px; font-size: clamp(42px, 5vw, 70px); line-height: 1.03; letter-spacing: -.035em; }
.section-heading > p:last-child, .booking-copy > p, .billing-copy > p, .feature-intro > p { color: var(--muted); font-size: 17px; line-height: 1.7; }
.dashboard-stage { position: relative; max-width: 1180px; margin: 0 auto; padding: 38px 220px 38px 38px; background: #e6eee8; }
.dashboard-stage > img { position: relative; z-index: 2; width: 100%; border: 8px solid white; box-shadow: 0 25px 70px rgba(9,43,36,.17); }
.stage-accent { position: absolute; width: 160px; height: 160px; left: -45px; bottom: -45px; border-radius: 50%; border: 38px solid var(--coral); opacity: .75; }
.stage-note { position: absolute; z-index: 3; right: 27px; top: 50%; width: 175px; transform: translateY(-50%); }
.stage-note > span { color: var(--coral); font-family: var(--display); font-size: 46px; font-style: italic; }
.stage-note b { display: block; margin: 9px 0 12px; font-family: var(--display); font-size: 22px; line-height: 1.12; }
.stage-note p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.features { color: white; background: var(--forest-deep); }
.feature-intro { max-width: 850px; }
.feature-intro > p { max-width: 650px; color: #adbbb5; }
.feature-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 20px; max-width: 1200px; margin: 60px auto 0; }
.feature-card { position: relative; min-height: 310px; padding: 34px; overflow: hidden; color: var(--ink); background: var(--cream); }
.feature-card-large { grid-row: span 2; min-height: 640px; padding: 0; background: #dceae3; }
.feature-card-large .card-copy { padding: 40px 42px 27px; }
.feature-card-large img { width: calc(100% - 42px); margin-left: 42px; border-radius: 10px 0 0; box-shadow: -10px 15px 40px rgba(9,43,36,.14); }
.feature-number { color: var(--coral); font-family: var(--display); font-size: 18px; font-style: italic; }
.feature-card h3 { margin: 18px 0 13px; font-size: 31px; line-height: 1.08; }
.feature-card p { color: #5f6d68; line-height: 1.6; }
.icon-bubble { width: 54px; height: 54px; display: grid; place-items: center; margin-top: 30px; border-radius: 50%; color: white; background: var(--jade); font-weight: 700; font-size: 22px; }
.feature-card.coral { background: var(--coral); }
.feature-card.coral .feature-number { color: var(--forest-deep); }
.feature-card.coral p { color: #4e4e42; }
.mini-patient { display: flex; align-items: center; gap: 12px; margin-top: 25px; padding: 13px; background: rgba(255,255,255,.42); }
.mini-patient > span { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 50%; color: white; background: var(--forest); }
.mini-patient b, .mini-patient small { display: block; }
.mini-patient small { margin-top: 4px; color: #5b554c; }

.booking-showcase, .billing-showcase { display: grid; grid-template-columns: .78fr 1.22fr; align-items: center; gap: clamp(45px, 8vw, 120px); }
.booking-copy, .billing-copy { max-width: 520px; }
.booking-window { border-radius: 12px; overflow: hidden; background: white; box-shadow: 0 35px 90px rgba(9,43,36,.18); transform: rotate(1.2deg); }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px; color: #82918c; background: #e9eeeb; font-size: 10px; }
.browser-bar i { width: 7px; height: 7px; border-radius: 50%; background: #b4c0bb; }
.browser-bar span { margin-left: 8px; }
.check-list { display: grid; gap: 14px; margin: 30px 0 0; padding: 0; list-style: none; }
.check-list span { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; color: white; background: var(--jade); font-size: 11px; }
.billing-showcase { grid-template-columns: 1.25fr .75fr; background: var(--cream); }
.billing-window { padding: 18px; background: #dbe7df; box-shadow: 0 25px 70px rgba(9,43,36,.14); transform: rotate(-1deg); }
.billing-window img { box-shadow: 0 12px 35px rgba(9,43,36,.13); }
.metric-pair { display: flex; gap: 35px; margin-top: 35px; padding-top: 26px; border-top: 1px solid var(--line); }
.metric-pair strong, .metric-pair span { display: block; }
.metric-pair strong { color: var(--jade); font-family: var(--display); font-size: 31px; }
.metric-pair span { margin-top: 4px; color: var(--muted); font-size: 12px; }

.how { background: #e4eee8; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1200px; margin: 0 auto; border-top: 1px solid rgba(18,61,51,.25); }
.steps article { position: relative; padding: 38px 28px; border-right: 1px solid rgba(18,61,51,.18); }
.steps article:last-child { border-right: 0; }
.steps article > span { position: absolute; top: -18px; left: 26px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--forest); font-family: var(--display); }
.steps h3 { margin: 16px 0 12px; font-size: 25px; }
.steps p { margin: 0; color: var(--muted); line-height: 1.55; }

.closing { position: relative; min-height: 600px; display: grid; grid-template-columns: 1fr .8fr; align-items: center; overflow: hidden; padding: clamp(80px, 10vw, 150px) clamp(24px, 9vw, 145px); color: white; background: var(--forest); }
.closing::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(90deg, transparent, black); }
.closing-copy { position: relative; z-index: 2; max-width: 700px; }
.closing-copy p:not(.eyebrow) { max-width: 600px; color: #c0cec8; font-size: 17px; line-height: 1.65; }
.closing-copy .button { margin-top: 25px; }
.closing-orbit { position: relative; min-height: 400px; }
.orbit { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(183,220,207,.35); border-radius: 50%; transform: translate(-50%,-50%); }
.orbit-one { width: 380px; height: 380px; }
.orbit-two { width: 260px; height: 260px; }
.closing-badge { position: absolute; left: 50%; top: 50%; width: 190px; height: 190px; display: grid; place-content: center; text-align: center; border-radius: 48% 52% 45% 55%; color: var(--forest-deep); background: var(--mint); transform: translate(-50%,-50%) rotate(-6deg); }
.closing-badge b { font-family: var(--display); font-size: 30px; }
.closing-badge span { margin-top: 5px; font-size: 13px; }
footer { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 25px clamp(24px, 7vw, 112px); color: #72817b; background: var(--forest-deep); font-size: 12px; }
.footer-brand { color: white; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal-delay { transition-delay: .12s; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .site-header { height: 70px; background: rgba(255,253,248,.92); backdrop-filter: blur(12px); }
  .menu-button { display: block; z-index: 2; }
  .main-nav { position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 30px; background: var(--cream); font-family: var(--display); font-size: 28px; transform: translateX(100%); transition: transform .35s ease; }
  .main-nav.open { transform: none; }
  .nav-cta { font-family: var(--body); font-size: 14px; }
  .hero { grid-template-columns: 1fr; padding-top: 120px; background: linear-gradient(180deg, var(--cream) 0 55%, #dbe8df 55% 100%); }
  .hero-visual { min-height: 580px; }
  .hero-photo-wrap { inset: 0; border-radius: 80px 0 0 0; }
  .appointment-card { left: 18px; }
  .proof-band { flex-direction: column; gap: 12px; }
  .dashboard-stage { padding: 30px; }
  .stage-note { position: relative; right: auto; top: auto; width: auto; margin: 30px 0 0; transform: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card-large { grid-row: auto; min-height: 0; }
  .booking-showcase, .billing-showcase { grid-template-columns: 1fr; }
  .billing-window { order: 2; }
  .steps { grid-template-columns: 1fr 1fr; gap: 30px 0; }
  .closing { grid-template-columns: 1fr; }
  .closing-orbit { min-height: 360px; }
}

@media (max-width: 620px) {
  h1 { font-size: 52px; }
  h2 { font-size: 42px; }
  .hero { min-height: auto; padding-left: 20px; padding-right: 20px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 8px; }
  .button { width: 100%; }
  .text-link { align-self: center; }
  .hero-visual { min-height: 460px; }
  .hero-photo-wrap img { object-position: 61% center; }
  .floating-card { transform: scale(.88); }
  .appointment-card { left: -12px; bottom: 25px; }
  .whatsapp-card { right: -20px; top: 35px; }
  .proof-band div { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .section { padding-left: 20px; padding-right: 20px; }
  .dashboard-stage { padding: 12px; }
  .dashboard-stage > img { border-width: 3px; }
  .stage-accent { display: none; }
  .feature-card { padding: 25px; }
  .feature-card-large { padding: 0; }
  .feature-card-large .card-copy { padding: 28px 25px 22px; }
  .feature-card-large img { width: calc(100% - 18px); margin-left: 18px; }
  .feature-card h3 { font-size: 27px; }
  .metric-pair { gap: 20px; }
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .steps article { border-top: 1px solid rgba(18,61,51,.25); border-right: 0; }
  .closing { min-height: auto; padding-left: 20px; padding-right: 20px; }
  .closing-orbit { min-height: 300px; }
  .orbit-one { width: 290px; height: 290px; }
  footer { flex-direction: column; text-align: center; padding-top: 40px; padding-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
