:root {
  --ix8-ink: #082a35;
  --ix8-muted: #4b6970;
  --ix8-blue: #176dc6;
  --ix8-blue-dark: #0d569f;
  --ix8-teal: #0fa89b;
  --ix8-coral: #ee7466;
  --ix8-pale: #eaf8f6;
  --ix8-pale-2: #f5fbfa;
  --ix8-line: #c6dcda;
  --ix8-white: #ffffff;
  --ix8-wrap: 1440px;
  --ix8-shadow: 0 18px 45px rgba(8, 42, 53, 0.1);
}

* {
  box-sizing: border-box;
}

html,
html[data-theme="dark"],
html[data-theme="light"] {
  color-scheme: light;
  scroll-behavior: smooth;
  background: var(--ix8-white);
}

body,
body.header-fixed,
body.header-animated {
  margin: 0;
  min-height: 100vh;
  color: var(--ix8-ink);
  background: var(--ix8-white) !important;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

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

a {
  color: var(--ix8-blue-dark);
  text-underline-offset: 3px;
}

.wrap {
  width: min(var(--ix8-wrap), calc(100% - 64px));
  margin-inline: auto;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.brand strong {
  color: var(--ix8-ink) !important;
  font-family: "Cal Sans", Inter, system-ui, sans-serif;
  letter-spacing: -0.035em;
}

h1 {
  margin-bottom: 22px;
  max-width: 900px;
  font-size: clamp(2.75rem, 4.1vw, 4.25rem);
  line-height: 1.04;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.08;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.25;
}

p,
li {
  color: var(--ix8-muted);
}

#header,
#header.section,
body.scrolled #header {
  position: sticky !important;
  z-index: 40;
  top: 0;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.97) !important;
  border: 0;
  border-bottom: 1px solid #d7e7e5;
  box-shadow: none !important;
  backdrop-filter: blur(14px);
}

#header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ix8-blue), var(--ix8-teal), #f4a64e);
}

#header > .container {
  width: min(var(--ix8-wrap), calc(100% - 64px));
  max-width: none;
  min-height: 70px;
  margin: 0 auto;
  padding: 0;
}

#header .navbar {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 32px;
}

#header .navbar-section.logo {
  flex: 0 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ix8-ink) !important;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.brand span {
  display: grid;
  gap: 0;
  line-height: 1;
}

.brand strong {
  font-size: 1.25rem;
}

.brand small {
  margin-top: 3px;
  color: #658087;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

#header .desktop-menu,
#header .dropmenu {
  flex: 1 1 auto;
}

#header ul.navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#header ul.navigation > li {
  margin: 0;
  list-style: none;
}

#header ul.navigation > li > a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 0;
  border-radius: 7px;
  color: var(--ix8-ink) !important;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
}

#header ul.navigation > li > a.active,
#header ul.navigation > li.active > a {
  color: var(--ix8-blue-dark) !important;
  background: #e4f0fd;
}

#header .header-cta-item {
  margin-left: 8px !important;
}

#header ul.navigation > li.header-cta-item > a.header-cta {
  min-width: 116px;
  padding-inline: 18px;
  border-radius: 999px;
  color: #fff !important;
  background: var(--ix8-blue);
  box-shadow: 0 8px 18px rgba(23, 109, 198, 0.18);
}

#header .actions {
  display: none;
}

.mobile-menu,
.mobile-container {
  display: none;
}

main,
#start {
  padding: 0 !important;
  background: var(--ix8-white);
}

#body-wrapper {
  margin: 0;
  padding: 0 !important;
  background: transparent !important;
}

#body-wrapper > .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

#page-wrapper,
#body-wrapper > .container > .content-item,
.content-item,
.ix8-template-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.guide-page > section,
.guide-page > nav {
  margin: 0;
}

.guide-hero,
.home-hero,
.library-hero {
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(234, 248, 246, 0.98), rgba(246, 252, 251, 0.92)),
    radial-gradient(circle at 82% 32%, rgba(23, 109, 198, 0.12), transparent 34%);
  border-bottom: 1px solid var(--ix8-line);
}

.guide-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.72fr);
  gap: clamp(36px, 4.5vw, 72px);
  align-items: center;
  padding-block: clamp(58px, 6vw, 88px);
}

.compact-hero .guide-hero-grid {
  padding-block: clamp(52px, 5vw, 76px);
}

.guide-copy {
  max-width: 760px;
}

.eyebrow,
.section-kicker,
.footer-eyebrow {
  position: relative;
  margin-bottom: 18px;
  padding-left: 30px;
  color: #0a6676;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before,
.footer-eyebrow::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--ix8-teal);
}

.guide-deck {
  max-width: 720px;
  margin-bottom: 20px;
  color: var(--ix8-ink);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.45;
}

.guide-copy > p:not(.eyebrow):not(.guide-deck) {
  max-width: 690px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.primary-btn,
.secondary-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 7px;
  font-weight: 850;
  text-decoration: none;
}

.primary-btn {
  border: 1px solid var(--ix8-blue);
  color: #fff !important;
  background: var(--ix8-blue);
  box-shadow: 0 9px 22px rgba(23, 109, 198, 0.2);
}

.primary-btn:hover {
  background: var(--ix8-blue-dark);
}

.secondary-btn {
  border: 1px solid #a8bfbd;
  color: var(--ix8-ink) !important;
  background: rgba(255, 255, 255, 0.72);
}

.guide-visual {
  position: relative;
  margin: 0;
  padding: 12px;
  border-radius: 10px 10px 34px 34px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--ix8-shadow);
}

.guide-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -50px;
  bottom: -76px;
  width: 240px;
  height: 240px;
  background: linear-gradient(145deg, rgba(23, 109, 198, 0.08), rgba(15, 168, 155, 0.03));
  clip-path: polygon(0 0, 100% 0, 52% 100%);
}

.guide-visual img {
  width: 100%;
  max-height: 390px;
  aspect-ratio: 16 / 10;
  border-radius: 5px 5px 22px 22px;
  object-fit: cover;
}

.guide-visual figcaption {
  padding: 13px 5px 2px;
  color: #6d858a;
  font-size: 0.78rem;
}

.guide-jump {
  border-bottom: 1px solid var(--ix8-line);
  background: #fff;
}

.guide-jump .wrap {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 30px;
  overflow-x: auto;
  white-space: nowrap;
}

.guide-jump span {
  color: #355b63;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.guide-jump a {
  color: var(--ix8-muted);
  font-size: 0.72rem;
  font-weight: 750;
  text-decoration: none;
}

.guide-step {
  scroll-margin-top: 80px;
  padding-block: clamp(78px, 10vw, 130px);
  background: #fff;
  border-bottom: 1px solid var(--ix8-line);
}

.guide-step.tinted {
  background: var(--ix8-pale);
}

.step-layout {
  display: grid;
  grid-template-columns: 118px minmax(0, 820px);
  gap: 34px;
  justify-content: center;
}

.step-marker {
  position: relative;
  align-self: start;
  padding-top: 12px;
  border-top: 3px solid var(--ix8-blue);
}

.step-marker::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 0;
  width: 28px;
  border-top: 3px solid #fff;
}

.tinted .step-marker::after {
  border-color: var(--ix8-pale);
}

.step-marker strong {
  display: block;
  color: var(--ix8-blue);
  font-size: 1.65rem;
  line-height: 1;
}

.step-marker span {
  display: block;
  margin-top: 8px;
  color: #496b71;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.step-copy {
  position: relative;
}

.step-copy::before {
  content: "";
  display: block;
  width: 24px;
  margin-bottom: 12px;
  border-top: 3px solid var(--ix8-ink);
}

.step-copy h2 {
  max-width: 780px;
}

.step-copy > p:not(.section-kicker) {
  max-width: 780px;
}

.section-kicker {
  margin: 0 0 12px;
  padding-left: 0;
  color: #49737a;
}

.section-kicker::before {
  display: none;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 34px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #b8cfcd;
}

.check-grid li {
  position: relative;
  min-height: 52px;
  padding: 15px 0 13px 18px;
  border-bottom: 1px solid #b8cfcd;
}

.check-grid li::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 2px;
  width: 6px;
  height: 6px;
  background: var(--ix8-coral);
}

.explore-band {
  padding-block: 26px;
  color: #fff;
  background: #2468ad;
}

.explore-band .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
}

.explore-band strong {
  margin-right: auto;
  font-size: 0.78rem;
}

.explore-band a {
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
}

.faq-section {
  padding-block: clamp(80px, 10vw, 130px);
  background: #fff;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(54px, 9vw, 140px);
}

.faq-layout h2 {
  max-width: 370px;
}

.faq-list {
  border-top: 1px solid #a9c4c1;
}

.faq-item {
  border-bottom: 1px solid #a9c4c1;
}

.faq-q {
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border: 0;
  color: var(--ix8-ink);
  background: transparent;
  font: inherit;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #a9c4c1;
  border-radius: 5px;
  color: var(--ix8-blue);
}

.faq-a {
  display: none;
  max-width: 700px;
  padding: 0 38px 20px 0;
  color: var(--ix8-muted);
}

.faq-item.open .faq-a {
  display: block;
}

.library-hero {
  padding-block: clamp(72px, 10vw, 128px);
}

.library-hero .wrap {
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
}

.library-hero .eyebrow {
  display: inline-block;
}

.library-hero p:not(.eyebrow) {
  max-width: 760px;
  margin-inline: auto;
  font-size: 1.08rem;
}

.library-hero .button-row {
  justify-content: center;
}

.library-section {
  padding-block: 76px 110px;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--ix8-line);
}

.library-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  color: var(--ix8-ink) !important;
  background: #fff;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.library-card:hover {
  z-index: 1;
  transform: translateY(-3px);
  background: var(--ix8-pale-2);
  box-shadow: var(--ix8-shadow);
}

.library-card > span {
  margin-bottom: 24px;
  color: #0b6e76;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.library-card h2 {
  font-size: 1.65rem;
  line-height: 1.05;
}

.library-card p {
  margin-bottom: 24px;
}

.library-card strong {
  margin-top: auto;
  color: var(--ix8-blue-dark);
  font-size: 0.78rem;
}

.legal-hero {
  padding-block: 82px;
  background: var(--ix8-pale);
  border-bottom: 1px solid var(--ix8-line);
}

.legal-hero .wrap {
  max-width: 900px;
}

.legal-hero h1 {
  font-size: clamp(2.75rem, 4.1vw, 4.25rem);
}

.legal-hero p:not(.eyebrow) {
  max-width: 720px;
  font-size: 1.12rem;
}

.legal-body {
  padding-block: 90px 120px;
}

.legal-grid {
  max-width: 900px;
}

.legal-grid article {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 42px;
  padding-block: 32px;
  border-top: 1px solid var(--ix8-line);
}

.legal-grid article:last-child {
  border-bottom: 1px solid var(--ix8-line);
}

.legal-grid h2 {
  font-size: 1.45rem;
}

.site-footer,
#footer.site-footer {
  padding: 62px 0 22px;
  color: var(--ix8-ink);
  background: var(--ix8-pale) !important;
  border-top: 1px solid var(--ix8-line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.55fr repeat(3, 0.8fr);
  gap: clamp(30px, 6vw, 84px);
}

.footer-grid section {
  min-width: 0;
}

.footer-intro {
  max-width: 360px;
}

.footer-intro h2 {
  margin-bottom: 10px;
  font-size: 2.3rem;
}

.footer-intro .primary-btn {
  margin-top: 8px;
}

.footer-grid h3 {
  margin-bottom: 22px;
  color: var(--ix8-ink) !important;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0;
}

.footer-grid section > a:not(.primary-btn) {
  display: block;
  margin: 13px 0;
  color: var(--ix8-muted) !important;
  font-size: 0.74rem;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 58px;
  padding-top: 18px;
  border-top: 1px solid var(--ix8-line);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.68rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badges span {
  padding: 4px 8px;
  border: 1px solid #aec6c3;
  border-radius: 4px;
  color: #496b71;
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.58rem;
  font-weight: 700;
}

@media (max-width: 980px) {
  #header > .container,
  .wrap {
    width: min(100% - 40px, var(--ix8-wrap));
  }

  #header .desktop-menu {
    display: none;
  }

  #header .navbar {
    justify-content: space-between;
  }

  .mobile-menu,
  .mobile-container {
    display: block;
  }

  .button_container {
    position: fixed;
    z-index: 52;
    top: 20px;
    right: 20px;
  }

  .mobile-container .overlay {
    position: fixed;
    z-index: 50;
    inset: 0;
    display: none;
    padding: 90px 28px 30px;
    background: rgba(234, 248, 246, 0.98);
  }

  .mobile-container .overlay.open {
    display: block;
  }

  .mobile-logo {
    margin-bottom: 30px;
  }

  .overlay-menu ul.navigation {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .overlay-menu li {
    list-style: none;
    border-bottom: 1px solid var(--ix8-line);
  }

  .overlay-menu a {
    min-height: 54px;
    display: flex;
    align-items: center;
    color: var(--ix8-ink);
    font-weight: 850;
    text-decoration: none;
  }

  .guide-hero-grid,
  .faq-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .guide-visual {
    width: min(580px, 100%);
  }

  .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .explore-band .wrap {
    flex-wrap: wrap;
  }

  .explore-band strong {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-intro {
    max-width: none;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 14px;
  }

  #header > .container,
  .wrap {
    width: min(100% - 32px, var(--ix8-wrap));
  }

  h1 {
    font-size: clamp(2.25rem, 10vw, 3rem);
  }

  .guide-hero-grid {
    gap: 44px;
    padding-block: 58px 64px;
  }

  .guide-jump .wrap {
    gap: 22px;
  }

  .guide-step {
    padding-block: 66px;
  }

  .step-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .step-marker {
    width: 94px;
  }

  .check-grid,
  .library-grid,
  .footer-grid,
  .legal-grid article {
    grid-template-columns: 1fr;
  }

  .library-card {
    min-height: 260px;
  }

  .faq-section {
    padding-block: 70px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
