:root {
  --ink: #10231d;
  --ink-soft: #294239;
  --paper: #fffdf6;
  --paper-warm: #f5f0e4;
  --moss: #13724f;
  --moss-deep: #075137;
  --sky: #75c5e8;
  --sun: #ffd64f;
  --coral: #f36655;
  --line: rgba(16, 35, 29, 0.14);
  --shadow: 0 22px 56px rgba(6, 32, 23, 0.16);
  --radius-lg: 28px;
  --radius-md: 18px;
  --site-width: 1120px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 5% 3%, rgba(117, 197, 232, 0.30), transparent 24rem),
    radial-gradient(circle at 95% 8%, rgba(255, 214, 79, 0.24), transparent 22rem),
    var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.58;
}

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

a { color: var(--moss-deep); text-decoration-thickness: 0.1em; text-underline-offset: 0.16em; }

a:hover { color: var(--coral); }

a:focus-visible,
button:focus-visible {
  border-radius: 6px;
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: -100%;
  left: 1rem;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: white;
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  border-bottom: 1px solid rgba(16, 35, 29, 0.08);
  background: rgba(255, 253, 246, 0.88);
  backdrop-filter: blur(16px);
}

.nav,
.shell {
  width: min(calc(100% - 2.5rem), var(--site-width));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.7rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-decoration: none;
}

.brand:hover { color: var(--ink); }

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 0.62rem;
  background: center / cover no-repeat url("/assets/copu-icon.png");
  box-shadow: 2px 3px 0 rgba(16, 35, 29, 0.24);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem 1.15rem;
  font-size: 0.92rem;
  font-weight: 720;
}

.nav-links a { color: var(--ink-soft); text-decoration: none; }

.nav-links a:hover { color: var(--coral); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.92fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6.5rem);
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(4.5rem, 8vw, 7rem);
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 1rem;
  color: var(--moss-deep);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2,
h3 { line-height: 1.02; }

h1 {
  max-width: 10ch;
  margin-bottom: 1.3rem;
  font-size: clamp(3.2rem, 8.1vw, 6.8rem);
  letter-spacing: -0.075em;
}

h2 {
  max-width: 14ch;
  margin-bottom: 1rem;
  font-size: clamp(2.15rem, 4.3vw, 4rem);
  letter-spacing: -0.06em;
}

h3 { font-size: 1.25rem; letter-spacing: -0.02em; }

.lead {
  max-width: 43rem;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.55vw, 1.3rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.actions-centered { justify-content: center; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.75rem 1.15rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--sun);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); color: var(--ink); }

.button-alt { background: var(--paper); }

.button-muted {
  border-color: rgba(16, 35, 29, 0.32);
  background: rgba(16, 35, 29, 0.08);
  box-shadow: none;
  color: var(--ink-soft);
  cursor: default;
}

.hero-art {
  position: relative;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--moss-deep);
  box-shadow: 12px 12px 0 var(--coral);
  transform: rotate(2deg);
}

.hero-art::after {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  content: "MATCH · DEFEND";
  padding: 0.38rem 0.62rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.hero-art img { width: 100%; aspect-ratio: 1.65 / 1; object-fit: cover; }

.band { padding: clamp(4.5rem, 8vw, 7rem) 0; }

.band-moss {
  background:
    radial-gradient(circle at 91% 8%, rgba(255, 214, 79, 0.14), transparent 21rem),
    var(--moss-deep);
  color: var(--paper);
}

.band-moss .eyebrow { color: var(--sun); }
.band-moss .section-copy { color: rgba(255, 253, 246, 0.82); }

.section-heading { max-width: 43rem; }
.section-copy { max-width: 44rem; color: var(--ink-soft); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.1rem;
}

.card {
  min-height: 15rem;
  padding: 1.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 246, 0.85);
}

.band-moss .card { border-color: rgba(255, 253, 246, 0.18); background: rgba(255, 253, 246, 0.10); }

.card-number {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  margin-bottom: 2rem;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(290px, 0.8fr);
  align-items: center;
  gap: clamp(2.5rem, 8vw, 7rem);
}

.phone-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  min-width: 0;
}

.phone-shot {
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 1.45rem;
  background: var(--ink);
  box-shadow: 8px 8px 0 var(--sky);
}

.phone-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.phone-shot:last-child { margin: 0 0 1.8rem; box-shadow: 8px 8px 0 var(--sun); transform: rotate(3deg); }

.feature-list { display: grid; gap: 1rem; margin: 2rem 0 0; padding: 0; list-style: none; }

.feature-list li {
  padding: 0.9rem 0 0.9rem 2.1rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-weight: 680;
}

.feature-list li::before {
  position: absolute;
  top: 0.92rem;
  left: 0.1rem;
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid var(--ink);
  border-radius: 0.33rem;
  background: var(--sun);
  content: "";
}

.closing {
  padding: clamp(4.2rem, 8vw, 7rem) 0;
  text-align: center;
}

.closing h2 { max-width: 17ch; margin-right: auto; margin-left: auto; }
.closing p { max-width: 39rem; margin-right: auto; margin-left: auto; color: var(--ink-soft); }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-warm);
  padding: 2.5rem 0;
}

.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; }
.footer-inner p { margin: 0.6rem 0 0; color: var(--ink-soft); font-size: 0.9rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.45rem 1rem; font-size: 0.9rem; }

.legal-page { padding: clamp(3.5rem, 7vw, 6rem) 0; }

.legal-intro { max-width: 48rem; margin-bottom: 3.25rem; }
.legal-intro h1 { max-width: 15ch; font-size: clamp(2.8rem, 6vw, 5rem); }
.legal-intro p { max-width: 44rem; color: var(--ink-soft); }

.legal-content {
  max-width: 52rem;
  padding: clamp(1.2rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
}

.legal-content h2 { max-width: none; margin-top: 2.6rem; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content ul { padding-left: 1.25rem; }
.legal-content li + li { margin-top: 0.48rem; }

.notice {
  margin: 1.4rem 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--coral);
  border-radius: 0 0.75rem 0.75rem 0;
  background: #fff0d5;
  color: #5d321e;
}

.faq { display: grid; gap: 1rem; margin-top: 2rem; }
.faq details { padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 1rem; background: rgba(255,255,255,0.65); }
.faq summary { cursor: pointer; font-weight: 850; }
.faq p { margin: 0.9rem 0 0; color: var(--ink-soft); }

.support-card {
  max-width: 44rem;
  margin: 2rem 0;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--sun);
  box-shadow: 8px 8px 0 var(--coral);
}

.support-card h2 { max-width: none; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.support-card p { margin-bottom: 0; }

.not-found { min-height: calc(100vh - 12rem); display: grid; place-items: center; text-align: center; }
.not-found .shell { max-width: 45rem; }
.not-found h1 { max-width: none; margin-right: auto; margin-left: auto; }

/* ---------------------------------------------------------------- LEGAL PAGES
   The privacy policy and terms are long documents, not landing copy. They need
   a contents list, readable data tables, and one loud marker for any legal
   value that is still unresolved. */

.legal-updated {
  display: inline-block;
  margin-bottom: 0.4rem;
  padding: 0.3rem 0.7rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-warm);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.legal-toc {
  max-width: 44rem;
  margin: 0 0 2.4rem;
  padding: 1.3rem 1.5rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
}

.legal-toc h2 { margin: 0 0 0.9rem; font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; }
.legal-toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; font-size: 0.94rem; }
.legal-toc li { margin-bottom: 0.42rem; break-inside: avoid; }
.legal-toc a { color: var(--ink-soft); }
.legal-toc a:hover { color: var(--coral); }

.legal-content h3 { margin-top: 1.9rem; font-size: 1.08rem; }
.legal-content h2 + p, .legal-content h3 + p { margin-top: 0.7rem; }

/* A table can be wider than a phone. It scrolls inside its own box so the page
   body never scrolls sideways. */
.legal-scroll { overflow-x: auto; margin: 1.4rem 0; }

.legal-table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.93rem; }
.legal-table caption { margin-bottom: 0.7rem; color: var(--ink-soft); font-size: 0.88rem; text-align: left; }
.legal-table th, .legal-table td { padding: 0.7rem 0.8rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table thead th { background: var(--paper-warm); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.legal-table tbody th { width: 30%; font-weight: 750; }

.legal-identity { margin: 1.2rem 0 0; }
.legal-identity dt { color: var(--ink-soft); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.legal-identity dd { margin: 0.2rem 0 1rem; font-weight: 650; }

/* Any bracketed value that the controller still has to supply. The deployment
   guard refuses to publish while one of these is left in a public file; this
   makes the same hole impossible to miss by eye. */
.todo {
  padding: 0.05rem 0.4rem;
  border: 2px dashed var(--coral);
  border-radius: 0.4rem;
  background: rgba(243, 102, 85, 0.12);
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .legal-toc ol { columns: 1; }
  .legal-table { min-width: 28rem; }
  .legal-table tbody th { width: 34%; }
  .nav, .shell { width: min(calc(100% - 1.5rem), var(--site-width)); }
  .nav { min-height: 4.15rem; gap: 0.5rem; }
  .brand { gap: 0.5rem; font-size: 0.98rem; letter-spacing: 0.1em; }
  .brand-mark { width: 1.85rem; height: 1.85rem; }
  .nav-links { flex-wrap: nowrap; gap: 0.3rem 0.72rem; font-size: 0.8rem; white-space: nowrap; }
  .nav-links a:first-child { display: none; }
  .hero, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 3.2rem; }
  .hero-art { max-width: 38rem; margin: 0 auto; }
  .card-grid { grid-template-columns: 1fr; }
  .card { min-height: auto; }
  .card-number { margin-bottom: 1rem; }
  .phone-pair { gap: 0.7rem; }
  .footer-inner { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
