/* PatientDesk marketing site — one stylesheet.
   Brand: teal #0F766E (primary), ink #1F2937. Fonts: Inter (Latin), Noto Sans Bengali (Bangla).
   Light and dark. Mobile first. */

:root {
  --teal-900: #0B4F4A;
  --teal-700: #0F766E;
  --teal-600: #11867D;
  --teal-50:  #EFF9F7;
  --ink:      #1F2937;
  --ink-soft: #4B5563;
  --ink-mute: #6B7280;
  --line:     #E3E8E7;
  --line-soft:#EDF1F0;
  --bg:       #FFFFFF;
  --bg-alt:   #F7FAF9;
  --card:     #FFFFFF;
  --amber-bg: #FFF8EB;
  --amber-ln: #F0DCB4;
  --amber-tx: #7A5313;
  --radius:   14px;
  --maxw:     1120px;
  --font-latin: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-bn: "Noto Sans Bengali", "Hind Siliguri", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --teal-900: #CFEDE8;
    --teal-700: #4DC3B6;
    --teal-600: #6AD2C6;
    --teal-50:  #11201F;
    --ink:      #ECF1F0;
    --ink-soft: #B6C2C0;
    --ink-mute: #93A09E;
    --line:     #24302F;
    --line-soft:#1C2726;
    --bg:       #0D1514;
    --bg-alt:   #111A19;
    --card:     #121D1C;
    --amber-bg: #231B0C;
    --amber-ln: #4A3A17;
    --amber-tx: #F0D9A8;
  }
}
:root[data-theme="dark"] {
  --teal-900: #CFEDE8;
  --teal-700: #4DC3B6;
  --teal-600: #6AD2C6;
  --teal-50:  #11201F;
  --ink:      #ECF1F0;
  --ink-soft: #B6C2C0;
  --ink-mute: #93A09E;
  --line:     #24302F;
  --line-soft:#1C2726;
  --bg:       #0D1514;
  --bg-alt:   #111A19;
  --card:     #121D1C;
  --amber-bg: #231B0C;
  --amber-ln: #4A3A17;
  --amber-tx: #F0D9A8;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-latin);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[lang="bn"] body { font-family: var(--font-bn); font-size: 17px; line-height: 1.85; }
html[lang="bn"] .lat { font-family: var(--font-latin); }

/* Bangla is never below 14px anywhere on this site. */
html[lang="bn"] .small,
html[lang="bn"] .meta,
html[lang="bn"] footer { font-size: 15px; }

img, svg { max-width: 100%; height: auto; }

a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-600); }

:focus-visible {
  outline: 3px solid var(--teal-700);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--teal-700); color: #fff; padding: 10px 16px; z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */
header.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar { display: flex; align-items: center; gap: 12px; min-height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.brand:hover { color: var(--ink); }
/* ---- LOGO SLOT -------------------------------------------------------
   The mark is ONE file: assets/patientdesk-icon.svg
   To use a new logo: replace that file (keep the name), or change the
   src below in templates. Nothing else references the mark. -------- */
.brand img { width: 30px; height: 30px; border-radius: 7px; display: block; }
.brand .wordmark {
  font-family: var(--font-latin);
  font-weight: 650; font-size: 19px; letter-spacing: -0.015em; color: var(--ink);
}

nav.main { margin-left: auto; display: none; align-items: center; gap: 4px; }
nav.main a {
  color: var(--ink-soft); text-decoration: none; font-size: 15px;
  padding: 8px 11px; border-radius: 8px; white-space: nowrap;
}
nav.main a:hover { background: var(--bg-alt); color: var(--ink); }
nav.main a[aria-current="page"] { color: var(--teal-700); font-weight: 600; }

.topactions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
nav.main ~ .topactions { margin-left: 10px; }

.langswitch {
  font-size: 14px; text-decoration: none; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; white-space: nowrap;
}
.langswitch:hover { border-color: var(--teal-700); color: var(--teal-700); }

#themebtn {
  background: none; border: 1px solid var(--line); color: var(--ink-soft);
  width: 36px; height: 36px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; padding: 0; flex: 0 0 auto;
}
#themebtn:hover { border-color: var(--teal-700); color: var(--teal-700); }

#menubtn {
  margin-left: 2px; background: none; border: 1px solid var(--line); color: var(--ink);
  border-radius: 9px; width: 40px; height: 38px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
#mobnav { display: none; border-top: 1px solid var(--line-soft); padding: 8px 0 14px; }
#mobnav.open { display: block; }
#mobnav a {
  display: block; padding: 11px 4px; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line-soft); font-size: 16px;
}
#mobnav a[aria-current="page"] { color: var(--teal-700); font-weight: 600; }

/* Phone: the header must fit 360px. The "Book a demo" button is dropped from the
   bar (it is the last item of the mobile menu and on every page), and the
   language switch tightens up. Checked at 360px in both languages. */
@media (max-width: 719px) {
  .topactions .btn-primary { display: none; }
  .langswitch { font-size: 13.5px; padding: 6px 10px; }
  .brand .wordmark { font-size: 17.5px; }
  .brand img { width: 27px; height: 27px; }
  .topbar { gap: 8px; }
  .topactions { gap: 6px; }
}
@media (max-width: 359px) {
  .langswitch { padding: 6px 8px; font-size: 13px; }
}

@media (min-width: 900px) {
  nav.main { display: flex; }
  #menubtn, #mobnav { display: none !important; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.2;
  padding: 14px 22px; border-radius: 10px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; min-height: 48px; text-align: center;
}
.btn-primary { background: var(--teal-700); color: #fff; }
.btn-primary:hover { background: var(--teal-600); color: #fff; }
:root[data-theme="dark"] .btn-primary, .btn-primary { }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #06201D; } }
:root[data-theme="dark"] .btn-primary { color: #06201D; }
:root[data-theme="light"] .btn-primary { color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal-700); color: var(--teal-700); }
.btn-wa { background: #1FA855; color: #fff; }
.btn-wa:hover { background: #17924a; color: #fff; }

.btnrow { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- sections ---------- */
section { padding: 56px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.22; margin: 0 0 14px; letter-spacing: -0.02em; }
html[lang="bn"] h1, html[lang="bn"] h2, html[lang="bn"] h3 { line-height: 1.4; letter-spacing: 0; }
h1 { font-size: clamp(31px, 6.4vw, 50px); font-weight: 700; }
h2 { font-size: clamp(24px, 4.2vw, 33px); font-weight: 680; }
h3 { font-size: 19px; font-weight: 650; }
p { margin: 0 0 16px; color: var(--ink-soft); }
.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--ink-soft); max-width: 62ch; }
.eyebrow {
  font-family: var(--font-latin);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal-700); margin: 0 0 12px;
}
html[lang="bn"] .eyebrow { font-family: var(--font-bn); letter-spacing: 0.04em; text-transform: none; font-size: 14px; }
.sectionhead { max-width: 66ch; margin-bottom: 34px; }

/* ---------- hero ---------- */
.hero { padding: 54px 0 48px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(760px 420px at 88% -14%, color-mix(in srgb, var(--teal-700) 13%, transparent), transparent 70%),
    repeating-linear-gradient(to bottom, var(--line-soft) 0 1px, transparent 1px 30px);
  opacity: .55;
  mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 20ch; }

.herogrid { display: grid; gap: 34px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 980px) {
  .herogrid { grid-template-columns: 1.15fr 0.85fr; gap: 54px; align-items: center; }
  .hero h1 { max-width: 16ch; }
}
.statuscard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: 0 1px 2px rgba(16,40,38,.04), 0 10px 30px -18px rgba(16,40,38,.25);
}
.statuscard h2 { font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--teal-700); font-family: var(--font-latin); margin-bottom: 14px; }
html[lang="bn"] .statuscard h2 { font-family: var(--font-bn); text-transform: none; letter-spacing: 0; font-size: 16px; }
.statuscard ul { list-style: none; padding: 0; margin: 0 0 18px; }
.statuscard ul li { position: relative; padding-left: 25px; margin-bottom: 7px; font-size: 15.5px; color: var(--ink-soft); }
html[lang="bn"] .statuscard ul li { font-size: 16px; }
.statuscard ul li::before {
  content: ""; position: absolute; left: 2px; top: .55em;
  width: 10px; height: 5.5px; border-left: 2.2px solid var(--teal-700); border-bottom: 2.2px solid var(--teal-700);
  transform: rotate(-45deg);
}
.statuscard .divide { border-top: 1px solid var(--line-soft); padding-top: 16px; }
.statuscard .divide h2 { color: var(--ink-mute); }
.statuscard .divide ul li::before {
  border: 0; width: 9px; height: 9px; border-radius: 2px; top: .5em;
  background: repeating-linear-gradient(45deg, var(--ink-mute) 0 2px, transparent 2px 4px);
  transform: none; opacity: .6;
}
.statuscard .more { margin: 0; font-size: 15px; }
.hero .lead { margin-bottom: 26px; }
.hero .btnrow { margin-bottom: 22px; }

.trustline {
  font-size: 14.5px; color: var(--ink-mute); max-width: 54ch; margin: 0;
  padding-top: 18px; border-top: 1px solid var(--line-soft);
}

.pillrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.pillrow li {
  font-size: 14px; color: var(--teal-900); background: var(--teal-50);
  border: 1px solid color-mix(in srgb, var(--teal-700) 22%, transparent);
  border-radius: 999px; padding: 6px 13px;
}

/* ---------- grid + cards ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) {
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.four  { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px;
}
.card h3 { margin-bottom: 8px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .num {
  font-family: var(--font-latin);
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px; margin-bottom: 14px;
  background: var(--teal-50); color: var(--teal-700);
  border: 1px solid color-mix(in srgb, var(--teal-700) 22%, transparent);
  font-size: 14px; font-weight: 700;
}

ul.ticks { list-style: none; padding: 0; margin: 0 0 16px; }
ul.ticks li { position: relative; padding-left: 27px; margin-bottom: 9px; color: var(--ink-soft); }
ul.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .58em;
  width: 11px; height: 6px; border-left: 2.2px solid var(--teal-700); border-bottom: 2.2px solid var(--teal-700);
  transform: rotate(-45deg);
}
ul.plain { padding-left: 22px; margin: 0 0 16px; }
ul.plain li { margin-bottom: 9px; color: var(--ink-soft); }

/* ---------- notices ---------- */
.notice {
  border: 1px solid var(--amber-ln); background: var(--amber-bg); color: var(--amber-tx);
  border-radius: var(--radius); padding: 18px 20px; margin: 0 0 24px;
}
.notice strong { color: var(--amber-tx); }
.notice p:last-child { margin-bottom: 0; color: inherit; }
.notice p { color: inherit; }

.soonlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.soonlist li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px;
  padding: 13px 16px; border: 1px dashed var(--line); border-radius: 10px; background: var(--bg);
  color: var(--ink-soft);
}
.soonlist .tag {
  font-family: var(--font-latin);
  font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-mute); border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px;
  flex: 0 0 auto;
}
html[lang="bn"] .soonlist .tag { font-family: var(--font-bn); font-size: 13px; letter-spacing: 0; text-transform: none; }
.soonlist b { color: var(--ink); font-weight: 620; }

/* ---------- feature table ---------- */
.ftable { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.frow { padding: 20px 22px; border-top: 1px solid var(--line-soft); background: var(--card); }
.frow:first-child { border-top: 0; }
.frow h3 { margin-bottom: 6px; }
.frow p { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.ctaband {
  background: var(--teal-700); border-radius: 18px; padding: 38px 26px; text-align: center;
  color: #fff;
}
.ctaband h2, .ctaband p { color: #fff; }
.ctaband p { opacity: .93; max-width: 54ch; margin-left: auto; margin-right: auto; }
.ctaband .btnrow { justify-content: center; margin-top: 22px; }
.ctaband .btn-primary { background: #fff; color: var(--teal-900) !important; }
.ctaband .btn-primary:hover { background: #F0FBF9; }
.ctaband .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.ctaband .btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ctaband { background: #0E3C38; }
  :root:not([data-theme="light"]) .ctaband .btn-primary { background: var(--teal-700); color: #06201D !important; }
}
:root[data-theme="dark"] .ctaband { background: #0E3C38; }
:root[data-theme="dark"] .ctaband .btn-primary { background: var(--teal-700); color: #06201D !important; }

/* ---------- form ---------- */
form.demo { display: grid; gap: 16px; max-width: 620px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14.5px; font-weight: 600; color: var(--ink); }
html[lang="bn"] .field label { font-size: 15.5px; }
.field .hint { font-size: 13.5px; color: var(--ink-mute); }
html[lang="bn"] .field .hint { font-size: 14px; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 16px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px; min-height: 48px;
  width: 100%;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal-700); }
.req { color: #B4472F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .req { color: #FF9C86; } }
:root[data-theme="dark"] .req { color: #FF9C86; }
.formnote { font-size: 14px; color: var(--ink-mute); }
.two-up { display: grid; gap: 16px; }
@media (min-width: 620px) { .two-up { grid-template-columns: 1fr 1fr; } }

.contactcard {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--bg-alt);
}
.contactcard dl { margin: 0; display: grid; gap: 14px; }
.contactcard dt { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-mute); font-weight: 700; font-family: var(--font-latin); }
html[lang="bn"] .contactcard dt { font-family: var(--font-bn); text-transform: none; letter-spacing: 0; font-size: 14px; }
.contactcard dd { margin: 3px 0 0; font-size: 17px; }

/* ---------- legal pages ---------- */
.legal { max-width: 74ch; }
.legal h2 { font-size: 22px; margin-top: 36px; }
.legal h3 { font-size: 17.5px; margin-top: 24px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal .updated { font-size: 14.5px; color: var(--ink-mute); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line); padding: 44px 0 34px; background: var(--bg-alt);
  font-size: 15px; color: var(--ink-mute);
}
.footgrid { display: grid; gap: 30px; grid-template-columns: 1fr; margin-bottom: 30px; }
@media (min-width: 760px) { .footgrid { grid-template-columns: 1.4fr 1fr 1fr; } }
footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin-bottom: 12px; font-family: var(--font-latin); }
html[lang="bn"] footer h4 { font-family: var(--font-bn); text-transform: none; letter-spacing: 0; font-size: 15px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 9px; }
footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: var(--teal-700); text-decoration: underline; }
.footbase { border-top: 1px solid var(--line-soft); padding-top: 22px; display: grid; gap: 8px; font-size: 14px; }
html[lang="bn"] .footbase { font-size: 15px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
