/* ══ MyIndia Soundbox — brand identity system v2.4.1 ═══════════════════════
   Tokens transcribed from brand/palette.md. Dark system: Saffron for action,
   deep navy for surface, Pay Green for money received. The tricolour reading is
   carried by the palette, never stated in copy.

   The retired blue #1A4FD6 is deliberately absent — see brand/palette.md
   § "Open question" and the comment in partials/nav.html.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Brand */
  --saffron: #FF6B00;
  --amber: #FF9500;
  --gold: #FFB800;
  --signature: linear-gradient(135deg, #FF6B00 0%, #FF9500 52%, #FFB800 100%);

  /* Surfaces */
  --abyss: #07091A;
  --deep-navy: #111527;
  --indigo-night: #1C2240;
  --steel-blue: #2E3660;

  /* Text */
  --ghost-white: #F0F2FF;
  --mist: #C8CCEC;
  --slate: #7A82B0;

  /* Semantic */
  --pay-green: #22C55E;
  --alert-red: #FF3B3B;
  --upi-blue: #4285F4;
  --phonepe-purple: #5F259F;

  --display: 'Rajdhani', 'Segoe UI', Roboto, sans-serif;
  --body: 'Noto Sans', 'Segoe UI', Roboto, 'Noto Sans Devanagari', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --radius: 18px;
  --radius-sm: 12px;
  --tap: 56px;            /* minimum height of anything tappable */
}

/* ── Reset & base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--body);
  font-weight: 400;
  font-size: 17px;          /* read at arm's length, not a phone UI at 13px */
  line-height: 1.65;
  background: var(--abyss);
  color: var(--mist);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, .display { font-family: var(--display); color: var(--ghost-white); line-height: 1.12; }
strong { color: var(--ghost-white); font-weight: 600; }

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

/* ── Layout ── */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; }
.section-alt { background: var(--deep-navy); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 14px;
  display: block;
}
h1 { font-weight: 700; font-size: clamp(34px, 6.4vw, 54px); }
h2 { font-weight: 700; font-size: clamp(28px, 4.6vw, 40px); }
h3 { font-weight: 600; font-size: 22px; }
.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--mist); margin-top: 18px; }
.muted { color: var(--slate); }
.green { color: var(--pay-green); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--tap); padding: 0 30px;
  border: none; border-radius: 999px; cursor: pointer;
  font-family: var(--body); font-weight: 600; font-size: 17px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary {
  background: var(--signature);
  color: #1A0C00;                        /* ink on saffron, not white */
  box-shadow: 0 10px 30px rgba(255,107,0,.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(255,107,0,.34); }
.btn-ghost {
  background: transparent; color: var(--ghost-white);
  border: 1px solid var(--steel-blue);
}
.btn-ghost:hover { border-color: var(--saffron); color: var(--saffron); }
.btn-danger { background: var(--alert-red); color: #FFF; }
.btn-danger:hover { transform: translateY(-2px); }

/* ── Google Play badge ────────────────────────────────────────────────────
   Not the official Google badge asset, and deliberately so: there is no
   listing to link to. It is styled as a disabled, outlined chip that reads
   "Coming soon to Google Play" so no visitor mistakes it for a download. */
.play-badge {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: var(--tap); padding: 8px 26px;
  border: 1px dashed var(--steel-blue); border-radius: var(--radius-sm);
  background: var(--indigo-night);
  cursor: default;
}
.play-badge-eyebrow {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--slate); font-weight: 500;
}
.play-badge-store {
  font-family: var(--display); font-weight: 700; font-size: 19px;
  color: var(--mist); line-height: 1.15;
}
.play-badge:hover { border-color: var(--slate); }

/* ── Brand lockup ── */
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: var(--tap); }
.brand-mark { width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0; }
.brand-word {
  display: flex; flex-direction: column; line-height: 1.02;
  font-family: var(--display); font-weight: 700; font-size: 21px;
}
.brand-my { color: var(--ghost-white); }
.brand-sb { color: var(--saffron); }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,9,26,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(46,54,96,.5);
}
.nav-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.nav-links { display: flex; gap: 8px; margin-left: auto; }
.nav-links a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 14px; border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 500; color: var(--mist);
  transition: color .18s, background .18s;
}
.nav-links a:hover { color: var(--ghost-white); background: var(--indigo-night); }
.nav-play { flex-shrink: 0; }

/* ── Hero ── */
.hero { padding: 72px 0 88px; position: relative; overflow: hidden; }
.hero::before {                        /* one saffron bloom, the only glow */
  content: ""; position: absolute; inset: -30% 40% 40% -20%; z-index: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(255,107,0,.16), transparent 62%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1 { margin-bottom: 4px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 36px; }
.hero-sub {
  font-size: 14px; color: var(--slate); margin-top: 16px;
}

/* ── Payment notification card (identity system component) ── */
.pay-card {
  background: var(--deep-navy);
  border: 1px solid var(--steel-blue);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,.55);
  max-width: 420px; margin: 0 auto;
}
.pay-card-body { padding: 26px 26px 20px; }
.pay-label {
  font-family: var(--display); font-weight: 600; font-size: 15px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--saffron);
}
.pay-amount {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(48px, 9vw, 72px); line-height: 1;
  color: var(--pay-green);
  margin: 10px 0 14px;
}
.pay-payer { font-weight: 600; font-size: 17px; color: var(--ghost-white); }
.pay-meta { font-size: 13px; color: var(--slate); margin-top: 2px; }
.pay-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 26px;
  background: var(--indigo-night);
  border-top: 1px solid var(--steel-blue);
}
.pay-upi { font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--slate); }
.tag-success {
  font-family: var(--display); font-weight: 600; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--pay-green);
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.34);
  border-radius: 999px; padding: 4px 12px; white-space: nowrap;
}

/* The spoken line under the card — the product's actual output. */
.speech {
  display: flex; align-items: flex-start; gap: 12px;
  max-width: 420px; margin: 20px auto 0;
  padding: 16px 18px;
  background: var(--indigo-night);
  border: 1px solid var(--steel-blue);
  border-radius: var(--radius-sm);
}
.speech-icon {
  flex-shrink: 0; width: 26px; height: 26px; margin-top: 4px;
  display: grid; place-items: center;
}
.speech-hi {
  font-weight: 600; font-size: 17px; color: var(--ghost-white);
}
.speech-en { font-size: 14px; color: var(--slate); margin-top: 2px; }

/* Sound-wave pulse, echoing the arcs in the app mark. */
.wave-dot {
  display: block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--signature);
  box-shadow: 0 0 0 4px rgba(255,107,0,.16), 0 0 0 9px rgba(255,107,0,.07);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255,107,0,.16), 0 0 0 9px rgba(255,107,0,.07); }
  50%      { box-shadow: 0 0 0 6px rgba(255,107,0,.24), 0 0 0 13px rgba(255,107,0,.10); }
}

/* ── Tiles (who it's for) ── */
/* Three across, so six tiles fill two rows. auto-fit gave five and left one
   orphan on its own row at this container width. */
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  background: var(--deep-navy);
  border: 1px solid var(--steel-blue);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: border-color .2s, transform .2s;
}
.tile:hover { border-color: var(--saffron); transform: translateY(-3px); }
.tile-glyph { font-size: 34px; line-height: 1; margin-bottom: 14px; }
.tile h3 { font-size: 20px; margin-bottom: 6px; }
.tile p { font-size: 15px; color: var(--slate); line-height: 1.55; }

/* ── Cards (features, day one) ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
/* Four short cards ("day one"): a 300px minimum yields three across and leaves
   the fourth stranded. */
.card-grid.tight { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.card-grid.tight .card { padding: 26px 24px; }
.card {
  background: var(--deep-navy);
  border: 1px solid var(--steel-blue);
  border-radius: var(--radius);
  padding: 30px;
  display: flex; flex-direction: column;
}
.card-icon {
  width: 52px; height: 52px; border-radius: 15px;
  display: grid; place-items: center; font-size: 24px;
  background: rgba(255,107,0,.12);
  border: 1px solid rgba(255,107,0,.28);
  margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 16px; color: var(--mist); }
.card p + p { margin-top: 12px; }

/* ── Transaction list rows (identity system component) ── */
.txn-list { margin-top: 22px; border-top: 1px solid var(--steel-blue); }
.txn {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--steel-blue);
}
.txn-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(34,197,94,.14);
  border: 1px solid rgba(34,197,94,.4);
  color: var(--pay-green); font-size: 17px; font-weight: 700;
}
.txn-main { flex: 1; min-width: 0; }
.txn-name {
  font-weight: 600; font-size: 16px; color: var(--ghost-white);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.txn-sub { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.txn-time { font-family: var(--mono); font-size: 12px; color: var(--slate); }
.txn-amount {
  font-family: var(--display); font-weight: 700; font-size: 21px;
  color: var(--pay-green); white-space: nowrap;
}
.app-badge {
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  border-radius: 5px; padding: 2px 7px; color: #FFF;
}
.app-gpay { background: var(--upi-blue); }
.app-phonepe { background: var(--phonepe-purple); }

/* ── Chips (UPI apps, languages) ── */
.chip-row { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  background: var(--deep-navy);
  border: 1px solid var(--steel-blue);
  border-radius: 999px;
  font-weight: 500; font-size: 16px; color: var(--mist);
}
.chip-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--saffron); flex-shrink: 0; }
.chip-lang { min-height: 46px; padding: 0 18px; font-size: 15px; }

/* ── Split panel (on-device) ── */
.split {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
  background: var(--deep-navy);
  border: 1px solid var(--steel-blue);
  border-radius: 24px;
  padding: 48px;
}
.split-visual {
  border-radius: var(--radius);
  padding: 32px;
  background: var(--indigo-night);
  border: 1px solid var(--steel-blue);
}
.step { display: flex; gap: 16px; align-items: flex-start; }
.step + .step { margin-top: 22px; }
.step-num {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 16px;
  background: var(--signature); color: #1A0C00;
}
.step-body h3 { font-size: 18px; margin-bottom: 3px; }
.step-body p { font-size: 15px; color: var(--slate); line-height: 1.55; }

/* ── FAQ (native details, no JS) ── */
.faq { max-width: 820px; }
.faq details {
  background: var(--deep-navy);
  border: 1px solid var(--steel-blue);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--tap); padding: 16px 22px;
  cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 600; font-size: 21px;
  color: var(--ghost-white);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex-shrink: 0;
  font-family: var(--display); font-size: 28px; font-weight: 600; line-height: 1;
  color: var(--saffron);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--steel-blue); }
.faq-body { padding: 18px 22px 22px; }
.faq-body p + p { margin-top: 12px; }
.faq-body a { color: var(--amber); text-decoration: underline; }

/* ── Closing CTA ── */
.cta {
  text-align: center;
  border-radius: 24px;
  padding: 72px 32px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,107,0,.14), transparent 65%),
    var(--deep-navy);
  border: 1px solid var(--steel-blue);
}
.cta h2 { margin-bottom: 14px; }
.cta p { max-width: 560px; margin: 0 auto 32px; color: var(--mist); }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--steel-blue); padding: 56px 0 32px; background: var(--deep-navy); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand .brand-mark { width: 36px; height: 36px; }
.footer-brand p { font-size: 15px; color: var(--slate); max-width: 340px; }
.footer-col h2 {
  font-family: var(--display); font-weight: 600; font-size: 15px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--slate);
  margin-bottom: 8px;
}
.footer-col a {
  display: flex; align-items: center; min-height: 44px;
  font-size: 16px; color: var(--mist); transition: color .18s;
}
.footer-col a:hover { color: var(--saffron); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--steel-blue); padding-top: 24px;
  font-size: 14px; color: var(--slate);
}

/* ── Legal / simple pages ── */
.doc { padding: 64px 0 88px; }
.doc .container { max-width: 780px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--amber); font-weight: 500; font-size: 16px;
}
.doc h1 { margin: 8px 0 6px; }
.doc .updated { font-size: 14px; color: var(--slate); margin-bottom: 36px; }
.doc h2 {
  font-size: 24px; margin: 40px 0 12px; color: var(--ghost-white);
}
.doc h3 { font-size: 19px; margin: 26px 0 8px; }
.doc p, .doc li { font-size: 16px; color: var(--mist); }
.doc p + p { margin-top: 14px; }
.doc ul, .doc ol { margin: 14px 0 14px 22px; }
.doc li { margin-bottom: 8px; }
.doc a:not(.btn):not(.back-link) { color: var(--amber); text-decoration: underline; }
.callout {
  background: var(--deep-navy);
  border: 1px solid var(--steel-blue);
  border-left: 3px solid var(--saffron);
  border-radius: var(--radius-sm);
  padding: 20px 22px; margin: 24px 0;
}
.callout.danger { border-left-color: var(--alert-red); }
.contact-block {
  background: var(--deep-navy); border: 1px solid var(--steel-blue);
  border-radius: var(--radius); padding: 26px; margin: 26px 0;
}
.contact-block .mono { font-family: var(--mono); font-size: 15px; color: var(--ghost-white); }

/* ── Reveal on scroll ────────────────────────────────────────────────────
   Gated on .js, which the inline script in partials/head.html sets. Without
   that gate, a visitor whose JavaScript never runs — blocked, disabled, or
   main.js lost on a flaky connection — gets a completely blank page, because
   every section on the site carries .reveal. Fail open: no JS, no hiding. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .split { grid-template-columns: 1fr; gap: 36px; padding: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  /* Two tap targets in the nav and no more — anchors move into the page flow. */
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .section { padding: 56px 0; }
  .hero { padding: 44px 0 56px; }
  .play-badge { padding: 8px 18px; }
  .play-badge-store { font-size: 17px; }
  .brand-word { font-size: 19px; }
  .cta { padding: 48px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .btn { width: 100%; }
  .hero-actions .play-badge { width: 100%; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
