:root {
  --rl-ink: #111827;
  --rl-body: #374151;
  --rl-muted: #6b7280;
  --rl-accent: #3d8b7c;
  --rl-accent-hover: #2e7a6b;
  --rl-paper: #f4f5f7;
  --rl-card: #ffffff;
  --rl-line: rgba(0, 0, 0, 0.08);
  --rl-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
}

html {
  background: var(--rl-paper);
}

body,
button,
input,
select,
textarea {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif !important;
}

body {
  color: var(--rl-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body :where(h1, h2, h3, h4, h5, h6) {
  color: var(--rl-ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif !important;
  text-wrap: balance;
}

body :where(.serif-accent, h1 em, h2 em) {
  font-family: "Instrument Serif", Georgia, serif !important;
  font-weight: 400 !important;
}

body :where(.card, .tool-card, .pricing-card, .proof-card, .value-item, .post-link, .footer-cta) {
  border-color: var(--rl-line) !important;
  border-radius: 16px !important;
  box-shadow: var(--rl-shadow);
}

body :where(.btn-primary, .btn-secondary, .primary, .cta-btn, .cta-section a) {
  min-height: 48px;
  border-radius: 12px !important;
}

body :where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--rl-accent);
  outline-offset: 3px;
}

::selection {
  color: var(--rl-ink);
  background: rgba(61, 139, 124, 0.18);
}

.rl-shell {
  width: min(100% - 48px, 1120px);
  margin-inline: auto;
}

.rl-guides,
.rl-footer {
  box-sizing: border-box;
  color: #111827;
}

.rl-guides *,
.rl-footer * {
  box-sizing: border-box;
}

.rl-guides {
  padding: 88px 0 80px;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.rl-guides__intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(320px, 1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 42px;
}

.rl-guides__intro h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.rl-guides__intro p {
  max-width: 590px;
  margin: 0;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.7;
}

.rl-guides__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 40px;
  row-gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rl-guides__grid li {
  border-top: 1px solid rgba(17, 24, 39, 0.13);
}

.rl-guides__grid a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  gap: 18px;
  align-items: start;
  min-height: 84px;
  padding: 18px 0;
  color: #27323f;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  text-decoration: none;
}

.rl-guides__grid svg,
.rl-guides__cta svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: #3d8b7c;
  transition: transform 180ms ease;
}

.rl-guides__grid a:hover,
.rl-guides__grid a:focus-visible,
.rl-guides__cta:hover,
.rl-guides__cta:focus-visible {
  color: #245f54;
}

.rl-guides__grid a:hover svg,
.rl-guides__grid a:focus-visible svg {
  transform: translate(2px, -2px);
}

.rl-guides__cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  color: #2e7a6b;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.rl-guides__cta:hover svg,
.rl-guides__cta:focus-visible svg {
  transform: translateX(3px);
}

.rl-footer {
  background: #f9fafb;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.rl-footer__main {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(0, 2.3fr);
  gap: clamp(56px, 7vw, 112px);
  padding: 64px 0 56px;
}

.rl-footer__brand-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  color: #111827;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.rl-footer__brand-link img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.rl-footer__brand > p {
  max-width: 300px;
  margin: 15px 0 22px;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.7;
}

.rl-footer__app-store {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 10px 16px;
  border: 1px solid rgba(61, 139, 124, 0.24);
  border-radius: 999px;
  background: rgba(61, 139, 124, 0.08);
  color: #245f54;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.rl-footer__app-store:hover {
  border-color: rgba(61, 139, 124, 0.42);
  background: rgba(61, 139, 124, 0.13);
  text-decoration: none;
}

.rl-footer__app-store img {
  display: block;
  width: auto;
  height: 40px;
}

.rl-footer__groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.rl-footer__group h2 {
  margin: 9px 0 14px;
  color: #374151;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rl-footer__group ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.rl-footer__group li + li {
  margin-top: 5px;
}

.rl-footer__group a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: #596273;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
}

.rl-footer__group a:hover,
.rl-footer__group a:focus-visible {
  color: #2e7a6b;
}

.rl-guides a:focus-visible,
.rl-footer a:focus-visible {
  outline: 2px solid #3d8b7c;
  outline-offset: 3px;
  border-radius: 4px;
}

.rl-footer__legal {
  display: grid;
  grid-template-columns: minmax(190px, 0.65fr) minmax(0, 1.8fr) minmax(0, 1.25fr);
  gap: 24px 40px;
  padding: 28px 0 34px;
  border-top: 1px solid rgba(17, 24, 39, 0.11);
  color: #667085;
  font-size: 11px;
  line-height: 1.65;
}

.rl-footer__legal p {
  margin: 0;
}

.rl-article-trust {
  margin: 24px 0 36px;
  padding: 18px 20px;
  border: 1px solid rgba(61, 139, 124, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
  color: #596273;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-size: 13px;
  line-height: 1.6;
}

.rl-article-trust p {
  margin: 0;
}

.rl-article-trust p + p {
  margin-top: 4px;
}

.rl-article-byline {
  color: #273141;
}

.rl-article-byline strong {
  font-weight: 700;
}

.rl-article-review {
  color: #2e7a6b;
  font-weight: 600;
}

.rl-article-note {
  max-width: 68ch;
  padding-top: 8px;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.rl-primary-sources {
  margin: 48px 0 32px;
  padding: 28px 30px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.035);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

.rl-primary-sources h2 {
  margin: 0 0 8px;
  color: #18202f;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.rl-primary-sources > p {
  max-width: 66ch;
  margin: 0 0 16px;
  color: #667085;
  font-size: 13px;
  line-height: 1.65;
}

.rl-primary-sources ul {
  margin: 0;
  padding-left: 20px;
}

.rl-primary-sources li {
  margin: 8px 0;
  color: #3d8b7c;
}

.rl-primary-sources a {
  color: #2e7a6b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.rl-primary-sources a:hover,
.rl-primary-sources a:focus-visible {
  color: #245f54;
}

.rl-primary-sources a:focus-visible {
  outline: 2px solid #3d8b7c;
  outline-offset: 3px;
  border-radius: 3px;
}

.rl-footer__copyright {
  color: #4b5563;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .rl-guides {
    padding: 76px 0 68px;
  }

  .rl-guides__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }

  .rl-footer__main {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .rl-footer__brand > p {
    max-width: 460px;
  }

  .rl-footer__legal {
    grid-template-columns: 1fr 1fr;
  }

  .rl-footer__copyright {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .rl-shell {
    width: min(100% - 40px, 1120px);
  }

  .rl-guides {
    padding: 64px 0 58px;
  }

  .rl-guides__intro {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 32px;
  }

  .rl-guides__intro p {
    font-size: 14px;
  }

  .rl-guides__grid {
    grid-template-columns: 1fr;
  }

  .rl-guides__grid a {
    min-height: 0;
    padding: 16px 0;
  }

  .rl-guides__cta {
    margin-top: 22px;
  }

  .rl-footer__main {
    padding: 50px 0 42px;
  }

  .rl-footer__groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 28px;
  }

  .rl-footer__group h2 {
    margin-top: 0;
  }

  .rl-footer__group a {
    min-height: 44px;
  }

  .rl-footer__group li + li {
    margin-top: 0;
  }

  .rl-footer__legal {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 25px 0 30px;
    text-align: left;
  }

  .rl-footer__copyright {
    grid-column: auto;
  }

  .rl-article-trust {
    margin: 20px 0 30px;
    padding: 16px;
  }

  .rl-primary-sources {
    margin: 40px 0 28px;
    padding: 22px 20px;
  }
}

@media (max-width: 440px) {
  .rl-shell {
    width: min(100% - 32px, 1120px);
  }

  .rl-footer__groups {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rl-guides *,
  .rl-footer * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
