:root {
  --snow: #FBFBF9;
  --mist: #EEF1EE;
  --ink: #141714;
  --ink-2: #4A504B;
  --lichen: #6A706B;
  --line: #E6E9E6;
  --ever: #1E3B2E;
  --ever-soft: #A9BDB1;
  --sun: #F3E6CC;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --pad: clamp(20px, 4.5vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--snow); scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--snow);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--ever); letter-spacing: -0.01em; }

.eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lichen);
}
.eyebrow.sm { font-size: 11px; letter-spacing: 0.12em; }
.eyebrow.light { color: var(--ever-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 28px; border-radius: 999px; font-size: 16px; font-weight: 500;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 11px 20px; font-size: 15px; }
.btn-dark { background: var(--ever); color: var(--snow); }
.btn-dark:hover { background: #17301f; }
.btn-ghost { border-color: #D5DAD6; color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--snow); color: var(--ever); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  background: rgba(251, 251, 249, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 500; letter-spacing: -0.03em; }
.brand.sm { font-size: 18px; gap: 8px; }
.mark { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ever); display: inline-flex; align-items: center; justify-content: center; }
.brand.sm .mark { width: 18px; height: 18px; }
.mark span { width: 8px; height: 8px; border-radius: 50%; background: var(--ever); }
.brand.sm .mark span { width: 6px; height: 6px; }
.links { display: flex; gap: 40px; font-size: 15px; }
.links a, .login { opacity: .85; transition: opacity .2s; }
.links a:hover, .login:hover { opacity: 1; }
.nav-cta { display: flex; align-items: center; gap: 24px; font-size: 15px; }

/* Hero */
.hero {
  position: relative; min-height: calc(100vh - 80px); min-height: calc(100svh - 80px);
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 40px;
  padding: 40px var(--pad) 80px; overflow: hidden;
}
.glow { position: absolute; border-radius: 50%; pointer-events: none; }
.glow-mist { width: 820px; height: 820px; left: -260px; top: -340px; background: radial-gradient(circle, #E4EBE6 0%, rgba(228,235,230,.5) 40%, rgba(251,251,249,0) 70%); }
.glow-sun { width: 820px; height: 820px; right: -200px; top: 40px; background: radial-gradient(circle, var(--sun) 0%, rgba(243,230,204,.55) 38%, rgba(251,251,249,0) 70%); }
.hero-copy { position: relative; display: flex; flex-direction: column; gap: 32px; max-width: 760px; }
h1 { font-size: clamp(56px, 7.4vw, 112px); font-weight: 400; line-height: .96; letter-spacing: -0.045em; }
h1 em { letter-spacing: -0.02em; }
.lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 540px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 8px; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 328px; height: 680px; border-radius: 56px; background: var(--ink); padding: 10px;
  box-shadow: 0 40px 80px rgba(30, 59, 46, .16);
  animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both .1s;
}
.screen { width: 100%; height: 100%; border-radius: 46px; background: var(--snow); padding: 56px 22px 22px; display: flex; flex-direction: column; gap: 20px; overflow: hidden; }
.hello { font-size: 28px; letter-spacing: -0.03em; margin-top: -14px; }
.week { display: flex; justify-content: space-between; }
.week .d { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 30px; }
.week i { font-style: normal; font-size: 11px; color: var(--lichen); }
.week b { width: 26px; height: 26px; border-radius: 50%; background: var(--mist); }
.week .done b { background: var(--ever); }
.week .missed b { background: transparent; border: 1.5px dashed #B9C0BA; }
.week .today i { color: var(--ink); font-weight: 600; }
.week .today b { background: transparent; border: 1.5px solid var(--ever); }
.session { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 28px; background: var(--ever); color: var(--snow); }
.session::after { content: ""; position: absolute; right: -90px; top: -110px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(243,230,204,.3), rgba(30,59,46,0) 70%); }
.session .title { font-size: 24px; letter-spacing: -0.02em; }
.session .meta { font-size: 14px; color: #C9D6CE; }
.start { position: relative; z-index: 1; margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: 999px; background: var(--snow); color: var(--ever); font-size: 15px; font-weight: 500; }
.note { display: flex; gap: 12px; align-items: flex-start; }
.avatar { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: #E4DCCB; color: #5B5140; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.note p { font-size: 14px; line-height: 20px; color: var(--ink-2); }
.note strong { display: block; font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 2px; }
.trend { display: flex; align-items: flex-end; justify-content: space-between; padding: 16px 18px; border-radius: 22px; background: var(--mist); }
.trend .label { display: block; font-size: 12px; color: var(--lichen); }
.trend .num { font-size: 26px; letter-spacing: -0.02em; }
.trend small { font-size: 14px; color: var(--ever); }

.toast-card {
  position: absolute; left: calc(50% - 300px); bottom: -34px; width: 270px;
  display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: 20px;
  background: #fff; border: 1px solid #E6E9E6; box-shadow: 0 18px 40px rgba(20,23,20,.08);
  animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both .6s;
}
.toast-card .row { display: flex; justify-content: space-between; }
.toast-card .now { font-size: 11px; color: var(--lichen); }
.toast-card p { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 19px; }
.toast-card .dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: #2F7A52; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Sections */
.section { padding: clamp(80px, 11vw, 160px) var(--pad) 0; }
.section-head { display: flex; flex-direction: column; gap: 20px; max-width: 760px; margin-bottom: clamp(40px, 5vw, 72px); }
h2 { font-size: clamp(40px, 5vw, 72px); font-weight: 400; line-height: 1.02; letter-spacing: -0.04em; }
.sub { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.55; color: var(--ink-2); max-width: 560px; }
h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { display: flex; flex-direction: column; gap: 12px; }
.card p { font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 380px; }
.vis { height: 300px; border-radius: 28px; background: var(--mist); margin-bottom: 16px; display: flex; align-items: center; justify-content: center; padding: 28px; overflow: hidden; }
.vis-dark { background: linear-gradient(180deg, #33433A, #141714); }
.mini-player { width: 100%; display: flex; flex-direction: column; gap: 8px; color: var(--snow); }
.mini-player .bars { display: flex; gap: 4px; margin-bottom: 28px; }
.mini-player .bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(251,251,249,.25); }
.mini-player .bars i.on { background: var(--snow); }
.mini-player .bars i.half { background: linear-gradient(90deg, var(--snow) 55%, rgba(251,251,249,.25) 55%); }
.mini-player .ex { font-size: 32px; letter-spacing: -0.03em; }
.mini-player .reps { font-size: 72px; font-weight: 300; letter-spacing: -0.05em; line-height: 1; }
.mini-player .reps span { font-size: 18px; letter-spacing: 0; color: rgba(251,251,249,.55); margin-left: 6px; }
.scale { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.scale .q { font-size: 17px; color: var(--ink); }
.scale .nums { display: flex; justify-content: space-between; gap: 3px; }
.scale .nums i { flex: 1; height: 40px; border-radius: 9px; background: #fff; font-style: normal; font-size: 13px; color: var(--ink-2); display: flex; align-items: center; justify-content: center; }
.scale .nums i.on { background: var(--ever); color: var(--snow); font-weight: 600; }
.scale .ans { font-size: 14px; color: var(--ink-2); padding: 12px 14px; border-radius: 14px; background: #fff; }
.scale .ans b { color: var(--ever); font-weight: 500; margin-right: 4px; }
.progress { width: 100%; display: flex; flex-direction: column; gap: 22px; }
.progress .big { font-size: 30px; letter-spacing: -0.03em; line-height: 1.1; }
.progress svg { width: 100%; height: 90px; }

/* Clinics */
.app-window { border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 40px 100px rgba(20, 23, 20, .08); overflow: hidden; }
.win-bar { display: flex; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #F6F7F5; }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #DADFDA; }
.win-body { display: grid; grid-template-columns: 210px 1fr; }
.win-body aside { padding: 22px 14px; border-right: 1px solid var(--line); background: #F6F7F5; display: flex; flex-direction: column; gap: 24px; }
.win-body aside .brand { padding: 0 8px; }
.win-body ul { list-style: none; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--ink-2); }
.win-body li { padding: 9px 10px; border-radius: 10px; display: flex; justify-content: space-between; }
.win-body li.on { background: #E8EDE9; color: var(--ink); font-weight: 500; }
.win-body li b { font-size: 11px; color: var(--snow); background: var(--ever); padding: 1px 7px; border-radius: 999px; }
.win-main { padding: 32px 40px 28px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.win-title { font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -0.035em; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 16px 0 8px; }
.kpis div { padding: 16px 0 16px 20px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.kpis div:first-child { padding-left: 0; border-left: 0; }
.kpis span { font-size: 12px; color: var(--lichen); }
.kpis b { font-size: 26px; font-weight: 400; letter-spacing: -0.03em; }
.rows .r { display: grid; grid-template-columns: 1.6fr 1.2fr 1fr .9fr; align-items: center; padding: 14px 0; border-bottom: 1px solid #ECEEEB; font-size: 14px; gap: 12px; }
.rows .r:last-child { border-bottom: 0; }
.who { display: flex; align-items: center; gap: 12px; }
.who i { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: #E3E8E4; font-style: normal; font-size: 12px; font-weight: 600; color: #3D4A42; display: flex; align-items: center; justify-content: center; }
.who small { display: block; font-size: 12px; color: var(--lichen); }
.pill { justify-self: start; font-size: 12.5px; padding: 5px 10px 5px 22px; border-radius: 999px; position: relative; white-space: nowrap; }
.pill::before { content: ""; position: absolute; left: 10px; top: 50%; width: 6px; height: 6px; border-radius: 50%; transform: translateY(-50%); }
.pill.red { background: #F6E3DE; color: #7A2F1F; } .pill.red::before { background: #B4472F; }
.pill.amber { background: #F5ECD8; color: #6B4C0F; } .pill.amber::before { background: #A87618; }
.pill.green { background: #E3EBE5; color: var(--ever); } .pill.green::before { background: #2F7A52; }
.days { color: var(--ever); letter-spacing: 3px; font-size: 13px; }
.act { justify-self: end; color: var(--ever); font-weight: 500; white-space: nowrap; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; }
.features p { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }

/* Evidence */
.ev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 120px); align-items: end; border-top: 1px solid var(--line); padding-top: 64px; }
.big-num { font-size: clamp(96px, 12vw, 180px); font-weight: 300; letter-spacing: -0.06em; line-height: .9; color: var(--ever); }
.big-num span { font-size: .3em; letter-spacing: -0.02em; color: var(--ink); }
.ev-stat p:not(.big-num) { margin-top: 20px; font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 460px; }
.ev-stat a { display: inline-block; margin-top: 14px; font-size: 14px; color: var(--lichen); border-bottom: 1px solid #D5DAD6; }
.ev-quote .q { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.2; letter-spacing: -0.01em; }
.ev-quote .by { margin-top: 20px; font-size: 14px; color: var(--lichen); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan { display: flex; flex-direction: column; gap: 18px; padding: 36px 32px; border-radius: 28px; border: 1px solid var(--line); background: #fff; }
.plan .name { font-size: 15px; font-weight: 500; color: var(--lichen); letter-spacing: .02em; }
.plan .price { font-size: 48px; letter-spacing: -0.04em; }
.plan .price span { font-size: 15px; letter-spacing: 0; color: var(--lichen); margin-left: 6px; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 12px; flex: 1; margin: 8px 0 12px; }
.plan li { font-size: 15px; line-height: 1.45; color: var(--ink-2); padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 6px; border-left: 1.6px solid var(--ever); border-bottom: 1.6px solid var(--ever); transform: rotate(-45deg); }
.plan.featured { background: var(--ever); border-color: var(--ever); color: var(--snow); position: relative; overflow: hidden; }
.plan.featured::after { content: ""; position: absolute; right: -140px; top: -160px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(243,230,204,.28), rgba(30,59,46,0) 70%); pointer-events: none; }
.plan.featured .name, .plan.featured .price span { color: var(--ever-soft); }
.plan.featured li { color: #D6E1DA; }
.plan.featured li::before { border-color: var(--sun); }

/* CTA */
.cta { position: relative; overflow: hidden; margin-top: clamp(80px, 11vw, 160px); padding: clamp(80px, 10vw, 140px) var(--pad); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; border-top: 1px solid var(--line); }
.cta-glow { left: 50%; top: 10%; right: auto; transform: translateX(-50%); }
.cta h2, .cta .sub, .cta form { position: relative; }
.cta .sub { text-align: center; }
.demo-form { display: flex; gap: 10px; margin-top: 12px; width: min(480px, 100%); }
.demo-form input { flex: 1; min-width: 0; padding: 16px 22px; border-radius: 999px; border: 1px solid #D5DAD6; background: #fff; font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.demo-form input:focus { border-color: var(--ever); }

.footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px var(--pad) 40px; font-size: 14px; color: var(--lichen); border-top: 1px solid var(--line); }
.footer .brand { color: var(--ink); }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); padding: 13px 20px; border-radius: 999px; background: var(--ink); color: var(--snow); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1100px) {
  .links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .hero-visual { padding-top: 20px; }
  .toast-card { left: calc(50% - 250px); }
  .rows .r { grid-template-columns: 1.5fr 1.3fr .9fr; }
  .rows .days { display: none; }
}
@media (max-width: 820px) {
  .trio, .features, .plans, .ev-grid { grid-template-columns: 1fr; }
  .win-body { grid-template-columns: 1fr; }
  .win-body aside { display: none; }
  .win-main { padding: 22px 20px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpis div:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .kpis div:nth-child(4) { border-top: 1px solid var(--line); }
  .rows .r { grid-template-columns: 1fr auto; row-gap: 8px; }
  .rows .act { display: none; }
}
@media (max-width: 560px) {
  .login { display: none; }
  .nav { padding-top: 16px; padding-bottom: 16px; }
  .phone { transform: scale(.88); transform-origin: top center; margin-bottom: -80px; animation: none; }
  .toast-card { left: 50%; transform: translateX(-50%); bottom: 0; animation: none; width: 280px; }
  .demo-form { flex-direction: column; }
  .footer { flex-direction: column; align-items: flex-start; }
  .vis { height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
