/* Omnipilot — public site layer: home hero, SEO content blocks, footer, Instagram downloaders. */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- home hero ---- */
.home-hero { max-width: 980px; margin: 18px auto 0; text-align: center; }
.home-hero h1 { font-family: var(--display); font-size: clamp(26px, 4.4vw, 40px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
.home-hero h1 em { font-style: normal; color: var(--brand); }
.home-hero p { max-width: 660px; margin: 0 auto; color: var(--text-2); font-size: 16px; line-height: 1.6; }
.home-sec-title { max-width: 980px; margin: 34px auto 0; font-size: 18px; color: var(--text-2); font-weight: 600; }
.home-sec-title + .tools-grid { margin-top: 14px; }

/* ---- breadcrumbs ---- */
.seo-crumbs { max-width: 760px; margin: 4px auto 10px; font-size: 13px; color: var(--text-3); }
.seo-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.seo-crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--text-3); }
.seo-crumbs a { color: var(--text-2); text-decoration: none; }
.seo-crumbs a:hover { color: var(--brand); }

/* ---- crawlable content under each tool ---- */
.seo-body { max-width: 760px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 28px; }
.seo-sec h2 { font-family: var(--display); font-size: 21px; letter-spacing: -0.01em; margin: 0 0 12px; }
.seo-sec p { color: var(--text-2); line-height: 1.7; margin: 0; }
.seo-sec p + p { margin-top: 12px; }
.seo-sec p a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.seo-sec p strong { color: var(--text); }
.seo-sec .seo-updated { font-size: 13px; color: var(--text-3); }
.seo-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.seo-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg, 12px); color: var(--text-2); line-height: 1.55; }
.seo-step-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 14px; }
.seo-feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.seo-feats li { display: flex; gap: 10px; align-items: center; color: var(--text-2); }
.seo-feats .ic { color: var(--brand); flex: none; }
.seo-faq { display: flex; flex-direction: column; gap: 8px; }
.seo-faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg, 12px); padding: 0 16px; }
.seo-faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq summary::after { content: "+"; color: var(--text-3); font-size: 20px; line-height: 1; }
.seo-faq details[open] summary::after { content: "–"; }
.seo-faq details p { padding: 0 0 14px; }
.seo-related { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.seo-related a { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-lg, 12px); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s; }
.seo-related a:hover { border-color: var(--brand); }
.seo-related .ic { color: var(--brand); }

/* ---- footer ---- */
.site-foot { margin-top: 56px; padding: 28px 16px 36px; border-top: 1px solid var(--border); }
.site-foot-in { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 24px; }
.site-foot h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin: 0 0 10px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-foot a { color: var(--text-2); text-decoration: none; font-size: 14px; }
.site-foot a:hover { color: var(--brand); }
.site-foot p { color: var(--text-3); font-size: 13px; line-height: 1.6; margin: 8px 0 0; }
.site-foot-copy { max-width: 980px; margin: 22px auto 0; font-size: 12.5px; color: var(--text-3); }
@media (max-width: 860px) { .site-foot-in { grid-template-columns: 1fr 1fr 1fr; } .site-foot-in > :first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .site-foot-in { grid-template-columns: 1fr 1fr; } }

/* ---- Instagram downloaders ---- */
.ig-switch { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 18px; }
.ig-switch .ft-tab { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.ig-h1 { text-align: center; font-size: clamp(26px, 4vw, 34px); margin-bottom: 8px; }
.ig-tagline { text-align: center; color: var(--text-2); margin: 0 auto 18px; max-width: 560px; line-height: 1.55; }
.ig-form { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.ig-input-row { display: flex; gap: 8px; }
.ig-input-row .input { flex: 1; min-width: 0; font-size: 16px; }
.ig-paste { flex: none; }
.ig-go { width: 100%; justify-content: center; }
.ig-results { margin-top: 18px; }
.ig-results[hidden] { display: none; }
.ig-results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.ig-owner { font-weight: 600; }
.ig-caption { color: var(--text-2); font-size: 14px; line-height: 1.55; margin: 0 0 12px; white-space: pre-line; max-height: 4.8em; overflow: hidden; }
.ig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.ig-item { padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.ig-thumb { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r, 10px); overflow: hidden; background: var(--surface-2); }
.ig-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-thumb.no-thumb::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--brand-soft), var(--surface-2)); }
.ig-badge { position: absolute; left: 8px; top: 8px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(0,0,0,.62); color: #fff; }
.ig-thumb.is-video::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: translate(-35%, -50%);
  border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent rgba(255,255,255,.92); filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.ig-dl { justify-content: center; text-align: center; }
.ig-legal { text-align: center; font-size: 12px; color: var(--text-3); margin: 6px auto 0; max-width: 560px; line-height: 1.5; }
@media (max-width: 520px) { .ig-grid { grid-template-columns: 1fr 1fr; gap: 8px; } .ig-input-row { flex-direction: column; } .ig-paste { width: 100%; justify-content: center; } }
.ig-results [hidden], .ig-paste[hidden] { display: none !important; }

/* ---- English → Hindi typing ---- */
.hi-lead { text-align: center; color: var(--text-2); margin: -4px auto 16px; max-width: 560px; line-height: 1.55; }
.hi-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.hi-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hi-mode { min-width: 84px; justify-content: center; font-weight: 700; }
.hi-mode.is-en { color: var(--text-2); }
.hi-danda { font-size: 14px; color: var(--text-2); }
.hi-count { margin-left: auto; font-size: 13px; color: var(--text-3); }
.hi-text { width: 100%; min-height: 200px; resize: vertical; font-size: 19px; line-height: 1.7; padding: 14px 16px; font-family: inherit; }
.hi-suggest { display: flex; flex-wrap: wrap; gap: 6px; }
.hi-suggest[hidden] { display: none; }
.hi-chip { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 6px 14px; font-size: 17px; cursor: pointer; font-family: inherit; }
.hi-chip:hover, .hi-chip:focus-visible { border-color: var(--brand); }
.hi-chip.is-first { border-color: var(--brand); background: var(--brand-soft); }
.hi-chip.is-en { font-size: 14px; color: var(--text-2); }
.hi-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hi-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 520px) { .hi-count { margin-left: 0; width: 100%; } .hi-text { font-size: 18px; } }

/* ---- Caption & hashtag generator ---- */
.cap-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cap-head .ft-title { margin: 0; }
.cap-uilang, .cap-langs { display: flex; gap: 6px; flex-wrap: wrap; }
.cap-form { padding: 18px; display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.cap-topic { font-size: 16px; }
.cap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.cap-grid .select, .cap-grid .input { width: 100%; }
.cap-grid .lbl { display: block; margin-bottom: 6px; }
.cap-err { color: var(--danger, #d64545); margin: 0; font-size: 14px; }
.cap-err[hidden], .cap-out[hidden] { display: none; }
.cap-go { width: 100%; justify-content: center; }
.cap-out { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.cap-out-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cap-out-head h2 { font-family: var(--display); font-size: 20px; margin: 0; }
.cap-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.cap-card { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; justify-content: space-between; }
.cap-text { margin: 0; line-height: 1.6; color: var(--text); white-space: normal; }
.cap-tags { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.cap-note { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.cap-best { margin: 4px 0 0; font-size: 14px; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.cap-selected { font-weight: 600; color: var(--brand); line-height: 1.7; word-break: break-word; min-height: 1.7em; }
.cap-count { font-size: 13px; color: var(--text-3); }
.cap-count.over { color: var(--danger, #d64545); font-weight: 600; }
.tag-groups { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.tag-group h4 { margin: 0 0 6px; font-size: 13px; color: var(--text-3); font-weight: 600; }
.tag-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-chip { border: 1px solid var(--border); background: var(--surface); color: var(--text-2); border-radius: 999px; padding: 5px 12px; font-size: 14px; cursor: pointer; font-family: inherit; }
.tag-chip:hover { border-color: var(--brand); }
.tag-chip.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 600; }

/* ---- language switch (header) ---- */
.lang-switch { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.lang-switch .ic { color: var(--brand); }
@media (max-width: 520px) { .lang-switch { padding-left: 8px; padding-right: 8px; } }

/* ---- EMI calculator ---- */
.emi-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; margin-top: 14px; }
.emi-form, .emi-result { padding: 18px; display: flex; flex-direction: column; gap: 18px; }
.emi-field { display: flex; flex-direction: column; gap: 8px; }
.emi-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.emi-row label { font-weight: 600; }
.emi-input { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r, 10px); padding: 4px 10px; color: var(--text-2); }
.emi-input input { width: 120px; border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 700; text-align: right; padding: 4px 0; }
.emi-input input:focus { outline: none; }
.emi-input select { border: 0; background: transparent; color: var(--text-2); font: inherit; }
.emi-field input[type=range] { width: 100%; accent-color: var(--brand); }
.emi-words { font-size: 13px; color: var(--text-3); min-height: 1.2em; }
.emi-big { display: flex; flex-direction: column; gap: 4px; }
.emi-big span { color: var(--text-2); font-size: 14px; }
.emi-big strong { font-family: var(--display); font-size: clamp(30px, 5vw, 40px); color: var(--brand); letter-spacing: -0.02em; }
.emi-chart { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.emi-chart svg { transform: rotate(-90deg); flex: none; }
.emi-ring-int { stroke: var(--brand-soft); }
.emi-ring-pr { stroke: var(--brand); transition: stroke-dasharray .25s; }
.emi-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--text-2); font-size: 14px; }
.emi-legend li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.emi-legend b { color: var(--text); margin-left: auto; }
.emi-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.emi-legend .dot-pr { background: var(--brand); }
.emi-legend .dot-int { background: var(--brand-soft); border: 1px solid var(--brand); }
.emi-legend .emi-total { border-top: 1px solid var(--border); padding-top: 10px; font-weight: 600; }
.emi-result .btn { align-self: flex-start; display: inline-flex; gap: 6px; align-items: center; }
.emi-schedule { padding: 16px; margin-top: 14px; }
.emi-sched-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.emi-sched-head h2 { font-family: var(--display); font-size: 18px; margin: 0; }
.emi-table-wrap { overflow-x: auto; max-height: 420px; overflow-y: auto; }
.emi-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.emi-table th, .emi-table td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
.emi-table th:first-child, .emi-table td:first-child { text-align: left; }
.emi-table thead th { position: sticky; top: 0; background: var(--surface); color: var(--text-3); font-weight: 600; }
@media (max-width: 760px) { .emi-grid { grid-template-columns: 1fr; } .emi-input input { width: 100px; } }

/* footer with calculators column */
.site-foot-in { grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; }

/* ---- SIP & GST calculators ---- */
.sip-tool .ft-tabs, .gst-tool .ft-tabs { flex-wrap: wrap; }
.sip-tool > .ft-tabs { margin-top: 12px; }
.emi-big small { font-size: 13px; color: var(--text-3); }
.gst-lines span { color: var(--text-3); font-size: 13px; }
.gst-lines li[hidden] { display: none; }
.gst-tool .emi-field .ft-tab { font-size: 14px; }
