/* ============================================================================
   Payonclick India — content pages (service landing pages + blog)
   ----------------------------------------------------------------------------
   Loaded AFTER style.css and pages.css by every page that _build/build.py
   generates. Uses only the design tokens declared in style.css (--bg-*,
   --text-*, --accent, --border, --radius), so light mode keeps working through
   the same body.light-mode token swap as the rest of the site.
   ============================================================================ */

/* ---- Breadcrumb ---------------------------------------------------------- */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    list-style: none;
    margin-bottom: 18px;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.breadcrumb li + li::before { content: '/'; margin-right: 6px; opacity: 0.6; }
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.page-hero .hero-btns { justify-content: center; margin: 28px 0 0; }

.hero-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    margin-top: 22px;
    list-style: none;
    font-size: 0.88rem;
    color: var(--text-secondary);
}
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points i { color: var(--green); font-size: 0.8rem; }

/* ---- Two-column layout: article + sticky aside --------------------------- */
.lp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
    align-items: start;
}
.lp-aside {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.aside-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.aside-card h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 14px;
}
.aside-card p { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.6; }
.aside-card ul { list-style: none; }
.aside-card li a {
    display: block;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--text-secondary);
    text-decoration: none;
}
.aside-card li a:hover { background: rgba(99,102,241,0.08); color: var(--accent); }
.aside-card .btn + .btn { margin-top: 10px; }

/* ---- Prose (Markdown output) --------------------------------------------- */
.prose { color: var(--text-secondary); font-size: 1rem; line-height: 1.85; min-width: 0; }
.prose > * + * { margin-top: 18px; }
.prose h2 {
    color: var(--text-primary);
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    font-weight: 800;
    line-height: 1.25;
    margin-top: 52px;
    scroll-margin-top: 96px;
}
.prose > h2:first-child { margin-top: 0; }
.prose h3 {
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 32px;
    scroll-margin-top: 96px;
}
.prose p strong, .prose li strong, .prose td strong { color: var(--text-primary); }
.prose a { color: var(--accent); font-weight: 600; text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--accent); }
.prose blockquote {
    border-left: 3px solid var(--accent);
    background: rgba(99,102,241,0.06);
    padding: 16px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.85em;
    background: rgba(99,102,241,0.1);
    color: #a5b4fc;
    padding: 2px 6px;
    border-radius: 5px;
    word-break: break-word;
}
.prose pre {
    background: #0d1117;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    overflow-x: auto;
}
.prose pre code { background: none; padding: 0; color: #e2e8f0; font-size: 0.82rem; line-height: 1.7; word-break: normal; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }

/* Tables are wrapped in .table-wrap by build.py so wide ones scroll on phones */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9rem; line-height: 1.6; }
.prose th {
    text-align: left;
    background: rgba(99,102,241,0.08);
    color: var(--text-primary);
    font-weight: 700;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.prose td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }

/* Callouts — a blockquote starting with [!NOTE] / [!TIP] / [!WARNING] */
.callout {
    display: flex;
    gap: 14px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(99,102,241,0.2);
    background: rgba(99,102,241,0.06);
}
.callout > i { color: var(--accent); margin-top: 6px; }
.callout > div { min-width: 0; }
.callout > div > * + * { margin-top: 10px; }
.callout.tip { border-color: rgba(16,185,129,0.25); background: rgba(16,185,129,0.06); }
.callout.tip > i { color: var(--green); }
.callout.warning { border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.07); }
.callout.warning > i { color: var(--orange); }

/* ---- Service page sections ----------------------------------------------- */
.lp-section { padding: 72px 0; }
.lp-section.alt-bg { background: var(--bg-secondary); }
.lp-section .section-header { margin-bottom: 44px; }

.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
}
.tile > i {
    font-size: 1.15rem;
    color: var(--accent);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(99,102,241,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.tile h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; }
.tile p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.65; }
.prose .tile-grid { margin-top: 24px; }
.prose .tile h3 { margin-top: 0; font-size: 1.02rem; }
.prose .tile p { margin: 0; }

/* :::steps — numbered tiles that wrap to as many columns as fit */
.tile-grid.steps { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.tile .step-no {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gradient);
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

/* ---- Related cards (services + posts) ------------------------------------ */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    transition: border-color 0.3s, transform 0.3s;
}
.related-card:hover { border-color: rgba(99,102,241,0.3); transform: translateY(-4px); }
.related-card .kicker {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
}
.related-card h3 { color: var(--text-primary); font-size: 1rem; font-weight: 700; margin: 8px 0 6px; line-height: 1.4; }
.related-card p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; }
.related-card .more { margin-top: auto; padding-top: 14px; font-size: 0.82rem; font-weight: 600; color: var(--accent); }

/* ---- CTA band ------------------------------------------------------------ */
.cta-band {
    background: var(--gradient);
    border-radius: var(--radius);
    padding: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: 1.6rem; font-weight: 800; line-height: 1.25; }
.cta-band p { color: rgba(255,255,255,0.88); margin-top: 6px; max-width: 560px; }
.cta-band .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-light { background: #fff; color: #4f46e5; }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.15); }
.btn-line { color: #fff; border: 1px solid rgba(255,255,255,0.55); background: transparent; }
.btn-line:hover { background: rgba(255,255,255,0.12); }
.prose .cta-band a, .prose .cta-band a:hover { text-decoration: none; }

/* ---- Blog ---------------------------------------------------------------- */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    margin-top: 18px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.post-meta i { color: var(--accent); margin-right: 6px; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lang-pill {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    background: rgba(16,185,129,0.12);
    color: var(--green);
    margin-left: 8px;
    vertical-align: middle;
    letter-spacing: 0.03em;
}
.post-footer-note {
    margin-top: 44px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Devanagari pages */
html[lang="hi"] body { font-family: 'Noto Sans Devanagari', 'Inter', -apple-system, sans-serif; }
html[lang="hi"] .prose { line-height: 1.95; font-size: 1.03rem; }

/* ---- Light mode ---------------------------------------------------------- */
body.light-mode .prose code { color: var(--accent); background: rgba(99,102,241,0.08); }
body.light-mode .prose pre code { color: #e2e8f0; }
body.light-mode .aside-card,
body.light-mode .tile,
body.light-mode .related-card { box-shadow: 0 1px 4px rgba(0,0,0,0.04); }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 1024px) {
    .lp-layout { grid-template-columns: 1fr; }
    .lp-aside { position: static; }
    .tile-grid, .related-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .tile-grid, .related-grid, .post-grid { grid-template-columns: 1fr; }
    .cta-band { padding: 30px 24px; }
    .cta-band h2 { font-size: 1.35rem; }
    .lp-section { padding: 56px 0; }
    .prose { font-size: 0.97rem; }
}
