/* IntellectX — app hub + guide pages (static, no JS). Shares tokens with the home page. */
:root {
  --bg: #0a0a0c; --bg-2: #111114; --fg: #f5f5f7; --mut: #a1a1a6; --dim: #6e6e73;
  --card: #151518; --line: rgba(255, 255, 255, 0.08); --line-2: rgba(255, 255, 255, 0.14);
  --btn: #f5f5f7; --btn-fg: #111; --acc: #ff7a2f; --acc-2: #ff8a3d; --acc-grad: linear-gradient(135deg, #ff8a3d, #e8541e);
  --ok: #4ade80; --warn: #fbbf24; --bad: #f87171;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -14px rgba(0, 0, 0, 0.7);
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans Devanagari', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --gutter: clamp(16px, 4vw, 40px); --maxw: 1160px; --read: 720px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f5f5f7; --bg-2: #ffffff; --fg: #1d1d1f; --mut: #6e6e73; --dim: #a1a1a6;
  --card: #ffffff; --line: rgba(0, 0, 0, 0.08); --line-2: rgba(0, 0, 0, 0.14);
  --btn: #1d1d1f; --btn-fg: #fff; --acc: #e8541e;
  --ok: #15803d; --warn: #b45309; --bad: #dc2626;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 14px 34px -12px rgba(0, 0, 0, 0.16);
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
:lang(hi) body, body:lang(hi) { line-height: 1.8; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.03em; text-decoration: none; font-size: 17px; }
.logo img { width: 28px; height: 28px; border-radius: 8px; }
.logo b { color: var(--acc); }
.top nav { margin-left: auto; display: flex; gap: 6px; }
.top nav a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--mut); padding: 8px 12px; border-radius: 999px; }
.top nav a:hover { color: var(--fg); background: var(--line); }

/* breadcrumb + hero */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--dim); margin: 28px 0 0; list-style: none; }
.crumbs a { color: var(--mut); text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--dim); }
.hero { padding: 22px 0 8px; max-width: 860px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--acc); letter-spacing: 0.02em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--acc-grad); }
h1 { font-size: clamp(32px, 5.2vw, 56px); line-height: 1.06; letter-spacing: -0.045em; font-weight: 650; margin: 14px 0 0; text-wrap: balance; }
h1 em, h2 em { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; color: var(--mut); }
:lang(hi) h1 { letter-spacing: -0.02em; line-height: 1.25; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--mut); margin-top: 16px; max-width: 680px; text-wrap: pretty; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 13px; color: var(--dim); }

/* layout: article + app card */
.layout { display: grid; grid-template-columns: minmax(0, var(--read)) 300px; gap: clamp(32px, 5vw, 72px); justify-content: space-between; align-items: start; margin-top: 34px; }
article { min-width: 0; }
aside { position: sticky; top: 84px; }
@media (max-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr); } aside { position: static; order: -1; } }

.appcard { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px; box-shadow: var(--shadow); }
.appcard__top { display: flex; gap: 14px; align-items: center; }
.appcard__top img { width: 60px; height: 60px; border-radius: 23%; flex: none; }
.appcard__top b { display: block; font-size: 17px; letter-spacing: -0.02em; line-height: 1.25; }
.appcard__top small { display: block; font-size: 12.5px; color: var(--mut); margin-top: 2px; }
.appcard p { font-size: 14px; color: var(--mut); margin-top: 14px; line-height: 1.55; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; list-style: none; }
.chips li { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--line); color: var(--fg); }
.play { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; padding: 13px 18px; border-radius: 14px; background: var(--btn); color: var(--btn-fg); font-weight: 700; font-size: 15px; text-decoration: none; transition: transform 0.2s; }
.play:hover { transform: translateY(-1px); }
.play svg { width: 20px; height: 20px; flex: none; }
.play .s { display: none; }
@media (max-width: 960px) { .appcard { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 14px; padding: 14px; } .appcard p, .appcard .chips { display: none; } .appcard .play { margin-top: 0; padding: 11px 16px; font-size: 14px; } .appcard .play .l { display: none; } .appcard .play .s { display: inline; } }

/* article typography */
article > * + * { margin-top: 20px; }
article h2 { font-size: clamp(24px, 3vw, 31px); line-height: 1.2; letter-spacing: -0.035em; font-weight: 650; margin-top: 48px; scroll-margin-top: 80px; text-wrap: balance; }
article h3 { font-size: 19px; letter-spacing: -0.02em; margin-top: 30px; }
article p, article li { color: color-mix(in srgb, var(--fg) 86%, var(--mut)); }
article ul.list, article ol.list { padding-left: 1.2em; display: grid; gap: 8px; }
article ul.list li::marker { color: var(--acc); }
article strong { color: var(--fg); }

.answer { position: relative; padding: 20px 22px 20px 24px; border-radius: 18px; background: linear-gradient(180deg, color-mix(in srgb, var(--acc) 12%, var(--card)), var(--card)); border: 1px solid color-mix(in srgb, var(--acc) 30%, var(--line)); }
.answer::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--acc-grad); }
.answer h2 { all: unset; display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--acc); }
.answer p { margin-top: 8px; font-size: 18px; color: var(--fg); line-height: 1.6; }

.callout { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); font-size: 15.5px; }
.callout--warn { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); background: color-mix(in srgb, var(--bad) 8%, var(--bg-2)); }
.callout--tip { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); background: color-mix(in srgb, var(--ok) 7%, var(--bg-2)); }
.callout b:first-child { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mut); background: var(--bg-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; color: var(--fg); }
caption { caption-side: bottom; text-align: left; font-size: 13px; color: var(--dim); padding: 10px 14px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }

/* steps with phone screenshots */
.steps { list-style: none; counter-reset: s; display: grid; gap: 18px; }
.step { counter-increment: s; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.step::before { content: counter(s); grid-row: span 3; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums;
  color: var(--fg); background: transparent; border: 1.5px solid color-mix(in srgb, var(--fg) 32%, transparent); } /* circular outline, neutral secondary stroke, transparent fill */
.step h3 { margin: 4px 0 0; font-size: 18px; }
.step p { margin-top: 4px; font-size: 16px; }
.step .shot { margin-top: 14px; }
.shot { display: grid; justify-items: start; gap: 8px; }
.shot img { width: min(260px, 70vw); height: auto; border-radius: 26px; border: 6px solid #1c1c20; box-shadow: var(--shadow); background: #000; }
.shot figcaption { font-size: 13px; color: var(--dim); max-width: 420px; }
.shots { display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; }
.shots .shot { scroll-snap-align: start; flex: none; }
.shots .shot img { width: 220px; }

/* feature grid (hub) */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; list-style: none; }
.features li { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); font-size: 15px; }
.features li b { display: block; font-size: 16px; color: var(--fg); margin-bottom: 4px; letter-spacing: -0.01em; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 650; font-size: 17px; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-size: 24px; font-weight: 300; color: var(--mut); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--mut); }

/* related + bottom CTA */
.related { margin: 72px 0 0; }
.related h2 { font-size: 24px; letter-spacing: -0.03em; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 18px; list-style: none; }
.cards a { display: block; height: 100%; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.cards a:hover { border-color: var(--line-2); transform: translateY(-2px); }
.cards small { display: block; font-size: 12px; font-weight: 700; color: var(--acc); text-transform: uppercase; letter-spacing: 0.06em; }
.cards b { display: block; margin-top: 6px; font-size: 16px; line-height: 1.35; letter-spacing: -0.01em; }
.band { margin: 72px 0 0; padding: clamp(28px, 5vw, 48px); border-radius: 28px; background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--acc) 22%, var(--card)), var(--card) 60%); border: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; }
.band img { width: 72px; height: 72px; border-radius: 23%; }
.band h2 { font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.035em; line-height: 1.15; }
.band p { color: var(--mut); margin-top: 4px; font-size: 15px; }
.band .play { margin: 0; }
@media (max-width: 720px) { .band { grid-template-columns: 1fr; text-align: left; } }

footer { margin: 80px 0 0; padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; }
footer a { color: var(--mut); text-decoration: none; }
.disclaimer { font-size: 13.5px; color: var(--dim); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 40px; }
.sample { background: var(--acc-grad); color: #fff; text-align: center; font-size: 13px; font-weight: 700; padding: 7px 12px; }

/* optional parts — hidden by default, switched on by individual styles (css/styles/vN.css) */
.hero__shot, .toc, .play--hero { display: none; }
.hero__shot img { width: 100%; height: auto; }
.toc b { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.toc ol { list-style: none; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; text-decoration: none; font-size: 14px; color: var(--mut); }
.toc a:hover { color: var(--fg); background: var(--line); }

/* style switcher (sample pages only) */
.switcher { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #111; color: #fff; font: 13px/1.3 -apple-system, 'Segoe UI', Roboto, sans-serif; border-bottom: 2px solid #ff7a2f; }
.switcher span { flex: 1; text-align: center; }
.switcher small { display: block; opacity: 0.65; font-size: 11.5px; }
.switcher a { color: #fff; text-decoration: none; padding: 6px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.12); font-weight: 700; }
.switcher__all { font-weight: 600 !important; }
.switcher ~ .top { top: 46px; }
@media (max-width: 600px) { .switcher__all { display: none; } .switcher ~ .top { top: 52px; } }

/* light/dark screenshot twins: dark pages show the dark shot, light pages the light one */
.shot--light { display: none !important; }
:root[data-theme="light"] .shot--pair .shot--dark { display: none !important; }
:root[data-theme="light"] .shot--pair .shot--light { display: block !important; }

/* screenshots are links to the app on Google Play */
.shot__link { position: relative; display: inline-block; border-radius: 26px; text-decoration: none; transition: transform 0.25s; }
.shot__link:hover { transform: translateY(-3px); }
.shot__link:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }
.shot__link::after { content: attr(data-label) ' ↗'; position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 6px); white-space: nowrap;
  padding: 7px 12px; border-radius: 999px; background: rgba(17, 17, 17, 0.86); color: #fff; font: 600 12px/1 var(--sans); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.shot__link:hover::after, .shot__link:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

/* top bar: never wrap; on phones keep only "All apps" (app name is in the breadcrumb and app card) */
.top nav a { white-space: nowrap; }
@media (max-width: 520px) { .top nav a:first-child { display: none; } }

/* site footer: all app hubs by category + more guides for this app */
.sitefoot .wrap { display: block; }
.sitefoot { margin: 80px 0 0; padding: 44px 0 calc(28px + env(safe-area-inset-bottom, 0px)); overflow: hidden; border-top: 1px solid var(--line); background: var(--bg-2); font-size: 14px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px 24px; }
.fcol b { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.fcol ul { list-style: none; display: grid; gap: 7px; }
.fcol a { color: var(--mut); text-decoration: none; line-height: 1.35; }
.fcol a:hover, .fcol a[aria-current] { color: var(--fg); }
.fcol--wide { grid-column: span 2; }
@media (max-width: 560px) { .fcol--wide { grid-column: 1 / -1; } }
.fbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); }
.fbar .logo { font-size: 15px; } .fbar .logo img { width: 24px; height: 24px; }
.flinks { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.flinks a { color: var(--mut); text-decoration: none; } .flinks a:hover { color: var(--fg); }
.fbar small { margin-left: auto; }
@media (max-width: 560px) { .fbar small { margin-left: 0; width: 100%; } }

/* /apps/ guides index */
.gindex { margin-top: 30px; display: grid; gap: 40px; }
.gindex h2 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--acc); border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.gindex section { display: grid; gap: 18px; }
.gapp { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 12px 28px; padding: 6px 0 18px; border-bottom: 1px solid var(--line); }
.gapp__head { display: flex; gap: 12px; align-items: center; text-decoration: none; align-self: start; }
.gapp__head img { border-radius: 23%; flex: none; }
.gapp__head b { display: block; font-size: 17px; letter-spacing: -0.01em; } .gapp__head small { color: var(--dim); font-size: 13px; }
.gapp ul { list-style: none; columns: 2 260px; column-gap: 28px; }
.gapp li { break-inside: avoid; padding: 4px 0; }
.gapp li a { color: var(--mut); text-decoration: none; font-size: 15px; } .gapp li a:hover { color: var(--acc); }
@media (max-width: 760px) { .gapp { grid-template-columns: 1fr; } }

/* Google Play buttons: pill shape, thin outline, transparent fill */
.play { border-radius: 999px; background: transparent; color: var(--fg); border: 1px solid color-mix(in srgb, var(--fg) 38%, transparent); box-shadow: none; font-weight: 600; }
.play:hover { background: color-mix(in srgb, var(--fg) 6%, transparent); border-color: color-mix(in srgb, var(--fg) 60%, transparent); transform: none; }
.play:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

/* big wordmark, same as the homepage footer */
.fbig { margin-top: 28px; font-size: 15.4vw; font-weight: 800; letter-spacing: -0.06em; line-height: 0.85; text-align: center; white-space: nowrap; user-select: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--fg) 14%, transparent), transparent 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (min-width: 1240px) { .fbig { font-size: 190px; } }
.fcopy { text-align: center; color: var(--dim); font-size: 13px; margin-top: 10px; }
.fbar .flinks { margin-left: auto; }
@media (max-width: 560px) { .fbar .flinks { margin-left: 0; } }

/* "Inside the app" gallery: every real screen, scrolls sideways */
.gallery { margin-top: 64px; }
.gallery__head h2 { font-size: clamp(24px, 3vw, 31px); line-height: 1.2; letter-spacing: -0.035em; font-weight: 650; }
.gallery__head p { color: var(--mut); margin-top: 6px; font-size: 15px; }
.gallery .shots { margin-top: 20px; gap: 18px; padding-bottom: 16px; mask-image: linear-gradient(90deg, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); }
.gallery .shot { width: 200px; align-content: start; }
.gallery .shot img { width: 200px; }
.gallery .shot figcaption { max-width: 200px; font-size: 12.5px; line-height: 1.4; }
@media (max-width: 560px) { .gallery .shot, .gallery .shot img { width: 168px; } }
.shot--land img { width: min(460px, 88vw) !important; border-radius: 18px; }
.gallery .shot--land, .gallery .shot--land img { width: 420px !important; }
@media (max-width: 560px) { .gallery .shot--land, .gallery .shot--land img { width: 300px !important; } }
