/* =========================================================
   Finess Labs · WhatsApp appointments for hospitals
   ========================================================= */
:root {
  --bg: #f7f8f5;
  --tint: #eef3ef;
  --surface: #ffffff;
  --ink: #0f1f1b;
  --ink-2: #3c4b46;
  --muted: #6b7873;
  --line: #dde5e0;
  --brand: #0d5c4f;
  --brand-2: #0a4a40;
  --brand-soft: #dcefe8;
  --accent: #e8a33d;
  --danger: #b5432f;

  --wa-bg: #efeae2;
  --wa-in: #ffffff;
  --wa-out: #d9fdd3;
  --wa-head: #0d5c4f;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ta: "Noto Sans Tamil", "Plus Jakarta Sans", sans-serif;
  --radius: 14px;
  --wrap: 1180px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --space: clamp(4rem, 8vw, 6.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
:lang(ta),
[lang="ta"] {
  font-family: var(--font-ta);
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.2rem, 1.3rem + 3.2vw, 3.6rem);
  font-weight: 700;
}
h2 {
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.7rem);
  font-weight: 700;
  max-width: 22ch;
}
h3 {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
}
a {
  color: var(--brand);
}
img {
  max-width: 100%;
  display: block;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}
.skip:focus {
  top: 1rem;
}
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  font: 600 1rem/1.2 var(--font);
  color: #fff;
  background: var(--brand);
  border: 1.5px solid var(--brand);
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover {
  background: var(--brand-2);
  box-shadow: 0 6px 18px rgba(13, 92, 79, 0.22);
}
.btn:active {
  transform: translateY(1px);
}
.btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.92rem;
}
.btn--ghost {
  color: var(--brand);
  background: transparent;
}
.btn--ghost:hover {
  color: #fff;
}
.btn--block {
  width: 100%;
}

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.header.is-scrolled {
  border-bottom-color: var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
}
.brand__logo {
  width: 34px;
  height: 34px;
}
.brand__name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.nav {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
}
.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover {
  color: var(--brand);
}

/* ---------- shared ---------- */
.eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow--light {
  color: #8fd9c4;
}
.section {
  padding-block: var(--space);
}
.section--tint {
  background: var(--tint);
}
.section--dark {
  background: var(--ink);
  color: #e9f0ec;
}
.section__lead {
  margin-top: 1rem;
  max-width: 60ch;
  color: var(--ink-2);
  font-size: 1.1rem;
}
.section--dark .section__lead {
  color: #b9c8c1;
}
.hl {
  display: block;
  margin-top: 0.45em;
  font-size: 0.52em;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--brand);
}

/* ---------- hero ---------- */
.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(60rem 30rem at 85% 20%, var(--brand-soft), transparent 60%),
    var(--bg);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.lead {
  margin-top: 1.4rem;
  font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem);
  color: var(--ink-2);
  max-width: 50ch;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: grid;
  gap: 0.55rem;
}
.ticks li {
  position: relative;
  padding-left: 1.9rem;
  font-weight: 500;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--brand-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.5 2.5L12 5.3' fill='none' stroke='%230d5c4f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 0.8rem no-repeat;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}
.hero__hint {
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.hero__hint-arrow {
  display: inline-block;
  color: var(--brand);
  animation: nudge 1.6s ease-in-out infinite;
}
@keyframes nudge {
  50% {
    transform: translateX(4px);
  }
}
.hero__demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* ---------- phone demo ---------- */
.phone {
  position: relative;
  width: min(100%, 380px);
  height: 640px;
  display: flex;
  flex-direction: column;
  border-radius: 34px;
  border: 10px solid #121a18;
  background: var(--wa-bg);
  box-shadow:
    0 30px 60px -20px rgba(15, 31, 27, 0.35),
    0 0 0 1px rgba(15, 31, 27, 0.08);
  overflow: hidden;
}
.phone__bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.9rem;
  background: var(--wa-head);
  color: #fff;
}
.phone__avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.8rem;
}
.phone__who {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.phone__name {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.98rem;
}
.phone__tick {
  color: #25d366;
}
.phone__status {
  font-size: 0.75rem;
  opacity: 0.8;
}
.phone__restart {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}
.phone__restart:hover {
  background: rgba(255, 255, 255, 0.22);
}
.phone__chat {
  flex: 1;
  overflow-y: auto;
  padding: 0.9rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  scroll-behavior: smooth;
  background-image: radial-gradient(rgba(15, 31, 27, 0.05) 1px, transparent 1px);
  background-size: 14px 14px;
}
.msg {
  max-width: 84%;
  align-self: flex-start;
  animation: pop 0.22s ease-out;
}
.msg--me {
  align-self: flex-end;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.bubble {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  column-gap: 0.6rem;
  padding: 0.45rem 0.65rem 0.35rem;
  background: var(--wa-in);
  border-radius: 2px 10px 10px 10px;
  font-size: 0.89rem;
  line-height: 1.42;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.12);
}
.msg--me .bubble {
  background: var(--wa-out);
  border-radius: 10px 2px 10px 10px;
}
.bubble__text {
  flex: 1 1 auto;
  min-width: 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
/* time sits after the text on the same line when it fits, else wraps to the bottom right */
.bubble__time {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  white-space: nowrap;
  font-size: 0.65rem;
  line-height: 1;
  padding-bottom: 0.1rem;
  color: #667781;
}
/* sent marker: a small brand-coloured check in a circle */
.msg--me .bubble__time::after {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--brand)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.2 6.2l1.8 1.8 3.8-3.8' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 100% no-repeat;
}
.bubble--alert {
  background: #fff1ee;
  border-left: 3px solid var(--danger);
}
.bubble strong {
  font-weight: 600;
}
.msg__btns {
  display: grid;
  gap: 2px;
  margin-top: 2px;
}
.wbtn {
  padding: 0.55rem 0.6rem;
  border: 0;
  border-radius: 8px;
  background: var(--wa-in);
  color: #027eb5;
  font: 500 0.88rem/1.25 var(--font);
  cursor: pointer;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.12);
  transition: background 0.15s;
}
.wbtn:lang(ta) {
  font-family: var(--font-ta);
}
.wbtn:hover:not(:disabled) {
  background: #f3f7f9;
}
.wbtn:disabled {
  color: #9aa7ad;
  cursor: default;
}
.wbtn--list::before {
  content: "☰ ";
}
.divider {
  align-self: center;
  margin: 0.4rem 0;
  padding: 0.25rem 0.7rem;
  border-radius: 8px;
  background: #e1f2fb;
  color: #54656f;
  font-size: 0.72rem;
  font-weight: 500;
}
.typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 0.7rem 0.8rem;
  background: var(--wa-in);
  border-radius: 2px 10px 10px 10px;
}
.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9aa7ad;
  animation: blink 1s infinite;
}
.typing span:nth-child(2) {
  animation-delay: 0.15s;
}
.typing span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes blink {
  50% {
    opacity: 0.3;
  }
}

/* list sheet */
.phone__sheet {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  background: rgba(15, 31, 27, 0.4);
  animation: fade 0.2s ease-out;
}
.phone__sheet[hidden] {
  display: none;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
.sheet__panel {
  width: 100%;
  max-height: 78%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px 16px 0 0;
  animation: up 0.25s ease-out;
}
@keyframes up {
  from {
    transform: translateY(40%);
  }
}
.sheet__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.sheet__close {
  border: 0;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.sheet__body {
  overflow-y: auto;
  padding-bottom: 0.5rem;
}
.sheet__section {
  padding: 0.75rem 1rem 0.25rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}
.sheet__opt {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0.65rem 1rem;
  border: 0;
  border-bottom: 1px solid #f0f2f1;
  background: none;
  text-align: left;
  font: 500 0.93rem/1.3 var(--font);
  color: var(--ink);
  cursor: pointer;
}
.sheet__opt:lang(ta) {
  font-family: var(--font-ta);
}
.sheet__opt:hover {
  background: #f5f8f6;
}
.sheet__opt small {
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
}

/* input bar */
.phone__input {
  display: flex;
  gap: 0.45rem;
  padding: 0.5rem 0.55rem;
  background: #f0f2f1;
}
.phone__input input {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.9rem;
  border: 0;
  border-radius: 20px;
  font: 400 0.9rem var(--font);
  background: #fff;
}
.phone__input button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
}

/* step tracker */
.tracker {
  width: min(100%, 380px);
  text-align: center;
}
.tracker__bar {
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}
.tracker__bar span {
  display: block;
  height: 100%;
  width: 10%;
  background: var(--brand);
  transition: width 0.35s ease;
}
.tracker__text {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.tracker__log {
  margin-top: 0.2rem;
  min-height: 1.4em;
  font-size: 0.8rem;
  color: var(--muted);
}
.tracker__log.is-event {
  color: var(--brand);
}

/* ---------- strip ---------- */
.strip {
  background: var(--brand);
  color: #fff;
}
.strip__list {
  list-style: none;
  margin: 0 auto;
  padding-block: 2.4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.strip__list li {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.strip__list strong {
  font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.strip__list span {
  font-size: 0.92rem;
  color: #cde7df;
}

/* ---------- cards ---------- */
.cards {
  display: grid;
  gap: 1.1rem;
  margin-top: 2.5rem;
}
.cards--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card p {
  margin-top: 0.55rem;
  color: var(--ink-2);
  font-size: 0.97rem;
}
.card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--brand-soft);
}
.card__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- flow ---------- */
.flow {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.flow__phase {
  padding: 1.6rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.flow__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
}
.flow__title span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.85rem;
}
.flow__steps {
  margin: 1.1rem 0 0;
  padding-left: 1.3rem;
  display: grid;
  gap: 0.7rem;
  color: var(--ink-2);
  font-size: 0.97rem;
}
.flow__steps li::marker {
  color: var(--brand);
  font-weight: 600;
}
.flow__steps strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- split / features / dashboard ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--even {
  align-items: start;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1.3rem;
}
.feature-list li {
  padding-left: 1.2rem;
  border-left: 3px solid var(--brand-soft);
}
.feature-list p {
  margin-top: 0.25rem;
  color: var(--ink-2);
  font-size: 0.97rem;
}
.dash {
  margin: 0;
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 50px -24px rgba(15, 31, 27, 0.25);
}
.dash__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dash__title {
  font-weight: 700;
}
.dash__tag {
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}
.dash__kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin: 1.1rem 0;
}
.dash__kpis div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.3rem;
  padding: 0.75rem;
  border-radius: 10px;
  background: var(--tint);
}
.dash__kpis dt {
  font-size: 0.72rem;
  color: var(--muted);
}
.dash__kpis dd {
  margin: 0.1rem 0 0;
  font-size: 1.45rem;
  font-weight: 700;
}
.dash__alert {
  background: #fff4e3 !important;
}
.dash__alert dd {
  color: #a96a10;
}
.dash__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.dash__table th {
  text-align: left;
  font-weight: 500;
  font-size: 0.74rem;
  color: var(--muted);
  padding: 0.4rem 0.3rem;
  border-bottom: 1px solid var(--line);
}
.dash__table td {
  padding: 0.55rem 0.3rem;
  border-bottom: 1px solid #eef1ef;
}
.pill {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}
.pill--ok {
  background: var(--brand-soft);
  color: var(--brand-2);
}
.pill--warn {
  background: #fff1d6;
  color: #8a5a0b;
}
.pill--muted {
  background: #eef1ef;
  color: var(--ink-2);
}

/* ---------- rollout steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  counter-reset: s;
}
.steps li {
  position: relative;
  padding-top: 1.4rem;
  border-top: 3px solid var(--brand);
}
.steps__when {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand);
}
.steps p {
  margin-top: 0.45rem;
  color: var(--ink-2);
  font-size: 0.97rem;
}

/* ---------- privacy ---------- */
.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}
.checks li {
  position: relative;
  padding-left: 1.9rem;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 1.1rem;
  height: 1.1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.3l3 3L12.5 5' fill='none' stroke='%238fd9c4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

/* ---------- pricing ---------- */
.price {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(1.8rem, 4vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
}
.price__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}
.price__list li {
  position: relative;
  padding-left: 1.8rem;
  font-weight: 500;
}
.price__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}
.fineprint {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- faq ---------- */
.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  position: relative;
  padding: 1.1rem 2.5rem 1.1rem 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.3rem;
  top: 0.9rem;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brand);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding-bottom: 1.2rem;
  color: var(--ink-2);
  max-width: 62ch;
}

/* ---------- contact ---------- */
.direct {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.8rem;
}
.direct__link {
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
}
.direct__link:hover {
  text-decoration: underline;
}
.form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.field em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font: 400 1rem var(--font);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea {
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.field.is-invalid input {
  border-color: var(--danger);
}
.form__status {
  min-height: 1.4em;
  font-size: 0.92rem;
  font-weight: 600;
}
.form__status.is-ok {
  color: var(--brand);
}
.form__status.is-err {
  color: var(--danger);
}
.form__note {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- footer ---------- */
.footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-2);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 3rem;
}
.footer address {
  display: flex;
  gap: 1.5rem;
  font-style: normal;
}
.footer a {
  color: var(--ink-2);
}
.footer__copy {
  margin-left: auto;
  color: var(--muted);
}

/* ---------- simple pages (privacy, 404, thanks) ---------- */
.page {
  padding-block: clamp(3rem, 7vw, 5rem);
}
.page .wrap {
  max-width: 780px;
}
.page h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem);
}
.page h2 {
  margin-top: 2.4rem;
  font-size: 1.35rem;
  max-width: none;
}
.page p,
.page li {
  color: var(--ink-2);
}
.page p {
  margin-top: 0.9rem;
}
.page ul {
  padding-left: 1.2rem;
}
.page .actions {
  margin-top: 2rem;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav {
    display: none;
  }
  .header__inner {
    justify-content: space-between;
  }
  .hero__grid,
  .split,
  .price,
  .faq-wrap {
    grid-template-columns: 1fr;
  }
  .cards--4,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .flow {
    grid-template-columns: 1fr;
  }
  .strip__list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .cards--4,
  .steps,
  .form__row {
    grid-template-columns: 1fr;
  }
  .phone {
    height: 580px;
    border-width: 7px;
    border-radius: 26px;
  }
  .dash__kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .dash__table th:nth-child(3),
  .dash__table td:nth-child(3) {
    display: none;
  }
  .footer__copy {
    margin-left: 0;
  }
  .footer address {
    flex-direction: column;
    gap: 0.4rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   Phone calls: voice assistant sample call
   ========================================================= */
.calls .split {
  align-items: start;
}
.callcard {
  position: sticky;
  top: 90px;
  margin: 0;
  padding: 1.4rem;
  border-radius: 22px;
  background: var(--ink);
  color: #e9f0ec;
  box-shadow: 0 30px 60px -24px rgba(15, 31, 27, 0.45);
}
.callcard__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.callcard__live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
}
.callcard__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6b7873;
}
.callcard.is-live .callcard__dot {
  background: #3ddc84;
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6);
  animation: ring 1.4s infinite;
}
@keyframes ring {
  70% {
    box-shadow: 0 0 0 8px rgba(61, 220, 132, 0);
  }
}
.callcard__timer {
  font-variant-numeric: tabular-nums;
  color: #b9c8c1;
}
.callcard__line {
  margin-top: 0.2rem;
  font-size: 1.15rem;
  font-weight: 700;
}
.callcard__wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 36px;
  margin: 1rem 0;
}
.callcard__wave span {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(233, 240, 236, 0.22);
  transition: height 0.12s ease;
}
.callcard__wave.is-ai span {
  background: #8fd9c4;
}
.callcard__wave.is-caller span {
  background: var(--accent);
}
.callcard__tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 10px;
  background: rgba(233, 240, 236, 0.08);
}
.ctab {
  flex: 1;
  padding: 0.5rem 0.4rem;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #b9c8c1;
  font: 600 0.85rem var(--font);
  cursor: pointer;
}
.ctab[aria-selected="true"] {
  background: #e9f0ec;
  color: var(--ink);
}
.ctrans {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0 0.2rem 0 0;
  height: 340px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scroll-behavior: smooth;
}
.cline {
  animation: pop 0.25s ease-out;
}
.cline__who {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.cline--ai .cline__who {
  color: #8fd9c4;
}
.cline__text {
  font-size: 0.98rem;
  line-height: 1.5;
}
.cline__en {
  margin-top: 0.1rem;
  font-size: 0.84rem;
  color: #9fb0a9;
}
.cevent {
  align-self: flex-start;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: rgba(143, 217, 196, 0.12);
  color: #8fd9c4;
  font-size: 0.76rem;
  font-weight: 600;
  animation: pop 0.25s ease-out;
}
.cevent--alert {
  background: rgba(232, 107, 80, 0.16);
  color: #ffb4a3;
}
.callcard__foot {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(233, 240, 236, 0.12);
}
.btn--light {
  color: var(--ink);
  background: #e9f0ec;
  border-color: #e9f0ec;
}
.btn--light:hover {
  background: #fff;
}
.callcard__note {
  font-size: 0.78rem;
  color: #9fb0a9;
}
@media (max-width: 980px) {
  .callcard {
    position: static;
  }
}

/* demo scenario switch */
.mode {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.mode-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.mode__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.mode__btn {
  padding: 0.5rem 0.9rem;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--ink-2);
  font: 600 0.88rem var(--font);
  cursor: pointer;
}
.mode__btn[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
}
.flow--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 980px) {
  .flow--2 {
    grid-template-columns: 1fr;
  }
}
.flow__lead {
  margin-top: 0;
}
.hero__copy .actions {
  margin-top: 2.2rem;
}

/* ---------- hero illustration: patients booking, doctor on time ---------- */
.illo {
  display: block;
  width: 100%;
  max-width: 520px;
  margin-top: clamp(2rem, 4vw, 3rem);
  overflow: visible;
}
.pp-ground { fill: var(--brand-soft); }
.pp-bldg { fill: #e3efe9; }
.pp-win rect { fill: #fff; opacity: 0.75; }
.pp-plate { fill: #fff; }
.pp-cross { stroke: var(--brand); stroke-width: 6; stroke-linecap: round; }
.pp-eye { fill: #1d1a18; }
.pp-smile { fill: none; stroke: #1d1a18; stroke-width: 1.6; stroke-linecap: round; }
.pp-hair { fill: #231c19; }
.pp-hair-grey { fill: #c9c6c2; }
.pp-saree { fill: var(--accent); }
.pp-pallu { fill: #c8782a; }
.pp-border { fill: var(--brand); }
.pp-arm { fill: none; stroke-width: 9; stroke-linecap: round; }
.pp-phone { fill: #1d2a2a; }
.pp-screen { fill: var(--brand-soft); }
.pp-screen-tick { fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pp-shoe { fill: #2d3a45; }
.pp-leg { fill: #2d3a45; }
.pp-jeans { fill: #2c4058; }
.pp-shirt { fill: #3b6ea5; }
.pp-collar { fill: none; stroke: #2c5687; stroke-width: 2; stroke-linejoin: round; }
.pp-coat { fill: #fff; stroke: #cfd8d4; stroke-width: 1.5; }
.pp-arm-out { fill: none; stroke: #cfd8d4; stroke-width: 13; stroke-linecap: round; }
.pp-arm-coat { fill: none; stroke: #fff; stroke-width: 10; stroke-linecap: round; }
.pp-scrub { fill: var(--brand); }
.pp-lapel { fill: none; stroke: #cfd8d4; stroke-width: 1.5; }
.pp-pocket { fill: none; stroke: #cfd8d4; stroke-width: 1.5; }
.pp-pen { stroke: var(--brand); stroke-width: 2; stroke-linecap: round; }
.pp-steth { fill: none; stroke: #33403d; stroke-width: 2; }
.pp-steth-head { fill: #9aa7ad; }
.pp-wave {
  transform-box: view-box;
  transform-origin: 72px 114px;
  animation: pp-wave 2.6s ease-in-out infinite;
}
@keyframes pp-wave {
  0%, 60%, 100% { transform: rotate(0deg); }
  70% { transform: rotate(-10deg); }
  80% { transform: rotate(6deg); }
  90% { transform: rotate(-6deg); }
}
.pp-badge rect { fill: #fff; stroke: var(--line); stroke-width: 1.2; }
.pp-badge text { font: 700 12px var(--font); fill: var(--brand-2); }
.pp-dot { fill: #2fbf71; }
.pp-bubble rect, .pp-bubble path { fill: #fff; }
.pp-bubble rect { stroke: var(--line); stroke-width: 1.2; }
.pp-bubble text { font: 600 12.5px var(--font); fill: var(--ink); }
.pp-bubble--a text { font-family: var(--font-ta); }
.pp-bubble--b rect, .pp-bubble--b path { fill: var(--brand-soft); stroke: none; }
.pp-bubble--b text { fill: var(--brand-2); }
.pp-bubble {
  animation: pp-pop 4s ease-in-out infinite;
}
.pp-bubble--b { animation-delay: 1.2s; }
@keyframes pp-pop {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}
@media (max-width: 600px) {
  .illo { margin-top: 1.8rem; }
}
.pp-bubble .pp-dticks {
  fill: none;
  stroke: #53bdeb;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- beyond bookings CTA band ---------- */
.beyond {
  background: var(--brand);
  color: #fff;
}
.beyond__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 2rem 3rem;
  align-items: center;
  padding-block: clamp(2.8rem, 6vw, 4rem);
}
.beyond h2 {
  max-width: none;
}
.beyond__lead {
  margin-top: 0.6rem;
  font-size: 1.1rem;
  color: #cde7df;
}
.chips {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chips li {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  font-weight: 500;
}
.beyond__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}
.beyond__wa {
  color: #cde7df;
  font-size: 0.95rem;
  font-weight: 500;
}
.beyond__wa:hover {
  color: #fff;
}
@media (max-width: 860px) {
  .beyond__inner {
    grid-template-columns: 1fr;
  }
}

/* ---------- mobile rhythm: clear gaps between and inside stacked sections ---------- */
@media (max-width: 860px) {
  :root {
    --space: 4.5rem;
  }
  .hero__grid {
    gap: 3.5rem;
  }
  .split,
  .faq-wrap,
  .price,
  .beyond__inner {
    gap: 2.75rem;
  }
  .cards {
    margin-top: 2rem;
    gap: 0.9rem;
  }
  .feature-list {
    margin-top: 1.6rem;
  }
  .strip__list {
    gap: 1.8rem 1.5rem;
    padding-block: 2.6rem;
  }
  .form {
    margin-top: 0.5rem;
  }
}

/* ---------- first screen: headline, CTA and illustration only ---------- */
.hero {
  min-height: calc(100vh - 68px);
  min-height: calc(100svh - 68px);
  display: flex;
  align-items: center;
}
.hero > .wrap {
  width: 100%;
}
.hero__grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.hero__art .illo {
  margin: 0 auto;
  max-width: 580px;
}

/* ---------- live demo, on the next screen ---------- */
.demo-sec__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}
.demo-sec h2 {
  text-align: center;
}
@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
