/**
 * Shared tokens, type, buttons and CTA for inner branded pages.
 * Scoped to .ip-page so homepage / how-it-works / pricing are untouched.
 */

html:has(.ip-page) {
  overflow-x: clip !important;
  overflow-y: scroll !important;
}

body:has(.ip-page) {
  overflow: visible !important;
}

body:has(.ip-page) .fp-foot {
  position: relative;
  z-index: 3;
}

body:has(.ip-page) .site-header,
body:has(.ip-page) .site-header:has(.sticky) {
  position: sticky !important;
  top: 0;
  left: auto;
  width: 100%;
}

.ip-page {
  --fp-ink: #0b0d12;
  --fp-red: var(--qt-bg-bg-7, #9b0000);
  --fp-red-dark: var(--qt-bg-bg-3, #6e0101);
  --fp-muted: #565e6b;
  --fp-dim: #646c79;
  --fp-hint: #7c8492;
  --fp-line: #e4e7ec;
  --fp-line-soft: #ebeef2;
  --fp-wash: #fafbfc;
  --fp-chip: #f1f3f7;
  --fp-purple: #b49bff;
  --fp-cyan: #25f4ee;
  --fp-coral: #ff5c4a;
  --fp-rail: 1400px;
  --fp-display: "Inter Tight", var(--f-ff-font-2), sans-serif;
  --fp-sans: "Inter", var(--f-ff-font-1), sans-serif;
  --fp-label: "Inter", var(--f-ff-font-1), sans-serif;
  --fp-eyebrow-size: 15px;
  --fp-title-size: clamp(36px, 5vw, 60px);
  --fp-lead-size: 19px;
  --ip-sticky-pad: 112px;
  overflow: visible;
  color: var(--fp-ink);
  background: #fff;
}

.ip-rail {
  max-width: var(--fp-rail);
  margin: 0 auto;
  padding: 88px 28px 96px;
}

.ip-rail--tight {
  padding-top: 64px;
  padding-bottom: 72px;
}

.ip-rail--narrow {
  max-width: 920px;
}

.ip-kicker {
  display: block;
  font-family: var(--fp-label);
  font-size: var(--fp-eyebrow-size);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: var(--fp-red);
}

.ip-title {
  margin: 18px 0 0;
  font-family: var(--fp-display);
  font-size: var(--fp-title-size);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
  color: inherit;
}

.ip-title--section {
  font-size: clamp(30px, 4vw, 48px);
}

.ip-lead {
  margin: 20px 0 0;
  max-width: 48ch;
  font-family: var(--fp-sans);
  font-size: var(--fp-lead-size);
  font-weight: 400;
  line-height: 1.62;
  color: var(--fp-muted);
  text-wrap: pretty;
}

.ip-note {
  display: block;
  margin-top: 22px;
  font-family: var(--fp-label);
  font-size: 12px;
  line-height: 1.6;
  color: var(--fp-dim);
}

.ip-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.ip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--fp-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  padding: 14px 26px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease,
    background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.ip-btn:focus-visible {
  outline: 2px solid var(--fp-red);
  outline-offset: 3px;
}

.ip-btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #b40606 0%, #8e0000 100%);
  border-color: #8e0000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 18px rgba(142, 0, 0, 0.26);
}

.ip-btn--primary:hover,
.ip-btn--primary:focus {
  color: #fff;
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 24px rgba(142, 0, 0, 0.32);
}

.ip-btn--ghost {
  color: var(--fp-ink);
  background: transparent;
  border-color: #d5dae1;
}

.ip-btn--ghost:hover,
.ip-btn--ghost:focus {
  color: #fff;
  background: #0b0d12;
  border-color: #0b0d12;
}

.ip-btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.ip-btn--outline:hover,
.ip-btn--outline:focus {
  background: #000;
  border-color: #000;
  color: #fff;
}

.ip-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fp-label);
  font-size: 13px;
  font-weight: 500;
  color: var(--fp-dim);
}

.ip-cta {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 12% 0%, rgba(190, 22, 22, 0.28) 0%, transparent 58%),
    radial-gradient(ellipse 60% 50% at 90% 100%, rgba(155, 0, 0, 0.22) 0%, transparent 55%),
    #0b0d12;
  color: #fff;
}

.ip-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(122deg, transparent 0, transparent 11px, rgb(190 22 22 / 5%) 11px, rgb(190 22 22 / 8%) 12.2px);
  -webkit-mask-image: radial-gradient(ellipse 100% 90% at 50% 40%, #000 0%, #000 35%, transparent 92%);
  mask-image: radial-gradient(ellipse 100% 90% at 50% 40%, #000 0%, #000 35%, transparent 92%);
}

.ip-cta__rail {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 96px 28px 104px;
  text-align: center;
}

.ip-cta .ip-kicker {
  color: #ffb4a8;
}

.ip-cta .ip-title {
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}

.ip-cta__lead {
  margin: 22px auto 0;
  max-width: 42ch;
  font-family: var(--fp-sans);
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.ip-cta .ip-actions {
  justify-content: center;
  margin-top: 32px;
}

.ip-cta .ip-btn--primary {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 14px 34px rgba(180, 6, 6, 0.42);
}

.ip-cta .ip-note {
  color: rgba(255, 255, 255, 0.55);
}

.ip-cta--compact .ip-cta__rail {
  padding: 64px 28px 72px;
}

.ip-cta--compact .ip-title {
  max-width: 22ch;
  font-size: clamp(28px, 3.6vw, 40px);
}

.ip-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.ip-field label,
.ip-label {
  font-family: var(--fp-label);
  font-size: 13px;
  font-weight: 600;
  color: var(--fp-ink);
}

.ip-field input,
.ip-field textarea,
.ip-field select,
.ip-input {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--fp-line);
  border-radius: 10px;
  background: #fff;
  font-family: var(--fp-sans);
  font-size: 15px;
  line-height: 1.4;
  color: var(--fp-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ip-field textarea,
.ip-input--area {
  min-height: 120px;
  resize: vertical;
}

.ip-field input:focus,
.ip-field textarea:focus,
.ip-field select:focus,
.ip-input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--fp-red) 45%, var(--fp-line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--fp-red) 12%, transparent);
}

.ip-field input::placeholder,
.ip-field textarea::placeholder {
  color: #98a0ad;
}

.ip-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 991px) {
  .ip-rail,
  .ip-cta__rail {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 767px) {
  .ip-page {
    --fp-eyebrow-size: 14px;
    --fp-lead-size: 16.5px;
  }

  .ip-rail {
    padding: 56px 20px 64px;
  }

  .ip-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ip-cta__rail {
    padding: 64px 20px 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ip-btn,
  .ip-page * {
    animation: none !important;
    transition: none !important;
  }
}
