:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef4fb;
  --line: #d7e0eb;
  --text: #14304a;
  --muted: #536b83;
  --primary: #1d3557;
  --primary-deep: #12263d;
  --accent: #c58b41;
  --accent-deep: #a46f30;
  --soft-gold: #f2e7d7;
  --shadow: 0 20px 60px rgba(16, 38, 61, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

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

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

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 18px;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

button,
.btn {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  max-width: 100%;
  margin: 0 auto;
}

main,
section,
.hero-grid > *,
.split-layout > *,
.dual-text > *,
.comparison-grid > *,
.score-layout > *,
.card-grid > *,
.life-stage-grid > *,
.feature-grid > * {
  min-width: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  overflow-x: clip;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(29, 53, 87, 0.1);
  backdrop-filter: blur(14px);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 82px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  font-weight: 700;
  color: var(--primary-deep);
  text-decoration: none;
}

.site-brand:hover,
.site-brand:focus-visible {
  text-decoration: none;
}

.site-brand img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.site-brand span {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
}

.site-brand small {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav a {
  padding: 0.8rem 0.95rem;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  background: var(--surface-soft);
}

.site-nav .nav-join {
  background: var(--accent);
  color: #ffffff;
}

.site-nav .nav-join:hover,
.site-nav .nav-join:focus-visible {
  background: var(--accent-deep);
}

.menu-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  padding: 0.85rem;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--primary);
  margin: 4px 0;
  border-radius: 999px;
}

.hero {
  padding: 5.2rem 0 3rem;
}

.hero-compact {
  padding-top: 4.4rem;
}

.hero-grid,
.split-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero-grid {
  position: relative;
  grid-template-columns: 1fr;
  min-height: clamp(480px, 70vh, 720px);
  padding: 2rem;
  overflow: hidden;
  border-radius: 32px;
  background-color: #24415d;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.hero-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 28, 44, 0.46), rgba(14, 28, 44, 0.58)),
    linear-gradient(90deg, rgba(17, 34, 53, 0.54), rgba(17, 34, 53, 0.36));
}

.hero-home .hero-grid {
  background-image: url("images/over50dating.jpg");
}

.hero-review .hero-grid {
  background-image: url("images/hero.jpg");
}

.hero-app .hero-grid {
  background-image: url("images/app.jpg");
}

.hero-guide .hero-grid {
  background-image: url("images/seniorlove.jpg");
}

.hero-copy,
.hero-media,
.media-card,
.side-panel,
.score-box,
.score-list,
.callout,
.sample-box,
.toc {
  background: var(--surface);
  border: 1px solid rgba(29, 53, 87, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-media,
.media-card,
.side-panel,
.score-box,
.score-list,
.callout,
.sample-box {
  padding: 1.55rem;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 2.35rem;
  text-align: center;
  color: #ffffff;
  background: rgba(12, 24, 39, 0.2);
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(2px);
}

.hero-media img,
.media-card img {
  width: 100%;
  object-fit: cover;
}

.hero-media {
  display: none;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--soft-gold);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.3rem, 4.8vw, 4rem);
}

h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
}

h3 {
  font-size: 1.18rem;
}

p,
ul {
  margin-top: 0;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
}

.hero-copy .lead {
  color: rgba(255, 255, 255, 0.9);
}

.section {
  padding: 1.4rem 0 3.4rem;
}

.section-soft {
  background: linear-gradient(180deg, rgba(238, 244, 251, 0.72), rgba(246, 248, 251, 0));
}

.section-heading {
  max-width: 820px;
  margin-bottom: 1.5rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.hero-copy .button-row {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.9rem 1.3rem;
  max-width: 100%;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--primary-deep);
}

.btn-secondary {
  background: #ffffff;
  color: var(--primary);
  border-color: var(--line);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--surface-soft);
}

.btn-accent {
  background: var(--accent);
  color: #ffffff;
}

.btn-accent:hover,
.btn-accent:focus-visible {
  background: var(--accent-deep);
}

.btn-ghost {
  background: rgba(29, 53, 87, 0.06);
  color: var(--primary);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(29, 53, 87, 0.14);
}

.hero-copy .btn-secondary {
  background: rgba(255, 255, 255, 0.92);
}

.hero-copy .btn-ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

.hero-copy .btn-ghost:hover,
.hero-copy .btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.24);
}

.toc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem 1rem;
  padding: 1.5rem;
}

.toc h2 {
  grid-column: 1 / -1;
  margin-bottom: 0.2rem;
  font-size: 1.2rem;
}

.toc a {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: var(--surface-soft);
  font-weight: 700;
}

.toc a:hover,
.toc a:focus-visible {
  background: #dfeaf8;
}

.toc-review {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
  padding: 1.3rem;
}

.toc-review-header {
  grid-column: 1 / -1;
  margin-bottom: 0.1rem;
}

.toc-review-header h2 {
  margin-bottom: 0.3rem;
  font-size: clamp(1.15rem, 1.9vw, 1.6rem);
  color: var(--primary-deep);
}

.toc-review-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.toc-review-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  min-width: 0;
  min-height: 56px;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(29, 53, 87, 0.12);
  border-radius: 999px;
  background: #fbfcfe;
  box-shadow: 0 6px 18px rgba(16, 38, 61, 0.05);
  color: var(--primary-deep);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.toc-review-item:hover,
.toc-review-item:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(29, 53, 87, 0.24);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(16, 38, 61, 0.08);
  text-decoration: none;
}

.toc-review-number {
  flex: 0 0 auto;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1;
}

.toc-review-text {
  min-width: 0;
}

.toc-review-text strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.15;
  font-weight: 800;
  color: var(--primary-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toc-review-text small {
  display: none;
}

.anchor-offset {
  position: relative;
  top: -110px;
  height: 0;
  visibility: hidden;
}

.dual-text,
.comparison-grid,
.score-layout,
.life-stage-grid,
.footer-grid,
.card-grid,
.feature-grid {
  display: grid;
  gap: 1.2rem;
}

.dual-text {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.comparison-grid,
.score-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.life-stage-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.info-card,
.feature-card {
  background: var(--surface);
  border: 1px solid rgba(29, 53, 87, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}

.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.persona-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(29, 53, 87, 0.08);
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.persona-card:hover,
.persona-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(29, 53, 87, 0.18);
  box-shadow: 0 22px 44px rgba(16, 38, 61, 0.12);
}

.persona-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0;
}

.persona-body {
  padding: 1.35rem 1.35rem 1.5rem;
}

.persona-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  background: #eef4fb;
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.persona-body h3 {
  margin-bottom: 0.7rem;
  font-size: 1.35rem;
  line-height: 1.25;
}

.persona-body p {
  margin: 0;
  color: var(--muted);
}

.persona-card-caution {
  background: linear-gradient(180deg, #ffffff, #f7f9fc);
}

.persona-card-caution .persona-tag {
  background: #f4e7d7;
}

.feature-card svg {
  width: 40px;
  height: 40px;
  margin-bottom: 0.9rem;
  fill: var(--accent);
}

.score-box {
  display: grid;
  align-content: start;
  gap: 0.5rem;
}

.score-box strong {
  font-size: clamp(2.8rem, 5vw, 4rem);
  line-height: 1;
  color: var(--accent-deep);
}

.score-box span {
  font-size: 1.1rem;
  font-weight: 800;
}

.score-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.score-list div:last-child {
  border-bottom: 0;
}

.section-note {
  margin-top: 1rem;
  color: var(--muted);
}

.check-list,
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.75rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.52rem;
  left: 0;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: var(--accent);
}

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border: 1px solid rgba(29, 53, 87, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 1rem 1.1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  background: #f7f9fc;
  color: var(--primary-deep);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.sample-box {
  margin-top: 1.5rem;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid rgba(29, 53, 87, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.35rem;
  border: 0;
  background: #ffffff;
  color: var(--primary-deep);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent-deep);
}

.faq-item.is-open .faq-question::after {
  content: "-";
}

.faq-answer {
  display: none;
  padding: 0 1.35rem 1.25rem;
  color: var(--muted);
}

.faq-item.is-open .faq-answer {
  display: block;
}

.site-footer {
  padding: 3.4rem 0 2rem;
  background: var(--primary-deep);
  color: #dfe8f5;
}

.footer-grid {
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-title {
  font-size: 1.1rem;
  color: #ffffff;
}

.footer-text,
.footer-bottom {
  color: #d1deef;
}

.footer-links li + li {
  margin-top: 0.65rem;
}

.footer-links a {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-disclaimer,
.footer-meta {
  margin-bottom: 0.7rem;
}

@media (max-width: 1024px) {
  .toc-review {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .life-stage-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .toc-review {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.6rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.85rem;
    background: #ffffff;
    border: 1px solid rgba(29, 53, 87, 0.08);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    text-align: center;
  }

  .hero-grid,
  .split-layout,
  .dual-text,
  .comparison-grid,
  .score-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 17px;
  }

  .hero {
    padding-top: 4.2rem;
  }

  .hero-grid {
    min-height: 520px;
    padding: 1rem;
    border-radius: 24px;
    background-position: center;
  }

  .hero-copy {
    padding: 1.4rem;
  }

  .header-wrap {
    gap: 0.75rem;
  }

  .site-brand {
    flex: 1;
  }

  .site-brand strong {
    display: block;
    overflow-wrap: anywhere;
  }

  .card-grid,
  .life-stage-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

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

  .btn {
    width: 100%;
  }

  .site-brand small {
    display: none;
  }

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

  .toc-review {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 1.2rem;
  }

  .toc-review-item {
    min-height: 54px;
  }

  .toc-review-text strong {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}

@media (max-width: 520px) {
  .toc-review {
    grid-template-columns: 1fr;
  }
}
