/* Go Dogging: Bronze Dusk. Cinzel 600 headings, Raleway 400/600 body. Sharp corners throughout. */

@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/cinzel-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/raleway-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/raleway-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #1a1410;
  --surface: #261d17;
  --tint: #2e2119;
  --raised: #2e2119;
  --join-band: #33241a;
  --deep: #120e0b;
  --ink: #f5efe9;
  --muted: #c8bdb5;
  --join: #c2703d;
  --join-hover: #d4814c;
  --on-join: #14100e;
  --link: #f0a873;
  --line: rgba(240, 168, 115, 0.2);
  --line-strong: rgba(240, 168, 115, 0.5);
  --mark-moon: #f0a873;
  --head: "Cinzel", Georgia, "Times New Roman", serif;
  --body: "Raleway", "Segoe UI", Arial, sans-serif;
}

*, *::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.0625rem;
  line-height: 1.72;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }

h1, h2, h3 { font-family: var(--head); font-weight: 600; color: var(--ink); letter-spacing: 0.015em; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.16; margin: 0 0 0.6em; }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); line-height: 1.22; margin: 2.2em 0 0.55em; }
.prose > h2:first-child, .prose > h1:first-child { margin-top: 0; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.prose { max-width: 46rem; margin: 0 auto; }
.lead { font-size: 1.14rem; color: var(--ink); }

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  text-decoration: none; border: 0; border-radius: 0; 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: 2px; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.82rem; }
.btn-lg { min-height: 54px; padding: 0 34px; font-size: 0.95rem; }

/* Header: solid bar */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--deep); border-bottom: 1px solid var(--line-strong); }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; flex: 0 0 auto; }
.brand-logo { width: 176px; 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: 600; font-size: 0.92rem;
  padding: 10px 14px; letter-spacing: 0.02em; border-bottom: 2px solid transparent;
}
.mainnav a:hover { color: var(--link); }
.mainnav a.active { color: var(--link); border-bottom-color: var(--join); }
.mainnav a.login-link { margin-left: 8px; border: 1px solid var(--line-strong); padding: 9px 16px; }
.mainnav a.login-link:hover { border-color: var(--link); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none; width: 44px; height: 42px; padding: 0; background: transparent;
  border: 1px solid var(--line-strong); 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: framed floating card. The photo sits in a framed window; the copy card overlaps its left edge,
   clear of the photo's centre third. */
.hero { padding: 40px 0 64px; }
.hero-stage { position: relative; display: flex; align-items: center; min-height: clamp(470px, 66vh, 660px); }
.hero-window {
  position: absolute; top: 0; bottom: 0; right: 28px; left: calc(28px + 25%);
  background: var(--deep); border: 1px solid var(--line-strong); padding: 10px;
}
.hero-window::before {
  content: ""; position: absolute; inset: 0; transform: translate(16px, 16px);
  border: 1px solid var(--line); z-index: -1; pointer-events: none;
}
.hero-window picture { display: block; width: 100%; height: 100%; }
.hero-window img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-card {
  position: relative; z-index: 2; width: min(470px, 41%);
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--join);
  padding: 40px 40px 38px; box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}
.hero-heading {
  font-family: var(--head); font-weight: 600; color: var(--ink);
  font-size: clamp(2rem, 3.2vw, 2.85rem); line-height: 1.12; letter-spacing: 0.01em; margin: 0 0 16px;
}
.hero-strapline { color: var(--muted); font-size: 1.12rem; line-height: 1.6; margin: 0 0 28px; }

/* Signature detail: the logo mark repeated small as a section divider */
.mark-divider { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--muted); padding: 4px 28px; }
.mark-divider span { flex: 0 1 150px; height: 1px; background: var(--line-strong); }
.mark-divider svg { flex: 0 0 auto; width: 30px; height: 30px; }

/* Sections and bands */
.section { padding: 56px 0; }
.section--first { padding-top: 60px; }
.band { padding: 66px 0; }
.band--tint { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band--surface { background: var(--surface); }
.band--join { background: var(--join-band); border-top: 1px solid var(--line-strong); }
.join-panel { max-width: 46rem; margin: 0 auto; }
.join-panel p { font-size: 1.1rem; margin-bottom: 26px; }

/* 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); }

/* Three-feature row and origin pair */
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1040px; margin: 30px auto; }
.origin-pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 880px; margin: 26px auto 30px; }
.feature-card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--join); padding: 24px 24px 22px; }
.feature-card p { margin: 0; }

/* Checklist */
.checklist { list-style: none; margin: 26px auto 30px; padding: 0; max-width: 880px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.checklist li { position: relative; background: var(--surface); border: 1px solid var(--line); padding: 22px 22px 20px 56px; }
.checklist li::before {
  content: ""; position: absolute; left: 22px; top: 27px; width: 16px; height: 16px;
  border: 2px solid var(--join);
}
.checklist li::after {
  content: ""; position: absolute; left: 27px; top: 29px; width: 6px; height: 10px;
  border-right: 2px solid var(--link); border-bottom: 2px solid var(--link); transform: rotate(45deg);
}
.checklist strong { display: block; color: var(--ink); margin-bottom: 4px; }

/* Numbered how-it-works cards: separate boxes, no connecting line */
.steps { list-style: none; counter-reset: step; margin: 28px auto 0; padding: 0; max-width: 900px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.steps li { counter-increment: step; background: var(--bg); border: 1px solid var(--line); padding: 22px 22px 22px; }
.steps li::before {
  content: counter(step); display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: 14px; background: var(--link); color: var(--on-join);
  font-family: var(--head); font-weight: 600; font-size: 1.2rem;
}
.steps strong { display: block; margin-bottom: 4px; }

/* Definition callout */
.definition { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--join); padding: 22px 26px; margin: 4px 0 24px; font-size: 1.1rem; }

/* Comparison table */
.table-wrap { max-width: 1080px; margin: 28px auto 32px; }
.compare { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); font-size: 0.98rem; line-height: 1.5; }
.compare thead th { background: #3a2a1f; color: var(--ink); text-align: left; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 14px 16px; border-bottom: 2px solid var(--join); }
.compare tbody th, .compare tbody td { text-align: left; vertical-align: top; padding: 15px 16px; border-bottom: 1px solid var(--line); }
.compare tbody th { font-weight: 600; color: var(--ink); }
.compare tbody td { color: var(--muted); }
.compare tr.is-site { background: #3a2618; }
.compare tr.is-site th { color: var(--link); box-shadow: inset 3px 0 0 var(--join); }
.compare tr.is-site td { color: var(--ink); }

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

/* Footer */
.footer { background: var(--deep); border-top: 1px solid var(--line-strong); padding: 48px 0 28px; color: var(--muted); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer .brand-logo { width: 196px; }
.footer-title { font-family: var(--head); font-weight: 600; color: var(--ink); font-size: 1rem; margin: 0 0 12px; letter-spacing: 0.04em; }
.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(--line); font-size: 0.88rem; }

/* Cookie banner */
.cookie { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #0f0b09; border-top: 1px solid var(--line-strong); 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.92rem; }
.cookie-inner a { color: var(--link); text-decoration: underline; }
.cookie-accept { background: var(--join); color: var(--on-join); border: 0; border-radius: 0; min-height: 40px; padding: 0 20px; font-family: var(--body); font-weight: 600; font-size: 0.9rem; 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: 160px; }
  .header-cta { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .mainnav { display: none; order: 3; width: 100%; margin: 0; padding: 4px 0 12px; border-top: 1px solid var(--line); }
  .mainnav.open { display: block; }
  .mainnav a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .mainnav a.active { border-bottom-color: var(--line); box-shadow: inset 3px 0 0 var(--join); padding-left: 14px; }
  .mainnav a.login-link { margin: 0; border: 0; border-bottom: 1px solid var(--line); padding: 13px 4px; }
  .hero-window { left: calc(28px + 29%); }
  .hero-card { width: min(440px, 50%); padding: 32px 30px 30px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@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: 40px; padding: 0 14px; font-size: 0.78rem; }

  /* Hero sized by the viewport height: header about 60px, cookie banner allowance 56px.
     The photo window flexes; the card and its Join Now button sit pinned at the bottom. */
  .hero { padding: 0; height: calc(100vh - 60px - 56px); height: calc(100svh - 60px - 56px); min-height: 420px; }
  .hero-stage { display: flex; flex-direction: column; align-items: stretch; height: 100%; min-height: 0; padding-top: 12px; padding-bottom: 10px; }
  .hero-window { position: relative; inset: auto; flex: 1 1 auto; min-height: 90px; padding: 6px; }
  .hero-window::before { display: none; }
  .hero-card { flex: 0 0 auto; width: auto; margin: -34px 10px 0; padding: 16px 16px 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6); }
  .hero-heading { font-size: clamp(1.5rem, 7vw, 2rem); line-height: 1.14; margin-bottom: 8px; }
  .hero-strapline { font-size: 0.98rem; line-height: 1.45; margin-bottom: 12px; }
  .hero-btn { width: 100%; min-height: 50px; }

  body { font-size: 1.03rem; }
  .section { padding: 42px 0; }
  .section--first { padding-top: 40px; }
  .band { padding: 46px 0; }
  .feature-row, .origin-pair, .checklist, .steps { grid-template-columns: 1fr; gap: 14px; }

  /* Comparison table stacks into one card per row */
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare { border: 0; background: transparent; }
  .compare tr { background: var(--surface); border: 1px solid var(--line); margin-bottom: 14px; }
  .compare tbody th { padding: 14px 16px 10px; border-bottom: 1px solid var(--line); font-family: var(--head); font-size: 1.05rem; }
  .compare tbody td { padding: 10px 16px; display: grid; grid-template-columns: 8.5rem 1fr; gap: 10px; }
  .compare tbody td::before { content: attr(data-label); color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
  .compare tbody tr td:last-child { border-bottom: 0; }
  .compare tr.is-site td { color: var(--ink); }
  .compare tr.is-site td::before { color: var(--muted); }

  .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.84rem; justify-content: space-between; }
  .cookie-accept { min-height: 36px; padding: 0 16px; font-size: 0.86rem; }
}

@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: 49% 41% !important; }
}
@media (max-width: 767px) {
  picture img { object-position: 50% 50% !important; }
}
