:root {
  --ip-bg: #f4f7fb;
  --ip-surface: #ffffff;
  --ip-ink: #0f1b33;
  --ip-muted: #57627b;
  --ip-line: #d5dfee;
  --ip-primary: #0050c8;
  --ip-primary-deep: #00398f;
  --ip-dark: #081835;
  --ip-dark-2: #0d2148;
}

.install-page {
  background: var(--ip-bg);
  overflow-x: hidden;
  overflow-x: clip;
}

.install-page .wrap {
  width: 100%;
  margin: 0;
  gap: 0;
  display: block;
}

.ip-section {
  width: 100%;
  padding: clamp(48px, 6vw, 90px) 0;
}

.ip-container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.ip-section h1,
.ip-section h2,
.ip-section h3,
.ip-section p,
.ip-section li {
  margin: 0;
}

.ip-section h1,
.ip-section h2 {
  letter-spacing: -0.03em;
  color: var(--ip-ink);
}

.ip-section h1 {
  font-size: clamp(44px, 5.5vw, 74px);
  line-height: 1.04;
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ip-section h2 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.1;
  font-weight: 800;
}

.ip-section p,
.ip-section li {
  color: var(--ip-muted);
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.62;
}

.ip-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 24px;
  font-size: 15px;
  line-height: 1;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: normal;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.ip-btn:hover {
  transform: translateY(-1px);
}

.ip-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 80, 200, 0.18);
}

.ip-btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--ip-primary) 0%, var(--ip-primary-deep) 100%);
  box-shadow: 0 12px 24px rgba(0, 80, 200, 0.28);
}

.ip-btn-outline {
  border-color: #b6cbf0;
  color: var(--ip-primary);
  background: #ffffff;
}

/* Hero */
.ip-hero {
  overflow: hidden;
  overflow: clip;
  background: radial-gradient(circle at 88% 12%, #26396a 0%, transparent 40%),
    linear-gradient(180deg, var(--ip-dark) 0%, var(--ip-dark-2) 100%);
}

.ip-hero-grid {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  align-items: center;
  gap: clamp(24px, 4vw, 50px);
}

.ip-hero-copy,
.ip-hero-visual {
  min-width: 0;
}

.ip-hero-copy h1,
.ip-hero-copy p {
  color: #e8edfb;
}

.ip-subhead {
  margin-top: 14px;
  color: #ffffff;
  font-weight: 700;
}

.ip-body {
  margin-top: 10px;
  max-width: 680px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ip-cta-row {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ip-microcopy {
  margin-top: 14px;
  font-size: 14px;
  color: #d0d8ef;
}

.ip-hero-visual svg {
  width: min(620px, 100%);
  height: auto;
  display: block;
}

/* Billing + cards */
.ip-billing {
  border-top: 1px solid var(--ip-line);
  background: #ffffff;
}

.ip-alert {
  margin-bottom: 16px;
  border: 1px solid #d6def1;
  border-radius: 12px;
  background: #f2f6fe;
  color: #2a3e67;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
}

.ip-toggle-wrap {
  text-align: center;
  margin-bottom: 26px;
}

.ip-toggle-wrap h2 {
  margin-bottom: 16px;
}

.ip-toggle {
  width: min(460px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  border: 1px solid #c8d8f3;
  border-radius: 999px;
  background: #f4f8ff;
  padding: 4px;
}

.ip-toggle-pill {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: calc(50% - 4px);
  border-radius: 999px;
  background: linear-gradient(135deg, #0050c8 0%, #00398f 100%);
  box-shadow: 0 10px 20px rgba(0, 80, 200, 0.3);
  transform: translateX(100%);
  transition: transform 0.26s ease;
}

.ip-toggle.is-monthly .ip-toggle-pill {
  transform: translateX(0%);
}

.ip-toggle-btn {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  color: #334466;
  font-size: 14px;
  font-weight: 800;
  border-radius: 999px;
  min-height: 44px;
  cursor: pointer;
}

.ip-toggle-btn.is-active {
  color: #ffffff;
}

.ip-save-label {
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0f3d9b;
  background: #dfeafe;
}

.ip-toggle-btn.is-active .ip-save-label {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.ip-helper {
  margin-top: 10px;
  font-size: 14px;
}

.ip-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ip-plan-card {
  position: relative;
  border: 1px solid #d2ddf0;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(20, 35, 60, 0.08);
  padding: 20px;
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ip-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 38px rgba(17, 31, 55, 0.12);
}

.ip-plan-card.is-popular {
  border-color: #8ab0ea;
  box-shadow: 0 16px 30px rgba(14, 62, 147, 0.16);
}

.ip-popular-badge {
  position: absolute;
  right: 14px;
  top: -10px;
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 8px 18px rgba(11, 52, 126, 0.25);
}

.ip-popular-badge svg {
  width: 126px;
  height: 28px;
  display: block;
}

.ip-popular-badge span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.ip-plan-name {
  color: #112142;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
}

.ip-plan-subtitle {
  color: #506185;
  font-size: 15px;
  font-weight: 700;
}

.ip-price-main {
  color: #0f1d38;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.ip-price-currency {
  font-size: 28px;
  font-weight: 800;
}

.ip-price-value {
  font-size: 48px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.ip-price-suffix {
  color: #4f6288;
  font-size: 15px;
  font-weight: 700;
}

.ip-price-meta {
  font-size: 14px;
  color: #5d7096;
}

.ip-token-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px !important;
  line-height: 1.4 !important;
  color: #5d7096 !important;
}

.ip-token-value {
  color: #243a66;
  font-size: 15px;
  font-weight: 800;
}

.ip-token-period {
  font-size: 13px;
  font-weight: 600;
  color: #5d7096;
}

.ip-save-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  background: #e6f1ff;
  color: #0d4db8;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
}

.ip-save-tag.is-hidden {
  display: none;
}

.ip-feature-list {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.ip-feature-list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.ip-feature-list li svg {
  width: 20px;
  min-width: 20px;
  max-width: 20px;
  height: 20px;
  min-height: 20px;
  display: block;
  flex: 0 0 20px;
  aspect-ratio: 1 / 1;
  transform: translateZ(0);
}

.ip-feature-list li span {
  font-size: 14px;
  color: #2e4065;
  line-height: 1.5;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ip-start-btn {
  width: 100%;
  margin-top: 4px;
  max-width: 100%;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
  padding: 14px 16px;
}

.ip-start-btn.is-loading,
.ip-final-btn.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.ip-plan-card .ip-trial-copy {
  font-size: 11px !important;
  line-height: 1.35;
  font-weight: 500;
  color: #5f6f91;
  text-align: center;
}

/* Compare table */
.ip-compare {
  border-top: 1px solid var(--ip-line);
  background: #f7faff;
}

.ip-compare h2 {
  text-align: center;
  margin-bottom: 16px;
}

.ip-table-wrap {
  overflow-x: auto;
  border: 1px solid #d1ddef;
  border-radius: 16px;
  background: #fff;
}

.ip-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.ip-table th,
.ip-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e1e8f4;
  text-align: left;
  font-size: 14px;
}

.ip-table th {
  color: #0f1d39;
  font-weight: 800;
  background: #f3f7ff;
}

.ip-table td {
  color: #334362;
  font-weight: 600;
}

/* FAQ */
.ip-faq {
  border-top: 1px solid var(--ip-line);
  background: #ffffff;
}

.ip-faq-inner {
  width: min(900px, calc(100% - 40px));
}

.ip-faq-inner h2 {
  text-align: center;
  margin-bottom: 18px;
}

.ip-faq-item {
  border: 1px solid #d3dff1;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.ip-faq-item + .ip-faq-item {
  margin-top: 10px;
}

.ip-faq-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 16px 18px;
  color: #152245;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.ip-faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.24s ease;
}

.ip-faq-panel p {
  padding: 0 18px 16px;
  font-size: 15px;
  color: #4b5c7f;
}

.ip-faq-item.is-open .ip-faq-panel {
  max-height: 220px;
}

/* Final */
.ip-final {
  border-top: 1px solid var(--ip-line);
  background: linear-gradient(180deg, #0a1837 0%, #0e234d 100%);
}

.ip-final-inner {
  text-align: center;
}

.ip-final h2,
.ip-final p {
  color: #e8eeff;
}

.ip-final-subline {
  margin-top: 10px;
  color: #d5e0ff;
  font-weight: 700;
}

.ip-final-btn {
  margin-top: 18px;
  min-width: 260px;
}

/* Reveal */
.ip-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.ip-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .ip-container,
  .ip-faq-inner {
    width: calc(100% - 20px);
  }

  .ip-section {
    padding: clamp(38px, 8vw, 72px) 0;
  }

  .ip-hero-grid,
  .ip-pricing-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ip-hero-visual {
    display: none;
  }

  .ip-section h1 {
    max-width: 100%;
    font-size: clamp(32px, 6.8vw, 44px);
    line-height: 1.08;
    white-space: normal;
    text-wrap: balance;
    overflow-wrap: anywhere;
  }

  .ip-section h2 {
    font-size: clamp(34px, 5.8vw, 44px);
    line-height: 1.1;
    white-space: normal;
    text-wrap: balance;
    overflow-wrap: anywhere;
  }

  .ip-hero-copy h1,
  .ip-body {
    max-width: 100%;
  }

  .ip-body br {
    display: none;
  }

  .ip-btn,
  .ip-cta-row .ip-btn {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    line-height: 1.25;
  }

  .ip-toggle {
    width: 100%;
  }

  .ip-toggle-btn {
    min-width: 0;
    font-size: 13px;
    padding-inline: 8px;
    white-space: normal;
  }

  .ip-plan-card {
    padding: 18px 16px;
  }

  .ip-price-value {
    font-size: clamp(38px, 8vw, 48px);
  }
}

@media (max-width: 760px) {
  .ip-section h1 {
    font-size: clamp(30px, 10vw, 40px);
  }

  .ip-section h2 {
    font-size: clamp(30px, 9vw, 38px);
  }

  .ip-plan-name {
    font-size: 24px;
  }
}

@media (max-width: 420px) {
  .ip-container,
  .ip-faq-inner {
    width: calc(100% - 16px);
  }

  .ip-section h1 {
    font-size: clamp(28px, 10vw, 34px);
  }

  .ip-subhead {
    font-size: 17px;
  }

  .ip-section p,
  .ip-section li {
    font-size: 16px;
  }

  .ip-toggle-btn {
    font-size: 12px;
    padding-inline: 6px;
  }

  .ip-save-label {
    display: none;
  }

  .ip-price-main {
    gap: 4px;
  }

  .ip-price-currency {
    font-size: 24px;
  }

  .ip-price-suffix {
    font-size: 13px;
  }
}

@supports not (overflow: clip) {
  .install-page,
  .ip-hero {
    overflow-x: hidden;
  }
}
