/* Singles Dating Site: "Rose Garden" house brief. Fredoka 600 + Nunito Sans 400/700, self-hosted.
   Hero: full-bleed-overlay (full-bleed photo, copy in a soft-cornered panel on the left, clear of
   the centre third). Header: minimal bar, logo left, nav + Log In + Join Now right.
   Signature detail: a soft rose duotone over the hero photo, echoed as a duotone fade pill
   above every H2 and as the duotone stripe on cards. Soft corners, cards on the surface colour. */

@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/fredoka-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/nunito-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/nunito-sans-latin-700-normal.woff2') format('woff2');
}

:root {
  --bg: #fff7f8;
  --surface: #ffffff;
  --ink: #1f1c1a;
  --muted: #57504a;
  --join: #d6336c;
  --join-hover: #c2255c;
  --join-ink: #ffffff;
  --link: #b02456;
  --tint: #fde8ee;
  --blush: #f7c4d4;
  --line: #f3d3dd;
  --night: #2b1520;
  --on-night: #fff7f8;
  --on-night-muted: #ecd5dc;
  --on-night-link: #ffb3cb;
  --duo: linear-gradient(90deg, #d6336c 0%, #e8789c 55%, #f7c4d4 100%);
  --radius: 22px;
  --radius-sm: 14px;
  --font-head: 'Fredoka', 'Trebuchet MS', Arial, sans-serif;
  --font-body: 'Nunito Sans', 'Segoe UI', Arial, sans-serif;
  --logo-accent: #b02456;
}

*, *::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.08rem;
  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(--link); outline-offset: 2px; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--night); color: var(--on-night); padding: 10px 16px; text-decoration: none;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons (Join Now is the strongest colour on every page) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.5rem;
  font-family: var(--font-body); font-weight: 700; font-size: 1.02rem; line-height: 1.2;
  text-decoration: none; border: 0; border-radius: 999px; cursor: pointer;
  white-space: nowrap; max-width: 100%;
}
.btn-primary { background: var(--join); color: var(--join-ink); box-shadow: 0 8px 18px -8px rgba(214, 51, 108, 0.7); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--join-hover); color: var(--join-ink); }
.btn-ghost { background: var(--surface); color: var(--link); border: 2px solid var(--link); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--link); color: #ffffff; }
.btn-sm { min-height: 42px; padding: 0 1.15rem; font-size: 0.98rem; box-shadow: none; }
.btn-lg { min-height: 56px; padding: 0 2.3rem; font-size: 1.12rem; }

/* ---------- Header: minimal bar, one row ---------- */
.site-header {
  position: relative; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 0 18px;
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; flex: 0 0 auto; }
.brand-logo { width: 176px; height: auto; }
.mainnav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.mainnav a {
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1rem;
  padding: 8px 14px; border-radius: 999px;
}
.mainnav a:hover { background: var(--tint); }
.mainnav a.active { color: var(--link); background: var(--tint); }
.mainnav a.login-link {
  margin-left: 10px; border: 2px solid var(--link); color: var(--link); padding: 6px 18px; min-height: 42px;
  display: inline-flex; align-items: center;
}
.mainnav a.login-link:hover { background: var(--link); color: #ffffff; }
.header-cta { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.menu-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  background: var(--surface); border: 2px solid var(--line); border-radius: 50%; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Hero: full-bleed duotone photo, copy panel on the left ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: clamp(520px, 76vh, 720px);
  display: flex; align-items: center;
  background: #6b1838;
}
.hero-media {
  position: absolute; inset: 0;
  background: #ffd6e2; isolation: isolate;
}
.hero-media picture { display: block; width: 100%; height: 100%; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  filter: grayscale(1) contrast(1.06);
  mix-blend-mode: multiply;
}
/* Signature: soft rose duotone (plum shadows, blush highlights) */
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: #6b1838; mix-blend-mode: lighten;
}
.hero-inner {
  position: relative; z-index: 1; max-width: none;
  padding-left: clamp(20px, 3vw, 56px); padding-right: clamp(20px, 3vw, 56px);
  padding-top: 40px; padding-bottom: 40px;
}
.hero-panel {
  width: clamp(300px, 29vw, 440px);
  background: var(--surface); border-radius: 28px;
  padding: 30px 30px 32px;
  box-shadow: 0 26px 60px -24px rgba(43, 21, 32, 0.55);
  position: relative; overflow: hidden;
}
.hero-panel::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; background: var(--duo);
}
.hero-pin { width: 44px; height: 44px; margin: 4px 0 14px; }
.hero-heading {
  font-family: var(--font-head); font-weight: 600; color: var(--ink);
  font-size: clamp(2rem, 2.9vw, 2.9rem); line-height: 1.08; letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.hero-strapline { color: var(--muted); font-size: 1.1rem; line-height: 1.55; margin: 0 0 24px; }
.hero-btn { width: 100%; }

/* ---------- Content sections and bands ---------- */
.section { padding: 3.4rem 0 1.4rem; }
.section + .section { padding-top: 0.8rem; }
.section--first { padding-top: 3.8rem; }
.prose { max-width: 47rem; }
.prose > :last-child { margin-bottom: 0; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }
h1 { font-size: clamp(2rem, 3.9vw, 2.85rem); line-height: 1.12; margin: 0 0 0.65em; max-width: 24ch; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; margin: 2.2em 0 0.5em; }
h3 { font-size: 1.24rem; line-height: 1.3; margin: 0 0 0.45em; }
/* Signature echo: duotone fade pill above each H2 */
h2::before {
  content: ""; display: block; width: 72px; height: 8px; border-radius: 999px;
  background: var(--duo); margin-bottom: 0.8em;
}
.prose > h2:first-child, .band h2:first-child, .highlight h2:first-child, .split-copy h2:first-child, .join-card h2:first-child { margin-top: 0; }
.lead { font-size: 1.2rem; line-height: 1.72; }

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

.band { position: relative; padding: 4rem 0; margin: 2.8rem 0; }
.band--tint { background: var(--tint); }
.band--split { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* First week, day by day (definitions list, centrepiece; separate cards, no connecting line) */
.week {
  margin: 1.8rem 0 1.8rem; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.week-day {
  position: relative; overflow: hidden;
  background: var(--surface); border-radius: var(--radius);
  padding: 26px 24px 20px;
  box-shadow: 0 10px 26px -16px rgba(176, 36, 86, 0.35);
}
.week-day::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--duo);
}
.week-day--wide { grid-column: 1 / -1; }
.week dt {
  font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; line-height: 1.3;
  color: var(--link); margin: 0 0 0.4em;
}
.week dd { margin: 0; line-height: 1.65; }
.after-week { font-size: 1.12rem; }

/* Checklist (home) */
.checklist {
  list-style: none; margin: 1.6rem 0 0.6rem; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.checklist li {
  position: relative; padding: 18px 20px 18px 66px; line-height: 1.6;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.checklist li::before {
  content: ""; position: absolute; left: 18px; top: 16px; width: 32px; height: 32px;
  border-radius: 50%; background: var(--join);
}
.checklist li::after {
  content: ""; position: absolute; left: 30px; top: 22px; width: 8px; height: 15px;
  border: solid #ffffff; border-width: 0 3px 3px 0; transform: rotate(45deg);
}

/* Three-feature row (home) */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 1.8rem; }
.feature {
  background: var(--surface); border-radius: var(--radius); padding: 26px 24px 22px;
  border: 1px solid var(--line);
}
.feature-icon { width: 56px; height: 56px; margin-bottom: 14px; }
.feature p { margin: 0; }

/* Split text-and-image band */
.split {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 56px; align-items: center;
}
.split-copy > :last-child { margin-bottom: 0; }
.split-art svg { width: 100%; max-width: 360px; height: auto; margin: 0 auto; }
.band--split-rev .split { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.band--split-rev .split-art { order: -1; }

/* Tinted highlight band */
.highlight {
  position: relative; overflow: hidden; max-width: 52rem;
  background: var(--surface); border-radius: var(--radius);
  padding: 2.5rem 2.6rem 2.2rem;
  box-shadow: 0 16px 34px -20px rgba(176, 36, 86, 0.4);
}
.highlight::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: linear-gradient(180deg, #d6336c, #f7c4d4); }
.highlight > :last-child { margin-bottom: 0; }
.highlight-lead { font-size: 1.15rem; line-height: 1.72; }

/* Tables (age range on /by-age/, goal table on /best-dating-sites/) */
.table-wrap {
  margin: 1.6rem 0 1.6rem; background: var(--surface);
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 12px 28px -18px rgba(176, 36, 86, 0.35);
}
.data-table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.55; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 16px 18px; }
.data-table thead th {
  background: var(--link); color: #ffffff;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; letter-spacing: 0.01em;
}
.data-table tbody tr { border-top: 1px solid var(--line); }
.data-table tbody tr:nth-child(even) { background: #fffafb; }
.data-table tbody th { font-family: var(--font-head); font-weight: 600; color: var(--ink); width: 24%; }
.range-pill {
  display: inline-block; background: var(--tint); color: var(--link); font-weight: 700;
  border-radius: 999px; padding: 4px 14px;
}
.goal-table tbody th { width: 26%; }

/* Callout (best-dating-sites) */
.callout {
  display: flex; align-items: center; gap: 16px; max-width: 47rem;
  background: var(--surface); border: 2px dashed var(--blush); border-radius: var(--radius);
  padding: 18px 22px;
}
.callout-mark { width: 40px; height: 40px; flex: 0 0 auto; }
.callout p { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; line-height: 1.4; color: var(--ink); }

/* Final Join band */
.band--join { margin-bottom: 0; padding: 4.2rem 0 4.6rem; background: linear-gradient(135deg, #fde8ee 0%, #f9d3df 100%); }
.join-card {
  position: relative; overflow: hidden; max-width: 50rem; margin: 0 auto;
  background: var(--surface); border-radius: 28px; padding: 2.6rem 2.8rem 2.6rem;
  box-shadow: 0 24px 50px -28px rgba(176, 36, 86, 0.55);
}
.join-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; background: var(--duo); }
.join-card p { font-size: 1.12rem; }
.join-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.4rem; }

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

/* ---------- Footer ---------- */
.footer {
  background: var(--night); color: var(--on-night-muted);
  padding: 3.2rem 0 2rem; font-size: 0.98rem;
  --logo-accent: #ffb3cb;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-title { font-family: var(--font-head); font-weight: 600; color: var(--on-night); font-size: 1.06rem; margin: 0 0 0.7em; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 0 0 4px; }
.footer a { color: var(--on-night-link); text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 4px 0; }
.footer a:hover { color: #ffffff; }
.footer .brand { text-decoration: none; padding: 0; color: var(--on-night); }
.footer-brand .brand-logo { width: 196px; }
.footer-bottom { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid rgba(236, 213, 220, 0.25); font-size: 0.94rem; }

/* ---------- Cookie banner ---------- */
.cookie {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  background: var(--night); color: var(--on-night);
  box-shadow: 0 -6px 20px rgba(43, 21, 32, 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: 16px;
  font-size: 0.96rem; line-height: 1.4;
}
.cookie-inner a { color: var(--on-night-link); text-decoration: underline; }
.cookie-accept {
  flex: 0 0 auto; min-height: 40px; padding: 0 20px;
  background: var(--join); color: var(--join-ink); border: 0; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.96rem; cursor: pointer;
}
.cookie-accept:hover { background: var(--join-hover); }

/* ---------- Tablet: nav becomes the in-flow accordion ---------- */
@media (max-width: 1023.98px) {
  .header-inner { flex-wrap: wrap; }
  .header-cta { order: 2; margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .mainnav {
    order: 3; width: 100%; display: none; margin: 12px 0 0;
    border-top: 1px solid var(--line);
  }
  .mainnav.open { display: block; }
  .mainnav a {
    display: block; padding: 13px 6px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.04rem;
  }
  .mainnav a.active { background: transparent; box-shadow: inset 4px 0 0 var(--join); padding-left: 14px; }
  .mainnav a.login-link { margin: 0; border: 0; border-bottom: 1px solid var(--line); padding: 13px 6px; min-height: 0; display: block; }
  .mainnav a.login-link:hover { background: var(--tint); color: var(--link); }
  .features { grid-template-columns: 1fr 1fr; }
  .features .feature:last-child { grid-column: 1 / -1; }
  .split { gap: 36px; }
}

/* Tablet widths that still use the landscape photo: shift the subject right, clear of the panel */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .hero-media img { object-position: 20% center; }
}

/* ---------- Phones: one-row header; hero sized by svh, button pinned to the bottom ---------- */
@media (max-width: 767.98px) {
  body { font-size: 1.04rem; }
  .container { padding: 0 16px; }

  .header-inner { gap: 0 10px; padding-top: 9px; padding-bottom: 9px; }
  .brand img, .brand svg, .brand-logo { width: clamp(110px, 33vw, 240px); }
  .btn-sm { min-height: 40px; padding: 0 0.95rem; font-size: 0.95rem; }

  /* header about 62px, compact cookie banner allowance 60px */
  .hero {
    display: flex; flex-direction: column; align-items: stretch;
    min-height: 0;
    height: calc(100vh - 62px - 60px);
    height: calc(100svh - 62px - 60px);
    background: var(--bg);
  }
  .hero-media { position: relative; inset: auto; flex: 1 1 auto; min-height: 110px; }
  .hero-inner { flex: 0 0 auto; padding: 0 12px 12px; margin-top: -26px; }
  .hero-panel { width: 100%; padding: 18px 16px 16px; border-radius: 22px; box-shadow: 0 -10px 30px -18px rgba(43, 21, 32, 0.5); }
  .hero-panel::before { height: 5px; }
  .hero-pin { display: none; }
  .hero-heading { font-size: clamp(1.6rem, 7.4vw, 2rem); line-height: 1.1; margin-bottom: 8px; }
  .hero-strapline { font-size: 0.97rem; line-height: 1.45; margin-bottom: 12px; }
  .hero-btn { min-height: 50px; }

  .section { padding: 2.4rem 0 0.8rem; }
  .section--first { padding-top: 2.4rem; }
  .band { padding: 2.8rem 0; margin: 2rem 0; }
  .band--join { margin-bottom: 0; }
  .highlight { padding: 1.7rem 1.3rem 1.4rem 1.6rem; }
  .join-card { padding: 1.9rem 1.3rem 1.7rem; }
  .join-actions .btn { flex: 1 1 100%; }

  .week, .checklist, .features { grid-template-columns: 1fr; }
  .features .feature:last-child { grid-column: auto; }
  .split, .band--split-rev .split { grid-template-columns: 1fr; gap: 26px; }
  .band--split-rev .split-art { order: 0; }
  .split-art svg { max-width: 240px; }

  /* Stacked tables */
  .table-wrap { border: 0; background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table, .data-table tbody, .data-table tr, .data-table th, .data-table td { display: block; width: 100%; }
  .data-table tbody tr { background: var(--surface) !important; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; padding: 6px 0 12px; }
  .data-table tbody th { width: 100%; font-size: 1.12rem; padding: 14px 18px 4px; }
  .goal-table tbody th { width: 100%; }
  .data-table td { padding: 6px 18px; }
  .data-table td::before {
    content: attr(data-label); display: block;
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--link);
  }

  .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.88rem; justify-content: space-between; }
  .cookie-accept { min-height: 38px; padding: 0 16px; 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: 64% 1% !important; }
}
@media (max-width: 767px) {
  picture img { object-position: 50% 50% !important; }
}
