/* RHS public website. No outside fonts, scripts or trackers: the Noto fonts
   below are served from this site, so Telugu shows correctly on every device. */
:root {
  --teal: #0f5f5c; --teal-dark: #0a4644; --teal-soft: #e3efee; --mint: #f2f7f6;
  --orange-soft: #fbeedd; --orange-ink: #8a4a0c; --ink: #1c2321; --body: #3a4542;
  --muted: #55605c; --line: #e2e6e4; --grey: #f2f4f3; --bad: #8e1f18; --bad-soft: #fcedea;
  --good: #1e7a43;
}
/* Fonts served from our own site (SIL Open Font Licence, fonts/OFL-LICENSE.txt). */
@font-face { font-family: "RHS Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/noto-sans-400.woff2) format("woff2"); 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: "RHS Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/noto-sans-600.woff2) format("woff2"); 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: "RHS Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/noto-sans-700.woff2) format("woff2"); 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: "RHS Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/noto-sans-800.woff2) format("woff2"); 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: "RHS Telugu"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/noto-sans-telugu-400.woff2) format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0C00-0C7F, U+1CDA, U+1CF2, U+200C-200D, U+25CC; }
@font-face { font-family: "RHS Telugu"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/noto-sans-telugu-600.woff2) format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0C00-0C7F, U+1CDA, U+1CF2, U+200C-200D, U+25CC; }
@font-face { font-family: "RHS Telugu"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/noto-sans-telugu-700.woff2) format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0C00-0C7F, U+1CDA, U+1CF2, U+200C-200D, U+25CC; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "RHS Sans", "RHS Telugu", "Noto Sans", "Noto Sans Telugu", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: #fff; line-height: 1.5; }
a { color: var(--teal); } a:hover { color: var(--teal-dark); }
img { max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.te { color: var(--teal); font-weight: 600; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px; z-index: 9; }

/* header */
.top { border-bottom: 1px solid var(--line); background: #fff; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand b { display: block; font-size: 16px; } .brand span { font-size: 13px; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; font-size: 14px; }
/* Menu items look like buttons, not text: a pill that tints on hover/focus. */
.nav a { color: var(--ink); text-decoration: none; padding: 8px 11px; border-radius: 999px; font-weight: 600; min-height: 40px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a:focus-visible { background: var(--teal-soft); color: var(--teal-dark); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none; min-height: 44px; }
.btn.primary { background: var(--teal); color: #fff; } .btn.primary:hover { background: var(--teal-dark); color: #fff; }
.btn.ghost { border: 1px solid #c9cfcb; color: var(--ink); font-weight: 600; }
.btn.big { padding: 16px 24px; font-size: 17px; border-radius: 12px; }
.btn.light { background: #fff; color: var(--teal); }
.btn[aria-disabled="true"] { background: #c9cfcb; color: var(--ink); pointer-events: none; }
.emergency { background: var(--bad-soft); color: var(--bad); text-align: center; padding: 10px 24px; font-size: 14px; font-weight: 600; }

/* hero */
.hero { background: var(--mint); }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.pill { align-self: flex-start; background: var(--orange-soft); color: var(--orange-ink); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
h1 { margin: 0; font-size: clamp(32px, 5vw, 48px); line-height: 1.1; font-weight: 800; }
.hero .tagline { margin: 0; font-size: 22px; color: var(--teal); font-weight: 600; }
.hero .lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--body); max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { font-size: 14px; color: var(--muted); line-height: 1.4; }

/* the looping phone demo */
.demo { flex: 1 1 320px; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phone { position: relative; width: 300px; height: 600px; border-radius: 40px; background: var(--ink); padding: 12px; box-shadow: 0 24px 60px rgba(15, 95, 92, .25); }
.screen { position: relative; width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: var(--grey); }
.scr { position: absolute; inset: 0; opacity: 0; animation: step 18s infinite; padding: 40px 20px; display: flex; flex-direction: column; gap: 14px; }
.scr.s3 { padding: 32px 18px; gap: 10px; }
.scr.s4 { padding-top: 48px; align-items: center; text-align: center; }
.d2, .dots span.d2 { animation-delay: 3s; } .d3, .dots span.d3 { animation-delay: 6s; } .d4, .dots span.d4 { animation-delay: 9s; }
.d5, .dots span.d5 { animation-delay: 12s; } .d6, .dots span.d6 { animation-delay: 15s; }
/* Six screens, 3 s each in an 18 s loop: each is visible for one sixth. */
@keyframes step { 0% { opacity: 0 } 1.5% { opacity: 1 } 16% { opacity: 1 } 17.5% { opacity: 0 } 100% { opacity: 0 } }
@keyframes dot { 0% { background: var(--teal) } 16% { background: var(--teal) } 17.5% { background: #c9cfcb } 100% { background: #c9cfcb } }
.dots { display: flex; gap: 8px; } .dots span { width: 10px; height: 10px; border-radius: 5px; background: #c9cfcb; animation: dot 18s infinite; }
@media (prefers-reduced-motion: reduce) { .scr, .dots span { animation: none; } .scr.d1 { opacity: 1; } .dots span.d1 { background: var(--teal); } }
.app-logo { align-self: center; width: 64px; height: 64px; border-radius: 16px; }
.scr b.t { font-size: 20px; }
.lbl { font-size: 13px; color: var(--muted); }
.field { background: #fff; border: 1px solid #c9cfcb; border-radius: 10px; padding: 14px; font-size: 17px; }
.abtn { background: var(--teal); color: #fff; border-radius: 12px; padding: 14px; text-align: center; font-weight: 700; }
.otp { display: flex; gap: 8px; } .otp span { flex: 1; background: #fff; border: 2px solid var(--teal); border-radius: 10px; padding: 12px 0; text-align: center; font-size: 20px; font-weight: 700; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 14px; }
.card.sel { background: var(--teal-soft); border: 2px solid var(--teal); font-size: 15px; }
.ok { color: var(--good); font-weight: 700; font-size: 13px; }
.total { display: flex; justify-content: space-between; font-size: 15px; font-weight: 700; }
.tick { width: 72px; height: 72px; border-radius: 36px; background: #e6f4ec; color: var(--good); display: flex; align-items: center; justify-content: center; }
.field.small { font-size: 14px; padding: 12px; }
/* The video-call screen */
.scr.call { padding: 0; background: #0b1514; color: #fff; justify-content: center; align-items: center; gap: 0; }
.call-top { position: absolute; top: 18px; left: 18px; display: flex; flex-direction: column; font-size: 13px; color: #cfe3e1; }
.call-top b { color: #fff; font-size: 16px; }
.call-doctor { width: 150px; height: 150px; border-radius: 75px; background: #1f4f4c; color: #cfe3e1; display: flex; align-items: center; justify-content: center; }
.call-self { position: absolute; top: 18px; right: 16px; width: 64px; height: 92px; border-radius: 10px; border: 2px solid #fff; background: #3a4542; }
.call-note { position: absolute; bottom: 92px; font-size: 12px; color: #cfe3e1; }
.call-bar { position: absolute; bottom: 22px; left: 0; right: 0; display: flex; justify-content: space-evenly; }
.rb { width: 58px; height: 58px; border-radius: 29px; background: rgba(255, 255, 255, .18); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.rb.end { background: #b3261e; }
.demo figcaption { font-size: 14px; color: var(--muted); }

/* sections */
section.block { padding: 72px 0; }
section.grey { background: var(--grey); }
h2 { margin: 0 0 8px; font-size: clamp(26px, 3.5vw, 34px); }
.section-head { margin-bottom: 28px; } .section-head p { margin: 0; font-size: 17px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.step { background: var(--mint); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.num { width: 40px; height: 40px; border-radius: 20px; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.step b, .service b { font-size: 18px; } .step span, .service p, .safe span { color: var(--body); }
.step .num { color: #fff; font-size: 17px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.service p { margin: 0; }
.note { margin: 24px 0 0; color: var(--muted); }
.split { display: flex; flex-wrap: wrap; gap: 40px; }
.split > .side { flex: 1 1 320px; } .split > .main { flex: 2 1 560px; }
.safe { display: flex; flex-direction: column; gap: 6px; }
.join { background: var(--teal); color: #fff; }
.join .wrap { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.join .txt { flex: 999 1 520px; } .join p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--teal-soft); }
.download .wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.download .main { flex: 999 1 520px; display: flex; flex-direction: column; gap: 16px; }
.download ol { margin: 0; padding-left: 20px; color: var(--body); }
.soon { align-self: flex-start; border: 1px dashed #8a938f; color: var(--muted); border-radius: 10px; padding: 10px 14px; font-size: 14px; font-weight: 600; }
.qr { flex: 1 1 220px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: var(--muted); font-size: 14px; }
.qr img { width: 200px; height: 200px; background: #fff; padding: 8px; border: 1px solid var(--line); border-radius: 16px; }

/* footer */
footer { background: var(--ink); color: #d7dcda; }
footer .wrap { padding-top: 48px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 28px; }
footer .cols { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
footer .cols > * { flex: 1 1 220px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
footer b { color: #fff; }
.social { display: inline-flex; align-items: center; gap: 8px; } footer a { color: #d7dcda; } footer a:hover { color: #fff; }
.legal { border-top: 1px solid var(--body); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.6; color: #b5bdba; }
.legal p { margin: 0; } .legal .copy { color: #fff; }

/* policy pages */
.policy { max-width: 820px; margin: 0 auto; padding: 48px 24px 72px; }
.policy h1 { font-size: 34px; margin-bottom: 4px; }
.policy h2 { font-size: 22px; margin: 32px 0 8px; }
.policy p, .policy li { color: var(--body); }
.policy table { border-collapse: collapse; width: 100%; margin: 8px 0; font-size: 15px; }
.policy th, .policy td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.policy th { background: var(--grey); }
.updated { color: var(--muted); margin: 0 0 24px; }
.box { background: var(--mint); border-radius: 12px; padding: 16px 20px; }

/* Laptops: keep the header on one line; Admin sign in stays in the footer. */
@media (max-width: 1240px) { .top .actions .ghost { display: none; } }
/* Tablets and phones: logo + Register on top, the menu as one row of chips below. */
@media (max-width: 1100px) {
  .actions { order: 2; margin-left: auto; }
  .nav { order: 3; width: 100%; margin: 0; padding: 4px 0 8px; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; background: var(--teal-soft); color: var(--teal-dark); border: 1px solid #c8dedc; padding: 8px 14px; min-height: 38px; }
}

/* Phones: one compact header row (logo + Register), the menu as a single
   swipeable line under it, Admin sign in only in the footer. */
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .top .wrap { gap: 8px 12px; padding-top: 10px; padding-bottom: 6px; }
  .brand img { width: 34px; height: 34px; }
  .brand b { font-size: 15px; }
  .actions { order: 2; margin-left: auto; }
  .actions .ghost { display: none; }
  .actions .btn { padding: 9px 14px; font-size: 14px; }
  .nav { order: 3; width: calc(100% + 32px); margin: 0 -16px; padding: 4px 16px 8px; flex-wrap: nowrap; gap: 8px; overflow-x: auto; font-size: 14px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  /* Phones: tinted chips in one row that can be swiped. */
  .nav a { white-space: nowrap; background: var(--teal-soft); color: var(--teal-dark); border: 1px solid #c8dedc; padding: 8px 14px; min-height: 38px; }
  .emergency { font-size: 13px; padding: 8px 16px; }
  .hero .wrap { padding-top: 28px; padding-bottom: 36px; gap: 28px; }
  .hero .tagline { font-size: 19px; }
  .hero .lead { font-size: 16px; }
  .btn.big { width: 100%; justify-content: center; }
  section.block { padding: 48px 0; }
  .join .wrap { padding-top: 44px; padding-bottom: 44px; }
  .phone { transform: scale(.9); transform-origin: top center; margin-bottom: -60px; }
}
