:root {
  --ink: #11130f;
  --muted: #62665e;
  --paper: #f4f4ee;
  --card: #ffffff;
  --line: rgba(17, 19, 15, 0.12);
  --lime: #caff5a;
  --mint: #93efd1;
  --violet: #959cff;
  --peach: #ffbea8;
  --shadow: 0 26px 80px rgba(26, 32, 18, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 7%, rgba(202, 255, 90, 0.16), transparent 22rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: max(12px, env(safe-area-inset-top)) 18px 12px;
  border-bottom: 1px solid rgba(17, 19, 15, 0.08);
  background: rgba(244, 244, 238, 0.82);
  backdrop-filter: blur(18px) saturate(150%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 720;
  letter-spacing: -0.01em;
}

.brand-mark,
.closing-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: var(--ink);
  color: white;
  font-weight: 800;
}

.brand-parent {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-shell {
  width: min(100% - 36px, 1120px);
  margin-inline: auto;
}

.hero {
  display: grid;
  gap: 38px;
  padding-block: 54px 82px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: #555a50;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.56);
}

.live-dot,
.pulse-badge i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #74d342;
  box-shadow: 0 0 0 5px rgba(116, 211, 66, 0.12);
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: -0.052em;
}

h1 {
  max-width: 900px;
  font-size: clamp(3.25rem, 14vw, 7.6rem);
  font-weight: 560;
}

h2 {
  font-size: clamp(2.25rem, 10vw, 5.6rem);
  font-weight: 560;
}

h3 {
  font-size: 1.35rem;
  font-weight: 620;
  letter-spacing: -0.035em;
}

.hero-lead,
.section-heading > p:last-child,
.statement > div > p:last-child,
.safety-copy > p:last-child,
.professional .section-heading > p:last-child {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 4vw, 1.35rem);
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.calendar-demo {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px;
  background:
    radial-gradient(circle at 85% 10%, rgba(149, 156, 255, 0.35), transparent 18rem),
    linear-gradient(145deg, #171a15, #0e100d);
  box-shadow: 0 34px 90px rgba(17, 19, 15, 0.22);
  color: white;
}

.calendar-demo::before {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(202, 255, 90, 0.13);
  content: "";
  filter: blur(50px);
  inset: 50% auto auto -80px;
}

.demo-head,
.briefing-head,
.conversation-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.demo-head > div {
  display: grid;
  gap: 3px;
}

.demo-head strong {
  font-size: 14px;
}

.demo-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.68);
  font-size: 9px;
}

.pulse-badge i {
  width: 6px;
  height: 6px;
  box-shadow: 0 0 0 4px rgba(116, 211, 66, 0.1);
  animation: pulse 2.4s infinite;
}

.days {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin: 20px 0 14px 44px;
}

.days span {
  display: grid;
  min-height: 44px;
  place-items: center;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}

.days small {
  font-size: 7px;
  letter-spacing: 0.08em;
}

.days .is-today {
  background: white;
  color: var(--ink);
  font-weight: 800;
}

.schedule {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px;
}

.time {
  padding-top: 12px;
  color: rgba(255, 255, 255, 0.36);
  font-size: 9px;
}

.appointment {
  display: grid;
  gap: 2px;
  min-height: 66px;
  padding: 11px 12px;
  border-radius: 13px;
  color: #141611;
}

.appointment-mint { background: var(--mint); }
.appointment-violet { background: var(--violet); }
.appointment-lime { background: var(--lime); }

.appointment-status {
  justify-self: start;
  color: rgba(20, 22, 17, 0.58);
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.appointment strong {
  font-size: 12px;
}

.appointment small {
  color: rgba(20, 22, 17, 0.6);
  font-size: 9px;
}

.agent-note {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.07);
}

.agent-avatar {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: var(--lime);
  color: var(--ink);
  font-size: 12px;
}

.agent-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 10px;
  line-height: 1.45;
}

.agent-note strong {
  color: white;
}

.statement,
.scenario {
  display: grid;
  gap: 24px;
  padding-block: 96px;
  border-top: 1px solid var(--line);
}

.section-number {
  margin: 0;
  color: #9b9e96;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.statement h2,
.scenario h2 {
  max-width: 930px;
}

.engine,
.patient,
.professional,
.capabilities {
  padding-block: 96px;
}

.section-heading {
  display: grid;
  gap: 0;
  margin-bottom: 42px;
}

.section-heading h2 {
  max-width: 920px;
}

.engine-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.engine-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 7px;
  border-bottom: 1px solid var(--line);
  background: #f6f6f2;
}

.engine-tabs button {
  display: grid;
  gap: 3px;
  min-height: 56px;
  padding: 8px 4px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #5f635b;
  cursor: pointer;
  font-size: 10px;
  font-weight: 680;
}

.engine-tabs button span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
}

.engine-tabs button[aria-selected="true"] {
  background: var(--ink);
  color: white;
}

.engine-tabs button:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
}

.engine-panel {
  display: grid;
  gap: 24px;
  padding: 28px 22px 34px;
}

.engine-panel[hidden] {
  display: none;
}

.panel-orbit {
  display: grid;
  width: 94px;
  height: 94px;
  place-items: center;
  border-radius: 50%;
  box-shadow: inset 0 0 0 14px rgba(255, 255, 255, 0.32);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.panel-orbit-mint { background: var(--mint); }
.panel-orbit-violet { background: var(--violet); }
.panel-orbit-lime { background: var(--lime); }

.engine-panel small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.engine-panel h3 {
  max-width: 640px;
  margin-top: 8px;
  font-size: clamp(1.75rem, 7vw, 3.4rem);
}

.engine-panel p {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--muted);
}

.patient {
  display: grid;
  gap: 16px;
}

.patient-flow {
  display: grid;
  gap: 8px;
}

.patient-flow article {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
}

.patient-flow article > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  font-size: 9px;
}

.patient-flow article div {
  display: grid;
  gap: 3px;
}

.patient-flow strong {
  font-size: 14px;
}

.patient-flow small {
  color: var(--muted);
  font-size: 11px;
}

.conversation-card {
  overflow: hidden;
  margin-top: 12px;
  padding: 18px;
  border-radius: 26px;
  background: var(--ink);
  box-shadow: var(--shadow);
  color: white;
}

.conversation-top {
  justify-content: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.conversation-top > div {
  display: grid;
}

.conversation-top strong {
  font-size: 12px;
}

.conversation-top small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
}

.bubble {
  max-width: 88%;
  margin-top: 14px;
  padding: 12px 13px;
  border-radius: 15px;
  font-size: 11px;
  line-height: 1.5;
}

.bubble-patient {
  margin-left: auto;
  border-bottom-right-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
}

.bubble-agent {
  border-bottom-left-radius: 4px;
  background: var(--lime);
  color: var(--ink);
}

.slot-row {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr 0.8fr;
  gap: 6px;
  margin-top: 18px;
}

.slot-row span {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 10px 6px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.68);
  text-align: center;
}

.slot-row .best {
  border-color: var(--lime);
  background: rgba(202, 255, 90, 0.1);
  color: white;
}

.slot-row small {
  overflow: hidden;
  font-size: 6px;
  letter-spacing: 0.03em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.slot-row strong {
  font-size: 11px;
}

.scenario-steps {
  display: grid;
  gap: 0;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.scenario-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding-bottom: 28px;
}

.scenario-steps li:not(:last-child)::after {
  position: absolute;
  top: 38px;
  bottom: 0;
  left: 18px;
  width: 1px;
  background: var(--line);
  content: "";
}

.scenario-steps li > span {
  z-index: 1;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  font-size: 10px;
  font-weight: 760;
}

.scenario-steps p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.scenario-steps strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.result-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: var(--lime);
  font-size: 13px;
  line-height: 1.4;
}

.result-strip span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
}

.safety {
  display: grid;
  gap: 36px;
  padding: 48px 24px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 90% 0%, rgba(149, 156, 255, 0.26), transparent 20rem),
    var(--ink);
  color: white;
}

.safety-copy h2 {
  max-width: 760px;
}

.safety-copy > p:last-child {
  color: rgba(255, 255, 255, 0.58);
}

.check-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}

.check-list span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
}

.briefing-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: white;
  box-shadow: var(--shadow);
}

.briefing-head {
  justify-content: flex-start;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.patient-initials {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  background: var(--violet);
  font-size: 12px;
  font-weight: 800;
}

.briefing-head > div:nth-child(2) {
  display: grid;
  min-width: 0;
}

.briefing-head small,
.briefing-grid small {
  color: var(--muted);
  font-size: 9px;
}

.briefing-head strong {
  font-size: 14px;
}

.briefing-head > span {
  margin-left: auto;
  padding: 6px 8px;
  border-radius: 999px;
  background: #e3f8d7;
  color: #386523;
  font-size: 8px;
  font-weight: 760;
  text-transform: uppercase;
}

.briefing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.briefing-grid > div {
  display: grid;
  gap: 5px;
  min-height: 90px;
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.briefing-grid > div:nth-child(2n) {
  border-right: 0;
}

.briefing-grid > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.briefing-grid strong {
  align-self: end;
  font-size: 12px;
  line-height: 1.35;
}

.capability-grid {
  display: grid;
  gap: 9px;
}

.capability-grid article {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
}

.capability-grid article > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--ink);
  color: white;
}

.capability-grid article:nth-child(2) > span,
.capability-grid article:nth-child(5) > span { background: var(--violet); color: var(--ink); }
.capability-grid article:nth-child(3) > span,
.capability-grid article:nth-child(6) > span { background: var(--mint); color: var(--ink); }
.capability-grid article:nth-child(4) > span { background: var(--lime); color: var(--ink); }

.capability-grid h3 {
  margin-top: 26px;
  font-size: 1.2rem;
}

.capability-grid p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.measurement {
  padding-block: 96px;
  border-top: 1px solid var(--line);
}

.measurement h2 {
  max-width: 880px;
}

.metric-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 34px;
}

.metric-list span {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: #44483f;
  font-size: 11px;
}

.closing {
  display: grid;
  justify-items: start;
  gap: 16px;
  margin-bottom: 18px;
  padding: 42px 24px;
  border-radius: 32px;
  background: var(--lime);
}

.closing p {
  margin: 8px 0 -5px;
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.closing h2 {
  max-width: 820px;
}

.closing small {
  margin-top: 22px;
  color: rgba(17, 19, 15, 0.72);
  font-size: 10px;
}

.closing .product-status {
  max-width: 560px;
  margin: 2px 0 0;
  color: rgba(17, 19, 15, 0.72);
  font-size: 10px;
  font-weight: 520;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 18px max(28px, env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.75); }
}

@media (min-width: 700px) {
  .topbar { padding-inline: 30px; }
  .section-shell { width: min(100% - 72px, 1120px); }
  .hero { padding-block: 82px 118px; }
  .calendar-demo { max-width: 680px; padding: 26px; }
  .statement,
  .scenario { grid-template-columns: 72px 1fr; }
  .engine-panel { grid-template-columns: 140px 1fr; align-items: center; padding: 48px; }
  .panel-orbit { width: 120px; height: 120px; }
  .patient-flow { grid-template-columns: repeat(3, 1fr); }
  .patient-flow article { grid-template-columns: 1fr; min-height: 166px; }
  .conversation-card { padding: 28px; }
  .safety { padding: 68px; }
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .closing { padding: 72px; }
  footer { padding-inline: 36px; }
}

@media (min-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr); align-items: center; }
  .calendar-demo { transform: rotate(1.2deg); }
  .patient { grid-template-columns: 0.9fr 1.1fr; column-gap: 70px; }
  .patient .section-heading { grid-column: 1 / -1; }
  .patient-flow { grid-template-columns: 1fr; }
  .patient-flow article { grid-template-columns: 38px 1fr; min-height: auto; }
  .safety { grid-template-columns: 1.1fr 0.9fr; align-items: end; }
  .capability-grid { grid-template-columns: repeat(3, 1fr); }
  .capability-grid article { min-height: 220px; }
}

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