/* ===================================================================
 * Landing page sections
 * -------------------------------------------------------------------
 * 1.  Page shell + centred hero
 * 2.  Shared primitives
 * 3.  Partners strip
 * 4.  The problem
 * 5.  How it works
 * 6.  Interactive demo
 * 7.  FAQ
 * 8.  Pilot call to action
 * 9.  Footer
 * 10. More info panel
 * 11. Responsive
 * 12. Reduced motion
 * =================================================================== */

/* -------------------------------------------------------------------
 * 1. Page shell + centred hero
 * ------------------------------------------------------------------- */
:root {
  --ink: #0d0d0f;
  --ink-soft: #111114;
  --pink: #ac145a;
  --pink-bright: #ff4d9d;
  --text: rgba(255, 255, 255, 0.72);
  --muted: rgba(255, 255, 255, 0.45);
  --faint: rgba(255, 255, 255, 0.3);
  --line: rgba(255, 255, 255, 0.09);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}

body {
  height: auto;
  overflow-x: hidden;
  overflow-y: visible;
  background: var(--ink);
}

@media screen and (min-width: 901px) {
  .s-home {
    height: 100vh;
    min-height: 64rem;
  }
}

/* the hero is one centred statement now that the animation has moved
   into the "how it works" section */
.home-content__main--center {
  display: flex;
  justify-content: center;
  max-width: 100rem;
  margin: 0 auto;
}

.home-content__main--center .home-content__text {
  float: none;
  width: 100%;
  max-width: 92rem;
  margin: 0 auto;
  padding: 0 2.4rem;
  text-align: center;
}

.home-content__main--center .home-content__text h3 {
  padding-left: 0;
  margin-bottom: 2.4rem;
}

.home-content__main--center .home-content__text h3::before {
  display: none;
}

.home-content__main--center .home-content__text p {
  max-width: 72rem;
  margin: 3.6rem auto 0;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.62);
}

.home-content__main--center .hero-cta {
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

/* scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2.4rem;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.42);
  font-family: "metropolis-medium", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  transition: color 0.4s var(--ease);
  z-index: 2;
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  color: #ffffff;
}

.scroll-cue__line {
  display: block;
  width: 1px;
  height: 5.2rem;
  background: linear-gradient(to bottom, rgba(172, 20, 90, 0.9), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-cue__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, #ff4d9d, transparent);
  height: 40%;
  animation: cue-run 2.4s var(--ease) infinite;
}

@keyframes cue-run {
  0% { transform: translateY(-120%); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translateY(320%); opacity: 0; }
}

/* -------------------------------------------------------------------
 * 2. Shared primitives
 * ------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: 124rem;
  margin: 0 auto;
  padding: 0 clamp(2.4rem, 5vw, 6.6rem);
}

.s-section,
.s-cta {
  position: relative;
  padding: clamp(5.4rem, 7vw, 8.6rem) 0;
  z-index: 1;
}

.s-problem {
  background: var(--ink);
  border-top: 1px solid var(--line);
}

.s-how {
  background:
    radial-gradient(70rem 60rem at 85% 15%, rgba(172, 20, 90, 0.13), transparent 70%),
    var(--ink-soft);
  border-top: 1px solid var(--line);
}

.s-head {
  max-width: 88rem;
  margin-bottom: clamp(3.2rem, 3.8vw, 4.8rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 0 0 2.4rem;
  font-family: "metropolis-medium", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--pink-bright);
}

.eyebrow__line {
  display: block;
  width: 4rem;
  height: 1px;
  background: linear-gradient(to right, var(--pink), transparent);
}

.s-head h2,
.cta-card h2,
.footer-col h3 {
  margin: 0;
  color: #ffffff;
  font-family: "domine-regular", serif;
  font-weight: normal;
  letter-spacing: -0.015em;
}

.s-head h2 {
  font-size: clamp(3.2rem, 4.4vw, 5.4rem);
  line-height: 1.14;
}

.s-head h2 em {
  font-style: italic;
  color: var(--pink-bright);
}

.lede {
  max-width: 76rem;
  margin: 2.4rem 0 0;
  font-size: clamp(1.6rem, 1.6vw, 1.9rem);
  line-height: 1.85;
  color: var(--text);
}

.lede em {
  color: #ffffff;
  font-style: italic;
}

/* reveal on scroll */
html.js .reveal {
  opacity: 0;
  transform: translateY(2.8rem);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}

html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* -------------------------------------------------------------------
 * 3. Partners strip
 * ------------------------------------------------------------------- */
.logo-section {
  position: relative;
  z-index: 1;
  padding: 3.6rem 0 3.2rem;
  background: #000000;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.logo-section__title {
  margin: 0 0 2.4rem;
  text-align: center;
  font-family: "metropolis-medium", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

/* -------------------------------------------------------------------
 * 4. The problem
 * ------------------------------------------------------------------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  overflow: hidden;
}

.stat {
  position: relative;
  padding: clamp(2.8rem, 3.4vw, 4.4rem) clamp(2rem, 2.6vw, 3.4rem) clamp(2.6rem, 3vw, 4rem);
  background: var(--ink);
  transition: background-color 0.6s var(--ease);
}

.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--pink), rgba(172, 20, 90, 0));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease);
}

.stat.is-in::before {
  transform: scaleX(1);
}

.stat:hover {
  background: #131316;
}

.stat__value {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  font-family: "metropolis-semibold", "metropolis-bold", sans-serif;
  font-size: clamp(4.4rem, 5.6vw, 7rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.stat__prefix,
.stat__suffix {
  font-size: 0.46em;
  letter-spacing: 0;
  color: var(--pink-bright);
}

.stat__label {
  margin: 1.8rem 0 0;
  font-size: 1.3rem;
  line-height: 1.65;
  letter-spacing: 0.04em;
  color: var(--muted);
  max-width: 26rem;
}

/* pull quote */
.pull-quote {
  position: relative;
  margin: clamp(3.6rem, 4.2vw, 5.2rem) 0 0;
  padding: 0 0 0 clamp(2.4rem, 4vw, 4.8rem);
  border-left: 1px solid rgba(172, 20, 90, 0.55);
}

.pull-quote blockquote {
  margin: 0;
  padding: 0;
  max-width: 76rem;
  font-family: "domine-regular", serif;
  font-size: clamp(2.1rem, 2.6vw, 3rem);
  line-height: 1.5;
  color: #ffffff;
}

.pull-quote .hl {
  color: var(--pink-bright);
  white-space: nowrap;
}

.pull-quote cite {
  display: block;
  margin-top: 1.8rem;
  font-family: "metropolis-medium", sans-serif;
  font-size: 1.2rem;
  font-style: normal;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}

/* supporting figures */
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.4rem;
  margin: 3.6rem 0 0;
  padding: 0;
  list-style: none;
}

.mini-stats li {
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  font-size: 1.35rem;
  line-height: 1.7;
  color: var(--muted);
}

.mini-stats strong {
  display: block;
  margin-bottom: 0.5rem;
  font-family: "metropolis-semibold", sans-serif;
  font-size: 2rem;
  font-weight: normal;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.sources {
  margin: 3rem 0 0;
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.26);
}

/* -------------------------------------------------------------------
 * 5. How it works
 * ------------------------------------------------------------------- */
.how {
  display: grid;
  grid-template-columns: minmax(0, 40rem) minmax(0, 1fr);
  gap: clamp(4rem, 7vw, 9rem);
  /* the steps are distributed over the full height of the visual, so the
     two columns finish on the same line at every desktop width */
  align-items: stretch;
}

.how__visual {
  position: sticky;
  top: 12rem;
}

.how__frame {
  position: relative;
  padding: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background:
    radial-gradient(60% 50% at 50% 30%, rgba(172, 20, 90, 0.18), transparent 70%),
    #0b0b0d;
  overflow: hidden;
}

.how__frame video,
.how__frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.3rem;
}

/* scanning bar sweeping the frame */
.how__scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 18%;
  top: -20%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(172, 20, 90, 0.22),
    rgba(255, 77, 157, 0.5),
    rgba(172, 20, 90, 0.22),
    transparent
  );
  mix-blend-mode: screen;
  pointer-events: none;
  animation: how-scan 7s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes how-scan {
  0% { top: -20%; opacity: 0; }
  12% { opacity: 1; }
  50% { top: 55%; opacity: 1; }
  62% { opacity: 0; }
  100% { top: 105%; opacity: 0; }
}

.how__corner {
  position: absolute;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 77, 157, 0.6);
  pointer-events: none;
}

.how__corner--tl { top: 0.9rem; left: 0.9rem; border-right: 0; border-bottom: 0; }
.how__corner--tr { top: 0.9rem; right: 0.9rem; border-left: 0; border-bottom: 0; }
.how__corner--bl { bottom: 0.9rem; left: 0.9rem; border-right: 0; border-top: 0; }
.how__corner--br { bottom: 0.9rem; right: 0.9rem; border-left: 0; border-top: 0; }

.how__caption {
  margin: 1.8rem 0 0;
  font-family: "metropolis-medium", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

/* steps + progress rail */
.steps {
  --p: 1;
  --steps-ring: 5.6rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: calc(var(--steps-ring) / 2);
  top: calc(var(--steps-ring) / 2);
  width: 1px;
  border-radius: 1px;
}

.steps::before {
  height: var(--rail, calc(100% - var(--steps-ring)));
  background: rgba(255, 255, 255, 0.08);
}

.steps::after {
  height: calc(var(--rail, calc(100% - var(--steps-ring))) * var(--p));
  background: linear-gradient(to bottom, var(--pink), var(--pink-bright));
  box-shadow: 0 0 12px rgba(255, 77, 157, 0.5);
  transition: height 0.18s linear;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: var(--steps-ring) minmax(0, 1fr);
  gap: clamp(1.8rem, 2.4vw, 2.8rem);
  padding-bottom: 0;
}

.step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--steps-ring);
  height: var(--steps-ring);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--ink-soft);
  font-family: "metropolis-medium", sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
  transition:
    color 0.5s var(--ease),
    border-color 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    background-color 0.5s var(--ease);
}

.step.is-in .step__num,
.step:hover .step__num {
  color: #ffffff;
  border-color: rgba(255, 77, 157, 0.75);
  background: #170a11;
  box-shadow: 0 0 0 6px rgba(172, 20, 90, 0.08);
}

.step__body h3 {
  margin: 0;
  padding-top: 0.5rem;
  font-family: "metropolis-semibold", sans-serif;
  font-size: clamp(1.7rem, 1.75vw, 2rem);
  font-weight: normal;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.step__body p {
  margin: 0.8rem 0 0;
  max-width: 56rem;
  font-size: 1.42rem;
  line-height: 1.62;
  color: var(--text);
}

.step__body strong {
  font-family: "metropolis-medium", sans-serif;
  font-weight: normal;
  color: #ffffff;
}

/* integration strip */
.integration-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin: clamp(3.6rem, 4.4vw, 5.6rem) 0 0;
  padding: 0;
  list-style: none;
}

.integration-strip li {
  padding: 0.9rem 1.8rem;
  border: 1px solid var(--line);
  border-radius: 10rem;
  font-family: "metropolis-medium", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  color: var(--text);
}

.integration-strip li:first-child {
  padding-left: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.34);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 1.05rem;
}

/* -------------------------------------------------------------------
 * 8. Pilot call to action
 * ------------------------------------------------------------------- */
.s-cta {
  background: var(--ink);
  border-top: 1px solid var(--line);
}

.cta-card {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 7vw, 8.4rem) clamp(2.6rem, 6vw, 8rem);
  border: 1px solid rgba(172, 20, 90, 0.28);
  border-radius: 2.4rem;
  background:
    radial-gradient(120% 140% at 50% -30%, rgba(172, 20, 90, 0.28), transparent 60%),
    linear-gradient(180deg, #141018 0%, #0c0c0e 100%);
  text-align: center;
}

.cta-card__glow {
  position: absolute;
  top: -55%;
  left: 50%;
  width: 90rem;
  height: 70rem;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(172, 20, 90, 0.3), transparent 72%);
  filter: blur(20px);
  pointer-events: none;
  animation: cta-breathe 9s ease-in-out infinite;
}

@keyframes cta-breathe {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

.cta-card .eyebrow {
  justify-content: center;
}

.cta-card h2 {
  position: relative;
  font-size: clamp(3.2rem, 4.6vw, 5.6rem);
  line-height: 1.1;
}

.cta-card__copy {
  position: relative;
  max-width: 64rem;
  margin: 2.4rem auto 0;
  font-size: clamp(1.5rem, 1.6vw, 1.8rem);
  line-height: 1.8;
  color: var(--text);
}

.cta-card__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.6rem 2.4rem;
  margin-top: 3.6rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.55rem 2.4rem 1.55rem 2.8rem;
  border-radius: 10rem;
  background: linear-gradient(135deg, #c01a67 0%, var(--pink) 55%, #7d0f42 100%);
  color: #ffffff;
  font-family: "metropolis-semibold", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 1.6rem 3.4rem -1.4rem rgba(172, 20, 90, 0.85);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    filter 0.4s var(--ease);
}

.btn-primary svg {
  width: 2rem;
  height: 2rem;
  transition: transform 0.4s var(--ease);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 2.2rem 4.4rem -1.4rem rgba(255, 77, 157, 0.75);
  color: #ffffff;
}

.btn-primary:hover svg,
.btn-primary:focus-visible svg {
  transform: translateX(4px);
}

.btn-primary:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

.btn-ghost {
  font-family: "metropolis-medium", sans-serif;
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.2rem;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

.cta-points {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.8rem;
  margin: 3.2rem 0 0;
  padding: 0;
  list-style: none;
}

.cta-points li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.cta-points li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--pink-bright);
  box-shadow: 0 0 10px rgba(255, 77, 157, 0.8);
}

/* -------------------------------------------------------------------
 * 9. Footer
 * ------------------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 1;
  padding: clamp(5.6rem, 8vw, 9rem) 0 3.2rem;
  background: #08080a;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: start;
}

.footer-logo {
  width: 12rem;
  height: auto;
  display: block;
  margin-bottom: 2rem;
}

.footer-brand p {
  max-width: 34rem;
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--muted);
}

.footer-col h3 {
  margin: 0 0 1.6rem;
  font-family: "metropolis-medium", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

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

.footer-col li + li {
  margin-top: 0.9rem;
}

.footer-col a {
  font-size: 1.4rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: #ffffff;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 2.4rem;
  margin-top: clamp(4rem, 6vw, 6.4rem);
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
}

.footer-base p {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.3);
}

/* -------------------------------------------------------------------
 * 10. "More info" panel
 * the panel heading was an <h1>; it is now an <h2> so the page keeps a
 * single h1, which means it needs its own styling here
 * ------------------------------------------------------------------- */
.s-info {
  color: rgba(255, 255, 255, 0.58);
}

.s-info h2 {
  margin-top: 0;
  margin-bottom: 3.2rem;
  position: relative;
  font-family: "domine-regular", serif;
  font-weight: normal;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.s-info h2::before {
  content: "";
  display: block;
  width: 80px;
  height: 1px;
  background-color: rgba(236, 0, 140, 0.6);
  position: absolute;
  left: 3px;
  top: -3.6rem;
}

/* -------------------------------------------------------------------
 * 6. Interactive demo
 * ------------------------------------------------------------------- */
.demo__prompt {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.8rem;
  font-family: "metropolis-medium", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.demo__prompt::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--pink-bright);
  box-shadow: 0 0 10px rgba(255, 77, 157, 0.8);
  animation: prompt-pulse 2s ease-in-out infinite;
}

@keyframes prompt-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(255, 77, 157, 0.7);
  }
  50% {
    transform: scale(1.4);
    box-shadow: 0 0 16px rgba(255, 77, 157, 1);
  }
}

/* the instruction retires once an answer is in, without moving the cards */
.demo.is-resolved .demo__prompt {
  opacity: 0;
  visibility: hidden;
}

/* without JS there is nothing to pick, so the instruction goes away */
.no-js .demo__prompt {
  display: none;
}

.demo__stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.6rem, 2.4vw, 2.8rem);
}

.demo__card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: #09090b;
  transition:
    border-color 0.5s var(--ease),
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}

.demo:not(.is-resolved) .demo__card {
  cursor: pointer;
}

.demo:not(.is-resolved) .demo__card:hover {
  border-color: rgba(255, 77, 157, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 2.4rem 4.8rem -2.4rem rgba(0, 0, 0, 0.9);
}

/* the pair swaps sides on load so the answer cannot be memorised */
.demo__stage.is-swapped .demo__card[data-role="genuine"] {
  order: 2;
}

.demo__chrome {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.9rem 1.2rem;
  background: #141417;
  border-bottom: 1px solid var(--line);
}

.demo__dots {
  display: flex;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.demo__dots i {
  display: block;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.demo__url {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.55rem 1.2rem;
  border-radius: 10rem;
  background: #0a0a0c;
  font-family: "metropolis-medium", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  overflow: hidden;
  transition:
    color 0.45s var(--ease),
    background-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}

.demo__lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  line-height: 1;
}

.demo__lock svg,
.demo__url svg {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  opacity: 0.7;
  transition: color 0.4s var(--ease), transform 0.4s var(--ease), opacity 0.4s var(--ease), filter 0.4s var(--ease);
}

.demo__lock.is-lit svg {
  color: var(--pink-bright);
  opacity: 1;
  transform: scale(1.35);
  filter: drop-shadow(0 0 8px rgba(255, 77, 157, 0.95));
}

.demo__url [data-domain] {
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.4s var(--ease);
}

[data-domain].is-lit {
  color: #ffffff;
  background: rgba(172, 20, 90, 0.38);
  padding: 0.15rem 0.55rem;
  border-radius: 0.4rem;
  box-shadow: 0 0 12px rgba(255, 77, 157, 0.6);
}

.demo__url.is-lit {
  color: #ffffff;
  background: rgba(172, 20, 90, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 77, 157, 0.45);
}

.demo__page {
  flex: 1;
  padding: clamp(2.2rem, 2.8vw, 3.4rem);
}

/* the mock sign-in page ------------------------------------------- */
.mock {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mock__brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.mock__logo {
  font-family: aptos, "metropolis-regular", sans-serif;
  font-size: 2.3rem;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.mock__mati {
  font-family: masterblast, "metropolis-bold", sans-serif;
  color: #ac145a;
}

.mock__portal {
  padding-left: 1.1rem;
  border-left: 1px solid var(--line);
  font-family: "metropolis-medium", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.34);
}

/* the clone's tells: a re-set wordmark and a drifted accent */
.mock--clone .mock__brand {
  transform: translateY(-2px);
}

.mock--clone .mock__mati {
  font-family: "metropolis-semibold", sans-serif;
  letter-spacing: 0.03em;
  color: #c2185b;
}

.mock--clone .mock__btn {
  background: #c2185b;
}

.mock__head {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.mock__title {
  font-family: "domine-regular", serif;
  font-size: 2.5rem;
  line-height: 1.1;
  color: #ffffff;
}

.mock__sub {
  font-family: "metropolis-regular", sans-serif;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.42);
}

.mock__field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mock__label {
  font-family: "metropolis-medium", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.36);
}

.mock__input {
  display: block;
  padding: 1.05rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.55rem;
  background: #0e0e11;
  font-family: "metropolis-regular", sans-serif;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.5);
}

.mock__btn {
  display: block;
  padding: 1.2rem;
  border-radius: 0.55rem;
  text-align: center;
  background: #ac145a;
  color: #ffffff;
  font-family: "metropolis-semibold", sans-serif;
  font-size: 1.3rem;
}

.mock__foot {
  text-align: center;
  font-family: "metropolis-regular", sans-serif;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.34);
}

/* evidence is ringed in, one signal at a time, after the choice */
[data-lit]:not(.demo__url) {
  position: relative;
}

[data-lit]:not(.demo__url).is-lit::after {
  content: "";
  position: absolute;
  inset: -0.7rem;
  border: 1px dashed rgba(255, 77, 157, 0.85);
  border-radius: 0.5rem;
  pointer-events: none;
  animation: tell-in 0.45s var(--ease) both;
}

@keyframes tell-in {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: none; }
}

.demo__label {
  padding: 1rem 1.4rem;
  border-top: 1px solid var(--line);
  font-family: "metropolis-semibold", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  transition: color 0.4s var(--ease), background-color 0.4s var(--ease);
}

.demo__label [data-label] {
  display: inline-block;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.demo.is-resolved .demo__label [data-label] {
  opacity: 1;
  transform: none;
}

.demo.is-resolved .demo__card[data-role="clone"] {
  border-color: rgba(255, 77, 157, 0.5);
}

.demo.is-resolved .demo__card[data-role="clone"] .demo__label {
  color: var(--pink-bright);
  background: rgba(172, 20, 90, 0.14);
}

.demo.is-resolved .demo__card[data-role="genuine"] .demo__label {
  color: rgba(255, 255, 255, 0.6);
}

/* the whole card is the hit area for the answer */
.demo__hit {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 5;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: transparent;
  font-size: 0;
  cursor: pointer;
}

.demo__hit:hover,
.demo__hit:focus {
  /* the template's global button rules paint a grey block */
  background: transparent;
  color: transparent;
}

.demo__hit:focus-visible {
  outline: 2px solid var(--pink-bright);
  outline-offset: -4px;
}

.demo.is-resolved .demo__hit {
  pointer-events: none;
}

.demo.is-resolved .demo__card {
  cursor: default;
}

.demo__fallback {
  margin: 2.4rem 0 0;
  max-width: 72rem;
  font-size: 1.35rem;
  line-height: 1.7;
  color: var(--muted);
}

.demo__fallback code {
  padding: 0.1em 0.4em;
  border-radius: 0.3rem;
  background: rgba(255, 255, 255, 0.07);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
  color: #ffffff;
}

.demo__verdict {
  margin: 3.2rem 0 0;
  max-width: 78rem;
  font-family: "domine-regular", serif;
  font-size: clamp(1.9rem, 2.2vw, 2.5rem);
  line-height: 1.5;
  color: #ffffff;
}

.demo__verdict:empty {
  display: none;
}

.demo__verdict strong {
  font-weight: normal;
  color: var(--pink-bright);
}

.demo__reveal {
  margin-top: 2.8rem;
  animation: demo-in 0.6s var(--ease) both;
}

@keyframes demo-in {
  from { opacity: 0; transform: translateY(1.2rem); }
}

.demo__tells {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  overflow: hidden;
}

.demo__tells li {
  display: flex;
  gap: 1.4rem;
  padding: clamp(1.8rem, 2.2vw, 2.6rem);
  background: #0b0b0d;
  transition: background-color 0.45s var(--ease), box-shadow 0.45s var(--ease), transform 0.45s var(--ease);
}

.demo__tells li.is-lit {
  background: #141217;
  box-shadow: inset 0 0 0 1px rgba(255, 77, 157, 0.55), 0 0 24px rgba(172, 20, 90, 0.18);
}

.demo__num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(255, 77, 157, 0.5);
  border-radius: 50%;
  font-family: "metropolis-semibold", sans-serif;
  font-size: 1.1rem;
  color: var(--pink-bright);
  transition: all 0.45s var(--ease);
}

.demo__tells li.is-lit .demo__num {
  background: var(--pink-bright);
  color: #0b0b0d;
  border-color: var(--pink-bright);
  box-shadow: 0 0 12px rgba(255, 77, 157, 0.85);
  transform: scale(1.08);
}

.demo__tells strong {
  display: block;
  margin-bottom: 0.4rem;
  font-family: "metropolis-semibold", sans-serif;
  font-size: 1.45rem;
  font-weight: normal;
  color: #ffffff;
}

.demo__tells p {
  margin: 0;
  font-size: 1.32rem;
  line-height: 1.7;
  color: var(--muted);
}

.demo__tells code {
  padding: 0.1em 0.4em;
  border-radius: 0.3rem;
  background: rgba(255, 255, 255, 0.07);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
  color: #ffffff;
}

.demo__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  margin-top: 2.4rem;
}

.demo__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid rgba(255, 77, 157, 0.35);
  border-radius: 10rem;
  background: rgba(172, 20, 90, 0.12);
  font-family: "metropolis-medium", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.demo__chip::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--pink-bright);
  box-shadow: 0 0 10px rgba(255, 77, 157, 0.9);
}

.demo__reset {
  margin: 0;
  padding: 0 0 0.2rem;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  font-family: "metropolis-medium", sans-serif;
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.demo__reset:hover,
.demo__reset:focus {
  background: none;
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

/* -------------------------------------------------------------------
 * 7. FAQ
 * ------------------------------------------------------------------- */
.s-faq {
  background: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 33rem) minmax(0, 1fr);
  gap: clamp(3.2rem, 6vw, 8rem);
  align-items: start;
}

.faq__head {
  position: sticky;
  top: 8rem;
  margin-bottom: 0;
}

.faq__head h2 {
  font-size: clamp(2.8rem, 3.2vw, 4rem);
}

.faq__head .lede {
  margin-top: 2.2rem;
  font-size: 1.45rem;
}

.faq__head .lede a {
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 77, 157, 0.6);
}

.faq {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.2rem 0;
  list-style: none;
  cursor: pointer;
  font-family: "metropolis-medium", sans-serif;
  font-size: clamp(1.45rem, 1.55vw, 1.75rem);
  line-height: 1.45;
  color: #ffffff;
  transition: color 0.3s var(--ease);
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::marker {
  content: "";
}

.faq__item summary:hover,
.faq__item summary:focus-visible {
  color: var(--pink-bright);
}

.faq__icon {
  position: relative;
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.4rem;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--pink-bright);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.faq__icon::before {
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  transform: translateY(-50%);
}

.faq__icon::after {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  transform: translateX(-50%);
}

.faq__item[open] .faq__icon::after {
  opacity: 0;
  transform: translateX(-50%) scaleY(0);
}

.faq__body {
  padding-bottom: 2.4rem;
}

.faq__body p {
  margin: 0;
  max-width: 64rem;
  font-size: 1.45rem;
  line-height: 1.8;
  color: var(--text);
}

.faq__item[open] .faq__body {
  animation: faq-in 0.35s var(--ease) both;
}

@keyframes faq-in {
  from { opacity: 0; transform: translateY(-4px); }
}

/* screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* -------------------------------------------------------------------
 * 11. Responsive
 * ------------------------------------------------------------------- */
@media screen and (max-width: 1100px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .how {
    grid-template-columns: minmax(0, 32rem) minmax(0, 1fr);
    gap: 4.4rem;
  }
}

@media screen and (max-width: 900px) {
  .scroll-cue {
    display: none;
  }

  .home-content__main--center .home-content__text {
    padding: 0 1.6rem;
  }

  .home-content__main--center .home-content__text p {
    margin-top: 2.6rem;
  }

  .how {
    grid-template-columns: minmax(0, 1fr);
    gap: 4.4rem;
  }

  .how__visual {
    position: static;
    max-width: 40rem;
    width: 100%;
    margin: 0 auto;
  }

  .steps {
    max-width: 62rem;
  }

  .mini-stats {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
  }

  .demo__stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

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

  .faq__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 4rem;
  }

  .faq__head {
    position: static;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 700px) {
  .stat-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stat__label {
    max-width: none;
  }

  .step {
    grid-template-columns: 4.8rem minmax(0, 1fr);
    gap: 1.8rem;
  }

  .step__num {
    width: 4.8rem;
    height: 4.8rem;
    font-size: 1.1rem;
  }

  .steps::before,
  .steps::after {
    left: 2.4rem;
  }

  .steps::before {
    top: 2.4rem;
    bottom: 2.4rem;
  }

  .steps::after {
    top: 2.4rem;
    height: calc((100% - 4.8rem) * var(--p));
  }

  .step__body h3 {
    padding-top: 0.9rem;
  }

  .cta-points {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .demo__page {
    padding: 2rem 1.8rem;
  }

  .demo__foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .demo__verdict {
    margin-top: 2.4rem;
  }

  .faq__item summary {
    padding: 1.9rem 0;
    gap: 1.4rem;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 1.5rem 2rem;
  }

  .btn-ghost {
    font-size: 1.2rem;
  }

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

  .footer-base {
    justify-content: flex-start;
  }
}

@media screen and (max-width: 480px) {
  .how__frame {
    padding: 1.4rem;
  }
}

/* -------------------------------------------------------------------
 * 12. Reduced motion
 * ------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-cue__line::after,
  .how__scan,
  .cta-card__glow,
  .demo__reveal,
  .demo__tells [data-lit].is-lit::after,
  .faq__item[open] .faq__body {
    animation: none !important;
  }

  .how__scan {
    opacity: 0.35;
    top: 40%;
  }

  html.js .reveal,
  html.js .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn-primary,
  .btn-primary svg,
  .stat,
  .stat::before,
  .step__num {
    transition-duration: 0.01ms !important;
  }
}
