:root {
  --background: #020c18;
  --surface: #071426;
  --surface-soft: #0d2038;
  --border: #1f3a5c;
  --primary: #3b82f6;
  --primary-light: #69a4ff;
  --accent: #56dff4;
  --text: #f4f8fc;
  --muted: #95a5ba;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

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

html {
  min-width: 320px;
  background: var(--background);
  color-scheme: dark;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgb(86 223 244 / 35%);
  outline-offset: 3px;
}

svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes image-in {
  from { opacity: 0; transform: scale(1.04); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse-signal {
  0%, 100% { opacity: .48; transform: scale(.88); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes success-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.is-hidden {
  display: none !important;
}

.rr-funnel-page {
  display: flex;
  min-height: 100dvh;
  justify-content: center;
  overflow-x: hidden;
  padding: 1.25rem 1rem 2rem;
  background:
    radial-gradient(circle at 50% -12%, rgb(16 71 145 / 40%), transparent 30rem),
    linear-gradient(180deg, #06182d 0%, var(--background) 72%);
}

.rr-funnel-frame {
  width: min(100%, 36rem);
}

.rr-funnel-card {
  overflow: hidden;
  border: 1px solid rgb(47 78 116 / 80%);
  border-radius: 1.55rem;
  background: linear-gradient(180deg, #0a1a31 0%, #071426 100%);
  box-shadow: 0 2rem 5rem rgb(0 7 22 / 42%), 0 0 0 1px rgb(170 214 255 / 4%);
  animation: rise-in .65s ease both;
}

.rr-funnel-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #0b2747;
}

.rr-funnel-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  animation: image-in 1.1s cubic-bezier(.2, .75, .2, 1) both;
}

.rr-funnel-visual-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(2 10 24 / 24%) 0%, transparent 36%, rgb(2 10 24 / 92%) 100%),
    linear-gradient(90deg, rgb(3 16 35 / 18%), transparent 60%);
}

.rr-protection-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .55rem .78rem;
  border: 1px solid rgb(86 223 244 / 40%);
  border-radius: 999px;
  background: rgb(4 18 39 / 78%);
  color: #a5f3fc;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  backdrop-filter: blur(10px);
}

.rr-protection-badge svg {
  width: 1.05rem;
  height: 1.05rem;
}

.rr-visual-caption {
  position: absolute;
  right: 1.35rem;
  bottom: 1.1rem;
  left: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: .22rem;
  color: #edf5fc;
  font-size: .78rem;
  line-height: 1.4;
}

.rr-visual-kicker {
  color: var(--accent);
  font-family: var(--display);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .15em;
}

.rr-funnel-content {
  padding: 1.6rem clamp(1.25rem, 5vw, 2rem) 1.8rem;
}

.rr-funnel-kicker {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--accent);
  font-family: var(--display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.rr-funnel-signal {
  width: .48rem;
  height: .48rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 .75rem rgb(86 223 244 / 75%);
  animation: pulse-signal 2.4s ease-in-out infinite;
}

.rr-funnel-title {
  margin: .82rem 0 .95rem;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(2rem, 7vw, 2.55rem);
  font-weight: 600;
  letter-spacing: -.065em;
  line-height: 1.04;
}

.rr-funnel-title em {
  color: var(--primary-light);
  font-style: normal;
}

.rr-result-pill {
  width: fit-content;
  max-width: 100%;
  padding: .56rem .92rem;
  border: 1px solid rgb(59 130 246 / 36%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgb(24 94 190 / 22%), rgb(27 145 167 / 16%));
  color: #b9e5fc;
  font-size: .76rem;
  font-weight: 700;
}

.rr-progress-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.25rem 0 1.6rem;
  text-align: center;
}

.rr-progress-track {
  width: 100%;
  height: .48rem;
  overflow: hidden;
  margin-bottom: .86rem;
  border-radius: 999px;
  background: #182c45;
}

.rr-progress-value {
  width: 33.333%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 0 .85rem rgb(59 130 246 / 55%);
  transition: width .35s cubic-bezier(.2, .75, .2, 1);
}

.rr-progress-wrap strong {
  color: var(--primary-light);
  font-family: var(--display);
  font-size: 1.05rem;
}

.rr-progress-wrap > span {
  margin-top: .22rem;
  color: #7e8da2;
  font-size: .82rem;
}

.rr-step-view {
  animation: rise-in .35s ease both;
}

.rr-question {
  display: block;
  margin: 0 0 1.15rem;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(1.35rem, 4.8vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.2;
}

.rr-choice-list {
  display: grid;
  gap: .78rem;
}

.rr-choice,
.rr-primary-action {
  display: flex;
  width: 100%;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.15rem;
  border-radius: .9rem;
  cursor: pointer;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.rr-choice {
  border: 1px solid var(--border);
  background: rgb(14 34 58 / 82%);
  color: #e9f0f7;
}

.rr-choice svg,
.rr-primary-action svg {
  color: var(--accent);
  transition: transform .2s ease;
}

.rr-choice:hover {
  border-color: rgb(59 130 246 / 75%);
  background: #102d52;
  box-shadow: 0 .5rem 1.4rem rgb(0 7 22 / 18%);
  transform: translateY(-2px);
}

.rr-choice:hover svg,
.rr-primary-action:hover svg {
  transform: translateX(4px);
}

.rr-choice:active,
.rr-primary-action:active {
  transform: translateY(1px);
}

.rr-step-footnote {
  margin: .95rem 0 0;
  color: #74849a;
  font-size: .72rem;
  text-align: center;
}

.rr-back {
  display: inline-flex;
  align-items: center;
  gap: .15rem;
  margin: -.15rem 0 1.1rem;
  padding: 0;
  border: 0;
  background: none;
  color: #9aa9bc;
  cursor: pointer;
  font-size: .78rem;
  transition: color .2s ease;
}

.rr-back svg {
  width: 1rem;
  height: 1rem;
}

.rr-back:hover {
  color: var(--accent);
}

.rr-step-input {
  width: 100%;
  height: 4rem;
  padding: 0 1.1rem;
  border: 1px solid var(--border);
  border-radius: .9rem;
  outline: none;
  background: rgb(14 34 58 / 82%);
  color: var(--text);
  font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.rr-step-input::placeholder {
  color: #75859a;
}

.rr-step-input:focus {
  border-color: var(--primary-light);
  background: #112d4f;
  box-shadow: 0 0 0 3px rgb(59 130 246 / 14%);
}

.rr-primary-action {
  margin-top: 1rem;
  border: 1px solid rgb(130 178 255 / 54%);
  background: linear-gradient(100deg, #2478ed, #2f9ee8);
  color: #031223;
  box-shadow: 0 .7rem 1.6rem rgb(20 88 187 / 20%);
}

.rr-primary-action:hover {
  box-shadow: 0 1rem 2rem rgb(20 88 187 / 32%);
  transform: translateY(-2px);
}

.rr-primary-action svg {
  color: #031223;
}

.rr-primary-action:disabled {
  cursor: wait;
  opacity: .7;
  transform: none;
}

.rr-field-hint {
  margin: .65rem 0 0;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.4;
}

.rr-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .38rem;
  margin: 1rem 0 0;
  color: #8190a5;
  font-size: .7rem;
}

.rr-secure svg {
  width: .9rem;
  height: .9rem;
}

.rr-form-error {
  margin: 1rem 0 0;
  padding: .75rem .9rem;
  border: 1px solid rgb(248 113 113 / 35%);
  border-radius: .7rem;
  background: rgb(127 29 29 / 18%);
  color: #fecaca;
  font-size: .78rem;
  line-height: 1.4;
}

.rr-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.rr-funnel-success {
  display: flex;
  min-height: 20rem;
  flex-direction: column;
  justify-content: center;
  animation: success-in .45s ease both;
}

.rr-funnel-success-icon {
  display: grid;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.25rem;
  place-items: center;
  border: 1px solid rgb(86 223 244 / 46%);
  border-radius: 1.15rem;
  background: rgb(86 223 244 / 10%);
  color: #8ae9f7;
}

.rr-funnel-success-icon svg {
  width: 1.9rem;
  height: 1.9rem;
  stroke-width: 2.4;
}

.rr-funnel-success h2 {
  margin: .8rem 0 .75rem;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(1.8rem, 6vw, 2.45rem);
  letter-spacing: -.06em;
  line-height: 1.05;
}

.rr-funnel-success p {
  max-width: 28rem;
  margin: 0;
  color: #a7b4c5;
  font-size: .95rem;
  line-height: 1.55;
}

.rr-success-action {
  margin-top: 1.45rem;
}

.rr-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1rem .85rem 0;
  color: #8190a5;
  font-size: .72rem;
  line-height: 1.4;
  text-align: center;
}

.rr-trust-strip svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  color: var(--accent);
}

.rr-noscript {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 10;
  margin: 0 auto;
  padding: 1rem;
  border: 1px solid #f0b14a;
  border-radius: .75rem;
  background: #2c1c06;
  color: #ffe3aa;
  text-align: center;
}

@media (min-width: 700px) {
  .rr-funnel-page {
    align-items: center;
    padding: 2.5rem 1rem;
  }

  .rr-funnel-content {
    padding-right: 2.25rem;
    padding-left: 2.25rem;
  }
}

@media (max-width: 420px) {
  .rr-funnel-page {
    padding: .75rem .65rem 1.25rem;
  }

  .rr-funnel-content {
    padding: 1.35rem 1.05rem 1.45rem;
  }

  .rr-funnel-card {
    border-radius: 1.25rem;
  }

  .rr-funnel-visual {
    aspect-ratio: 4 / 5;
  }

  .rr-protection-badge {
    top: .75rem;
    right: .75rem;
    padding: .48rem .65rem;
    font-size: .64rem;
  }

  .rr-visual-caption {
    right: 1rem;
    bottom: .85rem;
    left: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
