.topbar {
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(0, 1fr) minmax(260px, auto);
  align-items: center;
  gap: clamp(22px, 3vw, 52px);
  position: relative;
  z-index: 120;
  overflow: visible;
  isolation: isolate;
  min-height: 58px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  justify-self: start;
  color: var(--ghv-public-text, #eef6ff);
  text-decoration: none;
  width: fit-content;
}

.brand-mark {
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(1, 10, 18, 0.22));
}

.brand-copy {
  display: grid;
  gap: 0;
  min-width: 0;
}

.brand-copy strong {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: #f6f9ff;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.brand-copy span {
  color: var(--ghv-public-muted, rgba(226, 236, 248, 0.74));
  font-size: 0.82rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.topbar-actions {
  display: contents;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4vw, 58px);
  min-width: 0;
  flex-wrap: wrap;
  grid-column: 2;
  justify-self: center;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 40px;
  min-width: 0;
  padding: 0 2px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: var(--ghv-public-muted, rgba(226, 236, 248, 0.74));
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: none;
  backdrop-filter: none;
  transition: color 180ms ease, transform 180ms ease, text-shadow 180ms ease;
}

.topnav a:hover,
.topnav a:focus-visible,
.topnav a.active {
  color: var(--ghv-public-text, #eef6ff);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  text-shadow: 0 0 20px rgba(127, 165, 255, 0.34);
  transform: translateY(-1px);
  outline: none;
}

.topnav-profile {
  position: relative;
  min-width: 0;
  z-index: 140;
  grid-column: 3;
  justify-self: end;
}

.topnav-profile.is-open {
  z-index: 160;
}

.topnav-profile-btn {
  appearance: none;
  border: 1px solid rgba(143, 173, 255, 0.18);
  background: rgba(255, 255, 255, 0.045);
  color: #f3f7ff;
  min-height: 46px;
  min-width: 320px;
  max-width: 340px;
  padding: 6px 12px 6px 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.topnav-profile-btn:hover,
.topnav-profile-btn:focus-visible,
.topnav-profile.is-open .topnav-profile-btn {
  transform: translateY(-1px);
  border-color: rgba(143, 173, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 12px 26px rgba(18, 36, 68, 0.16);
}

.topnav-profile-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--ghv-landing-highlight, #d9e6ff) 22%, transparent),
    color-mix(in srgb, var(--ghv-landing-secondary, #4f86ff) 24%, transparent)
  );
  color: #effcff;
  font-size: 0.88rem;
  font-weight: 800;
  flex-shrink: 0;
}

.topnav-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.topnav-profile-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
  text-align: left;
  flex: 1 1 auto;
}

.topnav-profile-copy strong {
  font-size: 0.82rem;
  line-height: 1.18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topnav-profile-copy span {
  font-size: 0.7rem;
  line-height: 1.18;
  color: rgba(212, 224, 245, 0.66);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topnav-profile-caret {
  font-size: 0.72rem;
  color: rgba(212, 224, 245, 0.6);
  flex-shrink: 0;
  transition: transform 180ms ease;
}

.topnav-profile.is-open .topnav-profile-caret {
  transform: rotate(180deg);
}

.topnav-profile-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 340px;
  padding: 12px;
  border-radius: 26px;
  border: 1px solid var(--ghv-landing-border, rgba(136, 164, 255, 0.18));
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--ghv-landing-surface-strong, rgba(12, 21, 36, 0.92)) 96%, black 4%) 0%,
      color-mix(in srgb, var(--ghv-landing-surface, rgba(10, 18, 30, 0.74)) 98%, black 2%) 100%
    );
  box-shadow:
    0 34px 60px rgba(2, 8, 14, 0.62),
    0 0 0 1px rgba(255,255,255,0.03);
  display: grid;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  z-index: 9999;
  overflow: hidden;
}

.topnav-profile-dropdown::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--ghv-landing-highlight, #d9e6ff) 12%, transparent), transparent 34%),
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--ghv-landing-secondary, #4f86ff) 12%, transparent), transparent 28%);
  opacity: 0.95;
}

.topnav-profile.is-open .topnav-profile-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.topnav-menu-link {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px 13px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.05);
  background: linear-gradient(180deg, #13212f 0%, #0f1a26 100%);
  color: var(--ghv-public-text, #eef6ff);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.topnav-menu-icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.topnav-menu-icon svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topnav-menu-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.topnav-menu-link strong {
  font-size: 0.92rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

.topnav-menu-link span {
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--ghv-public-muted, rgba(226, 236, 248, 0.74));
  text-decoration: none;
}

.topnav-profile-dropdown a,
.topnav-profile-dropdown a:hover,
.topnav-profile-dropdown a:focus-visible,
.topnav-profile-dropdown a:visited,
.topnav-profile-dropdown a strong,
.topnav-profile-dropdown a span {
  text-decoration: none !important;
}

.topnav-menu-link:hover,
.topnav-menu-link:focus-visible {
  background: linear-gradient(180deg, #162738 0%, #122131 100%);
  border-color: var(--ghv-landing-border, rgba(136, 164, 255, 0.18));
  box-shadow: 0 18px 28px rgba(3, 10, 18, 0.24), inset 0 1px 0 rgba(255,255,255,0.06);
  transform: translateY(-1px);
}

.topnav-menu-link[data-tone="panel"] .topnav-menu-icon {
  background: linear-gradient(135deg, #7ecbff 0%, #5b9fff 100%);
  color: #0b1e38;
}

.topnav-menu-link[data-tone="subscriptions"] .topnav-menu-icon {
  background: linear-gradient(135deg, #7ecbff 0%, #5f96ff 100%);
  color: #0a1e3a;
}

.topnav-menu-link[data-tone="finance"] .topnav-menu-icon {
  background: linear-gradient(135deg, #9bf0d0 0%, #4ade80 42%, #16a34a 100%);
  color: #092617;
}

.topnav-menu-link[data-tone="payments"] .topnav-menu-icon {
  background: linear-gradient(135deg, #6ce8ff 0%, #4a86ff 100%);
  color: #081d33;
}

.topnav-menu-link[data-tone="plans"] .topnav-menu-icon {
  background: linear-gradient(135deg, #7ecbff 0%, #6e8fff 100%);
  color: #0a1e3a;
}

.topnav-menu-link[data-tone="legal"] .topnav-menu-icon {
  background: linear-gradient(135deg, #d6dee8 0%, #9fb2c7 100%);
  color: #16273a;
}

.topnav-menu-link[data-tone="privacy"] .topnav-menu-icon {
  background: linear-gradient(135deg, #9bf0d0 0%, #79b9ff 100%);
  color: #0a2134;
}

.topnav-menu-link[data-tone="login"] .topnav-menu-icon {
  background: linear-gradient(135deg, #8bf5dc 0%, #50c8ff 100%);
  color: #0a2130;
}

.topnav-menu-link[data-tone="faq"] .topnav-menu-icon {
  background: linear-gradient(135deg, #8ecbff 0%, #7cefe0 100%);
  color: #092334;
}

.topnav-menu-link[data-tone="logout"] .topnav-menu-icon {
  background: linear-gradient(135deg, #ffb5b5 0%, #ff8f8f 100%);
  color: #3a1111;
}

body.public-legal-modal-open {
  overflow: hidden;
}

.public-legal-modal {
  position: fixed;
  inset: 0;
  z-index: 24000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.public-legal-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.public-legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 12, 19, 0.74);
  backdrop-filter: blur(10px);
}

.public-legal-modal-dialog {
  position: relative;
  width: min(860px, 100%);
  max-height: min(82vh, 780px);
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 14px;
  padding: 22px;
  border-radius: 30px;
  border: 1px solid var(--ghv-landing-border, rgba(136, 164, 255, 0.18));
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--ghv-landing-highlight, #d9e6ff) 10%, transparent), transparent 34%),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--ghv-landing-surface-strong, rgba(12, 21, 36, 0.92)) 96%, black 4%) 0%,
      color-mix(in srgb, var(--ghv-landing-surface, rgba(10, 18, 30, 0.74)) 98%, black 2%) 100%
    );
  box-shadow:
    0 34px 60px rgba(2, 8, 14, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.public-legal-modal-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  min-width: 0;
}

.public-legal-modal-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.public-legal-modal-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ghv-landing-secondary, #4f86ff) 22%, transparent);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--ghv-landing-secondary, #4f86ff) 14%, transparent),
    color-mix(in srgb, var(--ghv-landing-secondary, #4f86ff) 8%, transparent)
  );
  color: color-mix(in srgb, var(--ghv-landing-highlight, #d9e6ff) 92%, white 8%);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.public-legal-modal-copy h3 {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(1.52rem, 2.2vw, 2.08rem);
  line-height: 1.05;
  color: var(--ghv-public-text, #eef6ff);
  overflow-wrap: anywhere;
}

.public-legal-modal-copy p {
  margin: 0;
  color: var(--ghv-public-muted, rgba(226, 236, 248, 0.74));
  font-size: 0.96rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.public-legal-modal-close {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  color: var(--ghv-public-text, #eef6ff);
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.public-legal-modal-close:hover,
.public-legal-modal-close:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--ghv-landing-secondary, #4f86ff) 28%, transparent);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--ghv-landing-secondary, #4f86ff) 16%, transparent),
    color-mix(in srgb, var(--ghv-landing-secondary, #4f86ff) 8%, transparent)
  );
}

.public-legal-modal-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.public-legal-modal-tab {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  color: var(--ghv-public-muted, rgba(226, 236, 248, 0.74));
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.public-legal-modal-tab:hover,
.public-legal-modal-tab:focus-visible,
.public-legal-modal-tab.is-active {
  transform: translateY(-1px);
  color: var(--ghv-public-text, #eef6ff);
  border-color: color-mix(in srgb, var(--ghv-landing-secondary, #4f86ff) 26%, transparent);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--ghv-landing-secondary, #4f86ff) 14%, transparent),
    color-mix(in srgb, var(--ghv-landing-secondary, #4f86ff) 8%, transparent)
  );
}

.public-legal-modal-meta {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(13, 23, 34, 0.74);
  color: var(--ghv-public-muted, rgba(226, 236, 248, 0.74));
  font-size: 0.82rem;
  line-height: 1.5;
}

.public-legal-modal-body {
  min-width: 0;
  overflow: auto;
  padding-right: 6px;
  overscroll-behavior: contain;
}

.public-legal-modal-body::-webkit-scrollbar {
  width: 10px;
}

.public-legal-modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
}

.public-legal-modal-body::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--ghv-landing-primary, #7da4ff) 44%, transparent),
    color-mix(in srgb, var(--ghv-landing-secondary, #4f86ff) 44%, transparent)
  );
  border-radius: 999px;
}

.public-legal-summary {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--ghv-landing-secondary, #4f86ff) 18%, transparent);
  background: linear-gradient(180deg, rgba(17, 31, 43, 0.92), rgba(13, 23, 34, 0.86));
  color: var(--ghv-public-text, #eef6ff);
}

.public-legal-summary p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.public-legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.public-legal-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 16px 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(20, 34, 47, 0.96), rgba(13, 24, 35, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.public-legal-card h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--ghv-public-text, #eef6ff);
  overflow-wrap: anywhere;
}

.public-legal-card-text {
  margin: 0;
  color: var(--ghv-public-muted, rgba(226, 236, 248, 0.74));
  font-size: 0.9rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.public-legal-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--ghv-public-muted, rgba(226, 236, 248, 0.74));
  font-size: 0.9rem;
  line-height: 1.65;
}

.public-legal-list li {
  overflow-wrap: anywhere;
}

.public-legal-footer {
  margin-top: 14px;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(11, 20, 29, 0.92);
  color: var(--ghv-public-muted, rgba(226, 236, 248, 0.74));
  font-size: 0.88rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.public-footer {
  width: min(1600px, calc(100vw - 40px));
  margin: clamp(28px, 5vw, 72px) auto 34px;
  position: relative;
  z-index: 40;
}

.public-footer-shell {
  display: grid;
  gap: 22px;
  padding: 0;
}

.public-footer-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
  justify-items: center;
  padding: 0 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.public-footer-cta-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
  justify-items: center;
}

.public-footer-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ghv-landing-secondary, #4f86ff) 22%, transparent);
  background: color-mix(in srgb, var(--ghv-landing-secondary-soft, rgba(79, 134, 255, 0.18)) 78%, transparent);
  color: color-mix(in srgb, var(--ghv-landing-highlight, #d9e6ff) 92%, white 8%);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: publicFooterFadeUp 620ms cubic-bezier(.22,.9,.25,1) both;
}

.public-footer-cta h2 {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: var(--ghv-public-text, #eef6ff);
  max-width: 16ch;
  animation: publicFooterFadeUp 760ms cubic-bezier(.22,.9,.25,1) both;
}

.public-footer-cta p {
  margin: 0;
  max-width: 66ch;
  color: var(--ghv-public-muted, rgba(226, 236, 248, 0.74));
  font-size: 0.96rem;
  line-height: 1.7;
  animation: publicFooterFadeUp 900ms cubic-bezier(.22,.9,.25,1) both;
}

.public-footer-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  animation: publicFooterFadeUp 1040ms cubic-bezier(.22,.9,.25,1) both;
}

.public-footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 16px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.1;
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease, color 220ms ease;
}

.public-footer-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.22) 50%, transparent 82%);
  transform: translateX(-140%);
  transition: transform 520ms ease;
  pointer-events: none;
}

.public-footer-btn.is-primary {
  color: #041017;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--ghv-landing-primary, #7da4ff) 68%, white 32%),
    color-mix(in srgb, var(--ghv-landing-secondary, #4f86ff) 74%, white 26%)
  );
  box-shadow: 0 18px 34px color-mix(in srgb, var(--ghv-landing-secondary, #4f86ff) 22%, transparent);
}

.public-footer-btn.is-secondary {
  color: var(--ghv-public-text, #eef6ff);
  border-color: var(--ghv-landing-border, rgba(136, 164, 255, 0.18));
  background: rgba(255, 255, 255, 0.04);
}

.public-footer-btn:hover,
.public-footer-btn:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 38px color-mix(in srgb, var(--ghv-landing-secondary, #4f86ff) 24%, transparent);
  outline: none;
}

.public-footer-btn:hover::before,
.public-footer-btn:focus-visible::before {
  transform: translateX(140%);
}

.public-footer-btn.is-secondary:hover,
.public-footer-btn.is-secondary:focus-visible {
  border-color: color-mix(in srgb, var(--ghv-landing-secondary, #4f86ff) 28%, transparent);
  background: color-mix(in srgb, var(--ghv-landing-secondary-soft, rgba(79, 134, 255, 0.18)) 48%, rgba(255, 255, 255, 0.04));
}

@keyframes publicFooterFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.public-footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.15fr) repeat(3, minmax(0, 0.9fr));
  gap: clamp(18px, 2vw, 28px);
  align-items: start;
  padding: 2px 0;
}

.public-footer-brand {
  min-width: 0;
}

.public-footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: var(--ghv-public-text, #eef6ff);
  text-decoration: none;
}

.public-footer-brand-mark {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.public-footer-brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(1, 10, 18, 0.28));
}

.public-footer-brand-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.public-footer-brand-copy strong {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.08rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.public-footer-brand-copy span {
  color: var(--ghv-public-muted, rgba(226, 236, 248, 0.74));
  font-size: 0.9rem;
  line-height: 1.68;
}

.public-footer-col {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.public-footer-col h3 {
  margin: 0;
  color: var(--ghv-public-text, #eef6ff);
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.public-footer-col nav,
.public-footer-bottom-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.public-footer-col a,
.public-footer-bottom-links a {
  color: var(--ghv-public-muted, rgba(226, 236, 248, 0.74));
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.45;
  transition: color 180ms ease, transform 180ms ease;
}

.public-footer-col a:hover,
.public-footer-col a:focus-visible,
.public-footer-bottom-links a:hover,
.public-footer-bottom-links a:focus-visible {
  color: var(--ghv-public-text, #eef6ff);
  transform: translateX(2px);
  outline: none;
}

.public-footer-company-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.public-footer-company-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.public-footer-company-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.public-footer-company-icon.is-discord {
  color: #8ea6ff;
}

.public-footer-company-icon.is-youtube {
  color: #ff5b5b;
}

.public-footer-company-icon.is-about {
  color: #7cefe0;
}

.public-footer-payments {
  align-content: start;
}

.public-footer-payment-grid {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.public-footer-payment-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.public-footer-payment-logo img {
  max-width: 100%;
  max-height: 28px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: none;
  opacity: 1;
}

.public-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.public-footer-copy {
  color: var(--ghv-public-muted, rgba(226, 236, 248, 0.74));
  font-size: 0.92rem;
  line-height: 1.6;
}

.public-footer-bottom-links {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 8px;
  column-gap: 18px;
}

@media (min-width: 1200px) {
  body:is(.systems-page, .planos-page, .faq-page, .assinaturas-page, .legal-page, .server-picker-page) {
    font-size: 15.5px;
  }

  body:is(.systems-page, .planos-page, .faq-page) .page {
    width: min(1600px, calc(100vw - 40px));
    padding-top: 18px;
  }

  body:is(.systems-page, .planos-page, .faq-page, .assinaturas-page, .legal-page, .server-picker-page) .topbar {
    padding: 0;
    margin-bottom: 18px;
    gap: 12px;
  }

  body:is(.systems-page, .planos-page, .faq-page, .assinaturas-page, .legal-page, .server-picker-page) .topbar-actions {
    gap: 10px;
  }

  body:is(.systems-page, .planos-page, .faq-page, .assinaturas-page, .legal-page, .server-picker-page) .topnav {
    gap: 8px;
  }

  body:is(.systems-page, .planos-page, .faq-page) .hero {
    padding: clamp(22px, 2vw, 28px);
    margin-bottom: 18px;
  }

  body:is(.systems-page, .planos-page, .faq-page, .assinaturas-page, .legal-page, .server-picker-page) .brand {
    gap: 12px;
  }

  body:is(.systems-page, .planos-page, .faq-page, .assinaturas-page, .legal-page, .server-picker-page) .brand-mark {
    width: 54px;
    height: 54px;
    padding: 0;
    border-radius: 0;
  }

  body:is(.systems-page, .planos-page, .faq-page, .assinaturas-page) .brand-copy strong {
    font-size: 0.92rem;
  }

  body:is(.systems-page, .planos-page, .faq-page, .assinaturas-page) .brand-copy span {
    font-size: 0.74rem;
    line-height: 1.34;
  }

  body:is(.systems-page, .planos-page, .faq-page, .assinaturas-page, .legal-page) .topnav a {
    min-height: 40px;
    padding: 9px 14px;
    font-size: 0.9rem;
  }

  body:is(.systems-page, .planos-page, .faq-page, .assinaturas-page, .legal-page, .landing) .topnav-profile-btn {
    min-height: 48px;
    min-width: 206px;
    padding: 7px 14px 7px 10px;
  }

  body:is(.systems-page, .planos-page, .faq-page, .assinaturas-page, .legal-page, .landing) .topnav-profile-avatar {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 0.82rem;
  }

  body:is(.systems-page, .planos-page, .faq-page, .assinaturas-page, .legal-page, .landing) .topnav-profile-copy strong {
    font-size: 0.88rem;
  }

  body:is(.systems-page, .planos-page, .faq-page, .assinaturas-page, .legal-page, .landing) .topnav-profile-copy span {
    font-size: 0.72rem;
    line-height: 1.3;
  }

  body:is(.systems-page, .faq-page) .hero h1 {
    font-size: clamp(1.95rem, 2.65vw, 3.35rem);
    line-height: 0.98;
    max-width: 14ch;
  }

  body.planos-page .hero {
    grid-template-columns: minmax(0, 1.26fr) minmax(300px, 0.74fr);
    gap: 16px;
  }

  body.planos-page .hero-copy h1 {
    font-size: clamp(1.82rem, 2.2vw, 2.72rem);
    line-height: 1.03;
    max-width: 15ch;
  }

  body:is(.systems-page, .planos-page, .faq-page) .hero p,
  body:is(.systems-page, .planos-page, .faq-page) .card p,
  body.faq-page .faq-card p,
  body.systems-page .card li {
    font-size: 0.95rem;
    line-height: 1.66;
  }

  body:is(.systems-page, .planos-page, .faq-page) .card,
  body.faq-page .faq-card {
    padding: 18px;
    border-radius: 24px;
  }

  body.systems-page .grid {
    gap: 16px;
  }

  body.systems-page .card h2,
  body.faq-page .faq-card h2 {
    font-size: 1.08rem;
    line-height: 1.34;
  }

  body.systems-page .cta,
  body.faq-page .cta {
    padding: 24px;
    border-radius: 26px;
  }

  body.planos-page .catalog-shell,
  body.planos-page .message,
  body.planos-page .guide-shell,
  body.planos-page .card {
    border-radius: 24px;
  }

  body.planos-page .catalog-shell,
  body.planos-page .guide-shell {
    padding: 18px;
  }

  body.planos-page .metric-grid,
  body.planos-page .grid,
  body.planos-page .guide-grid,
  body.planos-page .plan-flow-grid,
  body.planos-page .fact-grid {
    gap: 14px;
  }

  body.planos-page .metric-card,
  body.planos-page .section-callout,
  body.planos-page .guide-card,
  body.planos-page .plan-flow-card,
  body.planos-page .feature,
  body.planos-page .modal-overview-card,
  body.planos-page .detail-banner,
  body.planos-page .fact-card,
  body.planos-page .card {
    border-radius: 20px;
  }

  body.planos-page .metric-card,
  body.planos-page .guide-card,
  body.planos-page .feature,
  body.planos-page .fact-card {
    padding: 15px;
  }

  body.planos-page .section-callout,
  body.planos-page .detail-banner {
    padding: 16px 18px;
  }

  body.planos-page .card {
    padding: 18px;
  }

  body.planos-page .card h3,
  body.planos-page .guide-card h3,
  body.planos-page .feature-top strong,
  body.planos-page .modal-overview-card strong {
    font-size: 0.96rem;
    line-height: 1.32;
  }

  body.planos-page .card p,
  body.planos-page .guide-card p,
  body.planos-page .feature p,
  body.planos-page .feature small,
  body.planos-page .detail-note {
    font-size: 0.92rem;
    line-height: 1.62;
  }

  body.planos-page .fact-card strong {
    font-size: 0.94rem;
  }

  body.planos-page .modal-box {
    padding: 20px;
    border-radius: 24px;
    gap: 16px;
  }
}

@media (max-width: 1040px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand profile"
      "nav nav";
    align-items: stretch;
    row-gap: 16px;
  }

  .brand {
    grid-area: brand;
  }

  .topnav {
    grid-area: nav;
    justify-content: flex-start;
    justify-self: stretch;
    gap: 24px;
  }

  .topnav-profile {
    grid-area: profile;
  }

  .public-footer-cta,
  .public-footer-grid,
  .public-footer-bottom {
    grid-template-columns: 1fr;
  }

  .public-footer-cta-actions,
  .public-footer-bottom-links {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "profile"
      "nav";
  }

  .brand {
    grid-area: brand;
    justify-content: center;
  }

  .topnav {
    grid-area: nav;
    justify-content: center;
    gap: 10px;
  }

  .topnav a {
    flex: 1 1 calc(50% - 10px);
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 16px;
    background: rgba(255,255,255,.04);
    white-space: normal;
  }

  .topnav-profile {
    grid-area: profile;
    justify-self: center;
  }

  .topnav-profile-btn {
    min-width: 0;
    width: 100%;
  }

  .public-footer {
    width: min(100%, calc(100vw - 24px));
    margin: 24px auto 26px;
  }

  .public-footer-shell {
    gap: 18px;
  }

  .public-footer-cta {
    padding: 0 0 16px;
  }

  .public-footer-cta h2 {
    font-size: clamp(1.5rem, 7vw, 2.15rem);
  }

  .public-footer-btn {
    width: 100%;
  }

  .public-footer-payment-grid {
    gap: 12px;
  }

  .public-legal-modal {
    padding: 18px;
  }

  .public-legal-modal-dialog {
    max-height: min(84vh, 820px);
    padding: 20px;
  }

  .public-legal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 0;
  }

  .brand-copy strong {
    font-size: 0.96rem;
  }

  .topnav-profile {
    width: 100%;
  }

  .topnav {
    justify-self: stretch;
  }

  .topnav a {
    flex: 1 1 100%;
  }

  .topnav-profile-dropdown {
    left: 0;
    right: 0;
    min-width: 0;
  }

  .public-footer-cta-actions,
  .public-footer-bottom-links {
    flex-direction: column;
    align-items: center;
  }

  .public-footer-payment-grid {
    justify-content: flex-start;
  }

  .public-legal-modal {
    padding: 12px;
  }

  .public-legal-modal-dialog {
    gap: 12px;
    padding: 16px;
    border-radius: 24px;
    max-height: min(88vh, 880px);
  }

  .public-legal-modal-head {
    grid-template-columns: 1fr;
  }

  .public-legal-modal-close {
    width: 100%;
    justify-self: stretch;
  }

  .public-legal-modal-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .public-legal-modal-tab {
    width: 100%;
  }

  .public-legal-modal-body {
    padding-right: 2px;
  }
}

body:is(.systems-page, .planos-page, .faq-page, .assinaturas-page, .legal-page, .server-picker-page) .topbar {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body:is(.systems-page, .planos-page, .faq-page, .assinaturas-page, .legal-page, .server-picker-page) .topnav a {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body:is(.systems-page, .planos-page, .faq-page, .assinaturas-page, .legal-page, .server-picker-page) .topnav a:hover,
body:is(.systems-page, .planos-page, .faq-page, .assinaturas-page, .legal-page, .server-picker-page) .topnav a:focus-visible,
body:is(.systems-page, .planos-page, .faq-page, .assinaturas-page, .legal-page, .server-picker-page) .topnav a.active {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ghv-landing-text, var(--ghv-public-text, #eef6ff)) !important;
  text-shadow: 0 0 20px rgba(127, 165, 255, 0.34) !important;
}

@media (prefers-reduced-motion: reduce) {
  .public-footer-kicker,
  .public-footer-cta h2,
  .public-footer-cta p,
  .public-footer-cta-actions {
    animation: none;
  }

  .public-footer-btn,
  .public-footer-btn::before {
    transition: none;
  }
}
