/* Granny Contacts: Sapphire Night (house brief, 1 Dec 2026)
   Bodoni Moda headings, Work Sans body. Soft corners, cards on the surface colour,
   angled section edges (clip-path) between bands as the signature detail. */

@font-face {
  font-family: "Bodoni Moda";
  src: url("/fonts/bodoni-moda-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("/fonts/work-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("/fonts/work-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --bg: #0a1020;
  --surface: #121a30;
  --raised: #1a2440;
  --deep: #070b17;
  --text: #f5efe9;
  --muted: #c8bdb5;
  --join: #c0306b;
  --join-hover: #cf3874;
  --link: #8fb4ff;
  --line: rgba(245, 239, 233, 0.13);
  --rose-line: rgba(192, 48, 107, 0.55);
  --radius: 14px;
  --radius-sm: 10px;
  --tilt: 48px;
  --font-head: "Bodoni Moda", Didot, "Bodoni MT", Georgia, serif;
  --font-body: "Work Sans", "Segoe UI", Arial, sans-serif;
  --header-h: 76px;
}

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

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  max-width: 100%; text-align: center; text-decoration: none; white-space: nowrap;
  font-family: var(--font-body); font-weight: 600; letter-spacing: 0.02em;
  border: 2px solid transparent; border-radius: var(--radius-sm); cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 1.05rem; }
.btn-join { background: var(--join); color: #ffffff; border-color: var(--join); }
.btn-join:hover, .btn-join:focus-visible { background: var(--join-hover); border-color: var(--join-hover); color: #ffffff; }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(245, 239, 233, 0.6); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--text); color: var(--text); }

/* ---------- Header: minimal bar, logo left, Log In and Join Now right ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(10, 16, 32, 0.97);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; color: var(--text); text-decoration: none; flex: 0 0 auto; }
.brand-logo { width: 168px; height: auto; display: block; }
.mainnav { display: flex; align-items: center; gap: 2px; }
.mainnav a {
  color: var(--muted); text-decoration: none; font-size: 0.96rem; font-weight: 600;
  padding: 8px 12px; border-radius: 8px;
}
.mainnav a:hover { color: var(--text); background: rgba(143, 180, 255, 0.08); }
.mainnav a.active { color: var(--text); box-shadow: inset 0 -2px 0 var(--join); border-radius: 0; }
.mainnav a.nav-login { display: none; }
.header-cta { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: 0 0 auto; }
.menu-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 44px; height: 44px; padding: 0; background: transparent;
  border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- Hero: full-bleed photo, copy panel on the right, angled bottom edge ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--bg);
  min-height: 580px; height: min(86vh, 800px);
  display: flex; align-items: center;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - var(--tilt)));
}
.hero-media { position: absolute; inset: 0; }
.hero-media picture, .hero-media img { width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: center; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(270deg, rgba(10, 16, 32, 0.82) 0%, rgba(10, 16, 32, 0.3) 34%, rgba(10, 16, 32, 0) 58%),
    linear-gradient(180deg, rgba(10, 16, 32, 0) 60%, rgba(10, 16, 32, 0.55) 100%);
}
.hero-panel-wrap {
  position: relative; z-index: 2; width: 100%;
  display: flex; justify-content: flex-end;
  padding: 0 clamp(24px, 3.2vw, 56px) var(--tilt);
}
.hero-panel {
  width: clamp(300px, 27vw, 410px);
  background: rgba(18, 26, 48, 0.9);
  border-radius: var(--radius);
  border-top: 4px solid var(--join);
  padding: 30px 30px 32px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.hero-heading {
  font-family: var(--font-head); font-weight: 600; color: var(--text);
  font-size: clamp(2rem, 2.9vw, 2.7rem); line-height: 1.1; margin: 0 0 14px; letter-spacing: -0.005em;
}
.hero-strapline { color: var(--muted); font-size: 1.06rem; line-height: 1.55; margin: 0 0 24px; }
.hero-btn { width: 100%; }

/* ---------- Content ---------- */
.section { padding: 3.6rem 0 1.2rem; }
.section--first { padding-top: 3.4rem; }
.prose { max-width: 740px; }
.prose p { margin: 0 0 1.15em; }
.prose p.lead { font-size: 1.2rem; line-height: 1.66; color: var(--text); }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; color: var(--text); }
h1 { font-size: clamp(2.05rem, 4vw, 3.15rem); line-height: 1.1; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 2.7vw, 2.2rem); line-height: 1.16; margin: 2.2em 0 0.55em; }
h3 { font-size: 1.3rem; line-height: 1.25; margin: 1.6em 0 0.45em; }
.prose > h2:first-child { margin-top: 0; }
/* divider: a short slanted rose bar, echoing the angled band edges */
.prose h2::before, .join-inner h2::before {
  content: ""; display: block; width: 58px; height: 6px; margin: 0 0 0.75em 4px;
  background: var(--join); transform: skewX(-28deg); border-radius: 1px;
}

/* links inside content stay links; buttons keep their own colours */
.seo-content a:not(.btn) { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.seo-content a:not(.btn):hover { color: #ffffff; text-decoration-color: var(--link); }
strong { font-weight: 600; color: var(--text); }

/* ---------- Angled bands (signature) ---------- */
.band {
  position: relative; background: var(--surface);
  padding: calc(3.8rem + var(--tilt)) 0;
  margin: 2.4rem 0 0;
}
.band--angle-a { clip-path: polygon(0 var(--tilt), 100% 0, 100% calc(100% - var(--tilt)), 0 100%); }
.band--angle-b { clip-path: polygon(0 0, 100% var(--tilt), 100% 100%, 0 calc(100% - var(--tilt))); }
.band + .band { margin-top: calc(-0.5 * var(--tilt)); }

/* Glossary: What Her Profile Is Telling You */
.gloss {
  margin: 1.8rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.gloss-item {
  background: var(--raised); border-radius: var(--radius); padding: 22px 22px 22px;
  border-left: 4px solid var(--join);
}
.gloss dt { font-family: var(--font-head); font-weight: 600; font-size: 1.28rem; line-height: 1.2; color: var(--text); margin: 0 0 8px; }
.gloss dd { margin: 0; color: var(--muted); font-size: 0.99rem; line-height: 1.6; }

/* Numbered cards, no connecting line */
.steps {
  list-style: none; margin: 1.6rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.step {
  background: var(--surface); border-radius: var(--radius); padding: 24px 22px 22px;
  border: 1px solid var(--line);
}
.step h3 { margin: 0 0 10px; font-size: 1.22rem; }
.step-num {
  display: block; font-family: var(--font-head); font-size: 2.6rem; line-height: 1;
  color: var(--join); margin-bottom: 12px;
}
.step p { margin: 0; color: var(--muted); font-size: 0.99rem; line-height: 1.6; }
/* rows variant (page 3): number beside the text, raised on the band */
.steps--rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.steps--rows .step { background: var(--raised); border: 0; position: relative; padding: 24px 24px 24px 104px; min-height: 112px; }
.steps--rows .step-num {
  position: absolute; left: 22px; top: 22px; margin: 0;
  width: 64px; height: 64px; display: flex; align-items: center; justify-content: center;
  background: var(--bg); border-radius: 50%; font-size: 1.75rem; color: var(--link);
}

/* Three-feature row */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 1.6rem 0 1.6rem; }
.trio-card {
  background: var(--raised); padding: 28px 26px 26px; border-radius: var(--radius);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
  border-bottom: 3px solid var(--join);
}
.trio-card h3 { margin: 0 0 10px; }
.trio-card p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.62; }
.section .trio-card { background: var(--surface); }
.trio--places .trio-card { border-bottom-color: var(--link); }

/* Reasons list (page 2) */
.reasons { list-style: none; margin: 0.4rem 0 1.4rem; padding: 0; }
.reasons li { position: relative; padding: 10px 0 10px 40px; color: var(--text); }
.reasons li::before {
  content: ""; position: absolute; left: 6px; top: 22px; width: 20px; height: 5px;
  background: var(--join); transform: skewX(-28deg);
}

/* Wish list: tick cards in two columns */
.wishlist {
  list-style: none; margin: 1.4rem 0 1.6rem; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 900px;
}
.wishlist li {
  position: relative; background: var(--surface); border-radius: var(--radius-sm);
  padding: 16px 18px 16px 52px; color: var(--text); line-height: 1.55; border: 1px solid var(--line);
}
.wishlist li::before {
  content: ""; position: absolute; left: 20px; top: 21px; width: 16px; height: 9px;
  border-left: 3px solid var(--join); border-bottom: 3px solid var(--join); transform: rotate(-45deg);
}

/* Comparison table */
.table-wrap { margin: 1.6rem 0 1.8rem; overflow-x: auto; border-radius: var(--radius); background: var(--raised); }
.compare { width: 100%; border-collapse: collapse; font-size: 1rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.compare thead th {
  font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--text);
  border-bottom: 3px solid var(--join); background: rgba(10, 16, 32, 0.45);
}
.compare thead td { background: rgba(10, 16, 32, 0.45); border-bottom: 3px solid var(--join); }
.compare tbody th { font-weight: 600; color: var(--link); width: 20%; font-size: 0.95rem; letter-spacing: 0.02em; }
.compare td { color: var(--muted); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

/* Pull-quote band */
.band--quote { background: linear-gradient(120deg, #1c1430 0%, var(--surface) 55%, #0f1a36 100%); }
.pull { max-width: 880px; margin: 0 auto; padding: 0 0 0 64px; position: relative; }
.pull::before {
  content: "\201C"; position: absolute; left: 0; top: -0.18em;
  font-family: var(--font-head); font-size: 5.4rem; line-height: 1; color: var(--join);
}
.pull p { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: clamp(1.45rem, 2.6vw, 2.1rem); line-height: 1.3; color: var(--text); }

/* Final Join band */
.band--join {
  margin-top: 3.2rem;
  padding: calc(4rem + var(--tilt)) 0 4.4rem;
  /* kept dark enough that Join Now stays above 3:1 across the whole gradient */
  background: linear-gradient(135deg, #22102a 0%, #111830 52%, #0c1226 100%);
  border-top: 0;
  clip-path: polygon(0 var(--tilt), 100% 0, 100% 100%, 0 100%);
}
.band--join::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(var(--tilt) + 4px);
  background: var(--join);
  clip-path: polygon(0 var(--tilt), 100% 0, 100% 4px, 0 calc(var(--tilt) + 4px));
}
.band + .band--join { margin-top: calc(-0.5 * var(--tilt)); }
.join-inner { max-width: 800px; }
.join-inner h2 { margin-top: 0; }
.join-inner p { font-size: 1.15rem; line-height: 1.65; margin: 0 0 1.5rem; color: var(--text); }
.join-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.notfound { padding-bottom: 4rem; }

/* ---------- Footer ---------- */
.footer { background: var(--deep); color: var(--muted); padding: 3.2rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer .brand-logo { width: 160px; }
.footer-title { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); margin: 0 0 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 4px 0; }
.footer a:hover { color: var(--link); }
.footer .brand { text-decoration: none; padding: 0; color: var(--text); }
.footer-bottom { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: 0.9rem; }

/* ---------- Cookie banner ---------- */
.cookie {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  background: var(--surface); color: var(--text); border-top: 3px solid var(--join);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.45);
}
.cookie.show { display: block; }
.cookie-inner {
  max-width: 1180px; margin: 0 auto; padding: 12px 32px;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  font-size: 0.95rem; line-height: 1.4;
}
.cookie-inner a { color: var(--link); text-decoration: underline; }
.cookie-accept {
  flex: 0 0 auto; min-height: 40px; padding: 0 18px;
  background: var(--join); color: #ffffff; border: 0; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; cursor: pointer;
}
.cookie-accept:hover { background: var(--join-hover); }

/* ---------- Tablet: photo band above, panel below (keeps copy off the centre third) ---------- */
@media (max-width: 1023.98px) {
  .gloss { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { display: flex; flex-direction: column; align-items: stretch; height: auto; min-height: 0; clip-path: none; }
  .hero-media { position: relative; inset: auto; height: 52vh; min-height: 300px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - var(--tilt))); }
  .hero-media picture, .hero-media img { position: absolute; inset: 0; }
  .hero-media::after { background: linear-gradient(180deg, rgba(10, 16, 32, 0) 55%, rgba(10, 16, 32, 0.5) 100%); }
  .hero-panel-wrap { padding: 0 32px; justify-content: flex-start; margin-top: -12px; }
  .hero-panel { width: 100%; max-width: 640px; box-shadow: none; }
}

/* ---------- Accordion nav ---------- */
@media (max-width: 899.98px) {
  :root { --header-h: 60px; }
  .header-inner { flex-wrap: wrap; gap: 0 10px; min-height: var(--header-h); padding-top: 8px; padding-bottom: 8px; }
  .brand { order: 1; }
  .brand svg, .brand-logo { width: clamp(110px, 33vw, 240px); }
  .header-cta { order: 2; margin-left: auto; }
  .header-login { display: none; }
  .menu-toggle { display: inline-flex; }
  .mainnav { order: 3; width: 100%; display: none; margin: 8px 0 0; border-top: 1px solid var(--line); }
  .mainnav.open { display: block; }
  .mainnav a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.02rem; color: var(--text); }
  .mainnav a.active { box-shadow: inset 4px 0 0 var(--join); padding-left: 14px; }
  .mainnav a.nav-login { display: block; }
  .trio { grid-template-columns: 1fr; }
  .steps--rows { grid-template-columns: 1fr; }
}

/* ---------- Phones: hero sized by svh, button pinned to the bottom ---------- */
@media (max-width: 767.98px) {
  :root { --tilt: 24px; }
  body { font-size: 1.03rem; }
  .container { padding: 0 16px; }
  .btn-sm { min-height: 40px; padding: 0 14px; font-size: 0.92rem; }
  .brand svg, .brand-logo { height: auto; }

  .hero {
    height: calc(100vh - 60px - 60px);
    height: calc(100svh - 60px - 60px);
    min-height: 400px;
  }
  .hero-media { flex: 1 1 auto; height: auto; min-height: 110px; }
  .hero-panel-wrap { flex: 0 0 auto; padding: 0; margin-top: -10px; }
  .hero-panel { width: 100%; max-width: none; background: var(--bg); border-radius: 0; border-top: 3px solid var(--join); padding: 14px 16px 16px; }
  .hero-heading { font-size: 2rem; line-height: 1.08; margin-bottom: 8px; }
  .hero-strapline { font-size: 0.97rem; line-height: 1.45; margin-bottom: 14px; }
  .hero-btn { min-height: 50px; }

  .section { padding: 2.6rem 0 0.6rem; }
  .section--first { padding-top: 2.4rem; }
  .band { padding: calc(2.6rem + var(--tilt)) 0; margin-top: 2rem; }
  .band--join { padding: calc(2.8rem + var(--tilt)) 0 3rem; }
  h2 { margin-top: 1.8em; }
  .prose p.lead { font-size: 1.1rem; }

  .gloss, .steps, .wishlist { grid-template-columns: 1fr; }
  .steps--rows .step { padding: 20px 18px 20px 84px; min-height: 96px; }
  .steps--rows .step-num { left: 16px; top: 20px; width: 52px; height: 52px; font-size: 1.5rem; }
  .pull { padding-left: 44px; }
  .pull::before { font-size: 4rem; }

  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { border-bottom: 1px solid var(--line); padding: 14px 16px; }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare th, .compare td { border: 0; padding: 4px 0; }
  .compare tbody th { width: 100%; font-family: var(--font-head); font-size: 1.15rem; color: var(--text); }
  .compare td::before {
    content: attr(data-label); display: block; font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--link);
  }

  .join-actions .btn { flex: 1 1 140px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .cookie-inner { padding: 8px 10px; gap: 8px; font-size: 0.76rem; justify-content: space-between; }
  .cookie-text { white-space: nowrap; }
  .cookie-accept { min-height: 36px; padding: 0 12px; font-size: 0.84rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

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