/* Trellis™ shared Batch A foundation — colors, type, buttons, nav, footer, launch strip.
   Source of truth: startup-home.css (home). Page-specific styles stay in startup-home /
   experts / trellishouse / styles.css. */

:root {
  --navy: #0b132b;
  --green: #35c817;
  --green-d: #1f6b3f; /* text/link green — WCAG AA on mint */
  --green-btn: #35c817;
  --mint: #edf7f2;
  --blue: #e8f4fd;
  --lemon: #f5e800;
  --white: #ffffff;
  --offwhite: #f8faf9;
  --muted: #3f4c5a; /* body secondary text — WCAG AA on mint */
  --border: rgba(11, 19, 43, 0.08);
  --glass: rgba(255, 255, 255, 0.52);
  --glass-b: rgba(255, 255, 255, 0.72);
  /* Fallback until JS measures the real banner; keep tall enough for two lines. */
  --launch-banner-h: 3.75rem;
  --nav-h: 4.5rem;
  --chrome-offset: var(--nav-h);
  --radius-card: 18px;
  --radius-pill: 100px;
  color-scheme: light;
}

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

html.trellis-core {
  scroll-behavior: smooth;
}

body.trellis-core-body a {
  color: inherit;
  text-decoration: none;
}
body.trellis-core-body {
  margin: 0;
  font-family: "Raleway", sans-serif;
  font-weight: 400;
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--navy);
  background: #f0f7f4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.trellis-core-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(237, 247, 242, 0.9) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(232, 244, 253, 0.7) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 80%, rgba(245, 232, 0, 0.06) 0%, transparent 60%),
    #f0f7f4;
}

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

sup.tm {
  font-size: 0.55em;
  font-weight: 600;
  line-height: 0;
  vertical-align: super;
  margin-left: 0.08em;
}

/* —— Launch strip (every page) —— */
.site-dev-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 250;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  box-sizing: border-box;
  background: var(--navy);
  color: #f7f8f5;
  font-family: "Raleway", sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.35;
  padding: 0.45rem 1rem;
  text-align: center;
}
.site-dev-banner a,
body.trellis-core-body .site-dev-banner a {
  color: #b7e3a8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.site-dev-banner a:hover,
body.trellis-core-body .site-dev-banner a:hover {
  color: #fff;
}

/* —— Top bar —— */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 1.1rem clamp(1rem, 3vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(240, 247, 244, 0.8);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}
body:has(.site-dev-banner) .nav {
  top: var(--launch-banner-h);
}
.nav-logo a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}
.nav-mobile-extra {
  display: none;
}
.nav-mobile-cta {
  display: none;
}
.site-footer .foot-contact {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: #ffffff;
}
.site-footer .foot-contact a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.site-footer .foot-contact a:hover {
  color: #b7e3a8;
}
.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.5rem, 1.5vw, 1.5rem);
  min-width: 0;
  flex: 1 1 auto;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.nav-links a {
  color: var(--navy);
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--green-d);
}
.nav-links a[aria-current="page"] {
  color: var(--green-d);
  font-weight: 600;
}
.nav-more {
  position: relative;
  list-style: none;
}
.nav-more-toggle {
  font-family: "Raleway", sans-serif;
  font-size: inherit;
  font-weight: 500;
  color: var(--navy);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-more-toggle::after {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.15s ease;
}
.nav-more.is-open .nav-more-toggle::after,
.nav-more:hover .nav-more-toggle::after {
  transform: rotate(225deg) translateY(-1px);
}
.nav-more.is-current .nav-more-toggle {
  color: var(--green-d);
  font-weight: 600;
}
.nav-more-toggle:hover {
  color: var(--green-d);
}
.nav-more-menu {
  list-style: none;
  margin: 0;
  padding: 0.45rem 0;
  min-width: 13.5rem;
  position: absolute;
  /* Sit just under the trigger; bridge (::before) covers any visual offset. */
  top: 100%;
  right: 0;
  display: none;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border: 1px solid rgba(11, 19, 43, 0.1);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(11, 19, 43, 0.14);
  z-index: 230;
}
/* Invisible hit area so the pointer never leaves .nav-more while moving into the list. */
.nav-more-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.75rem;
  height: 0.75rem;
}
.nav-more.is-open .nav-more-menu {
  display: flex;
}
/* Desktop: keep open on hover/focus while moving from More → items. */
@media (min-width: 1101px) {
  .nav-more:hover .nav-more-menu,
  .nav-more:focus-within .nav-more-menu {
    display: flex;
  }
  /* Slight float under the trigger; ::before fills the pointer gap. */
  .nav-more-menu {
    top: calc(100% + 0.45rem);
  }
  .nav-more-menu::before {
    top: -0.55rem;
    height: 0.55rem;
  }
}
.nav-more-menu a {
  display: flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.35rem 1rem;
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.nav-more-menu a:hover,
.nav-more-menu a[aria-current="page"] {
  color: var(--green-d);
  background: rgba(46, 125, 82, 0.08);
}
/* Must beat body.trellis-core-body a { color: inherit } or label is navy-on-navy. */
a.nav-cta,
.nav-cta {
  background: var(--navy);
  color: #fff;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
body.trellis-core-body a.nav-cta {
  color: #fff;
}
a.nav-cta:hover,
.nav-cta:hover {
  background: #1a2a50;
  color: #fff;
  transform: translateY(-1px);
}
body.trellis-core-body a.nav-cta:hover {
  color: #fff;
}
.nav-menu-btn {
  display: none;
  align-items: center;
  gap: 0.45rem;
  font-family: "Raleway", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(11, 19, 43, 0.12);
  border-radius: var(--radius-pill);
  padding: 0.48rem 0.9rem;
  cursor: pointer;
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
}
.nav-menu-bars {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: currentColor;
  box-shadow: 0 -4.5px 0 currentColor, 0 4.5px 0 currentColor;
}
.nav.is-open .nav-menu-bars {
  height: 0;
  box-shadow: none;
  background: transparent;
  position: relative;
}
.nav.is-open .nav-menu-bars::before,
.nav.is-open .nav-menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1rem;
  height: 1.5px;
  background: var(--navy);
}
.nav.is-open .nav-menu-bars::before {
  transform: rotate(45deg);
}
.nav.is-open .nav-menu-bars::after {
  transform: rotate(-45deg);
}
.nav-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "Raleway", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(11, 19, 43, 0.12);
  background: rgba(255, 255, 255, 0.55);
}
.nav-cart:hover {
  border-color: var(--green-d);
  color: var(--green-d);
}
.nav-cart-count {
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: var(--radius-pill);
  background: var(--green);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Collapse to Menu earlier so links + CTA never force horizontal page scroll */
@media (max-width: 1100px) {
  .nav {
    padding: 0.85rem 1rem;
    flex-wrap: nowrap;
  }
  .nav-logo {
    flex: 0 1 auto;
    min-width: 0;
  }
  .nav-logo a {
    white-space: nowrap;
    font-size: 0.9rem;
  }
  .nav-right {
    gap: 0.55rem;
    position: static;
    flex: 0 0 auto;
  }
  /* Keep logo clear on phones: bar CTA moves into the Menu panel */
  .nav-right > .nav-cta-bar {
    display: none;
  }
  .nav-cart {
    display: none;
  }
  .nav-menu-btn {
    display: inline-flex;
  }
  /* Solid panel — beats any styles.css .nav-links { display:flex } leftovers */
  nav.nav .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    margin: 0;
    padding: 0.5rem 1rem 1rem;
    border-radius: 0 0 18px 18px;
    border: 1px solid rgba(11, 19, 43, 0.08);
    border-top: none;
    background: #f0f7f4;
    box-shadow: 0 18px 40px rgba(11, 19, 43, 0.12);
    z-index: 210;
    max-height: min(70vh, 32rem);
    overflow-y: auto;
  }
  nav.nav.is-open .nav-links {
    display: flex;
  }
  nav.nav .nav-mobile-extra {
    display: list-item;
  }
  nav.nav .nav-mobile-cta {
    display: list-item;
    padding: 0.85rem 0.35rem 0.35rem;
    border-bottom: none;
  }
  nav.nav .nav-mobile-cta .nav-cta-in-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    border-bottom: none;
    padding: 0.55rem 1.25rem;
  }
  nav.nav .nav-links a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .nav.is-open .nav-cart {
    display: inline-flex;
  }
  .nav-links a {
    display: block;
    padding: 0.72rem 0.35rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--navy);
    border-bottom: 1px solid rgba(11, 19, 43, 0.06);
  }
  .nav-links > li > a,
  .nav-links > li > .nav-more-toggle {
    border-bottom: 1px solid rgba(11, 19, 43, 0.06);
  }
  .nav-links li:last-child a {
    border-bottom: none;
  }
  .nav-more {
    width: 100%;
  }
  .nav-more-toggle {
    width: 100%;
    min-height: 48px;
    justify-content: space-between;
    padding: 0.72rem 0.35rem;
    font-size: 1rem;
  }
  .nav-more-menu {
    position: static;
    display: none;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0 0 0.35rem 0.85rem;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .nav-more-menu::before {
    display: none;
  }
  .nav-more.is-open .nav-more-menu {
    display: flex;
  }
  .nav-more-menu a {
    min-height: 44px;
    padding: 0.45rem 0.35rem;
    border-bottom: 1px solid rgba(11, 19, 43, 0.05);
    white-space: normal;
  }
  .nav-more-menu a:hover,
  .nav-more-menu a[aria-current="page"] {
    background: transparent;
  }
  body.nav-open {
    overflow: hidden;
  }
  body:has(.site-dev-banner) .nav {
    top: var(--launch-banner-h);
  }
}

/* —— Type + section label —— */
.section-tag {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-d);
  display: block;
  margin-bottom: 0.9rem;
}

h1,
h2,
.trellis-heading {
  font-family: "Raleway", sans-serif;
  font-weight: 200;
  letter-spacing: -0.02em;
  text-align: left;
  color: var(--navy);
  text-wrap: balance;
}
h1 strong,
h2 strong,
.trellis-heading strong {
  font-weight: 600;
}

/* —— Buttons —— */
a.btn-primary,
.btn-primary {
  background: var(--green-btn);
  color: var(--navy);
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.15s;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
body.trellis-core-body a.btn-primary {
  color: var(--navy);
}
a.btn-primary:hover,
.btn-primary:hover {
  background: #2bb814;
  transform: translateY(-1px);
}
.btn-ghost {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 2px;
  text-decoration: none;
}
.btn-ghost:hover {
  border-color: var(--navy);
}
.btn-primary:focus-visible,
.nav-cta:focus-visible,
.nav-links a:focus-visible,
.foot-links a:focus-visible,
.nav-menu-btn:focus-visible,
.nav-cart:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}
.btn-primary:focus-visible {
  outline-color: #0b132b;
  box-shadow: 0 0 0 3px rgba(53, 200, 23, 0.45);
}

/* —— Glass card —— */
.glass-card {
  background: var(--glass-b);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.35rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* —— Footer ——
   Higher specificity so Batch B styles.css cannot restyle shared chrome footers. */
.site-footer,
body.has-trellis-chrome footer.site-footer {
  padding: 1rem 1.5rem 1.15rem;
  background: #0b132b;
  border-top: none;
  color: rgba(247, 248, 245, 0.85);
}
.site-footer .foot-row,
body.has-trellis-chrome footer.site-footer .foot-row {
  max-width: 68rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}
.site-footer .foot-brand a,
body.has-trellis-chrome footer.site-footer .foot-brand a {
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  text-decoration: none;
}
.site-footer .foot-copy,
body.has-trellis-chrome footer.site-footer .foot-copy {
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(247, 248, 245, 0.75);
  max-width: 22rem;
  margin: 0;
  line-height: 1.35;
}
.site-footer .foot-contact,
body.has-trellis-chrome footer.site-footer .foot-contact {
  font-size: 0.8rem;
  margin: 0;
  color: #ffffff;
}
body.has-trellis-chrome footer.site-footer .foot-contact a {
  color: #ffffff;
}
body.has-trellis-chrome footer.site-footer .foot-contact a:hover {
  color: #b7e3a8;
}
.site-footer .foot-links,
body.has-trellis-chrome footer.site-footer .foot-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  margin: 0;
  padding: 0.15rem 0 0;
  max-width: none;
  flex: 1 1 100%;
  justify-content: flex-start;
}
.site-footer .foot-links a,
body.has-trellis-chrome footer.site-footer .foot-links a {
  color: #f7f8f5;
  text-decoration: none;
}
.site-footer .foot-links a:hover,
body.has-trellis-chrome footer.site-footer .foot-links a:hover {
  color: #b7e3a8;
}

/* Shared chrome pages: offset fixed nav + banner; never widen the page */
html.trellis-core,
body.has-trellis-chrome,
body.batch-a-surface {
  max-width: 100%;
  overflow-x: clip;
}
body.has-trellis-chrome {
  padding-top: var(--chrome-offset, var(--nav-h));
}
body.has-trellis-chrome:has(.site-dev-banner) {
  padding-top: calc(var(--nav-h) + var(--launch-banner-h));
}

/*
 * Shared-chrome pages already pad the body for fixed nav + banner.
 * Do not also push .hero by another 70px + banner (that caused the large top gap).
 */
body.has-trellis-chrome .hero,
body.has-trellis-chrome:has(.site-dev-banner) .hero {
  padding-top: 0;
}
/* Home without shared chrome (rare): keep legacy hero offset */
body.home-page:not(.has-trellis-chrome) .hero {
  padding-top: 70px;
}
body.home-page:not(.has-trellis-chrome):has(.site-dev-banner) .hero {
  padding-top: calc(70px + var(--launch-banner-h));
}
@media (max-width: 820px) {
  body.home-page:not(.has-trellis-chrome) .hero {
    padding-top: 88px;
  }
  body.home-page:not(.has-trellis-chrome):has(.site-dev-banner) .hero {
    padding-top: calc(88px + var(--launch-banner-h));
  }
}

/* Skip link + focus (Phase 3) */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 10000;
  padding: 0.55rem 0.9rem;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--green-d);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.script-joy {
  font-family: "Bad Script", cursive;
  font-weight: 400;
  color: var(--navy);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 0.75rem;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--green-d);
  outline-offset: 2px;
}
/* Do not make banner links inline-flex — that collapses spaces around the <a>. */
.site-footer a,
.foot-links a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.site-dev-banner a {
  display: inline;
  padding: 0.15rem 0;
}

@media (prefers-reduced-motion: reduce) {
  html.trellis-core {
    scroll-behavior: auto;
  }
  .btn-primary:hover,
  .nav-cta:hover {
    transform: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* —— Resources / Guides and free tools —— */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rg-hero {
  padding: 1.75rem 0 0;
}
.rg-hero-inner {
  max-width: 52rem;
}
.rg-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 0.85rem;
  max-width: 18ch;
}
.rg-lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 42ch;
  margin: 0 0 0.75rem;
  line-height: 1.55;
}
.rg-meta {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}
.rg-meta a {
  color: var(--green-d);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rg-hero-fig {
  margin: 0 0 0.5rem;
  max-width: 36rem;
}
.rg-hero-fig img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.45);
}

.rg-article {
  max-width: 68ch;
  margin-inline: auto;
  padding-bottom: 4rem;
}
.rg-article p,
.rg-article li {
  font-size: 1.125rem; /* 18px */
  line-height: 1.7;
  color: var(--navy);
}
.rg-article h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  margin: 2.25rem 0 0.75rem;
}
.rg-article h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}
.rg-short {
  margin: 0 0 2rem;
}
.rg-short h2 {
  margin-top: 0;
  font-size: 1.2rem;
  font-weight: 600;
}
.rg-short p {
  margin: 0;
  color: var(--muted);
}

.rg-tool-panel {
  margin: 2.5rem 0;
}
.rg-tool-panel > h2 {
  margin-top: 0;
}
.rg-close {
  margin: 2.5rem 0 1.5rem;
  display: grid;
  gap: 0.85rem;
  justify-items: start;
}
.rg-close h2 {
  margin: 0;
}
.rg-close .btn-ghost {
  margin-top: 0.25rem;
}
.rg-sources {
  margin: 2rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.rg-sources summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  min-height: 48px;
  display: flex;
  align-items: center;
}
.rg-sources .cite-list {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
}

/* Hub */
.rg-hub-hero {
  padding: 2rem 0 1rem;
}
.rg-hub-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  max-width: 16ch;
  margin: 0 0 0.75rem;
}
.rg-hub-sections {
  display: grid;
  gap: 3rem;
  padding: 1.5rem 0 4rem;
}
.rg-hub-sections h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.35rem;
}
.rg-hub-sections .rg-section-lede {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: 46ch;
}
.rg-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .rg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .rg-grid.rg-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.rg-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--glass-b);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 100%;
}
.rg-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(11, 19, 43, 0.06);
}
.rg-card:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}
.rg-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: rgba(237, 247, 242, 0.65);
  padding: 0.75rem 1rem 0;
}
.rg-card-body {
  padding: 1.1rem 1.25rem 1.35rem;
  display: grid;
  gap: 0.45rem;
  flex: 1;
}
.rg-card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
}
.rg-card p {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.5;
}
.rg-card .rg-card-cta {
  margin-top: auto;
  padding-top: 0.75rem;
  font-weight: 600;
  color: var(--green-d);
  font-size: 0.95rem;
}

/* Step tools */
.rg-tool {
  display: grid;
  gap: 1rem;
}
.rg-tool-progress {
  height: 0.5rem;
  background: rgba(11, 19, 43, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.rg-tool-progress > span {
  display: block;
  height: 100%;
  background: var(--green-btn);
  width: 0;
  transition: width 0.25s ease;
}
.rg-tool-step-label {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-d);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rg-tool-q {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
}
.rg-tool-hint {
  margin: 0.35rem 0 0;
  font-size: 1rem;
  color: var(--muted);
}
.rg-tool-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}
.rg-tool-back {
  min-height: 48px;
}
.rg-options,
.rg-checks,
.rg-fields {
  display: grid;
  gap: 0.65rem;
  margin: 0.75rem 0 0;
  border: 0;
  padding: 0;
}
.rg-option,
.rg-check {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 1rem;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-size: 1.125rem;
  line-height: 1.45;
}
.rg-option:has(input:checked),
.rg-check:has(input:checked) {
  border-color: var(--green-d);
  box-shadow: 0 0 0 2px rgba(53, 200, 23, 0.25);
}
.rg-option input,
.rg-check input {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
}
.rg-fields label {
  display: grid;
  gap: 0.4rem;
  font-size: 1rem;
  font-weight: 500;
}
.rg-fields input,
.rg-fields select,
.rg-free-form select,
.rg-free-form input[type="text"],
.rg-free-form input[type="email"],
.rg-free-form input[type="number"] {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  font-size: 1.125rem;
  background: #fff;
  color: var(--navy);
}
.rg-fields input:focus-visible,
.rg-fields select:focus-visible,
.rg-option:focus-within,
.rg-check:focus-within,
.rg-free-form select:focus-visible,
.rg-free-form input:focus-visible,
.rg-chooser-btn:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

.rg-result {
  margin-top: 0.25rem;
}
.rg-result:focus {
  outline: none;
}
.rg-result-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-d);
}
.rg-result-headline {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}
.rg-result-sub {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.rg-result-means {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.rg-result-means li {
  margin-bottom: 0.35rem;
}

.rg-card-chooser {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.rg-chooser-btn {
  min-height: 48px;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
}
.rg-chooser-btn.is-active {
  background: var(--green-btn);
  border-color: var(--green-btn);
  font-weight: 600;
}
.rg-type-card {
  margin-top: 0.75rem;
}
.folder-tree {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  overflow-x: auto;
  white-space: pre;
  color: var(--muted);
  margin: 0.5rem 0 0.85rem;
}
.tool-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  margin-top: 0.75rem;
}
.tool-matrix th,
.tool-matrix td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.7rem;
  text-align: left;
  vertical-align: top;
  color: var(--muted);
}
.tool-matrix th {
  background: rgba(237, 247, 242, 0.9);
  color: var(--navy);
  font-weight: 600;
}

/* Free tools pages */
.rg-free {
  max-width: 36rem;
  margin: 0 auto;
  padding: 1rem 0 3.5rem;
}
.rg-free h1 {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  margin: 0 0 0.5rem;
}
.rg-email-box {
  margin-top: 1.5rem;
}
.rg-email-box h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
}
