/* tools.cheque-print.in — shares the look of cheque-print.in (Inter, purple→blue). */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('../fonts/inter-var-latin.woff2') format('woff2');
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #ffffff; --bg2: #f7f7fb; --bg3: #f0f1f7;
  --border: rgba(15,15,35,0.08); --border2: rgba(15,15,35,0.16);
  --text: #14141a; --muted: #5b6472; --muted2: #8a90a3;
  --purple: #7c3aed; --blue: #2563eb; --green: #047857; --red: #b91c1c;
  --gradient: linear-gradient(135deg, #7c3aed, #2563eb);
  --radius: 12px; --radius-lg: 16px; --radius-xl: 24px;
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.nav-logo small { font-weight: 600; font-size: 12px; color: var(--purple); background: rgba(124,58,237,0.1); padding: 2px 8px; border-radius: 100px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--gradient); color: #fff; font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: 10px; border: 0; cursor: pointer; transition: opacity .2s, transform .2s; }
.btn-primary:hover { opacity: .92; transform: translateY(-1px); }
.btn-lg { font-size: 16px; padding: 14px 26px; border-radius: 12px; }
@media (max-width: 720px) { .nav-links .hide-sm { display: none; } }

/* hero */
.hero { position: relative; padding: 64px 0 32px; text-align: center; overflow: hidden;
  background: radial-gradient(ellipse at 20% 0%, rgba(124,58,237,0.10), transparent 55%), radial-gradient(ellipse at 80% 0%, rgba(37,99,235,0.10), transparent 55%); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--purple); background: rgba(124,58,237,0.1); padding: 5px 14px; border-radius: 100px; border: 1px solid rgba(124,58,237,0.2); margin-bottom: 18px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 900; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 14px; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 17px; color: var(--muted); max-width: 640px; margin: 0 auto; }

/* tool card */
.tool { max-width: 760px; margin: 0 auto 56px; background: #fff; border: 1px solid rgba(124,58,237,0.2); border-radius: var(--radius-xl); box-shadow: 0 20px 60px rgba(124,58,237,0.08); padding: 28px; }
.tabs { display: flex; gap: 6px; background: var(--bg3); padding: 5px; border-radius: 12px; margin-bottom: 22px; }
.tab { flex: 1; border: 0; background: transparent; padding: 10px 12px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; }
.tab[aria-selected="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.panel[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input, .select { width: 100%; border: 1px solid var(--border2); border-radius: 10px; padding: 12px 14px; font-size: 16px; background: #fff; outline: none; transition: border-color .2s, box-shadow .2s; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted2) 50%), linear-gradient(135deg, var(--muted2) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.select:disabled { background-color: var(--bg2); color: var(--muted2); }
.input:focus, .select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124,58,237,0.15); }
.input-row { display: flex; gap: 10px; }
.input-row .input { flex: 1; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.input-row .input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } .input-row { flex-direction: column; } .tool { padding: 20px; } }
.hint { font-size: 13px; color: var(--muted2); }
.msg { margin-top: 16px; padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.msg--error { background: #fef2f2; color: var(--red); border: 1px solid #fecaca; }
.msg--info { background: var(--bg2); color: var(--muted); border: 1px solid var(--border); }

/* result */
.result { margin-top: 22px; border: 1px solid var(--border2); border-radius: var(--radius-lg); overflow: hidden; }
.result + .result { margin-top: 14px; }
.result-head { background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(37,99,235,0.08)); padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.result-bank { font-weight: 800; font-size: 18px; }
.result-branch { color: var(--muted); font-size: 14px; }
.result-body { padding: 8px 20px 18px; }
.row { display: grid; grid-template-columns: 130px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.row:last-child { border-bottom: 0; }
.row dt { color: var(--muted); font-size: 13px; font-weight: 600; }
.row dd { font-weight: 600; word-break: break-word; }
.row dd.code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 16px; letter-spacing: .5px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr auto; } .row dt { grid-column: 1 / -1; } }
.copy { border: 1px solid var(--border2); background: #fff; border-radius: 8px; padding: 5px 10px; font-size: 12px; font-weight: 600; color: var(--purple); cursor: pointer; white-space: nowrap; }
.copy:hover { border-color: var(--purple); }
.copy.done { color: var(--green); border-color: var(--green); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 100px; }
.pill--yes { background: rgba(5,150,105,0.12); color: var(--green); }
.pill--no { background: var(--bg3); color: var(--muted2); text-decoration: line-through; }
.note { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* content */
.section { padding: 56px 0; }
.section--alt { background: var(--bg2); }
.section h2 { font-size: clamp(24px, 3.5vw, 34px); font-weight: 800; letter-spacing: -.8px; margin-bottom: 18px; text-align: center; }
.prose { max-width: 760px; margin: 0 auto; color: var(--muted); font-size: 16px; }
.prose p + p { margin-top: 12px; }
.prose strong { color: var(--text); }
.ifsc-anatomy { display: flex; justify-content: center; gap: 6px; margin: 22px 0; flex-wrap: wrap; font-family: ui-monospace, Consolas, monospace; }
.ifsc-anatomy div { text-align: center; }
.ifsc-anatomy b { display: block; font-size: 26px; padding: 8px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--border2); letter-spacing: 3px; }
.ifsc-anatomy span { font-family: 'Inter', sans-serif; font-size: 12px; color: var(--muted); }
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--purple); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 10px; color: var(--muted); font-size: 15px; }

.cta { text-align: center; padding: 56px 24px; background: var(--gradient); color: #fff; border-radius: var(--radius-xl); margin: 0 auto 56px; max-width: 1032px; }
.cta h2 { color: #fff; font-size: clamp(24px, 3.5vw, 32px); margin-bottom: 10px; }
.cta p { opacity: .9; margin-bottom: 22px; }
.cta .btn-primary { background: #fff; color: var(--purple); }

/* hub */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin: 0 auto 56px; max-width: 1032px; }
.tool-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; transition: border-color .3s, transform .3s, box-shadow .3s; display: block; }
.tool-card:hover { border-color: rgba(124,58,237,0.35); transform: translateY(-3px); box-shadow: 0 14px 40px rgba(124,58,237,0.1); }
.tool-card .icon { font-size: 28px; margin-bottom: 12px; }
.tool-card h3 { font-size: 18px; margin-bottom: 6px; }
.tool-card p { color: var(--muted); font-size: 14.5px; }
.tool-card .go { display: inline-block; margin-top: 12px; color: var(--purple); font-weight: 600; font-size: 14px; }

/* footer */
.footer { border-top: 1px solid var(--border); padding: 28px 0; font-size: 13px; color: var(--muted); }
.footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--purple); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.link { color: var(--purple); text-decoration: underline; }
.pt-32 { padding-top: 32px; }

/* ── SEO content blocks ── */
.breadcrumb { font-size: 13px; color: var(--muted2); margin-bottom: 16px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--purple); }
.section-lead { text-align: center; color: var(--muted); max-width: 640px; margin: -6px auto 28px; }
.ways { list-style: none; counter-reset: way; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1032px; margin: 0 auto; }
.ways li { counter-increment: way; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 22px 20px; position: relative; }
.ways li::before { content: counter(way); position: absolute; top: 20px; right: 20px; width: 28px; height: 28px; border-radius: 50%; background: var(--gradient); color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.ways h3 { font-size: 16px; margin-bottom: 6px; padding-right: 36px; }
.ways p { font-size: 14.5px; color: var(--muted); }
@media (max-width: 900px) { .ways { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ways { grid-template-columns: 1fr; } }
.cheque-figure { max-width: 760px; margin: 0 auto; }
.cheque-figure svg { width: 100%; height: auto; display: block; }
.cheque-figure figcaption { text-align: center; color: var(--muted); font-size: 14.5px; margin-top: 14px; }
.sub-h { text-align: center; font-size: 20px; font-weight: 800; margin: 40px 0 16px; }
.table-wrap { max-width: 760px; margin: 0 auto; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.data-table th, .data-table td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table thead th { background: var(--bg3); font-size: 13px; color: var(--muted); }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-weight: 700; letter-spacing: .5px; }
.bank-table td:last-child { text-align: right; white-space: nowrap; }
.related { max-width: 760px; margin: 22px auto 0; text-align: center; color: var(--muted); font-size: 15px; }
section[id], .tool { scroll-margin-top: 80px; }
.brand-logo { display: block; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; }
