/* =====================================================================
   NEW DESIGN (second site): home page, feature cards, one feature per page.
   Loaded after style.css, which still styles the features themselves.
   ===================================================================== */
:root { --royal: #241446; --royal-2: #3a2470; --royal-3: #54359a; --gold: #d4ae3c; --gold-2: #f3d77c; --page: #faf6ee; }
body { padding-bottom: 72px; }
@media (min-width: 860px) { body { padding-bottom: 0; } }
.h-wrap { max-width: 1100px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
body[data-view="home"] #featureView { display: none; }
body[data-view="feature"] #homeView { display: none; }

/* header */
.h-header { position: sticky; top: 0; z-index: 20; background: rgba(36, 20, 70, .94); backdrop-filter: blur(10px); color: #fff; }
.h-nav { display: flex; align-items: center; gap: 16px; height: 64px; }
.h-logo { color: #fff; font-family: var(--font-royal); font-weight: 700; font-size: 19px; text-decoration: none; display: flex; align-items: center; gap: 10px; white-space: nowrap; min-width: 0; }
.h-logo > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.h-mark { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--gold), var(--gold-2)); display: grid; place-items: center; font-size: 20px; }
.h-links { display: none; gap: 22px; margin-left: auto; font-size: 15px; }
.h-links a { color: #d9cff2; text-decoration: none; }
.h-links a:hover { color: #fff; }
.h-lang { flex-shrink: 0; margin-left: auto; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); color: #fff; border-radius: 999px; padding: 7px 14px; font: 600 14px "Hind Siliguri", "Inter", sans-serif; cursor: pointer; }
.h-lang:hover { background: rgba(255,255,255,.2); }
@media (min-width: 860px) { .h-links { display: flex; } .h-lang { margin-left: 8px; } }
@media (max-width: 480px) { .h-logo { font-size: 16px; } }

/* hero */
.h-hero { position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 500px at 80% -10%, #6b47c4 0%, transparent 60%), radial-gradient(800px 400px at 0% 100%, #3d1f63 0%, transparent 60%), var(--royal); }
.h-hero::before { content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: radial-gradient(var(--gold-2) 1px, transparent 1.5px); background-size: 26px 26px; }
.h-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 44px; padding-bottom: 64px; align-items: center; }
@media (min-width: 900px) { .h-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); padding-top: 72px; padding-bottom: 88px; } }
.h-pill { display: inline-block; background: rgba(212,174,60,.16); color: var(--gold-2); border: 1px solid rgba(212,174,60,.4); border-radius: 999px; padding: 5px 14px; font-size: 14px; font-weight: 600; }
.h-h1 { font-family: var(--font-royal); font-size: clamp(34px, 6.5vw, 62px); line-height: 1.1; margin: 16px 0 14px; color: #fff; }
.h-h1 em { font-style: normal; background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[lang="bn"] .h-h1 { line-height: 1.3; }
.h-sub { color: #d6cdee; font-size: 18px; margin: 0 0 26px; max-width: 520px; }
.h-quick { display: flex; gap: 8px; background: #fff; border-radius: 16px; padding: 6px; max-width: 520px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.h-quick input { flex: 1; min-width: 0; height: 52px; border: 0; background: transparent; font-size: 18px; font-weight: 500; }
.h-quick input:focus { box-shadow: none; }
.h-btn-gold { flex-shrink: 0; border: 0; border-radius: 12px; padding: 0 20px; font: 700 16px var(--font-body); color: var(--royal); cursor: pointer; white-space: nowrap;
  background: linear-gradient(135deg, var(--gold), var(--gold-2)); box-shadow: 0 6px 18px rgba(212,174,60,.35); transition: transform .15s; }
.h-btn-gold:hover { transform: translateY(-1px); }
.h-err { color: #ffc2c2; font-size: 14px; margin: 8px 0 0; min-height: 1px; }
.h-trust { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; font-size: 14px; color: #c9bfe4; }
.h-trust span::before { content: "✓ "; color: var(--gold-2); font-weight: 700; }

/* hero certificate */
.h-cert-stage { position: relative; display: flex; justify-content: center; perspective: 1200px; padding-bottom: 20px; }
.h-cert { position: relative; width: min(100%, 440px); background: #fdf6e3; color: #3b2a12; border-radius: 10px; padding: 34px 24px 44px; text-align: center; overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,.45), inset 0 0 0 8px #fdf6e3, inset 0 0 0 10px var(--gold), inset 0 0 0 14px #fdf6e3, inset 0 0 0 15px #e2c977;
  transform: rotateY(-8deg) rotateX(4deg); transition: transform .6s; }
.h-cert:hover { transform: none; }
.h-cert::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 45%, transparent 60%); transform: translateX(-100%); animation: h-shine 4.5s ease-in-out infinite; }
@keyframes h-shine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.h-crown { font-size: 46px; display: inline-block; animation: h-float 3s ease-in-out infinite; }
@keyframes h-float { 50% { transform: translateY(-6px); } }
.h-cert small { display: block; letter-spacing: .14em; font-size: 11px; color: #8a7444; text-transform: uppercase; margin-top: 4px; }
html[lang="bn"] .h-cert small { letter-spacing: 0; font-size: 13px; }
.h-decree { font-style: italic; color: #7a6338; font-size: 14px; margin: 10px 0 4px; }
.h-cert h2 { font-family: var(--font-royal); color: var(--royal); font-size: clamp(24px, 4vw, 30px); line-height: 1.2; margin: 0 0 16px; word-break: break-word; }
.h-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.h-facts div { background: rgba(212,174,60,.13); border-radius: 10px; padding: 7px; font-size: 13px; }
.h-facts b { display: block; font-size: 14px; }
.h-seal { width: 56px; height: 56px; margin: 14px auto 0; border-radius: 50%; background: #a3203a; color: var(--gold-2); display: grid; place-items: center; font-size: 22px; box-shadow: 0 0 0 4px rgba(163,32,58,.2); }
.h-more { position: relative; z-index: 1; margin-top: 12px; border: 0; background: none; color: var(--royal-3); font: 600 14px var(--font-body); text-decoration: underline; cursor: pointer; }
.h-cert-actions { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.h-chip { border: 0; border-radius: 999px; padding: 10px 16px; font: 600 14px var(--font-body); cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,.25); white-space: nowrap; text-decoration: none; }
.h-chip.wa { background: #1fa855; color: #fff; }
.h-chip.fb { background: #1877f2; color: #fff; }
.h-chip.dl { background: #fff; color: var(--royal); }
@media (max-width: 480px) { .h-cert { transform: none; } .h-btn-gold { padding: 0 14px; } .h-chip { padding: 9px 12px; } }

/* sections */
.h-block { padding: 64px 0 8px; }
.h-eyebrow { color: var(--royal-3); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; text-align: center; margin: 0; }
html[lang="bn"] .h-eyebrow { letter-spacing: 0; font-size: 15px; }
.h-title { font-family: var(--font-royal); text-align: center; font-size: clamp(26px, 4.5vw, 38px); color: var(--royal); margin: 6px 0 8px; line-height: 1.25; }
.h-lead { text-align: center; color: var(--muted); margin: 0 auto 32px; max-width: 560px; }

/* feature cards */
.h-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.h-feat { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; cursor: pointer; text-align: left; padding: 0; font: inherit; color: inherit; transition: transform .2s, box-shadow .2s; }
.h-feat:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(36,20,70,.12); }
.h-feat:focus-visible { outline: 3px solid var(--royal-3); outline-offset: 2px; }
.h-art { height: 110px; display: grid; place-items: center; font-size: 54px; }
.h-body { padding: 14px 18px 18px; }
.h-feat h3 { margin: 0 0 4px; font-size: 18px; }
.h-feat p { margin: 0 0 10px; color: var(--muted); font-size: 14.5px; }
.h-go { font-weight: 700; font-size: 14px; color: var(--royal-3); }
.h-badge { position: absolute; top: 12px; right: 12px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--royal); }
.a0 { background: linear-gradient(135deg, #2f2161, #6b47c4); }
.a1 { background: linear-gradient(135deg, #ffe0b3, #ffc6a8); }
.a2 { background: linear-gradient(135deg, #d6c8ff, #b7a6f5); }
.a3 { background: linear-gradient(135deg, #ffd1dc, #f7b2c4); }
.a4 { background: linear-gradient(135deg, #c7ecdc, #9fdcc2); }
.a5 { background: linear-gradient(135deg, #bfe3f5, #93cbe8); }
.a6 { background: linear-gradient(135deg, #f6e4b0, #ecd086); }
.a7 { background: linear-gradient(135deg, #2f2161, #54359a); }
.a8 { background: linear-gradient(135deg, #ffe3a3, #f8c75c); }

/* steps */
.h-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.h-step { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; text-align: center; }
.h-ico { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 12px; display: grid; place-items: center; font-size: 30px; background: var(--gold-soft); }
.h-step h3 { margin: 0 0 4px; font-size: 17px; }
.h-step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* shop */
.h-shop { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px 16px; }
.h-product { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; gap: 18px; align-items: center; }
.h-product.best { border: 2px solid var(--gold); }
.h-best { position: absolute; top: -12px; left: 20px; background: var(--gold); color: var(--royal); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.h-thumb { flex-shrink: 0; width: 96px; height: 72px; border-radius: 8px; background: #fdf6e3; box-shadow: inset 0 0 0 3px #fdf6e3, inset 0 0 0 5px var(--gold); display: grid; place-items: center; font-size: 28px; }
.h-thumb.tall { width: 72px; height: 100px; }
.h-product h3 { margin: 0; font-size: 17px; }
.h-product p { margin: 2px 0 10px; color: var(--muted); font-size: 14px; }
.h-price { font-family: var(--font-royal); font-size: 26px; color: var(--royal); font-weight: 700; margin-right: 10px; }
.h-btn-dark { border: 0; border-radius: 10px; padding: 10px 16px; background: var(--royal); color: #fff; font: 600 14px var(--font-body); cursor: pointer; }
.h-btn-dark:hover { background: var(--royal-2); }

/* youtube */
.h-yt { margin-top: 64px; background: var(--royal); color: #fff; border-radius: 24px; padding: 32px 22px; display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .h-yt { grid-template-columns: 1fr 1.3fr; padding: 40px; } }
.h-yt h2 { font-family: var(--font-royal); margin: 0 0 8px; font-size: 28px; line-height: 1.25; }
.h-yt p { color: #d0c6ea; margin: 0 0 18px; }
.h-btn-red { display: inline-flex; gap: 8px; align-items: center; background: #ff0033; color: #fff; text-decoration: none; border-radius: 12px; padding: 12px 18px; font-weight: 700; }
.h-shorts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.h-short { aspect-ratio: 9 / 16; border-radius: 14px; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 10px; font-size: 13px; font-weight: 600; color: #fff; text-decoration: none; line-height: 1.3; }
.h-short::before { content: "▶"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,.45); display: grid; place-items: center; font-size: 16px; }
.s1 { background: linear-gradient(160deg, #8a5a2b, #2b1a0e); }
.s2 { background: linear-gradient(160deg, #3f6e8f, #102130); }
.s3 { background: linear-gradient(160deg, #7a2a4f, #250b18); }

/* one feature per page */
.h-feature-view { max-width: 820px; padding-top: 20px; }
.h-back { border: 1px solid var(--line); background: #fff; color: var(--royal); border-radius: 999px; padding: 8px 16px; font: 600 15px var(--font-body); cursor: pointer; }
.h-back:hover { background: #f1ecfa; }
.h-panel-title { font-family: var(--font-royal); color: var(--royal); font-size: clamp(26px, 5vw, 34px); line-height: 1.25; margin: 16px 0; }

.h-footer { margin-top: 64px; padding: 28px 0 32px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 14px; }
.h-footer p { margin: 0 0 8px; }

/* phone menu */
.h-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(36,20,70,.06); }
.h-bottom button { border: 0; background: none; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 1px; cursor: pointer; padding: 2px 0; }
.h-bottom span { font-size: 21px; line-height: 1.2; }
.h-bottom b { font: 600 11px var(--font-body); }
html[lang="bn"] .h-bottom b { font-size: 12px; }
.h-bottom button.on b { color: var(--royal-3); }
@media (min-width: 860px) { .h-bottom { display: none; } }
.toast { bottom: 88px; }
@media (min-width: 860px) { .toast { bottom: 24px; } }

.h-confetti { position: fixed; top: -20px; z-index: 40; font-size: 20px; pointer-events: none; animation: h-fall linear forwards; }
@keyframes h-fall { to { transform: translateY(110vh) rotate(540deg); opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .h-cert::after, .h-crown { animation: none; } .h-cert { transform: none; } }

/* ad spaces (see ads.js) */
.ad-slot { max-width: 760px; margin: 48px auto 0; text-align: center; }
.feature-ad { margin-top: 56px; }
.ad-label { margin: 0 0 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
html[lang="bn"] .ad-label { letter-spacing: 0; font-size: 12px; }
.ad-demo { height: 100px; border: 2px dashed #cfc4ad; border-radius: 12px; display: grid; place-items: center; color: var(--muted); font-size: 14px; background: #fffdf7; }
.h-sponsor { text-decoration: none; }
.h-sponsor-art { background: repeating-linear-gradient(45deg, #fff4d6, #fff4d6 12px, #ffecbf 12px, #ffecbf 24px); }

/* article cards (home page and article pages) */
.article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.article-card { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s; }
.article-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(36,20,70,.1); }
.article-card-emoji { flex-shrink: 0; width: 56px; height: 56px; border-radius: 14px; background: var(--gold-soft); display: grid; place-items: center; font-size: 28px; }
.article-card-text b { display: block; font-size: 16px; line-height: 1.35; margin-bottom: 4px; color: var(--royal); }
.article-card-text span { display: block; font-size: 14px; color: var(--muted); line-height: 1.5; }
.h-center { text-align: center; margin-top: 18px; }
.h-link-btn { display: inline-block; text-decoration: none; padding: 12px 20px; }
.fact-link { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--royal-3); }
.footer-links { margin-bottom: 10px !important; }
.footer-links a { color: var(--muted); }
