@charset "UTF-8";

/*
 * Shared presentation layer for the two discovery pages.
 * The card stack and gesture selectors intentionally stay in each template;
 * this file only styles the page shell, controls, and editorial content.
 */

:root {
  --swipe-surface: rgba(17, 21, 34, 0.78);
  --swipe-surface-strong: rgba(20, 25, 40, 0.96);
  --swipe-border: rgba(255, 255, 255, 0.11);
  --swipe-copy: #c6cbdb;
  --swipe-heading: #f8f9ff;
}

html {
  background: #090b12;
  scroll-behavior: smooth;
}

body.fanzer-page {
  display: block;
  width: 100%;
  height: auto;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
}

body.fanzer-page::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 75%);
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

.swipe-stage {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
}

.swipe-stage::after {
  position: absolute;
  z-index: -1;
  top: 12%;
  left: 50%;
  width: min(88vw, 920px);
  height: 58%;
  border-radius: 50%;
  background: rgba(80, 111, 255, 0.10);
  content: "";
  filter: blur(100px);
  pointer-events: none;
  transform: translateX(-50%);
}

.swipe-page--woman .swipe-stage::after {
  background: rgba(175, 91, 210, 0.12);
}

.swipe-stage .app-container {
  height: 100svh;
  min-height: 0;
}

.app-header {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.app-title {
  letter-spacing: -0.025em;
}

.circle-btn {
  position: relative;
  border-color: var(--swipe-border);
  color: #fff;
}

.circle-btn:focus-visible,
.nav-controls .btn:focus-visible,
.swipe-related__link:focus-visible,
.swipe-faq details:focus-within {
  outline: 3px solid rgba(85, 215, 226, 0.55);
  outline-offset: 3px;
}

.circle-btn.nope {
  background: rgba(70, 192, 230, 0.08);
  color: #75ddff;
}

.circle-btn.love {
  background: rgba(255, 95, 148, 0.12);
  color: #ff78a7;
}

.action-label,
.action-panel__kicker,
.action-panel__title,
.action-panel__copy,
.action-directions {
  display: none;
}

.swipe-explainer {
  position: relative;
  padding: clamp(3.5rem, 7vw, 5.5rem) max(1.25rem, env(safe-area-inset-left))
    clamp(3.5rem, 7vw, 5rem);
  border-top: 1px solid var(--swipe-border);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 95, 148, 0.10), transparent 28rem),
    radial-gradient(circle at 92% 36%, rgba(85, 215, 226, 0.08), transparent 30rem),
    linear-gradient(180deg, rgba(8, 10, 17, 0.97), #0b0f19 72%);
  color: var(--swipe-copy);
}

.swipe-page--woman .swipe-explainer {
  background:
    radial-gradient(circle at 12% 8%, rgba(188, 105, 220, 0.13), transparent 28rem),
    radial-gradient(circle at 92% 36%, rgba(255, 111, 170, 0.09), transparent 30rem),
    linear-gradient(180deg, rgba(8, 10, 17, 0.97), #0b0f19 72%);
}

.swipe-explainer__inner {
  width: min(100%, 1080px);
  margin: 0 auto;
}

.swipe-explainer__intro {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.swipe-explainer__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: #ff9fbe;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.swipe-explainer__eyebrow::before {
  width: 28px;
  height: 1px;
  background: currentColor;
  content: "";
}

.swipe-explainer h2,
.swipe-explainer h3 {
  color: var(--swipe-heading);
}

.swipe-explainer h2 {
  max-width: 18em;
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.swipe-explainer__lead {
  max-width: 46rem;
  margin: 1rem 0 0;
  color: #cbd0df;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  line-height: 1.8;
}

.swipe-howto {
  margin: 0;
  padding: 1.25rem;
  border: 1px solid var(--swipe-border);
  border-radius: 22px;
  background: var(--swipe-surface);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.25);
  list-style: none;
}

.swipe-howto li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.85rem;
  align-items: start;
}

.swipe-howto li + li {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.swipe-howto__number {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 95, 148, 0.22), rgba(85, 215, 226, 0.18));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.swipe-howto strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #f5f6fb;
  font-size: 0.9rem;
}

.swipe-howto p {
  margin: 0;
  color: #aeb4c7;
  font-size: 0.82rem;
  line-height: 1.6;
}

.swipe-feature-grid {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.swipe-feature {
  min-width: 0;
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(18, 22, 35, 0.64);
}

.swipe-feature i {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 95, 148, 0.12);
  color: #ff8eb4;
  font-size: 1.05rem;
}

.swipe-page--woman .swipe-feature i {
  background: rgba(185, 111, 222, 0.14);
  color: #d8a2ef;
}

.swipe-feature h3 {
  margin: 0 0 0.55rem;
  font-size: 0.98rem;
  font-weight: 800;
}

.swipe-feature p {
  margin: 0;
  color: #aeb4c7;
  font-size: 0.86rem;
  line-height: 1.75;
}

.swipe-faq {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.swipe-explainer .swipe-faq__heading {
  margin: 0 0 1rem;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -0.015em;
}

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

.swipe-faq details:last-child {
  border-bottom: 1px solid var(--swipe-border);
}

.swipe-faq summary {
  position: relative;
  padding: 1.25rem 2.5rem 1.25rem 0;
  color: #edf0f8;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 750;
  list-style: none;
}

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

.swipe-faq summary::after {
  position: absolute;
  top: 50%;
  right: 0.4rem;
  color: #ff8eb4;
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  transform: translateY(-50%);
}

.swipe-faq details[open] summary::after {
  content: "−";
}

.swipe-faq details p {
  max-width: 50rem;
  margin: -0.25rem 0 1.25rem;
  color: #aeb4c7;
  font-size: 0.86rem;
  line-height: 1.8;
}

.swipe-related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 2rem;
}

.swipe-related__label {
  width: 100%;
  color: #7f879c;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.swipe-related__link {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--swipe-border);
  border-radius: 999px;
  color: #d9deeb;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.swipe-related__link:hover {
  border-color: rgba(255, 142, 180, 0.55);
  color: #fff;
  transform: translateY(-1px);
}

@media (min-width: 720px) {
  .swipe-explainer__intro {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  }

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

@media (min-width: 900px) {
  .swipe-stage .app-container {
    width: min(100%, 1180px);
    max-width: 1180px;
    padding: clamp(1.25rem, 3vw, 2.25rem);
    grid-template-columns: minmax(430px, 1fr) minmax(310px, 360px);
    gap: clamp(1.25rem, 3vw, 2.25rem);
  }

  .app-header {
    border-radius: 20px;
    background: rgba(14, 18, 29, 0.66);
  }

  .swipe-page--woman .app-container {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .swipe-page--woman .app-header {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--swipe-border);
    text-align: left;
  }

  .swipe-page--woman .app-lead {
    white-space: normal;
  }

  .app-deck {
    min-height: 0;
  }

  .card-stack,
  .swipe-page--woman .card-stack {
    width: min(100%, 470px, calc((100svh - 190px) / 1.3));
    height: auto;
    max-height: calc(100svh - 190px);
    aspect-ratio: 1 / 1.3;
  }

  .tinder-card,
  .swipe-page--woman .tinder-card {
    border-radius: 24px;
    box-shadow:
      0 32px 80px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.12);
  }

  .swipe-page--woman .app-deck {
    grid-column: 1;
    grid-row: 2;
    padding: 0;
  }

  .app-actions,
  .swipe-page--woman .app-actions {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    width: 100%;
    padding: 1.5rem;
    gap: 1rem;
    border: 1px solid var(--swipe-border);
    border-radius: 22px;
    background: var(--swipe-surface-strong);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  }

  .action-panel__kicker,
  .action-panel__title,
  .action-panel__copy {
    display: block;
  }

  .action-panel__kicker {
    margin: 0;
    color: #ff86ae;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .action-panel__title {
    margin: -0.35rem 0 0;
    color: #f7f8fc;
    font-size: 1.25rem;
    font-weight: 850;
  }

  .action-panel__copy {
    margin: -0.35rem 0 0.4rem;
    color: #9fa7bb;
    font-size: 0.82rem;
    line-height: 1.65;
  }

  .action-directions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin: -0.15rem 0 0.1rem;
    padding: 0.65rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
  }

  .action-directions__item {
    display: flex;
    gap: 0.45rem;
    align-items: center;
    min-width: 0;
  }

  .action-directions__item--right {
    justify-content: flex-end;
    text-align: right;
  }

  .action-directions__item i {
    flex: 0 0 auto;
    font-size: 1rem;
  }

  .action-directions__item span {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .action-directions__item small {
    color: #8f98ac;
    font-size: 0.62rem;
    line-height: 1.2;
  }

  .action-directions__item strong {
    color: #f5f7fc;
    font-size: 0.7rem;
    line-height: 1.35;
    white-space: nowrap;
  }

  .action-directions__item--left i,
  .action-directions__item--left strong {
    color: #75ddff;
  }

  .action-directions__item--right i,
  .action-directions__item--right strong {
    color: #ff78a7;
  }

  .swipe-controls,
  .swipe-page--woman .swipe-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .circle-btn,
  .swipe-page--woman .circle-btn {
    width: 100%;
    height: 78px;
    flex-direction: column;
    gap: 0.2rem;
    border-width: 1px;
    border-style: solid;
    border-radius: 16px;
    font-size: 1.55rem;
  }

  .circle-btn:hover {
    transform: translateY(-2px);
  }

  .action-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
  }

  .nav-controls,
  .swipe-page--woman .nav-controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .nav-controls .btn,
  .swipe-page--woman .nav-controls .btn {
    width: 100%;
    min-height: 46px;
    border-radius: 14px !important;
  }
}

@media (max-width: 719px) {
  .swipe-explainer {
    padding-top: 3rem;
    padding-bottom: 3.5rem;
  }

  .swipe-explainer__eyebrow {
    margin-bottom: 0.75rem;
    font-size: 0.68rem;
  }

  .swipe-explainer h2 {
    font-size: clamp(1.1rem, 5vw, 1.25rem);
    line-height: 1.42;
    letter-spacing: -0.01em;
  }

  .swipe-explainer__lead {
    font-size: 0.88rem;
    line-height: 1.75;
  }

  .swipe-explainer .swipe-faq__heading {
    font-size: 1.05rem;
  }

  .swipe-feature h3 {
    font-size: 0.94rem;
  }
}

@media (max-width: 899px) {
  .swipe-stage .app-container {
    max-width: 600px;
  }

  .tinder-card {
    border-radius: 18px;
  }
}

@media (max-width: 380px), (max-height: 700px) {
  .swipe-stage .app-container {
    height: 100svh;
  }

  .app-actions {
    padding-bottom: calc(0.45rem + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .circle-btn,
  .swipe-related__link {
    transition: none;
  }
}
