/* Evening Harbour — Confident Poster, light grey + cobalt + coral */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700;9..144,800&family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root {
  --grey: #e8ecf0;
  --grey-2: #dce2e9;
  --grey-3: #f4f6f8;
  --ink: #1a2332;
  --ink-soft: #3d4a5c;
  --cobalt: #1e4d8c;
  --cobalt-soft: #2a5fa3;
  --coral: #ff5a4e;
  --coral-dark: #e6453a;
  --white: #ffffff;
  --space-xs: 0.35rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5.5rem;
  --radius: 10px;
  --radius-sm: 6px;
  --max: 72rem;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --shadow-inner: inset 0 1px 2px rgba(26, 35, 50, 0.06);
  --age-h: 2.4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--grey);
  padding-top: var(--age-h);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--coral);
  text-decoration: none;
  font-weight: 600;
}

a::before {
  content: "· ";
  color: var(--coral);
}

a.no-dot::before,
.site-logo a::before,
.nav a::before,
.cta::before,
.age-bar a::before,
.cookie-banner a::before,
.safety-card a::before,
.footer a.no-dot::before,
.brand-link::before {
  content: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 var(--space-md);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);

  &::after {
    content: "";
    display: block;
    width: 3.5rem;
    height: 4px;
    background: var(--coral);
    margin-top: var(--space-sm);
    border-radius: 2px;
  }
}

p {
  margin: 0 0 var(--space-md);
  color: var(--ink-soft);
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Age bar — persistent, non-blocking */
.age-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--ink);
  color: var(--grey);
  font-size: 0.8rem;
  line-height: 1.35;
  padding: 0.45rem 1rem;
  text-align: center;
  min-height: var(--age-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;

  a {
    color: var(--coral);
    font-weight: 600;
  }

  a::before {
    content: none;
  }

  .age-mark {
    display: inline-block;
    background: var(--coral);
    color: var(--white);
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    letter-spacing: 0.02em;
  }
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--grey-2);
  padding: var(--space-md) 0;

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
  }
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;

  &::before {
    content: none;
  }

  img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
  }

  span {
    color: var(--ink);
  }

  em {
    font-style: normal;
    color: var(--coral);
  }
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;

  a {
    color: var(--cobalt);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    position: relative;

    &::before {
      content: none;
    }

    &::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -2px;
      width: 0;
      height: 2px;
      background: var(--coral);
      transition: width 0.25s ease;
    }

    &:hover::after,
    &[aria-current="page"]::after {
      width: 100%;
    }

    &:hover {
      color: var(--coral);
      text-decoration: none;
    }
  }
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--cobalt);
  color: var(--cobalt);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: var(--space-sm);
  }

  .nav.is-open {
    display: flex;
  }
}

/* Hero — Confident Poster */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--white);
  padding: var(--space-2xl) 0 var(--space-xl);
  isolation: isolate;

  .hero-wedge {
    position: absolute;
    top: -10%;
    right: -8%;
    width: min(55vw, 520px);
    height: min(55vw, 520px);
    background: var(--coral);
    border-radius: 50% 40% 55% 45%;
    z-index: -1;
    opacity: 0.92;
    clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 70%);
  }

  .hero-art {
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(42%, 420px);
    opacity: 0.55;
    z-index: -1;
    pointer-events: none;
  }

  .hero-kicker {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--cobalt);
    font-weight: 700;
    margin-bottom: var(--space-sm);
  }

  .hero-title {
    font-size: clamp(2.6rem, 8vw, 5.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    max-width: 14ch;
    margin-bottom: var(--space-md);
    color: var(--ink);

    .accent {
      color: var(--coral);
    }
  }

  .hero-lead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    max-width: 36rem;
    color: var(--ink-soft);
    margin-bottom: var(--space-md);
  }

  .hero-notice {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    align-items: center;
    font-size: 0.9rem;
    color: var(--ink-soft);
    max-width: 40rem;
  }
}

.badge-18 {
  display: inline-block;
  background: var(--coral);
  color: var(--white);
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.trust-strip {
  background: var(--cobalt);
  color: var(--white);
  padding: var(--space-lg) 0;

  .trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    text-align: center;
  }

  .trust-num {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--coral);
    display: block;
  }

  .trust-label {
    font-size: 0.9rem;
    opacity: 0.92;
  }

  @media (max-width: 600px) {
    .trust-grid {
      grid-template-columns: 1fr;
    }
  }
}

/* Alternating bands */
.band {
  padding: var(--space-xl) 0;
}

.band--light {
  background: var(--grey-3);
}

.band--white {
  background: var(--white);
}

.band--tint {
  background: var(--grey-2);
}

.band--coral-soft {
  background: color-mix(in srgb, var(--coral) 8%, var(--white));
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cobalt);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.updated {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: var(--space-md);
}

/* Showcase table — flat rows */
.showcase {
  .affiliate-note {
    font-size: 0.9rem;
    background: color-mix(in srgb, var(--coral) 10%, var(--white));
    border: 1px solid color-mix(in srgb, var(--coral) 35%, transparent);
    border-radius: var(--radius);
    box-shadow: var(--shadow-inner);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
  }
}

.op-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-inner);
  overflow: hidden;
}

.op-row {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--grey-2);
  background: var(--white);

  &:last-child {
    border-bottom: none;
  }

  @media (max-width: 700px) {
    grid-template-columns: 56px 1fr;
    grid-template-areas:
      "logo name"
      "logo grade"
      "body body"
      "cta cta";
  }
}

.op-row--featured {
  background: color-mix(in srgb, var(--coral) 7%, var(--white));
  border: 2px solid var(--coral);
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-inner);
  grid-template-columns: 80px 1.4fr 1fr auto;
  padding: var(--space-lg);

  @media (max-width: 700px) {
    grid-template-columns: 56px 1fr;
  }
}

.op-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: var(--grey-3);
  border-radius: var(--radius-sm);
  padding: 4px;
  box-shadow: var(--shadow-inner);
}

.op-row--featured .op-logo {
  width: 72px;
  height: 72px;
}

.op-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.25rem;
}

.op-desc {
  font-size: 0.95rem;
  margin: 0;
  color: var(--ink-soft);
}

.op-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.chip {
  display: inline-block;
  background: color-mix(in srgb, var(--cobalt) 10%, var(--white));
  color: var(--cobalt);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
}

.grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  height: 2.6rem;
  background: var(--coral);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: var(--radius-sm);
  padding: 0 0.4rem;
}

.grade--b {
  background: var(--cobalt);
}

.grade--c {
  background: var(--ink-soft);
}

.op-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  text-align: right;
}

.cta {
  color: var(--coral);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--coral);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;

  &::before {
    content: none;
  }

  &:hover {
    color: var(--coral-dark);
    border-color: var(--coral-dark);
    text-decoration: none;
  }
}

.cta-secondary {
  font-size: 0.85rem;
  color: var(--cobalt);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;

  &::before {
    content: "[ ";
    color: var(--coral);
    font-weight: 400;
  }

  &::after {
    content: " ]";
    color: var(--coral);
    font-weight: 400;
  }

  &:hover {
    border-bottom-color: var(--cobalt);
    text-decoration: none;
  }
}

.fine {
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin: 0;
}

/* Head-to-head */
.duel-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-md);
  align-items: stretch;
  margin-bottom: var(--space-lg);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-inner);
  padding: var(--space-lg);

  @media (max-width: 700px) {
    grid-template-columns: 1fr;
  }
}

.duel-side {
  h3 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;

    &::after {
      display: none;
    }
  }

  ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--ink-soft);
    font-size: 0.95rem;
  }
}

.duel-vs {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--coral);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-sm);
}

/* Glossary */
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

.glossary-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-inner);
  padding: var(--space-md);

  dt {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--cobalt);
    margin-bottom: 0.35rem;
  }

  dd {
    margin: 0;
    font-size: 0.92rem;
    color: var(--ink-soft);
  }
}

/* Safety cards */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-md);
}

.safety-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-inner);
  padding: var(--space-md);
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s ease, transform 0.2s ease;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;

  &::before {
    content: none;
  }

  &:hover {
    border-color: var(--coral);
    text-decoration: none;
  }

  img {
    height: 40px;
    width: auto;
    object-fit: contain;
  }

  span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--cobalt);
  }
}

/* FAQ */
.faq-group {
  margin-bottom: var(--space-lg);

  .faq-group-title {
    font-size: 1.15rem;
    color: var(--cobalt);
    margin-bottom: var(--space-md);

    &::after {
      width: 2rem;
      height: 3px;
    }
  }
}

.faq-item {
  border-bottom: 1px solid var(--grey-2);
  padding: var(--space-md) 0;

  h4 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;

    &::after {
      display: none;
    }
  }

  p:last-child {
    margin-bottom: 0;
  }
}

/* Prose pages */
.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  background: var(--white);
  position: relative;
  overflow: hidden;

  .page-hero-art {
    position: absolute;
    right: 0;
    top: 0;
    width: min(40%, 380px);
    opacity: 0.45;
    pointer-events: none;
  }

  h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    max-width: 18ch;

    .accent {
      color: var(--coral);
    }
  }
}

.prose {
  max-width: 42rem;

  h2 {
    margin-top: var(--space-lg);
  }

  ul,
  ol {
    color: var(--ink-soft);
    padding-left: 1.2rem;
  }

  li {
    margin-bottom: 0.4rem;
  }
}

.scorecard-grid {
  display: grid;
  gap: var(--space-md);
}

.scorecard {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-inner);
  padding: var(--space-lg);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-md);
  align-items: start;
  border-bottom: 1px solid var(--grey-2);

  @media (max-width: 600px) {
    grid-template-columns: 1fr;
  }
}

.criteria-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-inner);

  th,
  td {
    padding: 0.75rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--grey-2);
  }

  th {
    background: var(--cobalt);
    color: var(--white);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  tr:last-child td {
    border-bottom: none;
  }

  .featured-cell {
    background: color-mix(in srgb, var(--coral) 8%, var(--white));
  }
}

.form {
  max-width: 28rem;
  display: grid;
  gap: var(--space-md);

  label {
    display: grid;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.92rem;
  }

  input,
  textarea {
    font: inherit;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--grey-2);
    border-radius: var(--radius);
    box-shadow: var(--shadow-inner);
    background: var(--white);
    color: var(--ink);
  }

  button[type="submit"] {
    justify-self: start;
    background: none;
    border: none;
    border-bottom: 2px solid var(--coral);
    color: var(--coral);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: 0.2rem 0;
    transition: color 0.2s ease, border-color 0.2s ease;

    &:hover {
      color: var(--coral-dark);
      border-color: var(--coral-dark);
    }
  }
}

.form-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.disclaimer {
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--grey-2);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--grey);
  padding: var(--space-xl) 0 var(--space-lg);
  position: relative;
  overflow: hidden;

  .footer-mark {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    width: 80px;
    opacity: 0.15;
    pointer-events: none;
  }

  a {
    color: var(--coral);
  }

  a::before {
    content: "· ";
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);

    @media (max-width: 700px) {
      grid-template-columns: 1fr;
    }
  }

  h3 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: var(--space-sm);

    &::after {
      background: var(--coral);
      width: 2rem;
      height: 3px;
    }
  }

  ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  li {
    margin-bottom: 0.4rem;
  }

  .footer-brand {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--space-sm);
  }

  .footer-copy {
    font-size: 0.85rem;
    opacity: 0.85;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: var(--space-md);
  }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: var(--white);
  border-top: 3px solid var(--coral);
  padding: var(--space-md) var(--space-lg);
  box-shadow: 0 -4px 24px rgba(26, 35, 50, 0.12);
  display: none;

  &.is-visible {
    display: block;
  }

  .cookie-inner {
    width: min(100%, var(--max));
    margin-inline: auto;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    align-items: center;
    justify-content: space-between;
  }

  p {
    margin: 0;
    flex: 1 1 16rem;
    font-size: 0.9rem;
  }

  .cookie-actions {
    display: flex;
    gap: var(--space-md);
    align-items: center;
  }

  button {
    background: none;
    border: none;
    font: inherit;
    font-weight: 700;
    color: var(--coral);
    border-bottom: 2px solid var(--coral);
    cursor: pointer;
    padding: 0.15rem 0;
    transition: color 0.2s ease;

    &:hover {
      color: var(--coral-dark);
    }
  }

  a::before {
    content: none;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
