/* VetM8 landing page. Tokens follow the app's clinical theme (spec 08). No build step. */

@font-face {
  font-family: 'Noto Sans Tamil Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/noto-sans-tamil-tamil-wght-normal.woff2') format('woff2');
  unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC;
}

:root {
  --primary-50: hsl(166 55% 96%);
  --primary-600: hsl(165 64% 29%);
  --primary-700: hsl(164 66% 23%);
  --surface: hsl(190 20% 97%);
  --surface-raised: #fff;
  --text: hsl(204 30% 11%);
  --text-2: hsl(202 14% 32%);
  --border: hsl(198 16% 86%);
  --on-primary: #fff;
  --shadow: 0 1px 2px hsl(204 30% 11% / 0.06), 0 8px 24px hsl(204 30% 11% / 0.06);
  --radius: 0.5rem;
  --gutter: 16px;
  --font-sans: 'Noto Sans Tamil Variable', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans Tamil', 'Tamil Sangam MN', 'Nirmala UI', sans-serif;
  --font-sys-ta: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Tamil', 'Tamil Sangam MN', 'Nirmala UI', sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary-50: hsl(166 30% 14%);
    --primary-600: hsl(165 50% 42%);
    --primary-700: hsl(165 55% 36%);
    --surface: hsl(204 24% 9%);
    --surface-raised: hsl(204 20% 13%);
    --text: hsl(200 20% 94%);
    --text-2: hsl(202 14% 70%);
    --border: hsl(202 14% 24%);
    --on-primary: hsl(204 30% 8%);
    --shadow: 0 1px 2px hsl(0 0% 0% / 0.3), 0 8px 24px hsl(0 0% 0% / 0.3);
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--surface);
  overflow-x: hidden;
}

html[lang='ta'] body { line-height: 1.7; }

img, svg { display: block; max-width: 100%; }
a { color: var(--primary-600); text-underline-offset: 0.15em; }
a:hover { color: var(--primary-700); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 650; }
html[lang='ta'] h1 { font-size: clamp(1.75rem, 5.5vw, 2.75rem); line-height: 1.3; }
html[lang='ta'] h2 { line-height: 1.35; }
html[lang='ta'] h3 { line-height: 1.45; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }


.container { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 46rem; }

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

.skip {
  position: absolute; left: var(--gutter); top: -3rem; z-index: 100;
  padding: 0.5rem 0.75rem; background: var(--primary-600); color: var(--on-primary);
  border-radius: var(--radius); text-decoration: none;
}
.skip:focus { top: 0.5rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-row { display: flex; align-items: center; gap: 0.75rem; min-height: 3.5rem; }
.brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--text); min-width: 0; }
.brand-mark { width: 32px; height: 32px; border-radius: 7px; flex: none; }
.brand-name { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--primary-600); }
.brand-m8 { color: var(--text); }
.brand-ta { font-size: 0.8rem; color: var(--text-2); white-space: nowrap; }
.site-nav { display: none; gap: 1.25rem; margin-left: 0.5rem; }
.site-nav a { color: var(--text-2); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--text); }
.lang-switch {
  margin-left: auto; display: inline-flex; border: 1px solid var(--border);
  border-radius: 999px; padding: 2px; background: var(--surface-raised); flex: none;
}
.lang-btn {
  font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer;
  border: 0; background: transparent; color: var(--text-2);
  padding: 0.25rem 0.75rem; min-height: 2.25rem; line-height: 1.6; border-radius: 999px;
}
.lang-btn[aria-pressed='true'] { background: var(--primary-600); color: var(--on-primary); }
.lang-btn:focus-visible { outline: 2px solid var(--primary-600); outline-offset: 2px; }

@media (min-width: 48rem) {
  .site-nav { display: flex; }
  .brand-ta { font-size: 0.875rem; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.75rem 1.25rem; border-radius: var(--radius);
  font-weight: 650; text-decoration: none; text-align: center;
  border: 1px solid transparent; transition: background-color 120ms, border-color 120ms;
}
.btn-primary { background: var(--primary-600); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-700); color: var(--on-primary); }
.btn-secondary { background: var(--surface-raised); color: var(--primary-600); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--primary-600); color: var(--primary-700); }
.btn:focus-visible { outline: 2px solid var(--primary-600); outline-offset: 3px; }
.cta-row { display: flex; flex-direction: column; gap: 0.75rem; margin: 1.5rem 0 1rem; }
.cta-row.center { align-items: center; }
@media (min-width: 30rem) { .cta-row { flex-direction: row; flex-wrap: wrap; } .cta-row.center { justify-content: center; } }

/* Hero */
.hero { padding: 2.5rem 0 3rem; background: linear-gradient(180deg, var(--primary-50), var(--surface) 70%); }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.eyebrow { color: var(--primary-600); font-weight: 650; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem; }
html[lang='ta'] .eyebrow { text-transform: none; letter-spacing: 0; }
.lede { font-size: 1.125rem; color: var(--text-2); max-width: 36rem; }
.hero-note { color: var(--text-2); font-size: 0.9375rem; }
.section-lede { color: var(--text-2); font-size: 1.0625rem; max-width: 44rem; margin-bottom: 1.5rem; }

.hero-visual { display: flex; justify-content: center; }
.phone {
  width: min(100%, 20rem); background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: 1.25rem; box-shadow: var(--shadow); padding: 1rem; font-size: 0.9375rem;
}
.phone-bar { display: flex; align-items: center; gap: 0.5rem; font-weight: 650; margin-bottom: 0.75rem; }
.phone-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary-600); }
.phone-field { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); padding: 0.5rem 0.75rem; margin-bottom: 0.75rem; }
.phone-field-label { font-size: 0.75rem; color: var(--text-2); }
.phone-field-value { font-size: 1.25rem; font-weight: 650; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.phone-result { border-top: 1px solid var(--border); padding-top: 0.75rem; }
.phone-result-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; color: var(--text-2); font-size: 0.875rem; margin-bottom: 0.5rem; }
.phone-chip { background: var(--primary-50); color: var(--primary-600); border-radius: 999px; padding: 0.1rem 0.6rem; font-weight: 600; font-size: 0.8rem; white-space: nowrap; }
.phone-pet { display: flex; flex-direction: column; padding: 0.5rem 0; border-top: 1px solid var(--border); }
.phone-pet-name { font-weight: 650; }
.phone-pet-meta { color: var(--text-2); font-size: 0.875rem; }
.phone-due { font-size: 0.8125rem; color: var(--primary-600); font-weight: 600; margin-top: 0.15rem; }
.phone-cta { margin-top: 0.75rem; background: var(--primary-600); color: var(--on-primary); text-align: center; border-radius: var(--radius); padding: 0.6rem; font-weight: 650; }

@media (min-width: 56rem) {
  .hero { padding: 4rem 0 4.5rem; }
  .hero-grid { grid-template-columns: 1.2fr 1fr; gap: 3rem; }
}

/* Sections */
.section { padding: 3rem 0; }
.section-alt { background: var(--surface-raised); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
@media (min-width: 48rem) { .section { padding: 4.5rem 0; } }

.steps { display: grid; gap: 1.25rem; counter-reset: step; margin-top: 1.5rem; }
.step { position: relative; padding: 1.25rem 1.25rem 1.25rem 4rem; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius); }
.step-num { position: absolute; left: 1.25rem; top: 1.25rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--primary-600); color: var(--on-primary); font-weight: 700; display: grid; place-items: center; }
.step p { margin: 0; color: var(--text-2); }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); } .step { padding: 4rem 1.25rem 1.5rem; } .step-num { left: 1.25rem; top: 1.25rem; } }

.features { display: grid; gap: 1rem; margin-top: 1.5rem; }
.feature { padding: 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.feature p { margin: 0; color: var(--text-2); font-size: 0.9375rem; }
.feature-addon { border-color: var(--primary-600); }
.icon { width: 28px; height: 28px; stroke: var(--primary-600); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 0.75rem; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
@media (min-width: 40rem) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .features { grid-template-columns: repeat(3, 1fr); } }

/* Pricing */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 1rem; }
.price-table { width: 100%; border-collapse: collapse; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { padding: 0.65rem 0.5rem; text-align: right; border-bottom: 1px solid var(--border); font-size: 0.9375rem; }
.price-table th:first-child, .price-table td:first-child { text-align: left; padding-left: 0.75rem; }
.price-table th:last-child, .price-table td:last-child { padding-right: 0.75rem; }
.price-table thead th { background: var(--primary-50); color: var(--text); font-weight: 650; vertical-align: bottom; font-size: 0.8125rem; line-height: 1.3; }
.price-table tbody th { font-weight: 500; }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }
.col-founding { color: var(--primary-600); font-weight: 650; }
.table-note { color: var(--text-2); font-size: 0.9375rem; margin-top: 0.75rem; }
@media (min-width: 40rem) { .price-table th, .price-table td { padding: 0.75rem 1rem; font-size: 1rem; } .price-table thead th { font-size: 0.9375rem; } }
/* On phones the four columns do not fit: each row becomes a block, cells labelled by `data-label`.
   The header row stays for screen readers. */
@media (max-width: 39.99rem) {
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; }
  .price-table tr { padding: 0.5rem 0.75rem 0.75rem; border-bottom: 1px solid var(--border); }
  .price-table tbody tr:last-child { border-bottom: 0; }
  .price-table tbody th:first-child { font-weight: 650; font-size: 1rem; text-align: left; padding: 0.25rem 0 0.35rem; border: 0; }
  .price-table td, .price-table td:last-child { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.3rem 0; border: 0; font-size: 1rem; }
  .price-table td::before { content: attr(data-label); color: var(--text-2); font-weight: 400; font-size: 0.875rem; text-align: left; }
  .price-table td.col-founding { border-top: 1px dashed var(--border); margin-top: 0.25rem; padding-top: 0.5rem; }
}

.offers { display: grid; gap: 1rem; margin-top: 1.5rem; }
.offer { padding: 1.25rem; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius); }
.offer p { margin: 0; color: var(--text-2); font-size: 0.9375rem; }
.offer-highlight { border-color: var(--primary-600); background: var(--primary-50); }
.offer-highlight p { color: var(--text); }
@media (min-width: 48rem) { .offers { grid-template-columns: repeat(2, 1fr); } }

/* Data ownership */
.promises { display: grid; gap: 1rem; margin-top: 1.5rem; }
.promise { padding: 1.25rem; border-left: 4px solid var(--primary-600); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
.promise p { margin: 0; color: var(--text-2); }
@media (min-width: 48rem) { .promises { grid-template-columns: repeat(2, 1fr); } }

/* FAQ */
.faq { border-top: 1px solid var(--border); padding: 0.25rem 0; }
.faq:last-of-type { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 650; padding: 0.85rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--primary-600); font-size: 1.5rem; line-height: 1; flex: none; }
.faq[open] summary::after { content: '−'; }
.faq summary:focus-visible { outline: 2px solid var(--primary-600); outline-offset: 2px; border-radius: 4px; }
.faq p { color: var(--text-2); margin: 0 0 1rem; }

.cta-final { text-align: center; background: linear-gradient(180deg, var(--surface), var(--primary-50)); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0; font-size: 0.9375rem; color: var(--text-2); }
.footer-grid { display: grid; gap: 0.75rem; }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; color: var(--text); }
.footer-brand .brand-mark { width: 28px; height: 28px; border-radius: 6px; }
.footer-text { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.muted { color: var(--text-2); }
@media (min-width: 48rem) {
  .footer-grid { grid-template-columns: auto 1fr auto; align-items: center; }
  .footer-grid .footer-text:last-child { grid-column: 1 / -1; }
}

/* Tamil that is visible in English mode (toggle label, brand sub-name) uses the system Tamil
   font, so the self-hosted Noto Sans Tamil is only fetched once Tamil is chosen. Last, to win
   over `font: inherit` on the buttons. */
.sys-ta { font-family: var(--font-sys-ta); }
