/* =====================================================================================
   v4: one SF-style typeface everywhere, Apple-style hero, tools pages,
   Telegram-style liquid-glass tab bar. Loaded last.
   Inter (SIL Open Font License) is self-hosted for devices without Apple's SF font.
   ===================================================================================== */
@font-face { font-family: "InterVar"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("/static/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "InterVar"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("/static/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  /* Apple devices get San Francisco; everything else gets Inter, its closest open equivalent */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "InterVar", "Inter", "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "InterVar", "Inter", "Helvetica Neue", Arial, sans-serif;
}
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body, button, input, select, textarea { font-family: var(--font); font-optical-sizing: auto; }
h1, h2, h3, h4, .kpi .v, .stat .n { font-family: var(--display); font-optical-sizing: auto; }
h1 { letter-spacing: -0.035em; }
h2 { letter-spacing: -0.028em; }

/* ---------------------------------------------------------------- hero (Apple style, no box) */
.hero2 { position: relative; overflow: hidden; padding: 72px 0 0;
  background: radial-gradient(1000px 520px at 50% 105%, rgba(21, 94, 239, .16), transparent 70%), linear-gradient(180deg, #fff 0%, #f6f8ff 100%); }
.hero2-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.04); color: var(--ink); text-decoration: none; font-size: .88rem;
  animation: rise .7s var(--ease) both; transition: border-color .2s, box-shadow .2s; }
.hero-pill b { background: var(--blue); color: #fff; font-weight: 600; font-size: .74rem; padding: 4px 10px; border-radius: 999px; }
.hero-pill:hover { color: var(--ink); border-color: var(--blue-200); box-shadow: 0 6px 18px -8px rgba(21,94,239,.35); }
.hero2 h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.03; margin: 26px 0 0; max-width: 16ch; animation: rise .8s .05s var(--ease) both; }
.hero2 .grad { background: linear-gradient(90deg, #155eef 0%, #4f7dff 45%, #7c5cff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero2 .lede { max-width: 640px; margin: 22px auto 0; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text); animation: rise .8s .12s var(--ease) both; }
.hero2 .hero-actions { justify-content: center; margin-top: 32px; animation: rise .8s .18s var(--ease) both; }
.hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
  color: var(--muted); font-size: .9rem; animation: rise .8s .24s var(--ease) both; }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points svg { width: 17px; height: 17px; color: var(--blue); }
.showcase { position: relative; margin-top: 64px; padding-bottom: 0; max-width: 1040px; animation: rise 1s .3s var(--ease) both; }
.device { background: #fff; border-radius: 22px 22px 0 0; border: 1px solid rgba(0,0,0,.07); border-bottom: 0; overflow: hidden;
  box-shadow: 0 -2px 0 rgba(255,255,255,.6) inset, 0 30px 80px -20px rgba(10, 36, 99, .35), 0 8px 24px -12px rgba(10,36,99,.2); }
.device .mock-bar span { margin-left: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.device-body { display: grid; grid-template-columns: 180px 1fr; min-height: 300px; }
.mini-side { background: #f7f8fb; border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; font-size: .84rem; }
.mini-side b, .mini-side span { padding: 8px 12px; border-radius: 9px; color: var(--ink); font-weight: 500; }
.mini-side b { background: var(--blue); color: #fff; }
.mini-main { padding: 22px; display: grid; gap: 14px; align-content: start; }
.showcase .float-card { position: absolute; z-index: 2; background: rgba(255,255,255,.82); backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6); border: 1px solid rgba(255,255,255,.7); }
.showcase .float-card.b { right: 36px; top: -30px; }
.showcase .float-card.a { left: -28px; bottom: 40px; }
.hero2 + .sectors { border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- general polish */
.section-title h2, .split-title h2 { text-wrap: balance; }
.lede { text-wrap: pretty; }
.card, .step, .xcard, .faq-list details, .tool-card { will-change: transform; }

/* ---------------------------------------------------------------- tools */
.tools-lede { margin: -4px 0 18px; max-width: 70ch; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.tool-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: #fff; border-radius: 20px; box-shadow: var(--shadow);
  text-decoration: none; color: var(--text); transition: transform .25s var(--ease), box-shadow .25s; }
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text); }
.tool-card strong { color: var(--ink); font-size: 1.08rem; }
.tool-card span:not(.tool-ic) { font-size: .9rem; line-height: 1.5; }
.tool-card em { font-style: normal; color: var(--blue); font-weight: 600; font-size: .88rem; margin-top: auto; }
.tool-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, #155eef, #6d7bff); box-shadow: 0 6px 16px -6px rgba(21,94,239,.6); }
.tool-ic svg { width: 22px; height: 22px; }
.tool-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.tool-layout > * { min-width: 0; }
.tool-note h3 { margin: 14px 0 6px; font-size: 1rem; }
.count-line { text-align: right; margin-top: 4px; }
.seg-field { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.seg.radio label { cursor: pointer; }
.seg.radio input { position: absolute; opacity: 0; pointer-events: none; }
.seg.radio span { display: block; padding: 6px 14px; border-radius: 8px; font-size: .86rem; font-weight: 500; color: var(--ink); }
.seg.radio input:checked + span { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg.radio input:focus-visible + span { outline: 2px solid var(--blue); }
textarea.out { width: 100%; font: inherit; line-height: 1.6; background: #fafbff; }
.stat-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.stat-row div { flex: 1; min-width: 120px; background: var(--bg-soft); border-radius: 14px; padding: 12px 14px; }
.stat-row b { display: block; font: 700 1.25rem var(--display); color: var(--ink); }
.stat-row span { font-size: .78rem; color: var(--muted); }
.gauge-row { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; }
.gauge-row h3 { margin: 0 0 4px; }
.gauge { flex: none; width: 112px; height: 112px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: var(--bg-soft); border: 8px solid var(--ok); }
.gauge b { font: 700 1.7rem/1 var(--display); color: var(--ink); }
.gauge span { font-size: .74rem; color: var(--muted); margin-top: 4px; }
.gauge.moderate { border-color: #ff9f0a; }
.gauge.high { border-color: var(--bad); }
.gauge.prob { border-color: var(--blue); }
.hbar-track.warn i { background: linear-gradient(90deg, #ff9f0a, #ff375f); }
.chip { display: inline-block; font-size: .76rem; padding: 4px 9px; border-radius: 999px; background: var(--bg-soft); color: var(--text); margin: 2px 4px 2px 0; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.change-list { margin: 0; padding-left: 18px; font-size: .86rem; color: var(--text); columns: 2; column-gap: 28px; }
.journal { display: flex; gap: 16px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.journal:last-child { border-bottom: 0; }
.journal .fit { flex: none; width: 58px; height: 58px; border-radius: 16px; background: var(--blue-50); display: grid; place-content: center; text-align: center; }
.journal .fit b { font: 700 1rem var(--display); color: var(--blue-700); }
.journal .fit span { font-size: .66rem; color: var(--muted); }
.journal .jmain { flex: 1; min-width: 0; }
.journal .t { font-weight: 600; color: var(--ink); }
.journal .t a { color: var(--ink); text-decoration: none; }
.journal .t a:hover { color: var(--blue); }
.journal .m { font-size: .82rem; color: var(--muted); margin: 2px 0 6px; }
.result .ms.done .ttl { text-decoration: none; color: var(--ink); }
.result .ms .ttl { font-weight: 500; }
.d-block { display: block; font-weight: 400; margin-top: 2px; }
button.is-busy { opacity: .75; pointer-events: none; }
button.is-busy::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px;
  border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media print {
  .tool-layout > section:first-child, .tool-note, .topbar .acts, .crumb { display: none !important; }
  .tool-layout { display: block; }
}

/* ---------------------------------------------------------------- liquid-glass tab bar (Telegram style) */
@media (max-width: 860px) {
  .tabbar { left: 14px; right: 14px; bottom: calc(12px + env(safe-area-inset-bottom)); padding: 5px; gap: 0; border-radius: 30px;
    background: rgba(255, 255, 255, .42);
    backdrop-filter: blur(22px) saturate(1.9) brightness(1.06); -webkit-backdrop-filter: blur(22px) saturate(1.9) brightness(1.06);
    border: 1px solid rgba(255, 255, 255, .55);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 -1px 0 rgba(0,0,0,.04), 0 10px 36px -8px rgba(10, 36, 99, .28), 0 2px 8px rgba(0,0,0,.06);
    animation: none; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
  .tabbar::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,0) 55%); }
  .tabbar a, .tabbar button { position: relative; z-index: 1; border-radius: 26px; background: none !important; color: #3c3c43;
    padding: 7px 2px 6px; -webkit-tap-highlight-color: transparent; font-weight: 500; }
  .tabbar a.on, .tabbar button.on { color: var(--blue); }
  .tabbar svg { transition: transform .45s var(--spring), color .2s; }
  .tabbar .on svg { transform: scale(1.08); }
  .tab-lens { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 60px; border-radius: 25px; pointer-events: none;
    background: rgba(255, 255, 255, .62);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.95), inset 0 -1px 2px rgba(0,0,0,.05), 0 4px 14px -4px rgba(21, 94, 239, .28), 0 0 0 .5px rgba(0,0,0,.04);
    backdrop-filter: blur(6px) saturate(1.4); -webkit-backdrop-filter: blur(6px) saturate(1.4);
    transition: transform .55s cubic-bezier(.3, 1.55, .5, 1), width .45s cubic-bezier(.3, 1.4, .5, 1), opacity .2s; will-change: transform; }
  .tab-lens.no-anim { transition: none; }
  .tab-lens.drag { transition: transform .08s linear, width .2s; background: rgba(255,255,255,.38);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.95), inset 0 0 0 1px rgba(255,255,255,.6), 0 8px 24px -6px rgba(21,94,239,.35); }
  .tab-lens.squish { animation: squish .55s var(--spring); }
  @keyframes squish { 0% { scale: 1 1; } 30% { scale: 1.18 .86; } 60% { scale: .96 1.05; } 100% { scale: 1 1; } }
  .tabbar a:active svg, .tabbar button:active svg { transform: scale(.86); }

  /* hero on phones */
  .hero2 { padding-top: 44px; }
  .hero2 h1 br { display: none; }
  .showcase { margin-top: 44px; padding: 0 12px; }
  .device-body { grid-template-columns: 1fr; min-height: 0; }
  .mini-side { display: none; }
  .mini-main { padding: 16px; }
  .showcase .float-card { display: none; }
  .hero-points { gap: 8px 18px; font-size: .84rem; }
  .tool-layout { grid-template-columns: 1fr; }
  .change-list { columns: 1; }
  .gauge-row { flex-direction: column; text-align: center; }
  .journal { padding: 14px 16px; flex-wrap: wrap; }
  .journal .jact { margin-left: 74px; }
}
@media (prefers-color-scheme: dark) and (max-width: 860px) {
  .tabbar { background: rgba(255, 255, 255, .55); }
}
@media (prefers-reduced-transparency: reduce) {
  .tabbar { background: rgba(255,255,255,.96); }
}

/* ---------------------------------------------------------------- hero headline + journey line (v1.3.1) */
.hero2 h1.hero-title { font-size: clamp(3.4rem, 9vw, 7.4rem); line-height: .95; letter-spacing: -0.055em; font-weight: 750; margin-top: 8px; max-width: none; }
.hero2 h1.hero-title .grad { padding-right: .04em; background: linear-gradient(100deg, #155eef 0%, #3f6bff 40%, #7b5cff 75%, #b04cff 100%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rise .8s .05s var(--ease) both, gradmove 6s ease-in-out 1s infinite alternate; }
@keyframes gradmove { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.br-sm { display: none; }
.hero2 .hero-sub { max-width: 600px; font-size: clamp(1.08rem, 1.7vw, 1.3rem); line-height: 1.55; color: #515154; margin-top: 26px; }
.btn.btn-lg { padding: 16px 28px; font-size: 1.02rem; }
.journey-line { list-style: none; margin: 48px auto 0; padding: 0; display: flex; justify-content: center; gap: 0; position: relative; max-width: 860px; width: 100%;
  animation: rise .8s .3s var(--ease) both; }
.journey-line::before, .journey-line::after { content: ""; position: absolute; top: 6px; left: calc(100% / 12); right: calc(100% / 12); height: 2px; border-radius: 2px; background: #e3e6ef; }
.journey-line::after { right: auto; width: 0; background: linear-gradient(90deg, #155eef, #7b5cff); animation: fillline 2.6s .9s var(--ease) forwards; }
@keyframes fillline { to { width: calc(100% - 100% / 6); } }
.journey-line li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: .86rem; font-weight: 500; color: var(--muted); position: relative; z-index: 1; }
.journey-line li span { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid #d2d6e2; transition: none;
  animation: dotOn .4s var(--spring) forwards; }
.journey-line li:nth-child(1) span { animation-delay: .9s; } .journey-line li:nth-child(2) span { animation-delay: 1.3s; }
.journey-line li:nth-child(3) span { animation-delay: 1.7s; } .journey-line li:nth-child(4) span { animation-delay: 2.1s; }
.journey-line li:nth-child(5) span { animation-delay: 2.5s; } .journey-line li:nth-child(6) span { animation-delay: 2.9s; }
@keyframes dotOn { 0% { transform: scale(1); } 50% { transform: scale(1.45); } 100% { transform: scale(1); border-color: var(--blue); background: var(--blue); box-shadow: 0 0 0 5px rgba(21,94,239,.14); } }
.journey-line li.end { color: var(--ink); font-weight: 600; }
.journey-line li.end span { animation-name: dotEnd; }
@keyframes dotEnd { 0% { transform: scale(1); } 50% { transform: scale(1.6); } 100% { transform: scale(1.15); border-color: #7b5cff; background: #7b5cff; box-shadow: 0 0 0 6px rgba(123,92,255,.18); } }
@media (max-width: 860px) {
  .br-sm { display: inline; }
  .hero2 h1.hero-title { font-size: clamp(3.4rem, 17vw, 5rem); }
  .journey-line { display: grid; grid-template-columns: repeat(3, 1fr); row-gap: 18px; margin-top: 36px; }
  .journey-line::before, .journey-line::after { display: none; }
  .journey-line li { font-size: .8rem; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .journey-line li span { border-color: var(--blue); background: var(--blue); }
  .journey-line::after { width: calc(100% - 100% / 6); }
}

/* ---------------------------------------------------------------- v1.3.2: professional headline + government recognition */
.hero2 h1.hero-title { font-size: clamp(2.9rem, 6.2vw, 5.4rem); line-height: 1.0; letter-spacing: -0.048em; max-width: 18ch; margin-left: auto; margin-right: auto; text-wrap: balance; }
.hero2 .hero-sub { max-width: 640px; }
.recog { padding: 72px 0 8px; }
.recog h2 { text-align: center; font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0 0 28px; }
.recog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.recog-item { display: flex; gap: 14px; align-items: center; padding: 18px 20px; background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,.03); transition: transform .25s var(--ease), box-shadow .25s; }
.recog-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.recog-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.recog-ic svg { width: 21px; height: 21px; }
.recog-item strong { display: block; color: var(--ink); font-size: .95rem; letter-spacing: -0.01em; }
.recog-item span:not(.recog-ic) { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; margin-top: 2px; }
.recog-foot { font-size: .8rem; }
@media (max-width: 1080px) { .recog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .recog { padding-top: 52px; }
  .recog-grid { grid-template-columns: 1fr; gap: 10px; }
  .hero2 h1.hero-title { font-size: clamp(2.6rem, 12.5vw, 3.6rem); }
}
/* v1.3.2: hook headline + recognition logos */
.hero2 h1.hero-title { max-width: none; font-size: clamp(2.7rem, 6.4vw, 5.6rem); }
.hero2 .hero-sub { font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: #515154; }
.recog-logo { flex: none; width: 64px; height: 52px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; padding: 6px; }
.recog-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
/* keep top-menu items on one line at medium widths */
.site-nav a { white-space: nowrap; }
@media (min-width: 861px) and (max-width: 1080px) { .site-nav { gap: 2px; } .site-nav a { padding-left: 10px; padding-right: 10px; } .site-nav .nav-cta { margin-left: 6px; } }
/* single-colour accent in the hero headline (no gradient) */
.hero2 h1.hero-title .accent { color: var(--blue); }
/* official programme logos in the recognition cards */
.recog-logo { width: 92px; height: 52px; padding: 4px 6px; border: 0; background: #fff; border-radius: 10px; }
.recog-item { gap: 16px; }
/* logo-on-top recognition cards */
.recog-item { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px 22px; }
.recog-logo { width: 100%; height: 64px; padding: 0; background: none; border-radius: 0; display: flex; align-items: center; justify-content: flex-start; }
.recog-logo img { height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.recog-item .recog-ic { width: 64px; height: 64px; border-radius: 16px; }
.recog-item .recog-ic svg { width: 30px; height: 30px; }

/* ---------------------------------------------------------------- v1.3.3 polish */
/* MSME logo is wide: give it the full card width */
.recog-logo img[src*="udyam"] { height: 46px; }
/* breathing room between the recognition cards and the stats strip */
.recog { padding-bottom: 24px; }
.recog + .stats-section, .stats-section { padding-top: 64px; }
.stats .stat { padding: 34px 30px; }
.stat .n { white-space: nowrap; letter-spacing: -0.03em; }
.stat .d { line-height: 1.5; }
/* bottom call-to-action: one solid brand blue, no moving gradient */
.cta { background: var(--blue) !important; animation: none !important; }
.cta::before, .cta::after { display: none !important; }
.cta p { color: rgba(255,255,255,.86); }
.cta .btn.white { color: var(--blue); }
.cta .btn.ghost-white { border-color: rgba(255,255,255,.6); }
/* floating WhatsApp button with the official mark */
.wa-float { width: 60px; height: 60px; background: #25d366; color: #fff; display: grid; place-items: center; border-radius: 50%;
  box-shadow: 0 10px 28px -8px rgba(37, 211, 102, .65), 0 2px 6px rgba(0,0,0,.12); transition: transform .3s var(--spring), box-shadow .2s; }
.wa-float svg { width: 32px; height: 32px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: waPulse 2.8s ease-out infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(1.55); opacity: 0; } }
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-tip { position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%) translateX(6px); white-space: nowrap; background: #fff; color: var(--ink);
  font: 500 .86rem var(--font); padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); }
.wa-float:hover .wa-tip, .wa-float:focus-visible .wa-tip { opacity: 1; transform: translateY(-50%); }
@media (max-width: 600px) { .wa-float { width: 54px; height: 54px; } .wa-float svg { width: 29px; height: 29px; } .wa-tip { display: none; } }

/* ---------------------------------------------------------------- inner page headers match the homepage hero */
.page-hero { text-align: center; padding: 92px 0 72px;
  background: radial-gradient(900px 420px at 50% 125%, rgba(21, 94, 239, .13), transparent 70%), linear-gradient(180deg, #fff 0%, #f6f8ff 100%); }
.page-hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 750; max-width: 17ch; margin: 0 auto; text-wrap: balance; }
.page-hero .hl, .section h2 .hl, .split-title .hl, .section-title .hl { color: var(--blue); background: none; -webkit-text-fill-color: currentColor; }
.page-hero .lede { margin: 22px auto 0; max-width: 640px; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #515154; }
.page-hero .svc-nav { justify-content: center; margin-top: 30px; }
.page-hero .xprofile { text-align: left; }
.page-hero .xprofile h1 { margin: 4px 0 10px; max-width: none; }
@media (max-width: 600px) { .page-hero { padding: 56px 0 44px; } }

/* expert application page */
.join-grid { display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: start; }
.join-why h2 { font-size: 1.4rem; margin: 0 0 18px; }
.join-steps { list-style: none; counter-reset: js; padding: 0; margin: 0 0 24px; display: grid; gap: 18px; }
.join-steps li { counter-increment: js; display: grid; grid-template-columns: 36px 1fr; gap: 2px 14px; }
.join-steps li::before { content: counter(js); grid-row: span 2; width: 36px; height: 36px; border-radius: 11px; background: var(--blue); color: #fff; display: grid; place-items: center; font: 700 .95rem var(--display); }
.join-steps b { color: var(--ink); }
.join-steps span { font-size: .9rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.page-hero .hero-actions { justify-content: center; margin-top: 28px; }
@media (max-width: 860px) { .join-grid { grid-template-columns: 1fr; } .join-why { order: 2; } }
.page-hero .xprofile .lede { margin: 0; text-align: left; max-width: 60ch; }
.contact-box .btn.secondary { color: var(--ink); background: #fff; }

/* ---------------------------------------------------------------- expert detail: title, awards, key numbers */
.xrole { font-size: .82rem; font-weight: 600; color: var(--blue); margin-top: -2px; }
.xtitle { margin: 0; font-size: 1.15rem; font-weight: 600; color: var(--blue); }
.xposition { margin: 6px 0 0; color: var(--text); font-size: 1rem; max-width: 60ch; }
.xbadge { display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 0; padding: 8px 14px; border-radius: 999px;
  background: #fff7e6; color: #8a5a00; font-weight: 600; font-size: .88rem; border: 1px solid #ffe2a8; }
.xbadge svg { width: 18px; height: 18px; color: #c98a00; flex: none; }
.xstats-wrap { margin-top: -36px; position: relative; z-index: 2; }
.xstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; }
.xstats div { padding: 22px 24px; border-right: 1px solid var(--line); }
.xstats div:last-child { border-right: 0; }
.xstats b { display: block; font: 750 1.7rem/1.1 var(--display); letter-spacing: -0.03em; color: var(--blue); }
.xstats span { font-size: .84rem; color: var(--muted); }
.xlead { font-size: 1.15rem; color: var(--ink); font-weight: 500; margin-top: 0; }
.xlist { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.xlist li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--text); line-height: 1.5; }
.xlist svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--blue); }
.xlist.awards li { background: #fffbf2; border-color: #ffe9bd; }
.xlist.awards svg { color: #c98a00; }
@media (max-width: 600px) { .xstats { grid-template-columns: 1fr 1fr; } .xstats div:nth-child(2n) { border-right: 0; } .xstats div { border-bottom: 1px solid var(--line); } }
/* expert photos: nothing may sit above the image inside its frame */
.xphoto::before, .xphoto::after { content: none !important; display: none !important; }
.xphoto { line-height: 0; }
.xphoto.lg { width: 220px; height: 220px; }
.xphoto.lg img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
@media (max-width: 860px) { .xphoto.lg { width: 160px; height: 160px; } }
.xtags span { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
/* admin: contact card for experts and clients */
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.contact-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.contact-actions .btn svg { width: 16px; height: 16px; }
.contact-actions p { flex-basis: 100%; margin: 6px 0 0; }
.tabbar .tab-dot { position: absolute; top: 3px; right: calc(50% - 20px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  background: #ff3b30; color: #fff; font: 700 .64rem/17px var(--font); font-style: normal; text-align: center; }

/* ---------------------------------------------------------------- client dashboard */
.focus-card { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 30px; margin-bottom: 20px;
  border-radius: 22px; background: var(--blue); color: #fff; text-decoration: none; box-shadow: 0 16px 40px -18px rgba(21,94,239,.7);
  transition: transform .25s var(--ease); }
.focus-card:hover { color: #fff; transform: translateY(-2px); }
.focus-card h2 { color: #fff; margin: 6px 0 8px; font-size: clamp(1.25rem, 2.2vw, 1.6rem); max-width: 40ch; }
.focus-card p { margin: 0; color: rgba(255,255,255,.85); }
.focus-card p strong { color: #fff; }
.focus-label { font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.75); }
.focus-ring { flex: none; width: 96px; height: 96px; border-radius: 50%; border: 6px solid rgba(255,255,255,.35); display: grid; place-content: center; text-align: center; }
.focus-ring b { font: 750 1.6rem/1 var(--display); }
.focus-ring small { font-size: .8rem; opacity: .8; }
.focus-ring span { font-size: .72rem; opacity: .8; }
.quick-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick-tools a { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 12px; background: var(--bg-soft); color: var(--ink);
  text-decoration: none; font-size: .88rem; font-weight: 500; }
.quick-tools a:hover { background: var(--blue-50); color: var(--blue); }
.quick-tools svg { width: 18px; height: 18px; color: var(--blue); flex: none; }
.topbar .acts .btn svg { width: 16px; height: 16px; vertical-align: -3px; }
@media (max-width: 600px) { .focus-card { padding: 20px; } .focus-ring { width: 72px; height: 72px; } .quick-tools { grid-template-columns: 1fr; } }
/* sign in with Google */
.google-btn { width: 100%; justify-content: center; gap: 10px; background: #fff !important; color: var(--ink) !important; border: 1px solid var(--line-2) !important; margin-top: 4px; }
.google-btn:hover { background: #f8f9fb !important; }
.google-btn svg { width: 20px; height: 20px; }
.or-line { display: flex; align-items: center; gap: 12px; margin: 20px 0 6px; color: var(--muted); font-size: .82rem; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }


/* ---------------------------------------------------------------- group projects: enrolment, tasks, notifications */
.enrol-hero .enrol-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.enrol-facts span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .9rem; color: var(--text); }
.enrol-facts b { color: var(--ink); }
.enrol-grid { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; max-width: 980px; }
.pay-card { background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 22px; text-align: center; position: sticky; top: 90px; }
.pay-step { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); margin-bottom: 14px; text-align: left; }
.pay-step b { width: 28px; height: 28px; border-radius: 9px; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: .85rem; }
.pay-qr { width: 100%; max-width: 240px; height: auto; border-radius: 14px; border: 1px solid var(--line); margin: 4px auto 14px; display: block; }
.pay-id { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.pay-id span { font-size: .8rem; color: var(--muted); }
.pay-id input { flex: 1; min-width: 0; font-family: var(--mono); font-size: .86rem; }
.pay-app { width: 100%; }
.enrol-done { text-align: center; grid-column: 1 / -1; max-width: 560px; margin: 0 auto; }
.enrol-done .tool-ic { margin: 0 auto 12px; }
.enrol-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.enrol-row .t { font-weight: 600; color: var(--ink); }
.enrol-row .m { font-size: .8rem; color: var(--muted); margin-top: 2px; }
details.reject summary, details.mod-req summary { list-style: none; cursor: pointer; }
details.reject summary::-webkit-details-marker, details.mod-req summary::-webkit-details-marker { display: none; }
details.reject[open] form { margin-top: 8px; }
details.mod-req { position: relative; }
details.mod-req form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; width: min(320px, 80vw); background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 12px; box-shadow: var(--shadow-lg); display: grid; gap: 8px; }
.wa-group { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 16px; border-radius: 18px; background: #e9fbef;
  border: 1px solid #c5efd3; color: #0f5132; text-decoration: none; }
.wa-group:hover { color: #0f5132; background: #def8e8; }
.wa-group svg { width: 30px; height: 30px; color: #25d366; flex: none; }
.wa-group b { display: block; }
.wa-group small { color: #3d6b52; font-size: .82rem; }
.task { padding: 14px 22px; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.task .t { font-weight: 600; color: var(--ink); }
.task .m { font-size: .8rem; color: var(--muted); }
.task-details { font-size: .88rem; margin: 8px 0 0; white-space: pre-wrap; }
.sub { margin-top: 10px; padding: 10px 12px; background: var(--bg-soft); border-radius: 12px; }
.sub-note { font-size: .86rem; margin-top: 6px; white-space: pre-wrap; }
.sub-feedback { font-size: .84rem; margin-top: 6px; color: var(--ink); }
.task details.inline { border-top: 0; margin-top: 6px; }
.task details.inline > summary { padding: 8px 0; }
.task details.inline .form-inner { padding: 0 0 6px; }
.kind-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.kind-pick label { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; }
.kind-pick label:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.kind-pick input { margin-top: 3px; }
.kind-pick b { display: block; color: var(--ink); }
.kind-pick small { color: var(--muted); font-size: .8rem; }
.group-only { display: none; }
form.is-group .group-only { display: block; }
form.is-group .client-only { display: none; }
.bell { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--ink); background: var(--bg-soft); margin-left: auto; margin-right: 8px; }
.bell svg { width: 21px; height: 21px; }
.bell i { position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: #ff3b30; color: #fff;
  font: 700 .64rem/17px var(--font); font-style: normal; text-align: center; }
.bell.desk { margin: 0 0 0 4px; background: #fff; box-shadow: var(--shadow); }
@media (max-width: 860px) { .bell.desk { display: none; } }
.notif { display: flex; gap: 12px; align-items: flex-start; padding: 13px 22px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.notif:hover { background: var(--bg-soft); color: var(--text); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: none; background: transparent; }
.notif.is-new .notif-dot { background: var(--blue); }
.notif.is-new .notif-text { color: var(--ink); font-weight: 500; }
.notif-text small { display: block; color: var(--muted); font-size: .76rem; font-weight: 400; }
.enrol-status { padding: 12px 16px; border-radius: 14px; margin-bottom: 12px; font-size: .9rem; background: var(--warn-bg); color: var(--warn); }
.enrol-status b { display: block; color: var(--ink); }
.enrol-status.rejected { background: var(--bad-bg); color: var(--bad); }
.focus-wa { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #25d366; display: grid; place-items: center; color: #fff; cursor: pointer; }
.focus-wa svg { width: 26px; height: 26px; }
@media (max-width: 860px) {
  .enrol-grid { grid-template-columns: 1fr; }
  .pay-card { position: static; }
  .kind-pick { grid-template-columns: 1fr; }
  .enrol-row { flex-direction: column; align-items: stretch; padding: 12px 14px; }
  .task { padding: 12px 14px; }
}
.pay-amt { margin: 0 0 12px; font-size: .95rem; }
.pay-amt b { color: var(--ink); font-size: 1.1rem; }
.reg-steps { margin: 18px 0 14px; padding-left: 20px; display: grid; gap: 4px; }
.enrol-status.waiting { background: var(--blue-50); color: var(--text); }
