/* MITRA Foundation — landing page
 *
 * The page takes its colours from the emblem: the maroon of the MITRA
 * wordmark, the saffron of the flags and the marigold of the rising sun.
 * Everything inside the phone uses the app's own tokens, so the mock screens
 * read as the real app.
 */

:root {
  /* Page */
  --maroon: #5e1414;
  --maroon-deep: #430c0c;
  --saffron: #e8570f;
  --marigold: #f2a23a;
  --ink: #2a1815;
  --ink-soft: #6b5a55;
  --paper: #ffffff;
  --rule: #ecdcd2;
  --violet: #5b2a86; /* "FOUNDATION" in the emblem; used for focus only */

  /* App (from lib/core/theme/app_colors.dart) */
  --a-brand: #e8570f;
  --a-brand-strong: #c9490c;
  --a-brand-ink: #b34206;
  --a-wash1: #ffe8d8;
  --a-wash3: #fff2e4;
  --a-paper: #fcfbfa;
  --a-soft: #efeae4;
  --a-text: #231a16;
  --a-muted: #6f625c;
  --a-approved: #1b7f3b;
  --a-approved-bg: #e7f5ec;
  --a-pending: #b26a00;
  --a-pending-bg: #fff3e0;
  --a-star: #e8a33d;
  --a-wa: #1f9d55;

  --display: "Tiro Devanagari Marathi", Georgia, serif;
  --body: "Mukta", "Noto Sans Devanagari", system-ui, sans-serif;
  --app: "Noto Sans", "Noto Sans Devanagari", "Noto Sans Kannada", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--marigold);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 8px;
}
.skip:focus { left: 8px; }

.ms {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}
.ms.fill { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }

/* ------------------------------------------------------------------ Top bar */

.topbar {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 50;
  width: min(1140px, calc(100% - 28px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 7px 7px 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(58, 10, 10, 0.42);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  color: #fff;
  box-shadow: 0 18px 50px -28px rgba(0, 0, 0, 0.6);
  transition: background-color 0.5s, color 0.5s, border-color 0.5s, box-shadow 0.5s;
}
.topbar.light {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(94, 20, 20, 0.1);
  color: var(--ink);
  box-shadow: 0 18px 50px -30px rgba(94, 20, 20, 0.45);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.25rem;
  margin-right: auto;
}

.topnav { display: flex; gap: 28px; font-size: 1rem; }
.topnav a {
  position: relative;
  text-decoration: none;
  opacity: 0.82;
  transition: opacity 0.3s;
}
.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.topnav a:hover { opacity: 1; }
.topnav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* One button, made to feel like an object: a lit top edge, a soft cast
   shadow, and a sheen that passes over it on hover. */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #8c2b1c 0%, #5e1414 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 10px 22px -10px rgba(94, 20, 20, 0.7);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.1, 1), box-shadow 0.35s;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.32) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 16px 30px -12px rgba(94, 20, 20, 0.75);
}
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(0.98); }
/* On the maroon hero the same button is saffron, or it would vanish. */
.topbar:not(.light) .btn {
  background: linear-gradient(180deg, #f3812f 0%, #d9520d 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 10px 24px -10px rgba(232, 87, 15, 0.8);
}
.btn-small { font-size: 0.95rem; }

/* --------------------------------------------------------------------- Hero */

.hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(1200px 600px at 85% 40%, #7a1c16 0%, transparent 60%),
    linear-gradient(180deg, var(--maroon) 0%, var(--maroon-deep) 100%);
  color: #fff;
  overflow: hidden;
}
/* Fine grain, so the maroon reads as a surface rather than a flat fill. */
.hero::after,
.get::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.12;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(120px, 12vw, 168px) var(--gutter) clamp(72px, 10vw, 140px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.hero-org {
  margin: 0 0 20px;
  font-size: 1rem;
  color: var(--marigold);
}

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 7.2vw, 5.75rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 28px;
  max-width: 11ch;
}

.hero-lede {
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  max-width: 34em;
  margin: 0 0 18px;
  color: #f5e6df;
}

.hero-mr {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 0 0 36px;
  color: #ffd9a8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.hero-actions.center { justify-content: center; }

.badge {
  display: inline-block;
  line-height: 0;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 14px 30px -14px rgba(0, 0, 0, 0.7);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.1, 1), box-shadow 0.35s;
}
.badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3), 0 20px 36px -14px rgba(0, 0, 0, 0.75);
}
.badge img { height: 56px; width: auto; }

.soon { font-size: 1rem; opacity: 0.8; }

/* The emblem as a seal, with the sun from the logo rising behind it. */
.seal {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 460px);
  justify-self: center;
  display: grid;
  place-items: center;
}
.rays {
  position: absolute;
  inset: -22%;
  width: 144%;
  height: 144%;
  transform-origin: 50% 50%;
  animation:
    rise 1.6s cubic-bezier(0.2, 0.7, 0.1, 1) both,
    turn 240s linear 1.6s infinite;
}
@keyframes turn { to { transform: rotate(360deg); } }
.rays path { fill: var(--marigold); }
.rays path:nth-child(odd) { fill: var(--saffron); }
@keyframes rise {
  from { opacity: 0; transform: scale(0.6) rotate(-12deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}
.seal-disc {
  position: relative;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.08),
    0 0 70px rgba(0, 0, 0, 0.4);
  animation: settle 1.2s 0.15s cubic-bezier(0.2, 0.7, 0.1, 1) both;
}
.seal-disc img { width: 68%; height: auto; }
@keyframes settle {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

/* The emblem on a white disc. The circle is drawn by a wrapper so the
   logo inside is never clipped by it. */
.disc {
  flex: none;
  display: grid;
  place-items: center;
  width: var(--d);
  height: var(--d);
  border-radius: 50%;
  background: #fff;
}
.disc img { width: auto; height: calc(var(--d) * 0.74); max-width: none; }
.disc-sm { --d: 38px; }
.disc-md { --d: 48px; }
.get-logo {
  --d: 140px;
  margin: 0 auto 28px;
  /* Centred ring and glow only: an offset drop shadow makes a circle read as an egg. */
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.08), 0 0 40px rgba(0, 0, 0, 0.35);
}

/* -------------------------------------------------------------------- About */

/* The foundation's own message: the motto set large, the letter beside it. */
.about-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 136px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  border-bottom: 1px solid var(--rule);
}
.about-kicker {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--saffron);
}
.about h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--maroon);
  max-width: 10ch;
}
.about-body p { margin: 0 0 20px; color: var(--ink-soft); max-width: 34em; }
.about-body p:first-child { font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.55; color: var(--ink); }
.about-body .about-sign {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--maroon);
}
.about-sign span {
  display: block;
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* -------------------------------------------------------------------- Story */

.story {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
}

.story-phone { grid-column: 2; grid-row: 1; }
.story-copy { grid-column: 1; grid-row: 1; padding-bottom: 20vh; }

.phone-stick {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  place-items: center;
  perspective: 1600px;
}
/* Warm light behind the phone, from the same sun as the emblem. */
.phone-stick::before {
  content: "";
  position: absolute;
  width: min(560px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(242, 162, 58, 0.34), rgba(232, 87, 15, 0.12) 55%, transparent 75%);
  filter: blur(8px);
}

/* Where you are in the story. */
.rail {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rail::before,
.rail::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--rule);
}
.rail::after {
  background: var(--saffron);
  transform-origin: top;
  transform: scaleY(var(--rail, 0));
  transition: transform 0.2s linear;
}
.rail li {
  position: relative;
  z-index: 1;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px #d9c3b6;
  transition: background-color 0.4s, box-shadow 0.4s, transform 0.4s;
}
.rail li.done { background: var(--saffron); box-shadow: none; }
.rail li.on { transform: scale(1.6); background: var(--saffron); box-shadow: 0 0 0 4px rgba(232, 87, 15, 0.15); }

.chapter {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 30rem;
}
/* The chapter in view settles into place; the others step back. */
.chapter > * {
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.1, 1),
    transform 0.9s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.chapter:not(.is-active) > * { opacity: 0.16; transform: translateY(14px); }
.chapter.is-active > :nth-child(2) { transition-delay: 0.06s; }
.chapter.is-active > :nth-child(3) { transition-delay: 0.12s; }
.chapter.is-active > :nth-child(4) { transition-delay: 0.18s; }

/* Steps are numbered the way the app's own Marathi screens number them. */
.step {
  margin: 0 0 6px;
  font-family: "Tiro Devanagari Marathi", serif;
  font-size: clamp(3.4rem, 5vw, 4.4rem);
  line-height: 1;
  color: var(--saffron);
}

.chapter h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--maroon);
}
.chapter p:not(.step) { margin: 0; color: var(--ink-soft); max-width: 30em; }

.lang-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 4px;
}
.lang-list li {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1.25;
  color: #d9c9c2;
  transition: color 0.35s;
}
.lang-list li[lang="mr"],
.lang-list li[lang="hi"] { font-family: "Tiro Devanagari Marathi", "Noto Sans Devanagari", serif; }
.lang-list li[lang="kn"] { font-family: "Noto Sans Kannada", sans-serif; font-weight: 600; }
.lang-list li[lang="en"] { font-family: var(--display); }
.lang-list li.on { color: var(--saffron); }

/* -------------------------------------------------------------------- Phone */

.phone {
  --pw: clamp(260px, 26vw, 336px);
  position: relative;
  transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.1, 1);
  width: var(--pw);
  aspect-ratio: 390 / 844;
  border-radius: calc(var(--pw) * 0.15);
  padding: calc(var(--pw) * 0.032);
  background: linear-gradient(145deg, #3a2a26, #120c0a 60%, #2b201d);
  box-shadow:
    inset 0 0 0 1.5px #5b4a45,
    0 50px 90px -40px rgba(94, 20, 20, 0.55),
    0 30px 60px -30px rgba(0, 0, 0, 0.45);
}
.phone-island {
  position: absolute;
  z-index: 5;
  top: calc(var(--pw) * 0.055);
  left: 50%;
  width: 30%;
  height: calc(var(--pw) * 0.075);
  transform: translateX(-50%);
  background: #000;
  border-radius: 999px;
}
.screen-fit {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--pw) * 0.12);
  overflow: hidden;
  background: var(--a-paper);
}

/* The app is laid out at a real phone's 390 × 844 and scaled to fit. */
.app {
  position: absolute;
  top: 0;
  left: 0;
  width: 390px;
  height: 844px;
  transform-origin: 0 0;
  transform: scale(var(--s, 0.8));
  font-family: var(--app);
  color: var(--a-text);
  font-size: 15px;
  line-height: 1.4;
  background:
    radial-gradient(500px 360px at 0% 0%, var(--a-wash1), transparent 70%),
    linear-gradient(180deg, var(--a-wash3) 0%, var(--a-paper) 45%);
  overflow: hidden;
}

.statusbar {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  padding: 18px 34px 0 46px;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 16px;
}
.sb-icons { display: flex; gap: 4px; }
.sb-icons .ms { font-size: 18px; }

.app-watermark {
  position: absolute;
  z-index: 3;
  width: 62%;
  left: 19%;
  top: 34%;
  opacity: 0.07;
  pointer-events: none;
}

.scr {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(42px);
  transition:
    opacity 0.5s cubic-bezier(0.2, 0.7, 0.1, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.1, 1),
    visibility 0s 0.5s;
}
.scr.is-before { transform: translateX(-42px); }
.phone[data-screen="signin"] [data-for="signin"],
.phone[data-screen="home"] [data-for="home"],
.phone[data-screen="search"] [data-for="search"],
.phone[data-screen="business"] [data-for="business"],
.phone[data-screen="raise"] [data-for="raise"],
.phone[data-screen="responses"] [data-for="responses"],
.phone[data-screen="leads"] [data-for="leads"] {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.5s cubic-bezier(0.2, 0.7, 0.1, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.1, 1),
    visibility 0s;
}

.scroller {
  position: absolute;
  inset: 54px 0 0 0;
  overflow: hidden;
  /* Content fades out under the status bar and behind the tab bar, as it
     does on the phone. */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22px, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(180deg, transparent 0, #000 22px, #000 calc(100% - 40px), transparent);
}
.phone[data-screen="home"] [data-for="home"] .scroller,
.phone[data-screen="search"] [data-for="search"] .scroller {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22px, #000 calc(100% - 150px), transparent calc(100% - 96px));
  mask-image: linear-gradient(180deg, transparent 0, #000 22px, #000 calc(100% - 150px), transparent calc(100% - 96px));
}
.scroller > * { will-change: transform; }
.pad { padding: 8px 20px 120px; }
.scr > .pad { padding-top: 62px; }

/* Shared app pieces */
.app-kicker { margin: 0 0 18px; color: var(--a-brand-ink); letter-spacing: 0.14em; font-size: 13px; font-weight: 500; }
.app-h1 { font-size: 30px; line-height: 1.15; margin: 0 0 6px; font-weight: 700; letter-spacing: -0.01em; }
.app-h1.tight { margin: 0; }
.app-h2 { font-size: 22px; line-height: 1.2; margin: 0; font-weight: 700; }
.app-h3 { font-size: 16px; margin: 22px 0 8px; font-weight: 600; }
.app-sub { margin: 0 0 22px; color: var(--a-muted); font-size: 16px; }
.app-label { margin: 0 0 8px; font-weight: 500; }
.app-hint { margin: 10px 4px 0; color: var(--a-muted); font-size: 13px; }
.app-hint.info { display: flex; gap: 8px; margin-top: 18px; }
.app-hint.info .ms { font-size: 18px; }
.body { margin: 0 0 6px; font-size: 15px; }
.body.strong { font-weight: 600; }
.body.muted { color: var(--a-muted); }

.chips { display: flex; gap: 8px; margin-bottom: 26px; }
.chips.tight { margin: 14px 0 6px; }
.chips.wrap { flex-wrap: wrap; margin-bottom: 0; }
.chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--a-soft);
  font-size: 14px;
  white-space: nowrap;
}
.chip.on { background: #fde0cc; color: var(--a-brand-ink); }
.chips.tight .chip { background: #fff; box-shadow: inset 0 0 0 1px #e7ddd5; }
.chips.tight .chip.on { background: #fde0cc; box-shadow: none; }

.field {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px #e3d8cf;
  font-size: 18px;
}
.field.focus { box-shadow: inset 0 0 0 2px var(--a-brand-ink); }
.field .divider { width: 1px; height: 26px; background: #ddd2c9; }
.typed { letter-spacing: 0.03em; }
.caret { width: 2px; height: 24px; background: var(--a-brand); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.signin-b { display: none; }
.phone.is-otp .signin-a { display: none; }
.phone.is-otp .signin-b { display: block; }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp span {
  height: 62px;
  border-radius: 16px;
  background: var(--a-soft);
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 600;
}
.otp span.on { background: #fff; box-shadow: inset 0 0 0 2px var(--a-brand-ink); }

.app-bottom { position: absolute; left: 20px; right: 20px; bottom: 44px; }
.app-btn {
  display: block;
  text-align: center;
  height: 56px;
  line-height: 56px;
  border-radius: 999px;
  background: var(--a-soft);
  color: var(--a-muted);
  font-weight: 500;
  font-size: 17px;
}
.app-btn.on { background: var(--a-brand-strong); color: #fff; }
.app-btn.mini { display: inline-block; height: 38px; line-height: 38px; padding: 0 18px; font-size: 14px; margin-top: 10px; }

/* Home */
.greet-row { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 6px; }
.greet { margin: 0; color: var(--a-muted); font-size: 18px; }
.greet-name { margin: 0; font-size: 40px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.greet-logo { width: 54px; height: auto; }

.city-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 18px 0 16px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--a-soft);
  font-size: 16px;
}
.city-pill b { color: #7a2a05; font-weight: 500; font-size: 18px; }
.city-pill .ms { color: #7a2a05; font-size: 20px; }

.searchbar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px #eadfd7, 0 8px 20px -14px rgba(120, 50, 10, 0.4);
  color: var(--a-muted);
  font-size: 16px;
}
.searchbar .ms { color: var(--a-brand-ink); font-size: 26px; }
.searchbar.small { flex: 1; height: 50px; color: var(--a-text); font-weight: 500; }

.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.quick div {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  height: 104px;
  border-radius: 20px;
  background: #fff;
  text-align: center;
  font-size: 14px;
  line-height: 1.25;
  padding: 0 6px;
}
.quick .ms { color: var(--a-brand-ink); font-size: 26px; }

.notice {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 24px -18px rgba(90, 40, 10, 0.5);
}
.notice b { display: block; font-weight: 500; font-size: 15px; }
.notice small { color: var(--a-muted); font-size: 13px; }
.notice-ic {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fde7d8;
  color: var(--a-brand-ink);
  display: grid;
  place-items: center;
  font-size: 22px;
}

.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin: 26px 0 12px; }
.sec-head h3 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.sec-head span { color: var(--a-brand-ink); font-size: 15px; }

.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cats div {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  padding: 14px 6px;
  height: 118px;
  border-radius: 22px;
  background: #fff;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.25;
  box-shadow: 0 10px 24px -20px rgba(90, 40, 10, 0.5);
}
.cats .ms {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #fde3d2;
  color: var(--a-brand-ink);
  display: grid;
  place-items: center;
  font-size: 26px;
}

.ad { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; padding: 12px; border-radius: 22px; background: #fff; }
.ad b { display: block; font-size: 15px; }
.ad small { color: var(--a-muted); font-size: 13px; }
.ad-art { flex: none; width: 86px; height: 86px; border-radius: 16px; display: grid; place-items: center; color: #fff; }
.ad-art .ms { font-size: 38px; }
.ad-a .ad-art { background: linear-gradient(135deg, #f2a23a, #e8570f); }
.ad-b .ad-art { background: linear-gradient(135deg, #5aa7c7, #2f6d8c); }
.ad-c .ad-art { background: linear-gradient(135deg, #7b3fa0, #4d2470); }

/* Bottom tabs */
.tabs {
  position: absolute;
  z-index: 4;
  left: 16px;
  right: 16px;
  bottom: 26px;
  height: 76px;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 16px 40px -20px rgba(60, 25, 10, 0.5), 0 0 0 1px #f0e7e0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.35s, transform 0.4s;
}
.phone[data-screen="home"] .tabs,
.phone[data-screen="search"] .tabs { opacity: 1; transform: none; }
.tabs > span { display: grid; justify-items: center; gap: 2px; font-size: 12.5px; color: var(--a-muted); }
.tabs i { font-style: normal; }
.tabs .ms {
  font-size: 24px;
  width: 64px;
  height: 32px;
  border-radius: 16px;
  display: grid;
  place-items: center;
}
.tabs > span.on { color: var(--a-text); font-weight: 500; }
.tabs > span.on .ms { background: #fde6d8; font-variation-settings: "FILL" 1; }
.avatar {
  width: 30px;
  height: 30px;
  margin: 1px 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #f6b98b, #e8570f);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}

/* Search results */
.search-top { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.filter { width: 50px; height: 50px; border-radius: 50%; background: #fde3d2; color: var(--a-brand-ink); display: grid; place-items: center; }
.results-n { margin: 8px 4px 10px; color: var(--a-muted); font-size: 14px; }
.biz {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 24px -20px rgba(90, 40, 10, 0.5);
}
.biz > div { flex: 1; min-width: 0; }
.biz b { display: block; font-size: 16px; }
.biz small { display: block; color: var(--a-muted); font-size: 13.5px; }
.biz em { font-style: normal; font-size: 13.5px; display: inline-flex; align-items: center; gap: 3px; margin-top: 2px; }
.biz em .ms { color: var(--a-star); font-size: 16px; }
.biz em i { font-style: normal; color: var(--a-muted); }
.call { width: 44px; height: 44px; border-radius: 50%; background: var(--a-brand-strong); color: #fff; display: grid; place-items: center; font-size: 22px; }

.tile {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 22px;
  color: #fff;
}
.tile.big { width: 66px; height: 66px; border-radius: 20px; font-size: 28px; }
.t1 { background: linear-gradient(135deg, #f2a23a, #e8570f); }
.t2 { background: linear-gradient(135deg, #3b8fb3, #23607d); }
.t3 { background: linear-gradient(135deg, #3f9d6a, #1f6b44); }
.t4 { background: linear-gradient(135deg, #b0483a, #7a2a20); }
.t5 { background: linear-gradient(135deg, #8a63b5, #5b2a86); }
.t6 { background: linear-gradient(135deg, #d29a2e, #9b6a12); }

/* Business detail */
.cover {
  height: 190px;
  margin-top: -54px;
  padding: 64px 20px 0;
  background:
    radial-gradient(240px 160px at 80% 30%, rgba(255, 255, 255, 0.25), transparent 70%),
    linear-gradient(135deg, #f2a23a, #c9490c);
  color: #fff;
  position: relative;
}
.cover > .ms:first-child { width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 0, 0, 0.18); display: grid; place-items: center; }
.cover-mark { position: absolute; right: 26px; bottom: 18px; font-size: 92px; opacity: 0.35; }
.biz-head { display: flex; gap: 14px; align-items: center; margin-top: -30px; }
.biz-head .tile { box-shadow: 0 0 0 4px var(--a-paper); }
.biz-head small { color: var(--a-muted); font-size: 14px; }
.biz-head > div { padding-top: 30px; }
.rating { display: flex; align-items: center; gap: 2px; margin: 14px 0 4px; font-weight: 600; }
.rating .ms { color: var(--a-star); font-size: 20px; }
.rating i { font-style: normal; font-weight: 400; color: var(--a-muted); margin-left: 6px; }
.where { display: flex; align-items: center; gap: 4px; margin: 0 0 16px; color: var(--a-muted); }
.where .ms { font-size: 18px; }
.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e6dbd2;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--a-brand-ink);
}
.act .ms { font-size: 20px; }
.act.primary { background: var(--a-brand-strong); color: #fff; box-shadow: none; }
.act.wa { background: var(--a-wa); color: #fff; box-shadow: none; }
.review { padding: 12px 14px; border-radius: 18px; background: #fff; margin-bottom: 8px; }
.review b { font-size: 14.5px; }
.review .stars { float: right; }
.review .stars .ms { font-size: 15px; color: var(--a-star); }
.review p { margin: 4px 0 0; font-size: 14px; color: var(--a-muted); }

/* Raise requirement */
.title-row { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.ffield {
  position: relative;
  min-height: 62px;
  margin-bottom: 14px;
  padding: 10px 52px 10px 22px;
  border-radius: 28px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px #e3d8cf;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: box-shadow 0.3s;
}
.ffield small { color: var(--a-muted); font-size: 12.5px; }
.ffield b { font-size: 17px; font-weight: 600; }
.ffield > .ms { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--a-muted); }
.ffield.area { min-height: 112px; justify-content: flex-start; padding-top: 18px; font-size: 16px; }
.ffield:not(.shown) b,
.ffield:not(.shown) small { opacity: 0; }
.ffield.shown { box-shadow: inset 0 0 0 1.5px #d7c6b9; }
.photo-row { display: flex; align-items: center; gap: 14px; opacity: 0; transition: opacity 0.3s; }
.photo-row.shown { opacity: 1; }
.photo-thumb { width: 74px; height: 74px; border-radius: 16px; background: linear-gradient(135deg, #b9d6e3, #6c9fb6); display: grid; place-items: center; color: #fff; }
.photo-thumb .ms { font-size: 32px; }
.link { color: var(--a-brand-ink); font-weight: 500; }

.sheet {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 24px 44px;
  border-radius: 30px 30px 0 0;
  background: #fff;
  text-align: center;
  box-shadow: 0 -30px 60px rgba(30, 15, 10, 0.25);
  transform: translateY(105%);
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.sheet.shown { transform: none; }
.scr[data-for="raise"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(30, 15, 10, 0.4);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 4;
}
.scr[data-for="raise"].sent::after { opacity: 1; }
.sheet-ok { font-size: 58px; color: var(--a-approved); }
.sheet-title { display: block; margin: 8px 0 16px; font-size: 22px; }
.ref { padding: 16px; border-radius: 20px; background: #fde6d8; color: #7a2a05; margin-bottom: 16px; }
.ref small { display: block; font-size: 15px; }
.ref b { font-size: 34px; }
.sheet p { margin: 0 0 22px; font-size: 15px; }

/* Requirement detail */
.back { display: block; margin: 4px 0 18px; font-size: 26px; }
.req-head { display: flex; justify-content: space-between; align-items: center; }
.status { padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.status.open { background: var(--a-pending-bg); color: var(--a-pending); }
.status.open::before { content: "● "; }
.resp { padding: 16px; border-radius: 22px; background: #fff; margin-bottom: 12px; box-shadow: 0 10px 24px -20px rgba(90, 40, 10, 0.5); }
.resp-top { display: flex; gap: 12px; align-items: center; }
.resp-top .tile { width: 44px; height: 44px; font-size: 18px; border-radius: 14px; }
.resp-top b { display: block; font-size: 15.5px; }
.resp-top small { color: var(--a-muted); font-size: 13px; }
.resp p { margin: 10px 0 12px; font-size: 14.5px; }
.resp-act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.timeline { display: flex; gap: 14px; align-items: flex-start; }
.timeline .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--a-brand-ink); margin-top: 4px; }
.timeline b { display: block; font-weight: 500; }
.timeline small { color: var(--a-muted); }

/* Leads */
.member-badge { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 16px; background: var(--a-approved-bg); color: var(--a-approved); font-size: 14px; font-weight: 500; margin-bottom: 14px; }
.lead { padding: 16px; border-radius: 22px; background: #fff; margin-bottom: 12px; box-shadow: 0 10px 24px -20px rgba(90, 40, 10, 0.5); }
.lead-top { display: flex; justify-content: space-between; align-items: center; }
.lead p { margin: 8px 0 4px; font-size: 15px; }
.lead small { color: var(--a-muted); font-size: 13px; display: block; }

/* Languages: the home screen in the script being shown */
.phone[data-lang="mr"] .app,
.phone[data-lang="hi"] .app { font-family: "Noto Sans Devanagari", var(--app); }
.phone[data-lang="kn"] .app { font-family: "Noto Sans Kannada", var(--app); }

/* ---------------------------------------------------------------- Get / foot */

.get {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(900px 500px at 50% 0%, #7a1c16 0%, transparent 70%),
    var(--maroon-deep);
  color: #fff;
  text-align: center;
}
.get-inner { max-width: 760px; margin: 0 auto; padding: clamp(72px, 10vw, 128px) var(--gutter) clamp(56px, 8vw, 96px); }
.get h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; margin: 0 0 16px; }
.get p { margin: 0 auto 34px; max-width: 32em; color: #f5e6df; }

/* The footer continues the closing section: same maroon, divided by a
   hairline, so the page ends on one surface instead of a white strip. */
.foot {
  position: relative;
  background: var(--maroon-deep);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}
.foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16) 20%, rgba(255, 255, 255, 0.16) 80%, transparent);
}
.foot-inner,
.foot-base {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 32px;
}
.foot-inner { padding-top: 44px; padding-bottom: 36px; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand p { margin: 0; }
.foot-name { font-family: var(--display); font-size: 1.25rem; color: #fff; line-height: 1.2; }
.foot-sub { font-size: 0.875rem; color: rgba(255, 255, 255, 0.55); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.foot-nav a {
  position: relative;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.3s;
}
.foot-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.foot-nav a:hover { color: #fff; }
.foot-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.foot-base {
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}
.foot-base p { margin: 0; }
.powered {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s;
}
.powered img { width: 96px; height: auto; opacity: 0.85; transition: opacity 0.3s; }
.powered:hover { color: rgba(255, 255, 255, 0.8); }
.powered:hover img { opacity: 1; }

/* ------------------------------------------------------------------- Narrow */

@media (max-width: 900px) {
  body { font-size: 1.0625rem; }
  .topnav { display: none; }
  .topbar { gap: 12px; top: 10px; width: calc(100% - 20px); }
  .rail { display: none; }
  .phone { transform: none; }
  .brand { font-size: 1.1rem; white-space: nowrap; }
  .btn-small { white-space: nowrap; }

  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .about-inner { grid-template-columns: 1fr; gap: 24px; }
  .seal { width: min(78%, 360px); order: -1; }

  /* The phone pins under the top bar; each chapter's text scrolls up into
     the space below it, and slides out of sight behind it. */
  .story { display: block; --pw-m: min(46vw, 214px); --ph-m: calc(var(--pw-m) * 844 / 390); }
  .story-phone {
    position: sticky;
    top: 70px;
    z-index: 2;
    padding: 14px 0 10px;
    background: var(--paper);
  }
  .story-phone::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 28px;
    background: linear-gradient(180deg, var(--paper), rgba(255, 255, 255, 0));
    pointer-events: none;
  }
  .phone-stick { position: static; height: auto; }
  .phone { --pw: var(--pw-m); }
  .story-copy { padding: 0 0 8vh; }
  .chapter {
    min-height: calc(100svh - 70px - var(--ph-m) - 24px);
    justify-content: flex-start;
    padding: 28px 0 24px;
    max-width: none;
  }
  .chapter h2 { font-size: 1.9rem; margin-bottom: 10px; }

  .lang-list { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .rays, .seal-disc { animation: none; }
  .scr, .tabs, .sheet, .chapter > *, .lang-list li, .phone, .rail li { transition: none; }
  .phone { transform: none; }
  .caret { animation: none; }
}
