/* SangSaathi website
   The page moves from night to morning as you scroll: the hero is the late
   walk home, the download panel is the next day. Colors come from the app. */

:root {
  --night: #0b140f;
  --night-2: #112019;
  --leaf: #a3cc9a;
  --leaf-hover: #b8dcb0;
  --moss: #4f7053;
  --moss-deep: #3f5f44;
  --pista: #eaf5e7;
  --mist: #f8fbf6;
  --ink: #16241b;
  --ink-soft: #4a5c50;
  --on-night: #e8f1e5;
  --on-night-soft: #a8baad;
  --line-light: rgba(22, 36, 27, 0.12);
  --line-night: rgba(232, 241, 229, 0.14);

  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Mukta", "Noto Sans Devanagari", "Segoe UI", system-ui, sans-serif;
  --voice: "Tiro Devanagari Hindi", "Noto Serif Devanagari", Georgia, serif;

  --gutter: clamp(18px, 5vw, 56px);
  --max: 1200px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--on-night);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a {
  color: inherit;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

.help :focus-visible,
.truth :focus-visible,
.faq :focus-visible,
.download :focus-visible {
  outline-color: var(--moss);
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 650;
  font-stretch: 86%;
  font-optical-sizing: auto;
  letter-spacing: -0.032em;
  line-height: 0.98;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.9rem, 1.7rem + 4.6vw, 5rem);
}

h2 {
  font-size: clamp(2.15rem, 1.45rem + 3vw, 3.7rem);
}

h3 {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.4rem);
  letter-spacing: -0.024em;
  line-height: 1.04;
}

.eyebrow {
  font: 600 0.78rem/1 var(--body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--leaf);
  color: var(--night);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  font: 600 1.02rem/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.3s var(--ease), background-color 0.3s, box-shadow 0.3s;
}

.btn:active {
  transform: scale(0.97);
}

.btn .icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn .soon {
  padding: 5px 9px 4px;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--leaf);
  color: var(--night);
  box-shadow: 0 14px 34px -14px rgba(163, 204, 154, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-primary .soon {
  background: rgba(11, 20, 15, 0.12);
}

.btn-ghost {
  color: var(--on-night);
  box-shadow: inset 0 0 0 1.5px var(--line-night);
}

.btn-dark {
  background: var(--ink);
  color: var(--mist);
  box-shadow: 0 16px 34px -18px rgba(22, 36, 27, 0.8);
}

.btn-dark .soon {
  background: rgba(248, 251, 246, 0.14);
}

@media (hover: hover) {
  .btn-primary:hover {
    background: var(--leaf-hover);
    transform: translateY(-2px);
  }

  .btn-ghost:hover {
    box-shadow: inset 0 0 0 1.5px rgba(232, 241, 229, 0.4);
    transform: translateY(-2px);
  }

  .btn-dark:hover {
    background: #22362a;
    transform: translateY(-2px);
  }
}

/* Navigation */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  padding-top: env(safe-area-inset-top);
  padding-inline: 12px;
  pointer-events: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: calc(var(--max) - 24px);
  height: 60px;
  margin: 10px auto 0;
  padding-inline: 10px 8px;
  border-radius: 999px;
  pointer-events: auto;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s;
}

.nav.is-scrolled .nav-inner {
  background: rgba(11, 20, 15, 0.72);
  box-shadow: inset 0 0 0 1px var(--line-night), 0 18px 40px -24px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.22rem;
  font-weight: 650;
  font-stretch: 90%;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--on-night-soft);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.nav-links a:hover {
  color: var(--on-night);
  background: rgba(232, 241, 229, 0.07);
}

.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--leaf);
  color: var(--night);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s;
}

.nav-cta:hover {
  background: var(--leaf-hover);
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
}

/* Phone mockup, shared by every screenshot */

.device {
  --p: 0;
  --hx: 0;
  --hy: 0;
  --lean: 1;
  position: relative;
  width: clamp(220px, 25vw, 310px);
  margin: 0;
  perspective: 1500px;
}

.device::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: -7%;
  height: 8%;
  border-radius: 50%;
  background: var(--device-shadow, rgba(0, 0, 0, 0.55));
  filter: blur(18px);
  transform: translateX(calc(var(--lean) * -16px));
  z-index: -1;
}

.device-body {
  position: relative;
  padding: 3.4%;
  border-radius: 15% / 6.8%;
  background: linear-gradient(150deg, #475b4d 0%, #1b261f 40%, #0c120e 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), inset 0 0 0 4px #0a0f0c;
  transform-style: preserve-3d;
  transform:
    rotateX(calc(5deg - var(--p) * 9deg - var(--hy) * 10deg))
    rotateY(calc(var(--lean) * (16deg + var(--p) * 12deg) + var(--hx) * 14deg));
  transition: transform 0.8s var(--ease);
}

.device-edge {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #121a15;
  transform: translateZ(calc(var(--layer) * -1.7px));
}

.device-screen {
  position: relative;
  overflow: hidden;
  border-radius: 12.2% / 5.45%;
  background: #1b261f;
  transform: translateZ(1px);
}

.device-screen img {
  width: 100%;
  height: auto;
}

.device-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(calc(112deg + var(--hx) * 40deg), rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 36%);
  pointer-events: none;
}

.device-cam {
  position: absolute;
  top: 1.55%;
  left: 50%;
  width: 3.3%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #050806;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.06);
  transform: translateX(-50%);
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(96px, 12vw, 132px) clamp(56px, 7vw, 96px);
  background:
    radial-gradient(900px 620px at 76% 40%, rgba(79, 112, 83, 0.34), transparent 62%),
    radial-gradient(700px 500px at 0% 100%, rgba(79, 112, 83, 0.14), transparent 70%),
    var(--night);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-rows: 1fr auto auto auto auto auto 1fr;
  grid-template-areas:
    ".       stage"
    "hindi   stage"
    "title   stage"
    "lede    stage"
    "actions stage"
    "note    stage"
    ".       stage";
  column-gap: clamp(24px, 4vw, 56px);
}

.hero-hindi {
  grid-area: hindi;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-bottom: 22px;
}

.hero-hindi span {
  font-family: var(--voice);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--leaf);
}

.hero-hindi small {
  font-size: 0.95rem;
  color: var(--on-night-soft);
}

.hero h1 {
  grid-area: title;
}

.hero h1 span {
  color: var(--leaf);
}

.lede {
  grid-area: lede;
  max-width: 33rem;
  margin-top: 26px;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.28rem);
  line-height: 1.55;
  color: var(--on-night-soft);
}

.hero-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  grid-area: note;
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--on-night-soft);
}

.hero-note span {
  font-family: var(--voice);
  color: var(--on-night);
}

.hero-stage {
  grid-area: stage;
  position: relative;
  height: clamp(560px, 58vw, 740px);
}

.hero-glow {
  position: absolute;
  inset: 6% 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(163, 204, 154, 0.3), rgba(163, 204, 154, 0.08) 55%, transparent);
  filter: blur(8px);
}

.hero-canvas {
  position: absolute;
  top: -8%;
  left: -30%;
  width: 160%;
  height: 116%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}

.hero-flat {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity 0.8s var(--ease), visibility 0s linear 0s;
}

.hero-stage.is-3d .hero-canvas {
  opacity: 1;
}

.hero-stage.is-3d .hero-flat {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s var(--ease), visibility 0s linear 0.8s;
}

.hero-flat .device {
  position: absolute;
  width: clamp(168px, 20vw, 270px);
}

.hero-flat .device-body {
  transition: none;
}

.hero-flat .device--center {
  z-index: 2;
  --lean: -0.55;
}

.hero-flat .device--left {
  transform: translateX(-58%) scale(0.86);
  opacity: 0.9;
  --lean: 1.5;
}

.hero-flat .device--right {
  transform: translateX(58%) scale(0.86);
  opacity: 0.9;
  --lean: -1.7;
}

/* Voice */

.voice {
  padding-block: clamp(72px, 10vw, 136px);
  background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
}

.voice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
}

.voice .eyebrow {
  color: var(--leaf);
}

.voice h2 {
  margin-top: 16px;
}

.voice-intro {
  max-width: 36rem;
  margin-top: 20px;
  font-size: 1.12rem;
  color: var(--on-night-soft);
}

.voice-panel {
  display: grid;
  gap: 14px;
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid var(--line-night);
}

.control-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.control-label {
  width: 5.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-night-soft);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line-night);
  border-radius: 999px;
  background: transparent;
  color: var(--on-night-soft);
  font: 500 0.98rem/1 var(--body);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.3s var(--ease), color 0.3s, border-color 0.3s, transform 0.2s var(--ease);
}

.chip[lang="hi"] {
  font-family: var(--voice);
}

.chip:hover {
  color: var(--on-night);
  border-color: rgba(232, 241, 229, 0.34);
}

.chip:active {
  transform: scale(0.96);
}

.chip[aria-pressed="true"] {
  background: var(--leaf);
  border-color: var(--leaf);
  color: var(--night);
}

.voice-label {
  margin-top: 18px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leaf);
}

.voice-line {
  min-height: 2.6em;
  margin: 0;
  font-family: var(--voice);
  font-style: italic;
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.85rem);
  line-height: 1.28;
  color: var(--on-night);
  text-wrap: balance;
}

.voice-line[lang="hi"] {
  font-style: normal;
}

.voice-line.is-swapping {
  animation: line-in 0.55s var(--ease);
}

@keyframes line-in {
  from {
    opacity: 0.15;
    transform: translateY(10px);
    filter: blur(3px);
  }
}

.voice-note {
  color: var(--on-night-soft);
}

.voice-truth {
  max-width: 34rem;
  margin-top: 30px;
  font-size: 0.95rem;
  color: var(--on-night-soft);
}

.voice-phone {
  display: grid;
  place-items: center;
}

/* Night to morning */

.dawn {
  height: clamp(150px, 20vw, 250px);
  background:
    radial-gradient(ellipse 46% 72% at 50% 100%, rgba(252, 250, 234, 0.92), rgba(252, 250, 234, 0) 100%),
    linear-gradient(180deg, var(--night-2) 0%, #1a3023 30%, #5b7f5a 62%, #c9e0c1 86%, var(--mist) 100%);
}

/* Light sections */

.help,
.faq {
  background: var(--mist);
  color: var(--ink);
}

.help .device,
.download .device {
  --device-shadow: rgba(22, 36, 27, 0.32);
}

.section-head {
  max-width: 44rem;
}

.section-head h2 {
  margin-top: 16px;
}

.section-head p:not(.eyebrow) {
  margin-top: 18px;
  font-size: 1.14rem;
  color: var(--ink-soft);
}

.help .eyebrow,
.truth .eyebrow,
.faq .eyebrow,
.download .eyebrow {
  color: var(--moss);
}

.help {
  padding-block: clamp(32px, 5vw, 60px) clamp(56px, 8vw, 110px);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 7vw, 110px);
  padding-block: clamp(56px, 8vw, 104px);
}

.feature + .feature {
  border-top: 1px solid var(--line-light);
}

.feature:nth-of-type(even) .feature-phone {
  order: 2;
}

.feature-phone {
  display: grid;
  place-items: center;
}

.feature-copy {
  max-width: 31rem;
}

.feature-copy h3 {
  margin-top: 14px;
}

.feature-copy > p:not(.eyebrow) {
  margin-top: 18px;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.feature-copy .feature-small {
  font-size: 0.98rem;
  color: var(--moss-deep);
}

.ticks {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  font-weight: 500;
}

.ticks li::before {
  content: "";
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--pista) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F7053' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
  box-shadow: inset 0 0 0 1px rgba(79, 112, 83, 0.22);
}

.pull {
  margin: 28px 0 0;
  padding: 22px 24px;
  border-radius: 22px;
  background: var(--pista);
}

.pull blockquote {
  margin: 0;
  font-family: var(--voice);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
  line-height: 1.3;
  color: var(--ink);
}

.pull figcaption {
  margin-top: 8px;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.pull figcaption span {
  font-weight: 600;
  color: var(--ink);
}

/* Honesty */

.truth {
  padding-block: clamp(72px, 10vw, 130px);
  background: var(--pista);
  color: var(--ink);
}

.truth-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 6vw, 96px);
}

.truth-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 40px;
  margin: 0;
}

.truth-list div {
  padding-top: 20px;
  border-top: 1px solid rgba(22, 36, 27, 0.18);
}

.truth-list dt {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 650;
  font-stretch: 90%;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.truth-list dd {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.disclaimer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px 18px 18px;
  border-radius: 20px;
  background: var(--mist);
  box-shadow: inset 0 0 0 1px rgba(22, 36, 27, 0.08);
}

.disclaimer-number {
  flex: none;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--mist);
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* Questions */

.faq {
  padding-block: clamp(72px, 10vw, 130px);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 6vw, 96px);
}

.faq .section-head a {
  color: var(--moss-deep);
  font-weight: 600;
}

.faq-list {
  border-top: 1px solid var(--line-light);
}

.faq-list details {
  border-bottom: 1px solid var(--line-light);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 2px;
  font: 600 1.14rem/1.35 var(--body);
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    linear-gradient(var(--moss), var(--moss)) center / 12px 2px no-repeat,
    linear-gradient(var(--moss), var(--moss)) center / 2px 12px no-repeat,
    var(--pista);
  transition: transform 0.4s var(--ease);
}

.faq-list details[open] summary::after {
  transform: rotate(135deg);
}

.faq-list details p {
  max-width: 40rem;
  padding: 0 44px 24px 2px;
  color: var(--ink-soft);
}

.faq-list details a {
  color: var(--moss-deep);
  font-weight: 600;
}

@supports (interpolate-size: allow-keywords) {
  .faq-list {
    interpolate-size: allow-keywords;
  }

  .faq-list details::details-content {
    height: 0;
    overflow: clip;
    transition: height 0.45s var(--ease), content-visibility 0.45s allow-discrete;
  }

  .faq-list details[open]::details-content {
    height: auto;
  }
}

/* Download */

.download {
  padding-block: 0 clamp(72px, 9vw, 120px);
  background: var(--mist);
  color: var(--ink);
}

.download-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(36px, 6vw, 80px);
  padding: clamp(28px, 5vw, 68px);
  border-radius: clamp(28px, 4vw, 44px);
  background:
    radial-gradient(700px 360px at 0% 0%, rgba(255, 255, 255, 0.7), transparent 70%),
    linear-gradient(135deg, #dcefd5 0%, #c3dfba 100%);
}

.download-panel::before {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -40%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(79, 112, 83, 0.22), transparent);
  pointer-events: none;
}

.download-copy {
  position: relative;
}

.download-copy h2 {
  margin-top: 16px;
}

.download-copy > p:not(.eyebrow) {
  max-width: 30rem;
  margin-top: 18px;
  font-size: 1.14rem;
  color: var(--ink-soft);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.download-copy .download-note {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.98rem;
  color: var(--ink);
}

.download-note a {
  font-weight: 600;
}

.download-note.is-flash {
  animation: note-flash 1.6s var(--ease);
}

@keyframes note-flash {
  from {
    background: rgba(248, 251, 246, 0.9);
  }

  to {
    background: rgba(248, 251, 246, 0);
  }
}

.qr-card {
  position: relative;
  justify-self: center;
  width: min(100%, 290px);
  margin: 0;
  padding: 20px 20px 16px;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 34px 60px -30px rgba(22, 36, 27, 0.5), 0 0 0 1px rgba(22, 36, 27, 0.05);
  transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
  transition: transform 0.8s var(--ease);
}

.qr-card:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.qr {
  aspect-ratio: 1;
  color: var(--ink);
}

.qr svg {
  display: block;
  width: 100%;
  height: 100%;
}

.qr-card figcaption {
  margin-top: 12px;
  font-size: 0.92rem;
  text-align: center;
  color: var(--ink-soft);
}

/* Footer */

.footer {
  padding-block: 56px calc(36px + env(safe-area-inset-bottom));
  background: var(--night);
  color: var(--on-night-soft);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand strong {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 650;
  font-stretch: 90%;
  letter-spacing: -0.02em;
  color: var(--on-night);
}

.footer-brand [lang="hi"] {
  font-family: var(--voice);
  color: var(--leaf);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}

.footer-links a {
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--on-night);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line-night);
  font-size: 0.9rem;
}

/* Tablet and phone */

@media (min-width: 901px) {
  .hero h1 span {
    display: block;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas:
      "hindi"
      "title"
      "stage"
      "lede"
      "actions"
      "note";
  }

  .hero-stage {
    height: clamp(380px, 100vw, 540px);
    margin-top: 6px;
  }

  .lede {
    margin-top: 4px;
  }

  .voice-grid,
  .truth-grid,
  .faq-grid,
  .download-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .voice-phone {
    order: -1;
  }

  .feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature:nth-of-type(even) .feature-phone {
    order: 0;
  }

  .feature-copy {
    max-width: 36rem;
  }

  .qr-card {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .device {
    width: clamp(200px, 64vw, 260px);
  }

  .hero-flat .device {
    width: clamp(150px, 44vw, 210px);
  }

  .control-label {
    width: 100%;
  }

  .truth-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .disclaimer {
    align-items: flex-start;
  }

  .disclaimer-number {
    width: 54px;
    height: 54px;
    font-size: 1.1rem;
  }

  .download-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .qr-card {
    justify-self: center;
  }

  .faq-list details p {
    padding-right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
