/* =====================================================================================
   Mobile design. Loaded only on screens up to 760px wide (see base.html), after every
   other stylesheet, so phones get their own compact, app-like layout of the same pages.
   Principles: small type scale, tight spacing, swipeable rows instead of tall stacks,
   decorative previews hidden, every tap target at least 44px.
   ===================================================================================== */

/* ---------------------------------------------------------------- scale */
body { font-size: 15px; line-height: 1.55; }
.wrap { padding: 0 18px; }
h1 { font-size: 2.15rem; letter-spacing: -0.035em; }
h2 { font-size: 1.55rem; letter-spacing: -0.03em; margin-bottom: .4em; }
h3 { font-size: 1.02rem; }
.lede { font-size: 1rem; }
p { margin: 0 0 .8em; }
.section, .section.tight { padding: 40px 0; }
.btn { padding: 12px 18px; font-size: .92rem; min-height: 44px; }
.btn.btn-lg { padding: 14px 20px; font-size: .95rem; }
.small, .muted.small { font-size: .82rem; }

/* ---------------------------------------------------------------- header + footer */
.site-header .wrap { min-height: 58px; }
.brand-logo img, .site-header img { height: 30px; width: auto; }
.burger { width: 40px; height: 40px; }
.site-footer { padding: 34px 0 calc(24px + env(safe-area-inset-bottom)); }
.footer-grid { grid-template-columns: 1fr 1fr !important; gap: 22px 16px !important; }
.footer-grid > div:first-child { grid-column: 1 / -1; }
.footer-grid > div:first-child p { font-size: .84rem; margin: 8px 0 0; }
.footer-logo img { height: 30px; width: auto; }
.footer-grid h4 { font-size: .8rem; margin: 0 0 8px; }
.footer-grid a { font-size: .84rem; padding: 3px 0; }
.footer-base { flex-direction: column; gap: 4px; font-size: .76rem; margin-top: 22px; padding-top: 16px; }
.recog-foot { font-size: .72rem; line-height: 1.5; }
.wa-float { width: 50px; height: 50px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
.wa-float svg { width: 27px; height: 27px; }

/* ---------------------------------------------------------------- swipeable rows (used for card lists) */
.cards, .why, .xgrid, .steps, .recog-grid, .tool-grid {
  display: flex !important; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 18px;
  margin: 0 -18px; padding: 4px 18px 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cards::-webkit-scrollbar, .why::-webkit-scrollbar, .xgrid::-webkit-scrollbar, .steps::-webkit-scrollbar,
.recog-grid::-webkit-scrollbar, .tool-grid::-webkit-scrollbar { display: none; }
.cards > *, .why > *, .steps > *, .recog-grid > *, .tool-grid > * { flex: 0 0 78%; scroll-snap-align: start; }
.xgrid > * { flex: 0 0 62%; scroll-snap-align: start; }
.reveal.pending { opacity: 1 !important; transform: none !important; } /* swipe rows are off-screen sideways; never hide them */

/* ---------------------------------------------------------------- home: hero */
.hero2 { padding-top: 34px; }
.hero2 h1.hero-title { font-size: clamp(2.2rem, 10.5vw, 2.8rem); line-height: 1.04; }
.hero2 h1.hero-title br { display: none; }
.hero2 .hero-sub { font-size: 1rem; margin-top: 14px; max-width: 32ch; }
.hero2 .hero-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; gap: 10px; margin-top: 22px; }
.showcase { margin-top: 30px; padding: 0 18px; }
.device { border-radius: 16px 16px 0 0; }
.device .mock-bar { padding: 9px 12px; font-size: .7rem; }
.mini-main { padding: 12px; gap: 10px; }
.mini-main .mock-proj { padding: 12px; }
.mini-main .mock-proj strong { font-size: .86rem; }
.mini-main .mock-row { grid-template-columns: 1fr 1fr; gap: 8px; }
.mini-main .mock-file { padding: 8px; font-size: .72rem; gap: 6px; }
.mini-main .mock-file .ic { width: 26px; height: 30px; }
.mini-main .mock-msg { display: none; }

/* sectors: one swipeable line */
.sectors { padding: 18px 0 0; }
.sectors .wrap { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; gap: 18px; padding-bottom: 6px; scrollbar-width: none; font-size: .82rem; }
.sectors .wrap::-webkit-scrollbar { display: none; }
.sectors strong { white-space: nowrap; font-size: .86rem; }
.sectors span { white-space: nowrap; }

/* government recognition: compact swipeable tiles */
.recog { padding: 34px 0 6px; }
.recog h2 { font-size: 1.15rem; text-align: left; margin-bottom: 14px; }
.recog-grid > * { flex: 0 0 46%; }
.recog-item { padding: 14px; gap: 10px; border-radius: 14px; }
.recog-logo { height: 40px; }
.recog-logo img[src*="udyam"] { height: 34px; }
.recog-item strong { font-size: .8rem; line-height: 1.3; }
.recog-item span:not(.recog-ic) { font-size: .7rem; }

/* stats: 2 x 2 */
.stats-section, .recog + .stats-section { padding-top: 26px; }
.stats { grid-template-columns: 1fr 1fr !important; border-radius: 16px; }
.stats .stat { padding: 16px 14px !important; border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; }
.stats .stat:nth-child(2n) { border-right: 0 !important; }
.stats .stat:nth-last-child(-n+2) { border-bottom: 0 !important; }
.stat .n { font-size: 1.6rem; margin-bottom: 4px; }
.stat .t { font-size: .84rem; }
.stat .d { display: none; }

/* section headings */
.split-title { flex-direction: row !important; align-items: flex-end !important; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.split-title h2 { margin: 0; font-size: 1.4rem; }
.split-title .btn { flex: none; padding: 9px 14px; min-height: 38px; font-size: .82rem; }
.section-title { margin-bottom: 18px; }
.section-title h2 { font-size: 1.4rem; }
.section-title p { font-size: .92rem; }

/* service / value cards */
.card { padding: 18px; border-radius: 18px; }
.card .icon, .icon { width: 42px; height: 42px; border-radius: 12px; }
.card .icon svg, .icon svg { width: 20px; height: 20px; }
.card h3 { margin: 12px 0 6px; font-size: 1rem; }
.card p { font-size: .86rem; margin: 0; }
.card .more { font-size: .84rem; margin-top: 8px; }
.why .card { display: block; }

/* portal section: text and checklist only, no big preview */
.section .split { grid-template-columns: 1fr !important; gap: 0 !important; }
.section .split .panel-blue { display: none; }
.checks { gap: 8px; margin: 14px 0 18px; }
.checks li { font-size: .9rem; }
.checks li::before { width: 20px; height: 20px; background-size: 12px; }

/* process steps */
.step { padding: 18px; border-radius: 16px; }
.step::before { width: 32px; height: 32px; border-radius: 10px; font-size: .9rem; margin-bottom: 12px; }
.step h3 { font-size: .98rem; }
.step p { font-size: .85rem; margin: 0; }

/* experts */
.xbody { padding: 12px 14px 14px; }
.xbody strong { font-size: .92rem; }
.xhead { font-size: .78rem; -webkit-line-clamp: 2; }
.xcard .xtags { display: none; }

/* FAQ */
.faq-grid { gap: 18px !important; }
.faq-grid > div:first-child .lede { font-size: .92rem; }
.faq-list details { border-radius: 14px; }
.faq-list summary { padding: 14px 46px 14px 16px; font-size: .92rem; }
.faq-list summary::after { width: 24px; height: 24px; right: 12px; }
.faq-list details p { padding: 0 16px 14px; font-size: .88rem; }

/* closing banner */
.cta-shell { margin: 10px 0 34px; padding: 0 12px; }
.cta { border-radius: 20px; }
.cta .wrap { padding-top: 30px !important; padding-bottom: 30px !important; gap: 16px; }
.cta h2 { font-size: 1.35rem; }
.cta p { font-size: .9rem; }
.cta .actions { width: 100%; flex-direction: column; }
.cta .actions .btn { width: 100%; }

/* ---------------------------------------------------------------- inner pages */
.page-hero { padding: 34px 0 26px; }
.page-hero h1 { font-size: clamp(1.9rem, 9vw, 2.4rem); }
.page-hero .lede { font-size: .95rem; margin-top: 12px; }
.page-hero .hero-actions { flex-direction: column; align-items: stretch; max-width: 340px; margin: 18px auto 0; gap: 8px; }
.svc-nav { flex-wrap: nowrap !important; justify-content: flex-start !important; overflow-x: auto; margin: 18px -18px 0 !important; padding: 0 18px 4px; scrollbar-width: none; }
.svc-nav::-webkit-scrollbar { display: none; }
.svc-nav a { white-space: nowrap; font-size: .8rem; padding: 8px 12px; }

/* services page: one compact card per service, sample previews hidden */
.svc-row { display: block !important; padding: 22px 0 !important; border-bottom: 1px solid var(--line); scroll-margin-top: 70px; }
.svc-row .sample { display: none; }
.svc-row .icon { width: 44px !important; height: 44px !important; border-radius: 12px !important; }
.svc-row h2 { font-size: 1.3rem; margin: 12px 0 8px; }
.svc-row .lede { font-size: .92rem; }
.svc-row ul, .svc-row .checks { margin: 10px 0 0; }

/* how we work */
.journey { gap: 10px !important; }
.jstep { grid-template-columns: 40px 1fr !important; gap: 0 12px !important; }
.jstep .dot { width: 40px; height: 40px; font-size: .9rem; }
.jstep h3 { font-size: .95rem; }
.jstep p { font-size: .84rem; }
.journey::before { left: 19px !important; }
.sample { border-radius: 14px; font-size: .8rem; }

/* contact + forms */
.contact-grid { gap: 22px !important; }
.form-card { padding: 18px !important; border-radius: 18px; }
.field { margin-bottom: 12px; }
.field label { font-size: .84rem; }
input, select, textarea { padding: 11px 12px; border-radius: 11px; }
.side-steps li { font-size: .88rem; }
.contact-box { padding: 16px; }

/* expert profile */
.xprofile { gap: 16px !important; }
.xphoto.lg { width: 120px !important; height: 120px !important; border-radius: 22px; }
.xprofile h1 { font-size: 1.7rem; }
.xbadge { font-size: .78rem; padding: 7px 12px; margin-top: 10px; }
.xfacts { font-size: .84rem; gap: 6px 14px; margin: 12px 0; }
.xstats-wrap { margin-top: -14px; }
.xstats { grid-template-columns: 1fr 1fr !important; border-radius: 16px; }
.xstats div { padding: 12px 14px; }
.xstats b { font-size: 1.25rem; }
.xstats span { font-size: .74rem; }
.xdetail { gap: 18px !important; }
.xdetail h2 { font-size: 1.15rem; }
.xdetail p { font-size: .92rem; }
.xlead { font-size: 1rem; }
.xlist li { padding: 10px 12px; font-size: .86rem; border-radius: 12px; }
.xpubs strong { font-size: .9rem; }
.xpubs span { font-size: .8rem; }

/* join + auth */
.join-grid { gap: 22px !important; }
.join-steps li { grid-template-columns: 30px 1fr; }
.join-steps li::before { width: 30px; height: 30px; font-size: .82rem; }
.auth-page { padding: 24px 14px 40px; min-height: auto; }
.auth-card { padding: 24px 18px !important; border-radius: 20px; }
.auth-card h1 { font-size: 1.6rem; }

/* ================================================================ dashboards (admin, client, expert) */
.mobile-bar { padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: 8px; }
.mobile-bar img { height: 26px; }
.topbar { padding: 14px 16px 2px !important; gap: 8px; }
.topbar h1 { font-size: 1.35rem !important; }
.crumb { font-size: .76rem; margin-bottom: 2px; }
.topbar .acts .btn { padding: 9px 14px; min-height: 38px; font-size: .84rem; }
.content { padding: 10px 12px 24px !important; }
.alert { padding: 10px 14px; font-size: .86rem; border-radius: 12px; }

.kpis { gap: 8px !important; margin-bottom: 12px !important; }
.kpi { padding: 12px 14px !important; border-radius: 14px !important; }
.kpi .l { font-size: .74rem; }
.kpi .v { font-size: 1.2rem !important; margin: 4px 0 2px; }
.kpi .s { font-size: .7rem !important; }

.panel { margin-bottom: 10px !important; border-radius: 16px !important; }
.panel-head { padding: 11px 14px !important; }
.panel-head h2 { font-size: .95rem !important; }
.panel-body { padding: 12px 14px !important; }
.panel-body.flush { padding: 0 !important; }
.empty { padding: 20px 14px; font-size: .86rem; }
details.inline > summary { padding: 11px 14px !important; font-size: .86rem; }
details.inline .form-inner { padding: 0 14px 12px !important; }

.proj-card { padding: 12px 14px !important; }
.proj-card h3 { font-size: .92rem; }
.proj-card .meta, .proj-card .next { font-size: .78rem; }
.proj-card .top { margin-bottom: 8px; }
.stepper.compact div { font-size: .64rem; padding-top: 5px; border-top-width: 3px; }
.pill { font-size: .66rem; padding: 4px 8px; }
.doc { padding: 10px 14px !important; gap: 10px !important; grid-template-columns: 34px 1fr !important; }
.doc .ext { width: 34px; height: 40px; font-size: .55rem; }
.doc .t { font-size: .86rem; }
.doc .m { font-size: .72rem; }
.doc .acts .btn { padding: 7px 12px; min-height: 34px; font-size: .78rem; }
.ms, .person, .pub, .ledger, .doc-group, .activity { padding-left: 14px !important; padding-right: 14px !important; }
.ms { font-size: .86rem; padding-top: 10px; padding-bottom: 10px; }
.pub .t { font-size: .88rem; }
.thread { padding: 12px !important; gap: 10px; }
.msg .bubble { font-size: .88rem; padding: 9px 12px; }
.msg .by { font-size: .7rem; }
.composer { padding: 8px 10px !important; gap: 8px; }
.composer textarea { min-height: 42px; height: 42px; }
.composer .btn { min-height: 42px; padding: 0 14px; }

.focus-card { padding: 16px 18px !important; margin-bottom: 12px !important; border-radius: 18px; gap: 12px; }
.focus-card h2 { font-size: 1.02rem !important; margin: 4px 0 6px; }
.focus-card p { font-size: .8rem; }
.focus-label { font-size: .7rem; }
.focus-ring { width: 60px !important; height: 60px !important; border-width: 4px !important; }
.focus-ring b { font-size: 1.15rem; }
.focus-ring span { display: none; }
.quick-tools a { padding: 10px; font-size: .8rem; }

table.data.stacked tr { padding: 10px 14px !important; }
table.data.stacked td { font-size: .84rem; padding: 3px 0 !important; }
.fin-mini { gap: 8px !important; }
.fin-mini div { padding: 10px 12px !important; }
.fin-mini b { font-size: .92rem !important; }
.stat-row div { padding: 10px 12px; }
.gauge { width: 90px; height: 90px; border-width: 6px; }
.seg a { padding: 6px 10px; font-size: .78rem; }
.tool-card { padding: 16px; }
.tool-card strong { font-size: .98rem; }
.tool-card span:not(.tool-ic) { font-size: .82rem; }

/* bottom tab bar: slimmer on phones */
.tabbar { left: 10px !important; right: 10px !important; padding: 4px !important; border-radius: 26px !important; }
.tabbar a, .tabbar button { padding: 6px 2px 5px !important; font-size: .64rem !important; }
.tabbar svg { width: 21px !important; height: 21px !important; }
.tab-lens { top: 4px !important; bottom: 4px !important; border-radius: 22px !important; }
:root { --tabbar-h: 72px; }
