/* KPHM site. Light page in the app's own colours: indigo actions on white,
   with the icon's navy as a stage behind the screenshots. */
:root {
  --ink: #0c1538;
  --ink-2: #3b4567;
  --muted: #6a7392;
  --line: #e2e6f2;
  --bg: #ffffff;
  --tint: #f4f6fc;
  --primary: #4f46e5;
  --primary-ink: #3730a3;
  --primary-soft: #eceafd;
  --navy: #0a1550;
  --navy-2: #13238a;
  --lime: #b9f04a;
  --cyan: #45c8f5;
  --green: #15803d;
  --green-soft: #e3f6e9;
  --warn-bg: #fff8e8;
  --warn-line: #f1cf8a;
  --warn-ink: #4a3410;
  --radius: 20px;
  --max: 1140px;
  --display: "Anek Latin", "Anek Malayalam", "Noto Sans", system-ui, sans-serif;
  --body: "Noto Sans", "Noto Sans Malayalam", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-ink); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; }
p { text-wrap: pretty; }

/* Malayalam needs taller lines and its own faces first. */
[lang="ml"] {
  font-family: "Noto Sans Malayalam", "Noto Sans", system-ui, sans-serif;
  line-height: 1.8;
}
:lang(ml) :is(h1, h2, h3), :is(h1, h2, h3):lang(ml) {
  font-family: "Anek Malayalam", "Anek Latin", "Noto Sans Malayalam", sans-serif;
  letter-spacing: 0;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 30; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: "Anek Latin", sans-serif; font-weight: 700; font-size: 21px; letter-spacing: 0.02em; line-height: 1;
  color: var(--ink); text-decoration: none;
}
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.main-nav { margin-left: auto; display: flex; gap: 26px; }
.main-nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.main-nav a:hover { color: var(--primary-ink); }
.lang { display: flex; padding: 3px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); }
.lang a {
  padding: 5px 13px; border-radius: 999px;
  font-size: 14px; font-weight: 600; line-height: 1.5;
  color: var(--ink-2); text-decoration: none; white-space: nowrap;
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { background: var(--ink); color: #fff; }

/* Hero */
.hero { overflow: hidden; background: linear-gradient(180deg, var(--tint) 0%, var(--bg) 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero-text { min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; line-height: 1.5;
  color: var(--green); background: var(--green-soft);
  padding: 5px 13px; border-radius: 999px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22a652; flex: none; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 700; line-height: 1.06; letter-spacing: -0.015em; margin: 20px 0 18px; }
.hero h1 em { font-style: normal; color: var(--primary); }
:lang(ml) .hero h1 { font-size: clamp(31px, 4.3vw, 48px); line-height: 1.3; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 34em; margin: 0 0 28px; }
:lang(ml) .lead { font-size: 17.5px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 20px 10px 16px; border-radius: 14px; min-width: 196px;
  background: var(--ink); color: #fff;
}
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 12px; color: #b8c0e0; line-height: 1.3; }
.store strong { display: block; font-size: 17px; line-height: 1.3; font-weight: 600; }
.hero-note { font-size: 14.5px; color: var(--muted); margin: 0; }

.phone {
  padding: 7px; border-radius: 34px; background: #0b1024;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 24px 60px rgba(12, 21, 56, 0.28);
}
.phone img { border-radius: 27px; background: #fff; width: 100%; }

.hero-stage {
  position: relative; justify-self: center; width: min(100%, 470px);
  padding: 40px 0 0; border-radius: 36px;
  background:
    radial-gradient(420px 300px at 88% 4%, rgba(69, 200, 245, 0.38), transparent 62%),
    radial-gradient(380px 300px at 0% 100%, rgba(185, 240, 74, 0.26), transparent 62%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  height: 560px; overflow: hidden;
}
.hero-stage .phone { position: absolute; width: 54%; }
.hero-stage .front { left: 9%; top: 44px; z-index: 2; }
.hero-stage .back { right: 7%; top: 116px; opacity: 0.96; }

/* Facts */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.facts dl > div { padding: 30px 24px; border-left: 1px solid var(--line); }
.facts dl > div:first-child { border-left: 0; padding-left: 0; }
.facts dt { font-family: var(--display); font-size: 34px; font-weight: 700; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
:lang(ml) .facts dt { font-family: "Anek Malayalam", "Anek Latin", sans-serif; font-size: 29px; line-height: 1.3; }
.facts dd { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
:lang(ml) .facts dd { line-height: 1.6; }

/* Sections */
section { padding: 88px 0; }
.section-head { max-width: 700px; margin-bottom: 8px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 14px; }
:lang(ml) .section-head h2 { font-size: clamp(25px, 3.1vw, 35px); line-height: 1.35; }
.section-head p { margin: 0; color: var(--ink-2); font-size: 18px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
:lang(ml) .kicker { letter-spacing: 0; font-size: 15px; }

/* Feature rows */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding-top: 72px; }
.row.flip .row-text { order: 2; }
.row-text { min-width: 0; }
.chip { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.5; padding: 3px 10px; border-radius: 7px; }
:lang(ml) .chip { letter-spacing: 0; font-size: 13.5px; }
.chip.for_all { background: var(--green-soft); color: var(--green); }
.chip.for_officers { background: var(--primary-soft); color: var(--primary-ink); }
.row h3 { font-size: clamp(24px, 2.7vw, 31px); font-weight: 700; line-height: 1.18; margin: 16px 0 12px; }
:lang(ml) .row h3 { font-size: clamp(22px, 2.4vw, 27px); line-height: 1.4; }
.row-text > p { margin: 0 0 20px; color: var(--ink-2); max-width: 32em; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.points li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.points svg { flex: none; width: 22px; height: 22px; padding: 4px; margin-top: 2px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-ink); }
:lang(ml) .points svg { margin-top: 4px; }
.points a { font-weight: 600; }

.stage { display: flex; justify-content: center; align-items: flex-start; padding: 44px 28px; border-radius: 32px; background: var(--tint); border: 1px solid var(--line); }
.stage .phone { width: 52%; flex: none; }
.stage.pair .phone:first-child { z-index: 1; }
.stage.pair .phone + .phone { margin-left: -5%; margin-top: 56px; }
.stage.single .phone { width: 56%; }

/* Source */
.source-section {
  color: #fff;
  background:
    radial-gradient(700px 420px at 100% 0%, rgba(69, 200, 245, 0.18), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
}
.source-section .kicker { color: var(--lime); }
.source-section .section-head { margin-bottom: 40px; }
.source-section .section-head p { color: #d5dcfa; }
.source { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.card { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius); padding: 28px; }
.card h3 { margin: 0 0 12px; font-size: 21px; font-weight: 600; line-height: 1.3; }
.card p { margin: 0; color: #d5dcfa; }
.links { list-style: none; padding: 0; margin: 0; }
.links li { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.links li:first-child { border-top: 0; padding-top: 0; }
.links li:last-child { padding-bottom: 0; }
.links a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.4); text-underline-offset: 4px; }
.links a:hover { text-decoration-color: var(--lime); }
.links svg { width: 17px; height: 17px; color: var(--lime); }
.links span { display: block; font-size: 14px; color: #b8c2ee; margin-top: 2px; }

/* Contact */
.contact-section { padding: 72px 0; }
.contact { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding: 40px 44px; border-radius: 28px; background: var(--tint); border: 1px solid var(--line); }
.contact h2 { margin: 0 0 6px; font-size: 29px; font-weight: 700; line-height: 1.2; }
:lang(ml) .contact h2 { font-size: 25px; line-height: 1.4; }
.contact p { margin: 0; color: var(--ink-2); }
.btn { display: inline-block; padding: 13px 24px; border-radius: 14px; background: var(--primary); color: #fff; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.btn:hover { background: var(--primary-ink); }
.btn.ghost { background: transparent; color: var(--primary-ink); box-shadow: inset 0 0 0 1.5px var(--primary); }
.btn.ghost:hover { background: var(--primary-soft); }

/* Footer */
.site-footer { padding: 30px 0 44px; color: var(--muted); font-size: 14.5px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Document pages (privacy) */
.doc-hero { background: var(--tint); border-bottom: 1px solid var(--line); padding: 56px 0 44px; }
.doc-hero h1 { margin: 0 0 8px; font-size: clamp(32px, 4.4vw, 46px); font-weight: 700; line-height: 1.1; }
.doc-hero p { margin: 0; color: var(--ink-2); }
.lang-switch { display: flex; gap: 10px; margin-top: 22px; }
.lang-switch a { color: var(--ink); background: #fff; border: 1px solid var(--line); padding: 6px 16px; border-radius: 999px; text-decoration: none; font-size: 14.5px; font-weight: 600; }
.lang-switch a:hover { border-color: var(--primary); color: var(--primary-ink); }
.doc { max-width: 780px; margin: 0 auto; padding: 16px 24px 40px; }
.doc article { padding: 40px 0 24px; scroll-margin-top: 84px; }
.doc article + article { border-top: 1px solid var(--line); }
.doc h2 { font-size: 29px; font-weight: 700; margin: 0 0 16px; }
.doc h3 { font-size: 20px; font-weight: 600; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc a { word-break: break-word; }

/* 404 */
.lost { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 24px; background: var(--tint); }
.lost img { border-radius: 16px; }
.lost h1 { margin: 8px 0 0; font-size: 38px; line-height: 1.1; }
.lost p { margin: 0 0 10px; color: var(--ink-2); }
.lost-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

@media (max-width: 940px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; padding-top: 48px; padding-bottom: 56px; }
  .hero-stage { height: 520px; }
  .row, .row.flip { grid-template-columns: 1fr; gap: 32px; padding-top: 64px; }
  .row.flip .row-text { order: 0; }
  .stage { max-width: 560px; width: 100%; justify-self: center; }
  .facts dl { grid-template-columns: 1fr 1fr; }
  .facts dl > div { padding: 24px 20px; }
  .facts dl > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts dl > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .source { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .main-nav { display: none; }
  .lang { margin-left: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 20px; }
  section { padding: 60px 0; }
  .contact-section { padding: 52px 0; }
  .lead { font-size: 17.5px; }
  .store { min-width: 0; flex: 1 1 100%; }
  .hero-stage { height: auto; aspect-ratio: 1 / 1.16; }
  .hero-stage .front { top: 8%; }
  .hero-stage .back { top: 20%; }
  .phone { padding: 5px; border-radius: 26px; }
  .phone img { border-radius: 21px; }
  .stage { padding: 28px 14px; border-radius: 24px; }
  .stage.pair .phone + .phone { margin-top: 36px; }
  .facts dt { font-size: 28px; }
  :lang(ml) .facts dt { font-size: 23px; }
  .contact { padding: 28px 24px; }
  .contact .btn { width: 100%; text-align: center; }
  .site-header .wrap { height: 60px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
