/* ─── Installment page (Buy Now Pay Later guide) ─── */
.inst-page {
  --inst-gap: 28px;
  --inst-soft: color-mix(in srgb, var(--accent) 10%, var(--surface));
  --inst-soft-2: color-mix(in srgb, var(--accent) 16%, transparent);
  --inst-line: var(--card-border);
  padding: 12px 16px 110px;
  max-width: 1100px;
  margin: 0 auto;
}

.inst-breadcrumb {
  max-width: 1100px;
  margin: 8px auto 0;
  padding: 0 16px;
}

.inst-breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.inst-breadcrumb__item:not(:last-child)::after {
  content: "/";
  margin-inline-start: 6px;
  color: var(--muted);
  opacity: 0.7;
}

.inst-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}

.inst-breadcrumb a:hover {
  color: var(--accent);
}

.inst-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.inst-section {
  margin-top: 40px;
}

.inst-section__head {
  margin-bottom: 18px;
}

.inst-section__title {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
}

.inst-section__desc {
  margin: 0;
  max-width: 40rem;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
}

.inst-grid {
  display: grid;
  gap: 14px;
}

.inst-grid--benefits {
  grid-template-columns: 1fr;
}

.inst-grid--methods {
  grid-template-columns: 1fr;
}

.inst-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.inst-card {
  background: var(--surface);
  border: 1px solid var(--inst-line);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.inst-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--inst-line));
}

.inst-card__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.inst-card__text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.85;
}

.inst-card__text--tight {
  margin-top: 4px;
}

.inst-list {
  margin: 0;
  padding: 0 1.1rem 0 0;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.8;
}

.inst-list li + li {
  margin-top: 2px;
}

.inst-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--surface-2);
  color: var(--text-secondary);
  border: 1px solid var(--inst-line);
  white-space: nowrap;
}

.inst-pill--ok {
  background: color-mix(in srgb, var(--success) 14%, var(--surface));
  color: var(--success);
  border-color: color-mix(in srgb, var(--success) 30%, transparent);
}

/* Hero */
.inst-hero {
  position: relative;
  margin-top: 12px;
  padding: 22px 18px;
  border-radius: calc(var(--radius-lg) + 4px);
  border: 1px solid var(--inst-line);
  background:
    radial-gradient(120% 90% at 100% 0%, var(--inst-soft-2), transparent 55%),
    linear-gradient(160deg, var(--inst-soft), var(--surface) 58%);
  overflow: hidden;
}

.inst-hero__grid {
  display: grid;
  gap: 20px;
  align-items: center;
}

.inst-hero__title {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 5vw, 2.35rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
}

.inst-hero__subtitle {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.inst-hero__lead {
  margin: 0 0 10px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.9;
}

.inst-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.inst-hero__actions .btn {
  text-decoration: none;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.inst-trust {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inst-trust__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid var(--inst-line);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.inst-trust__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 22%, transparent);
}

.inst-hero__visual {
  display: flex;
  justify-content: center;
  color: var(--accent);
}

.inst-hero__art {
  width: min(100%, 380px);
  height: auto;
  display: block;
}

/* Benefits */
.inst-benefit__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

/* Methods */
.inst-method {
  cursor: pointer;
  outline: none;
}

.inst-method:focus-visible {
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.inst-method.is-selected {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--inst-line));
  box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 16%, transparent);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}

.inst-method__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.inst-method__badge {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.inst-method__label {
  margin: 12px 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.inst-method__cta {
  margin-top: 14px;
  text-decoration: none;
  display: inline-flex;
}

/* Conditions */
.inst-condition__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.inst-condition__grid {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.inst-condition__label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.inst-dl {
  margin: 0;
  display: grid;
  gap: 8px;
}

.inst-dl div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 8px;
  font-size: 13px;
}

.inst-dl dt {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.inst-dl dd {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.inst-condition .btn {
  text-decoration: none;
  display: inline-flex;
}

/* Comparison table */
.inst-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--inst-line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

.inst-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 13px;
}

.inst-table th,
.inst-table td {
  padding: 12px 14px;
  text-align: right;
  border-bottom: 1px solid var(--inst-line);
  color: var(--text-secondary);
  vertical-align: top;
}

.inst-table thead th {
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
}

.inst-table tbody th {
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.inst-table tbody tr:last-child th,
.inst-table tbody tr:last-child td {
  border-bottom: none;
}

.inst-table tbody tr:hover td,
.inst-table tbody tr:hover th {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}

/* Timeline */
.inst-timeline {
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
  display: grid;
  gap: 0;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 1fr);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.inst-timeline__item {
  position: relative;
  min-width: 160px;
  padding: 0 12px 8px;
  scroll-snap-align: start;
}

.inst-timeline__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 0;
  right: 44px;
  height: 2px;
  background: linear-gradient(
    to left,
    color-mix(in srgb, var(--accent) 55%, transparent),
    color-mix(in srgb, var(--accent) 12%, transparent)
  );
}

.inst-timeline__step {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 6px 16px var(--accent-glow);
  position: relative;
  z-index: 1;
}

.inst-timeline__body {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--inst-line);
  min-height: 110px;
}

.inst-timeline__title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.inst-timeline__text {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* FAQ */
.inst-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inst-faq__item {
  border: 1px solid var(--inst-line);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}

.inst-faq__heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.inst-faq__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  cursor: pointer;
}

.inst-faq__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.inst-faq__chev {
  width: 10px;
  height: 10px;
  border-inline-end: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex: 0 0 auto;
  margin-top: -4px;
}

.inst-faq__btn[aria-expanded="true"] .inst-faq__chev {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.inst-faq__panel {
  padding: 0 16px 14px;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.85;
}

.inst-faq__panel[hidden] {
  display: none;
}

.inst-faq__panel p {
  margin: 0;
}

/* Final CTA */
.inst-final-cta {
  margin-top: 40px;
  border-radius: calc(var(--radius-lg) + 6px);
  padding: 1px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 75%, #fff),
    color-mix(in srgb, var(--accent) 35%, transparent) 45%,
    color-mix(in srgb, var(--accent) 60%, #0f172a)
  );
}

.inst-final-cta__inner {
  border-radius: inherit;
  padding: 28px 20px;
  background:
    radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 55%),
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 18%, var(--surface)), var(--surface));
  text-align: center;
}

.inst-final-cta__title {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 800;
  color: var(--text);
}

.inst-final-cta__text {
  margin: 0 auto 16px;
  max-width: 34rem;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
}

.inst-final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.inst-final-cta__actions .btn {
  text-decoration: none;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
}

/* Contact */
.inst-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.inst-contact__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--inst-line);
}

.inst-contact__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.inst-contact__value {
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

a.inst-contact__value:hover {
  color: var(--accent);
}

/* Reveal animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  .inst-card,
  .inst-faq__chev {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

@media (min-width: 640px) {
  .inst-grid--benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inst-grid--methods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inst-condition__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .inst-page {
    padding-inline: 20px;
  }

  .inst-hero {
    padding: 34px 32px;
  }

  .inst-hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
  }

  .inst-grid--benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .inst-grid--methods {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .inst-contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
