/* ProfitBook — shared design system
   Dark blue · light blue · white. Har page yahi file use karta hai. */

:root {
  color-scheme: light;

  /* ---- Dark blue · Light blue · White ---- */
  --plane: #f4f8fc;
  --surface: #ffffff;
  --surface-2: #eef5fc;
  --wash: #e6f1fb;

  --tx: #0b2340;
  --tx-2: #42607e;
  --tx-3: #7089a3;
  --line: #dbe7f2;
  --hair: #e8f0f8;

  --navy: #12467f;
  --acc: #1f6bb5;
  --acc-2: #4d9ede;
  --acc-3: #7ab8e4;
  --acc-ink: #ffffff;

  --good: #0a7f3f;
  --bad: #c62828;
  --warn: #b06a00;

  --band-from: #12467f;
  --band-to: #1f6bb5;
  --step-bg: #12467f;
  --step-ink: #ffffff;
  --head-bg: rgba(255, 255, 255, .88);

  --glow: rgba(77, 158, 222, .22);
  --sheen: rgba(255, 255, 255, 0);
  --shadow-sm: 0 1px 2px rgba(11, 35, 64, .05);
  --shadow: 0 4px 16px -6px rgba(11, 35, 64, .14);
  --shadow-lg: 0 24px 60px -28px rgba(11, 35, 64, .35);

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 18px;
  --wrap: 1120px;
  --nav-h: 64px;
}

/* ---------- dark mode ---------- */
[data-theme="dark"] {
  color-scheme: dark;

  --plane: #0a1626;
  --surface: #0f2138;
  --surface-2: #16304f;
  --wash: #16304f;

  --tx: #eaf2fa;
  --tx-2: #a8c0d8;
  --tx-3: #7b96b3;
  --line: #1f3c5e;
  --hair: #1a3252;

  --navy: #cfe4f6;
  --acc: #4d9ede;
  --acc-2: #7ab8e4;
  --acc-3: #a8d3f0;
  --acc-ink: #0a1626;

  --good: #3fbf74;
  --bad: #ef7b7b;
  --warn: #e0a44a;

  --band-from: #10375f;
  --band-to: #1d6099;
  --step-bg: #4d9ede;
  --step-ink: #0a1626;
  --head-bg: rgba(10, 22, 38, .86);

  --glow: rgba(77, 158, 222, .18);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 6px 20px -8px rgba(0, 0, 0, .6);
  --shadow-lg: 0 26px 64px -30px rgba(0, 0, 0, .85);
}
[data-theme="dark"] .btn.primary { color: #06111e; }
[data-theme="dark"] .btn.primary:hover { background: var(--acc-2); }
[data-theme="dark"] .notice { background: #2a2211; border-color: #4a3c1c; color: #f0d9a8; }
[data-theme="dark"] .field input, [data-theme="dark"] .field textarea, [data-theme="dark"] .field select {
  background: var(--surface-2); color: var(--tx);
}
[data-theme="dark"] .pill b { color: #06111e; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  background: var(--plane); color: var(--tx);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(77,158,222,.28); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; border-top: 1px solid var(--line); }
.section.tight { padding: 56px 0; }
.section.flush { border-top: 0; }

/* ---------- type ---------- */
h1 { font-size: clamp(32px, 5.2vw, 56px); line-height: 1.06; letter-spacing: -.03em; font-weight: 660; color: var(--navy); }
h2 { font-size: clamp(23px, 3.2vw, 34px); line-height: 1.18; letter-spacing: -.022em; font-weight: 650; color: var(--navy); }
h3 { font-size: 17.5px; letter-spacing: -.012em; font-weight: 650; color: var(--navy); }
h4 { font-size: 15px; font-weight: 650; letter-spacing: -.01em; color: var(--navy); }
p  { color: var(--tx-2); }
.lead { color: var(--tx-2); font-size: clamp(15px, 1.85vw, 18.5px); max-width: 62ch; }
.eyebrow {
  font-size: 11.5px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase;
  color: var(--acc); margin-bottom: 14px;
}
.muted { color: var(--tx-3); font-size: 13.5px; }
.mt-s { margin-top: 10px; } .mt-m { margin-top: 20px; } .mt-l { margin-top: 32px; }
.center { text-align: center; } .center .lead { margin-left: auto; margin-right: auto; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--head-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 18px; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 680; letter-spacing: -.02em; font-size: 17px; flex: none; }
.brand .mark {
  width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--acc), var(--band-from));
  color: #ffffff; font-weight: 800; font-size: 14.5px; flex: none;
}
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a.nav-link {
  padding: 8px 13px; border-radius: 999px; font-size: 14.5px; color: var(--tx-2);
  transition: color .15s, background .15s;
}
.site-nav a.nav-link:hover { color: var(--navy); background: var(--wash); }
.site-nav a.nav-link[aria-current="page"] { color: var(--navy); background: var(--wash); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 620;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  font-family: inherit; transition: filter .15s, background .15s, border-color .15s;
}
.btn.primary { background: var(--acc); color: #ffffff; box-shadow: var(--shadow-sm); }
.btn.primary:hover { background: var(--navy); }
.btn.ghost { border-color: var(--line); color: var(--navy); background: var(--surface); box-shadow: var(--shadow-sm); }
.btn.ghost:hover { background: var(--wash); border-color: var(--acc-3); }
.btn.sm { padding: 8px 15px; font-size: 13.5px; }
.btn.lg { padding: 14px 26px; font-size: 15.5px; }
.btn.block { width: 100%; }

.nav-toggle {
  display: none; margin-left: auto; width: 40px; height: 40px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line); color: var(--navy);
  cursor: pointer; font-size: 17px; line-height: 1;
}
@media (max-width: 860px) {
  .site-nav {
    position: fixed; inset: var(--nav-h) 0 auto 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 14px 22px 22px; display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a.nav-link { padding: 12px 14px; border-radius: var(--r-sm); font-size: 16px; }
  .site-nav .btn { margin-top: 10px; }
  .nav-toggle { display: block; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 92px 0 0; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: -380px; width: 1000px; height: 720px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow), transparent 72%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 5px 14px 5px 6px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; color: var(--tx-2);
}
.pill b { background: var(--acc); color: #ffffff; border-radius: 999px; padding: 2px 9px; font-size: 11.5px; font-weight: 700; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.ticks { display: flex; gap: 10px 26px; flex-wrap: wrap; margin-top: 26px; color: var(--tx-3); font-size: 13.5px; }
.ticks span { display: inline-flex; align-items: center; gap: 7px; }
.ticks i { width: 5px; height: 5px; border-radius: 99px; background: var(--acc-2); font-style: normal; flex: none; }

.shot {
  margin-top: 54px; border-radius: var(--r) var(--r) 0 0; overflow: hidden;
  border: 1px solid var(--line); border-bottom: 0;
  box-shadow: var(--shadow-lg);
}
.shot img { border-radius: 13px 13px 0 0; }
.figcap { text-align: center; color: var(--tx-3); font-size: 12.5px; padding: 14px 0 0; }

/* ---------- grid & cards ---------- */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid > * { min-width: 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card p { font-size: 14.5px; margin-top: 6px; }
.card .ic {
  width: 36px; height: 36px; border-radius: 11px; background: var(--wash);
  border: 1px solid var(--line); display: grid; place-items: center;
  margin-bottom: 15px; font-size: 16px; color: var(--navy);
}
a.card { display: block; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--acc-3); transform: translateY(-2px); box-shadow: var(--shadow); }
.card .more { color: var(--acc); font-size: 13.5px; font-weight: 600; margin-top: 14px; display: inline-block; }

/* ---------- stat strip ---------- */
.stats {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.stat { background: var(--surface); padding: 22px; }
.stat b { display: block; font-size: 30px; font-weight: 660; letter-spacing: -.025em; line-height: 1.1; color: var(--navy); }
.stat span { display: block; color: var(--tx-2); font-size: 13.5px; margin-top: 7px; }
.stat em { display: block; color: var(--tx-3); font-size: 12px; font-style: normal; margin-top: 4px; }

/* ---------- table ---------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 480px; }
table.tbl th {
  text-align: left; padding: 11px 14px 11px 0; font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--tx-3); font-weight: 650; border-bottom: 1px solid var(--line);
}
table.tbl td { padding: 13px 14px 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--tx-2); }
table.tbl td:last-child { color: var(--navy); }
table.tbl tr:last-child td { border-bottom: 0; }
.tick-i { color: var(--acc); font-weight: 700; margin-right: 6px; }

/* ---------- steps ---------- */
.steps { counter-reset: s; display: grid; gap: 14px; }
.step {
  display: flex; gap: 17px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: s; content: counter(s); flex: none;
  width: 31px; height: 31px; border-radius: 99px; background: var(--step-bg);
  border: 0; display: grid; place-items: center;
  font-size: 14px; font-weight: 700; color: var(--step-ink);
}
.step p { font-size: 14.5px; margin-top: 5px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 620; font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  color: var(--acc); font-size: 20px; font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq .ans { padding: 0 40px 22px 0; color: var(--tx-2); font-size: 14.5px; }

/* ---------- callout ---------- */
.callout {
  border-left: 3px solid var(--acc); background: var(--wash);
  padding: 20px 24px; border-radius: 0 var(--r) var(--r) 0; font-size: 14.5px; color: var(--tx-2);
}
.callout b { color: var(--navy); }

/* ---------- CTA band ---------- */
.band {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, var(--band-from), var(--band-to));
  border: 0; border-radius: var(--r-lg); padding: 52px 34px; text-align: center;
}
.band h2 { color: #ffffff; }
.band .lead { color: rgba(255,255,255,.88); }
.band .muted { color: rgba(255,255,255,.72); }
.band .btn.primary { background: #ffffff; color: var(--navy); }
.band .btn.primary:hover { background: var(--wash); }
.band .btn.ghost { background: transparent; border-color: rgba(255,255,255,.5); color: #ffffff; box-shadow: none; }
.band .btn.ghost:hover { background: rgba(255,255,255,.14); border-color: #ffffff; }
.band::before {
  content: ""; position: absolute; left: 50%; top: -170px; width: 660px; height: 440px;
  transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255,255,255,.2), transparent 70%);
  pointer-events: none;
}
.band > * { position: relative; }
.band .cta-row { justify-content: center; }

/* ---------- form ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; color: var(--tx-2); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px; background: #ffffff; color: var(--tx);
  border: 1px solid var(--line); border-radius: var(--r-sm); font: inherit; font-size: 14.5px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--acc); outline: none; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); padding: 52px 0 60px; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: 1.6fr 1fr 1fr; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
.foot-grid h4 { color: var(--tx-3); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.foot-grid ul { list-style: none; display: grid; gap: 9px; }
.foot-grid a { color: var(--tx-2); font-size: 14px; }
.foot-grid a:hover { color: var(--tx); }
.foot-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: space-between;
  color: var(--tx-3); font-size: 13px;
}

/* ---------- misc ---------- */
.notice {
  background: #fff8ec; border: 1px solid #f0dfc0; border-left: 3px solid var(--warn);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 14px 18px; font-size: 13.5px; color: #6b4b12;
}
.badge-soft {
  display: inline-block; background: var(--wash); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 11px; font-size: 12px; color: var(--navy); font-weight: 600;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- theme toggle ---------- */
.theme-btn {
  width: 38px; height: 38px; border-radius: 999px; flex: none;
  background: var(--surface); border: 1px solid var(--line); color: var(--navy);
  cursor: pointer; font-size: 15px; line-height: 1; display: grid; place-items: center;
  transition: background .15s, border-color .15s;
}
.theme-btn:hover { background: var(--wash); border-color: var(--acc-3); }
@media (max-width: 860px) {
  .theme-btn { margin-left: auto; margin-right: 8px; order: 2; }
  .nav-toggle { margin-left: 0; order: 3; }
}
