/* ============================================================================
   ITR Filing landing page (/itr-filing)
   Brand-aligned (main.css tokens), mobile-first, dark-mode + app-webview aware.
   ============================================================================ */

/* Brand tokens declared on the body so BOTH the main content (.itr) and the
   fixed bottom bar (.itr-cta-bar, which is a sibling of <main class="itr">)
   can resolve them. Scoping these to .itr alone left the sticky bar's
   checkbox border and button gradient undefined (invisible). */
body.itr-page {
  --itr-brand: #6055cd;
  --itr-brand-2: #8427d7;
  --itr-brand-grad: linear-gradient(135deg, #6055cd, #8427d7);
  --itr-soft: #f1f4ff;
  --itr-soft-2: #f6f4ff;
  --itr-white: #ffffff;
  --itr-ink: #14123a;
  --itr-ink-2: #2c2a45;
  --itr-muted: #667085;
  --itr-line: #e9ebfb;
  --itr-success: #179200;
  --itr-shadow-lg: 0 24px 60px -28px rgba(96, 85, 205, .42);
  --itr-shadow-sm: 0 10px 24px -16px rgba(96, 85, 205, .42);
  --itr-radius-xl: 24px;
  --itr-radius-md: 16px;
  --itr-page-bg: #f4f5ff;

  background: var(--itr-page-bg);
}

.itr {
  color: var(--itr-ink);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.itr-cta-bar {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.itr * { box-sizing: border-box; }
.itr ::selection { background: var(--itr-brand); color: #fff; }

.itr-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 16px 32px;
}
@media (min-width: 768px) {
  .itr-wrap { padding: 28px 24px 40px; }
}

/* ── Hero (illustration-led, light gradient-mesh) ─────────────────────────── */
.itr-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--itr-radius-xl);
  background: linear-gradient(135deg, #f3f1ff 0%, #ffffff 55%, #f7f0ff 100%);
  border: 1px solid #e7e3ff;
  color: var(--itr-ink);
  box-shadow: var(--itr-shadow-lg);
  isolation: isolate;
}
.itr-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.itr-hero-bg::before, .itr-hero-bg::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(64px); opacity: .55;
}
.itr-hero-bg::before { width: 360px; height: 360px; background: #cfc7ff; top: -130px; left: -90px; }
.itr-hero-bg::after  { width: 320px; height: 320px; background: #ecccff; bottom: -150px; right: -70px; }

.itr-hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr; gap: 12px;
  padding: 22px 20px;
}
@media (min-width: 860px) {
  .itr-hero-grid {
    grid-template-columns: 1.08fr .92fr;
    align-items: center; gap: 24px; padding: 36px 40px;
  }
}

.itr-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: var(--itr-soft); border: 1px solid #e7e3ff; color: var(--itr-brand);
  padding: 6px 12px; border-radius: 999px;
}
.itr-h1 {
  margin: 12px 0 8px;
  font-size: clamp(24px, 4.6vw, 36px);
  font-weight: 800; line-height: 1.12; letter-spacing: -.5px; color: var(--itr-ink);
}
.itr-h1 .nowrap { white-space: nowrap; }
.itr-h1 .grad {
  background: var(--itr-brand-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.itr-sub {
  margin: 0; max-width: 500px;
  font-size: clamp(14px, 3.4vw, 15.5px); line-height: 1.55;
  color: var(--itr-muted);
}
.itr-pills {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px;
}
.itr-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600;
  padding: 7px 13px; border-radius: 999px;
  background: var(--itr-white); border: 1px solid #e7e3ff; color: var(--itr-ink-2);
  box-shadow: var(--itr-shadow-sm);
}
.itr-pill i { font-size: 12px; color: var(--itr-brand); }
.itr-pill img { width: 16px; height: 18px; object-fit: contain; }

.itr-hero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.itr-hero-note { font-size: 12.5px; color: var(--itr-muted); }

/* Hero visual / illustration */
.itr-hero-visual {
  position: relative; min-height: 160px;
  display: flex; align-items: center; justify-content: center;
}
@media (min-width: 860px) { .itr-hero-visual { min-height: 260px; } }
.itr-hero-img {
  width: 100%; max-width: 420px; height: auto; display: block;
  filter: drop-shadow(0 16px 26px rgba(20,18,58,.14));
  animation: itrFloat 6s ease-in-out infinite;
}
.itr-hero-fallback { display: none; }
.itr-hero-visual.no-img { min-height: 150px; }
.itr-hero-visual.no-img .itr-hero-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  width: 132px; height: 132px; border-radius: 50%;
  background: var(--itr-brand-grad); color: #fff; font-size: 48px;
  box-shadow: 0 26px 52px -16px rgba(96,85,205,.6);
  animation: itrFloat 6s ease-in-out infinite;
}
/* Chips are decorative fallback only — hidden when the real illustration loads
   (it already shows the ₹ coin, verified document and shield). */
.itr-chip {
  position: absolute; display: none; align-items: center; gap: 7px;
  background: var(--itr-white); border: 1px solid #ece8ff; color: var(--itr-ink-2);
  font-size: 12px; font-weight: 700; padding: 7px 11px; border-radius: 999px;
  box-shadow: 0 14px 28px -14px rgba(96,85,205,.5);
}
.itr-hero-visual.no-img .itr-chip { display: inline-flex; }
.itr-chip i { color: var(--itr-brand); }
.itr-chip-1 { top: 6%;  left: 2%;   animation: itrFloat 5s   ease-in-out infinite; }
.itr-chip-2 { bottom: 18%; right: 2%; animation: itrFloat 6.5s ease-in-out infinite; }
.itr-chip-3 { bottom: 4%; left: 12%; animation: itrFloat 7.2s ease-in-out infinite; }
@keyframes itrFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* Compact hero on phones: the sticky bar already carries the CTA, and the
   chips/medallion add height without adding info on a narrow screen. */
@media (max-width: 600px) {
  .itr-hero-cta { display: none; }
  .itr-hero-visual.no-img .itr-chip { display: none; }
  .itr-hero-visual { min-height: 120px; }
  .itr-hero-visual.no-img { min-height: 120px; }
  .itr-hero-img { max-width: 250px; }
  .itr-hero-visual.no-img .itr-hero-fallback { width: 104px; height: 104px; font-size: 40px; }
}

/* ── Quick answer (AEO) ───────────────────────────────────────────────────── */
.itr-quick {
  margin-top: 16px;
  background: var(--itr-white);
  border: 1px solid var(--itr-line);
  border-left: 4px solid var(--itr-brand);
  border-radius: var(--itr-radius-md);
  padding: 18px 20px;
  box-shadow: var(--itr-shadow-sm);
}
.itr-quick h2 {
  margin: 0 0 8px; font-size: 14px; font-weight: 800;
  display: flex; align-items: center; gap: 8px; color: var(--itr-brand);
}
.itr-quick p { margin: 0; font-size: 14.5px; line-height: 1.62; color: var(--itr-ink-2); }
.itr-quick strong { color: var(--itr-ink); }

/* ── Section scaffolding ──────────────────────────────────────────────────── */
.itr-section { margin-top: 34px; }
.itr-section > h2 {
  margin: 0 0 16px;
  font-size: clamp(18px, 4.4vw, 22px); font-weight: 800; letter-spacing: -.3px;
  display: flex; align-items: center; gap: 10px;
}
.itr-section > h2 i { color: var(--itr-brand); }
.itr-section-lead { margin: -6px 0 16px; color: var(--itr-muted); font-size: 14px; line-height: 1.55; max-width: 680px; }

/* ── Income types ─────────────────────────────────────────────────────────── */
.itr-incomes {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 10px;
}
@media (min-width: 600px) { .itr-incomes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .itr-incomes { grid-template-columns: 1fr 1fr 1fr; } }
.itr-incomes li {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 15px; border-radius: 12px;
  background: var(--itr-white); border: 1px solid var(--itr-line);
  font-size: 13.5px; font-weight: 600; color: var(--itr-ink-2);
  transition: border-color .2s ease, transform .2s ease;
}
.itr-incomes li:hover { border-color: #dfe3ff; transform: translateY(-2px); }
.itr-incomes li i {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px;
  background: var(--itr-soft); color: var(--itr-brand);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
}

/* ── Feature cards ────────────────────────────────────────────────────────── */
.itr-features {
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
@media (min-width: 600px) { .itr-features { grid-template-columns: 1fr 1fr; } }
.itr-feature {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; border-radius: var(--itr-radius-md);
  background: var(--itr-white); border: 1px solid var(--itr-line);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.itr-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px -24px rgba(96,85,205,.45);
  border-color: #dfe3ff;
}
.itr-feature-icn {
  flex: 0 0 44px; height: 44px; border-radius: 13px;
  background: var(--itr-soft); color: var(--itr-brand);
  display: inline-flex; align-items: center; justify-content: center; font-size: 18px;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.itr-feature:hover .itr-feature-icn { background: var(--itr-brand); color: #fff; transform: rotate(-6deg) scale(1.06); }
.itr-feature h3 { margin: 0; font-size: 15px; font-weight: 700; }
.itr-feature p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--itr-muted); }

/* ── How it works (steps) ─────────────────────────────────────────────────── */
.itr-steps {
  display: grid; grid-template-columns: 1fr; gap: 12px;
  counter-reset: itr-step;
  list-style: none; margin: 0; padding: 0;
}
@media (min-width: 768px) { .itr-steps { grid-template-columns: repeat(2, 1fr); } }
.itr-step {
  position: relative;
  padding: 18px 18px 18px 60px;
  border-radius: var(--itr-radius-md);
  background: linear-gradient(160deg, var(--itr-soft) 0%, #eef0ff 100%);
  border: 1px solid #e5e8ff;
}
.itr-step::before {
  counter-increment: itr-step;
  content: counter(itr-step);
  position: absolute; left: 16px; top: 16px;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--itr-brand-grad); color: #fff;
  font-weight: 800; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px -6px rgba(96,85,205,.6);
}
.itr-step h3 { margin: 0; font-size: 15px; font-weight: 700; }
.itr-step p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--itr-ink-2); }

/* ── Two-column info (need / eligibility) ─────────────────────────────────── */
.itr-info-grid {
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
@media (min-width: 600px) { .itr-info-grid { grid-template-columns: 1fr 1fr; } }
.itr-info {
  padding: 20px; border-radius: var(--itr-radius-md);
  background: var(--itr-soft-2); border: 1px solid var(--itr-line);
}
.itr-info h3 { margin: 0 0 12px; font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.itr-info h3 i { color: var(--itr-brand); }
.itr-info ul { margin: 0; padding: 0; list-style: none; }
.itr-info li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; color: var(--itr-ink-2); }
.itr-info li i { color: var(--itr-brand); width: 16px; text-align: center; }

/* ── FAQ accordion ────────────────────────────────────────────────────────── */
.itr-faq {
  border-radius: var(--itr-radius-md);
  background: var(--itr-white); border: 1px solid var(--itr-line);
  overflow: hidden;
}
.itr-faq-item { border-bottom: 1px solid var(--itr-line); }
.itr-faq-item:last-child { border-bottom: 0; }
.itr-faq-q {
  width: 100%; background: transparent; border: 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  text-align: left; font-family: inherit; font-weight: 700; font-size: 14.5px;
  color: var(--itr-ink); padding: 17px 18px; transition: background .2s ease;
}
.itr-faq-q:hover { background: var(--itr-soft); }
.itr-faq-q:focus-visible { outline: 2px solid var(--itr-brand); outline-offset: -2px; }
.itr-faq-q .chev { flex: 0 0 auto; color: var(--itr-brand); font-size: 13px; transition: transform .3s ease; }
.itr-faq-item.open .itr-faq-q .chev { transform: rotate(90deg); }
.itr-faq-a {
  max-height: 0; overflow: hidden;
  color: var(--itr-muted); font-size: 14px; line-height: 1.62;
  padding: 0 18px; transition: max-height .35s ease, padding .35s ease;
}
.itr-faq-item.open .itr-faq-a { max-height: 520px; padding: 0 18px 16px; }
.itr-faq-a p { margin: 0; }

/* ── Inline CTA ───────────────────────────────────────────────────────────── */
.itr-cta-inline {
  margin-top: 30px;
  text-align: center;
  padding: 28px 22px;
  border-radius: var(--itr-radius-xl);
  background: linear-gradient(160deg, var(--itr-soft) 0%, #e9ecff 100%);
  border: 1px solid #e5e8ff;
}
.itr-cta-inline h2 { margin: 0 0 6px; font-size: clamp(18px, 4.6vw, 24px); font-weight: 800; }
.itr-cta-inline p { margin: 0 0 16px; color: var(--itr-muted); font-size: 14px; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.itr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-size: 15px; font-weight: 700;
  padding: 14px 30px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--itr-brand-grad); color: #fff; text-decoration: none;
  box-shadow: 0 14px 30px -10px rgba(96,85,205,.6);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.itr-btn:hover:not(:disabled):not(.is-disabled) { transform: translateY(-2px); box-shadow: 0 18px 36px -10px rgba(96,85,205,.7); color: #fff; }
.itr-btn:active:not(:disabled) { transform: translateY(0); }
.itr-btn i { transition: transform .25s ease; }
.itr-btn:hover:not(:disabled):not(.is-disabled) i { transform: translateX(4px); }
.itr-btn:disabled, .itr-btn.is-disabled {
  opacity: .55; cursor: not-allowed; pointer-events: none;
  box-shadow: 0 8px 20px -10px rgba(96,85,205,.35);
}

/* ── Sticky CTA bar (stacked: prominent consent row + price/CTA row) ──────── */
.itr-cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(14px);
  border-top: 1px solid var(--itr-line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -12px 34px -20px rgba(15,15,40,.28);
}
.itr-cta-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: stretch; gap: 10px;
}

/* Prominent consent row */
.itr-consent {
  display: flex; gap: 11px; align-items: center;
  font-size: 13px; color: var(--itr-ink-2); line-height: 1.4; cursor: default;
  background: var(--itr-soft); border: 1px solid #e2e5ff; border-radius: 12px;
  padding: 11px 14px; transition: border-color .2s ease, background .2s ease;
}
.itr-consent label { cursor: pointer; }
.itr-checkbox { position: relative; flex-shrink: 0; width: 22px; height: 22px; }
.itr-checkbox input { position: absolute; inset: 0; width: 22px; height: 22px; margin: 0; opacity: 0; cursor: pointer; z-index: 2; }
.itr-checkbox-ui {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border: 2px solid var(--itr-brand); border-radius: 6px;
  background: #fff; pointer-events: none;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.itr-checkbox input:checked + .itr-checkbox-ui { background: var(--itr-brand); border-color: var(--itr-brand); }
.itr-checkbox input:checked + .itr-checkbox-ui::after {
  content: ""; display: block; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-top: -2px;
}
.itr-checkbox input:focus-visible + .itr-checkbox-ui { box-shadow: 0 0 0 3px rgba(96,85,205,.3); }
.itr-consent.is-error { color: #b42318; background: #fdf3f2; border-color: #f1c4c0; }
.itr-consent.is-error .itr-checkbox-ui { border-color: #b42318; }
.itr-consent-error { display: none; font-size: 12px; color: #b42318; margin: 0 0 0 2px; }
.itr-consent-error.show { display: block; }
.itr-link { color: var(--itr-brand); font-weight: 600; text-decoration: underline; }
.itr-link:hover { text-decoration: none; }

/* Price + button row */
.itr-cta-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.itr-price { display: flex; flex-direction: column; line-height: 1.15; flex: 0 0 auto; }
.itr-price .amt { font-weight: 800; font-size: 19px; letter-spacing: -.3px; display: flex; align-items: baseline; gap: 6px; }
.itr-price .amt .from { color: var(--itr-muted); font-weight: 600; font-size: 12.5px; }
.itr-price .amt .now { color: var(--itr-brand); }
.itr-price .lbl { color: var(--itr-muted); font-size: 11.5px; margin-top: 2px; }
.itr-cta-row .itr-btn { flex: 0 0 auto; min-width: 190px; }
@media (max-width: 520px) {
  .itr-cta-row .itr-btn { flex: 1 1 100%; }
}

/* Clear the fixed bar so footer/last content isn't hidden behind it */
body.itr-page { padding-bottom: 188px; }
@media (max-width: 520px) { body.itr-page { padding-bottom: 230px; } }

/* App WebView (?isApp=true) */
body.itr-page--app {
  padding-bottom: calc(188px + env(safe-area-inset-bottom, 0px));
}
body.itr-page--app .itr-wrap--app {
  padding-top: 12px;
  padding-bottom: 24px;
}
body.ipoji-dark-mode.itr-page--app {
  background: #0d0e11 !important;
  color: #e7e1e8;
}
@media (max-width: 520px) {
  body.itr-page--app { padding-bottom: calc(220px + env(safe-area-inset-bottom, 0px)); }
}

/* ── TaxBuddy embed (fullscreen iframe) ───────────────────────────────────── */
.itr-embed {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  background: var(--itr-white);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.itr-embed[hidden] { display: none; }
body.itr-embed-open { overflow: hidden; }
body.itr-embed-open .itr-cta-bar { display: none; }
.itr-embed--app .itr-embed-frame-wrap {
  padding-top: env(safe-area-inset-top, 0px);
}
.itr-embed-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  border-bottom: 1px solid var(--itr-line);
  background: var(--itr-white);
}
.itr-embed-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: var(--itr-soft);
  color: var(--itr-ink-2);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease;
}
.itr-embed-close:hover { background: #e6eaff; }
.itr-embed-close:focus-visible { outline: 2px solid var(--itr-brand); outline-offset: 2px; }
.itr-embed-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--itr-ink);
}
.itr-embed-frame-wrap {
  flex: 1 1 auto;
  position: relative;
  min-height: 0;
}
.itr-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}
.itr-embed-loader {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--itr-page-bg);
  color: var(--itr-muted);
  font-size: 14px;
  font-weight: 600;
}
.itr-embed-loader[hidden] { display: none; }
.itr-embed-loader .fa-spinner { font-size: 28px; color: var(--itr-brand); }
body.ipoji-dark-mode .itr-embed,
body.ipoji-dark-mode .itr-embed-head {
  background: #0d0e11;
  border-color: #2a2d3a;
}
body.ipoji-dark-mode .itr-embed-title { color: #e7e1e8; }
body.ipoji-dark-mode .itr-embed-close { background: #1a1c24; color: #e7e1e8; }
body.ipoji-dark-mode .itr-embed-close:hover { background: #2a2d3a; }
body.ipoji-dark-mode .itr-embed-loader { background: #0d0e11; color: #a8a3b0; }
body.ipoji-dark-mode .itr-embed iframe { background: #0d0e11; }

/* ── Terms modal (self-contained, no Bootstrap) ───────────────────────────── */
.itr-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.itr-modal[hidden] { display: none; }
body.itr-modal-open { overflow: hidden; }
.itr-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(14, 12, 36, .55); backdrop-filter: blur(2px);
}
.itr-modal-dialog {
  position: relative; z-index: 1;
  width: 100%; max-width: 560px; max-height: 86vh;
  display: flex; flex-direction: column;
  background: var(--itr-white); color: var(--itr-ink);
  border: 1px solid var(--itr-line); border-radius: var(--itr-radius-md);
  box-shadow: 0 40px 90px -30px rgba(15, 15, 40, .6);
  overflow: hidden; animation: itrModalIn .25s ease;
}
@keyframes itrModalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.itr-modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--itr-line); flex: 0 0 auto;
}
.itr-modal-head h2 { margin: 0; font-size: 17px; font-weight: 800; color: var(--itr-ink); }
.itr-modal-x {
  flex: 0 0 auto; width: 34px; height: 34px; border: 0; border-radius: 9px;
  background: var(--itr-soft); color: var(--itr-ink-2); font-size: 22px; line-height: 1;
  cursor: pointer; transition: background .2s ease;
}
.itr-modal-x:hover { background: #e6eaff; }
.itr-modal-x:focus-visible { outline: 2px solid var(--itr-brand); outline-offset: 2px; }
.itr-modal-body {
  padding: 18px 20px; overflow-y: auto; -webkit-overflow-scrolling: touch;
  font-size: 14px; line-height: 1.62; color: var(--itr-ink-2);
}
.itr-modal-body p { margin: 0 0 12px; }
.itr-terms-list { margin: 0 0 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.itr-terms-note { font-size: 12.5px; color: var(--itr-muted); margin: 0; }
.itr-modal-foot {
  padding: 14px 20px; border-top: 1px solid var(--itr-line);
  display: flex; justify-content: flex-end; flex: 0 0 auto;
}
.itr-modal-foot .itr-btn { padding: 11px 26px; font-size: 14px; min-width: 0; }
body.ipoji-dark-mode .itr-modal-x:hover { background: #2a2d3a; }

/* ── Reveal animation ─────────────────────────────────────────────────────── */
.itr-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.itr-reveal.in { opacity: 1; transform: none; }

/* ============================================================================
   Dark mode (body.ipoji-dark-mode — toggled via ?isDarkMode=true)
   ============================================================================ */
body.ipoji-dark-mode.itr-page {
  --itr-page-bg: #0e0f15;
  --itr-white: #1a1c24;
  --itr-ink: #f1f2f7;
  --itr-ink-2: #cfd2e0;
  --itr-muted: #9aa0b4;
  --itr-line: #2a2d3a;
  --itr-soft: #20222e;
  --itr-soft-2: #1d1f29;
  background: #0e0f15;
}
body.ipoji-dark-mode .itr { color: var(--itr-ink); }
body.ipoji-dark-mode .itr-quick { box-shadow: none; }
body.ipoji-dark-mode .itr-step { background: linear-gradient(160deg, #20222e 0%, #23202f 100%); border-color: #2f2a3d; }
body.ipoji-dark-mode .itr-cta-inline { background: linear-gradient(160deg, #20222e 0%, #23202f 100%); border-color: #2f2a3d; }
body.ipoji-dark-mode .itr-cta-bar { background: rgba(20,21,28,.97); border-top-color: #2a2d3a; }
body.ipoji-dark-mode .itr-consent { color: #cfd2e0; background: #20222e; border-color: #2f2a3d; }
body.ipoji-dark-mode .itr-consent.is-error { background: #2a1715; border-color: #5e2b27; color: #ff8a80; }
body.ipoji-dark-mode .itr-checkbox-ui { background: #23262d; border-color: #9d93ff; }
body.ipoji-dark-mode .itr-checkbox input:checked + .itr-checkbox-ui { background: var(--itr-brand); border-color: var(--itr-brand); }
body.ipoji-dark-mode .itr-feature:hover { box-shadow: 0 20px 38px -24px rgba(0,0,0,.6); }

/* Hero — dark */
body.ipoji-dark-mode .itr-hero {
  background: linear-gradient(135deg, #1b1830 0%, #16151d 55%, #211733 100%);
  border-color: #2f2a3d;
}
body.ipoji-dark-mode .itr-hero-bg::before { background: #3a2f7a; opacity: .38; }
body.ipoji-dark-mode .itr-hero-bg::after  { background: #4a2a6b; opacity: .38; }
body.ipoji-dark-mode .itr-eyebrow { background: #241f3a; border-color: #352e52; color: #c4b5fd; }
body.ipoji-dark-mode .itr-pill { background: #201f29; border-color: #2f2a3d; color: #cfd2e0; }
body.ipoji-dark-mode .itr-chip { background: #201f29; border-color: #2f2a3d; color: #e6e3f5; }

/* ── Reduced motion ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .itr *, .itr *::before, .itr *::after { animation: none !important; transition: none !important; }
  .itr-reveal { opacity: 1; transform: none; }
}
