:root {
  --ink: #1c1a3a;
  --muted: #57557a;
  --brand: #0a7467;
  --brand-dark: #065648;
  --alt: #1a7f37;
  --bg: #fffdf7;
  --soft: #fff1d6;
  --line: #ecdcc0;
  --warn-bg: #ffe9c7;
  --warn-ink: #7a2e00;
  --btn-ink: #ffffff;
  --radius: 14px;
  /* The livelier accents. Used for shapes, tints and numbers; text on them is ink or white as noted. */
  --sun: #ffb703;      /* ink text on it */
  --coral: #e8543a;    /* shapes only */
  --violet: #5b3fd0;   /* white text on it */
  --sky: #0b7ab8;      /* white text on it */
  --rose: #d6336c;     /* white text on it */
  --sun-tint: #fff0c2;
  --coral-tint: #ffe3dc;
  --violet-tint: #ebe5ff;
  --sky-tint: #dcf1fb;
  --teal-tint: #d9f3ec;
  --night: #2b2570;    /* the deep band behind calls to action and the footer */
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1efff;
    --muted: #bcb9de;
    --brand: #4fd6bd;
    --brand-dark: #7ae6d2;
    --alt: #5bd081;
    --bg: #15132b;
    --soft: #1f1c3f;
    --line: #35315f;
    --warn-bg: #3d2a12;
    --warn-ink: #ffd9a3;
    --btn-ink: #0c0a24;
    --sun: #ffc23a;
    --coral: #ff7a5f;
    --violet: #a898ff;
    --sky: #5cc0f2;
    --rose: #ff7aa8;
    --sun-tint: #3a2f12;
    --coral-tint: #3d2220;
    --violet-tint: #2a2552;
    --sky-tint: #14324a;
    --teal-tint: #12352f;
    --night: #0e0c20;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Devanagari", sans-serif;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: 4.5rem;
}

a { color: var(--brand-dark); }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--bg); padding: 0.5rem 1rem; z-index: 20; }

.emergency {
  background: var(--warn-bg);
  color: var(--warn-ink);
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--brand);
}
.logo { width: 36px; height: 36px; border-radius: 8px; }

nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 0; padding: 0; }
nav a { display: inline-block; padding: 0.4rem 0; text-decoration: none; color: var(--ink); }
nav a[aria-current="page"] { border-bottom: 2px solid var(--brand); }

main { max-width: 52rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }

.hero { background: var(--soft); border-radius: var(--radius); padding: 2rem 1.25rem; margin-bottom: 1.5rem; }
.hero h1 { margin: 0 0 0.5rem; font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1.2; }
.lede { color: var(--muted); font-size: 1.1rem; }

.btn {
  display: inline-block;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--btn-ink);
  text-decoration: none;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { background: var(--brand-dark); }
.btn-alt { background: var(--alt); }
.btn[aria-disabled="true"] { opacity: 0.6; cursor: default; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.callout {
  background: var(--soft);
  border-left: 4px solid var(--brand);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

form p { margin: 0 0 1rem; }
label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
input, textarea, select {
  width: 100%;
  padding: 0.65rem;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.helptext { color: var(--muted); font-size: 0.9rem; }

.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.25rem; margin-bottom: 0.5rem; }
.footer-links a { padding: 0.4rem 0; }
.site-footer { border-top: 1px solid var(--line); padding: 1rem; color: var(--muted); font-size: 0.9rem; text-align: center; }

.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: var(--bg);
  border-top: 1px solid var(--line);
  justify-content: center;
  z-index: 10;
}
.action-bar .btn { flex: 1; max-width: 14rem; text-align: center; }

/* ---- Layout and polish ---- */
:root {
  --shadow: 0 1px 2px rgba(22, 48, 43, 0.06), 0 8px 24px rgba(22, 48, 43, 0.08);
  --cta-bg: #0b4f43;
  --cta-ink: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root { --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35); --cta-bg: #12332d; }
}

html { scroll-behavior: smooth; }
main { max-width: 72rem; padding: 1.5rem 1rem 3.5rem; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
.eyebrow { margin: 0 0 0.5rem; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-dark); }

.site-header { position: sticky; top: 0; z-index: 15; background: var(--bg); }
nav a:hover { color: var(--brand-dark); }

/* Plain pages stay readable at a narrow width */
.page-head { padding: 1rem 0 0.5rem; max-width: 52rem; }
.page-head h1 { margin: 0 0 0.5rem; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-head ~ p, .page-head ~ h2, .page-head ~ h3, .page-head ~ ul:not(.doctor-grid), .page-head ~ ol,
.page-head ~ form, .page-head ~ .callout { max-width: 52rem; }

/* Home hero */
.hero { display: grid; gap: 2rem; align-items: center; padding: 2.5rem 1.5rem; margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--soft), var(--bg)); border: 1px solid var(--line); border-radius: 20px; }
@media (min-width: 52rem) { .hero { grid-template-columns: 1.15fr 0.85fr; padding: 3.5rem 3rem; } }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin: 0 0 0.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0; }
.btn-ghost { background: transparent; color: var(--brand-dark); box-shadow: inset 0 0 0 2px var(--brand); }
.btn-ghost:hover { background: var(--soft); }
.btn-light { background: #ffffff; color: #0b4f43; white-space: nowrap; }
.btn-light:hover { background: #e6f2ef; }

.hero-visual { position: relative; padding: 0 0 1.5rem; }
.mock { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem; box-shadow: var(--shadow); max-width: 22rem; margin: 0 auto; }
.mock-head { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; margin-bottom: 0.9rem; }
.mock-dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--brand); }
.mock-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-bottom: 1rem; }
.mock-slots span { text-align: center; padding: 0.5rem 0; border: 1px solid var(--line); border-radius: 8px; font-size: 0.9rem; }
.mock-slots .on { background: var(--brand); border-color: var(--brand); color: var(--btn-ink); font-weight: 700; }
.mock-row { display: flex; justify-content: space-between; padding: 0.4rem 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.mock-row.muted { color: var(--muted); font-size: 0.8rem; border-top: 0; padding-top: 0; }
.mock-btn { margin-top: 0.75rem; text-align: center; padding: 0.65rem; border-radius: 999px; background: var(--brand); color: var(--btn-ink); font-weight: 700; }
.mock-badge { position: absolute; right: 0; bottom: 0; display: inline-flex; align-items: center; gap: 0.4rem; background: var(--bg);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.9rem; font-size: 0.85rem; font-weight: 600; box-shadow: var(--shadow); }
.tick { display: inline-grid; place-items: center; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--brand); color: var(--btn-ink); font-size: 0.75rem; }

/* Trust strip */
.trust { display: grid; gap: 1rem; margin: 0 0 2.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.trust > div { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.25rem; }
.trust strong { color: var(--brand-dark); }
.trust span { color: var(--muted); font-size: 0.95rem; }

/* Home body: the editable text, laid out as sections */
.home-body { max-width: 62rem; margin: 0 auto 2.5rem; }
.home-body h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 2.5rem 0 1rem; }
.home-body ol { list-style: none; counter-reset: step; display: grid; gap: 0.9rem; padding: 0; margin: 0 0 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.home-body ol li { counter-increment: step; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.home-body ol li::before { content: counter(step); display: grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: 0.6rem; border-radius: 50%;
  background: var(--brand); color: var(--btn-ink); font-weight: 700; }

/* Call to action band */
.cta-band { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; margin: 2.5rem 0 0;
  padding: 1.75rem; border-radius: 18px; background: var(--cta-bg); color: var(--cta-ink); }
.cta-band h2 { margin: 0 0 0.25rem; color: var(--cta-ink); }
.cta-band p { margin: 0; max-width: 36rem; color: #d6ebe6; }

/* Doctors */
.doctor-grid { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.doctor-card { display: flex; gap: 0.9rem; align-items: flex-start; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.doctor-card a { font-weight: 700; font-size: 1.05rem; }
.doctor-card p { margin: 0.15rem 0 0.5rem; color: var(--muted); }
.avatar { display: grid; place-items: center; flex: none; width: 3rem; height: 3rem; border-radius: 50%; background: var(--soft); color: var(--brand-dark); font-weight: 700; font-size: 1.2rem; border: 1px solid var(--line); }
.chip { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); color: var(--brand-dark); font-size: 0.8rem; font-weight: 600; }
.empty { background: var(--soft); border: 1px dashed var(--line); border-radius: var(--radius); padding: 2rem 1.5rem; margin: 1.5rem 0; max-width: 52rem; }
.empty h2 { margin: 0 0 0.5rem; }

/* Footer */
.site-footer { text-align: left; padding: 2.5rem 1rem 1.5rem; background: var(--soft); }
.footer-grid { max-width: 72rem; margin: 0 auto; display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.footer-grid .footer-brand { grid-column: span 2; max-width: 26rem; }
@media (max-width: 40rem) { .footer-grid .footer-brand { grid-column: auto; } }
.footer-col { display: flex; flex-direction: column; gap: 0.1rem; }
.footer-col h2 { margin: 0 0 0.4rem; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.footer-col a { text-decoration: none; color: var(--ink); padding: 0.3rem 0; }
.footer-col a:hover { text-decoration: underline; }
.footer-links { justify-content: flex-start; margin-bottom: 0; }
.footer-note { max-width: 72rem; margin: 2rem auto 0; padding-top: 1rem; border-top: 1px solid var(--line); text-align: center; }

/* Gentle entrance, off for anyone who asks for less motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .mock, .mock-badge, .trust > div { animation: rise 0.6s ease both; }
  .mock { animation-delay: 0.1s; } .mock-badge { animation-delay: 0.35s; }
  .trust > div:nth-child(2) { animation-delay: 0.08s; } .trust > div:nth-child(3) { animation-delay: 0.16s; } .trust > div:nth-child(4) { animation-delay: 0.24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* Tidy-ups */
.home-body { max-width: none; }
.home-body > p, .home-body > h2, .home-body > .callout { max-width: 52rem; }
.home-body ol { grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); }
body { padding-bottom: 0; }
body:has(.action-bar) { padding-bottom: 4.5rem; }

.footer-grid, .footer-note { padding-left: 1rem; padding-right: 1rem; }

/* Sign in and sign out links, and the sign-in forms */
.account-links { display: flex; align-items: center; gap: 0.25rem 1rem; flex-wrap: wrap; margin-left: auto; }
.account-links a { padding: 0.4rem 0; color: var(--brand-dark); font-weight: 600; text-decoration: none; }
.account-links a:hover { text-decoration: underline; }
.account-links form { margin: 0; display: inline; }
button.linklike { background: none; border: 0; padding: 0.4rem 0; font: inherit; font-weight: 600; color: var(--brand-dark); cursor: pointer; text-decoration: underline; min-height: 44px; }
button.linklike:hover { color: var(--brand); }
nav[aria-label="Doctor"] li form { margin: 0; }
.auth-form { max-width: 28rem; }
.auth-links, .auth-form + .helptext { max-width: 40rem; }
.auth-links a { padding: 0.4rem 0; display: inline-block; }

/* Sign-in and setup forms: plain labelled fields */
.auth-form .field { display: flex; flex-direction: column; gap: 0.25rem; margin: 0 0 1rem; }
.auth-form .field input { max-width: 100%; }
.form-error { color: #b3261e; font-size: 0.9rem; font-weight: 600; }
@media (prefers-color-scheme: dark) { .form-error { color: #ffb4ab; } }
.auth-form .btn + .btn { margin-left: 0.5rem; }
.auth-form .backup_tokens_form { margin-top: 1.5rem; }

/* ==== Theme: warmer, livelier, with its own type (decision D80) ======================== */
@font-face { font-family: "Fraunces"; src: url("../fonts/Fraunces-latin.069cb90e11a3.woff2") format("woff2"); font-weight: 600 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/PlusJakartaSans-latin.7660bd9909fb.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

body { font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1, h2, h3, .brand span, .name, .tag2 { font-family: "Fraunces", Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: -0.015em; }
h1 { line-height: 1.1; }

/* A four-colour edge along the top of every page */
.emergency { background: var(--warn-bg); }
.site-header { background-color: var(--bg); background-image: linear-gradient(90deg, var(--brand) 0 25%, var(--sun) 25% 50%, var(--coral) 50% 75%, var(--violet) 75% 100%); background-size: 100% 5px; background-repeat: no-repeat; padding-top: 1.1rem; }
.brand { color: var(--brand-dark); }
nav a:hover { color: var(--violet); }
nav a[aria-current="page"] { border-bottom-color: var(--coral); border-bottom-width: 3px; }

.btn { box-shadow: 0 2px 0 rgba(28, 26, 58, 0.18); transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 rgba(28, 26, 58, 0.18); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn-sun { background: var(--sun); color: #1c1a3a; }
.btn-sun:hover { background: #ffc83d; }
.btn-ghost { box-shadow: inset 0 0 0 2px var(--brand); }
.btn-light { background: var(--sun); color: #1c1a3a; }
.btn-light:hover { background: #ffc83d; }
@media (prefers-color-scheme: dark) { .btn-sun, .btn-light { color: #1c1a3a; } }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* Home: a warm, layered hero */
.hero {
  position: relative; overflow: hidden; border: 0;
  background:
    radial-gradient(520px 340px at 94% -8%, rgba(255, 183, 3, 0.55), transparent 70%),
    radial-gradient(440px 320px at -4% 112%, rgba(232, 84, 58, 0.24), transparent 70%),
    radial-gradient(380px 280px at 64% 118%, rgba(91, 63, 208, 0.2), transparent 70%),
    var(--soft);
}
.hero::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 30px solid rgba(10, 116, 103, 0.14); pointer-events: none; }
.hero h1 { font-size: clamp(2.1rem, 4.8vw, 3.4rem); }
.hero h1 mark { color: inherit; background: linear-gradient(transparent 60%, var(--sun) 60% 90%, transparent 90%); padding: 0 0.08em; }
.eyebrow { display: inline-block; padding: 0.25rem 0.8rem; border-radius: 999px; background: var(--sun); color: #1c1a3a; letter-spacing: 0.06em; }
.mock { border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--violet); }
.mock-slots .on { background: var(--violet); border-color: var(--violet); }
.mock-btn { background: var(--brand); }
.mock-badge { background: var(--sun); color: #1c1a3a; border: 2px solid var(--ink); }
.mock-badge .tick { background: #1c1a3a; color: #ffc23a; }

/* Trust cards, each with its own colour and icon */
.trust > div { position: relative; border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.1rem 1.1rem 1.1rem 1.1rem; background: var(--bg); box-shadow: 5px 5px 0 var(--accent, var(--brand)); }
.trust > div:nth-child(1) { --accent: var(--brand); }
.trust > div:nth-child(2) { --accent: var(--sun); }
.trust > div:nth-child(3) { --accent: var(--violet); }
.trust > div:nth-child(4) { --accent: var(--coral); }
.trust .ico { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; margin-bottom: 0.4rem; background: var(--accent); color: var(--btn-ink); }
.trust > div:nth-child(2) .ico { color: #1c1a3a; }
.trust .ico svg { width: 1.5rem; height: 1.5rem; }
.trust strong { color: var(--ink); font-family: "Fraunces", Georgia, serif; font-size: 1.15rem; }
.trust span { color: var(--muted); }

/* Home sections */
.home-body h2 { position: relative; }
.home-body h2::after { content: ""; display: block; width: 64px; height: 6px; margin-top: 0.45rem; border-radius: 3px; background: linear-gradient(90deg, var(--sun), var(--coral)); }
.home-body ol li { border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--accent, var(--brand)); background: var(--tint, var(--bg)); }
.home-body ol li:nth-child(1) { --accent: var(--brand); --tint: var(--teal-tint); }
.home-body ol li:nth-child(2) { --accent: var(--violet); --tint: var(--violet-tint); }
.home-body ol li:nth-child(3) { --accent: var(--sky); --tint: var(--sky-tint); }
.home-body ol li:nth-child(4) { --accent: var(--rose); --tint: var(--coral-tint); }
.home-body ol li:nth-child(5) { --accent: var(--sun); --tint: var(--sun-tint); }
.home-body ol li::before { background: var(--accent); color: var(--btn-ink); font-family: "Fraunces", Georgia, serif; }
.callout { background: var(--sun-tint); border-left-color: var(--coral); }

/* The call-to-action band and the footer share one deep colour */
.cta-band { background: radial-gradient(420px 220px at 100% 0%, rgba(255, 183, 3, 0.28), transparent 70%), linear-gradient(120deg, var(--night), #1b5e57); border-radius: 22px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e4e1ff; }
.site-footer { background: var(--night); color: #d9d6f7; border-top: 0; }
.site-footer .brand, .site-footer .footer-col h2 { color: #fff; }
.site-footer a, .footer-col a { color: #e4e1ff; }
.site-footer .footer-brand p, .footer-note { color: #bdb9e6; }
.footer-note { border-top-color: rgba(255, 255, 255, 0.16); }

/* Doctor directory */
.finder { display: grid; gap: 0.75rem; margin: 1.25rem 0 1.5rem; padding: 1rem; background: var(--soft); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 5px 5px 0 var(--sun); }
@media (min-width: 52rem) { .finder { grid-template-columns: 2fr 1fr 1fr auto; align-items: end; } }
.finder .fld { display: flex; flex-direction: column; gap: 0.25rem; }
.finder .fld label { font-weight: 700; font-size: 0.9rem; }
.finder-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; margin: -0.5rem 0 1rem; color: var(--muted); }
.finder-row .btn { min-height: 38px; padding: 0.3rem 1rem; }
.doctor-card { border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--accent, var(--brand)); }
.doctor-grid > li:nth-child(5n+1) { --accent: var(--brand); --av: var(--teal-tint); }
.doctor-grid > li:nth-child(5n+2) { --accent: var(--violet); --av: var(--violet-tint); }
.doctor-grid > li:nth-child(5n+3) { --accent: var(--sun); --av: var(--sun-tint); }
.doctor-grid > li:nth-child(5n+4) { --accent: var(--coral); --av: var(--coral-tint); }
.doctor-grid > li:nth-child(5n+5) { --accent: var(--sky); --av: var(--sky-tint); }
.avatar { background: var(--av, var(--soft)); color: var(--ink); border: 2px solid var(--ink); font-family: "Fraunces", Georgia, serif; }
.chip { background: var(--teal-tint); color: var(--brand-dark); border-color: transparent; }
.km { color: var(--violet); font-weight: 700; }
.doctor-card .meta { margin: 0.1rem 0 0.4rem; color: var(--muted); }

/* A clinic on the doctor's public page */
.clinic { padding: 1rem; margin: 0.75rem 0; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--bg); box-shadow: 5px 5px 0 var(--sky); }
.clinic h3 { margin: 0 0 0.25rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Keep the hero's words and picture above its decorative ring */
.hero::after { z-index: 0; }
.hero-copy, .hero-visual { position: relative; z-index: 1; }

/* ==== Refined: calmer cards, real motion (decision D82) ================================= */
:root {
  --lift: 0 1px 2px rgba(28, 26, 58, 0.06), 0 16px 32px -16px rgba(28, 26, 58, 0.24);
  --lift-hover: 0 2px 4px rgba(28, 26, 58, 0.08), 0 24px 44px -18px rgba(28, 26, 58, 0.34);
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}
@media (prefers-color-scheme: dark) {
  :root { --lift: 0 1px 2px rgba(0, 0, 0, 0.45), 0 16px 32px -16px rgba(0, 0, 0, 0.75); --lift-hover: 0 2px 4px rgba(0, 0, 0, 0.5), 0 24px 44px -18px rgba(0, 0, 0, 0.85); }
}

/* One quiet card language for the whole site: a thin line, a soft lift, a small colour edge */
.doctor-card, .finder, .clinic, .empty, .callout {
  border: 1px solid var(--line); border-top: 3px solid var(--accent, var(--brand)); box-shadow: var(--lift); border-radius: 16px;
}
.finder { border-top-color: var(--sun); background: var(--bg); }
.clinic { --accent: var(--sky); }
.empty { border-style: solid; border-top-width: 1px; border-top-color: var(--line); box-shadow: none; }
.callout { border-left: 4px solid var(--coral); border-top: 1px solid var(--line); box-shadow: none; border-radius: 12px; }
.doctor-card { transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.doctor-card:hover { transform: translateY(-3px); box-shadow: var(--lift-hover); }
.avatar { border: 0; box-shadow: 0 0 0 1px var(--line); }
.btn { box-shadow: 0 1px 0 rgba(28, 26, 58, 0.2), 0 6px 14px -6px rgba(10, 116, 103, 0.55); }
.btn:hover { box-shadow: 0 1px 0 rgba(28, 26, 58, 0.2), 0 12px 22px -8px rgba(10, 116, 103, 0.6); }
.btn-ghost, .btn-sun, .btn-light { box-shadow: none; }
.btn-ghost { box-shadow: inset 0 0 0 1.5px var(--brand); }

/* ---- Scroll reveals (the page sets will-reveal; without JavaScript nothing is hidden) --- */
.will-reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.will-reveal.in { opacity: 1; transform: none; }
.site-header { transition: box-shadow 0.25s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(28, 26, 58, 0.45); }

/* ---- The hero ------------------------------------------------------------------------ */
.hero { border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 28px;
  background:
    radial-gradient(900px 420px at 88% -12%, rgba(255, 183, 3, 0.3), transparent 60%),
    radial-gradient(760px 460px at -8% 112%, rgba(10, 116, 103, 0.15), transparent 60%),
    var(--bg); }
.hero::after { display: none; }
.hero h1 mark { background: linear-gradient(transparent 62%, rgba(255, 183, 3, 0.75) 62% 90%, transparent 90%); }
.hero-visual { display: none; }

.demo { position: relative; width: 100%; max-width: 24rem; margin: 0 auto; padding: 1.5rem 0.5rem 2rem; }
.demo-card { position: relative; padding: 1.1rem 1.1rem 1.2rem; border-radius: 22px; background: var(--bg); box-shadow: var(--lift), 0 0 0 1px var(--line); overflow: hidden; --loop: 9s; }
.demo svg { display: block; }
.demo-doc { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-bottom: 0.9rem; }
.demo-avatar { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--teal-tint); flex: none; }
.demo-avatar svg { width: 1.7rem; fill: var(--brand); }
.demo-lines { flex: 1; display: grid; gap: 0.4rem; }
.demo-lines b, .demo-lines i { display: block; height: 0.55rem; border-radius: 99px; background: var(--line); }
.demo-lines b { width: 72%; } .demo-lines i { width: 46%; }
.demo-verified { flex-basis: 100%; display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.74rem; font-weight: 700; color: var(--brand-dark); }
.demo-verified svg { width: 1rem; height: 1rem; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.demo-label { margin: 0 0 0.5rem; font-size: 0.8rem; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.demo-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.45rem; margin-bottom: 0.9rem; }
.demo-slots span { display: grid; place-items: center; height: 2.4rem; border-radius: 10px; border: 1.5px solid var(--line); font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.demo-fee { display: flex; justify-content: space-between; padding-top: 0.6rem; border-top: 1px solid var(--line); font-size: 0.9rem; }
.demo-note { margin: 0.1rem 0 0.8rem; font-size: 0.74rem; color: var(--muted); }
.demo-cta { position: relative; display: grid; place-items: center; height: 2.7rem; border-radius: 999px; background: var(--brand); color: var(--btn-ink); font-weight: 700; overflow: hidden; }
.demo-cta span { position: absolute; display: inline-flex; align-items: center; gap: 0.4rem; }
.demo-cta .t-done svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.demo-ring { position: absolute; top: 0.9rem; right: 1rem; width: 2.1rem; height: 2.1rem; transform: rotate(-90deg); opacity: 0; }
.demo-ring circle { fill: none; stroke: var(--line); stroke-width: 4; }
.demo-ring .arc { stroke: var(--violet); stroke-linecap: round; stroke-dasharray: 113; stroke-dashoffset: 0; }
.demo-cursor { position: absolute; width: 1.5rem; height: 1.5rem; left: 90%; top: 105%; fill: var(--ink); stroke: var(--bg); stroke-width: 1.5; stroke-linejoin: round; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.3)); opacity: 0; z-index: 3; }
.demo-chip { position: absolute; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.8rem; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 0.78rem; font-weight: 700; box-shadow: var(--lift); opacity: 0; }
.demo-chip svg { width: 0.95rem; height: 0.95rem; fill: none; stroke: var(--sun); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.demo-chip .pulse { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 0 rgba(255, 183, 3, 0.7); animation: pulse 1.6s infinite; }
.chip-hold { left: -0.4rem; top: 0.2rem; }
.chip-wa { right: -0.2rem; bottom: 0.4rem; }

@media (prefers-reduced-motion: no-preference) {
  .demo-slots span { animation: slot-in 0.5s var(--ease) both; }
  .demo-slots span:nth-child(2) { animation-delay: 0.06s; } .demo-slots span:nth-child(3) { animation-delay: 0.12s; }
  .demo-slots span:nth-child(4) { animation-delay: 0.18s; } .demo-slots span:nth-child(5) { animation-delay: 0.24s; } .demo-slots span:nth-child(6) { animation-delay: 0.3s; }
  .demo .s-pick { animation: slot-in 0.5s var(--ease) 0.12s both, pick var(--loop) ease-in-out 0.8s infinite; }
  .demo-cursor { animation: cursor var(--loop) ease-in-out 0.8s infinite; }
  .demo-ring { animation: ring-show var(--loop) linear 0.8s infinite; }
  .demo-ring .arc { animation: ring-run var(--loop) linear 0.8s infinite; }
  .demo-cta { animation: press var(--loop) ease-in-out 0.8s infinite; }
  .demo-cta .t-confirm { animation: swap-out var(--loop) ease-in-out 0.8s infinite; }
  .demo-cta .t-done { opacity: 0; animation: swap-in var(--loop) ease-in-out 0.8s infinite; }
  .chip-hold { animation: chip-a var(--loop) ease-in-out 0.8s infinite; }
  .chip-wa { animation: chip-b var(--loop) ease-in-out 0.8s infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .demo .s-pick { background: var(--violet); border-color: var(--violet); color: var(--btn-ink); }
  .demo-cta .t-confirm { opacity: 0; }
  .demo-chip { opacity: 1; position: static; display: inline-flex; margin: 0.5rem 0.4rem 0 0; }
  .demo-ring { opacity: 1; }
}
@keyframes slot-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255, 183, 3, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 183, 3, 0); } }
@keyframes pick {
  0%, 24% { background: transparent; color: inherit; border-color: var(--line); transform: none; }
  28%, 92% { background: var(--violet); border-color: var(--violet); color: var(--btn-ink); transform: scale(1.05); }
  97%, 100% { background: transparent; color: inherit; border-color: var(--line); transform: none; }
}
@keyframes cursor {
  0% { left: 92%; top: 108%; opacity: 0; }
  8% { opacity: 1; }
  22% { left: 80%; top: 40%; opacity: 1; transform: scale(1); }
  26% { left: 80%; top: 40%; transform: scale(0.82); }
  30% { left: 80%; top: 40%; transform: scale(1); }
  50% { left: 52%; top: 86%; opacity: 1; transform: scale(1); }
  54% { left: 52%; top: 86%; transform: scale(0.82); }
  58% { left: 52%; top: 86%; transform: scale(1); opacity: 1; }
  68% { left: 70%; top: 100%; opacity: 0; }
  100% { left: 92%; top: 108%; opacity: 0; }
}
@keyframes ring-show { 0%, 27% { opacity: 0; } 30%, 90% { opacity: 1; } 94%, 100% { opacity: 0; } }
@keyframes ring-run { 0%, 29% { stroke-dashoffset: 0; } 90%, 100% { stroke-dashoffset: 113; } }
@keyframes press { 0%, 53% { transform: none; } 56% { transform: scale(0.97); } 60%, 100% { transform: none; } }
@keyframes swap-out { 0%, 56% { opacity: 1; transform: none; } 60%, 94% { opacity: 0; transform: translateY(-8px); } 98%, 100% { opacity: 1; transform: none; } }
@keyframes swap-in { 0%, 56% { opacity: 0; transform: translateY(8px); } 62%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(8px); } }
@keyframes chip-a { 0%, 28% { opacity: 0; transform: translateY(10px); } 34%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes chip-b { 0%, 60% { opacity: 0; transform: translateY(10px) scale(0.9); } 68%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }

/* ---- The stat band: numbers and a hairline, no boxes -------------------------------------- */
.stat-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); margin: 2.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-band .stat { display: flex; flex-direction: column; gap: 0.3rem; padding: 1.6rem 1.4rem; border-left: 1px solid var(--line); background: none; box-shadow: none; border-radius: 0; border-top: 0; border-right: 0; border-bottom: 0; }
.stat-band .stat:first-child { border-left: 0; padding-left: 0; }
.stat-mark { display: flex; align-items: flex-end; height: 3.3rem; color: var(--brand); }
.stat-mark svg { width: 2.5rem; height: 2.5rem; }
.num-big { font-family: "Fraunces", Georgia, serif; font-size: 2.7rem; line-height: 1; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-band .stat-title { font-family: "Fraunces", Georgia, serif; font-size: 1.15rem; color: var(--ink); }
.stat-band .stat-text { color: var(--muted); font-size: 0.95rem; max-width: 18rem; }
@media (max-width: 40rem) { .stat-band .stat { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; } .stat-band .stat:first-child { border-top: 0; } }

/* ---- How booking works: plain and calm without JavaScript, an illustrated journey with it ---- */
.home-body ol { counter-reset: step; }
.home-body ol li { border: 1px solid var(--line); box-shadow: var(--lift); background: var(--bg); border-radius: 16px; }
.home-body ol li::before { background: var(--ink); color: var(--bg); font-family: "Fraunces", Georgia, serif; width: 1.9rem; height: 1.9rem; }
.home-body ol.journey { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.6rem; margin: 1.75rem 0 2.25rem; }
.journey li { position: relative; padding: 0; border: 0; box-shadow: none; background: none; font-size: 0.98rem; line-height: 1.5; color: var(--ink); opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.journey li.in { opacity: 1; transform: none; }
.journey li::before { position: absolute; z-index: 2; top: 0.65rem; left: 0.65rem; margin: 0; width: 1.8rem; height: 1.8rem; font-size: 0.85rem; }
.journey .scene-wrap { position: relative; margin-bottom: 0.9rem; }
.journey .scene { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 18px; background: var(--bg); box-shadow: var(--lift), 0 0 0 1px var(--line); }
.journey .scene svg { display: block; width: 100%; height: 100%; }
.journey li:not(:last-child) .scene-wrap::after { content: ""; position: absolute; top: 50%; right: -1.45rem; width: 1.3rem; height: 1.3rem; margin-top: -0.65rem; background: var(--line); clip-path: polygon(0 20%, 55% 20%, 55% 0, 100% 50%, 55% 100%, 55% 80%, 0 80%); }
.journey li.in:not(:last-child) .scene-wrap::after { animation: nudge 2.4s ease-in-out 1.2s infinite; background: var(--brand); }
@keyframes nudge { 50% { transform: translateX(4px); } }
@media (max-width: 62rem) { .home-body ol.journey { grid-template-columns: repeat(2, minmax(0, 1fr)); } .journey li .scene-wrap::after { display: none; } }
@media (max-width: 36rem) { .home-body ol.journey { grid-template-columns: 1fr; } }

.sv { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sv text { font-family: "Plus Jakarta Sans", system-ui, sans-serif; fill: var(--ink); stroke: none; font-weight: 700; }
.sv .f-line { fill: var(--line); stroke: none; }
.sv .f-soft { fill: var(--soft); }
.sv .f-brand { fill: var(--brand); stroke: none; }
.sv .f-violet { fill: var(--violet); stroke: none; }
.sv .f-sun { fill: var(--sun); }
.sv .s-brand { stroke: var(--brand); }
.sv .s-line { stroke: var(--line); }
.sv .s-white { stroke: #fff; }
.sv .t-white { fill: #fff; }
.sv .s-violet { stroke: var(--violet); }
.sv .dash { stroke-dasharray: 3 5; }
.sv .pop, .sv .draw, .sv .grow, .sv .arc { transform-box: fill-box; transform-origin: center; }
.journey li:not(.in) .sv .pop { opacity: 0; }
.journey li:not(.in) .sv .draw { stroke-dasharray: 80; stroke-dashoffset: 80; }
.journey li:not(.in) .sv .grow { transform: scaleX(0); }
.journey li:not(.in) .sv .arc { stroke-dasharray: 63; stroke-dashoffset: 63; }
@media (prefers-reduced-motion: no-preference) {
  .journey li.in .sv .pop { animation: sv-pop 0.6s var(--ease) both; animation-delay: var(--d, 0.3s); }
  .journey li.in .sv .draw { stroke-dasharray: 80; animation: sv-draw 0.9s ease 0.7s both; }
  .journey li.in .sv .grow { transform-origin: left center; animation: sv-grow 0.9s var(--ease) 0.9s both; }
  .journey li.in .sv .arc { stroke-dasharray: 63; animation: sv-arc 1.6s ease 0.9s both; }
  .journey li.in .sv .dots circle { animation: sv-dot 1.2s ease-in-out infinite; }
  .journey li.in .sv .dots circle:nth-child(2) { animation-delay: 0.15s; } .journey li.in .sv .dots circle:nth-child(3) { animation-delay: 0.3s; }
}
@keyframes sv-pop { from { opacity: 0; transform: translateY(8px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes sv-draw { from { stroke-dashoffset: 80; } to { stroke-dashoffset: 0; } }
@keyframes sv-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sv-arc { from { stroke-dashoffset: 63; } to { stroke-dashoffset: 8; } }
@keyframes sv-dot { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ---- Section rhythm and the call-to-action ---------------------------------------------------- */
.home-body h2::after { width: 48px; height: 4px; background: var(--sun); }
.home-body > p, .home-body > .callout { max-width: 44rem; font-size: 1.05rem; }
.cta-band { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; padding: clamp(1.5rem, 4vw, 2.75rem); border-radius: 26px; overflow: hidden;
  background: radial-gradient(520px 260px at 100% 0%, rgba(255, 183, 3, 0.25), transparent 70%), linear-gradient(125deg, var(--night), #174f4a); }
.cta-copy .btn { margin-top: 1.1rem; }
.cta-art { display: flex; justify-content: flex-end; }
.week-art { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; width: min(15rem, 100%); }
.week-art i { aspect-ratio: 1; border-radius: 6px; background: rgba(255, 255, 255, 0.12); }
@media (prefers-reduced-motion: no-preference) {
  .week-art i:nth-child(-n+5), .week-art i:nth-child(n+8):nth-child(-n+12), .week-art i:nth-child(n+15):nth-child(-n+17), .week-art i:nth-child(n+22):nth-child(-n+26) { animation: fill-week 7s ease-in-out infinite; animation-delay: calc(var(--i) * 70ms); }
}
@media (prefers-reduced-motion: reduce) {
  .week-art i:nth-child(-n+5), .week-art i:nth-child(n+8):nth-child(-n+12), .week-art i:nth-child(n+15):nth-child(-n+17), .week-art i:nth-child(n+22):nth-child(-n+26) { background: var(--sun); }
}
@keyframes fill-week { 0%, 8% { background: rgba(255, 255, 255, 0.12); } 18%, 78% { background: var(--sun); } 90%, 100% { background: rgba(255, 255, 255, 0.12); } }
@media (max-width: 52rem) { .cta-band { grid-template-columns: 1fr; } .cta-art { display: none; } }
