/* NeoMoons blog: shared styles for /blog/ and every article */
:root {
  --bg: #F4F5F7; --ink: #1F2933; --ink-2: #52606D; --paper: #ffffff; --paper-2: #F4F5F7; --rule: #E4E7EB;
  --text: #1F2933; --muted: #52606D; --line: #E4E7EB;
  --cyan: #1D4ED8; --blue: #1D4ED8; --violet: #1D4ED8;
  --grad: linear-gradient(#1D4ED8,#1D4ED8);
  --head: "Sora",system-ui,sans-serif; --body: "Inter",system-ui,sans-serif; --hi: "Noto Sans Devanagari","Inter",sans-serif;
  --ease: cubic-bezier(.22,1,.36,1); --radius: 18px; --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.75 var(--body); -webkit-font-smoothing: antialiased; }
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 100; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* Reading progress */
#progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.site-head .logo img { height: 38px; width: auto; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.site-nav a { color: var(--text); text-decoration: none; font: 500 .93rem var(--body); padding: 8px 12px; border-radius: 8px; transition: background .25s, color .25s; }
.site-nav a:hover { background: rgba(31,41,51,.06); }
.site-nav a[aria-current] { color: var(--blue); }
.site-nav .cta { background: var(--grad); color: #fff; font-weight: 600; padding: 9px 16px; margin-left: 8px; white-space: nowrap; }
.site-nav .cta:hover { filter: brightness(1.1); background: var(--grad); }
@media (max-width: 620px) {
  .site-nav a:not(.cta):not(.keep) { display: none; }
  .site-nav a.keep { padding: 8px 6px; }
  .site-nav .cta { margin-left: 2px; padding: 8px 12px; font-size: .85rem; }
  .site-head .wrap { gap: 8px; }
  .site-head .logo img { height: 30px; }
}

/* Dark hero */
.hero { position: relative; overflow: hidden; background: var(--bg); color: var(--text); padding: 56px 0 96px; isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(80px); z-index: -1; animation: float 16s ease-in-out infinite alternate; }
.hero::before { width: 520px; height: 520px; left: -160px; top: -220px; background: rgba(147,197,253,.5); }
.hero::after { width: 480px; height: 480px; right: -140px; bottom: -260px; background: rgba(196,181,253,.5); animation-delay: -6s; }
@keyframes float { to { transform: translate(70px,40px) scale(1.12); } }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 26px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.hero .tag { display: inline-block; font: 600 .78rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.hero h1 { font: 800 clamp(2rem,5vw,3.4rem)/1.14 var(--head); letter-spacing: -.02em; margin: 0 0 18px; max-width: 900px; color: var(--ink); }
.hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: clamp(1.05rem,2vw,1.22rem); color: var(--ink-2); max-width: 760px; margin: 0 0 22px; }
.hero .lede a { color: var(--blue); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--muted); margin: 0; padding: 0; list-style: none; }
.meta a { color: inherit; }
.cover { width: min(var(--wrap), 100% - 32px); margin: -52px auto 0; position: relative; z-index: 2; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 70px -36px rgba(31,41,51,.4); background: #F4F5F7; }
.cover img { width: 100%; }

/* Article layout */
.layout { display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: 56px; padding: 46px 0 70px; align-items: start; }
.toc { position: sticky; top: 96px; font-size: .9rem; max-height: calc(100vh - 120px); overflow: auto; order: 2; }
.toc h2 { font: 700 .78rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
.toc a { display: block; padding: 6px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.4; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--blue); border-color: var(--blue); font-weight: 600; }
.share { padding-left: 1px; margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.share a, .share button { font: 600 .8rem var(--body); color: var(--ink); background: var(--paper-2); border: 1px solid var(--rule); padding: 7px 11px; border-radius: 8px; cursor: pointer; text-decoration: none; }
.share a:hover, .share button:hover { border-color: var(--blue); color: var(--blue); }
article { min-width: 0; }
article h2 { font: 700 clamp(1.45rem,3vw,1.9rem)/1.28 var(--head); letter-spacing: -.01em; margin: 2.2em 0 .6em; color: var(--ink); }
article h3 { font: 700 1.16rem/1.35 var(--head); margin: 1.7em 0 .4em; }
article p { margin: 0 0 1.1em; }
article ul, article ol { padding-left: 1.3em; margin: 0 0 1.2em; }
article li { margin-bottom: .45em; }
article figure { margin: 1.8em 0; }
article figure img { width: 100%; border-radius: 12px; border: 1px solid var(--rule); }
figcaption { font-size: .88rem; color: var(--ink-2); margin-top: 8px; }
.answer { background: #F4F5F7; border: 1px solid #E4E7EB; border-left: 4px solid var(--blue); border-radius: 12px; padding: 20px 22px; margin-bottom: 1.8em; }
.answer .label { display: block; font: 700 .78rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.answer p:last-child { margin: 0; }
.note { background: var(--paper-2); border-radius: 12px; padding: 16px 20px; font-size: .96rem; margin: 1.5em 0; }
.note p:last-child { margin: 0; }

/* Tables */
.table-scroll { overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--rule); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
caption { caption-side: top; text-align: left; font-weight: 600; padding: 12px 14px; background: var(--paper-2); border-bottom: 1px solid var(--rule); }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--rule); }
thead th { background: #fbfcff; font-family: var(--head); font-size: .88rem; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 600; }
.table-compare { min-width: 620px; }

/* Cost calculator */
.calc { background: var(--bg); border: 1px solid var(--rule); color: var(--text); border-radius: var(--radius); padding: 24px; margin: 1.8em 0; }
.calc h3 { color: var(--ink); margin: 0 0 4px; }
.calc > p { color: var(--muted); font-size: .94rem; margin-bottom: 18px; }
.calc label { display: block; font-size: .92rem; margin-bottom: 14px; }
.calc label b { float: right; color: var(--cyan); font-weight: 600; }
.calc input[type=range] { width: 100%; accent-color: #2563eb; margin-top: 6px; }
.calc-out { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 8px; }
.calc-out div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: .84rem; color: var(--muted); line-height: 1.35; }
.calc-out b { display: block; font: 700 1.3rem/1.3 var(--head); color: var(--ink); margin-top: 4px; }
.calc-out .win b { color: #1D4ED8; }
@media (max-width: 560px) { .calc-out { grid-template-columns: 1fr; } }

/* Checklist */
.checks { list-style: none; padding: 0; counter-reset: q; }
.checks li { counter-increment: q; position: relative; padding: 2px 0 2px 44px; margin-bottom: 1em; }
.checks li::before { content: counter(q); position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font: 700 .86rem var(--head); color: #fff; background: var(--grad); }

/* Hindi block */
.hindi { font-family: var(--hi); background: #F4F5F7; border: 1px solid #E4E7EB; border-radius: 12px; padding: 20px 22px; margin: 2.2em 0; line-height: 1.85; }
.hindi h2 { font: 700 1.3rem/1.4 var(--hi); margin: 0 0 8px; }
.hindi p:last-child { margin: 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 15px 34px 15px 0; font: 600 1.04rem/1.45 var(--head); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 11px; font-size: 1.5rem; color: var(--blue); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--ink-2); }

/* Product call to action */
.promo { position: relative; overflow: hidden; border: 1px solid #E4E7EB; background: #F4F5F7; color: var(--text); border-radius: var(--radius); padding: 28px; margin: 2.4em 0; }
.promo::after { content: ""; position: absolute; width: 320px; height: 320px; right: -110px; top: -150px; border-radius: 50%; background: rgba(125,211,252,.3); filter: blur(60px); }
.promo > * { position: relative; z-index: 1; }
.promo h2 { font: 700 1.4rem/1.3 var(--head); color: var(--ink); margin: 0 0 8px; }
.promo p { color: var(--ink-2); margin: 0 0 16px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 .96rem var(--body); text-decoration: none; padding: 11px 18px; border-radius: 10px; transition: transform .25s var(--ease), filter .25s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-a { background: var(--grad); color: #fff; }
.btn-b { color: var(--ink); background: #fff; border: 1px solid var(--rule); }
.sources { font-size: .92rem; color: var(--ink-2); }
.sources h2 { font-size: 1.15rem; }

/* Blog index */
.post-card { display: grid; grid-template-columns: 1.1fr 1fr; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: #fff; margin: -52px 0 60px; position: relative; z-index: 2; box-shadow: 0 30px 70px -32px rgba(31,41,51,.5); transition: transform .4s var(--ease), box-shadow .4s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 36px 80px -30px rgba(31,41,51,.6); }
.post-card img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 28px; }
.post-card .kicker { font: 600 .76rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.post-card h2 { font: 700 1.5rem/1.3 var(--head); margin: 8px 0 10px; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a::after { content: ""; position: absolute; inset: 0; }
.post-card p { color: var(--ink-2); margin: 0 0 12px; }
.post-card .when { font-size: .86rem; }
@media (max-width: 780px) { .post-card { grid-template-columns: 1fr; } }

/* Footer */
.site-foot { background: var(--bg); border-top: 1px solid var(--rule); color: var(--muted); padding: 44px 0 30px; font-size: .92rem; }
.site-foot .grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 26px; }
.site-foot img { height: 36px; width: auto; margin-bottom: 10px; }
.site-foot p { max-width: 380px; margin: 0; }
.site-foot h2 { font: 600 .92rem var(--head); color: var(--ink); margin: 0 0 8px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 4px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--blue); }
.site-foot .bottom { max-width: none; border-top: 1px solid var(--line); margin-top: 26px; padding-top: 16px; font-size: .84rem; }

/* Reveal runs only when JS is on, so content is never hidden from readers or crawlers */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .layout { grid-template-columns: minmax(0,1fr); gap: 26px; padding-top: 30px; }
  .toc { position: static; order: 0; max-height: none; background: var(--paper-2); border-radius: 12px; padding: 16px 18px; }
  .toc ol { border: 0; }
  .toc a { padding: 4px 0; border: 0; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
}
@media print { .site-head, .toc, .site-foot, #progress, .calc, .promo { display: none; } }

/* Moonlight: no glows */
.hero::before, .hero::after, .promo::after { display: none; }
