/* Date Mature Singles: Teal Harbour. Merriweather headings, PT Sans body.
   Signature: double hairline dividers between sections. Sharp corners throughout. */

@font-face {
  font-family: "Merriweather";
  src: url("/fonts/merriweather-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "PT Sans";
  src: url("/fonts/pt-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "PT Sans";
  src: url("/fonts/pt-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --bg: #f2fafa;
  --surface: #ffffff;
  --ink: #1f1c1a;
  --muted: #57504a;
  --teal: #0f7c80;
  --teal-deep: #0b6164;
  --hair: #8fbfc1;
  --line: #cfe3e3;
  --tint: #e0f0f0;
  --harbour: #0b4a4d;
  --footer: #12302f;
  --on-ink: #eef7f7;
  --on-ink-muted: #d3e8e8;
  --on-ink-accent: #9fe0e2;
  --font-head: "Merriweather", Georgia, "Times New Roman", serif;
  --font-body: "PT Sans", "Segoe UI", Arial, sans-serif;
  --dbl: 4px double var(--hair);
  --hdr-m: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 1.125rem; line-height: 1.65;
}
img { max-width: 100%; display: block; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 400; }
.skip-link:focus { left: 12px; top: 12px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 3.3vw, 2.6rem); line-height: 1.24; letter-spacing: -0.005em; margin: 0 0 0.6em; }
h2 { font-size: clamp(1.45rem, 2.3vw, 1.9rem); line-height: 1.28; margin: 2.2em 0 0.55em; }
p { margin: 0 0 1.05em; }
.prose { max-width: 46rem; }
.prose > h2:first-child { margin-top: 0; }
.lead { font-size: 1.24rem; line-height: 1.6; }

/* In-content links: scoped so buttons keep their own colours */
.seo-content a:not(.btn) {
  color: var(--teal-deep); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.seo-content a:not(.btn):hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* ---------- Buttons: sharp corners ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.4rem; border-radius: 0;
  font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; line-height: 1.1;
  text-decoration: none; white-space: nowrap; max-width: 100%; cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--teal); color: #ffffff; border-color: var(--teal); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--teal-deep); border-color: var(--teal-deep); color: #ffffff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--ink); color: #ffffff; }
.btn-sm { min-height: 44px; padding: 0 1rem; font-size: 1rem; }
.btn-lg { min-height: 54px; padding: 0 2rem; font-size: 1.12rem; }

/* ---------- Header: minimal bar, logo left, Log In and Join Now right ---------- */
.site-header {
  position: relative; z-index: 50;
  background: var(--surface);
  border-bottom: var(--dbl);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; flex: 0 0 auto; }
.brand-logo { width: 196px; height: auto; }
.mainnav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.mainnav a {
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.02rem;
  padding: 10px 12px; border-bottom: 2px solid transparent;
}
.mainnav a:hover { color: var(--teal-deep); }
.mainnav a.active { border-bottom-color: var(--teal); }
.mainnav a.login-link--menu { display: none; }
.header-cta { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.login-link--bar {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem;
  color: var(--ink); font-weight: 700; text-decoration: none; border: 2px solid var(--ink);
}
.login-link--bar:hover { background: var(--ink); color: #ffffff; }
.menu-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  background: var(--surface); border: 2px solid var(--ink); border-radius: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); }

/* ---------- Hero: photo band across the top, copy in a card below ---------- */
.hero { position: relative; background: var(--bg); }
.hero-media {
  position: relative; overflow: hidden; background: #cfe3e3;
  height: clamp(340px, 54vh, 620px);
}
.hero-media picture, .hero-media img { width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: center; }
.hero-card-wrap { position: relative; margin-top: -72px; }
.hero-card {
  position: relative; max-width: 660px;
  background: var(--surface);
  border: 1px solid var(--hair);
  box-shadow: inset 0 0 0 5px var(--surface), inset 0 0 0 6px var(--hair), 0 16px 36px rgba(11, 74, 77, 0.12);
  padding: 34px 40px 36px;
}
.hero-heading {
  font-family: var(--font-head); font-weight: 700; color: var(--ink);
  font-size: clamp(2rem, 3.1vw, 2.6rem); line-height: 1.2; margin: 0 0 14px;
}
.hero-strapline { color: var(--muted); font-size: 1.15rem; line-height: 1.55; margin: 0 0 22px; }

/* ---------- Sections and the double hairline signature ---------- */
.section { padding: 3.4rem 0 1.4rem; }
.section--first { padding-top: 4rem; }
.section + .section > .container::before {
  content: ""; display: block; border-top: var(--dbl); margin-bottom: 3rem;
}
.band { padding: 3.6rem 0; margin: 2.4rem 0; border-top: var(--dbl); border-bottom: var(--dbl); }
.band--tint { background: var(--tint); }
.band--join { background: var(--bg); border: 0; margin-bottom: 0; padding-bottom: 4.4rem; }

/* Pull-quote band */
.band--quote { background: var(--harbour); border-color: #5fa3a6; }
.pullquote { margin: 0 auto; max-width: 44rem; padding: 1.6rem 0; text-align: center;
  border-top: 4px double #7fbcbe; border-bottom: 4px double #7fbcbe; }
.pullquote p { margin: 0; font-family: var(--font-head); font-weight: 700; color: #ffffff;
  font-size: clamp(1.3rem, 2.3vw, 1.75rem); line-height: 1.45; }

/* Glossary (centrepiece) */
.dictionary { margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dictionary .term {
  background: var(--surface); border: 1px solid var(--line); border-top: 4px double var(--teal);
  padding: 20px 22px 22px;
}
.dictionary dt { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--teal-deep); margin: 0 0 8px; }
.dictionary dd { margin: 0; font-size: 1.05rem; line-height: 1.6; }

/* Numbered how-it-works cards (separate boxes, no connecting line) */
.steps { list-style: none; counter-reset: step; margin: 1.8rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.steps li {
  counter-increment: step; position: relative;
  background: var(--surface); border: 1px solid var(--line);
  padding: 22px 24px 24px 84px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 22px; top: 20px;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--teal-deep);
  border: 4px double var(--teal);
}
.steps strong { display: block; font-family: var(--font-head); font-size: 1.12rem; margin-bottom: 4px; }

/* Comparison table */
.table-wrap { margin: 1.8rem 0 2rem; max-width: 52rem; background: var(--surface); border: 1px solid var(--line); overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.compare thead th, .compare thead td { background: var(--teal-deep); color: #ffffff; text-align: left;
  font-family: var(--font-head); font-weight: 700; padding: 14px 18px; border-bottom: 4px double #ffffff; }
.compare tbody th { text-align: left; font-weight: 700; padding: 14px 18px; vertical-align: top; width: 32%; }
.compare td { padding: 14px 18px; vertical-align: top; }
.compare tbody tr + tr { border-top: 1px solid var(--line); }
.compare tbody tr:nth-child(even) { background: var(--bg); }

/* Checklist */
.checklist { list-style: none; margin: 1.6rem 0 1rem; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 18px; max-width: 60rem; }
.checklist li { position: relative; background: var(--surface); border: 1px solid var(--line);
  padding: 14px 18px 14px 54px; line-height: 1.5; }
.checklist li::before {
  content: ""; position: absolute; left: 18px; top: 17px; width: 20px; height: 20px;
  border: 4px double var(--teal);
}
.checklist li::after {
  content: ""; position: absolute; left: 25px; top: 20px; width: 6px; height: 11px;
  border: solid var(--teal-deep); border-width: 0 3px 3px 0; transform: rotate(45deg);
}

/* Final Join Now band */
.join-card {
  max-width: 50rem; margin: 0 auto; text-align: center;
  background: var(--surface); border: 6px double var(--teal);
  padding: 2.6rem 2.4rem 2.8rem;
}
.join-card h2 { margin-top: 0; }
.join-card p { max-width: 38rem; margin-left: auto; margin-right: auto; }
.join-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 1.4rem; }

/* 404 */
.notfound { padding-bottom: 4rem; }

/* ---------- Footer ---------- */
.footer { background: var(--footer); color: var(--on-ink); padding: 3rem 0 2rem; border-top: 4px double var(--hair); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer .brand { color: var(--on-ink); --logo-accent: var(--on-ink-accent); text-decoration: none; padding: 0; }
.footer .brand-logo circle, .footer .brand-logo path { stroke: var(--on-ink-accent); }
.footer .brand-logo circle + circle { stroke: var(--on-ink); }
.footer-title { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; margin: 0 0 10px; color: #ffffff; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer a { color: var(--on-ink-muted); text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 6px 0; }
.footer a:hover { color: #ffffff; }
.footer .brand { text-decoration: none; }
.footer-bottom { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid rgba(238, 247, 247, 0.2); font-size: 0.95rem; color: var(--on-ink-muted); }

/* ---------- Cookie banner ---------- */
.cookie {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  background: var(--ink); color: #ffffff;
  border-top: 4px double var(--hair);
}
.cookie.show { display: block; }
.cookie-inner {
  max-width: 1160px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  font-size: 1rem; line-height: 1.4;
}
.cookie-inner a { color: var(--on-ink-accent); text-decoration: underline; }
.cookie-accept {
  flex: 0 0 auto; min-height: 44px; padding: 0 20px;
  background: var(--teal); color: #ffffff; border: 0; border-radius: 0;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; cursor: pointer;
}
.cookie-accept:hover { background: var(--teal-deep); }

/* ---------- Tablet / small desktop: in-flow accordion nav ---------- */
@media (max-width: 999.98px) {
  .dictionary { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 899.98px) {
  .header-inner { flex-wrap: wrap; gap: 0 10px; min-height: 0; padding-top: 8px; padding-bottom: 8px; }
  .brand { order: 1; }
  .brand svg, .brand-logo, .brand img { width: clamp(110px, 33vw, 240px); }
  .header-cta { order: 2; margin-left: auto; }
  .login-link--bar { display: none; }
  .menu-toggle { display: inline-flex; }
  .mainnav { order: 3; width: 100%; display: none; margin: 8px 0 0; border-top: var(--dbl); }
  .mainnav.open { display: block; }
  .mainnav a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .mainnav a.active { border-bottom: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--teal); padding-left: 14px; }
  .mainnav a.login-link--menu { display: block; }
}

/* ---------- Phones: hero sized by svh, button pinned to the bottom ---------- */
@media (max-width: 767.98px) {
  body { font-size: 1.125rem; }
  .container { padding: 0 16px; }
  .header-inner { min-height: 60px; }
  .btn-sm { min-height: 44px; padding: 0 0.85rem; font-size: 0.98rem; }

  .hero {
    display: flex; flex-direction: column;
    height: calc(100vh - var(--hdr-m) - 76px);
    height: calc(100svh - var(--hdr-m) - 76px);
    min-height: 430px;
  }
  .hero-media { flex: 1 1 auto; min-height: 110px; height: auto; }
  .hero-card-wrap { flex: 0 0 auto; margin-top: -18px; }
  .hero-card { max-width: none; padding: 16px 16px 16px;
    box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 5px var(--hair), 0 8px 22px rgba(11, 74, 77, 0.12); }
  .hero-heading { font-size: clamp(1.5rem, 6.6vw, 1.9rem); line-height: 1.18; margin-bottom: 8px; }
  .hero-strapline { font-size: 1rem; line-height: 1.45; margin-bottom: 12px; }
  .hero-btn { width: 100%; min-height: 50px; }

  .section { padding: 2.4rem 0 0.8rem; }
  .section--first { padding-top: 2.6rem; }
  .section + .section > .container::before { margin-bottom: 2.2rem; }
  .band { padding: 2.4rem 0; margin: 1.8rem 0; }
  .band--join { margin-bottom: 0; padding-bottom: 3rem; }
  .lead { font-size: 1.16rem; }

  .dictionary, .steps, .checklist { grid-template-columns: 1fr; }
  .steps li { padding: 18px 18px 20px 76px; }
  .steps li::before { left: 16px; top: 18px; }
  .join-card { padding: 1.8rem 1.2rem 2rem; }
  .join-actions .btn { width: 100%; }

  /* Stacked comparison table */
  .table-wrap { border: 0; background: transparent; }
  .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%; }
  .compare tbody tr { background: var(--surface) !important; border: 1px solid var(--line); border-top: 4px double var(--teal); margin-bottom: 12px; padding: 4px 0 10px; }
  .compare tbody tr + tr { border-top: 4px double var(--teal); }
  .compare tbody th { width: 100%; font-family: var(--font-head); font-size: 1.08rem; padding: 12px 16px 4px; }
  .compare td { padding: 6px 16px; }
  .compare td::before {
    content: attr(data-label); display: block;
    font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--teal-deep);
  }

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

  .cookie-inner { padding: 8px 12px; gap: 10px; font-size: 0.82rem; justify-content: space-between; }
  .cookie-accept { min-height: 36px; padding: 0 12px; font-size: 0.9rem; }
}

@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; }
}
