/*
 * GeniusCFO · Diwali 2026 offer (temporary). Styles only the elements that
 * assets/diwali-2026.js adds; nothing here touches existing classes except
 * hiding the trial strip while the Diwali banner is showing.
 * Rollback: ROLLBACK-DIWALI-2026.md.
 */

/* ---------- Banner ---------- */
.dw-banner-on [data-access-strip] { display: none; }

.dw-banner {
  position: relative;
  z-index: 60;
  background: var(--ink, #0b0f1a);
  color: var(--text-on-dark, #fafaf8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-body, "DM Sans", system-ui, sans-serif);
  font-variant-numeric: tabular-nums;
}
.dw-banner-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 56px;
  padding-top: 6px;
  padding-bottom: 12px;
  /* Equal room on both sides so the text sits on the page's centre line,
     with the close button pinned to the right edge (5 Nov 2026). */
  padding-inline: calc(var(--gutter, 20px) + 48px);
}
.dw-banner .dw-diya { flex: none; width: 30px; height: 30px; }
.dw-diya-bowl { fill: #fafaf8; }
.dw-banner-copy {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  text-align: center;
  color: var(--text-on-dark, #fafaf8);
  font-size: 0.9375rem;
  line-height: 1.4;
}
.dw-banner-copy strong { font-weight: 700; color: #fafaf8; }
.dw-tag, .dw-count {
  font-family: var(--font-mono, "DM Mono", monospace);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
  white-space: nowrap;
}
.dw-tag { margin-right: 10px; }
.dw-count { margin-left: 10px; }
.dw-short { display: none; }
.dw-banner-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--r-md, 8px);
  background: var(--emerald, #00c896);
  color: var(--ink, #0b0f1a);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 180ms ease;
}
.dw-banner-btn:hover { background: #00e0a8; color: var(--ink, #0b0f1a); }
.dw-banner-close {
  position: absolute;
  right: var(--gutter, 20px);
  top: calc(50% - 25px);
  flex: none;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: var(--r-md, 8px);
  background: transparent;
  color: rgba(255, 255, 255, 0.66);
  cursor: pointer;
  transition: color 180ms ease;
}
.dw-banner-close:hover { color: #fafaf8; }
.dw-banner-close svg { width: 16px; height: 16px; display: block; }
.dw-banner a:focus-visible, .dw-banner button:focus-visible { outline: 2px solid var(--emerald, #00c896); outline-offset: 3px; }

/* String of lights along a bottom edge */
.dw-lights {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 8px;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255, 159, 28, 0.95) 0, rgba(255, 159, 28, 0.95) 1.6px, rgba(255, 159, 28, 0.25) 2.6px, transparent 3.6px),
    radial-gradient(circle at 50% 50%, rgba(250, 250, 248, 0.75) 0, rgba(250, 250, 248, 0.75) 1.3px, transparent 2.4px);
  background-size: 36px 8px, 36px 8px;
  background-position: 0 0, 18px 0;
  background-repeat: repeat-x;
}

@media (max-width: 720px) {
  .dw-long, .dw-tag { display: none; }
  .dw-short { display: inline; }
  .dw-count { display: block; margin: 2px 0 0; }
  .dw-banner-inner { gap: 10px; padding-left: var(--gutter, 16px); padding-right: calc(var(--gutter, 16px) + 40px); }
  .dw-banner-close { right: calc(var(--gutter, 16px) - 6px); }
  .dw-banner-copy { font-size: 0.875rem; }
  .dw-banner-btn { padding: 0 14px; font-size: 0.875rem; }
  .dw-banner .dw-diya { width: 24px; height: 24px; }
}

/* ---------- Offer band above the billing switch ---------- */
.dw-band {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding: 24px 28px 32px;
  border-radius: var(--r-card, 24px);
  background: var(--ink, #0b0f1a);
  color: #fafaf8;
}
.dw-band .dw-diya { flex: none; width: 44px; height: 44px; }
.dw-band .dw-lights { bottom: 10px; }
.dw-band-text { flex: 1 1 420px; min-width: 0; display: grid; gap: 6px; }
.dw-band-label {
  margin: 0;
  font-family: var(--font-mono, "DM Mono", monospace);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}
.dw-band-line { margin: 0; max-width: 62ch; font-size: clamp(1.0625rem, 2vw, 1.3125rem); line-height: 1.38; font-weight: 500; color: #fafaf8; }
.dw-band-line strong { font-weight: 700; }
.dw-band-small { margin: 0; max-width: 72ch; font-size: 0.875rem; line-height: 1.5; color: rgba(255, 255, 255, 0.66); }

/* ---------- Billing switch tags ---------- */
.dw-switch-tag {
  margin-left: 8px;
  font-family: var(--font-mono, "DM Mono", monospace);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--emerald-text, #00674d);
}
[aria-pressed="true"] > .dw-switch-tag { color: var(--emerald, #00c896); }
@media (max-width: 420px) { .dw-switch-tag { display: block; margin: 0; line-height: 1; } .billing-switch button:has(.dw-switch-tag) { height: auto; min-height: 44px; } }

/* ---------- Selected-plan summary ---------- */
.dw-figure-credit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 10px;
  padding-top: 14px;
  border-top: var(--hairline-strong, 0.8px solid rgba(11, 15, 26, 0.14));
}
.dw-figure-credit .dw-diya { flex: none; width: 30px; height: 30px; }
.dw-figure-credit .dw-diya-bowl { fill: var(--ink, #0b0f1a); }
.dw-figure-amount {
  font-family: var(--font-display, "IBM Plex Sans Condensed", sans-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--emerald-text, #00674d);
}
.dw-figure-meta, .dw-card-meta {
  font-family: var(--font-mono, "DM Mono", monospace);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle, #5b6377);
}

/* ---------- Credit block on each plan card ---------- */
.dw-card-credit {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-radius: var(--r-btn, 12px);
  background: rgba(0, 200, 150, 0.08);
  border: 0.8px solid rgba(0, 103, 77, 0.24);
}
.dw-card-amount { font-weight: 700; font-size: 1rem; color: var(--emerald-text, #00674d); }
.dw-card-meta { font-size: 0.625rem; }

.dw-actions-note { margin: 0; max-width: 68ch; font-size: 0.9375rem; font-weight: 600; color: var(--emerald-text, #00674d); }

/* ---------- /pricing additions ---------- */
.dw-trial-row dt { color: var(--emerald-text, #00674d); }
.dw-col { color: var(--emerald-text, #00674d); font-weight: 600; }


/* ---------- Festive hero on /business, /business/restaurants, /business/sellers, /ca-firms ----------
   Turned on by the html class dw-night-page, which the marked DIWALI-2026 head block sets until
   11:59 pm IST on 9 November. Decorations are added by diwali-2026.js. */

.dw-night-page .hero::before {
  background:
    radial-gradient(60% 55% at 50% 8%, rgba(255, 170, 60, 0.30), transparent 70%),
    radial-gradient(35% 40% at 8% 62%, rgba(255, 92, 138, 0.18), transparent 70%),
    radial-gradient(35% 40% at 92% 58%, rgba(47, 224, 168, 0.14), transparent 70%),
    linear-gradient(180deg, #0a0d18 0%, #121427 55%, #1a1530 100%);
}
.dw-night-page .hero::after { display: none; }
.dw-night-page .hero h1 { color: #fffaf0; }
.dw-night-page .hero .status-line { color: #ffd166; }
.dw-night-page .hero .hero-lead { color: rgba(250, 250, 248, 0.82); }
.dw-night-page .hero .business-hero-price { color: rgba(250, 250, 248, 0.7); }
.dw-night-page .hero .dw-hero-offer { color: #ffd166; }
.dw-night-page .site-header .desktop-nav a { color: rgba(250, 250, 248, 0.8); }
.dw-night-page .site-header .desktop-nav a:hover { color: #fff; }
.dw-night-page .hero .hero-grid { position: relative; z-index: 1; }
.dw-night-page .site-header .route-toggle { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.22); box-shadow: none; }
.dw-night-page .site-header .route-toggle a { color: rgba(250, 250, 248, 0.82); }
.dw-night-page .site-header .route-toggle a:hover { color: #fff; }
.dw-night-page .site-header .menu-button { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.22); box-shadow: none; }
.dw-night-page .site-header .menu-icon, .dw-night-page .site-header .menu-icon::before, .dw-night-page .site-header .menu-icon::after { background: #fafaf8; }
.dw-night-page .site-header .menu-button[aria-expanded="true"] .menu-icon { background: transparent; }
.dw-night-page .hero .btn-quiet { background: transparent; color: #fafaf8; border: 1px solid rgba(255, 255, 255, 0.5); box-shadow: none; }
.dw-night-page .hero .btn-quiet:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }


.dw-festive { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.dw-garland { position: absolute; left: 0; right: 0; top: calc(var(--header-h) + 18px); width: 100%; height: 230px; overflow: visible; }
.dw-wire { fill: none; stroke: rgba(255, 230, 190, 0.38); stroke-width: 1.4; }
.dw-wire-back { stroke: rgba(255, 230, 190, 0.22); }
.dw-cap { fill: #4a4a58; }
.dw-bulb .dw-lamp { fill: var(--bulb); }
.dw-bulb .dw-glow { fill: var(--bulb); opacity: 0.38; filter: blur(5px); }
.dw-bulb.c1 { --bulb: #ffb22e; } .dw-bulb.c2 { --bulb: #ff5c8a; } .dw-bulb.c3 { --bulb: #ffe08a; }
.dw-bulb.c4 { --bulb: #2fe0a8; } .dw-bulb.c5 { --bulb: #fff3c4; }
.dw-bulb { animation: dwBlink 1.8s ease-in-out infinite; }
.dw-bulb.p1 { animation-duration: 2.3s; } .dw-bulb.p2 { animation-duration: 1.4s; }
@keyframes dwBlink {
  0%, 100% { opacity: 1; }
  45% { opacity: 1; }
  55% { opacity: 0.22; }
  70% { opacity: 0.9; }
}

.dw-lantern { position: absolute; top: calc(var(--header-h) + 8px); width: 74px; display: none; transform-origin: 50% 0; animation: dwSwing 5.5s ease-in-out infinite; }
.dw-lantern svg { width: 100%; height: auto; display: block; overflow: visible; }
.dw-lantern-l { left: 5%; }
.dw-lantern-r { right: 5%; animation-delay: -2.4s; width: 64px; top: calc(var(--header-h) + 40px); }
@media (min-width: 1000px) { .dw-lantern { display: block; } }
.dw-l-string { stroke: rgba(255, 230, 190, 0.5); stroke-width: 1.4; }
.dw-l-halo { fill: rgba(255, 140, 60, 0.28); filter: blur(14px); animation: dwGlow 2.6s ease-in-out infinite; }
.dw-l-shell { fill: #e2483d; stroke: #ffcf6e; stroke-width: 2; }
.dw-l-core { fill: #ffb347; animation: dwGlow 2.6s ease-in-out infinite; }
.dw-l-top { fill: #c2342c; stroke: #ffcf6e; stroke-width: 2; }
.dw-l-band { fill: #ffcf6e; }
.dw-l-tassel { stroke: #ffcf6e; stroke-width: 1.6; stroke-linecap: round; fill: none; }
@keyframes dwSwing { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes dwGlow { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }

.dw-spark { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff3c4; box-shadow: 0 0 8px 2px rgba(255, 210, 120, 0.7); opacity: 0; transform: scale(var(--s, 1)); animation: dwTwinkle 3s ease-in-out infinite; }
@keyframes dwTwinkle { 0%, 100% { opacity: 0; transform: scale(calc(var(--s, 1) * 0.4)); } 50% { opacity: 0.9; transform: scale(var(--s, 1)); } }

.dw-diyas { display: flex; align-items: flex-end; justify-content: center; gap: 14px; margin-bottom: -6px; }
.dw-diya-svg { width: 64px; height: 56px; overflow: visible; }
.dw-diya-svg.s { width: 46px; height: 40px; }
.dw-flame { fill: #ffb22e; transform-origin: 32px 26px; animation: dwFlicker 0.9s ease-in-out infinite alternate; }
.dw-flame-core { fill: #fff6d8; transform-origin: 32px 20px; animation: dwFlicker 0.7s ease-in-out infinite alternate-reverse; }
.dw-flame-glow { fill: rgba(255, 170, 60, 0.5); filter: blur(8px); animation: dwGlow 1.2s ease-in-out infinite; }
.dw-diya-svg.s .dw-flame { animation-duration: 1.1s; }
.dw-bowl { fill: #d9752e; }
.dw-bowl-rim { stroke: #ffcf6e; stroke-width: 2; }
.dw-bowl-dots { stroke: #ffe08a; stroke-width: 3; stroke-linecap: round; }
@keyframes dwFlicker { 0% { transform: scale(1, 1) skewX(0deg); } 50% { transform: scale(0.92, 1.08) skewX(2deg); } 100% { transform: scale(1.04, 0.95) skewX(-2deg); } }

@media (max-width: 720px) {
  
  .dw-garland { height: 150px; top: calc(var(--header-h) + 6px); }
  .dw-diya-svg { width: 52px; height: 46px; } .dw-diya-svg.s { width: 38px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .dw-bulb, .dw-lantern, .dw-l-halo, .dw-l-core, .dw-spark, .dw-flame, .dw-flame-core, .dw-flame-glow { animation: none !important; }
  .dw-spark { opacity: 0.6; }
}

.dw-night-page .hero .hero-proof, .dw-night-page .hero .hero-detail { color: rgba(250, 250, 248, 0.74); }
.dw-night-page .hero .hook-h1 .hook-line { color: #fffaf0; }
.dw-night-page .hero .hook-h1 .hook-line-2 { color: rgba(250, 250, 248, 0.72); }
.dw-night-page .hero .hero-proof strong, .dw-night-page .hero .hero-detail strong, .dw-night-page .hero .hero-proof b { color: #fffaf0; }
.dw-diyas { animation: dwFadeIn 600ms ease both; }
@keyframes dwFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) {
  .dw-night-page .sellers-hero .dw-diyas { justify-content: flex-start; }
  .dw-night-page .sellers-hero .dw-lantern { display: none; }
}

@media print { .dw-banner { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .dw-banner-btn, .dw-banner-close { transition: none; } }
