/* ==========================================================================
   Adblock Hub — site.css
   Naming: hb-… component classes with BEM-style elements and --modifiers.
   Geometric sans (system stack), ivory ground, indigo + teal accents,
   rounded cards. Mobile-first; breakpoints at 36rem, 50rem, 64rem.
   ========================================================================== */

:root {
  --hb-ivory: #faf7f1;
  --hb-surface: #ffffff;
  --hb-surface-2: #f3efe6;
  --hb-ink: #22262f;
  --hb-ink-soft: #3f4450;
  --hb-muted: #5d6270;
  --hb-indigo: #4743c9;
  --hb-indigo-deep: #35329c;
  --hb-indigo-tint: #e9e8f9;
  --hb-teal: #0f8578;
  --hb-teal-tint: #e0f1ee;
  --hb-line: #e3ddcd;
  --hb-line-soft: #d8d2c4;

  --hb-font: "Avenir Next", "Avenir", "Segoe UI", system-ui, -apple-system,
             "Helvetica Neue", Arial, sans-serif;

  --hb-page: 68rem;    /* wide hub width */
  --hb-narrow: 56rem;  /* steps, FAQ and CTA column */
  --hb-read: 42.5rem;  /* secondary-page reading column */
  --hb-gutter: 1.25rem;

  --hb-radius-lg: 20px;
  --hb-radius-md: 14px;
  --hb-radius-sm: 10px;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--hb-ivory);
  color: var(--hb-ink);
  font-family: var(--hb-font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

img {
  display: block;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--hb-ink);
  text-wrap: balance;
  margin: 0;
}

p,
ul,
ol {
  margin: 0 0 1.1em;
}

ul:last-child,
ol:last-child,
p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--hb-indigo);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--hb-teal);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--hb-indigo);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--hb-indigo-tint);
  color: var(--hb-ink);
}

address {
  font-style: normal;
}

/* ==========================================================================
   Layout containers
   ========================================================================== */

.hb-page {
  max-width: calc(var(--hb-page) + 2 * var(--hb-gutter));
  margin-inline: auto;
  padding-inline: var(--hb-gutter);
  padding-bottom: 3.5rem;
}

/* ==========================================================================
   Skip link
   ========================================================================== */

.hb-skip {
  position: absolute;
  left: var(--hb-gutter);
  top: -4rem;
  z-index: 20;
  padding: 0.65rem 1.1rem;
  border-radius: var(--hb-radius-sm);
  background: var(--hb-ink);
  color: var(--hb-ivory);
  font-weight: 700;
  text-decoration: none;
}

.hb-skip:focus {
  top: 0.5rem;
  color: var(--hb-ivory);
}

/* ==========================================================================
   Site header: partner strip + top bar
   ========================================================================== */

.hb-site-head {
  margin-bottom: 0.5rem;
}

.hb-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.3rem 0.75rem;
  margin: 0;
  padding: 0.55rem var(--hb-gutter);
  background: var(--hb-indigo-deep);
  color: #dcdaf4;
  font-size: 0.8125rem;
  line-height: 1.45;
  text-align: center;
}

.hb-strip__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border: 1px solid #dcdaf4;
  border-radius: 999px;
  padding: 0.08rem 0.55rem;
}

.hb-strip__link {
  color: #ffffff;
  white-space: nowrap;
}

.hb-strip__link:focus-visible {
  outline-color: #ffffff;
}

.hb-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  max-width: calc(var(--hb-page) + 2 * var(--hb-gutter));
  margin-inline: auto;
  padding: 1rem var(--hb-gutter) 1.1rem;
}

.hb-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--hb-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

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

.hb-brand__mark {
  flex: none;
}

.hb-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.4rem;
}

.hb-nav a {
  display: inline-block;
  padding: 0.3rem 0;
  color: var(--hb-ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.hb-nav a:hover {
  color: var(--hb-indigo);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.hb-nav a[aria-current="page"] {
  color: var(--hb-teal);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hb-hero {
  display: grid;
  gap: 1.75rem;
  padding-block: 2.25rem 0.75rem;
  align-items: center;
}

.hb-eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--hb-teal);
}

.hb-hero__title {
  font-size: clamp(1.95rem, 5vw, 2.9rem);
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin-bottom: 1rem;
}

.hb-hero__lede {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--hb-ink-soft);
  max-width: 38rem;
  margin-bottom: 1.25rem;
}

.hb-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  margin: 0;
  font-size: 0.875rem;
  color: var(--hb-muted);
}

.hb-hero__meta span + span::before {
  content: "\00b7";
  margin-right: 0.75rem;
  color: var(--hb-line-soft);
}

.hb-hero__figure {
  margin: 0;
}

.hb-hero__figure img {
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
}

/* ==========================================================================
   Topic cards (the hub grid)
   ========================================================================== */

.hb-cards {
  padding-block: 2.25rem 1.5rem;
}

.hb-section-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.45rem;
  margin-bottom: 1.4rem;
}

.hb-section-title::before {
  content: "";
  flex: none;
  width: 1.6rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--hb-teal);
}

.hb-cards__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hb-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: var(--hb-surface);
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius-lg);
  padding: 1.5rem 1.4rem 1.35rem;
  box-shadow: 0 1px 2px rgba(34, 38, 47, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hb-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(34, 38, 47, 0.08);
}

.hb-card__icon {
  width: 46px;
  height: 46px;
  flex: none;
}

.hb-card__title {
  font-size: 1.12rem;
  margin-top: 0.35rem;
}

.hb-card__text {
  color: var(--hb-ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.hb-card__link {
  margin-top: auto;
  padding-top: 0.5rem;
  color: var(--hb-teal);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.hb-card__link::after {
  content: " \2192";
}

.hb-card__link:hover {
  color: var(--hb-indigo);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* ==========================================================================
   Lead-in paragraphs
   ========================================================================== */

.hb-lead {
  max-width: 40rem;
  margin-inline: auto;
  padding-block: 1.25rem 0.75rem;
}

/* ==========================================================================
   Numbered plan: <ol> with step badges and nested sub-cards
   ========================================================================== */

.hb-plan {
  max-width: 52rem;
  margin-inline: auto;
  padding-block: 1.75rem 1rem;
}

.hb-steps {
  list-style: none;
  counter-reset: hb-step;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.hb-step {
  position: relative;
  padding-left: calc(2.9rem + 1.1rem);
}

.hb-step::before {
  counter-increment: hb-step;
  content: counter(hb-step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2.9rem;
  height: 2.9rem;
  display: grid;
  place-items: center;
  border-radius: var(--hb-radius-sm);
  background: var(--hb-indigo);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.3rem;
}

.hb-steps > li:nth-child(even)::before {
  background: var(--hb-teal);
}

.hb-step__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.9rem;
  margin-bottom: 0.65rem;
}

.hb-step__title {
  font-size: 1.25rem;
  line-height: 1.3;
}

.hb-step__time {
  margin: 0;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  background: var(--hb-surface-2);
  color: var(--hb-muted);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.hb-step p {
  color: var(--hb-ink-soft);
}

.hb-step__note {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--hb-muted);
}

.hb-sub {
  border-radius: var(--hb-radius-md);
  padding: 1.05rem 1.2rem;
  margin: 0.85rem 0 0;
}

.hb-sub h4 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.hb-sub p {
  font-size: 0.975rem;
  margin-bottom: 0;
}

.hb-sub--indigo {
  background: var(--hb-indigo-tint);
}

.hb-sub--indigo h4 {
  color: var(--hb-indigo-deep);
}

.hb-sub--teal {
  background: var(--hb-teal-tint);
}

.hb-sub--teal h4 {
  color: var(--hb-teal);
}

.hb-link-offer {
  font-weight: 700;
}

/* ==========================================================================
   FAQ (details)
   ========================================================================== */

.hb-faq {
  max-width: 52rem;
  margin-inline: auto;
  padding-block: 1.75rem 1rem;
}

.hb-faq__item {
  background: var(--hb-surface);
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius-md);
  margin-bottom: 0.75rem;
}

.hb-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  list-style: none;
}

.hb-faq__item summary::-webkit-details-marker {
  display: none;
}

.hb-faq__item summary::after {
  content: "+";
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--hb-indigo-tint);
  color: var(--hb-indigo-deep);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.15s ease;
}

.hb-faq__item[open] summary::after {
  content: "\2212";
  transform: rotate(180deg);
}

.hb-faq__item p {
  padding: 0 1.2rem 1.1rem;
  color: var(--hb-ink-soft);
  font-size: 0.975rem;
  margin-bottom: 0;
}

/* ==========================================================================
   Call-to-action card
   ========================================================================== */

.hb-cta {
  max-width: 52rem;
  margin: 2.25rem auto 0;
  background: var(--hb-indigo-deep);
  color: #ecebfa;
  border-radius: var(--hb-radius-lg);
  padding: 1.9rem 1.6rem 1.7rem;
}

.hb-cta__title {
  color: #ffffff;
  font-size: 1.4rem;
  margin-bottom: 0.7rem;
}

.hb-cta__text {
  max-width: 34rem;
  margin-bottom: 1.1rem;
}

.hb-cta__label {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.15rem 0.7rem;
  border: 1px solid rgba(236, 235, 250, 0.55);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d5d3f0;
}

.hb-cta__action {
  margin: 0 0 1rem;
}

.hb-cta__button {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  background: #ffffff;
  color: var(--hb-indigo-deep);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.hb-cta__button:hover {
  background: var(--hb-teal-tint);
  color: var(--hb-indigo-deep);
  text-decoration: none;
  transform: translateY(-2px);
}

.hb-cta__button:focus-visible {
  outline-color: #ffffff;
}

.hb-cta__fine {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(236, 235, 250, 0.75);
}

/* ==========================================================================
   Secondary pages (article + prose)
   ========================================================================== */

.hb-article {
  max-width: var(--hb-read);
  padding-block: 2.5rem 1rem;
}

.hb-article__head {
  margin-bottom: 1.5rem;
}

.hb-article__title {
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
}

.hb-article__stand {
  font-size: 1.1rem;
  color: var(--hb-ink-soft);
  margin-bottom: 0;
}

.hb-prose h2 {
  font-size: 1.3rem;
  margin: 2.1rem 0 0.8rem;
}

.hb-prose p {
  color: var(--hb-ink-soft);
}

.hb-prose ul {
  padding-left: 1.3rem;
}

.hb-prose li {
  margin-bottom: 0.55em;
}

.hb-prose li::marker {
  color: var(--hb-teal);
}

/* ==========================================================================
   Notices, form
   ========================================================================== */

.hb-notice {
  border-radius: var(--hb-radius-md);
  padding: 1rem 1.2rem;
  margin: 0 0 1.5rem;
  font-size: 0.975rem;
}

.hb-notice p + p {
  margin-top: 0.4rem;
}

.hb-notice--ok {
  background: var(--hb-teal-tint);
  border-left: 4px solid var(--hb-teal);
}

.hb-notice--error {
  background: var(--hb-indigo-tint);
  border-left: 4px solid var(--hb-indigo);
}

.hb-form {
  margin-bottom: 2rem;
}

.hb-field {
  margin-bottom: 1.25rem;
}

.hb-field__label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.hb-field__input {
  display: block;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--hb-line-soft);
  border-radius: var(--hb-radius-sm);
  background: var(--hb-surface);
  color: var(--hb-ink);
  font-family: var(--hb-font);
  font-size: 1rem;
  line-height: 1.45;
}

.hb-field__input:focus-visible {
  outline: 3px solid var(--hb-indigo);
  outline-offset: 1px;
  border-color: var(--hb-indigo);
}

.hb-field__input--area {
  min-height: 11rem;
  resize: vertical;
}

.hb-field--invalid .hb-field__input {
  border-color: var(--hb-indigo);
  border-width: 2px;
}

.hb-field__error {
  margin: 0.4rem 0 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--hb-indigo-deep);
}

.hb-field__hint {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--hb-muted);
}

.hb-form__trap {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hb-form__privacy {
  font-size: 0.875rem;
  color: var(--hb-muted);
  margin-bottom: 1.1rem;
}

.hb-button {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border: 0;
  border-radius: 999px;
  background: var(--hb-indigo);
  color: #ffffff;
  font-family: var(--hb-font);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.hb-button:hover {
  background: var(--hb-indigo-deep);
}

.hb-button:focus-visible {
  outline: 3px solid var(--hb-ink);
  outline-offset: 3px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.hb-site-foot {
  margin-top: 3.5rem;
  background: var(--hb-surface-2);
  border-top: 1px solid var(--hb-line);
}

.hb-foot-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
  max-width: calc(var(--hb-page) + 2 * var(--hb-gutter));
  margin-inline: auto;
  padding: 2rem var(--hb-gutter) 1.25rem;
}

.hb-foot-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.3rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.hb-foot-mark {
  flex: none;
}

.hb-foot-tag {
  margin: 0;
  font-size: 0.875rem;
  color: var(--hb-muted);
}

.hb-foot-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hb-foot-nav a {
  display: inline-block;
  padding: 0.25rem 0;
  color: var(--hb-ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.hb-foot-nav a:hover {
  color: var(--hb-indigo);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.hb-foot-legal {
  max-width: calc(var(--hb-page) + 2 * var(--hb-gutter));
  margin: 0 auto;
  padding: 0 var(--hb-gutter) 2rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--hb-muted);
}

/* ==========================================================================
   404
   ========================================================================== */

.hb-missing {
  padding-block: 3.5rem 2rem;
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */

@media (min-width: 36rem) {
  body {
    font-size: 1.125rem;
  }

  .hb-strip {
    font-size: 0.875rem;
  }
}

@media (min-width: 50rem) {
  .hb-hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    padding-block: 3rem 1rem;
  }

  .hb-hero__figure img {
    max-width: none;
  }

  .hb-cards__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hb-step {
    padding-left: calc(3.4rem + 1.35rem);
  }

  .hb-step::before {
    width: 3.4rem;
    height: 3.4rem;
    font-size: 1.5rem;
  }

  .hb-cta {
    padding: 2.3rem 2.4rem 2.1rem;
  }

  .hb-article {
    padding-block: 3.25rem 1.25rem;
  }
}

@media (min-width: 64rem) {
  .hb-page {
    padding-inline: 1.75rem;
  }

  .hb-topbar,
  .hb-foot-grid,
  .hb-foot-legal {
    padding-inline: 1.75rem;
  }
}

/* ==========================================================================
   Motion & print
   ========================================================================== */

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .hb-card:hover,
  .hb-cta__button:hover {
    transform: none;
  }
}

@media print {
  .hb-skip,
  .hb-strip,
  .hb-site-head,
  .hb-site-foot,
  .hb-cta,
  .hb-form {
    display: none;
  }

  body {
    background: #ffffff;
    font-size: 11pt;
  }

  .hb-card,
  .hb-faq__item,
  .hb-sub {
    break-inside: avoid;
  }
}
