/* SectorIQ website — plain CSS, no framework. Colours come from the app: indigo brand + the three sector colours (Safe / Review / Never). */
:root {
  --ink: #10162b;
  --ink-2: #1a2240;
  --ink-line: #2a3358;
  --paper: #f4f6fb;
  --white: #ffffff;
  --text: #1b2134;
  --muted: #5b6480;
  --line: #dfe3ee;
  --brand: #4a55e6;
  --brand-dk: #3540c8;
  --cyan: #1bb8d6;
  --safe: #17a36b;
  --review: #e0a021;
  --never: #dc4b43;
  --radius: 14px;
  --max: 1180px;
  --font: "Archivo", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans Telugu", "Nirmala UI", sans-serif;
  --font-te: "Noto Sans Telugu", "Nirmala UI", "Gautami", sans-serif;
  --font-te-head: "NTR", "Noto Sans Telugu", "Nirmala UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dk); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ---------- language switch: both languages are in the HTML (good for Google), one is hidden ---------- */
html[data-lang="en"] [lang="te"]:not(.lang-btn), html[data-lang="te"] [lang="en"]:not(.lang-btn) { display: none !important; }
:not(html)[lang="te"] { font-family: var(--font-te); }
h1 [lang="te"], h2 [lang="te"], h3 [lang="te"] { font-family: var(--font-te-head); font-weight: 400; letter-spacing: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--ink); border-bottom: 1px solid var(--ink-line); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.01em; font-stretch: 112%; }
.brand img { width: 34px; height: 34px; }
.brand b { color: var(--cyan); font-weight: 800; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: #c9cfe6; text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.lang { display: flex; border: 1px solid var(--ink-line); border-radius: 10px; padding: 3px; }
.lang-btn { background: none; border: 0; color: #aeb6d4; font: inherit; font-size: 14px; padding: 4px 10px; border-radius: 7px; cursor: pointer; }
.lang-btn[lang="te"] { font-family: var(--font-te); }
.lang-btn[aria-pressed="true"] { background: var(--brand); color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-weight: 700; text-decoration: none; border-radius: 12px; padding: 14px 22px; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dk); }
.btn-line { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-line:hover { border-color: #fff; }
.btn-light { border-color: var(--line); color: var(--text); background: var(--white); }
.btn-light:hover { border-color: var(--brand); color: var(--brand-dk); }
.btn-sm { padding: 9px 16px; font-size: 15px; border-radius: 10px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.menu-btn { display: none; background: none; border: 1px solid var(--ink-line); color: #fff; border-radius: 9px; width: 40px; height: 40px; cursor: pointer; }

/* ---------- hero ---------- */
.hero { background: var(--ink); color: #eef1fb; padding: 64px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); line-height: 1.04; letter-spacing: -.025em; font-weight: 800; font-stretch: 115%; margin: 0 0 22px; color: #fff; }
.hero h1 [lang="te"] { font-size: .86em; line-height: 1.35; display: block; }
.hero h1 .ln { display: block; }
.hero h1 .ln:nth-child(1) { color: #fff; }
.hero h1 .ln:nth-child(2) { color: #b9c1ff; }
.hero h1 .ln:nth-child(3) { color: #7fe0f2; }
.hero p.lead { font-size: 19px; color: #c3cae4; max-width: 34em; margin: 0 0 30px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0; list-style: none; color: #aab3d3; font-size: 15px; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--safe); }

/* sector map — the one animated moment on the page */
.map { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 18px; padding: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.map-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; font-size: 14px; color: #aeb6d4; }
.map-head strong { color: #fff; font-size: 15px; }
.grid { display: grid; grid-template-columns: repeat(var(--cols, 20), 1fr); gap: 4px; }
.cell { aspect-ratio: 1; border-radius: 3px; background: #26304f; transition: background-color .35s ease, transform .35s ease, opacity .5s ease; }
@supports not (aspect-ratio: 1) { .cell { padding-top: 100%; } }
.cell.scan { background: #5d6aff; transform: scale(.82); }
.cell.s { background: var(--safe); }
.cell.r { background: var(--review); }
.cell.n { background: var(--never); }
.cell.free { background: #1f2844; opacity: .55; }
.legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.legend div { background: rgba(255, 255, 255, .04); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; color: #aeb6d4; line-height: 1.35; }
.legend b { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 14.5px; margin-bottom: 2px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.map-status { font-family: var(--font); margin-top: 12px; font-size: 14px; color: #c9cfe6; min-height: 1.6em; }

/* ---------- sections ---------- */
section { padding: 88px 0; }
.sec-white { background: var(--white); }
.sec-head { max-width: 720px; margin-bottom: 40px; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.12; letter-spacing: -.02em; font-weight: 800; font-stretch: 108%; margin: 0 0 14px; }
h2 [lang="te"] { line-height: 1.4; }
.sec-head p { color: var(--muted); font-size: 18px; margin: 0; max-width: 40em; }
h3 { font-size: 19px; line-height: 1.3; margin: 0 0 6px; }

/* showcase */
.show { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 32px; align-items: start; }
.show-tabs { display: flex; flex-direction: column; gap: 6px; }
.show-tab { text-align: left; background: none; border: 1px solid transparent; border-radius: 12px; padding: 14px 16px; font: inherit; color: var(--text); cursor: pointer; }
.show-tab span.d { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.45; margin-top: 2px; }
.show-tab strong { font-size: 17px; }
.show-tab:hover { background: var(--paper); }
.show-tab[aria-selected="true"] { background: var(--paper); border-color: var(--line); box-shadow: inset 4px 0 0 var(--brand); }
.screen { background: var(--ink); border-radius: 16px; padding: 10px; box-shadow: 0 24px 60px rgba(16, 22, 43, .22); position: relative; }
.screen img { border-radius: 9px; width: 100%; transition: opacity .25s ease; }
.screen img.fading { opacity: 0; }

/* tools index */
.groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 28px; }
.group h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; padding-bottom: 10px; border-bottom: 2px solid var(--text); margin-bottom: 4px; }
.group h3 i { width: 12px; height: 12px; border-radius: 3px; }
.tools { list-style: none; margin: 0; padding: 0; }
.tools li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.tools strong { display: flex; align-items: center; gap: 8px; font-size: 15.5px; }
.tools span.d { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 2px; }
.pro { font-size: 11.5px; font-weight: 700; color: #8a5a00; background: #fff1cc; border-radius: 6px; padding: 1px 7px; letter-spacing: .02em; }
.part { color: #5b6480; background: #eef0f6; }

/* rescue steps — a real sequence, so numbered */
.rescue { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 26px 58px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps li::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: 6px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }
.note { border-left: 4px solid var(--review); background: #fff8e6; padding: 12px 16px; border-radius: 0 10px 10px 0; font-size: 15.5px; color: #5a4310; margin-top: 8px; }

/* honest */
.honest { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.honest-col { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.honest-col.no { border-top: 5px solid var(--never); }
.honest-col.yes { border-top: 5px solid var(--safe); }
.honest-col ul { margin: 14px 0 0; padding: 0; list-style: none; }
.honest-col li { padding: 10px 0 10px 30px; position: relative; border-top: 1px solid var(--line); font-size: 16px; }
.honest-col li::before { position: absolute; left: 0; top: 9px; font-weight: 800; }
.honest-col.no li::before { content: "✕"; color: var(--never); }
.honest-col.yes li::before { content: "✓"; color: var(--safe); }
.honest-col li span.d { display: block; color: var(--muted); font-size: 14.5px; }

/* shops */
.shops { background: var(--ink); color: #e8ebf7; }
.shops h2 { color: #fff; }
.shops .sec-head p { color: #aeb6d4; }
.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink-line); }
.shop-item { padding: 26px 26px 26px 0; border-bottom: 1px solid var(--ink-line); }
.shop-item:not(:nth-child(3n+1)) { padding-left: 26px; border-left: 1px solid var(--ink-line); }
.shop-item h3 { color: #fff; }
.shop-item p { margin: 0; color: #aeb6d4; font-size: 15.5px; }

/* pricing */
.plans { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: stretch; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; }
.plan.pro-plan { border: 2px solid var(--brand); }
.plan .price { font-size: 30px; font-weight: 800; font-stretch: 110%; margin: 6px 0 4px; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan ul { margin: 18px 0 24px; padding: 0 0 0 20px; flex: 1; }
.plan li { margin: 6px 0; font-size: 15.5px; }
.plan .btn { align-self: flex-start; }

/* download */
.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.dl-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.dl-card .ver { color: var(--muted); font-size: 15px; margin: 4px 0 18px; }
.dl-card ul { margin: 18px 0 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.smartscreen { margin-top: 24px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.smartscreen .ic { width: 40px; height: 40px; border-radius: 10px; background: #e7ebff; color: var(--brand-dk); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.smartscreen p { margin: 0; font-size: 15.5px; color: var(--muted); }

/* faq */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 40px 20px 0; font-weight: 700; font-size: 17.5px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 26px; font-weight: 400; color: var(--brand); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 44em; }

/* footer */
footer { background: var(--ink); color: #aeb6d4; padding: 48px 0 32px; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
footer a { color: #dfe4ff; }
footer .brand { margin-bottom: 8px; }

/* sticky mobile download bar */
.mobile-dl { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .show { grid-template-columns: 1fr; }
  .show-tabs { flex-direction: row; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
  .show-tab { flex: 0 0 auto; padding: 10px 14px; }
  .show-tab span.d { display: none; }
  .show-tab[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--brand); }
}
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--ink); padding: 10px 20px 18px; border-bottom: 1px solid var(--ink-line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 6px; font-size: 17px; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  .top .btn-dl { display: none; }
  .hero { padding: 40px 0 56px; }
  .hero .wrap, .rescue, .honest, .plans, .dl { grid-template-columns: 1fr; }
  .hero .wrap { gap: 40px; }
  .shop-grid { grid-template-columns: 1fr 1fr; }
  .shop-item, .shop-item:not(:nth-child(3n+1)) { padding: 22px 18px 22px 0; border-left: 0; }
  .shop-item:nth-child(2n) { padding-left: 18px; border-left: 1px solid var(--ink-line); }
  section { padding: 64px 0; }
  .mobile-dl { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; box-shadow: 0 10px 30px rgba(16, 22, 43, .35); transform: translateY(150%); transition: transform .3s ease; }
  .mobile-dl.show { transform: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .groups, .shop-grid { grid-template-columns: 1fr; }
  .shop-item:nth-child(2n) { padding-left: 0; border-left: 0; }
  .legend { grid-template-columns: 1fr; }
  .hero .cta .btn { flex: 1 1 100%; }
  .lang-btn { padding: 4px 8px; }
  .brand span.nm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print { .top, .mobile-dl, .map { display: none; } }
@media (min-width: 1021px) { .show .screen { position: -webkit-sticky; position: sticky; top: 88px; } }
