/* Same design language as the clinic website (entnavimumbai v2): warm paper, terracotta + gold, Newsreader + Hanken Grotesk. */
:root {
  --bg: #fbf7f0;
  --surface: #ffffff;
  --ink: #1d2b2a;
  --ink-2: #55625f;
  --ink-3: #6f7b78;
  --line: #e8e0d3;
  --line-2: #cfc6b6;
  --teal: #1f6b63;
  --teal-deep: #134a45;
  --teal-soft: #e2efeb;
  --sun: #f2b63c;
  --sun-soft: #fcefd0;
  --coral: #e27d5f;
  --coral-deep: #b4533a;
  --coral-soft: #fae5dc;
  --ok: #2c7d4f;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 24px;
  --radius-s: 16px;
  --shadow: 0 1px 2px rgba(29, 43, 42, .06), 0 14px 36px -14px rgba(29, 43, 42, .28);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--teal); color: var(--surface); }
main { max-width: 640px; margin: 0 auto; padding: 0 18px 130px; position: relative; }
a { color: var(--teal); text-underline-offset: 3px; }

h1, h2 { font-family: var(--display); font-variation-settings: 'SOFT' 100; font-weight: 600; letter-spacing: -.015em; margin: 0; }
h1 { font-size: clamp(32px, 8.5vw, 44px); line-height: 1.08; margin: 8px 0 10px; }
em { font-style: italic; color: var(--teal); }
.muted { color: var(--ink-2); }

/* kicker label with the gold rule, as on the website */
.kicker, h2 {
  font: 700 12px/1 var(--body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 28px 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.kicker::before, h2::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--sun); flex: none; }

/* brand bar: logo + name, like the website nav */
.bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.bar .logo { width: 62px; height: 48px; flex: none; object-fit: contain; }
.brand-t b { display: block; font: 600 17.5px/1.2 var(--display); font-variation-settings: 'SOFT' 100; }
.brand-t small { font-size: 12.5px; color: var(--ink-2); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin: 14px 0;
  box-shadow: var(--shadow);
}

/* buttons: pills, like the website */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: .85em 1.5em;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  font: 600 15px/1 var(--body);
  cursor: pointer;
  text-decoration: none;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
}
.btn:hover { border-color: var(--teal); background: var(--teal-soft); }
.btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; box-shadow: 0 10px 24px -10px rgba(31, 107, 99, .75); }
.btn.primary:hover { background: var(--teal-deep); border-color: var(--teal-deep); transform: translateY(-1px); }
.btn.warn { color: var(--coral-deep); border-color: var(--coral); }
.btn.warn:hover { background: var(--coral-soft); border-color: var(--coral); }
.btn.ghost { color: var(--ink-2); border-color: transparent; }
.btn.small { min-height: 40px; padding: .6em 1.1em; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; background: var(--surface); }
.chip.on, .slots .btn.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.slots .btn { background: var(--surface); padding: .85em .5em; }
.slots .btn.on:hover { background: var(--teal-deep); }

label { display: block; font-weight: 500; font-size: 14.5px; color: var(--ink-2); margin: 14px 0 6px; }
input[type=text], input[type=tel], input[type=password], select.btn, textarea {
  width: 100%;
  padding: 13px 14px;
  font: 400 17px/1.3 var(--body);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-s);
}
select.btn { border-radius: var(--radius-s); justify-content: flex-start; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 14.5px; margin: 16px 0; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--teal); }

/* messages */
.msg { padding: 12px 14px; border-radius: 12px; margin: 12px 0; background: var(--coral-soft); color: #7a3317; font-size: 15px; }
.msg.ok { background: var(--teal-soft); color: var(--teal-deep); }
.msg.info { background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); border-left: 4px solid var(--sun); }

/* live badge, like the website's open/closed badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font: 500 13px/1.3 var(--body);
  padding: .65em 1em;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  margin: 6px 0;
}
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); flex: none; position: relative; }
.badge.open { color: var(--ok); }
.badge.open i { background: var(--ok); }
.badge.open i::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--ok); animation: ping 2s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .badge.open i::after { animation: none; } }

/* staff queue */
.top { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.top h1 { margin: 0; }
ul.list { padding: 0; margin: 0; }
.row {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 14px;
  margin: 8px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
}
.row.urgent { border-color: var(--coral); box-shadow: inset 4px 0 0 var(--coral); }
.who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.who strong { font: 600 18px/1.25 var(--display); font-variation-settings: 'SOFT' 100; overflow-wrap: anywhere; }
.tag { font-size: 13px; color: var(--ink-3); }
.tag.warn { color: var(--coral-deep); font-weight: 700; }
.eta { font: 500 14px/1.2 var(--body); color: var(--teal); letter-spacing: .02em; }
.acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.now { border: 2px solid var(--sun); background: var(--sun-soft); }
.now strong { font: 600 21px/1.25 var(--display); }
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: rgba(251, 247, 240, .92);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: center;
}
.dock .btn { flex: 1; max-width: 300px; min-height: 56px; font-size: 16px; }
.dock .btn:not(.primary) { background: var(--surface); }

/* calendars */
.calhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.calhead .month { font: 600 22px/1.2 var(--display); font-variation-settings: 'SOFT' 100; }
.legend { font-size: 13px; color: var(--ink-3); margin: 8px 0 0; }

/* family calendar: the next 14 days, two rows of seven */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.day {
  appearance: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 8px 0 7px; min-height: 76px; border: 1px solid var(--line-2); border-radius: var(--radius-s);
  background: var(--surface); color: var(--ink); font: inherit; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), transform .2s var(--ease);
}
.day .dow { font: 500 10.5px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.day .num { font: 600 21px/1.1 var(--display); }
.day:not([disabled]):hover { background: var(--teal-soft); border-color: var(--teal); }
.day .sub { font: 600 11px/1.1 var(--body); color: var(--ok); }
.day.on, .day.on:hover { background: var(--teal); border-color: var(--teal); color: #fff; box-shadow: 0 10px 24px -12px rgba(31, 107, 99, .8); }
.day.on .dow, .day.on .sub { color: var(--sun); }
.day[disabled] { background: transparent; opacity: .55; cursor: default; }
.day[disabled] .sub { color: var(--ink-3); font-weight: 500; }
.day:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

/* staff: tabs and the month calendar */
.tabs { display: flex; gap: 8px; margin: 2px 0 6px; }
.tabs .btn.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.mgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mdow { text-align: center; font: 500 10.5px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 4px 0 6px; }
.mday {
  appearance: none; display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  min-height: 64px; padding: 6px 5px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; text-align: left;
}
.mday .n { font: 600 15px/1 var(--display); }
.mday .c { font: 700 12px/1 var(--body); color: var(--teal); }
.mday .f { font: 500 10px/1 var(--body); color: var(--ok); }
.mday.out { visibility: hidden; border: 0; }
.mday.closed { background: transparent; border-style: dashed; color: var(--ink-3); }
.mday.past { opacity: .75; }
.mday.today { box-shadow: 0 0 0 2px var(--sun); }
.mday.sel { background: var(--teal); border-color: var(--teal); color: #fff; }
.mday.sel .c { color: var(--sun); }
.mday.sel .f { color: var(--sun); }
.row.dim { opacity: .55; }
.calhead .btn { font-size: 26px; line-height: 1; min-width: 48px; padding: .3em .6em; }

/* hosted demo label */
.demo {
  display: inline-block;
  margin: 0 0 12px;
  padding: .5em 1em;
  border-radius: 999px;
  background: var(--sun-soft);
  border: 1px solid var(--sun);
  color: #6b4e12;
  font: 600 12px/1.3 var(--body);
}

/* what the parent told us about the child (staff screens) */
.tag.concern { color: var(--teal-deep); font-weight: 600; }
.note { font-size: 14.5px; color: var(--ink-2); margin: 6px 0 0; }
.back { display: inline-block; margin: 2px 0 0; font: 600 14px/1.2 var(--body); color: var(--teal); text-decoration: none; }
.back:hover { text-decoration: underline; }
.fees { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 0; }
.fees span { background: var(--sun-soft); color: #6b4e12; border-radius: 999px; padding: .5em 1em; font: 600 13px/1.2 var(--body); }
