/* Dating Over 70: "Citrus Fresh" house brief. Comfortaa 700 + Noto Sans 400/600, self-hosted.
   Hero: portrait-beside-headline (oversized headline left, tall leaf-cornered portrait right,
   interlinked rings overlapping its corner). Header: solid olive bar.
   Signature detail: a highlighter-style citrus underline behind one key word in each H2 (CSS only).
   Pill corners on buttons and labels; cards on the surface colour. */

@font-face {
  font-family: 'Comfortaa';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/comfortaa-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/noto-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/noto-sans-latin-600-normal.woff2') format('woff2');
}

:root {
  --bg: #fbfdf3;
  --surface: #ffffff;
  --ink: #1f1c1a;
  --muted: #57504a;
  --join: #db7800;
  --join-hover: #c96d00;
  --join-text: #14100e;
  --link: #8a4b00;
  --tint: #eef5d6;
  --line: #dfe6c4;
  --peel: #ffe7c4;
  --highlight: #ffcf8a;
  --olive: #24300e;
  --on-olive: #f7fbe8;
  --on-olive-soft: #e3ebcb;
  --on-olive-link: #ffc46b;
  --radius: 24px;
  --radius-sm: 14px;
  --pill: 999px;
  --font-head: 'Comfortaa', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Noto Sans', 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.1875rem;
  line-height: 1.72;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
p { margin: 0 0 1.1em; }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }

.skip-link {
  position: absolute; left: 12px; top: -70px; z-index: 200;
  background: var(--surface); color: var(--ink); padding: 12px 18px; text-decoration: none;
  border-radius: var(--pill); font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons: pill shapes; Join Now is the strongest colour on every page ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 1.7rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.2;
  text-decoration: none; border: 0; border-radius: var(--pill); cursor: pointer;
  white-space: nowrap; max-width: 100%;
}
.btn-primary { background: var(--join); color: var(--join-text); box-shadow: 0 6px 0 rgba(36, 48, 14, 0.9); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--join-hover); color: var(--join-text); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--tint); }
.btn-sm { min-height: 48px; padding: 0 1.25rem; font-size: 0.98rem; box-shadow: none; }
.btn-lg { min-height: 58px; padding: 0 2.4rem; font-size: 1.14rem; }

/* ---------- Header: solid olive bar ---------- */
.site-header { position: relative; z-index: 50; background: var(--olive); color: var(--on-olive); }
.site-header :focus-visible, .footer :focus-visible, .cookie :focus-visible { outline-color: var(--on-olive-link); }
.header-inner { display: flex; align-items: center; gap: 0 18px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; color: var(--on-olive); text-decoration: none; flex: 0 0 auto; }
.brand-logo { width: 176px; height: auto; }
.mainnav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.mainnav a {
  color: var(--on-olive); text-decoration: none; font-weight: 600; font-size: 1.02rem;
  min-height: 48px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: var(--pill);
}
.mainnav a:hover { background: rgba(255, 255, 255, 0.1); }
.mainnav a.active { box-shadow: inset 0 -3px 0 var(--join); border-radius: 0; }
.mainnav a.login-link { margin-left: 8px; box-shadow: inset 0 0 0 2px var(--on-olive); padding: 0 20px; border-radius: var(--pill); }
.mainnav a.login-link:hover { background: rgba(255, 255, 255, 0.1); }
.header-cta { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.menu-toggle {
  display: none; width: 48px; height: 48px; padding: 0;
  background: transparent; border: 2px solid var(--on-olive); border-radius: var(--pill); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--on-olive); border-radius: 2px; }

/* ---------- Hero: oversized headline beside a tall leaf-cornered portrait ---------- */
.hero {
  background:
    radial-gradient(circle at 84% 46%, var(--peel) 0, var(--peel) 26%, rgba(255, 231, 196, 0) 26.2%),
    linear-gradient(180deg, var(--tint) 0, var(--bg) 78%);
  padding: 48px 0 64px;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.hero-copy { position: relative; }
.hero-copy::before {
  content: ""; display: block; width: 72px; height: 12px; border-radius: var(--pill);
  background: var(--join); margin-bottom: 26px;
}
.hero-heading {
  font-family: var(--font-head); font-weight: 700; color: var(--ink);
  font-size: clamp(2.7rem, 5vw, 4.4rem); line-height: 1.1; letter-spacing: -0.01em;
  margin: 0 0 24px; max-width: 12ch;
}
.hero-strapline { color: var(--muted); font-size: 1.22rem; line-height: 1.6; margin: 0 0 30px; max-width: 32rem; }
.hero-portrait { position: relative; height: clamp(440px, 68vh, 620px); }
.hero-frame {
  position: absolute; inset: 0; overflow: hidden;
  border-radius: 40px 180px 40px 40px;
  background: #e8dcc2;
  box-shadow: 0 0 0 10px var(--surface), 0 28px 56px rgba(36, 48, 14, 0.2);
}
.hero-frame picture, .hero-frame img { width: 100%; height: 100%; }
.hero-frame img { object-fit: cover; object-position: center; }
.hero-rings {
  position: absolute; z-index: 2; left: -54px; bottom: -30px; width: 132px; height: auto;
  background: var(--surface); border-radius: var(--pill); padding: 10px 12px;
  box-shadow: 0 10px 24px rgba(36, 48, 14, 0.16);
}

/* ---------- Content sections and bands ---------- */
.section { padding: 3.6rem 0 1.6rem; }
.section + .section { padding-top: 1rem; }
.section--first { padding-top: 3.8rem; }
.prose { max-width: 46rem; }
.prose > :last-child { margin-bottom: 0; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.7em; max-width: 24ch; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.32; margin: 2.2em 0 0.6em; }
.prose > h2:first-child, .band h2:first-child, .band-intro > h2:first-child { margin-top: 0; }
.lead { font-size: 1.24rem; line-height: 1.72; }

/* Signature: highlighter-style underline behind one key word in each H2 */
.hl {
  background-image: linear-gradient(transparent 56%, var(--highlight) 56%, var(--highlight) 90%, transparent 90%);
  padding: 0 0.14em; margin: 0 -0.06em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.seo-content a:not(.btn) {
  color: var(--link); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
  text-decoration-color: var(--join);
}
.seo-content a:not(.btn):hover { color: var(--ink); }

.band { position: relative; padding: 4.2rem 0; margin: 3rem 0; }
.band-intro { max-width: 46rem; }
.band-intro > :last-child { margin-bottom: 0; }

/* Split text-and-image band (decorative illustration, aria-hidden) */
.band--split { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px; align-items: center; }
.split-art svg { width: 100%; max-width: 340px; height: auto; margin: 0 auto; }
.band--split-rev .split { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.band--split-rev .split-art { order: -1; }

/* Tinted highlight band: heading left, copy card right */
.band--tint { background: var(--tint); }
.highlight { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.highlight-head h2 { margin-top: 0; }
.highlight-body { background: var(--surface); border-radius: var(--radius); padding: 32px 34px 30px; box-shadow: 0 12px 28px rgba(36, 48, 14, 0.07); }
.highlight-body > :last-child { margin-bottom: 0; }

/* Comparison tables */
.table-wrap {
  margin: 2rem 0 0; background: var(--surface);
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(36, 48, 14, 0.07);
}
.table-wrap--narrow { max-width: 54rem; }
.compare { width: 100%; border-collapse: collapse; font-size: 1.02rem; line-height: 1.55; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 16px 20px; }
.compare thead th { background: var(--olive); color: var(--on-olive); font-family: var(--font-head); font-weight: 700; font-size: 0.98rem; }
.compare tbody tr { border-top: 1px solid var(--line); }
.compare tbody tr:nth-child(even) { background: #f7faea; }
.compare tbody th { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.compare--history tbody th { width: 17%; white-space: nowrap; }
.compare--history td.opener { font-weight: 600; color: var(--link); }
.compare--two tbody th { width: 34%; }
.after-table { margin-top: 1.8rem; }
.punchline { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; line-height: 1.45; }

/* Checklist: tick cards on the surface colour */
.checklist {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.checklist li {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px 20px 70px; line-height: 1.62;
}
.checklist li::before {
  content: ""; position: absolute; left: 20px; top: 22px; width: 34px; height: 34px;
  border-radius: 50%; background: var(--join);
}
.checklist li::after {
  content: ""; position: absolute; left: 32px; top: 28px; width: 9px; height: 16px;
  border: solid var(--join-text); border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.checklist strong { display: block; font-family: var(--font-head); font-weight: 700; margin-bottom: 4px; }

/* Numbered how-it-works cards (separate cards, no connecting line) */
.steps {
  list-style: none; counter-reset: step; margin: 2rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
}
.step-card {
  counter-increment: step; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 24px 96px; line-height: 1.62; min-height: 120px;
}
.step-card::before {
  content: counter(step); position: absolute; left: 24px; top: 24px;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--join); color: var(--join-text);
  font-family: var(--font-head); font-weight: 700; font-size: 1.5rem;
}
.step-card strong { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; margin-bottom: 6px; }

/* Note panels (page 2): framed paragraphs with a citrus edge */
.note-panel {
  margin: 1.6rem 0 1.6rem; background: var(--surface);
  border: 1px solid var(--line); border-left: 8px solid var(--join);
  border-radius: var(--radius-sm) var(--radius) var(--radius) var(--radius-sm);
  padding: 22px 26px; font-size: 1.22rem; line-height: 1.62;
  box-shadow: 0 10px 24px rgba(36, 48, 14, 0.06);
}
.note-panel > :last-child { margin-bottom: 0; }
.note-panel--olive { border-left-color: var(--olive); }

/* Final Join band: olive band, white card */
.band--join { margin-bottom: 0; padding: 4.6rem 0 4.8rem; background: var(--olive); }
.join-card {
  max-width: 52rem; margin: 0 auto; text-align: center;
  background: var(--surface); border-radius: 36px;
  padding: 46px 44px 44px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}
.join-card p { font-size: 1.16rem; }
.join-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 16px; margin-top: 1.4rem; }

/* 404 */
.notfound { padding: 4.5rem 0 4rem; }

/* ---------- Footer ---------- */
.footer { background: var(--olive); color: var(--on-olive-soft); padding: 3.2rem 0 2rem; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-title { font-family: var(--font-head); font-weight: 700; color: var(--on-olive); font-size: 1.05rem; margin: 0 0 0.7em; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 0; }
.footer a { color: var(--on-olive-link); text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
.footer a:hover { color: var(--on-olive); }
.footer .brand { text-decoration: none; color: var(--on-olive); }
.footer-brand .brand-logo { width: 184px; }
.footer-bottom { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(247, 251, 232, 0.2); font-size: 0.95rem; }

/* ---------- Cookie banner ---------- */
.cookie {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  background: var(--olive); color: var(--on-olive);
  border-top: 4px solid var(--join);
  box-shadow: 0 -6px 20px rgba(36, 48, 14, 0.25);
}
.cookie.show { display: block; }
.cookie-inner {
  max-width: 1180px; margin: 0 auto; padding: 12px 28px;
  display: flex; align-items: center; justify-content: center; gap: 18px;
  font-size: 1rem; line-height: 1.4;
}
.cookie-inner a { color: var(--on-olive-link); text-decoration: underline; }
.cookie-accept {
  flex: 0 0 auto; min-height: 44px; padding: 0 22px;
  background: var(--join); color: var(--join-text); border: 0; border-radius: var(--pill);
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; cursor: pointer;
}
.cookie-accept:hover { background: var(--join-hover); }

/* ---------- Tablet ---------- */
@media (max-width: 1023.98px) {
  .hero-grid { gap: 48px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-portrait { height: 460px; }
  .hero-rings { left: -36px; width: 108px; }
  .mainnav a { padding: 0 10px; font-size: 0.98rem; }
  .highlight { grid-template-columns: 1fr; gap: 8px; }
  .split, .band--split-rev .split { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 40px; }
  .band--split-rev .split { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
}

/* ---------- Phones: one-row header + in-flow accordion; hero sized by svh ---------- */
@media (max-width: 767.98px) {
  body { font-size: 1.125rem; }
  .container { padding: 0 16px; }

  .header-inner { flex-wrap: wrap; gap: 0 10px; padding-top: 8px; padding-bottom: 8px; }
  .brand { order: 1; }
  .brand img, .brand svg, .brand .brand-logo { width: clamp(110px, 33vw, 240px); }
  .header-cta { order: 2; margin-left: auto; gap: 8px; }
  .menu-toggle { display: inline-flex; }
  .btn-sm { padding: 0 1rem; font-size: 0.95rem; }
  .mainnav {
    order: 3; width: 100%; display: none; margin: 8px 0 4px;
    border-top: 1px solid rgba(247, 251, 232, 0.25);
  }
  .mainnav.open { display: block; }
  .mainnav a {
    display: flex; padding: 0 6px; border-radius: 0; border-bottom: 1px solid rgba(247, 251, 232, 0.18); font-size: 1.08rem;
  }
  .mainnav a.active { box-shadow: inset 4px 0 0 var(--join); padding-left: 16px; }
  .mainnav a.login-link { margin: 0; box-shadow: none; padding: 0 6px; border-radius: 0; }

  /* header about 64px, cookie banner allowance 64px; portrait above, copy pinned to the bottom */
  .hero {
    padding: 12px 0 14px;
    height: calc(100vh - 64px - 64px);
    height: calc(100svh - 64px - 64px);
    min-height: 470px;
    background: linear-gradient(180deg, var(--tint) 0, var(--bg) 70%);
  }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; height: 100%; }
  .hero-portrait { order: 1; flex: 1 1 auto; height: auto; min-height: 120px; }
  .hero-frame { border-radius: 24px 96px 24px 24px; box-shadow: 0 0 0 5px var(--surface), 0 12px 26px rgba(36, 48, 14, 0.16); }
  .hero-rings { display: none; }
  .hero-copy { order: 2; flex: 0 0 auto; padding-top: 16px; }
  .hero-copy::before { display: none; }
  .hero-heading { font-size: clamp(1.7rem, 7.6vw, 2rem); line-height: 1.16; margin-bottom: 8px; max-width: none; }
  .hero-strapline { font-size: 1.02rem; line-height: 1.45; margin-bottom: 14px; }
  .hero-btn { width: 100%; min-height: 52px; box-shadow: 0 4px 0 rgba(36, 48, 14, 0.9); }

  .section { padding: 2.6rem 0 0.8rem; }
  .section--first { padding-top: 2.6rem; }
  .band { padding: 3rem 0; margin: 2.2rem 0; }
  .band--join { margin-bottom: 0; }
  .lead { font-size: 1.16rem; }
  .highlight-body { padding: 24px 20px 22px; }
  .join-card { padding: 34px 20px 32px; border-radius: 28px; }
  .join-actions .btn { width: 100%; }

  .split, .band--split-rev .split { grid-template-columns: 1fr; gap: 28px; }
  .band--split-rev .split-art { order: 0; }
  .split-art svg { max-width: 210px; }

  .checklist, .steps { grid-template-columns: 1fr; }
  .checklist li { padding: 18px 18px 18px 64px; }
  .checklist li::before { left: 16px; }
  .checklist li::after { left: 28px; }
  .step-card { padding: 22px 20px 22px 86px; min-height: 0; }
  .step-card::before { left: 18px; top: 22px; width: 50px; height: 50px; }
  .note-panel { padding: 20px 18px; font-size: 1.14rem; }

  /* Stacked tables: each row becomes a card, labels from the table's own header text */
  .table-wrap { border: 0; background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100% !important; }
  .compare tbody tr { background: var(--surface) !important; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; padding: 6px 0 14px; }
  .compare tbody th { font-size: 1.12rem; padding: 14px 18px 4px; white-space: normal !important; color: var(--link); }
  .compare td { padding: 6px 18px; }
  .compare td::before {
    content: attr(data-label); display: block;
    font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
  }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-brand { grid-column: 1 / -1; }

  .cookie-inner { padding: 8px 12px; gap: 10px; font-size: 0.92rem; justify-content: space-between; }
  .cookie-text { white-space: nowrap; }
  .cookie-more { display: none; }
  .cookie-accept { min-height: 40px; padding: 0 16px; font-size: 0.92rem; }
}

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

/* hero focus (bulk runner v15) */
@media (min-width: 768px) {
  picture img { object-position: 66% 21% !important; }
}
@media (max-width: 767px) {
  picture img { object-position: 50% 50% !important; }
}
