:root {
  --sand-50: #fffdf8;
  --sand-100: #f6f0e4;
  --sand-200: #e8ddca;
  --sand-300: #d4c4aa;
  --brown-900: #2f241e;
  --brown-700: #58463a;
  --sage-700: #35634a;
  --sage-600: #467a5a;
  --sage-300: #a9c2ac;
  --sage-100: #dce9dc;
  --white: #ffffff;
  --line: rgba(47, 36, 30, 0.18);
  --shadow: 0 18px 45px rgba(55, 44, 34, 0.1);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --rail: 252px;
  --content: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  color: var(--brown-900);
  background:
    radial-gradient(circle at 80% 8%, rgba(169, 194, 172, 0.48), transparent 30rem),
    radial-gradient(circle at 8% 78%, rgba(212, 196, 170, 0.62), transparent 34rem),
    var(--sand-50);
  font-family: "Avenir Next", Avenir, "Century Gothic", "Trebuchet MS", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--sage-700);
  text-decoration: none;
}

.text-link::before,
.legal-copy a::before,
.resource-link::before {
  content: "•";
  margin-right: 0.42em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--sage-300);
  outline-offset: 4px;
}

button,
input,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  max-width: 22ch;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(3.5rem, 8vw, 8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
}

h3 {
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  letter-spacing: -0.02em;
}

p,
li {
  max-width: 72ch;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  transform: translateY(-150%);
  border-radius: 99px;
  color: var(--white);
  background: var(--brown-900);
}

.skip-link:focus {
  transform: none;
}

.site-rail {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--rail);
  padding: 30px 28px 76px;
  border-right: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(14px);
  flex-direction: column;
}

.brand {
  display: inline-flex;
  color: var(--brown-900);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.site-nav {
  display: flex;
  margin-top: 54px;
  flex-direction: column;
  gap: 8px;
}

.site-nav a {
  position: relative;
  padding: 9px 0;
  color: var(--brown-700);
  font-size: 0.91rem;
  font-weight: 700;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  content: "";
  transition: transform 180ms ease;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--sage-600);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-rail__note {
  margin-top: auto;
  color: var(--brown-700);
  font-size: 0.74rem;
  line-height: 1.45;
}

.site-shell {
  min-width: 0;
  margin-left: var(--rail);
  padding-bottom: 68px;
}

.container {
  width: min(calc(100% - 48px), var(--content));
  margin-inline: auto;
}

.container--reading {
  width: min(calc(100% - 48px), 930px);
}

.hero {
  position: relative;
  min-height: 740px;
  padding: 84px 0 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.82), rgba(255, 253, 248, 0.38)),
    url("/images/hero-aurora.svg") center / cover no-repeat;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  filter: blur(2px);
}

.hero::before {
  top: -12rem;
  right: -6rem;
  width: 42rem;
  height: 42rem;
  background: radial-gradient(circle at 38% 45%, rgba(255,255,255,.82), rgba(169,194,172,.72) 36%, transparent 68%);
}

.hero::after {
  bottom: -19rem;
  left: 16%;
  width: 46rem;
  height: 46rem;
  background: radial-gradient(circle, rgba(212,196,170,.66), transparent 65%);
}

.hero__kicker,
.section-kicker,
.eyebrow {
  margin-bottom: 16px;
  color: var(--sage-700);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 32px;
}

.highlight {
  background: linear-gradient(transparent 66%, var(--sage-300) 0);
}

.hero__answer {
  max-width: 700px;
  font-size: clamp(1.22rem, 2vw, 1.55rem);
  line-height: 1.48;
}

.role-note {
  display: grid;
  max-width: 900px;
  margin-top: 40px;
  padding: 22px 24px;
  border: 3px double var(--sage-700);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.74);
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}

.marker-18 {
  display: inline-grid;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: var(--white);
  background: var(--brown-900);
  font-size: 1rem;
  font-weight: 900;
  place-items: center;
}

.role-note p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.trust-strip {
  display: grid;
  margin-top: -54px;
  border-radius: var(--radius-md);
  background: var(--brown-900);
  box-shadow: var(--shadow);
  color: var(--sand-100);
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

.trust-strip__item {
  min-height: 108px;
  padding: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.trust-strip__item:last-child {
  border: 0;
}

.trust-strip strong {
  display: block;
  color: var(--white);
  font-size: 1.7rem;
  font-variant-numeric: tabular-nums;
}

.trust-strip span {
  font-size: 0.78rem;
}

.section {
  padding-block: var(--space-9);
  border-bottom: 1px solid var(--line);
}

.page-hero {
  min-height: 510px;
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.9) 0%, rgba(255, 253, 248, 0.62) 58%, rgba(255, 253, 248, 0.2) 100%),
    url("/images/hero-aurora.svg") center / cover no-repeat;
}

.page-hero h1 {
  margin-bottom: 28px;
  font-size: clamp(3.1rem, 7vw, 6.7rem);
}

.page-hero .eyebrow {
  margin-top: 28px;
  margin-bottom: 0;
}

.section--tint {
  background: rgba(232, 221, 202, 0.46);
}

.section__head {
  display: grid;
  margin-bottom: var(--space-7);
  grid-template-columns: minmax(0, 1.3fr) minmax(250px, 0.7fr);
  gap: var(--space-7);
  align-items: end;
}

.section__head h2,
.section__head p {
  margin-bottom: 0;
}

.lede {
  color: var(--brown-700);
  font-size: 1.08rem;
}

.toc {
  margin: 32px 0 52px;
  padding: 24px 28px;
  border: 3px double var(--sage-700);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
}

.toc ol {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.toc a {
  font-size: 0.9rem;
  font-weight: 700;
}

.criteria-ledger {
  display: grid;
  margin: 0 0 48px;
  padding: 0;
  counter-reset: criteria;
  list-style: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.criteria-ledger li {
  position: relative;
  min-height: 170px;
  padding: 58px 22px 22px;
  counter-increment: criteria;
  background: var(--sand-50);
}

.criteria-ledger li::before {
  position: absolute;
  top: 18px;
  left: 22px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  content: counter(criteria, decimal-leading-zero);
  background: var(--sage-100);
  color: var(--sage-700);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 30px;
  text-align: center;
}

.criteria-ledger strong {
  display: block;
  margin-bottom: 6px;
  line-height: 1.2;
}

.criteria-ledger span {
  color: var(--brown-700);
  font-size: 0.85rem;
}

.licence-sidebar {
  display: grid;
  margin: 40px 0;
  padding: 30px;
  border: 3px double var(--sage-700);
  border-radius: var(--radius-md);
  background: var(--sage-100);
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 32px;
}

.licence-sidebar h3,
.licence-sidebar p {
  margin-bottom: 0;
}

.comparison-wrap {
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 0.8rem;
  line-height: 1.38;
}

.comparison-table th,
.comparison-table td {
  padding: 17px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-table thead th {
  color: var(--brown-700);
  background: var(--sand-100);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.comparison-table tbody tr:last-child td {
  border-bottom: 0;
}

.comparison-table .recommended {
  background: var(--sage-100);
}

.comparison-table .operator-cell {
  min-width: 176px;
}

.operator-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.operator-logo {
  display: grid;
  width: 76px;
  height: 50px;
  padding: 7px;
  border-radius: 9px;
  background: var(--white);
  object-fit: contain;
}

.score {
  white-space: nowrap;
  color: var(--brown-900);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.score small {
  display: block;
  margin-top: 3px;
  color: var(--brown-700);
  font-size: 0.68rem;
  font-weight: 600;
}

.affiliate-note {
  margin-top: 18px;
  color: var(--brown-700);
  font-size: 0.8rem;
}

.safety-strip {
  display: grid;
  margin-top: 32px;
  padding: 20px;
  border: 3px double var(--brown-900);
  border-radius: var(--radius-md);
  background: var(--sand-100);
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.safety-strip a {
  display: grid;
  min-height: 78px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--white);
  place-items: center;
}

.safety-strip img {
  max-width: 118px;
  max-height: 42px;
  object-fit: contain;
}

.operator-list {
  display: grid;
  margin: 0;
  padding: 0;
  counter-reset: operators;
  list-style: none;
  gap: 22px;
}

.operator-card {
  position: relative;
  display: grid;
  padding: 34px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow);
  counter-increment: operators;
  grid-template-columns: 74px minmax(0, 1fr) minmax(210px, 0.34fr);
  gap: 28px;
  align-items: start;
}

.operator-card::before {
  content: counter(operators, decimal-leading-zero);
  color: var(--sage-300);
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.operator-card--featured {
  border: 4px double var(--sage-700);
}

.operator-card h3 {
  margin-bottom: 12px;
  font-size: 1.65rem;
}

.operator-card p {
  margin-bottom: 12px;
  font-size: 0.93rem;
}

.badge-row {
  display: flex;
  margin-top: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 99px;
  color: var(--white);
  background: var(--sage-700);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
  align-items: center;
}

.operator-card__action {
  padding: 22px;
  border-radius: var(--radius-sm);
  background: var(--sage-100);
}

.operator-card__action .score {
  display: block;
  margin-bottom: 18px;
  font-size: 1rem;
}

.cta {
  display: inline-flex;
  min-height: 44px;
  padding: 8px 0;
  color: var(--brown-900);
  font-weight: 900;
  align-items: center;
  gap: 8px;
}

.cta::after {
  content: "→";
  transition: transform 180ms ease;
}

.cta:hover::after {
  transform: translateX(6px);
}

.operator-card__fine {
  margin-top: 14px;
  color: var(--brown-700);
  font-size: 0.67rem;
  line-height: 1.45;
}

.licence-data {
  margin: 16px 0 0;
  color: var(--brown-700);
  font-size: 0.76rem;
}

.licence-data dt {
  display: inline;
  font-weight: 800;
}

.licence-data dd {
  display: inline;
  margin: 0;
}

.licence-data dd::after {
  display: block;
  content: "";
}

.pros-cons {
  display: grid;
  margin-top: 28px;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pros-cons__panel {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--sand-100);
}

.pros-cons h3 {
  font-size: 1.1rem;
}

.number-list {
  margin: 24px 0;
  padding: 0;
  counter-reset: steps;
  list-style: none;
}

.number-list li {
  position: relative;
  min-height: 42px;
  margin-bottom: 16px;
  padding-left: 52px;
  counter-increment: steps;
}

.number-list li::before {
  position: absolute;
  top: -4px;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  content: counter(steps);
  color: var(--white);
  background: var(--sage-700);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 36px;
  text-align: center;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
}

.article-aside {
  align-self: start;
  padding: 24px;
  border: 3px double var(--sage-700);
  border-radius: var(--radius-md);
  background: var(--sage-100);
}

.article-aside h2 {
  font-size: 1.3rem;
}

.content-block {
  margin-bottom: 56px;
}

.content-block h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.content-block h3 {
  margin-top: 32px;
}

.editorial-image {
  margin: 36px 0;
  padding: 10px;
  border: 3px double var(--brown-900);
  border-radius: var(--radius-md);
  background: var(--sand-200);
  box-shadow: 14px 14px 0 rgba(53, 99, 74, 0.2);
}

.editorial-image img {
  width: 100%;
  border-radius: calc(var(--radius-md) - 8px);
  filter: sepia(.22) saturate(.75) hue-rotate(75deg);
}

.editorial-image figcaption {
  padding: 12px 6px 2px;
  color: var(--brown-700);
  font-size: 0.74rem;
}

.faq-list {
  display: grid;
  gap: 0;
}

.faq-item {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item h3 {
  max-width: 36ch;
}

.resource-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.resource-card {
  min-height: 170px;
  padding: 26px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow);
}

.resource-card h3 {
  margin-bottom: 8px;
}

.contact-form {
  display: grid;
  max-width: 720px;
  margin-top: 34px;
  gap: 18px;
}

.contact-form label {
  display: grid;
  color: var(--brown-700);
  font-size: 0.82rem;
  font-weight: 800;
  gap: 7px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--brown-900);
  background: var(--white);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.footer-wrap {
  padding: 56px 0 32px;
}

.site-footer {
  padding: 42px;
  border: 3px double var(--brown-900);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(rgba(246, 240, 228, 0.94), rgba(246, 240, 228, 0.94)),
    url("/images/editorial-process.svg") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
}

.site-footer h2 {
  font-size: 1.25rem;
}

.footer-links {
  display: grid;
  font-size: 0.82rem;
  gap: 8px;
}

.legal-copy {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--brown-700);
  font-size: 0.72rem;
  line-height: 1.55;
}

.cookie-banner {
  position: fixed;
  z-index: 70;
  right: 24px;
  bottom: 64px;
  display: none;
  width: min(430px, calc(100% - 48px));
  padding: 20px;
  border: 3px double var(--brown-900);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow);
}

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

.cookie-banner p {
  margin-bottom: 12px;
  font-size: 0.78rem;
  line-height: 1.45;
}

.cookie-actions {
  display: flex;
  gap: 18px;
}

.cookie-actions button {
  padding: 4px 0;
  border: 0;
  color: var(--sage-700);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.age-bar {
  position: fixed;
  z-index: 60;
  right: 0;
  bottom: 0;
  left: var(--rail);
  display: flex;
  min-height: 48px;
  padding: 9px 24px;
  color: var(--sand-100);
  background: var(--brown-900);
  font-size: 0.72rem;
  line-height: 1.35;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

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

.age-bar a {
  color: var(--sage-300);
  font-weight: 800;
}

@media (max-width: 1020px) {
  :root {
    --rail: 0px;
  }

  .site-rail {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    padding: 12px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .site-rail__note {
    display: none;
  }

  .site-nav {
    margin: 0;
    flex-direction: row;
    gap: 18px;
  }

  .site-nav a:nth-child(n+5) {
    display: none;
  }

  .site-shell {
    margin-left: 0;
  }

  .age-bar {
    left: 0;
  }

  .operator-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .operator-card__action {
    grid-column: 2;
  }

  .criteria-ledger {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .container,
  .container--reading {
    width: min(calc(100% - 32px), var(--content));
  }

  .site-rail {
    align-items: flex-start;
  }

  .brand {
    font-size: 0.86rem;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .site-nav {
    gap: 10px;
  }

  .site-nav a {
    font-size: 0.74rem;
  }

  .site-nav a:nth-child(n+4) {
    display: none;
  }

  .hero {
    min-height: 650px;
    padding: 64px 0 84px;
  }

  .page-hero {
    min-height: 440px;
    padding: 64px 0 56px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 16vw, 5.4rem);
  }

  .role-note {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    margin-top: -42px;
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-strip__item:nth-child(2) {
    border-right: 0;
  }

  .trust-strip__item:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255,255,255,.16);
  }

  .section {
    padding-block: 64px;
  }

  .section__head,
  .licence-sidebar,
  .article-grid,
  .site-footer__grid,
  .pros-cons {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .criteria-ledger {
    grid-template-columns: 1fr;
  }

  .operator-card {
    padding: 24px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .operator-card__action {
    grid-column: 1;
  }

  .safety-strip,
  .resource-cards {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer {
    padding: 28px 24px;
  }

  .age-bar {
    padding-inline: 12px;
    font-size: 0.64rem;
  }
}

@media (max-width: 430px) {
  .site-nav a:nth-child(n+3) {
    display: none;
  }

  .safety-strip,
  .resource-cards {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-strip__item,
  .trust-strip__item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.16);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
