/* kinfolkhealth.app — Anek (by Ek Type, Mumbai) for Latin, Noto Sans for every Indian script the app speaks.
   Fonts are self-hosted: the site makes no requests to anyone else, like the app. */
@font-face { font-family: "Anek"; font-style: normal; font-display: swap; font-weight: 100 800; font-stretch: 75% 125%;
  src: url(/fonts/anek-latin.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Anek"; font-style: normal; font-display: swap; font-weight: 100 800; font-stretch: 75% 125%;
  src: url(/fonts/anek-latin-ext.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1EFF,U+20A0-20C0,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Anek"; font-style: normal; font-display: swap; font-weight: 100 800; font-stretch: 75% 125%;
  src: url(/fonts/noto-devanagari.woff2) format("woff2-variations"); unicode-range: U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+25CC,U+A8E0-A8FF; }
/* Every Indian script is set in Noto Sans (the faces Android phones use), not Anek: Anek's Devanagari is a display
   face whose heavy headline strokes read as shouting in running Hindi, and the Anek Bengali, Tamil, Telugu and
   Malayalam files lacked glyphs, so the browser filled in from other fonts (words that looked like random capitals;
   Telugu vowel signs coming apart). Same family name, so nothing else changes. Latin stays Anek. */
@font-face { font-family: "Anek"; font-style: normal; font-display: swap; font-weight: 100 800; font-stretch: 75% 125%;
  src: url(/fonts/noto-bengali.woff2) format("woff2-variations"); unicode-range: U+0980-09FE; }
@font-face { font-family: "Anek"; font-style: normal; font-display: swap; font-weight: 100 800; font-stretch: 75% 125%;
  src: url(/fonts/noto-gujarati.woff2) format("woff2-variations"); unicode-range: U+0A80-0AFF; }
@font-face { font-family: "Anek"; font-style: normal; font-display: swap; font-weight: 100 800; font-stretch: 75% 125%;
  src: url(/fonts/noto-telugu.woff2) format("woff2-variations"); unicode-range: U+0C00-0C7F; }
@font-face { font-family: "Anek"; font-style: normal; font-display: swap; font-weight: 100 800; font-stretch: 75% 125%;
  src: url(/fonts/noto-tamil.woff2) format("woff2-variations"); unicode-range: U+0B80-0BFF; }
@font-face { font-family: "Anek"; font-style: normal; font-display: swap; font-weight: 100 800; font-stretch: 75% 125%;
  src: url(/fonts/noto-malayalam.woff2) format("woff2-variations"); unicode-range: U+0D00-0D7F; }

:root {
  --field: #0E4A37;    /* the alarm screen's green, deepened */
  --leaf: #1B6E53;     /* app green */
  --mint: #CFEADF;
  --turmeric: #E9A93A; /* the colour of a capsule, used once per screen */
  --paper: #FFFFFF;
  --ink: #12261D;
  --muted: #4D6359;
  --rule: #DCE6E1;
  --measure: 34rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #0F1A15; --ink: #E6EFEA; --muted: #A2B5AC; --rule: #24352D; --mint: #2A4A3D; color-scheme: dark; }
}
:root[data-theme="dark"] { --paper: #0F1A15; --ink: #E6EFEA; --muted: #A2B5AC; --rule: #24352D; --mint: #2A4A3D; color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Anek", system-ui, "Noto Sans", sans-serif; font-stretch: 100%;
  font-size: 1.125rem; line-height: 1.55; font-weight: 400;
}
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 40rem) { .wrap { padding: 0 2rem; } }

/* ---- header ---- */
.top { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 0; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 650; font-size: 1.25rem; text-decoration: none; }
.brand svg { width: 2rem; height: 2rem; border-radius: .55rem; }
.top nav a { font-size: 1rem; margin-left: 1.25rem; }

/* ---- hero: the moment the alarm goes off ---- */
.hero { background: var(--field); color: #fff; overflow: hidden; }
.hero a { color: #fff; }
.hero-grid { display: grid; gap: 2.5rem; padding: 1.5rem 0 3.5rem; align-items: center; }
@media (min-width: 56rem) { .hero-grid { grid-template-columns: 1.25fr .75fr; padding: 2.5rem 0 5rem; } }
.clock {
  font-stretch: 75%; font-weight: 750; line-height: .82; letter-spacing: -.02em;
  font-size: clamp(6.5rem, 26vw, 15rem); color: var(--turmeric); margin: 0;
  font-variant-numeric: tabular-nums;
}
.clock-sub { font-size: clamp(1.5rem, 4.5vw, 2.25rem); font-weight: 550; margin: .6rem 0 1.6rem; color: #CFEADF; } /* the hero is always dark green, so not var(--mint) (dark in dark mode) */
.hero h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); line-height: 1.08; font-weight: 700; font-stretch: 90%; margin: 0 0 1rem; max-width: 16ch; }
.hero .lede { font-size: 1.2rem; max-width: var(--measure); color: #DCEEE6; margin: 0 0 1.75rem; }
.soon { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; }
.pill-btn {
  display: inline-block; background: #fff; color: var(--field) !important; text-decoration: none;
  font-weight: 650; padding: .8rem 1.3rem; border-radius: 999px; font-size: 1.05rem;
}
.soon small { color: #BFDCD0; font-size: 1rem; }

/* the phone, drawn from the app's real alarm screen */
.phone {
  justify-self: center; width: min(17rem, 78vw); aspect-ratio: 9 / 18.5; border-radius: 2.4rem;
  background: #07130E; padding: .65rem; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55);
  transform-origin: 50% 90%;
}
.screen {
  height: 100%; border-radius: 1.85rem; background: var(--leaf); display: flex; flex-direction: column;
  align-items: center; text-align: center; padding: 1.8rem 1.1rem 1.1rem; color: #fff;
}
.screen .capsule { width: 4.2rem; margin: .4rem 0 1.1rem; transform: rotate(-24deg); }
.screen .t { font-size: .95rem; color: #CFEADF; }
.screen .who { font-size: 2.3rem; font-weight: 750; margin-top: .2rem; }
.screen .med { font-size: 1.45rem; font-weight: 650; margin-top: 1rem; line-height: 1.1; }
.screen .dose { font-size: 1.05rem; color: #CFEADF; }
.screen .say { margin-top: 1.1rem; font-size: .9rem; color: #E6F4EE; display: flex; gap: .4rem; align-items: center; }
.screen .say svg { width: 1.1rem; height: 1.1rem; flex: none; }
.screen .taken { margin-top: auto; width: 100%; background: #fff; color: var(--leaf); border-radius: 1rem; font-weight: 750; font-size: 1.45rem; padding: .85rem 0; }
.screen .later { margin-top: .55rem; width: 100%; border: 1.5px solid rgba(255,255,255,.8); border-radius: 1rem; font-size: .95rem; padding: .6rem 0; }
@media (prefers-reduced-motion: no-preference) {
  .phone { animation: ring 1.1s .6s cubic-bezier(.36,.07,.19,.97) 2; }
}
@keyframes ring {
  0%, 100% { transform: rotate(0); }
  10%, 50% { transform: rotate(-3deg); } 30%, 70% { transform: rotate(3deg); } 85% { transform: rotate(-1deg); }
}

/* ---- sections ---- */
section { padding: 4rem 0; }
section + section { border-top: 1px solid var(--rule); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.1; font-weight: 700; font-stretch: 90%; margin: 0 0 .75rem; max-width: 22ch; }
.intro { color: var(--muted); max-width: var(--measure); margin: 0 0 2.25rem; }

/* what happens at 8:00 — a real sequence, so the times are the markers */
.timeline { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.timeline li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--rule); }
.timeline li:first-child { border-top: 0; }
.timeline time { font-stretch: 75%; font-weight: 700; font-size: 2rem; line-height: 1; color: var(--leaf); font-variant-numeric: tabular-nums; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .timeline time { color: #7FD3AE; } }
.timeline h3 { margin: 0 0 .2rem; font-size: 1.2rem; font-weight: 650; }
.timeline p { margin: 0; color: var(--muted); max-width: var(--measure); }
.timeline .quote { color: var(--ink); font-weight: 500; }
@media (max-width: 30rem) { .timeline li { grid-template-columns: 1fr; gap: .3rem; } }

/* made for Indian families */
.split { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; align-items: start; } }
.split p { max-width: var(--measure); }
.checklist { background: var(--mint); color: var(--ink); border-radius: 1.25rem; padding: 1.4rem 1.5rem; max-width: 26rem; }
.checklist h3 { margin: 0 0 .6rem; font-size: 1.15rem; font-weight: 650; }
.checklist ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.checklist li { display: flex; gap: .7rem; padding: .35rem 0; }
.checklist li::before { content: "✓"; color: var(--leaf); font-weight: 800; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .checklist li::before { color: #7FD3AE; } }
.checklist .test { display: inline-block; border: 1.5px solid currentColor; border-radius: 999px; padding: .45rem .9rem; font-size: .95rem; }

.scripts { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin: 2rem 0 .5rem; font-size: clamp(1.6rem, 4.4vw, 2.6rem); font-weight: 600; line-height: 1.35; }
.scripts span { white-space: nowrap; }
.scripts span:nth-child(odd) { color: var(--leaf); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .scripts span:nth-child(odd) { color: #7FD3AE; } }
.scripts-note { color: var(--muted); font-size: 1rem; }

/* privacy */
.big { font-size: clamp(2.2rem, 7vw, 4.2rem); font-stretch: 80%; font-weight: 750; line-height: 1; margin: 0 0 1.5rem; max-width: 14ch; }
.facts { margin: 0 0 1.5rem; padding: 0 0 0 1.2rem; max-width: var(--measure); }
.facts li { margin: .5rem 0; }

/* price: Free is plain, Family is the one to pick */
.price { display: grid; gap: 1.25rem; max-width: 60rem; align-items: stretch; }
@media (min-width: 48rem) { .price { grid-template-columns: .85fr 1.15fr; } }
.plan { border: 1px solid var(--rule); border-radius: 1.25rem; padding: 1.5rem 1.4rem; }
.plan h3 { font-size: 1.3rem; margin: 0; font-weight: 700; }
.plan .amt { font-size: 2.7rem; font-stretch: 80%; font-weight: 750; line-height: 1.1; margin: .3rem 0 .2rem; }
.plan .for { margin: 0 0 1rem; color: var(--muted); }
.plan ul { margin: 0; padding-left: 1.15rem; }
.plan li { margin: .45rem 0; }
.plan .plus { margin: 0 0 .3rem; font-weight: 600; }
.family { background: var(--field); color: #fff; border-color: var(--field); }
.family .amt { color: var(--turmeric); }
.family .for, .family li { color: #DCEEE6; }
.family li strong { color: #fff; font-weight: 650; }
.family .early { margin: 1.2rem 0 0; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.2); color: #fff; font-size: 1rem; }
.never { margin-top: 1.75rem; font-weight: 600; max-width: var(--measure); }

.test-cta { background: var(--field); color: #fff; border-radius: 1.5rem; padding: 2rem 1.5rem; }
.test-cta h2 { color: #fff; }
.test-cta p { color: #DCEEE6; max-width: var(--measure); }
@media (min-width: 40rem) { .test-cta { padding: 2.5rem 2.5rem; } }

footer { padding: 2.5rem 0 3rem; color: var(--muted); font-size: .95rem; border-top: 1px solid var(--rule); }
footer p { max-width: 44rem; margin: .4rem 0; }

/* ---- privacy policy page ---- */
.doc { max-width: 42rem; padding: 1rem 0 4rem; }
.doc h1 { font-size: clamp(2rem, 6vw, 3rem); font-stretch: 85%; line-height: 1.05; margin: 1.5rem 0 .5rem; }
.doc h2 { font-size: 1.35rem; margin: 2.4rem 0 .6rem; max-width: none; }
.doc p, .doc li { max-width: var(--measure); }
.doc li { margin: .45rem 0; }
.doc strong { font-weight: 650; }

/* FAQ (/faq/, /hi/) */
.faq { max-width: 46rem; margin: 0; }
.faq details { border-top: 1px solid var(--rule); padding: .9rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.12rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--leaf); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .6rem 0 0; color: var(--muted); max-width: var(--measure); }

/* Devanagari (/hi/ and Hindi bits elsewhere): no condensed, extra-bold display style. Squeezed heavy Devanagari
   reads like shouting, and tight line-height clips the matras above the line. */
:lang(hi) :is(h1, h2, h3, .big, .amt, .clock-sub, summary, strong, .pill-btn, .screen .who, .screen .taken) {
  font-stretch: 100%; font-weight: 600; letter-spacing: 0;
}
:lang(hi) :is(h1, h2, .big) { line-height: 1.3; }
:lang(hi) .hero h1 { font-size: clamp(1.7rem, 4.4vw, 2.5rem); max-width: 24ch; }
:lang(hi) .big { font-size: clamp(1.9rem, 5.5vw, 3.2rem); }
:lang(hi) .plan .amt { font-size: 2.3rem; }
:lang(hi) .doc h1 { line-height: 1.3; }
