/* Copper Harbour — dopamine bold colour, CSS variables + nesting */
:root {
  --white: #ffffff;
  --ink: #12141a;
  --ink-soft: #3a3f4b;
  --blue: #1a5cff;
  --blue-deep: #0d3ecc;
  --magenta: #ff2d8a;
  --magenta-soft: #ff5aa3;
  --surface: #f4f7ff;
  --surface-tint: #e8efff;
  --rule: rgba(18, 20, 26, 0.12);
  --shadow: 0 8px 28px rgba(26, 92, 255, 0.12);
  --inner: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  --radius: 14px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 2.75rem;
  --space-5: 4.5rem;
  --max: 72rem;
  --font: "Libre Baskerville", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --age-h: 2.4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--white);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cpath fill='none' stroke='%231a5cff' stroke-opacity='0.055' stroke-width='1' d='M10 90c20-35 50-55 80-55s60 20 80 55c-20 35-50 55-80 55s-60-20-80-55z'/%3E%3Cpath fill='none' stroke='%23ff2d8a' stroke-opacity='0.04' stroke-width='1' d='M30 90c15-25 35-40 60-40s45 15 60 40c-15 25-35 40-60 40s-45-15-60-40z'/%3E%3C/svg%3E");
  padding-top: var(--age-h);
  padding-bottom: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--magenta);
  text-decoration: none;
  font-weight: 700;
}

a::before {
  content: "· ";
  color: var(--blue);
  font-weight: 700;
}

a:hover {
  color: var(--blue-deep);
}

nav a::before,
.site-logo a::before,
.cta::before,
.age-bar a::before,
.cookie-banner a::before,
.safety-card a::before,
.footer-nav a::before,
.skip::before {
  content: none;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 var(--space-2);
  color: var(--ink);
}

h1 {
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
}

h2::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 4px;
  margin: 0.85rem auto 0;
  background: linear-gradient(90deg, var(--blue), var(--magenta));
  border-radius: 2px;
}

h2.left::after,
.section-head h2::after {
  margin-left: 0;
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 var(--space-2);
  color: var(--ink-soft);
}

.accent {
  color: var(--magenta);
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 0.5rem;
  top: calc(var(--age-h) + 0.5rem);
}

/* Age bar — pinned top */
.age-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  min-height: var(--age-h);
  display: flex;
  align-items: center;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  line-height: 1.35;
}

.age-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.45rem;
}

.age-bar a {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}

.age-bar strong {
  color: var(--magenta-soft);
}

/* Header */
.site-header {
  background: var(--blue);
  color: #fff;
  padding: var(--space-2) 0;
  position: relative;
  overflow: hidden;
}

.site-header::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: -3rem;
  width: 14rem;
  height: 14rem;
  background: var(--magenta);
  transform: rotate(18deg);
  opacity: 0.85;
  border-radius: var(--radius);
  pointer-events: none;
}

.site-header .wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}

.site-logo::before {
  content: none;
}

.site-logo img,
.site-logo svg {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #fff;
  padding: 4px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.site-nav a {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
  color: #fff;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  border-radius: 10px;
  padding: 0.4rem 0.7rem;
  font-family: var(--font);
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: 0.5rem;
  }

  .site-nav.is-open {
    display: flex;
  }
}

/* Hero — colour-blocked + diagonal */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 48%, var(--magenta) 100%);
  color: #fff;
  padding: var(--space-5) 0 var(--space-4);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  margin-bottom: var(--space-3);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(24deg, transparent 55%, rgba(255, 255, 255, 0.08) 55.2%, rgba(255, 255, 255, 0.08) 72%, transparent 72.2%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
}

@media (max-width: 860px) {
  .hero {
    clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
  }

  .hero .wrap {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  color: #fff;
  margin-bottom: var(--space-2);
  max-width: 14ch;
}

.hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
  max-width: 38ch;
}

.hero-stats {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  box-shadow: var(--inner);
  padding: var(--space-3);
}

.hero-stats dl {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.hero-stats dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
  margin: 0;
}

.hero-stats dd {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 700;
  color: #fff;
}

.hero-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.indep-note {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--inner);
  border: 1px solid var(--rule);
  padding: var(--space-2) var(--space-3);
  margin: calc(-1 * var(--space-2)) auto var(--space-4);
  position: relative;
  z-index: 2;
  font-size: 0.95rem;
}

.indep-note strong {
  color: var(--blue);
}

/* Sections */
.section {
  padding: var(--space-4) 0;
}

.section-tint {
  background: var(--surface);
}

.section-head {
  margin-bottom: var(--space-3);
  max-width: 42rem;
}

.section-head p {
  font-size: 1.08rem;
}

.divider {
  display: flex;
  justify-content: center;
  margin: var(--space-2) 0;
}

.divider span {
  width: 3.25rem;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), var(--magenta));
}

/* Honesty note */
.honesty {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr 1fr;
  margin-bottom: var(--space-4);
}

@media (max-width: 700px) {
  .honesty {
    grid-template-columns: 1fr;
  }
}

.honesty article {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow), var(--inner);
  padding: var(--space-3);
}

.honesty h3 {
  color: var(--blue);
}

.honesty article:last-child h3 {
  color: var(--magenta);
}

/* Showcase rows */
.showcase-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.op-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-3);
  align-items: center;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow), var(--inner);
  padding: var(--space-3);
  position: relative;
}

@media (max-width: 800px) {
  .op-row {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

.op-logo {
  width: 88px;
  height: 64px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--rule);
  padding: 0.4rem;
  flex-shrink: 0;
}

.op-logo img {
  max-height: 48px;
  max-width: 76px;
  object-fit: contain;
}

.op-logo-fallback {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--blue);
  text-align: center;
}

.op-body h3 {
  margin-bottom: 0.35rem;
}

.op-body p {
  margin-bottom: 0.75rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--surface-tint);
  color: var(--ink);
  border: 1px solid transparent;
}

.badge::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--magenta);
  flex-shrink: 0;
}

.badge.blue::before {
  background: var(--blue);
}

.op-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  min-width: 9rem;
}

@media (max-width: 800px) {
  .op-action {
    align-items: flex-start;
  }
}

.score {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
  background: var(--magenta);
  color: #fff;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  box-shadow: var(--inner);
}

.score b {
  font-size: 1.45rem;
}

.score span {
  font-size: 0.85rem;
  opacity: 0.9;
}

.cta {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  font-size: 1.05rem;
}

.cta::before {
  content: none;
}

.cta:hover {
  color: var(--magenta);
}

.cta-secondary {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
}

.cta-secondary::before {
  content: "[ ";
  color: var(--blue);
}

.cta-secondary::after {
  content: " ]";
  color: var(--blue);
}

.cta-secondary:hover {
  color: var(--magenta);
}

.op-note {
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin: 0;
}

.aff-disclosure {
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: #fff7fb;
  border: 1px solid rgba(255, 45, 138, 0.25);
  border-radius: var(--radius);
  box-shadow: var(--inner);
  font-size: 0.92rem;
}

/* Criterion breakdown */
.criteria {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.criterion {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow), var(--inner);
  padding: var(--space-3);
  overflow: hidden;
}

.criterion-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.rank-list {
  list-style: none;
  margin: var(--space-2) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.rank-list li {
  display: grid;
  grid-template-columns: 2.2rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0.85rem;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--rule);
}

.rank-num {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--magenta);
}

.rank-score {
  font-weight: 700;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.method-box {
  background: linear-gradient(135deg, var(--surface) 0%, #fff 60%);
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow), var(--inner);
  padding: var(--space-3);
}

.method-box ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.method-box li {
  margin-bottom: 0.45rem;
}

/* Safety cards */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}

@media (max-width: 900px) {
  .safety-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .safety-grid {
    grid-template-columns: 1fr;
  }
}

.safety-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow), var(--inner);
  padding: var(--space-3) var(--space-2);
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}

.safety-card::before {
  content: none;
}

.safety-card:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.safety-card img {
  height: 42px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

/* FAQ */
.faq-groups {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 760px) {
  .faq-groups {
    grid-template-columns: 1fr;
  }
}

.faq-group h3 {
  color: var(--blue);
  margin-bottom: var(--space-2);
}

.faq-item {
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px dashed var(--rule);
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-item h4 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

/* Stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin: var(--space-3) 0;
}

@media (max-width: 600px) {
  .stats-strip {
    grid-template-columns: 1fr;
  }
}

.stat {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  box-shadow: var(--inner);
  padding: var(--space-2) var(--space-3);
  text-align: center;
}

.stat b {
  display: block;
  font-size: 1.8rem;
  color: var(--magenta);
  line-height: 1.1;
}

.stat span {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.updated {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Disclaimer */
.disclaimer {
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--rule);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-4) 0 var(--space-3);
  margin-top: var(--space-4);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/logo.svg");
  background-repeat: no-repeat;
  background-position: right 8% bottom 20%;
  background-size: 140px;
  opacity: 0.08;
  pointer-events: none;
  filter: invert(1);
}

.site-footer .wrap {
  position: relative;
  z-index: 1;
}

.site-footer a {
  color: #fff;
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--magenta-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-nav a::before {
  content: "· ";
  color: var(--magenta-soft);
}

.footer-copy {
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: var(--space-2);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fff;
  padding: 3px;
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--blue);
  color: #fff;
  padding: var(--space-4) 0;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
  margin-bottom: var(--space-3);
}

.page-hero::after {
  content: "";
  position: absolute;
  width: 40%;
  height: 100%;
  right: -5%;
  top: 0;
  background: var(--magenta);
  transform: skewX(-12deg);
  opacity: 0.9;
}

.page-hero .wrap {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: #fff;
  max-width: 16ch;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 40ch;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: var(--space-4);
}

.prose h2:first-child {
  margin-top: 0;
}

.figure {
  margin: var(--space-3) 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--rule);
}

.figure img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.figure figcaption {
  font-size: 0.85rem;
  padding: 0.65rem 1rem;
  background: var(--surface);
  color: var(--ink-soft);
}

.support-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.support-table th,
.support-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}

.support-table th {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.support-table tr:nth-child(even) td {
  background: var(--surface);
}

.contact-layout {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 800px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-form {
  display: grid;
  gap: var(--space-2);
  max-width: 32rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow), var(--inner);
  padding: var(--space-3);
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font);
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink);
}

.contact-form button {
  justify-self: start;
  background: none;
  border: none;
  color: var(--blue);
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
  padding: 0.35rem 0;
}

.contact-form button:hover {
  color: var(--magenta);
}

.form-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0;
}

.form-status {
  display: none;
  padding: var(--space-2);
  background: var(--surface-tint);
  border-radius: 12px;
  border: 1px solid var(--rule);
  color: var(--ink);
  font-weight: 600;
}

.form-status.is-visible {
  display: block;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  background: #fff;
  border-top: 3px solid var(--magenta);
  box-shadow: 0 -8px 28px rgba(18, 20, 26, 0.12);
  padding: var(--space-2) 0;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  justify-content: space-between;
}

.cookie-banner p {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 0.92rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.cookie-actions button {
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  background: none;
  border: none;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
  padding: 0.25rem 0;
}

.cookie-actions button:hover {
  color: var(--magenta);
}

.cookie-actions a {
  font-size: 0.9rem;
}

body.has-cookie-banner {
  padding-bottom: 6.5rem;
}

.rg-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-top: var(--space-2);
}
