/* BondBeyond — Couples Connection Check (/check)
   Design system from document 7, section 4. The red is #e00020 (section 13):
   it passes contrast at every size, as text on cream and under white text.
   Mobile-first, one column until 760px. */

:root {
  color-scheme: only light;
  --red: #e00020;
  --red-hover: #c4001c;
  --red-active: #a80018;
  --pink: #d81b60;
  --purple: #6a2c70;
  --yellow: #f9ed69;
  --ink: #010020;
  --ground: #fffde6;
  --surface: #ffffff;
  --muted: rgba(1, 0, 32, 0.68);
  --hairline: rgba(1, 0, 32, 0.12);
  --selected: rgba(216, 27, 96, 0.12);
  --on-dark: rgba(255, 253, 230, 0.82);
  --gutter: 20px;
  --content: 1100px;
  --reading: 720px;
  --section: 56px;
  --radius: 10px;
}
@media (min-width: 760px) { :root { --gutter: 40px; --section: 88px; } }

@font-face { font-family: 'Outfit'; src: url('/fonts/Outfit-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('/fonts/Outfit-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('/fonts/Outfit-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 17px/1.7 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.has-cc { padding-bottom: 200px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p, ol, ul, blockquote { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.6px; line-height: 1.08; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.band :focus-visible { outline-color: var(--ground); }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 12px 18px; background: var(--ink); color: var(--ground); font-weight: 700; }
.skip-link:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.shell { width: 100%; max-width: var(--content); margin-inline: auto; padding-inline: var(--gutter); }
.reading { width: 100%; max-width: var(--reading); margin-inline: auto; padding-inline: var(--gutter); }
.measure > p, .measure { max-width: 36em; }

/* ---------- Type ---------- */
.display { font-size: clamp(2.125rem, 1.4rem + 3vw, 3.25rem); }
.h2 { font-size: clamp(1.625rem, 1.35rem + 1.1vw, 2rem); line-height: 1.12; }
.h-result { font-size: clamp(1.75rem, 1.55rem + 0.8vw, 2rem); line-height: 1.15; }
.h-question { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.5625rem); line-height: 1.22; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; line-height: 1.4; text-transform: uppercase; color: var(--red); }
.kicker--muted { color: var(--muted); }
.kicker--rule::before { content: ''; display: inline-block; width: 28px; height: 1px; margin-right: 12px; vertical-align: middle; background: currentColor; }
.prose p + p { margin-top: 12px; }
.prose p { max-width: 36em; }
.prose .h2 + p { margin-top: 16px; }

/* ---------- Header ---------- */
.top { padding-block: 18px; }
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top--center .top__inner { justify-content: center; }
@media (min-width: 760px) { .top--center .top__inner { justify-content: space-between; } }
.wordmark { font-size: 16px; font-weight: 700; letter-spacing: -0.2px; color: var(--ink); text-decoration: none; }
.top__label { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* ---------- Buttons: default · hover · focus-visible · active · disabled · loading ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border: 1.5px solid var(--red); border-radius: 8px;
  background: transparent; color: var(--red);
  font: 700 13px/1.2 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  letter-spacing: 0.16em; text-transform: uppercase; text-align: center; text-decoration: none;
  cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: rgba(224, 0, 32, 0.06); }
.btn:active { background: rgba(224, 0, 32, 0.12); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; background: transparent; }
.btn--solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn--solid:hover { background: var(--red-hover); border-color: var(--red-hover); }
.btn--solid:active { background: var(--red-active); border-color: var(--red-active); }
.btn--light { border-color: rgba(255, 253, 230, 0.55); color: var(--ground); }
.btn--light:hover { background: rgba(255, 253, 230, 0.08); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 12px; }
.btn--block { width: 100%; }
@media (max-width: 759px) { .btn--mobile-block { width: 100%; } }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--red); border-right-color: transparent; animation: bb-spin .7s linear infinite;
}
.btn--solid.is-loading::after { border-color: #fff; border-right-color: transparent; }
@keyframes bb-spin { to { transform: rotate(360deg); } }

.btn-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; border: 0; background: none;
  font: 600 15px 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--red); text-decoration: none; cursor: pointer;
}
.btn-link:hover { text-decoration: underline; }

/* ---------- Landing ---------- */
/* Mobile: a wide crop of the photo above the copy, button straight after the
   sub-copy (doc 7, section 5). Desktop: copy left, photo right. */
.hero__inner { display: grid; gap: 24px; grid-template-areas: "media" "copy"; padding-block: 4px 40px; }
.hero__copy { grid-area: copy; }
.hero__media { grid-area: media; margin: 0 calc(var(--gutter) * -1); aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.hero__photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero h1 { max-width: 13ch; }
.hero__sub { margin-top: 18px; max-width: 32em; }
.hero__more { display: none; }
.hero__cta { margin-top: 28px; text-align: center; }
.reassure { margin-top: 12px; font-size: 14px; color: var(--muted); }
@media (min-width: 760px) {
  .hero__inner {
    grid-template-columns: 1.15fr 1fr; grid-template-areas: "copy media";
    column-gap: 56px; align-items: center; padding-block: 64px 88px;
  }
  .hero__media { margin: 0; aspect-ratio: 489 / 571; max-height: 560px; border-radius: var(--radius); }
  .hero__photo { object-position: 50% 50%; }
  .hero__more { display: inline; }
  .hero__cta { display: flex; align-items: center; gap: 20px; margin-top: 36px; text-align: left; }
  .reassure { margin-top: 0; }
}

.section { padding-block: var(--section); border-top: 1px solid var(--hairline); }

.explainer { display: grid; gap: 28px; grid-template-areas: "copy" "steps" "cta"; }
.explainer__copy { grid-area: copy; }
.explainer__cta { grid-area: cta; }
.steps { grid-area: steps; padding: 0; list-style: none; }
.steps li { display: flex; align-items: baseline; gap: 24px; padding-block: 16px; border-bottom: 1px solid var(--hairline); font-weight: 600; }
.steps li:last-child { border-bottom: 0; }
.steps__n { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--red); }
@media (min-width: 760px) {
  .explainer { grid-template-columns: 1fr 1fr; column-gap: 80px; grid-template-areas: "copy steps" "cta steps"; align-items: start; }
}

.patterns { display: grid; gap: 28px; grid-template-areas: "head" "tiles" "ask"; }
.patterns__head { grid-area: head; }
.tiles {
  grid-area: tiles; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding: 1px; list-style: none;
  background: var(--hairline);
}
.tile { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile__label { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; background: var(--surface); font-size: 14px; font-weight: 600; line-height: 1.3; }
.ask { grid-area: ask; }
.ask__title { font-size: 20px; line-height: 1.25; letter-spacing: -0.2px; }
.ask .btn { margin-top: 16px; }
.ask__note { margin-top: 12px; font-size: 13px; font-style: italic; color: var(--muted); }
@media (max-width: 759px) { .ask__note { text-align: center; } }
@media (min-width: 760px) {
  .patterns { grid-template-columns: 1fr 1fr; column-gap: 80px; grid-template-areas: "head ask" "tiles tiles"; align-items: end; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .tile { aspect-ratio: 1 / 1; }
}

/* Photograph placeholder until the pattern photographs arrive. */
.ph { background: linear-gradient(160deg, #ffffff 0%, #f6f2e4 100%); }

/* ---------- Footer ---------- */
.foot { padding-block: 28px 40px; border-top: 1px solid var(--hairline); font-size: 13px; line-height: 1.6; color: var(--muted); }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; }
.foot .wordmark { font-size: 14px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot__links a, .foot__btn { display: inline-flex; align-items: center; min-height: 32px; color: var(--muted); text-decoration: none; }
.foot__links a:hover, .foot__btn:hover { color: var(--ink); text-decoration: underline; }
.foot__btn { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.safety { margin-top: 14px; max-width: 60ch; }
.safety a { color: var(--ink); font-weight: 600; }

/* ---------- Quiz ---------- */
.quiz { padding-block: 12px 56px; }
.quiz__wrap, .email__wrap { max-width: 560px; margin-inline: auto; }
.progress { height: 2px; margin-top: 12px; overflow: hidden; border-radius: 2px; background: var(--hairline); }
.progress__bar { width: 10%; height: 100%; background: var(--red); transition: width .3s ease; }
.quiz .h-question { margin-top: 28px; }
.quiz .h-question:focus { outline: none; }
.answers { display: grid; gap: 10px; margin-top: 24px; }
.answer { position: relative; }
.answer input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.answer label {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 56px; padding: 14px 16px; border: 1px solid var(--hairline); border-radius: var(--radius);
  background: var(--surface); font-size: 16px; line-height: 1.45; cursor: pointer;
  transition: border-color .12s ease, background-color .12s ease;
}
.answer label:hover { border-color: var(--red); }
.answer input:checked + label { border-color: var(--red); background: var(--selected); }
.answer input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 3px; }
.answer input:disabled + label { opacity: 0.5; cursor: not-allowed; border-color: var(--hairline); }
.answer__check { flex: 0 0 18px; width: 18px; height: 18px; color: var(--red); opacity: 0; }
.answer input:checked + label .answer__check { opacity: 1; }
.qnav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.qnav .btn { min-width: 132px; margin-left: auto; }
.qnav .btn--grow { flex: 1 1 auto; }

/* ---------- Email capture ---------- */
.email { padding-block: 24px 56px; }
.circles { display: block; width: 48px; height: 30px; }
.circles circle { fill: none; stroke-width: 1.5; }
.circles .c1 { stroke: var(--red); }
.circles .c2 { stroke: var(--purple); }
.email h1 { margin-top: 20px; }
.email__lead { margin-top: 14px; }
.field { margin-top: 24px; }
.field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.input {
  width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid var(--hairline); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); font: 400 16px 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}
.input::placeholder { color: rgba(1, 0, 32, 0.45); }
.input:focus { border-color: var(--ink); }
.input[aria-invalid="true"] { border-color: var(--red); }
.field__error { margin-top: 8px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--red); }
.check { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; font-size: 15px; line-height: 1.5; cursor: pointer; }
.check input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); }
.email .btn--block { margin-top: 22px; }
.promise { margin-top: 12px; font-size: 13px; line-height: 1.5; text-align: center; color: var(--muted); }
.email__back { margin-top: 20px; }

/* ---------- Result ---------- */
.r-intro { padding-block: 0 var(--section); }
.r-photo { aspect-ratio: 1 / 1; margin-inline: calc(var(--gutter) * -1); overflow: hidden; }
.r-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 760px) { .r-photo { aspect-ratio: 4 / 3; margin-inline: 0; border-radius: var(--radius); } }
.r-kicker { margin-top: 32px; }
.r-intro h1 { margin-top: 14px; }
.r-body { margin-top: 22px; }
.r-body p + p { margin-top: 14px; }
.r-emph { margin-top: 28px; font-size: 22px; font-weight: 700; line-height: 1.35; letter-spacing: -0.2px; max-width: 30em; }
.r-emph em { font-style: normal; color: var(--red); }
.r-after { margin-top: 14px; color: var(--muted); }

.r-exercise { padding-block: 40px var(--section); border-top: 1px solid var(--hairline); background: var(--surface); }
.ex { margin-top: 18px; }
.ex > * + * { margin-top: 14px; }
.ex-display { margin-block: 22px !important; font-size: 44px; font-weight: 700; line-height: 1.1; letter-spacing: -0.8px; color: var(--red); }
.ex-swap { overflow: hidden; border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--ground); }
.ex-swap__row { padding: 14px 16px; }
.ex-swap__row + .ex-swap__row { border-top: 1px solid var(--hairline); }
.ex-swap__row .kicker { font-size: 11px; }
.ex-swap del { color: var(--muted); }
.ex-swap p + p { margin-top: 6px; }
.ex-swap__try { font-weight: 600; }
.ex-strong { font-size: 21px; font-weight: 700; line-height: 1.3; letter-spacing: -0.2px; color: var(--red); }
.ex-quote { padding-left: 14px; border-left: 2px solid var(--red); font-weight: 700; }
.ex-muted { color: var(--muted); }
.ex-muted + .ex-muted { margin-top: 4px; }
.ex-q { margin-top: 18px !important; padding-top: 18px; border-top: 1px solid var(--hairline); }
.ex-q .kicker { margin-bottom: 8px; }
.ex-q__text { font-size: 23px; font-weight: 700; line-height: 1.25; letter-spacing: -0.3px; color: var(--red); }
.ex-q + :not(.ex-q) { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--hairline); }
.ex-lead { font-size: 19px; font-weight: 700; line-height: 1.4; }
.ex-lead--muted { color: var(--muted); }

/* The dark BondBeyond band — the one dark field. */
.band {
  padding-block: 56px 64px; color: var(--ground);
  background:
    radial-gradient(ellipse 60% 50% at 85% 0%, rgba(224, 0, 32, 0.22), transparent 70%),
    radial-gradient(ellipse 50% 45% at 70% 90%, rgba(106, 44, 112, 0.35), transparent 70%),
    var(--ink);
}
.band .kicker { color: var(--yellow); }
.band h2 { max-width: 16em; margin-top: 14px; color: #fff; font-size: clamp(1.75rem, 1.55rem + 0.8vw, 2rem); line-height: 1.15; }
.band__copy p { max-width: 34em; margin-top: 14px; color: var(--on-dark); }
.band__cta { margin-top: 28px; }
.band__cta .btn { width: 100%; }
.band__note { margin-top: 10px; font-size: 13px; text-align: center; color: rgba(255, 253, 230, 0.72); }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
@media (min-width: 760px) {
  .band { padding-block: 88px; }
  .band__cta { display: flex; align-items: center; gap: 16px; }
  .band__cta .btn { width: auto; }
  .band__note { margin-top: 0; text-align: left; }
}

/* ---------- Partner invitation ---------- */
.join { padding-block: 40px 64px; text-align: center; }
.join__wrap { max-width: 540px; margin-inline: auto; }
.join .circles { margin-inline: auto; }
.join .kicker { margin-top: 28px; }
.h-join { margin-top: 14px; font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem); line-height: 1.12; }
.join__lead { margin-top: 16px; }
.join__copy { margin-top: 12px; color: var(--muted); }
.join .btn { width: 100%; margin-top: 28px; }
.join .stores { justify-content: center; }
.join .stores .btn { width: auto; margin-top: 0; }
.join__note { margin-top: 12px; font-size: 13px; color: var(--muted); }
@media (min-width: 760px) {
  .join { padding-block: 96px 120px; text-align: left; }
  .join__wrap { margin-inline: 0; }
  .join .circles { margin-inline: 0; }
  .join .btn { width: auto; }
  .join .stores { justify-content: flex-start; }
}

/* ---------- Support page ---------- */
.support { padding-block: 32px 64px; }
.support ul { margin-top: 16px; padding-left: 1.2em; }
.support li + li { margin-top: 8px; }
.support a { font-weight: 600; }

/* ---------- Cookie banner ---------- */
.cc {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; max-width: 560px; margin-inline: auto;
  padding: 16px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface);
  box-shadow: 0 12px 40px rgba(1, 0, 32, 0.18); font-size: 14px; line-height: 1.5;
}
.cc a { color: var(--ink); font-weight: 600; }
.cc__actions { display: flex; gap: 10px; margin-top: 12px; }
.cc__actions .btn { flex: 1 1 0; }

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