/*
 * Copyright (c) 2024–2026 Ambiful Solutions Pvt. Ltd.
 * All rights reserved.
 *
 * This source code is proprietary and confidential.
 * Unauthorized copying, modification, or distribution is strictly prohibited.
 */

/* The app's palette (mobile/src/theme.ts), light and dark. */
:root {
  --accent: #9a3b12;
  --accent-soft: #fbeadf;
  --bg: #faf7f2;
  --surface: #ffffff;
  --border: #e7e0d6;
  --text: #1f1a17;
  --muted: #6b625c;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #f39a6b;
    --accent-soft: #3a2016;
    --bg: #151210;
    --surface: #1f1b18;
    --border: #332c27;
    --text: #f2ece7;
    --muted: #a99f97;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif;
}
header, main, footer { max-width: 46rem; margin: 0 auto; padding: 0 16px; }
header { display: flex; align-items: center; gap: 12px; padding-top: 20px; padding-bottom: 8px; }
header a { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; }
header img { width: 36px; height: 36px; border-radius: 8px; }
main { padding-top: 16px; padding-bottom: 48px; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0.5rem 0 0.75rem; letter-spacing: -0.01em; }
h2 { font-size: 1.25rem; margin: 2rem 0 0.5rem; }
p, li { max-width: 68ch; }
ul, ol { padding-left: 1.25rem; }
li { margin: 0.25rem 0; }
a { color: var(--accent); }
.muted { color: var(--muted); }
.note { background: var(--accent-soft); border-radius: 12px; padding: 12px 16px; }
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin-top: 1.5rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.card h2 { margin-top: 0; font-size: 1.05rem; }
footer { border-top: 1px solid var(--border); padding-top: 16px; padding-bottom: 32px; font-size: 0.9rem; color: var(--muted); }
footer a { color: var(--muted); }

/* ---- Landing page ------------------------------------------------------------------------- */
.wide { max-width: 72rem; }
.site-nav { display: flex; gap: 20px; margin-left: auto; font-size: 0.95rem; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--text); }
@media (max-width: 640px) { .site-nav { display: none; } }

.section { padding: 56px 0; border-top: 1px solid var(--border); }
.section:first-of-type { border-top: 0; }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
h2.big { font-size: 1.9rem; line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
p { margin: 0.6rem 0; }

.hero { display: grid; gap: 40px; align-items: center; grid-template-columns: 1.15fr 0.85fr; padding-top: 24px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.08; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero .hindi { font-size: 1.1rem; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.badge { display: inline-flex; flex-direction: column; justify-content: center; padding: 8px 16px; border-radius: 12px; background: var(--text); color: var(--bg); line-height: 1.2; min-width: 150px; }
.badge small { font-size: 0.7rem; opacity: 0.75; }
.badge strong { font-size: 1.05rem; }
a.badge { text-decoration: none; }
.badge.soon { opacity: 0.5; }
.langs { margin-top: 14px; font-size: 0.95rem; color: var(--muted); }

/* A phone: the real screenshot in a dark rounded frame. */
.phone { margin: 0 auto; width: min(100%, 290px); border: 9px solid #1f1a17; border-radius: 42px; overflow: hidden; background: #1f1a17; box-shadow: 0 30px 60px -30px rgba(31, 26, 23, 0.45); }
.phone img { display: block; width: 100%; height: auto; }
@media (prefers-color-scheme: dark) { .phone { border-color: #3a332e; background: #3a332e; box-shadow: none; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 0.95rem; }

.grid3 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 24px; }
.grid3 .card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.grid3 .card p { margin: 0; color: var(--muted); }
.quote { font-size: 1.15rem; font-weight: 600; margin: 0 0 6px; }

.steps { counter-reset: step; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 24px; padding: 0; list-style: none; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; max-width: none; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--bg); font-weight: 800; margin-bottom: 10px; }
.steps h3 { margin: 0 0 4px; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); }

.feature { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr 0.8fr; padding: 40px 0; }
.feature:nth-of-type(even) { grid-template-columns: 0.8fr 1fr; }
.feature:nth-of-type(even) .copy { order: 2; }
.feature h3 { font-size: 1.5rem; line-height: 1.2; margin: 0 0 8px; }
.feature ul { margin: 12px 0 0; }
.feature li { color: var(--muted); }
@media (max-width: 820px) {
  .feature, .feature:nth-of-type(even) { grid-template-columns: 1fr; }
  .feature:nth-of-type(even) .copy { order: 0; }
}

.small-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin-top: 20px; }
.small-grid div { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.small-grid strong { display: block; }
.small-grid span { color: var(--muted); font-size: 0.95rem; }

.trust { background: var(--accent-soft); border-radius: 18px; padding: 28px; }
.trust ul { margin: 10px 0 0; }

details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 8px 0 0; }

.cta { text-align: center; }
.cta .badges { justify-content: center; }

/* The other language, always visible (the section links hide on phones). */
.lang { margin-left: 16px; padding: 4px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 0.95rem; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; }
.lang:hover { border-color: var(--accent); }
@media (max-width: 640px) { .lang { margin-left: auto; } }

/* Devanagari: letter-spacing pulls apart the joined letters and crowds the vowel marks, and there are
   no capitals to transform. Hindi text sets at its natural spacing, a touch looser in line height. */
:lang(hi) .eyebrow { letter-spacing: 0; text-transform: none; font-size: 0.95rem; }
:lang(hi) h1, :lang(hi) h2.big, :lang(hi) .hero h1 { letter-spacing: 0; line-height: 1.3; }
:lang(hi) .lead, :lang(hi) li, :lang(hi) p { line-height: 1.75; }
/* No single word left alone on a headline's last line, in either language. */
h1, h2.big, .feature h3 { text-wrap: balance; }

/* ---- Motion ----------------------------------------------------------------------------------
   Calm and quick: the hero rises in and its phone floats; everything else rises into place once as
   it scrolls into view (motion.js marks those with .reveal, and only when it runs, so the page reads
   fine without JavaScript; once in place the marks come off and the hover effects below take over). Nothing moves for people who ask their device for reduced motion. */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .hero > :first-child { animation: rise 0.7s ease-out both; }
  .hero .phone { animation: rise 0.8s ease-out 0.15s both, float 7s ease-in-out 1.2s infinite; }

  html.motion .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
  html.motion .reveal.in { opacity: 1; transform: none; }
  html.motion .feature .phone.reveal { transform: translateY(32px) scale(0.97); }
  html.motion .feature .phone.reveal.in { transform: none; }

  details[open] > p { animation: rise 0.35s ease-out both; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .grid3 .card, .steps li, .small-grid div, details { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
  .grid3 .card:hover, .steps li:hover, .small-grid div:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -16px rgba(31, 26, 23, 0.35); }
  details:hover { border-color: var(--accent); }
  .feature .phone { transition: transform 0.3s ease; }
  .feature .phone:hover { transform: translateY(-4px); }
  .badge, .lang, .site-nav a { transition: opacity 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease; }
  a.badge:hover { transform: translateY(-2px); }
}
