/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 9, 18, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.5rem;
}

.site-header__logo {
  color: var(--color-ink);
  white-space: nowrap;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.site-brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  object-fit: contain;
  display: block;
}

.site-brand__text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
}

.site-header__nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.site-header__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-ink-muted);
}

.site-header__link:hover,
.site-header__link:focus-visible {
  color: var(--color-ink);
  outline: none;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 9, 18, 0.06);
  color: var(--color-ink);
  cursor: pointer;
}

.menu-toggle__icon {
  position: relative;
  width: 1rem;
  height: 0.75rem;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after,
.menu-toggle__icon span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle__icon::before {
  top: 0;
}

.menu-toggle__icon span {
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle__icon::after {
  bottom: 0;
}

.site-header.is-menu-open .menu-toggle__icon::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.site-header.is-menu-open .menu-toggle__icon span {
  opacity: 0;
}

.site-header.is-menu-open .menu-toggle__icon::after {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

.site-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 110;
}

.site-mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 9, 18, 0.4);
  cursor: pointer;
}

.site-mobile-menu__panel {
  position: absolute;
  top: calc(var(--header-height) + 0.75rem);
  right: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  border: 1px solid rgba(0, 9, 18, 0.08);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 24px 48px rgba(0, 9, 18, 0.16);
}

.site-mobile-menu__link {
  display: block;
  padding: 0.6rem 0.5rem;
  font-size: 1rem;
  color: var(--color-ink);
}

.site-mobile-menu__cta {
  margin-top: 0.5rem;
}

@media (min-width: 1024px) {
  .site-header__nav {
    display: flex;
  }
}

@media (max-width: 1023px) {
  .site-header__nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (min-width: 1024px) {
  .site-mobile-menu {
    display: none !important;
  }
}

/* Section with illustration */
.section-with-art {
  position: relative;
  overflow: visible;
}

.section-with-art__inner {
  position: relative;
}

.section-art {
  pointer-events: none;
  user-select: none;
}

.section-art img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 1023px) {
  .section-art {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    width: 180px !important;
    margin-inline: auto;
    margin-bottom: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .section-art {
    position: absolute;
    z-index: 1;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding-top: 8rem;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.hero__column {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
}

.hero__eyebrow {
  margin: 0;
}

.hero__title {
  margin: 2rem 0 0;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(20px);
  animation: heroTitleIn 0.8s ease-out forwards;
}

.hero__lead {
  margin-top: 2rem;
  max-width: 50ch;
  margin-inline: auto;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.hero__facts {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__mockup {
  pointer-events: none;
  user-select: none;
}

/* Hero mockup composition (three iPhones upright) */
.hero__inner {
  position: relative;
}

.hero__text {
  text-align: center;
}

.hero__mockups {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  margin: 4rem auto 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: -6rem; /* intentionally clips the bottom via hero overflow hidden */
  transform: translateY(44px);
}

.hero__mockups::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1000px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(0, 9, 18, 0.04) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.hero__mockup--left,
.hero__mockup--right,
.hero__mockup--center {
  position: relative;
  z-index: 1;
}

.hero__mockup--left,
.hero__mockup--right {
  width: 240px;
  filter: drop-shadow(0 20px 40px rgba(0, 9, 18, 0.12));
}

.hero__mockup--center {
  width: 280px;
  transform: translateY(-60px);
  filter: drop-shadow(0 30px 60px rgba(0, 9, 18, 0.18));
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero__mockups {
    margin-bottom: -5rem;
    transform: translateY(32px);
  }

  .hero__mockup--left,
  .hero__mockup--right {
    width: 180px;
  }

  .hero__mockup--center {
    width: 220px;
    transform: translateY(-40px);
  }
}

@media (max-width: 767px) {
  .hero__mockups {
    max-width: 240px;
    margin-bottom: -3.5rem;
    transform: translateY(20px);
  }

  .hero__mockup--left,
  .hero__mockup--right {
    display: none;
  }

  .hero__mockup--center {
    width: 240px;
    transform: none;
  }
}

.hero__mockup--desktop {
  display: none;
}

.hero__mockup--mobile {
  display: none;
}

.hero__mockup-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  width: 100%;
}

.hero__mockup-figure .iphone-mockup {
  width: 100%;
}

@media (min-width: 1024px) {
  .hero__mockup--desktop {
    display: block;
    position: absolute;
    right: clamp(-120px, -6vw, -50px);
    top: 50%;
    width: clamp(220px, 22vw, 300px);
    max-width: clamp(220px, 22vw, 300px);
    z-index: 1;
    transform: translateY(-50%) rotate(-4deg) scale(0.98);
    filter: drop-shadow(0 30px 60px rgba(0, 9, 18, 0.15));
    opacity: 0;
    animation: heroMockupIn 1s ease-out 0.2s forwards;
  }

  .hero__mockup--desktop::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 9, 18, 0.05) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
  }
}

@media (max-width: 1023px) {
  .hero__cta {
    flex-direction: column;
  }

  .hero__mockup--mobile {
    display: block;
    position: relative;
    max-width: 240px;
    margin: 2.5rem auto 0;
    transform: none;
    filter: drop-shadow(0 24px 48px rgba(0, 9, 18, 0.12));
  }
}

@keyframes heroTitleIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroMockupIn {
  from {
    opacity: 0;
    transform: translateY(-50%) rotate(-4deg) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) rotate(-4deg) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__title,
  .hero__mockup--desktop {
    animation: none;
    opacity: 1;
  }

  .hero__title {
    transform: translateY(0);
  }

  .hero__mockup--desktop {
    transform: translateY(-50%) rotate(-4deg) scale(1);
  }
}

/* Landscape divider between Section 2 and 3 */
.landscape-divider {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.landscape-divider__inner {
  display: flex;
  justify-content: center;
}

.landscape-divider__visual {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}

.landscape-divider__frame {
  position: relative;
  filter: drop-shadow(0 40px 80px rgba(0, 9, 18, 0.15));
}

.landscape-divider__screen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  object-fit: contain;
}

.landscape-divider__placeholder {
  display: none;
}

.landscape-divider__frame.is-missing .landscape-divider__placeholder {
  display: flex;
}

.landscape-divider__frame.is-missing .landscape-divider__screen {
  display: none;
}

@media (max-width: 767px) {
  .landscape-divider__frame {
    filter: drop-shadow(0 24px 48px rgba(0, 9, 18, 0.12));
  }

  .landscape-divider__visual {
    max-width: 100%;
  }
}

/* Content sections */
.content-section {
  padding-block: var(--section-padding-y);
}

.content-section--left .column {
  text-align: left;
}

.content-section__eyebrow + .content-section__title {
  margin-top: 1.5rem;
}

.content-section__title + .content-section__sub,
.content-section__title + .body-copy {
  margin-top: 1.5rem;
}

.content-section__sub + .content-section__body,
.content-section__sub + .bullet-list {
  margin-top: 3rem;
}

/* Section 3 — How matching works (typographic) */
.matching-process {
  padding-block: clamp(5rem, 12vw, 9rem);
}

.matching-process__column {
  max-width: var(--column-max);
  margin-inline: auto;
}

.matching-process__header {
  text-align: center;
}

.matching-process__eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--color-ink-subtle);
}

.matching-process__header h2 {
  margin-top: 1.5rem;
}

.matching-process__sub {
  margin-top: 1rem;
}

.matching-process__steps {
  list-style: none;
  margin: 5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  text-align: left;
}

.matching-process__step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  min-width: 0;
}

.matching-process__number {
  flex: 0 0 90px;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--color-ink);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.matching-process__content {
  flex: 1;
  min-width: 0;
}

.matching-process__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-ink);
}

.matching-process__desc {
  margin: 0.75rem 0 0;
  max-width: 36ch;
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-ink-muted);
}

.content-section__sub + .section-consider__art-slot + .bullet-list {
  margin-top: 3rem;
}

@media (max-width: 1023px) {
  .content-section__sub + .section-consider__art-slot {
    margin-top: 2rem;
  }

  .content-section__sub + .section-consider__art-slot + .bullet-list {
    margin-top: 2rem;
  }
}

.content-section__title + .content-section__sub--tight {
  margin-top: 1rem;
}

.content-section__body {
  margin-top: 2.5rem;
}

.content-section__divider {
  margin-top: 4rem;
}

.content-section__facts {
  margin-top: 3rem;
}

.content-section__caption {
  margin-top: 2rem;
}

.content-section__caption--after-list {
  margin-top: 3rem;
}

.content-section__trust {
  margin-top: 3rem;
}

.content-section__policy-link {
  display: inline-block;
  margin-top: 2rem;
  font-size: 1rem;
}

.section-consider__art-slot {
  display: none;
}

@media (max-width: 1023px) {
  .section-consider__art-slot {
    display: block;
    margin-top: 2rem;
    margin-bottom: 1rem;
  }

  .section-consider__art-slot .section-art {
    margin-bottom: 0;
  }
}

/* Consider art - left */
.art--binoculars {
  display: none;
}

@media (min-width: 1024px) {
  .art--binoculars {
    display: block;
    left: clamp(-100px, -5vw, -60px);
    top: 50%;
    transform: translateY(-50%);
    width: clamp(200px, 24vw, 340px);
  }
}

/* Data art - right, top third */
.art--padlock {
  display: none;
}

@media (min-width: 1024px) {
  .art--padlock {
    display: block;
    right: clamp(-100px, -5vw, -60px);
    top: 33%;
    transform: translateY(-33%);
    width: clamp(200px, 24vw, 340px);
  }
}

.section-data__art-slot {
  display: none;
}

@media (max-width: 1023px) {
  .section-data__art-slot {
    display: block;
    margin-bottom: 2.5rem;
  }
}

/* Footer */
.site-footer {
  background: var(--color-ink);
  color: #efefef;
  padding: 4rem 0 3rem;
}

.site-footer a {
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  opacity: 1;
  outline: none;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

.site-footer__brand {
  margin: 0;
  color: #efefef;
}

.site-footer__brand .site-brand__mark {
  border-radius: 10px;
}

.site-footer__brand .site-brand__text {
  font-size: 1.5rem;
  color: #efefef;
}

.site-footer__tagline {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  font-style: italic;
  color: rgba(239, 239, 239, 0.6);
}

.site-footer__badge {
  margin-top: 1.5rem;
}

.site-footer__heading {
  margin: 0 0 1.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(239, 239, 239, 0.5);
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer__links a {
  font-size: 0.9375rem;
  color: #efefef;
}

.site-footer__contact p {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  color: #efefef;
}

.site-footer__disclaimer {
  margin-top: 4rem;
  padding: 1.75rem;
  border: 1px solid rgba(239, 239, 239, 0.15);
  border-radius: 16px;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: rgba(239, 239, 239, 0.55);
}

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  font-size: 0.8125rem;
  color: rgba(239, 239, 239, 0.5);
}

.site-footer__bar p {
  margin: 0;
}
