/* Payline Harbour — site styles */

:root {
  --slate: #e7ecef;
  --slate-deep: #d5dde2;
  --ink: #16242b;
  --ink-soft: #35464f;
  --teal: #0e7c7b;
  --teal-deep: #0a5a59;
  --teal-tint: #d9efee;
  --yellow: #ffd449;
  --yellow-deep: #f0b90b;
  --white: #ffffff;
  --border: 2px solid var(--ink);
  --shadow: 5px 5px 0 rgba(22, 36, 43, 0.9);
  --shadow-sm: 3px 3px 0 rgba(22, 36, 43, 0.85);
  --radius: 14px;
  --radius-sm: 9px;
  --font-display: "Zilla Slab", "Rockwell", serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--slate);
}

img { max-width: 100%; height: auto; }

a { color: var(--teal-deep); }

a:hover { color: var(--teal); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-weight: 600; }

p { margin: 0 0 1em; }

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin: 0 auto;
}

.wrap--narrow { width: min(820px, 100% - 2.5rem); }

/* ---------- Age strip ---------- */

.age-strip {
  background: var(--ink);
  color: var(--slate);
  font-size: 0.82rem;
  padding: 0.45rem 0;
}

.age-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.2rem;
  justify-content: center;
  text-align: center;
}

.age-strip a { color: var(--yellow); }

.age-strip strong { color: var(--white); }

/* ---------- Header ---------- */

.site-head {
  background: var(--white);
  border-bottom: var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand svg { display: block; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-name span { color: var(--teal); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 3px solid transparent;
  padding: 0.2rem 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--yellow);
}

.nav-toggle {
  display: none;
  background: var(--yellow);
  border: var(--border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: var(--border);
    padding: 0.4rem 1.25rem 0.9rem;
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    padding: 0.65rem 0.2rem;
    border-bottom: 1px solid var(--slate-deep);
  }
}

/* ---------- Colour blocks ---------- */

.block { padding: clamp(2.6rem, 6vw, 4.5rem) 0; }
.block--white { background: var(--white); border-top: var(--border); border-bottom: var(--border); }
.block--teal { background: var(--teal); color: var(--white); }
.block--teal h2, .block--teal h3 { color: var(--white); }
.block--teal a { color: var(--yellow); }
.block--yellow { background: var(--yellow); border-top: var(--border); border-bottom: var(--border); }
.block--tint { background: var(--teal-tint); }
.block--ink { background: var(--ink); color: var(--slate); }
.block--ink h2, .block--ink h3 { color: var(--white); }
.block--ink a { color: var(--yellow); }

.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--yellow);
  color: var(--ink);
  border: var(--border);
  border-radius: 999px;
  padding: 0.28rem 0.9rem;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow-sm);
}

.block--yellow .kicker { background: var(--white); }

/* ---------- Hero ---------- */

.hero { padding: clamp(2.8rem, 7vw, 5rem) 0 clamp(2.4rem, 5vw, 4rem); }

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: center;
}

.hero-lede {
  font-size: 1.13rem;
  color: var(--ink-soft);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.hero-note {
  margin-top: 1.1rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.hero-panel {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.6rem;
}

.hero-panel h2 {
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
}

.hero-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.hero-panel li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.95rem;
}

.hero-panel li::before {
  content: "";
  flex: 0 0 auto;
  width: 0.85rem;
  height: 0.85rem;
  margin-top: 0.28rem;
  background: var(--teal);
  border: 2px solid var(--ink);
  border-radius: 3px;
}

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: var(--border);
  border-radius: var(--radius-sm);
  padding: 0.68rem 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  text-align: center;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(22, 36, 43, 0.85);
}

.btn:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 rgba(22, 36, 43, 0.85); }

.btn--teal { background: var(--teal); color: var(--white) !important; }
.btn--yellow { background: var(--yellow); color: var(--ink) !important; }
.btn--ghost { background: var(--white); color: var(--ink) !important; }

/* ---------- Operator rows ---------- */

.op-list { display: grid; gap: 1.5rem; margin-top: 1.8rem; }

.op-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.55fr) minmax(0, 0.75fr);
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.op-id {
  padding: 1.4rem 1.5rem;
  border-right: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.op-rank {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.op-logo {
  height: 54px;
  display: flex;
  align-items: center;
}

.op-logo img {
  max-height: 54px;
  max-width: 190px;
  width: auto;
  object-fit: contain;
}

.op-logo--text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.01em;
}

.op-logo--text span { color: var(--yellow-deep); }

.op-name { font-size: 1.3rem; margin: 0; }

.op-grade {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: auto;
}

.grade-chip {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  background: var(--yellow);
  border: var(--border);
  border-radius: var(--radius-sm);
  padding: 0.1rem 0.75rem;
  box-shadow: var(--shadow-sm);
}

.grade-label { font-size: 0.8rem; color: var(--ink-soft); font-weight: 600; }

.op-facts { padding: 1.4rem 1.5rem; }

.op-facts p { font-size: 0.96rem; margin-bottom: 0.9rem; }

.op-facts dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 0.9rem;
  font-size: 0.86rem;
}

.op-facts dt { font-weight: 700; color: var(--ink-soft); }
.op-facts dd { margin: 0; }

.op-action {
  background: var(--teal-tint);
  border-left: 2px solid var(--ink);
  padding: 1.4rem 1.3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
}

.op-action .btn { width: 100%; }

.op-action-note { font-size: 0.76rem; color: var(--ink-soft); margin: 0; }

@media (max-width: 900px) {
  .op-row { grid-template-columns: 1fr; }
  .op-id { border-right: 0; border-bottom: 2px solid var(--ink); }
  .op-action { border-left: 0; border-top: 2px solid var(--ink); }
}

/* ---------- Comparison table ---------- */

.table-scroll {
  overflow-x: auto;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  margin-top: 1.6rem;
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 720px;
}

table.compare th,
table.compare td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--slate-deep);
  vertical-align: top;
}

table.compare thead th {
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

table.compare tbody tr:nth-child(even) { background: var(--slate); }

table.compare tbody tr:last-child td { border-bottom: 0; }

/* ---------- Cards & grids ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
  margin-top: 1.6rem;
}

.card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.4rem 1.5rem;
}

.card h3 { margin-bottom: 0.5rem; }

.card p:last-child { margin-bottom: 0; }

.block--teal .card,
.block--ink .card { color: var(--ink); }

/* ---------- FAQ ---------- */

.faq-list { display: grid; gap: 1rem; margin-top: 1.6rem; }

.faq-item {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  padding: 1rem 1.3rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal);
  flex: 0 0 auto;
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item[open] summary { border-bottom: 1px solid var(--slate-deep); }

.faq-body { padding: 0.9rem 1.3rem 1.1rem; font-size: 0.96rem; }

.faq-body p:last-child { margin-bottom: 0; }

/* ---------- Resource tiles ---------- */

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.3rem;
  margin-top: 1.6rem;
}

.resource {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.3rem 1.35rem;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: transform 0.12s ease;
}

.resource:hover { transform: translate(-2px, -2px); color: var(--ink); }

.resource img {
  max-height: 44px;
  width: auto;
  align-self: flex-start;
  object-fit: contain;
}

.resource strong { font-family: var(--font-display); font-size: 1.05rem; }

.resource span { font-size: 0.88rem; color: var(--ink-soft); }

.resource em {
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal-deep);
}

/* ---------- Prose pages ---------- */

.page-head { padding: clamp(2.4rem, 5.5vw, 4rem) 0 clamp(1.8rem, 4vw, 2.8rem); }

.page-head p {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 40rem;
  margin-bottom: 0;
}

.prose { max-width: 46rem; }

.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }

.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.1em; }

.prose li { margin-bottom: 0.4rem; }

.prose .callout {
  background: var(--yellow);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0;
  font-size: 0.97rem;
}

.prose .callout p:last-child { margin-bottom: 0; }

.prose .callout--teal { background: var(--teal-tint); }

/* ---------- Grade legend ---------- */

.grade-scale {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.1rem;
  margin-top: 1.5rem;
}

.grade-tier {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.1rem 1.2rem;
}

.grade-tier .grade-chip { font-size: 1.25rem; }

.grade-tier p { font-size: 0.88rem; margin: 0.7rem 0 0; }

/* ---------- Footer ---------- */

.site-foot {
  background: var(--ink);
  color: #c3ccd1;
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
}

.site-foot a { color: var(--slate); }

.site-foot a:hover { color: var(--yellow); }

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.foot-brand .brand-name { color: var(--white); font-size: 1.2rem; }

.foot-brand p { margin-top: 0.8rem; }

.site-foot h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}

.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }

.foot-licence {
  border-top: 1px solid #35464f;
  border-bottom: 1px solid #35464f;
  padding: 1.3rem 0;
  margin-bottom: 1.3rem;
}

.foot-licence p { margin-bottom: 0.6rem; }

.foot-licence p:last-child { margin-bottom: 0; }

.foot-licence strong { color: var(--white); }

.foot-safety {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  align-items: center;
  margin-bottom: 1.4rem;
}

.foot-safety a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
}

.foot-safety img {
  max-height: 30px;
  width: auto;
  background: var(--white);
  border-radius: 6px;
  padding: 3px 6px;
}

.foot-legal { font-size: 0.8rem; color: #8ba0aa; }

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.9rem;
  border: 2px solid var(--white);
  flex: 0 0 auto;
}

@media (max-width: 880px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; }
}

/* ---------- Cookie banner ---------- */

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, calc(100% - 2rem));
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.3rem;
  z-index: 60;
  display: none;
}

.cookie-banner.visible { display: block; }

.cookie-banner p { font-size: 0.9rem; margin-bottom: 0.8rem; }

.cookie-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }

.cookie-actions .btn { padding: 0.5rem 1.1rem; font-size: 0.9rem; }

/* ---------- Utility ---------- */

.center { text-align: center; }

.mt-0 { margin-top: 0; }

.section-intro { max-width: 42rem; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--yellow);
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 100;
  border: var(--border);
}

.skip-link:focus { left: 0.5rem; top: 0.5rem; }
