/*
 * Nexotri marketing site.
 *
 * No web fonts, no CDN, no analytics, no third-party anything. The pages are read by
 * Razorpay's reviewers and by PG owners on cheap Android phones over patchy mobile
 * data — both are better served by a page that renders instantly from one 6 KB file
 * than by anything that has to fetch first.
 *
 * Colours track the app's palette so the site and the product look like one thing.
 */

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --surface: #f7f9fc;
  --surface-2: #eef3f9;
  --border: #dfe6ef;
  --text: #10202e;
  --text-muted: #4a5c6d;
  --text-subtle: #6b7c8c;
  --brand: #0b6ec9;
  --brand-ink: #ffffff;
  --accent: #E6F4FE;
  --ok: #17794c;
  --shadow: 0 1px 2px rgba(16, 32, 46, .06), 0 8px 24px rgba(16, 32, 46, .06);
  --radius: 14px;
  --maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1319;
    --surface: #141c24;
    --surface-2: #1b242e;
    --border: #26323e;
    --text: #e8eef4;
    --text-muted: #a8b6c4;
    --text-subtle: #8093a4;
    --brand: #4da3f0;
    --brand-ink: #06121d;
    --accent: #13293d;
    --ok: #4ade80;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* --- header ---------------------------------------------------------------- */
header.site {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -.02em;
  color: var(--text);
  text-decoration: none;
}
.brand .mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--brand);
  color: var(--brand-ink);
  display: grid;
  place-items: center;
  font-size: .9rem;
  font-weight: 800;
}
nav.site a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 22px;
  font-size: .94rem;
}
nav.site a:hover { color: var(--brand); }
@media (max-width: 640px) {
  nav.site { width: 100%; }
  nav.site a { margin: 0 18px 0 0; }
}

/* --- type ------------------------------------------------------------------ */
h1 { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.15; letter-spacing: -.03em; margin: 0 0 16px; }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); letter-spacing: -.02em; margin: 0 0 14px; }
h3 { font-size: 1.05rem; margin: 0 0 8px; }
p  { margin: 0 0 14px; color: var(--text-muted); }
.lead { font-size: 1.12rem; color: var(--text-muted); max-width: 62ch; }
a { color: var(--brand); }
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--border); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 10px;
}

/* --- pieces ---------------------------------------------------------------- */
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { color: var(--text); }
.card p:last-child { margin-bottom: 0; }

.btn {
  display: inline-block;
  background: var(--brand);
  color: var(--brand-ink);
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li {
  position: relative;
  padding: 0 0 0 26px;
  margin-bottom: 9px;
  color: var(--text-muted);
}
ul.ticks li::before {
  content: "";
  position: absolute;
  left: 3px; top: .55em;
  width: 11px; height: 6px;
  border-left: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}
ul.ticks li.off { color: var(--text-subtle); }
ul.ticks li.off::before {
  border: 0;
  left: 4px; top: .72em;
  width: 9px; height: 2px;
  background: var(--text-subtle);
  transform: none;
}

/* --- pricing --------------------------------------------------------------- */
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.plan.featured { border-color: var(--brand); box-shadow: var(--shadow); }
.plan .price { font-size: 2.1rem; font-weight: 700; letter-spacing: -.03em; color: var(--text); }
.plan .price small { font-size: .92rem; font-weight: 500; color: var(--text-subtle); letter-spacing: 0; }
.tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  background: var(--accent);
  color: var(--brand);
  padding: 4px 9px;
  border-radius: 999px;
}

/* --- tables & legal -------------------------------------------------------- */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: .95rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); }
th { color: var(--text); font-weight: 600; background: var(--surface-2); }
td { color: var(--text-muted); }

.legal { max-width: 78ch; }
.legal h2 { margin-top: 34px; }
.legal p, .legal li { color: var(--text-muted); }
.updated { color: var(--text-subtle); font-size: .88rem; }

dl.kv { margin: 0; }
dl.kv dt { font-weight: 600; color: var(--text); margin-top: 14px; }
dl.kv dd { margin: 2px 0 0; color: var(--text-muted); }

/* --- footer ---------------------------------------------------------------- */
footer.site {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 34px 0;
  margin-top: 20px;
}
footer.site .cols { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
footer.site a { color: var(--text-muted); text-decoration: none; display: block; margin-bottom: 7px; font-size: .93rem; }
footer.site a:hover { color: var(--brand); }
footer.site .fine { color: var(--text-subtle); font-size: .85rem; margin-top: 24px; }
footer.site h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-subtle); margin: 0 0 12px; }
