/*
 * ClinicForYou — marketing site.
 *
 * One stylesheet, no build step, no fonts fetched from anywhere: the audience is
 * a doctor or receptionist on a low-end Android phone on a patchy connection in
 * coastal Karnataka, and a webfont that fails to load is a page that reflows
 * under their thumb. System fonts render instantly and support Kannada script
 * natively, which matters for the Kannada version this is structured to take.
 *
 * Palette is the product's own — warm neutral ground, one green accent — so the
 * site and the dashboard read as the same thing.
 */

:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --surface-2: #fbf9f6;
  --ink: #1f2421;
  --ink-2: #4a5450;
  --ink-3: #6f7a75;
  --accent: #0f6e5c;
  --accent-ink: #ffffff;
  --accent-soft: #e6f2ef;
  --line: #e7e1d8;
  --line-2: #d8d1c6;
  --warn-soft: #fdf1e0;
  --warn-line: #e8d4b0;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px;
  --tap: 44px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Kannada", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

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

/* One gutter rule for the whole site. */
.wrap { max-width: 1060px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 720px; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

/* Visible keyboard focus everywhere — the default ring is removed by nothing here. */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* Skip link: first tab stop on every page. */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-ink);
  padding: var(--s3) var(--s4); border-radius: 0 0 var(--r-sm) 0; z-index: 50;
}
.skip:focus { left: 0; }

/* ---------------------------------------------------------------- header */
header.site {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
header.site .wrap {
  display: flex; align-items: center; gap: var(--s4);
  min-height: 64px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-weight: 700; font-size: 18px; letter-spacing: -0.015em;
  color: var(--ink); text-decoration: none;
}
.brand svg { display: block; }
header.site nav { margin-left: auto; display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
header.site nav a {
  display: inline-flex; align-items: center; min-height: var(--tap);
  padding: 0 var(--s3); border-radius: var(--r-sm);
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px;
}
header.site nav a:hover { background: var(--surface-2); color: var(--ink); }
header.site nav a.cta {
  background: var(--accent); color: var(--accent-ink); padding-inline: var(--s4);
}
header.site nav a.cta:hover { background: #0c5a4b; color: var(--accent-ink); }

/* ---------------------------------------------------------------- hero */
.hero { padding-block: var(--s7) var(--s6); }
.hero .grid { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 880px) { .hero .grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--s7); } }

h1 {
  font-size: clamp(28px, 5.4vw, 42px);
  line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 var(--s4);
  text-wrap: balance;
}
.hero p.lede { font-size: clamp(17px, 2.2vw, 19px); color: var(--ink-2); margin: 0 0 var(--s5); max-width: 46ch; }

.actions { display: flex; gap: var(--s3); flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: var(--tap); padding: 0 var(--s5);
  border-radius: var(--r-sm); font-weight: 650; font-size: 16px;
  text-decoration: none; border: 1px solid transparent;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #0c5a4b; }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn.secondary:hover { background: var(--surface-2); }

/* ---------------------------------------------------------------- sections */
section { padding-block: var(--s6); }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }
h2 {
  font-size: clamp(22px, 3.2vw, 28px); line-height: 1.2; letter-spacing: -0.018em;
  margin: 0 0 var(--s3); text-wrap: balance;
}
h3 { font-size: 18px; margin: 0 0 var(--s2); letter-spacing: -0.01em; }
p { margin: 0 0 var(--s4); max-width: 68ch; }
.sub { color: var(--ink-2); margin-bottom: var(--s5); max-width: 60ch; }

/* ---------------------------------------------------------------- steps */
ol.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: var(--s4); }
@media (min-width: 760px) { ol.steps { grid-template-columns: repeat(3, 1fr); gap: var(--s5); } }
ol.steps li {
  counter-increment: step; position: relative;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s5) var(--s4) var(--s4);
}
ol.steps li::before {
  content: counter(step);
  position: absolute; top: calc(-1 * var(--s3)); left: var(--s4);
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
}
ol.steps p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* ---------------------------------------------------------------- features */
.features { display: grid; gap: var(--s4); }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); gap: var(--s5); } }
.feature {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s5);
}
.feature .ico {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: var(--s3);
}
.feature p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* ---------------------------------------------------------------- chat mock */
.phone {
  width: 100%; max-width: 330px; margin-inline: auto;
  background: #eae6df; border: 10px solid #23292b; border-radius: 30px;
  overflow: hidden; box-shadow: 0 18px 44px rgba(31, 36, 33, 0.18);
}
.phone .bar {
  background: var(--accent); color: #fff;
  padding: var(--s3) var(--s4); font-weight: 600; font-size: 14px;
}
.phone .bar span { display: block; font-weight: 400; font-size: 11.5px; opacity: 0.85; }
.phone .chat { padding: var(--s3); display: flex; flex-direction: column; gap: var(--s2); }
.msg { max-width: 85%; padding: var(--s2) var(--s3); border-radius: 11px; font-size: 13.5px; line-height: 1.45; }
.msg.in { background: #fff; align-self: flex-start; }
.msg.out { background: #cdeadd; align-self: flex-end; }
.msg .opts { margin: var(--s2) calc(-1 * var(--s3)) calc(-1 * var(--s2)); border-top: 1px solid var(--line); }
.msg .opt { padding: var(--s2) var(--s3); text-align: center; color: var(--accent); font-weight: 600; border-bottom: 1px solid var(--line); }
.msg .opt:last-child { border-bottom: 0; }
.caption { text-align: center; color: var(--ink-3); font-size: 14px; margin-top: var(--s3); }

/* ---------------------------------------------------------------- prose (legal pages) */
.prose { padding-block: var(--s6) var(--s7); }
.prose h1 { margin-bottom: var(--s2); }
.prose .updated { color: var(--ink-3); font-size: 15px; margin-bottom: var(--s5); }
.prose h2 { margin-top: var(--s6); font-size: 21px; }
.prose h3 { margin-top: var(--s5); font-size: 17px; }
.prose ul, .prose ol { margin: 0 0 var(--s4); padding-left: var(--s5); max-width: 68ch; }
.prose li { margin-bottom: var(--s2); }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 var(--s4); font-size: 16px; }
.prose th, .prose td { text-align: left; padding: var(--s2) var(--s3); border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { background: var(--surface-2); font-size: 14px; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: var(--s4); }
.tablewrap table { margin: 0; min-width: 480px; }

.callout {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: var(--s4); margin: 0 0 var(--s5);
}
.callout :last-child { margin-bottom: 0; }
.callout.note { background: var(--warn-soft); border-color: var(--warn-line); border-left-color: #a35a06; }

dl.contact { margin: 0 0 var(--s5); }
dl.contact dt { font-weight: 650; margin-top: var(--s4); }
dl.contact dd { margin: var(--s1) 0 0; color: var(--ink-2); }

/* ---------------------------------------------------------------- footer */
footer.site {
  background: var(--surface); border-top: 1px solid var(--line);
  padding-block: var(--s6); margin-top: var(--s6); font-size: 15px;
}
footer.site .cols { display: grid; gap: var(--s5); }
@media (min-width: 720px) { footer.site .cols { grid-template-columns: 1.4fr 1fr; gap: var(--s7); } }
footer.site h2 { font-size: 15px; margin-bottom: var(--s2); letter-spacing: 0; }
footer.site address { font-style: normal; color: var(--ink-2); margin-bottom: var(--s3); }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: var(--s2); }
/* One column of links reads as a stub when it is the only thing in the footer,
   so the home page lays its legal links out in a row. They still wrap on a
   phone, and `gap` keeps the row and the wrapped line evenly spaced. */
footer.site ul.inline { display: flex; flex-wrap: wrap; gap: 0 var(--s4); }
footer.site ul.inline li { margin-bottom: 0; }
footer.site a { display: inline-flex; align-items: center; min-height: 32px; }
.disclaimer {
  margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line);
  color: var(--ink-3); font-size: 14px; max-width: 70ch;
}

/* ---------------------------------------------------------------- 404 */
.center { text-align: center; padding-block: var(--s7); }
.center .actions { justify-content: center; }
