:root {
  color-scheme: light;
  --blue: #587BF6;
  --blue-dark: #4353A5;
  --blue-soft: #eef2ff;
  --surface: #f7f8fc;
  --surface-strong: #f4f6fb;
  --text: #131313;
  --muted: #6b6b6b;
  --border: #e6e6e6;
  --card: #F5F5F5;
  --white: #ffffff;
  --shadow: 0 22px 40px rgba(16, 24, 40, 0.12);
  --section-space-top: clamp(46px, 6vw, 72px);
  --section-space-bottom-tight: clamp(42px, 5.5vw, 66px);
  --section-space-bottom: clamp(54px, 7vw, 88px);
  --section-space-bottom-loose: clamp(68px, 8vw, 112px);
  --section-space-mobile-top: 30px;
  --section-space-mobile-bottom-tight: 26px;
  --section-space-mobile-bottom: 46px;
  --section-space-mobile-bottom-loose: 58px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(88, 123, 246, 0.08) 0%, rgba(88, 123, 246, 0) 38%),
    radial-gradient(circle at 88% 22%, rgba(88, 123, 246, 0.05) 0%, rgba(88, 123, 246, 0) 30%),
    radial-gradient(circle at 78% 78%, rgba(88, 123, 246, 0.035) 0%, rgba(88, 123, 246, 0) 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 8vw;
  width: 100%;
}

h1,
h2,
h3
{
  font-family: "Playfair Display", serif;
  font-weight: 600;
  line-height: normal;
}

h4 {
 font-family: sans-serif;
 font-size: 1.4rem;
 font-weight: 500;
}

p {
  color: var(--muted);
}

a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}

.hero {
  padding: 40px 0 clamp(64px, 7vw, 88px);
  background: transparent;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  transform: translateY(3px);
}

.logo img {
  height: 26px;
  width: auto;
  display: block;
}

.logo-word {
  font-family: "Domine", serif;
  font-size: 20px;
  color: #041D85;
  margin-left: 10px;
  line-height: 1;
  font-weight: 600;
}


.nav-links {
  display: flex;
  gap: 30px;
  font-size: 0.95rem;
  transform: translateY(3px);
}

.nav-links a {
  opacity: 0.78;
  letter-spacing: 0.01em;
  transition: opacity 180ms ease;
}

.nav-links a:hover {
  opacity: 1;
}

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  color: var(--text);
  width: 32px;
  height: 24px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: transform 220ms ease;
}

.menu-toggle-line {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transform-origin: center;
  transition: transform 220ms ease, opacity 220ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero-content{
  display: grid;
  gap: 28px;
  align-items: center;

  /* Desktop/tablet: left side gets more space */
  grid-template-columns: 1.72fr 1fr;
}

/* Mobile: stack */
@media (max-width: 600px){
  .hero-content{
    grid-template-columns: 1fr;
  }
}

.hero-copy h1 {
  font-size: clamp(2.15rem, 3.8vw, 3.35rem);
  margin: 10px 0 16px;
  line-height: 1.2;
  min-height: calc(2 * 1.2em);
}

.hero-tagline {
  display: inline-block;
  transition: opacity 300ms ease, transform 300ms ease;
}

.hero-tagline.is-changing {
  opacity: 0;
  transform: translateY(8px);
}

.hero-copy p {
  max-width: 420px;
}

.hero-copy {
  max-width: 560px;
}

.hero .store-buttons {
  margin-top: 22px;
  justify-content: center;
  margin-inline: auto;
}

@media (min-width: 769px) {
  .hero-copy h1 {
    margin: 10px 0 4px;
    padding-bottom: 0.12em;
  }

  .hero-tagline {
    display: block;
    width: 100%;
  }

  .hero-copy {
    max-width: 620px;
  }

  .hero .store-buttons {
    margin-top: 102px;
  }
}

.pill {
  background: linear-gradient(100deg, #4c57ad 0%, #d04c4d 100%);
  color: #fff;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  display: inline-block;
}

.store-buttons {
  position: relative;
  display: flex;
  gap: clamp(32px, 5.2vw, 60px);
  margin-top: 18px;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  width: fit-content;
  max-width: 100%;
}

.store-buttons-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.store-badge-link {
  display: inline-flex;
  align-items: center;
  opacity: 0.3;
}

.store-badge {
  height: 60px;
  width: auto;
  display: block;
}

.hero-cards {
  display: grid;
  gap: 20px;
  justify-items: center;
}

.profile-card {
  width: min(280px, 90%);
  aspect-ratio: 1;
  container-type: inline-size;
  border-radius: clamp(8px, 3.5%, 10px);
  position: relative;
  overflow: hidden;
  background-color: var(--white);
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.14);
}

.profile-card img {
  width: 100%;
}


@supports (font-size: 1cqi) {
  .profile-card {
    font-size: clamp(12px, 5cqi, 14px);
  }
}

.profile-card.muted {
  transform: translateY(4.3%);
  box-shadow: none;
}

.profile-card-gradient-overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 35%;
  bottom: -10px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(246, 248, 255, 0.55) 24%,
    rgba(246, 248, 255, 0.83) 56%,
    rgba(246, 248, 255, 0.96) 80%,
    rgba(246, 248, 255, 1) 100%
  );

}

.profile-photo {
  height: 100%;
  background-size: cover;
  background-position: center;
}

.photo-1 {
  filter: brightness(1.35); 
  background-image: linear-gradient(140deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.45)),
    url("./assets/headshot1.png");
}

.photo-2 {
  filter: brightness(1.25); 
  background-image: linear-gradient(140deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5)),
    url("./assets/headshot2.png");
}

.profile-name {
  position: absolute;
  left: 50%;
  width: calc(100% - 2.5em);
  bottom: 1.05em;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: #222;
  text-align: center;
  letter-spacing: 0.02em;
  padding: 0.6em;
  border-radius: 0.35em;
  font-weight: 500;
  line-height: 1;
  font-family: "Playfair Display", serif;
  font-size: 1.4em;
}

.badge {
  position: absolute;
  top: 6.5%;
  left: 6.5%;
  width: 16%;
  aspect-ratio: 1 / 1;
  background: var(--blue);
  
  color: #fff;
  border-radius: 50%;
  font-size: 0.85em;
  font-weight: 500;
  display: grid;
  place-items: center;
  z-index: 1;
}

.bookmark {
  position: absolute;
  top: 6.5%;
  right: 6.5%;
  width: clamp(16px, 9%, 24px);
  height: clamp(16px, 9%, 24px);
  display: grid;
  place-items: center;
  z-index: 1;
}

.bookmark img {
  width: 100%;
  height: 100%;
  display: block;
}

.section-heading {
  margin-bottom: 47px;
  max-width: 640px;
}

.section-heading h2 {
  font-size: clamp(2.3rem, 3vw, 2.8rem);
}

.matchmaker .section-heading h2,
.problems .section-heading h2 {
  font-size: clamp(2.05rem, 2.5vw, 2.45rem);
}

.section-heading p {
  max-width: 34ch;
}

.matchmaker-mobile-subtext {
  display: none;
}

.matchmaker {
  padding: var(--section-space-top) 0 var(--section-space-bottom-tight);
  background:
    linear-gradient(180deg, #ffffff 0%, #ffffff 62%, #fcfdff 100%);
  border-top: 1px solid #eef1f8;
  border-bottom: 1px solid #e8ebf3;
  box-shadow: inset 0 16px 30px rgba(255, 255, 255, 0.9), 0 12px 28px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(1px);
}

.matchmaker-grid {
  display: grid;
  grid-template-columns: 2fr auto 3fr;
  gap: 40px;
  align-items: flex-start;
}

.matchmaker-left {
  --matchmaker-step-offset: clamp(8px, 3vw, 36px);
}

.divider {
  width: 1px;
  background: #8A8B8F;
  align-self: stretch;
}

.info-block h3 {
  font-size: 1.58rem;
  line-height: 1.9rem;
  font-family: sans-serif;
  font-weight: 400;
  margin-bottom: 2px;
  color: #303030;
}

.link {
  color: var(--blue);
  font-weight: 400;
  font-size: 1.2rem;
  margin-top: -4px;
}

.steps {
  margin-top: 42px;
  display: grid;
  gap: 47px;
  width: calc(100% - var(--matchmaker-step-offset));
}


.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(15px, 1.8vw, 26px);
  align-items: start;
}

.step-number {
  width: clamp(34px, 3.5vw, 44px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dfe4ff;
  color: #2b2b2b;
  font-size: clamp(1.28rem, 1.9vw, 1.63rem);
  line-height: 1;
  font-weight: 700;
  flex-shrink: 0;
}

.step-copy {
  padding-top: 0;
}

.step-copy h4 {
  font-size: clamp(1.4rem, 1.95vw, 1.68rem);
  line-height: 1.08;
  font-weight: 400;
  color: #000000;
  min-height: clamp(34px, 3.5vw, 44px);
  display: flex;
  align-items: center;
}

.step-copy p {
  color: #4a5fba;
  font-size: clamp(0.94rem, 1.28vw, 1.06rem);
  line-height: 1.15;
  margin-top: 3px;
  max-width: 24ch;
}

.phone-card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  
}

.phone-carousel {
  display: grid;
  justify-items: center;
  gap: 1px;
  transform: scale(0.9);
  transform-origin: top center;
}

.carousel-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: -8px;
}

.phone-frame {
  position: relative;
  width: min(340px, 100%);
  isolation: isolate;
}

.phone-frame::before {
  content: "";
  position: absolute;
  width: 142%;
  aspect-ratio: 1.22 / 1;
  left: 50%;
  top: 49%;
  transform: translate(-50%, -50%) rotate(-45deg);
  border-radius: 62% 38% 58% 42% / 44% 56% 40% 60%;
  background: radial-gradient(
    circle at 50% 48%,
    #4353A5 0%,
    rgba(67, 83, 165, 0.6) 22%,
    rgba(88, 123, 246, 0.24) 49%,
    rgba(88, 123, 246, 0.11) 63%,
    rgba(88, 123, 246, 0.04) 73%,
    rgba(88, 123, 246, 0) 82%
  );
  filter: blur(25px);
  z-index: 0;
  pointer-events: none;
}

.phone-device {
  width: 100%;
  display: block;
  background-color: fff;
  z-index: 10;
  position: relative;
  
}

.phone-screen {
  position: absolute;
 top: 5%;
 bottom: 5%;
 left: 10%;
 right: 10%;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  z-index: 1;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.carousel-slide img {
  width: 94%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.carousel-arrow {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: var(--blue-dark);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(26, 47, 188, 0.3);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.carousel-arrow-icon {
  width: 22px;
  height: 22px;
  display: block;
  filter: brightness(0) invert(1);
}

.carousel-arrow.next .carousel-arrow-icon {
  transform: rotate(180deg);
}

.carousel-arrow:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.18);
}

.carousel-arrow:active {
  transform: translateY(0) scale(0.97);
}

.carousel-pagination {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
}

.pagination-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: #e1e1e1;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease;
}

.pagination-dot:hover {
  transform: scale(1.1);
}

.pagination-dot.is-active {
  background: var(--blue);
}

.problems {
  padding: var(--section-space-top) 0 var(--section-space-bottom);

}

.learn-more {
  --learn-more-font-scale: 0.92;
  --learn-more-content-scale: 1.12;
  padding: var(--section-space-top) 0 var(--section-space-bottom-loose);
  background:
    radial-gradient(circle at 12% 0%, rgba(88, 123, 246, 0.06) 0%, rgba(88, 123, 246, 0) 36%),
    linear-gradient(180deg, #fdfefe 0%, #f7f9ff 100%);
  border-top: 1px solid #e2e7f5;
  box-shadow: inset 0 14px 24px rgba(88, 123, 246, 0.05);
}

.learn-more-container {
  max-width: 980px;
  display: grid;
  justify-items: center;
}

.learn-more h2 {
  width: 100%;
  text-align: center;
  font-size: calc(clamp(2rem, 3.05vw, 2.75rem) * var(--learn-more-font-scale));
  font-weight: 400;
  margin-bottom: clamp(16px, 2vw, 28px);

}

.learn-more-group {
  width: min(100%, 620px);
}

.learn-more-group h3 {
  font-family: "Inter", sans-serif;
  font-size: calc(clamp(1.42rem, 1.95vw, 1.82rem) * var(--learn-more-font-scale));
  font-weight: 400;
  margin-bottom: 10px;
 
}

.learn-more-group--secondary {
  margin-top: 18px;
}

.learn-more-secondary-wrap {
  width: min(100%, 620px);
  margin-top: 28px;
}

.learn-more-secondary-toggle {
  width: 100%;
  border: 1px solid #ced8f5;
  border-radius: 10px;
  background: rgba(88, 123, 246, 0.08);
  color: #1f3fa8;
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.learn-more-secondary-toggle:hover,
.learn-more-secondary-toggle:focus-visible {
  background: rgba(88, 123, 246, 0.14);
}

.learn-more-secondary-toggle::after {
  content: "Show";
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  font-size: 0.78rem;
  color: #3156c7;
}

.learn-more-secondary-toggle[aria-expanded="true"]::after {
  content: "Hide";
}

.learn-more-list {
  border-bottom: 1px solid #ced1d8;
}

.learn-more-entry {
  width: 100%;
  opacity: 0;
  transform: translateY(10px);
}

.learn-more.reveal-on-scroll.is-visible .learn-more-entry {
  animation: learn-more-entry-in 360ms ease-out forwards;
  animation-delay: var(--learn-more-entry-delay, 0ms);
}

.learn-more-answer {
  padding: 8px 4px 18px;
  color: #465173;
  font-size: calc(0.92rem * var(--learn-more-font-scale) * var(--learn-more-content-scale));
  line-height: 1.45;
}

.learn-more-answer.is-opening {
  animation: learn-more-answer-in 220ms ease-out;
}

.learn-more-item {
  width: 100%;
  border: none;
  border-top: 1px solid #ced1d8;
  background: transparent;
  color: var(--text);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 4px;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.learn-more-item:hover,
.learn-more-item:focus-visible {
  background: rgba(88, 123, 246, 0.08);
}

.learn-more-item[aria-expanded="true"] {
  background: rgba(88, 123, 246, 0.12);
}

.learn-more-item:hover .learn-more-item-subtitle,
.learn-more-item:focus-visible .learn-more-item-subtitle,
.learn-more-item[aria-expanded="true"] .learn-more-item-subtitle {
  color: #1a3288;
}

.learn-more-item[aria-expanded="true"] .learn-more-item-title {
  color: #222632;
}

.learn-more-item-copy {
  display: grid;
  gap: 3px;
}

.learn-more-item-title {
  color: #2f3138;
  font-size: calc(clamp(1.02rem, 1.25vw, 1.26rem) * var(--learn-more-font-scale) * var(--learn-more-content-scale));
  font-weight: 500;
  line-height: 1.2;
}

.learn-more-item-subtitle {
  color: #1f3fa8;
  font-size: calc(0.85rem * var(--learn-more-font-scale) * var(--learn-more-content-scale));
  line-height: 1.22;
}

.learn-more-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transform: translateY(-2px) rotate(0deg);
  transition: transform 320ms ease;
}

.learn-more-item-icon-image {
  width: calc(1.05rem * var(--learn-more-font-scale));
  height: auto;
  display: block;
}

.learn-more-item[aria-expanded="true"] .learn-more-item-icon {
  transform: translateY(-2px) rotate(-180deg);
}

@keyframes learn-more-entry-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes learn-more-answer-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  position: relative;
  isolation: isolate;
}

.problem-card {
  --problem-card-padding: 16px;
  --problem-card-padding-top: 16px;
  --problem-title-size: 1.3rem;
  --problem-title-line-height: 1.6rem;
  --problem-body-size: 0.9rem;
  --problem-body-line-height: 1.25rem;
  --problem-icon-circle-size: 40px;
  --problem-icon-size: 26px;
  --problem-icon-compact-size: 22px;
  --problem-icon-gauge-margin: 5px;
  --problem-header-spacing: 16px;
  background:
    radial-gradient(circle at 18% 10%, rgba(88, 123, 246, 0.05) 0%, rgba(88, 123, 246, 0) 38%),
    linear-gradient(180deg, var(--surface) 0%, var(--surface-strong) 100%);
  padding: var(--problem-card-padding);
  padding-top: var(--problem-card-padding-top);
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.problem-card:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 72, 72, 0.24);
  background:
    radial-gradient(circle at 14% 16%, rgba(85, 120, 246, 0.055) 0%, rgba(85, 120, 246, 0) 42%),
    radial-gradient(circle at 86% 82%, rgba(216, 72, 72, 0.05) 0%, rgba(216, 72, 72, 0) 44%),
    linear-gradient(130deg, rgba(85, 120, 246, 0.03) 0%, rgba(137, 106, 236, 0.022) 52%, rgba(216, 72, 72, 0.03) 100%),
    linear-gradient(180deg, #f4f6fc 0%, #f1f4fb 100%);
}

.problem-header {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  margin-bottom: var(--problem-header-spacing);
  gap: 10px;
}

.problem-header-left {
  flex: 1;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.problem-header-right {
  align-self: flex-start;
}

.problem-header h4 {
  font-size: var(--problem-title-size);
  line-height: var(--problem-title-line-height);
}

.problem-icon {
  width: var(--problem-icon-circle-size);
  height: var(--problem-icon-circle-size);
  border-radius: 50%;
  background: #e3e6ef;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 180ms ease, filter 180ms ease;
}

.problem-card:nth-child(1) .problem-icon { background: #dee4f3; }
.problem-card:nth-child(2) .problem-icon { background: #dde4f4; }
.problem-card:nth-child(3) .problem-icon { background: #dfe5f2; }
.problem-card:nth-child(4) .problem-icon { background: #dce3f2; }
.problem-card:nth-child(5) .problem-icon { background: #e0e6f3; }
.problem-card:nth-child(6) .problem-icon { background: #dbe2f1; }

.problem-icon-image {
  width: var(--problem-icon-size);
  height: var(--problem-icon-size);
}

.problem-icon-image--compact {
  width: var(--problem-icon-compact-size);
  height: var(--problem-icon-compact-size);
}

.problem-icon-image--gauge {
  margin-bottom: var(--problem-icon-gauge-margin);
}

.problem-card p {
  font-size: var(--problem-body-size);
  color: var(--blue-dark);
  line-height: 1.4rem;
}

.problem-card:hover .problem-icon {
  transform: none;
  filter: saturate(1.06);
}

.cta {
  background: linear-gradient(140deg, #4d68df 0%, #587bf6 56%, #6b8cff 100%);
  color: #fff;
  padding: 60px 0;
}

.cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  
  justify-items: center;
}

.cta-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cta-brand img {
  height: 25px;
  width: auto;
}

.cta-logo-word {
  margin-left: 0;
  color: #eef6ff;
font-size: 18px;
}

.cta-tagline {
  display: inline-block;
  margin-top: 1px;
  margin-bottom: 20px;
}

.cta .store-buttons {
  margin-top: 18px;
  gap: clamp(8px, 2vw, 18px);
  flex-wrap: nowrap;
  justify-content: center;
  width: 100%;
}

.cta .store-buttons-label {
  background: rgba(255, 255, 255, 0.96);
  color: #3554cf;
}

.cta .store-badge {
  height: 50px;
}

.store-badge-link {
  transition: transform 180ms ease;
}

.store-badge-link:hover {
  transform: translateY(-1px);
}

.footer-legal-links {

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 32px;
}


.footer-legal-link a {
  color: rgba(255, 255, 255, 0.92);
   font-size: 12px;
}

.footer-legal-link a:hover {
  color: #ffffff;
}

.legal-page {
  min-height: 100vh;
}

.legal-hero {
  padding: 40px 0 28px;
}

.legal-nav {
  margin-bottom: 52px;
}

.legal-nav-links {
  gap: 24px;
}

.legal-hero-copy {
  max-width: 700px;
}

.legal-hero-copy h1 {
  font-size: clamp(2.35rem, 4vw, 3.6rem);
  margin: 16px 0 12px;
}

.legal-hero-copy p {
  font-size: 1rem;
  color: var(--blue-dark);
}

.legal-main {
  padding: 0 0 96px;
}

.legal-card {
  --legal-section-space: clamp(22px, 3vw, 32px);
  --legal-stack-space: 16px;
  --legal-heading-space: 14px;
  --legal-list-indent: 22px;
  --legal-list-item-space: 8px;
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(67, 83, 165, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(88, 123, 246, 0.06) 0%, rgba(88, 123, 246, 0) 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 249, 255, 0.98) 100%);
  box-shadow: 0 24px 56px rgba(16, 24, 40, 0.08);
}

.legal-card > p,
.legal-section p,
.legal-section li,
.legal-closing {
  font-size: 1rem;
  line-height: 1.75;
  color: #4b5472;
}

.legal-card > p + p,
.legal-section p + p {
  margin-top: var(--legal-stack-space);
}

.legal-section {
  padding-top: var(--legal-section-space);
  margin-top: var(--legal-section-space);
  border-top: 1px solid rgba(206, 216, 245, 0.9);
}

.legal-section h2 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  margin-bottom: var(--legal-heading-space);
}

.legal-section > * + * {
  margin-top: var(--legal-stack-space);
}

.legal-section ul {
  padding-left: var(--legal-list-indent);
  margin: 0;
}

.legal-section li + li {
  margin-top: var(--legal-list-item-space);
}

.legal-closing {
  margin-top: calc(var(--legal-section-space) + 4px);
  font-weight: 600;
  color: #253055;
}

@media (max-width: 900px) {
  .matchmaker {
    padding: 94px 0 60px;
  }

  .problems {
    padding: 72px 0 106px;
   
  }

  .learn-more {
    padding-bottom: 96px;
  }

  .cta {
    padding: 50px 0;
  }

  .matchmaker-grid {
    grid-template-columns: 1fr;
  }

  .matchmaker-left {
    --matchmaker-step-offset: 0px;
  }

  .steps {
    width: min(96%, 720px);
  }

  .step-copy p {
    max-width: 30ch;
  }

  .divider {
    display: none;
    
  }

  .problem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .legal-nav {
    margin-bottom: 36px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-space-top: var(--section-space-mobile-top);
    --section-space-bottom-tight: var(--section-space-mobile-bottom-tight);
    --section-space-bottom: var(--section-space-mobile-bottom);
    --section-space-bottom-loose: var(--section-space-mobile-bottom-loose);
  }

  .matchmaker {
    padding-top: calc(var(--section-space-top) - 8px);
    padding-bottom: calc(var(--section-space-bottom-tight) - 3px);
  }

  .problems {
    padding-top: calc(var(--section-space-top) - 8px);
    padding-bottom: calc(var(--section-space-bottom) - 8px);
  }

  .section-heading h2 {
    font-size: 2.05rem;
  }

  .matchmaker .section-heading h2,
  .problems .section-heading h2 {
    font-size: clamp(1.78rem, 8vw, 1.92rem);
  }

  .matchmaker-mobile-subtext {
    display: block;
    color: var(--blue);
    font-size: 1.07rem;
    margin-top: 4px;
  }

  .matchmaker-left .info-block h3,
  .matchmaker-left .info-block .link {
    display: none;
  }

  .info-block h3 {
    font-size: 1.4rem;
    line-height: 1.68rem;
  }

  .link,
  a {
    font-size: 1.07rem;
  }

  .nav {
    position: relative;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 8px;
    background: transparent;
    transition: background-color 220ms ease;
    z-index: 0;
  }

  .nav.is-menu-open::before {
    content: "";
    position: absolute;
    top: -20px;
    bottom: 0;
    left: calc(50% - 50vw);
    right: calc(50% - 50vw);
    background: #fff;
    z-index: -1;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    width: 100%;
    padding: 0;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      max-height 280ms ease,
      opacity 220ms ease,
      transform 220ms ease,
      margin-top 280ms ease;
  }

  .nav-links a {
    opacity: 1;
    color: var(--blue);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
    padding: 12px 0;
  }

  .nav-links a + a {
    border-top: 1px solid #eeeeee;
  }

  .nav-links.is-open {
    margin-top: 8px;
    max-height: 240px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero {
    padding: 20px 0 52px;
  }

  .nav {
    margin-bottom: 44px;
  }

  .hero-copy h1 {
    font-size: clamp(2.1rem, 7.5vw, 2.65rem);
    margin: 5px 0 4px;
    min-height: calc(2 * 1.2em);
    height: calc(3 * 1.2em);
  }

  .hero .pill {
    font-size: 0.8rem;
    padding: 4px 11px;
  }


  .logo img {
    height: 22px;
  }

  .logo-word {
    font-size: 16px;
    margin-left: 6px;
  }

  .cta-brand {
    gap: 2px;
  }

  .cta-brand img {
    height: 20px;
  }

  .cta-logo-word {
    font-size: 15px;
  }

  .hero .store-buttons {
    margin-top: 8px;
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    gap: clamp(10px, 3.4vw, 18px);
    transform: translateY(-2px);
  }

  .cta .store-buttons {
    margin-top: 16px;
    width: 100%;
    justify-content: center;
    gap: clamp(10px, 2.2vw, 14px);
    opacity: 0.5;
  }

  .cta .store-badge-link {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    justify-content: center;
  }

  .cta .store-badge {
    max-width: min(150px, 100%);
    height: auto;
  }

  .footer-legal-links {
    margin-top: 14px;
    gap: 6px 16px;
  }

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

  .hero .store-badge-link {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    justify-content: center;
  }

  .hero .store-badge {  
    max-width: 156px;
    height: auto;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .matchmaker .section-heading {
    margin-bottom: 26px;
  }

  .problem-card {
    --problem-card-padding: 14px;
    --problem-card-padding-top: 7px;
    --problem-title-size: 1.24rem;
    
    --problem-body-size: 0.9rem;
    --problem-body-line-height: 1.25rem;
    --problem-icon-circle-size: 32px;
    --problem-icon-size: 21px;
    --problem-icon-compact-size: 18px;
    --problem-icon-gauge-margin: 3px;
    --problem-header-spacing: 1px;
  }

  .cta {
    padding: 40px 0;
  }


  .matchmaker-grid {
    gap: 16px;
  }

  .matchmaker-left,
  .matchmaker-right {
    min-width: 0;
  }

  .steps {
    margin-top: 5px;
    gap: 27px;
    padding-bottom: 28px;
    width: min(96%, 570px);
    margin-left: auto;
    margin-right: auto;
  }

  .problem-grid::before {
    display: none;
  }

  .step {
    column-gap: 17px;
  }

  .step-number {
    width: 34px;
    font-size: 1.16rem;
  }

  .step-copy h4 {
    font-size: 1.4rem;
    min-height: 34px;
  }

  .step-copy p {
    font-size: 0.96rem;
    margin-top: 4px;
    max-width: 29ch;
  }

  .matchmaker-right {
    padding-inline: 0;
  }

  .phone-carousel {
    width: 100%;
    transform: none;
    gap: 10px;
    margin-bottom: 10px;
  }

  .phone-frame {
    width: min(280px, calc(100vw - 72px));
    margin-inline: auto;
  }

  .carousel-controls {
    width: 100%;
    gap: 16px;
    flex-wrap: wrap;
  }
  .learn-more h2 {
    margin-bottom: 14px;
  }

  .learn-more-group h3 {
    font-size: calc(clamp(1.2rem, 5.8vw, 1.45rem) * var(--learn-more-font-scale));
    line-height: 1.2;
    margin-bottom: 10px;
  }

  .learn-more-secondary-wrap {
    margin-top: 20px;
  }

  .learn-more-secondary-toggle {
    font-size: 0.84rem;
    padding: 9px 12px;
  }

  .learn-more-group--secondary {
    margin-top: 14px;
  }

  .learn-more-item {
    padding: 10px 2px;
  }

  .learn-more-item-title {
    font-size: calc(1.05rem * var(--learn-more-font-scale) * var(--learn-more-content-scale));
  }

  .learn-more-item-subtitle {
    font-size: calc(0.83rem * var(--learn-more-font-scale) * var(--learn-more-content-scale));
  }

  .learn-more-answer {
    font-size: calc(0.88rem * var(--learn-more-font-scale) * var(--learn-more-content-scale));
    padding: 6px 2px 14px;
  }

  .learn-more-item-icon-image {
    width: calc(0.92rem * var(--learn-more-font-scale));
  }

  .hero-cards {
    position: relative;
    width: min(234px, 100%);
    aspect-ratio: 1 / 1.08;
    margin-inline: auto;
    margin-top: 60px;
    display: block;
    transform: translateX(8px);
  }

  .profile-card {
    width: min(190px, 64vw);
    position: absolute;
    top: 0;
    left: 50%;
    margin: 0;
    transform: translateX(-50%);
  }

  .hero-cards .profile-card:first-child {
    z-index: 2;
    transform: translateX(calc(-50% + 14px)) translateY(12px) rotate(2.5deg);
  }

  .profile-card.muted {
    z-index: 1;
    transform: translateX(calc(-50% - 40px)) translateY(-40px) rotate(-3deg);
    box-shadow: none;
  }

  .profile-card-gradient-overlay {
    display: none;
  }

  .container {
    padding: 0 6vw;
  }

  .problem-grid {
    grid-template-columns: 1fr;
  }

  .legal-hero {
    padding-top: 24px;
  }

  .legal-nav {
    gap: 20px;
    align-items: flex-start;
  }

  .legal-nav-links {
    width: auto;
    max-height: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    margin-top: 0;
    gap: 14px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .legal-nav-links a + a {
    border-top: 0;
  }

  .legal-main {
    padding-bottom: 72px;
  }
}

@media (max-width: 420px) {
  .hero-copy h1 {
    font-size: clamp(2.2rem, 8.4vw, 2.75rem);
    height: calc(3 * 1.2em);
  }

  .legal-hero-copy h1 {
    font-size: 2rem;
    margin: 12px 0 10px;
  }

  .legal-hero-copy p {
    font-size: 0.92rem;
  }

  .legal-card {
    --legal-section-space: 20px;
    --legal-stack-space: 12px;
    --legal-heading-space: 10px;
    --legal-list-indent: 18px;
    --legal-list-item-space: 6px;
    padding: 20px 18px;
  }

  .legal-card > p,
  .legal-section p,
  .legal-section li,
  .legal-closing {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .legal-section h2 {
    font-size: 1.2rem;
  }
}

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

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}
