/* Senior Submissive: Scarlet Shadow. Fraunces 600 headings, Nunito Sans 400/700 body.
   Pill corners on buttons, rounded cards on the surface colour.
   Signature: double hairline dividers between sections (and along the hero's angled edge). */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/fraunces-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: #101010;
  --surface: #1b1b1b;
  --raised: #222020;
  --tint: #1a1214;
  --join-band: #2a0f16;
  --deep: #0a0a0a;
  --ink: #f5efe9;
  --muted: #c8bdb5;
  --join: #e11d48;
  --join-hover: #be123c;
  --on-join: #ffffff;
  --link: #fb7185;
  --rule: rgba(251, 113, 133, 0.5);
  --rule-soft: rgba(245, 239, 233, 0.16);
  --mark-strap: #fb7185;
  --mark-cut: #1b1b1b;
  --head: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }

h1, h2, h3 { font-family: var(--head); font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }
h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.16; margin: 0 0 0.7em; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); line-height: 1.22; margin: 2.2em 0 0.55em; }
h3 { font-size: 1.32rem; line-height: 1.3; margin: 0 0 0.5em; }
.prose > h2:first-child, .prose > h1:first-child, .join-panel > h2:first-child { margin-top: 0; }

/* Signature in miniature: a short double hairline under the H1 */
.seo-content h1::after {
  content: ""; display: block; width: 88px; height: 5px; margin-top: 22px;
  border-top: 1px solid var(--link); border-bottom: 1px solid var(--link);
}

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.prose { max-width: 46rem; margin: 0 auto; }
.prose--after { margin-top: 30px; }
.lead { font-size: 1.22rem; line-height: 1.68; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--join); color: var(--on-join); padding: 10px 16px; z-index: 100; font-weight: 700; border-radius: 999px; }
.skip-link:focus { left: 12px; top: 12px; }

/* Buttons: pill corners */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body); font-weight: 700; letter-spacing: 0.02em;
  text-decoration: none; border: 0; border-radius: 999px; cursor: pointer;
  max-width: 100%; white-space: nowrap;
}
.btn-primary { background: var(--join); color: var(--on-join); }
.btn-primary:hover { background: var(--join-hover); color: var(--on-join); }
.btn:focus-visible, .menu-toggle:focus-visible, .cookie-accept:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 0.95rem; }
.btn-lg { min-height: 54px; padding: 0 38px; font-size: 1.05rem; }

/* Header: solid bar on the surface colour, closed by a double hairline */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); }
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; pointer-events: none;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 78px; }
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; flex: 0 0 auto; }
.brand-logo { width: 190px; height: auto; display: block; }
.mainnav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.mainnav a {
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1rem;
  padding: 10px 14px; border-radius: 999px;
}
.mainnav a:hover { color: var(--link); }
.mainnav a.active { color: var(--link); background: rgba(251, 113, 133, 0.1); }
.mainnav a.login-link { margin-left: 10px; border: 1px solid var(--rule); padding: 9px 20px; }
.mainnav a.login-link:hover { border-color: var(--link); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none; width: 46px; height: 44px; padding: 0; background: transparent;
  border: 1px solid var(--rule); border-radius: 999px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }

/* Hero: angled crop. Solid surface block holds the copy on the left; the photo sits right with a
   diagonal left edge, traced by a double hairline (rose / gap / rose) before the image starts. */
.hero {
  --cut: 18%;
  position: relative; background: var(--surface); overflow: hidden;
  min-height: clamp(500px, 72vh, 700px); display: flex; align-items: center;
}
.hero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 58%; background: var(--link); clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%); }
.hero-photo > .hero-line, .hero-photo > picture { position: absolute; inset: 0; display: block; }
.hero-line--gap { background: var(--surface); clip-path: polygon(calc(var(--cut) + 3px) 0, 100% 0, 100% 100%, 3px 100%); }
.hero-line--inner { background: var(--link); clip-path: polygon(calc(var(--cut) + 7px) 0, 100% 0, 100% 100%, 7px 100%); }
.hero-photo picture { clip-path: polygon(calc(var(--cut) + 10px) 0, 100% 0, 100% 100%, 10px 100%); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-stage { position: relative; z-index: 2; padding-top: 56px; padding-bottom: 56px; }
.hero-copy { max-width: min(420px, 34%); }
.hero-copy::before {
  content: ""; display: block; width: 64px; height: 5px; margin-bottom: 22px;
  border-top: 1px solid var(--link); border-bottom: 1px solid var(--link);
}
.hero-heading {
  font-family: var(--head); font-weight: 600; color: var(--ink);
  font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1.14; margin: 0 0 18px;
}
.hero-strapline { color: var(--muted); font-size: 1.15rem; line-height: 1.6; margin: 0 0 28px; }

/* Sections, divided by the signature double hairline */
.sec { padding: 64px 0; }
.sec--first { padding-top: 64px; }
.sec + .sec { padding-top: 0; }
.sec + .sec > .container::before {
  content: ""; display: block; max-width: 52rem; height: 5px; margin: 0 auto 60px;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.band { position: relative; padding: 74px 0; }
.band::before, .band::after {
  content: ""; position: absolute; left: 0; right: 0; height: 5px; pointer-events: none;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.band::before { top: 0; }
.band::after { bottom: 0; }
.band--tint { background: var(--tint); }
.band--quote { background: var(--bg); padding: 70px 0; }
.band--join { background: linear-gradient(180deg, var(--join-band), var(--bg)); }
.band--join::after { display: none; }

/* In-content links, scoped so buttons keep their 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: var(--ink); }

/* Pull-quote between two short double hairlines */
.pullquote { max-width: 50rem; margin: 0 auto; padding: 0 20px; text-align: center; }
.pullquote::before, .pullquote::after {
  content: ""; display: block; width: 120px; height: 5px; margin: 0 auto;
  border-top: 1px solid var(--link); border-bottom: 1px solid var(--link);
}
.pullquote p { font-family: var(--head); font-weight: 600; font-size: clamp(1.5rem, 2.9vw, 2.2rem); line-height: 1.35; color: var(--ink); margin: 30px 0; }

/* Homepage centrepiece table: rounded card, stacks to one card per row on phones */
.table-wrap { max-width: 1040px; margin: 32px auto 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule-soft); }
.table-brings { width: 100%; border-collapse: collapse; font-size: 1.04rem; line-height: 1.55; }
.table-brings thead th {
  text-align: left; font-weight: 700; font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink); background: #241618; padding: 16px 22px; border-bottom: 3px double var(--rule);
}
.table-brings tbody th, .table-brings tbody td { text-align: left; vertical-align: top; padding: 17px 22px; border-bottom: 1px solid var(--rule-soft); }
.table-brings tbody tr:last-child th, .table-brings tbody tr:last-child td { border-bottom: 0; }
.table-brings tbody th { font-family: var(--head); font-weight: 600; font-size: 1.1rem; color: var(--link); width: 42%; }
.table-brings tbody td { color: var(--ink); }

/* Checklist: rounded cards with a scarlet tick ring, two columns */
.checklist { list-style: none; margin: 28px auto 0; padding: 0; max-width: 960px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.checklist li { position: relative; background: var(--surface); border-radius: var(--radius); padding: 20px 24px 20px 64px; border: 1px solid var(--rule-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 22px; top: 22px; width: 26px; height: 26px;
  border: 2px solid var(--link); border-radius: 50%;
}
.checklist li::after {
  content: ""; position: absolute; left: 32px; top: 27px; width: 6px; height: 12px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg);
}

/* Homepage numbered cards (no connecting line) */
.cards-num { list-style: none; counter-reset: card; margin: 30px auto 0; padding: 0; max-width: 1000px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cards-num li { counter-increment: card; background: var(--surface); border-radius: var(--radius); padding: 26px 28px 28px; border: 1px solid var(--rule-soft); }
.cards-num li::before {
  content: counter(card); display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--link); margin-bottom: 14px;
  font-family: var(--head); font-weight: 600; font-size: 1.5rem; color: var(--link);
}
.cards-num strong { display: block; margin-bottom: 4px; font-size: 1.14rem; }

/* Homepage three-feature row */
.features { list-style: none; margin: 30px auto 0; padding: 0; max-width: 1080px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.features li { background: var(--surface); border-radius: var(--radius); padding: 28px 26px; border: 1px solid var(--rule-soft); }
.features li::before {
  content: ""; display: block; width: 44px; height: 5px; margin-bottom: 18px;
  border-top: 1px solid var(--link); border-bottom: 1px solid var(--link);
}
.features strong { display: block; font-family: var(--head); font-weight: 600; font-size: 1.24rem; line-height: 1.3; margin-bottom: 8px; }

/* /for-dominants/: numbered rows, each its own card, numeral beside the text (no line) */
.steps-rows { list-style: none; counter-reset: row; margin: 30px auto 0; padding: 0; max-width: 52rem; display: grid; gap: 14px; }
.steps-rows li {
  counter-increment: row; position: relative; background: var(--surface); border-radius: var(--radius);
  padding: 22px 26px 22px 92px; border: 1px solid var(--rule-soft); min-height: 84px;
}
.steps-rows li::before {
  content: counter(row); position: absolute; left: 26px; top: 16px;
  font-family: var(--head); font-weight: 600; font-size: 2.7rem; line-height: 1; color: var(--link);
}
.steps-rows strong { display: block; font-size: 1.12rem; margin-bottom: 2px; }

/* Three cards with H3s (sub sketches, scene sketches) */
.trio { max-width: 1100px; margin: 30px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trio-card { background: var(--surface); border-radius: var(--radius); padding: 28px 26px 30px; border: 1px solid var(--rule-soft); }
.trio-card h3 { color: var(--link); padding-bottom: 14px; margin-bottom: 14px; border-bottom: 3px double var(--rule); }
.trio--scenes .trio-card { background: var(--raised); border-top: 3px solid var(--join); }

/* /for-dominants/: keeping habits */
.keep-list { list-style: none; margin: 30px auto 0; padding: 0; max-width: 1000px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.keep-list li { background: var(--surface); border-radius: var(--radius); padding: 24px 26px; border: 1px solid var(--rule-soft); }
.keep-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.keep-list strong { display: block; font-family: var(--head); font-weight: 600; font-size: 1.2rem; color: var(--link); margin-bottom: 6px; }

/* /senior-domination/: protocol glossary */
.glossary { margin: 30px auto 0; max-width: 1000px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.glossary-item { background: var(--surface); border-radius: var(--radius); padding: 24px 26px; border: 1px solid var(--rule-soft); }
.glossary dt { font-family: var(--head); font-weight: 600; font-size: 1.3rem; color: var(--link); margin-bottom: 6px; }
.glossary dd { margin: 0; }

/* Final Join panel */
.join-panel { max-width: 48rem; margin: 0 auto; padding: 44px 46px 46px; background: var(--surface); border-radius: 28px; border: 1px solid var(--rule); text-align: center; }
.join-panel p { font-size: 1.14rem; text-align: left; }
.join-panel p:last-of-type { margin-bottom: 30px; }

/* 404 */
.notfound { min-height: 40vh; }

/* Footer */
.footer { position: relative; background: var(--deep); padding: 54px 0 28px; color: var(--muted); font-size: 1rem; }
.footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer .brand-logo { width: 210px; }
.footer-title { font-family: var(--head); font-weight: 600; color: var(--ink); font-size: 1.1rem; margin: 0 0 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 0 0 8px; }
.footer a { color: var(--link); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--rule-soft); font-size: 0.92rem; }

/* Cookie banner */
.cookie { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--deep); border-top: 1px solid var(--rule); color: var(--ink); }
.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: 0.98rem; }
.cookie-inner a { color: var(--link); text-decoration: underline; }
.cookie-accept { background: var(--join); color: var(--on-join); border: 0; border-radius: 999px; min-height: 42px; padding: 0 24px; font-family: var(--body); font-weight: 700; font-size: 0.95rem; cursor: pointer; }
.cookie-accept:hover { background: var(--join-hover); }

/* Tablet and narrower: in-flow accordion menu */
@media (max-width: 1023.98px) {
  .header-inner { flex-wrap: wrap; gap: 12px; min-height: 68px; }
  .brand-logo { width: 170px; }
  .header-cta { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .mainnav { display: none; order: 3; width: 100%; margin: 0; padding: 4px 0 14px; border-top: 1px solid var(--rule-soft); }
  .mainnav.open { display: block; }
  .mainnav a { display: block; padding: 13px 6px; border-radius: 0; border-bottom: 1px solid var(--rule-soft); }
  .mainnav a.active { background: transparent; box-shadow: inset 3px 0 0 var(--link); padding-left: 16px; }
  .mainnav a.login-link { margin: 0; border: 0; border-bottom: 1px solid var(--rule-soft); padding: 13px 6px; }
  .hero-photo { width: 54%; }
  .hero-copy { max-width: 40%; }
  .features, .trio { grid-template-columns: 1fr; max-width: 640px; }
}

@media (max-width: 767.98px) {
  .container { padding: 0 16px; }
  .header-inner { min-height: 60px; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .brand svg, .brand-logo, .brand img { width: clamp(110px, 33vw, 240px); }
  .header-cta { gap: 8px; }
  .btn-sm { min-height: 44px; padding: 0 16px; font-size: 0.88rem; }

  /* Hero sized by the viewport height: header about 60px, cookie banner allowance 60px.
     The photo flexes above with an angled bottom edge; the copy block and Join Now sit pinned below. */
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; height: calc(100vh - 60px - 60px); height: calc(100svh - 60px - 60px); }
  .hero { min-height: 430px; }
  .hero-photo { position: relative; top: auto; right: auto; bottom: auto; width: 100%; flex: 1 1 auto; min-height: 100px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%); }
  .hero-line--gap { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 31px), 0 calc(100% - 3px)); }
  .hero-line--inner { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 35px), 0 calc(100% - 7px)); }
  .hero-photo picture { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 38px), 0 calc(100% - 10px)); }
  .hero-stage { flex: 0 0 auto; padding-top: 10px; padding-bottom: 12px; }
  .hero-copy { max-width: none; }
  .hero-copy::before { display: none; }
  .hero-heading { font-size: clamp(1.45rem, 6.4vw, 2rem); line-height: 1.15; margin-bottom: 8px; }
  .hero-strapline { font-size: 1rem; line-height: 1.45; margin-bottom: 12px; }
  .hero-btn { width: 100%; min-height: 50px; }

  body { font-size: 1.08rem; }
  .lead { font-size: 1.14rem; }
  .sec { padding: 44px 0; }
  .sec--first { padding-top: 40px; }
  .sec + .sec > .container::before { margin-bottom: 42px; }
  .band { padding: 50px 0; }
  .checklist, .cards-num, .keep-list, .glossary { grid-template-columns: 1fr; gap: 14px; }
  .steps-rows li { padding: 20px 20px 20px 70px; }
  .steps-rows li::before { left: 20px; font-size: 2.2rem; }
  .join-panel { padding: 30px 22px 30px; }

  /* Centrepiece table stacks into one card per row */
  .table-wrap { background: transparent; border: 0; border-radius: 0; overflow: visible; }
  .table-brings thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table-brings, .table-brings tbody, .table-brings tr, .table-brings th, .table-brings td { display: block; width: 100%; }
  .table-brings tr { background: var(--surface); border: 1px solid var(--rule-soft); border-radius: var(--radius); margin-bottom: 14px; }
  .table-brings tbody th { width: 100%; padding: 18px 20px 6px; border-bottom: 0; }
  .table-brings tbody td { padding: 0 20px 18px; border-bottom: 0; }
  .table-brings tbody td::before { content: attr(data-label); display: block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 2px; }

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

  .cookie-inner { padding: 7px 12px; gap: 10px; font-size: 0.88rem; justify-content: space-between; }
  .cookie-accept { min-height: 38px; padding: 0 16px; font-size: 0.88rem; }
}

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

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