/* ============================================================
   Indian Festival Calendar — Website Stylesheet
   Palette matches the app's home screen:
     gradient  #FF6B35 → #FFC300        (app bar / hero)
     primary   #FF6B35
     accent    #FFC300
     secondary #004E89
     surface   #FFFBFE
     bg        #FFF8F0
   Headings: Playfair Display   Body: Noto Sans
   ============================================================ */

:root {
  --primary: #FF6B35;
  --primary-dark: #E85A25;
  --accent: #FFC300;
  --secondary: #004E89;
  --bg: #FFF8F0;
  --surface: #FFFBFE;
  --ink: #2B1E14;
  --muted: #6E5E52;
  --border: #F2E3D2;
  --shadow: 0 8px 24px rgba(255, 107, 53, .12);
  --shadow-lg: 0 16px 44px rgba(43, 30, 20, .14);
  --radius: 18px;
  --grad: linear-gradient(135deg, #FF6B35, #FFC300);
  --grad-logo: linear-gradient(135deg, #6C2BD9, #E9358B 55%, #FF7A1A);
  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Noto Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.25;
  color: var(--ink);
}

a { color: var(--secondary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1120px, 92%); margin: 0 auto; }

/* ---------------------------------------------------------- */
/*  Header / navigation                                        */
/* ---------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 254, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(43, 30, 20, .08); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
}
.brand .brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.22rem;
  color: var(--ink);
  line-height: 1.15;
}
.brand .brand-name span { display: block; font-size: .72rem; font-weight: 600; font-family: var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--primary); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 9px 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  text-decoration: none !important;
  transition: background .2s ease, color .2s ease;
}
.main-nav a:hover { background: #FFF1E4; color: var(--primary-dark); }
.main-nav a.active { background: #FFF1E4; color: var(--primary-dark); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 14px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .98rem;
  cursor: pointer;
  border: none;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 107, 53, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255, 107, 53, .42); }
.btn-ghost {
  background: transparent;
  color: var(--secondary);
  border: 2px solid rgba(0, 78, 137, .25);
}
.btn-ghost:hover { border-color: var(--secondary); background: rgba(0, 78, 137, .05); }
.btn-white { background: #fff; color: var(--primary-dark); box-shadow: 0 8px 22px rgba(120, 60, 0, .25); }
.btn-white:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; border-radius: 12px; font-size: .9rem; }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 3px;
  border-radius: 3px;
  background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------------------------------------------------------- */
/*  Hero — mirrors the app's gradient app bar                   */
/* ---------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--grad);
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}
.hero .blob { position: absolute; border-radius: 50%; background: rgba(255,255,255,.09); pointer-events: none; }
.hero .b1 { width: 380px; height: 380px; top: -160px; right: -90px; }
.hero .b2 { width: 260px; height: 260px; bottom: -140px; left: -80px; background: rgba(255,255,255,.07); }

.hero-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
  padding: 72px 0 84px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
}
.hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.35);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero p.lead {
  font-size: 1.08rem;
  max-width: 560px;
  color: rgba(255,255,255,.94);
  margin-bottom: 28px;
}
.hero .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .hero-note { display: flex; gap: 18px; margin-top: 22px; font-size: .88rem; color: rgba(255,255,255,.9); flex-wrap: wrap; }
.hero .hero-note span { display: inline-flex; align-items: center; gap: 7px; }

.hero-shot {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone {
  width: min(290px, 80vw);
  border-radius: 36px;
  border: 8px solid #241A12;
  background: #241A12;
  box-shadow: 0 28px 60px rgba(80, 30, 0, .45);
  overflow: hidden;
}
.phone svg { width: 100%; height: auto; }
.phone-caption {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
}

/* ---------------------------------------------------------- */
/*  Sections                                                   */
/* ---------------------------------------------------------- */

section.section { padding: 84px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head .eyebrow {
  display: inline-block;
  color: var(--primary-dark);
  background: #FFEFE3;
  border: 1px solid #FFD9BF;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}
.section-head p { color: var(--muted); }

/* Countdown strip */
.countdown-section { padding: 0 0 20px; }
.countdown-card {
  margin-top: 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}
.count-actions { text-align: right; }
.count-ring { position: relative; width: 108px; height: 108px; flex-shrink: 0; }
.count-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.count-ring .ring-bg { fill: none; stroke: #FFEBD8; stroke-width: 9; }
.count-ring .ring-fg {
  fill: none; stroke: url(#ringGrad); stroke-width: 9; stroke-linecap: round;
  transition: stroke-dashoffset .8s cubic-bezier(.22, 1, .36, 1);
}
.count-ring .count-num {
  position: absolute; inset: 0;
  display: grid; place-content: center; text-align: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; line-height: 1;
  color: var(--primary-dark);
}
.count-ring .count-num small { font-family: var(--font-body); font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.count-body h3 { font-size: 1.35rem; margin-bottom: 4px; }
.count-body .count-date { color: var(--secondary); font-weight: 700; font-size: .95rem; }
.count-body .count-note { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.count-body a { font-weight: 700; font-size: .9rem; }

/* Upcoming list */
.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}
.festival-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.festival-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.festival-chip::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--grad);
}
.festival-chip .fc-date {
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary-dark);
}
.festival-chip .fc-name { font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; margin-top: 3px; }
.festival-chip .fc-note { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.festival-chip .fc-left {
  margin-top: 12px;
  display: inline-block;
  font-size: .78rem; font-weight: 700;
  background: #FFF1E4; color: var(--primary-dark);
  border: 1px solid #FFD9BF;
  padding: 4px 12px; border-radius: 999px;
}

.feature-trust { margin-top: 30px; text-align: center; color: var(--muted); font-size: .88rem; }

/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 22px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.16rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: .94rem; }

/* icon palette — reuses the colours of the app's feature cards */
.feature-icon.orange { background: #FFE8DC; }
.feature-icon.purple { background: #F3E5F5; }
.feature-icon.blue   { background: #E3F2FD; }
.feature-icon.green  { background: #E8F5E9; }
.feature-icon.gold   { background: #FFF6D6; }
.feature-icon.navy   { background: #E8EAF6; }

/* App screens / highlights section */
.showcase { background: linear-gradient(180deg, #FFF8F0, #FFEFDD); }
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: start;
}
.showcase-item {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}
.showcase-item .shot { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.showcase-item h3 { font-size: 1.1rem; margin-top: 16px; }
.showcase-item p { color: var(--muted); font-size: .9rem; margin-top: 6px; }

/* Traditions */
.traditions {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px;
}
.tradition-chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700; font-size: .95rem;
  box-shadow: 0 4px 12px rgba(43,30,20,.05);
}
.tradition-chip i { font-style: normal; font-size: 1.05rem; }

/* Community strip / stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 16px;
}
.stat-card .num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.2rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-card .lbl { color: var(--muted); font-size: .9rem; font-weight: 600; margin-top: 4px; }

/* Download CTA */
.download-cta {
  background: var(--grad);
  color: #fff;
  border-radius: 28px;
  padding: 56px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.download-cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 12px; }
.download-cta p { color: rgba(255,255,255,.94); max-width: 560px; margin: 0 auto 30px; }
.download-cta .dl-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.playstore-badge { transition: transform .18s ease; display: inline-block; }
.playstore-badge:hover { transform: translateY(-2px); }
.playstore-badge img, .playstore-badge svg { height: 64px; width: auto; }
.dl-soon { font-size: .8rem; color: rgba(255,255,255,.8); }

/* Page hero (inner pages) */
.page-hero {
  background: var(--grad);
  color: #fff;
  padding: 56px 0 48px;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.92); max-width: 640px; }
.page-hero .crumbs { font-size: .85rem; margin-bottom: 16px; color: rgba(255,255,255,.85); }
.page-hero .crumbs a { color: #fff; font-weight: 600; }
.page-hero .blob { position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none; }
.page-hero .b1 { width: 300px; height: 300px; top: -140px; right: -60px; }
.page-hero .b2 { width: 220px; height: 220px; bottom: -120px; left: -60px; background: rgba(255,255,255,.07); }

/* Legal / policy content */
.legal-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 0 84px;
}
.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 44px clamp(24px, 5vw, 52px);
}
.legal-card .updated {
  display: inline-block;
  background: #FFEFE3;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: .82rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.legal-card h2 {
  font-size: 1.35rem;
  margin: 36px 0 12px;
  padding-top: 8px;
  scroll-margin-top: 96px;
}
.legal-card h2:first-of-type { margin-top: 8px; }
.legal-card h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.legal-card p, .legal-card li { color: #4A3D33; font-size: .98rem; }
.legal-card ul, .legal-card ol { margin: 10px 0 10px 22px; display: grid; gap: 6px; }
.legal-card table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .94rem; }
.legal-card th, .legal-card td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; vertical-align: top; }
.legal-card th { background: #FFF1E4; font-family: var(--font-body); }
.legal-card .note {
  background: #FFF6D6;
  border: 1px solid #F5E3A8;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: .92rem;
  margin: 18px 0;
}
.legal-anchor-paging {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px;
}
.legal-anchor-paging a {
  font-size: .82rem; font-weight: 600;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  padding: 6px 12px; border-radius: 999px;
}
.legal-anchor-paging a:hover { border-color: var(--primary); color: var(--primary-dark); text-decoration: none; }

/* About page */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.about-grid .about-art { display: flex; justify-content: center; }
.about-points { display: grid; gap: 16px; margin-top: 26px; }
.about-point { display: flex; gap: 14px; align-items: flex-start; }
.about-point .pt-badge {
  flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--grad); color: #fff;
  display: grid; place-items: center; font-size: 1.25rem;
}
.about-point h4 { margin-bottom: 2px; font-size: 1.02rem; }
.about-point p { color: var(--muted); font-size: .93rem; }
.about-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 40px;
}
.about-panel .mission { color: var(--muted); margin-top: 10px; }
.named-list { margin-top: 26px; border-top: 1px solid var(--border); padding-top: 22px; display: grid; gap: 14px; }

/* FAQ */
.faq-list { display: grid; gap: 14px; max-width: 860px; margin: 0 auto; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow .2s ease;
}
.faq-item[open] { box-shadow: var(--shadow); border-color: #FFD9BF; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #FFF1E4;
  color: var(--primary-dark);
  display: grid; place-items: center;
  transition: transform .25s ease;
  font-size: .9rem;
}
.faq-item[open] summary .chev { transform: rotate(45deg); background: var(--grad); color: #fff; }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--muted); }
.faq-item .faq-body p + p { margin-top: 8px; }
.faq-item .faq-body a { font-weight: 600; }
.faq-cats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.faq-cats a {
  font-size: .85rem; font-weight: 700;
  background: #fff; border: 1px solid var(--border);
  padding: 8px 18px; border-radius: 999px;
  scroll-margin-top: 100px;
}
.faq-cats a:hover { border-color: var(--primary); color: var(--primary-dark); text-decoration: none; }
.faq-group-title { scroll-margin-top: 100px; margin: 40px 0 18px; font-size: 1.25rem; }
.faq-group-title:first-of-type { margin-top: 0; }

/* Contact block */
.contact-strip {
  text-align: center;
  background: var(--surface);
  border: 1px dashed #FFD9BF;
  border-radius: 20px;
  padding: 34px 24px;
  max-width: 720px;
  margin: 44px auto 0;
}
.contact-strip .big-mail {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
}

/* 404 */
.error-code {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 6rem;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Testimonials (simple quotes) */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.quote-card .stars { color: var(--accent); letter-spacing: 2px; }
.quote-card p { margin-top: 10px; color: #4A3D33; font-size: .95rem; }
.quote-card .who { margin-top: 14px; font-weight: 700; font-size: .88rem; }
.quote-card .who small { display: block; color: var(--muted); font-weight: 500; }

/* ---------------------------------------------------------- */
/*  Footer                                                     */
/* ---------------------------------------------------------- */

.site-footer {
  margin-top: 40px;
  background: #2B1A0F;
  color: #E8D9CB;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 36px;
  padding: 56px 0 40px;
}
.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: .04em;
}
.site-footer .footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.site-footer .footer-brand .brand-name { font-family: var(--font-head); font-weight: 700; color: #fff; line-height: 1.15; }
.site-footer .footer-brand .brand-name span { display: block; font-size: .68rem; font-family: var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.site-footer p { font-size: .9rem; color: #C7B4A4; max-width: 300px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer ul a { color: #E8D9CB; font-size: .92rem; text-decoration: none; }
.site-footer ul a:hover { color: var(--accent); text-decoration: underline; }
.footer-play { margin-top: 20px; }
.footer-play .fp-label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #C7B4A4; font-weight: 700; margin-bottom: 10px; }
.footer-play .playstore-badge svg, .footer-play .playstore-badge img { height: 52px; }
.footer-contact-line { display: flex; align-items: center; gap: 10px; font-size: .92rem; }
.footer-contact-line i { font-style: normal; }
.footer-contact-line a { color: #fff; font-weight: 600; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: #C7B4A4;
}
.footer-bottom a { color: #E8D9CB; }

/* Back to top */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--grad);
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255,107,53,.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
  z-index: 60;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* Toast */
.toast {
  position: fixed;
  left: 50%; bottom: 90px;
  transform: translateX(-50%) translateY(16px);
  background: #2B1A0F;
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  z-index: 80;
  max-width: 90vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------- */
/*  Responsive                                                 */
/* ---------------------------------------------------------- */

@media (max-width: 1000px) {
  .hero-wrap { grid-template-columns: 1fr; padding: 56px 0 76px; }
  .hero-shot { margin-top: 8px; }
  .showcase-grid, .quote-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  /* Countdown card: center the ring+text pair, action button on its own row */
  .countdown-card { grid-template-columns: auto auto; justify-content: center; gap: 24px; }
  .count-actions { grid-column: 1 / -1; text-align: center; width: 100%; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 34px rgba(43,30,20,.12);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 18px;
    gap: 4px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 14px; font-size: 1rem; }
  .nav-cta { margin: 8px 0 0; }
  .countdown-card { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 16px; padding: 26px 20px; }
  .count-body, .count-actions { text-align: center; width: 100%; }
  .showcase-grid, .quote-grid { grid-template-columns: 1fr; }
  section.section { padding: 60px 0; }
  .legal-card { padding: 30px 22px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero .hero-actions .btn { width: 100%; }
  .download-cta { padding: 44px 20px; }
}

/* ---------------------------------------------------------- */
/*  Mobile-device polish (phones · tablets · foldables)        */
/*  Everything below is additive: on desktop it is a no-op,    */
/*  and none of the base styles above are modified.            */
/* ---------------------------------------------------------- */

/* Stop iOS Safari from inflating headline sizes in landscape. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* Clean tap handling on Android/iOS (no grey/amber flash on links/buttons). */
body { -webkit-tap-highlight-color: transparent; }

/* Respect notches, punch-holes and gesture bars (iPhone/Samsung).
   env() evaluates to 0 on devices without them — and on desktop. */
.site-header {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
.site-footer .container { padding-bottom: env(safe-area-inset-bottom); }
.to-top {
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
}

/* Long unbreakable tokens (e.g. indianfestivalcalendarsupport@gmail.com) must
   never be allowed to push pages wider than the screen. */
.footer-contact-line a,
.big-mail,
.legal-card a,
.faq-body a { overflow-wrap: anywhere; }

/* About-page art: white pill caption centered directly below the centered logo. */
.about-art .about-caption,
.about-art .phone-caption {
  position: static !important;
  display: block !important;
  width: fit-content !important;
  max-width: 100% !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  margin: 24px auto 0 !important;
  background: #fff !important;
  padding: 8px 18px !important;
  border-radius: 999px !important;
  box-shadow: var(--shadow-lg) !important;
  white-space: normal;
  text-align: center;
  font-size: .82rem !important;
  font-weight: 700;
}
.about-grid .about-art img { max-width: 100%; height: auto; }

/* Policy tables can't shrink below their widest row on phones:
   scroll them in place instead of breaking the page layout. */
@media (max-width: 500px) {
  .legal-card table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Foldable cover screens and very small phones (Galaxy Z Flip/Fold ≈340px) */
@media (max-width: 360px) {
  .container { width: min(1120px, 96%); }
  .brand .brand-name { font-size: 1.02rem; }
  .brand .brand-name span { font-size: .6rem; letter-spacing: .1em; }
  .phone { width: min(290px, 88vw); }
  .error-code { font-size: 4.6rem; }
}
