:root {
  --iv2-bg: #f4f8ff;
  --iv2-surface: #ffffff;
  --iv2-border: #d6e4fb;
  --iv2-text: #17223b;
  --iv2-muted: #4c5d7e;
  --iv2-primary: #0c6bce;
  --iv2-primary-deep: #0a54a1;
  --iv2-good: #0d8f62;
  --iv2-warn: #be4a2f;
  --iv2-shadow: 0 18px 40px -28px rgba(20, 56, 114, 0.5);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background:
    radial-gradient(circle at 90% -10%, #dfeaff 0, transparent 48%),
    radial-gradient(circle at -15% 20%, #dffcf0 0, transparent 36%),
    var(--iv2-bg);
  color: var(--iv2-text);
  font-family: "Public Sans", "Segoe UI", "Helvetica Neue", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.iv2-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
}

.iv2-hero {
  border: 1px solid var(--iv2-border);
  background: linear-gradient(125deg, #fcfefe, #edf4ff 50%, #e7f9ff);
  border-radius: 22px;
  box-shadow: var(--iv2-shadow);
  padding: 1.8rem;
}

.iv2-kicker {
  margin: 0;
  display: inline-block;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  background: #e8f1ff;
  color: #17418d;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  text-transform: uppercase;
}

.iv2-hero h1 {
  margin: 0.85rem 0 0.5rem;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: clamp(1.65rem, 4.2vw, 2.55rem);
  line-height: 1.15;
  max-width: 22ch;
}

.iv2-hero p {
  margin: 0;
  color: var(--iv2-muted);
  max-width: 72ch;
}

.iv2-pill-row {
  margin-top: 0.95rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.iv2-pill-row span {
  border: 1px solid var(--iv2-border);
  background: #f0f6ff;
  color: #1f4b8f;
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  font-size: 0.84rem;
  font-weight: 600;
}

.iv2-hero-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.iv2-mini-stat {
  border: 1px solid #d9e7ff;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.7rem 0.78rem;
}

.iv2-mini-stat p {
  margin: 0;
  font-size: 0.84rem;
  color: #43639a;
}

.iv2-mini-stat h3 {
  margin: 0.24rem 0 0;
  color: #183f83;
  font-size: 1rem;
}

.iv2-card {
  margin-top: 1.1rem;
  background: var(--iv2-surface);
  border: 1px solid var(--iv2-border);
  border-radius: 18px;
  box-shadow: var(--iv2-shadow);
  padding: 1.15rem;
}

.iv2-card h2 {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: clamp(1.15rem, 2.7vw, 1.65rem);
}

.iv2-card-head p,
.iv2-result-head p {
  margin: 0.35rem 0 0;
  color: var(--iv2-muted);
}

.iv2-helper {
  margin-top: 0.9rem;
  border: 1px solid #dce7fc;
  border-left: 4px solid var(--iv2-primary);
  border-radius: 12px;
  padding: 0.75rem 0.86rem;
  background: #f7fbff;
}

.iv2-helper h3 {
  margin: 0;
  color: #17428c;
  font-size: 0.94rem;
}

.iv2-helper ul {
  margin: 0.44rem 0 0;
  padding-left: 1.1rem;
}

.iv2-helper li + li {
  margin-top: 0.25rem;
}

.iv2-form {
  margin-top: 0.95rem;
}

.iv2-section {
  border: 1px solid var(--iv2-border);
  border-radius: 13px;
  background: #f9fbff;
  padding: 0.85rem;
}

.iv2-section h3 {
  margin: 0;
  font-size: 1.02rem;
  color: #15428a;
}

.iv2-grid-2 {
  margin-top: 0.72rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.iv2-field label {
  display: block;
  margin-bottom: 0.34rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #253555;
}

.iv2-input,
.iv2-select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cad9f8;
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  font-size: 0.95rem;
  color: #1a2a47;
  background: #fff;
}

.iv2-input:focus,
.iv2-select:focus {
  outline: none;
  border-color: #80a7ff;
  box-shadow: 0 0 0 4px rgba(12, 107, 206, 0.13);
}

.iv2-error {
  margin: 0.3rem 0 0;
  color: #b1292e;
  font-size: 0.84rem;
  font-weight: 600;
}

.iv2-message {
  margin: 0.65rem 0 0;
  background: #fff5e8;
  border: 1px solid #f2d4ab;
  color: #915a10;
  border-radius: 10px;
  padding: 0.48rem 0.6rem;
  font-size: 0.88rem;
}

.iv2-max-note {
  display: block;
  margin-top: 0.3rem;
  color: #5a6d91;
  font-size: 0.8rem;
}

.iv2-form-actions {
  margin-top: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
}

.iv2-primary-btn,
.iv2-secondary-btn {
  min-height: 45px;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.iv2-primary-btn {
  border: 0;
  cursor: pointer;
  background: var(--iv2-primary);
  color: #fff;
}

.iv2-primary-btn:hover {
  background: var(--iv2-primary-deep);
}

.iv2-secondary-btn {
  border: 1px solid #bfd3fa;
  color: #1a458a;
  background: #f4f8ff;
}

.iv2-secondary-btn:hover {
  background: #eaf2ff;
}

.iv2-result-head {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: flex-start;
}

.iv2-metric-grid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.iv2-metric-card {
  border: 1px solid #dce8ff;
  border-radius: 13px;
  background: #f8fbff;
  padding: 0.66rem;
}

.iv2-metric-card p {
  margin: 0;
  font-size: 0.82rem;
  color: #4a6591;
}

.iv2-metric-card h3 {
  margin: 0.25rem 0 0;
  color: #19428a;
  font-size: 1.18rem;
  line-height: 1.25;
}

.iv2-metric-card small {
  display: inline-block;
  margin-top: 0.32rem;
  color: #5e7195;
  font-size: 0.78rem;
}

.iv2-table-wrap {
  margin-top: 0.9rem;
  overflow-x: auto;
}

.iv2-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.iv2-table caption {
  text-align: left;
  margin-bottom: 0.4rem;
  color: #35598b;
  font-weight: 600;
}

.iv2-table th,
.iv2-table td {
  border-bottom: 1px solid #e5ecfb;
  padding: 0.68rem 0.64rem;
}

.iv2-table thead th {
  background: #eff5ff;
  color: #214782;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.iv2-table tbody td:first-child {
  color: #2a4676;
  font-weight: 600;
}

.iv2-table tbody td:last-child {
  text-align: right;
}

.iv2-note {
  margin-top: 1.15rem;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border-left: 4px solid #f09b2d;
  background: #fffaf0;
}

.iv2-note h2 {
  margin: 0;
  font-size: 1.12rem;
}

.iv2-note p {
  margin: 0.45rem 0 0;
  color: var(--iv2-muted);
}

.iv2-related-links {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.iv2-related-links a {
  text-decoration: none;
  padding: 0.36rem 0.6rem;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  background: #f5f9ff;
  color: #1f4a90;
  font-size: 0.84rem;
  font-weight: 600;
}

.iv2-related-links a:hover {
  background: #eaf2ff;
}

.iv2-seo-block {
  margin-top: 1rem;
}

.iv2-seo-block h2 {
  margin: 0;
  color: #1f4584;
  font-size: clamp(1.08rem, 2.2vw, 1.35rem);
}

.iv2-seo-block p {
  margin: 0.5rem 0 0;
  color: var(--iv2-muted);
}

.iv2-seo-grid {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.iv2-seo-grid article {
  border: 1px solid #d8e5ff;
  border-radius: 12px;
  background: #f8fbff;
  padding: 0.75rem;
}

.iv2-seo-grid h3 {
  margin: 0;
  color: #214a8d;
  font-size: 0.95rem;
}

.iv2-seo-grid p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
}

.iv2-faq-list {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.5rem;
}

.iv2-faq-list details {
  background: #fffef8;
  border: 1px solid #f3e0b4;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
}

.iv2-faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: #6b5113;
}

.iv2-faq-list p {
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
}

.iv2-ad-card {
  margin-top: 1.1rem;
  border: 1px dashed #b9ccf4;
  background: linear-gradient(140deg, #fcfdff, #f2f7ff);
}

.iv2-ad-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  color: #45659c;
  font-weight: 700;
}

.iv2-ad-slot {
  margin-top: 0.6rem;
  min-height: 120px;
  border: 1px solid #d3e1ff;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.iv2-ad-note {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: #617395;
}

.iv2-disclaimer {
  margin-top: 0.7rem;
  color: #5a6f95;
  font-size: 0.88rem;
}

/* Legacy simple footer — kept for backward compat */
.iv2-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--iv2-border);
  text-align: center;
  color: var(--iv2-muted);
  padding: 1rem 1rem 1.55rem;
}

.iv2-footer a {
  color: #1f56a8;
}

/* ================================================================
   GUIDE GRID — 3 column explainer cards
   ================================================================ */
.iv2-guide-grid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.iv2-guide-grid article {
  border: 1px solid #f5dfaa;
  border-radius: 12px;
  background: #fffef9;
  padding: 0.7rem;
}

.iv2-guide-grid h3 {
  margin: 0;
  font-size: 0.95rem;
  color: #7a5b10;
}

.iv2-guide-grid p {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
}

/* ================================================================
   V3 FAQ STYLES — chevron animation
   ================================================================ */
.iv2-faq-list .faq-item {
  background: #fff;
  border: 1px solid var(--iv2-border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.iv2-faq-list .faq-item:hover {
  border-color: #b7c9f0;
}

.iv2-faq-list .faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.97rem;
  color: #16386f;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  list-style: none;
  line-height: 1.4;
}

.iv2-faq-list .faq-item summary::-webkit-details-marker {
  display: none;
}

.iv2-faq-list .faq-item summary::marker {
  display: none;
  content: "";
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--iv2-primary);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.iv2-faq-list .faq-item p {
  margin: 0.6rem 0 0;
  color: var(--iv2-muted);
  animation: faqReveal 0.25s ease;
}

@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   MULTI-COLUMN FOOTER
   ================================================================ */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--iv2-border);
  background: #f0f4ff;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1rem 1.2rem;
  display: grid;
  grid-template-columns: 1.8fr repeat(6, 1fr);
  gap: 1.4rem;
}

.footer-brand {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #123471;
}

.footer-tagline {
  margin: 0.3rem 0 0.8rem;
  color: var(--iv2-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-col-title {
  margin: 0 0 0.5rem;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #45526f;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li {
  margin-top: 0.35rem;
}

.footer-links a {
  text-decoration: none;
  color: #194ca3;
  font-size: 0.88rem;
  line-height: 1.45;
}

.footer-links a:hover {
  text-decoration: underline;
  color: var(--iv2-primary);
}

.footer-play-badge {
  display: inline-block;
  margin-top: 0.2rem;
}

.footer-play-badge img {
  height: 42px;
  width: auto;
  display: block;
}

.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.8rem 1rem 1.2rem;
  border-top: 1px solid var(--iv2-border);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: var(--iv2-muted);
  font-size: 0.88rem;
}

/* ================================================================
   FADE ANIMATION
   ================================================================ */
.fade-section.fade-ready {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 980px) {
  .iv2-hero-grid,
  .iv2-grid-2,
  .iv2-metric-grid,
  .iv2-seo-grid {
    grid-template-columns: 1fr;
  }

  .iv2-guide-grid {
    grid-template-columns: 1fr;
  }

  .iv2-result-head {
    flex-direction: column;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.4rem;
  }
}

@media (max-width: 640px) {
  .iv2-main {
    padding: 0.85rem 0.72rem 2.3rem;
  }

  .iv2-hero,
  .iv2-card {
    padding: 0.9rem;
    border-radius: 14px;
  }

  .iv2-table {
    min-width: 500px;
  }

  .iv2-metric-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }
}
