/* page-specific additions for home. Generated. */
/* ============ v3 additions: canonical service-page template ============ */
/* radius tokens referenced by the v2 rules (def-card, feat, qa, stat-card, rank-card…) but never declared in the homepage CSS */
:root{--r-md:14px;--r-lg:22px}
/* no-JS fallback for reveal animations — <head> swaps html.no-js → html.js before paint */
html:not(.js) .rv{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* --- hero: 50/50 split when a video card sits on the right --- */
.sd-hero.has-video{grid-template-columns:1fr 1fr;gap:clamp(2rem,4vw,3.4rem)}
.sd-hero.has-video h1{font-size:clamp(2.1rem,3.9vw,3.25rem)}
.sd-hero .hl{color:var(--green-deep)}
.sd-media{display:grid;gap:1rem}

/* --- video card (click-to-play facade; iframe injected on click only) --- */
.vid-card{position:relative;background:var(--card);border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow-md);padding:.85rem}
.vid-frame{position:relative;aspect-ratio:16/9;border-radius:15px;overflow:hidden;background:var(--dark);isolation:isolate}
.vid-facade{position:absolute;inset:0;width:100%;height:100%;border:0;padding:0;margin:0;cursor:pointer;background:var(--dark) center/cover no-repeat;display:flex;align-items:center;justify-content:center;font-family:var(--font-body);color:#fff;text-align:left}
.vid-facade::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(33,40,43,.08) 35%,rgba(33,40,43,.88))}
.vid-play{position:relative;width:76px;height:76px;border-radius:50%;background:var(--lime);color:var(--ink);display:flex;align-items:center;justify-content:center;box-shadow:0 14px 34px rgba(140,198,63,.48);transition:transform .2s}
.vid-play svg{width:30px;height:30px;margin-left:5px}
.vid-facade:hover .vid-play,.vid-facade:focus-visible .vid-play{transform:scale(1.08)}
.vid-facade:focus-visible{outline:2.5px solid var(--lime);outline-offset:-4px;border-radius:15px}
.vid-title{position:absolute;left:0;right:0;bottom:0;padding:.9rem 1.1rem;display:flex;flex-direction:column;gap:.25rem}
.vid-title small{font-family:var(--font-mono);font-size:.64rem;letter-spacing:.12em;text-transform:uppercase;color:var(--lime-soft)}
.vid-title b{font-weight:600;font-size:.9rem;line-height:1.3;color:#fff}
.vid-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.vid-foot{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-top:.75rem;padding:0 .3rem;font-family:var(--font-mono);font-size:.68rem;color:var(--mute);letter-spacing:.06em}
.vid-foot b{color:var(--green-deep);font-weight:600}

/* --- stat-stack as a 3-across row under the video --- */
.stat-stack.stat-row{grid-template-columns:repeat(3,1fr)}
.stat-stack.stat-row .stat-card{flex-direction:column;align-items:flex-start;gap:.1rem;padding:.95rem 1.05rem}
.stat-stack.stat-row .stat-card b{font-size:1.6rem;line-height:1.1}
.stat-stack.stat-row .stat-card span{font-size:.78rem}

/* --- proof: the terminal scoreboard (.term) — the one place lime text is used on dark --- */
.term{background-color:#15191B;background-image:linear-gradient(rgba(140,198,63,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(140,198,63,.045) 1px,transparent 1px);background-size:34px 34px;border:1px solid #2C3438;border-radius:var(--radius);overflow:hidden;box-shadow:0 24px 60px rgba(21,25,27,.28);color:#C7D0CC}
.term-bar{display:flex;align-items:center;gap:8px;background:#1D2326;border-bottom:1px solid #2C3438;padding:12px 18px}
.term-bar i{width:11px;height:11px;border-radius:50%;background:#2C3438;display:inline-block}
.term-bar i.g{background:var(--lime)}
.term-title{font-family:var(--font-mono);font-size:.72rem;color:#8A969B;margin-left:8px;letter-spacing:.04em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.term-body{padding:26px 28px 24px;font-family:var(--font-mono)}
.term-cmd{font-size:.82rem;color:#C7D0CC;margin-bottom:24px;word-break:break-word}
.term-cmd .ps{color:var(--lime);font-weight:600}
.term-grid{display:grid;grid-template-columns:1fr 1fr;gap:34px}
.term-col .site{font-size:.8rem;font-weight:600;color:var(--lime);letter-spacing:.06em;margin:0 0 16px;padding-bottom:12px;border-bottom:1px dashed #2C3438}
.term-col.alt .site{color:var(--lime-soft)}
.term-col .site small{color:#8A969B;font-weight:500;letter-spacing:.1em}
.trow{display:flex;align-items:baseline;gap:10px;padding:7px 0;font-size:.8rem}
.trow .k{color:#8A969B;letter-spacing:.08em;text-transform:uppercase;font-size:.68rem;font-weight:500;flex:none;max-width:48%}
.trow .fill{flex:1;min-width:18px;border-bottom:1px dotted #3A4448;transform:translateY(-4px)}
.trow .v{color:var(--lime);font-weight:600;font-size:.94rem;flex:none;max-width:58%;text-align:right}
.term-col.alt .trow .v{color:var(--lime-soft)}
.term-status{margin-top:24px;font-size:.74rem;color:#8A969B;letter-spacing:.04em}
.term-status b{color:var(--lime);font-weight:600}
.term-note{font-family:var(--font-mono);font-size:.72rem;color:var(--mute);letter-spacing:.05em;margin:-1.2rem 0 1.2rem}

/* --- guide zone: full-width article with a capped reading column; .wide components break out --- */
.art.art-flow{max-width:none}
.art.art-flow > .g-sec > :not(.wide){max-width:min(72ch,700px)}
.art > .g-sec + .g-sec{margin-top:2.6rem;padding-top:1.8rem;border-top:1px dashed var(--line)}
.art h2{font-size:clamp(1.55rem,3vw,2.05rem);line-height:1.15;margin:3rem 0 1rem;position:relative;padding-left:1.1rem}
.art h2::before{content:"";position:absolute;left:0;top:.22em;bottom:.22em;width:5px;border-radius:3px;background:var(--ink)}
.art > .g-sec > h2:first-child{margin-top:0}
.art .svc h2,.art .svc h3,.art .feat h3{font-size:1.1rem;line-height:1.25;margin:0 0 .45rem;padding-left:0}
.art .svc h2::before,.art .svc h3::before,.art .feat h3::before{display:none}
.art .svc p,.art .dont-card p{margin:0}
.art .feat p + p{margin-top:.65rem}
.art .svc-grid,.art .feat-rows,.art .rank-grid,.art .qa-grid{margin-top:1.4rem}
.art .do-dont{grid-template-columns:1fr;margin-top:1.2rem}
.art .dont-card ul{font-weight:600;color:var(--ink)}
.art .audit-chips span{color:var(--ink)}
.art .benefit-cols{margin-bottom:1rem}
.cta-inline .acts{display:flex;gap:.6rem;flex-wrap:wrap}
.gchip.on{background:var(--ink);border-color:var(--ink);color:#fff}
.gchip.on b{color:var(--lime-soft)}
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:1.2rem 0}

/* --- faq: live questions keep a heading level inside <summary> --- */
.faq summary h3{font:inherit;color:inherit;letter-spacing:0;line-height:inherit;margin:0}

/* --- free-analysis form beside the cta-band --- */
.analysis-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(1.6rem,4vw,3rem);align-items:stretch}
.analysis-grid .cta-band{display:flex;flex-direction:column;justify-content:center}
.form-intro{margin-bottom:1.4rem}
.form-intro h3{font-size:1.3rem;margin-bottom:.3rem}
.form-intro p{font-size:.92rem}
.form-hint{font-size:.82rem;color:var(--mute);align-self:center}

/* --- responsive (mirrors the 1020 / 860 / 640 breakpoints of the homepage) --- */
@media (max-width:1020px){
  .sd-hero.has-video{grid-template-columns:1fr}
  .sd-media{max-width:760px}
}
@media (max-width:860px){
  .term-grid{grid-template-columns:1fr;gap:26px}
  .analysis-grid{grid-template-columns:1fr}
}
@media (max-width:640px){
  .term-body{padding:20px 16px}
  .trow{flex-wrap:wrap;row-gap:2px}
  .trow .k{max-width:none}
  .trow .v{max-width:100%}
  .stat-stack.stat-row .stat-card{padding:.75rem .6rem}
  .stat-stack.stat-row .stat-card b{font-size:1.2rem}
  .stat-stack.stat-row .stat-card span{font-size:.7rem}
  .vid-play{width:60px;height:60px}
  .vid-play svg{width:24px;height:24px}
  .vid-foot{flex-direction:column;align-items:flex-start;gap:.2rem}
  .art h2{padding-left:.9rem}
  .cta-inline .acts{width:100%}
  .cta-inline .acts .btn{flex:1;justify-content:center}
}

/* ============ v3.1 additions (SEO page): pricing group titles + live heading levels inside cards ============ */
.price-group{margin:3.2rem 0 1.3rem;max-width:780px}
.price-group h2{font-size:clamp(1.4rem,2.6vw,1.85rem)}
.price-group p{margin-top:.6rem;font-size:.97rem}
/* plan rows that carry inline sample links: keep the text as one flex item so it wraps, and let long URLs break */
.plan li > span{min-width:0}
.plan li a{overflow-wrap:anywhere}
.case-card .case-h{font-size:1.02rem;line-height:1.3;margin-top:-.2rem}
.values-stats{margin-bottom:1.4rem}
.art .qa h2{font-size:.98rem;line-height:1.3;margin:0 0 .5rem;padding-left:0}
.art .qa h2::before{display:none}
.art > .g-sec > h3:first-child{margin-top:0}

/* ============ v3.2 (QA pass): contrast + readable-size floors ============ */
/* muted caption token darkened: #71808A sat at ~4.1:1 on white/paper; #62717B is ~5:1 */
:root{--green-deep:#467B12;--mute:#62717B}
/* lime glyphs are reserved for dark bands — the rating stars sit on white cards, so they use the AA green */
.testi-stars{color:var(--green-deep)}
/* readable text inside cards/lists never drops below 15px at any breakpoint (root = 16px, so .87–.93rem rendered at 14–14.9px) */
.svc p{font-size:max(15px,.88rem)}
.plan ul{font-size:max(15px,.87rem)}
.case-card p{font-size:max(15px,.93rem)}
.testi q{font-size:max(15px,.95rem)}
.faq details p{font-size:max(15px,.94rem)}
.value p{font-size:max(15px,.9rem)}
.qa p{font-size:max(15px,.92rem)}
.feat p{font-size:max(15px,.94rem)}
.form-intro p{font-size:max(15px,.92rem)}
.addon-row{font-size:max(15px,.9rem)}
.price-group p{font-size:max(15px,.97rem)}
.stat-label{font-size:max(15px,.92rem)}
.hero-note{font-size:max(15px,.95rem)}
.nav-links a{font-size:max(15px,.93rem)}
.foot-brand p,footer ul{font-size:max(15px,.9rem)}
.field input,.field textarea{font-size:max(15px,.95rem)}
/* labels, hints and chips: 13–14px floor */
.cta-inline .t small{font-size:max(14px,.8rem)}
.plan-for,.field label{font-size:max(14px,.85rem)}
.form-hint{font-size:max(14px,.82rem)}
.trust-item{font-size:max(14px,.9rem)}
.mq-chip{font-size:max(14px,.88rem)}
.audit-chips span{font-size:max(14px,.82rem)}
.stat-card span{font-size:max(14px,.86rem)}
.testi-role{font-size:max(13px,.78rem)}
.rank-card .ext{font-size:max(13px,.8rem);color:var(--mute)}
.stat-stack.stat-row .stat-card span{font-size:max(12.5px,.78rem)}

/* ============ shared chrome (identical on every CMBD page) ============ */
/* AA tokens: #467B12 = 5.1:1 on white / 4.6:1 on leaf · #62717B = 5.0:1 on paper */
:root{--green-deep:#467B12;--mute:#62717B}
.testi-stars{color:var(--green-deep)}
.lang-chip{white-space:nowrap} /* the EN | বাং chip broke onto two lines at 375px */
@media (max-width:640px){
  /* phone nav: brand + burger + EN|বাং chip did not fit in 345px (name wrapped to 3 lines) */
  .nav-inner{gap:.8rem}
  .brand{gap:.5rem}
  .brand-mark{width:38px;height:38px}
  .brand-name{font-size:.95rem}
  .lang-chip{padding:.45em .65em;font-size:.66rem}
}

/* ===== guide zone: article + sticky aside (fills the empty right column) ===== */
.guide-wrap{display:grid;grid-template-columns:minmax(0,1fr) 316px;gap:clamp(1.8rem,3.4vw,3rem);align-items:start}
.guide-wrap .art{max-width:72ch}
.guide-aside{position:sticky;top:158px;display:grid;gap:1rem}
.gcard{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:1.25rem 1.3rem;box-shadow:var(--shadow-sm)}
.gcard h4{font-family:var(--font-mono);font-size:.7rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--green-deep);margin:0 0 .8rem}
.gcard p{font-size:.95rem;margin:0 0 .9rem}
.gcard .btn{width:100%;justify-content:center}
.gcard .btn + .btn{margin-top:.5rem}
.gfacts{list-style:none;margin:0;padding:0;display:grid;gap:.55rem}
.gfacts li{display:flex;justify-content:space-between;gap:.8rem;align-items:baseline;font-size:.92rem;border-bottom:1px dashed var(--line);padding-bottom:.5rem}
.gfacts li:last-child{border-bottom:0;padding-bottom:0}
.gfacts b{font-family:var(--font-mono);font-weight:600;color:var(--ink);white-space:nowrap}
.gcard.dark{background:var(--dark);border-color:var(--dark-line)}
.gcard.dark h4{color:var(--lime)}
.gcard.dark p{color:#B9C4C6}
.glinks{list-style:none;margin:0;padding:0;display:grid;gap:.45rem}
.glinks a{font-size:.92rem;color:var(--ink);text-decoration:none;display:flex;gap:.5em;align-items:baseline}
.glinks a::before{content:"▲";font-size:.62em;color:var(--green-deep)}
.glinks a:hover{color:var(--green-deep)}
@media (max-width:1020px){
  .guide-wrap{grid-template-columns:1fr}
  .guide-aside{position:static;grid-template-columns:repeat(2,1fr);margin-top:2rem}
}
@media (max-width:640px){ .guide-aside{grid-template-columns:1fr} }

/* ===== real images from the live page: article figures, logo marquee, client photos, case visuals ===== */
.art-fig{margin:1.6rem 0;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--card)}
.art-fig img{width:100%;display:block}
.art-fig figcaption{font-family:var(--font-mono);font-size:.72rem;color:var(--mute);padding:.7rem 1rem;border-top:1px solid var(--line)}
.testi-av{overflow:hidden}
.testi-av img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.mq-chip img{height:26px;width:auto;object-fit:contain;filter:grayscale(1);opacity:.75;transition:filter .2s,opacity .2s}
.mq-chip:hover img{filter:none;opacity:1}
.case-fig{margin:.2rem -.3rem;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--paper)}
.case-fig img{width:100%;display:block}

/* ===== video section: moved out of the hero so the headline + CTA own the fold ===== */
.watch-grid{display:grid;grid-template-columns:.92fr 1.08fr;gap:clamp(1.8rem,3.6vw,3.2rem);align-items:center}
.watch-grid .check-list{margin-top:1.2rem}
@media (max-width:860px){.watch-grid{grid-template-columns:1fr;gap:1.8rem}}

/* ===== case cards: the real Ahrefs / analytics screenshots above the trend line ===== */
.case-shot{margin:.1rem 0 .2rem;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--paper)}
.case-shot img{width:100%;display:block}
/* ===== client marquee: real client logos instead of text chips ===== */
.mq-chip img{height:24px;width:auto;max-width:120px;object-fit:contain;filter:grayscale(1);opacity:.72;transition:filter .2s,opacity .2s}
.mq-chip:hover img{filter:none;opacity:1}
.mq-chip.has-logo{padding:.45em 1em}
.mq-chip.has-logo::before{display:none}