/* Landing visuals only. Instabio-style layout, Roketlink blue.
   Existing forms, menus, pricing, and stats stay in place. */

html:has([data-testid="headerTitle"]) {
  --rk-ink: #121826;
  --rk-muted: #5c6778;
  --rk-line: rgba(18, 24, 38, 0.08);
  --rk-card: #ffffff;
  --rk-canvas: #ffffff;
  --rk-blue: #2563eb;
}

html.dark:has([data-testid="headerTitle"]) {
  --rk-ink: #f4f7fb;
  --rk-muted: #aeb6c7;
  --rk-line: rgba(255, 255, 255, 0.08);
  --rk-card: #151a24;
  --rk-canvas: #0c1018;
  --rk-blue: #3b82f6;
}

html:has([data-testid="headerTitle"]) body,
html:has([data-testid="headerTitle"]) #root {
  background: var(--rk-canvas);
  color: var(--rk-ink);
}

html:has([data-testid="headerTitle"]) header:has([data-testid="headerTitle"]) {
  min-height: 0;
  margin-bottom: 0;
  background: #f7f9ff;
}

html:has([data-testid="headerTitle"]) header:has([data-testid="headerTitle"]) > img {
  display: none;
}

html:has([data-testid="headerTitle"]) header:has([data-testid="headerTitle"]) > div:last-child,
html:has([data-testid="headerTitle"]) header:has([data-testid="headerTitle"])::before,
html:has([data-testid="headerTitle"]) header:has([data-testid="headerTitle"])::after {
  display: none;
}

html:has([data-testid="headerTitle"]) header:has([data-testid="headerTitle"]) > div.absolute {
  background:
    radial-gradient(closest-side at 82% 32%, rgba(37, 99, 235, 0.14), transparent 70%),
    radial-gradient(closest-side at 8% 8%, rgba(191, 219, 254, 0.55), transparent 62%),
    linear-gradient(180deg, #f5f8ff 0%, #ffffff 68%) !important;
}

html.dark:has([data-testid="headerTitle"]) header:has([data-testid="headerTitle"]) > div.absolute {
  background:
    radial-gradient(closest-side at 78% 38%, rgba(37, 99, 235, 0.28), transparent 72%),
    linear-gradient(180deg, #0c1018 0%, #0c1018 80%) !important;
}

html:has([data-testid="headerTitle"]) header a[aria-label="Go to homepage"] {
  width: 158px;
  height: 36px;
  background: url("/rk-assets/logo.svg?v=2") left center / contain no-repeat;
}

html.dark:has([data-testid="headerTitle"]) header a[aria-label="Go to homepage"] {
  background-image: url("/rk-assets/logo-on-dark.svg?v=2");
}

html:has([data-testid="headerTitle"]) header a[aria-label="Go to homepage"] picture,
html:has([data-testid="headerTitle"]) header a[aria-label="Go to homepage"] img {
  width: 158px;
  height: 36px;
  opacity: 0;
  filter: none;
}

html:has([data-testid="headerTitle"]) header:has([data-testid="headerTitle"]) > div.relative > div:first-child {
  width: min(1120px, calc(100% - 28px));
  margin: 14px auto 0;
  height: auto;
  min-height: 64px;
  padding-top: 6px;
  padding-bottom: 6px;
  background: #fff;
  color: var(--rk-ink);
  border: 1px solid rgba(18, 24, 38, 0.06);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

html.dark:has([data-testid="headerTitle"]) header:has([data-testid="headerTitle"]) > div.relative > div:first-child {
  background: #151a24;
  color: #f4f7fb;
  border-color: rgba(255, 255, 255, 0.06);
}

html:has([data-testid="headerTitle"]) header .mx-14.gap-30 {
  gap: 16px;
  margin-left: 8px;
  margin-right: 8px;
}

html:has([data-testid="headerTitle"]) header:has([data-testid="headerTitle"]) > div.relative > div:first-child a[href="/login"] {
  background: var(--rk-blue);
  color: #fff;
  border-radius: 999px;
  box-shadow: none;
}

html:has([data-testid="headerTitle"]) header:has([data-testid="headerTitle"]) > div.relative > div:first-child a[href="/register"] {
  color: var(--rk-ink);
}

html:has([data-testid="headerTitle"]) header div.text-white {
  color: var(--rk-ink);
}

@media (min-width: 1024px) {
  html:has([data-testid="headerTitle"]) header div.max-w-850 {
    display: grid;
    width: min(1120px, calc(100% - 48px));
    max-width: 1120px;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    align-items: center;
    justify-items: start;
    column-gap: 1.5rem;
    padding-top: 2.2rem;
    padding-bottom: 3.2rem;
    text-align: left;
  }

  html:has([data-testid="headerTitle"]) header div.max-w-850 > * {
    grid-column: 1;
    justify-self: stretch;
    text-align: left;
  }

  html:has([data-testid="headerTitle"]) header div.max-w-850::after {
    content: "";
    grid-column: 2;
    grid-row: 1 / span 8;
    width: 100%;
    height: 560px;
    background: url("/rk-assets/hero-stage.svg?v=2") center / contain no-repeat;
    pointer-events: none;
  }
}

html:has([data-testid="headerTitle"]) [data-testid="headerTitle"] {
  max-width: 11ch;
  margin-inline: 0;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.96;
  text-align: inherit;
}

html:has([data-testid="headerTitle"]) [data-testid="headerSubtitle"] {
  max-width: 34rem;
  margin-inline: 0;
  color: var(--rk-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  text-align: inherit;
}

html:has([data-testid="headerTitle"]) header form.mt-60 {
  margin-top: 1.5rem;
  max-width: 460px;
  filter: none;
}

html:has([data-testid="headerTitle"]) header form input {
  border: 1px solid rgba(18, 24, 38, 0.08);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

html:has([data-testid="headerTitle"]) header div:has(> [data-testid="cta1"]) {
  justify-content: flex-start;
  gap: 0.75rem;
  padding-top: 1rem;
  padding-bottom: 0.4rem;
  min-height: 0;
}

html:has([data-testid="headerTitle"]) [data-testid="cta1"] {
  background: var(--rk-blue);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

html:has([data-testid="headerTitle"]) [data-testid="cta1"] svg {
  color: #fff;
}

html:has([data-testid="headerTitle"]) [data-testid="cta2"] {
  border: 1px solid rgba(18, 24, 38, 0.12);
  border-radius: 999px;
  color: var(--rk-ink);
  padding-inline: 1.15rem;
}

html:has([data-testid="headerTitle"]) #primary-features {
  position: relative;
  z-index: 2;
  margin-top: 0.25rem;
}

html:has([data-testid="headerTitle"]) #primary-features > div {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0.4rem 0.2rem 0.2rem;
  text-align: left;
}

html:has([data-testid="headerTitle"]) #primary-features .svg-image-container {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 0 0.9rem;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

html:has([data-testid="headerTitle"]) #primary-features .svg-image-container svg {
  display: none;
}

html:has([data-testid="headerTitle"]) #primary-features > div:nth-child(1) .svg-image-container {
  background-image: url("/rk-assets/icon-protect.svg");
}

html:has([data-testid="headerTitle"]) #primary-features > div:nth-child(2) .svg-image-container {
  background-image: url("/rk-assets/icon-target.svg");
}

html:has([data-testid="headerTitle"]) #primary-features > div:nth-child(3) .svg-image-container {
  background-image: url("/rk-assets/icon-groups.svg");
}

html:has([data-testid="headerTitle"]) #primary-features h2 {
  font-weight: 760;
  letter-spacing: -0.03em;
  text-align: left;
}

html:has([data-testid="headerTitle"]) #primary-features [data-testid^="primary-subtitle-"] {
  color: var(--rk-muted);
  line-height: 1.6;
  text-align: left;
}

html:has([data-testid="headerTitle"]) .mt-100.h-1 {
  height: 0;
  margin-top: 2.5rem;
  opacity: 0;
}

html:has([data-testid="headerTitle"]) div:has(> #features) {
  padding-top: 0.5rem;
}

html:has([data-testid="headerTitle"]) [data-testid^="secondary-root-"] {
  align-items: center;
  gap: 3.5rem;
  margin-bottom: 4.5rem;
}

html:has([data-testid="headerTitle"]) [data-testid^="secondary-image-"] {
  border-radius: 28px;
  border: 0;
  box-shadow: 0 28px 60px rgba(30, 58, 138, 0.12);
}

html:has([data-testid="headerTitle"]) [data-testid^="secondary-subtitle-"] {
  color: var(--rk-blue);
  font-weight: 700;
  letter-spacing: 0.14em;
}

html:has([data-testid="headerTitle"]) [data-testid^="secondary-title-"] {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  padding-top: 0.35rem;
  padding-bottom: 0.3rem;
}

html:has([data-testid="headerTitle"]) [data-testid^="secondary-root-"] .h-2 {
  display: none;
}

html:has([data-testid="headerTitle"]) [data-testid^="secondary-description-"] {
  color: var(--rk-muted);
  line-height: 1.7;
}

html:has([data-testid="headerTitle"]) .landing-container.border-t {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  border-top: 0;
  padding-top: 0.5rem;
  padding-bottom: 3.5rem;
}

html:has([data-testid="headerTitle"]) .landing-container.border-t > div {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

html:has([data-testid="headerTitle"]) .landing-container.border-t .border-l {
  border-left: 0;
  margin-left: 0.85rem;
  padding-left: 0;
}

html:has([data-testid="headerTitle"]) .landing-container.border-t .uppercase {
  color: var(--rk-muted);
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
}

html:has([data-testid="headerTitle"]) .landing-container.border-t .text-3xl {
  font-size: 2.7rem;
  font-weight: 800;
  letter-spacing: -0.045em;
}

html:has([data-testid="headerTitle"]) [data-testid="footerImage"] {
  width: min(1120px, calc(100% - 48px));
  margin: 0.5rem auto 1.5rem;
  border-radius: 36px;
}

html:has([data-testid="headerTitle"]) [data-testid="footerTitle"] {
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

html:has([data-testid="headerTitle"]) [data-testid="footerSubtitle"] {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.6;
}

html:has([data-testid="headerTitle"]) [data-testid="cta3"] {
  background: #fff;
  color: #121826;
  border-color: #fff;
  border-radius: 999px;
}

html:has([data-testid="headerTitle"]) #pricing {
  position: relative;
  margin-top: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  background:
    radial-gradient(closest-side at 50% 0%, rgba(37, 99, 235, 0.08), transparent 70%),
    linear-gradient(180deg, #f7f9ff 0%, #ffffff 42%);
}

html:has([data-testid="headerTitle"]) #pricing h2 {
  font-weight: 800;
  letter-spacing: -0.045em;
}

html:has([data-testid="headerTitle"]) #pricing p {
  color: var(--rk-muted);
}

html:has([data-testid="headerTitle"]) #pricing [class*="md:flex-row"] > div {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(18, 24, 38, 0.06);
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
  padding-top: 1.35rem;
}

html:has([data-testid="headerTitle"]) #pricing [class*="md:flex-row"] > div::before {
  content: "";
  display: block;
  width: 52px;
  height: 52px;
  margin-bottom: 0.85rem;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

html:has([data-testid="headerTitle"]) #pricing [class*="md:flex-row"] > div:nth-child(1)::before {
  background-image: url("/rk-assets/plan-basic.svg?v=3");
}

html:has([data-testid="headerTitle"]) #pricing [class*="md:flex-row"] > div:nth-child(2)::before {
  background-image: url("/rk-assets/plan-standard.svg?v=3");
}

html:has([data-testid="headerTitle"]) #pricing [class*="md:flex-row"] > div:nth-child(3)::before {
  background-image: url("/rk-assets/plan-pro.svg?v=3");
}

html:has([data-testid="headerTitle"]) #pricing [class*="md:flex-row"] > div:not(:has(.invisible)) {
  border: 2px solid #2563eb;
  transform: translateY(-14px);
  box-shadow: 0 28px 60px rgba(37, 99, 235, 0.16);
}

html:has([data-testid="headerTitle"]) #pricing .w-min:not(.invisible) {
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
}

html:has([data-testid="headerTitle"]) #pricing [class*="md:flex-row"] a,
html:has([data-testid="headerTitle"]) #pricing [class*="md:flex-row"] button {
  border-radius: 999px;
  min-height: 46px;
}

html:has([data-testid="headerTitle"]) #pricing .border-t svg {
  width: 18px;
  height: 18px;
  padding: 3px;
  border-radius: 999px;
  background: #eef4ff;
}

html:has([data-testid="headerTitle"]) .rk-pages {
  width: min(1120px, calc(100% - 40px));
  margin: 2.5rem auto 1rem;
  text-align: center;
}

html:has([data-testid="headerTitle"]) .rk-pages h2 {
  max-width: 16ch;
  margin: 0 auto;
  color: #121826;
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

html:has([data-testid="headerTitle"]) .rk-pages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 1.8rem;
}

html:has([data-testid="headerTitle"]) .rk-pages article {
  overflow: hidden;
  border-radius: 28px;
  padding: 18px 16px 8px;
  text-align: left;
}

html:has([data-testid="headerTitle"]) .rk-pages article:nth-child(1) {
  background: linear-gradient(180deg, #eef4ff 0%, #f8fbff 100%);
}

html:has([data-testid="headerTitle"]) .rk-pages article:nth-child(2) {
  background: linear-gradient(180deg, #e8e9ff 0%, #f7f7ff 100%);
}

html:has([data-testid="headerTitle"]) .rk-pages article:nth-child(3) {
  background: linear-gradient(180deg, #e0f2fe 0%, #f8fbff 100%);
}

html:has([data-testid="headerTitle"]) .rk-pages .rk-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: #fff;
  padding: 6px 10px;
  color: #121826;
  font-size: 12px;
  font-weight: 650;
}

html:has([data-testid="headerTitle"]) .rk-pages .rk-pill i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #2563eb;
}

html:has([data-testid="headerTitle"]) .rk-pages img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 4px;
}

html:has([data-testid="headerTitle"]) .rk-pages h3 {
  margin: 4px 0 6px;
  font-size: 1.25rem;
  font-weight: 760;
  letter-spacing: -0.03em;
}

html:has([data-testid="headerTitle"]) .rk-pages p {
  margin: 0 0 12px;
  color: #5c6778;
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (max-width: 800px) {
  html:has([data-testid="headerTitle"]) .rk-pages-grid {
    grid-template-columns: 1fr;
  }

  html:has([data-testid="headerTitle"]) #pricing [class*="md:flex-row"] > div:not(:has(.invisible)) {
    transform: none;
  }
}

html:has([data-testid="headerTitle"]) footer.landing-container {
  border-top: 1px solid var(--rk-line);
}

@media (max-width: 1023px) {
  html:has([data-testid="headerTitle"]) header div.max-w-850 {
    text-align: center;
  }

  html:has([data-testid="headerTitle"]) [data-testid="headerTitle"],
  html:has([data-testid="headerTitle"]) [data-testid="headerSubtitle"] {
    max-width: none;
    margin-inline: auto;
    text-align: center;
  }

  html:has([data-testid="headerTitle"]) header form.mt-60 {
    margin-inline: auto;
  }

  html:has([data-testid="headerTitle"]) header div:has(> [data-testid="cta1"]) {
    justify-content: center;
  }

  html:has([data-testid="headerTitle"]) header div.max-w-850::after {
    content: "";
    display: block;
    width: min(420px, 100%);
    height: 420px;
    margin: 0.5rem auto 0;
    background: url("/rk-assets/hero-stage.svg?v=2") center / contain no-repeat;
  }
}

@media (max-width: 767px) {
  html:has([data-testid="headerTitle"]) [data-testid="headerTitle"] {
    font-size: 2.45rem;
  }

  html:has([data-testid="headerTitle"]) .landing-container.border-t {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }

  html:has([data-testid="headerTitle"]) #primary-features > div {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  html:has([data-testid="headerTitle"]) #primary-features .svg-image-container,
  html:has([data-testid="headerTitle"]) #primary-features h2,
  html:has([data-testid="headerTitle"]) #primary-features [data-testid^="primary-subtitle-"] {
    margin-inline: auto;
    text-align: center;
  }

  html:has([data-testid="headerTitle"]) [data-testid="footerImage"] {
    width: calc(100% - 24px);
    border-radius: 24px;
  }
}

html[data-rk="dash"] {
  --rk-line: rgba(18, 24, 38, 0.08);
  --rk-canvas: #f3f5f9;
  --rk-ink: #121826;
}

html.dark[data-rk="dash"] {
  --rk-line: rgba(255, 255, 255, 0.08);
  --rk-canvas: #0d1118;
  --rk-ink: #f4f7fb;
}

html[data-rk="dash"] .dashboard-grid {
  background: var(--rk-canvas);
}

html[data-rk="dash"] .dashboard-grid-navbar {
  border-bottom-color: var(--rk-line);
  box-shadow: 0 1px 0 var(--rk-line);
}

html[data-rk="dash"] .dashboard-grid-sidenav-left {
  border-right: 1px solid var(--rk-line);
}

html[data-rk="dash"] .dashboard-grid-sidenav-left a {
  border-left-width: 0;
  border-radius: 12px;
  margin-top: 2px;
  margin-bottom: 2px;
}

html[data-rk="dash"] .dashboard-grid-content,
html[data-rk="dash"] .dashboard-grid-content > div {
  background: transparent;
}

html[data-rk="dash"] .dashboard-grid-content h1 {
  color: var(--rk-ink);
  font-weight: 640;
  letter-spacing: -0.035em;
}

html[data-rk="dash"] .dashboard-grid-content [role="grid"] {
  overflow: hidden;
  border: 1px solid var(--rk-line);
  border-radius: 18px;
  background: #fff;
}

html:has([data-testid="headerTitle"]) [data-testid^="secondary-image-"] {
  padding: 14px;
  border-radius: 32px;
  background:
    radial-gradient(closest-side at 80% 20%, rgba(37, 99, 235, 0.16), transparent 70%),
    linear-gradient(180deg, #f4f7ff, #ffffff);
  box-shadow: 0 30px 70px rgba(30, 58, 138, 0.12);
}

html:has([data-testid="headerTitle"]) [data-testid^="secondary-subtitle-"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: #eef4ff;
  padding: 6px 10px;
  letter-spacing: 0.12em;
}

html:has([data-testid="headerTitle"]) [data-testid^="secondary-subtitle-"]::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #2563eb;
}

html:has([data-testid="headerTitle"]) [data-testid^="secondary-root-"]::after {
  content: "";
  position: absolute;
  z-index: 3;
  width: 72px;
  height: 72px;
  background: url("/rk-assets/float-badge.svg?v=4") center / contain no-repeat;
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.08));
  pointer-events: none;
}

html:has([data-testid="headerTitle"]) [data-testid="secondary-root-0"]::after {
  top: 8px;
  right: 6%;
}

html:has([data-testid="headerTitle"]) [data-testid="secondary-root-1"]::after {
  bottom: 18px;
  left: 4%;
}

html:has([data-testid="headerTitle"]) [data-testid="secondary-root-2"]::after {
  top: 12px;
  right: 8%;
}

html:has([data-testid="headerTitle"]) .landing-container.border-t > div > svg {
  display: none;
}

html:has([data-testid="headerTitle"]) .landing-container.border-t > div::before {
  content: "";
  width: 52px;
  height: 52px;
  flex: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

html:has([data-testid="headerTitle"]) .landing-container.border-t > div:nth-child(1)::before {
  background-image: url("/rk-assets/stat-links.svg?v=4");
}

html:has([data-testid="headerTitle"]) .landing-container.border-t > div:nth-child(2)::before {
  background-image: url("/rk-assets/stat-clicks.svg?v=4");
}

html:has([data-testid="headerTitle"]) .landing-container.border-t > div:nth-child(3)::before {
  background-image: url("/rk-assets/stat-users.svg?v=4");
}

html:has([data-testid="headerTitle"]) footer.landing-container {
  padding-top: 2.2rem;
}

html:has([data-testid="headerTitle"]) footer a[href*="facebook.com"],
html:has([data-testid="headerTitle"]) footer a[href*="twitter.com"],
html:has([data-testid="headerTitle"]) footer a[href*="instagram.com"],
html:has([data-testid="headerTitle"]) footer a[href*="youtube.com"] {
  display: inline-flex;
  width: 40px;
  height: 40px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

html:has([data-testid="headerTitle"]) footer a[href*="facebook.com"] svg,
html:has([data-testid="headerTitle"]) footer a[href*="twitter.com"] svg,
html:has([data-testid="headerTitle"]) footer a[href*="instagram.com"] svg,
html:has([data-testid="headerTitle"]) footer a[href*="youtube.com"] svg {
  display: none;
}

html:has([data-testid="headerTitle"]) footer a[href*="facebook.com"] {
  background-image: url("/rk-assets/social-facebook.svg?v=4");
}

html:has([data-testid="headerTitle"]) footer a[href*="twitter.com"] {
  background-image: url("/rk-assets/social-x.svg?v=4");
}

html:has([data-testid="headerTitle"]) footer a[href*="instagram.com"] {
  background-image: url("/rk-assets/social-instagram.svg?v=4");
}

html:has([data-testid="headerTitle"]) footer a[href*="youtube.com"] {
  background-image: url("/rk-assets/social-youtube.svg?v=4");
}

html:has([data-testid="headerTitle"]) footer .mb-14 > div:last-child {
  gap: 10px;
}

html:has([data-testid="headerTitle"]) .rk-share,
html:has([data-testid="headerTitle"]) .rk-steps,
html:has([data-testid="headerTitle"]) .rk-faq {
  width: min(1120px, calc(100% - 40px));
  margin: 3.5rem auto;
}

html:has([data-testid="headerTitle"]) .rk-share {
  text-align: center;
}

html:has([data-testid="headerTitle"]) .rk-share h2,
html:has([data-testid="headerTitle"]) .rk-steps h2,
html:has([data-testid="headerTitle"]) .rk-faq h2 {
  margin: 0 auto;
  color: #121826;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

html:has([data-testid="headerTitle"]) .rk-share p {
  margin: 0.8rem auto 0;
  max-width: 36rem;
  color: #5c6778;
}

html:has([data-testid="headerTitle"]) .rk-share-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 1.6rem;
}

html:has([data-testid="headerTitle"]) .rk-share-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: #fff;
  padding: 8px 14px 8px 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  font-weight: 650;
}

html:has([data-testid="headerTitle"]) .rk-share-row img {
  width: 36px;
  height: 36px;
}

html:has([data-testid="headerTitle"]) .rk-steps h2,
html:has([data-testid="headerTitle"]) .rk-faq h2 {
  max-width: 14ch;
  text-align: center;
}

html:has([data-testid="headerTitle"]) .rk-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 1.8rem;
}

html:has([data-testid="headerTitle"]) .rk-steps article {
  border-radius: 28px;
  background: #f7f9ff;
  padding: 22px 22px 26px;
}

html:has([data-testid="headerTitle"]) .rk-steps img {
  width: 64px;
  height: 64px;
}

html:has([data-testid="headerTitle"]) .rk-steps b {
  display: block;
  margin-top: 16px;
  color: #2563eb;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}

html:has([data-testid="headerTitle"]) .rk-steps h3 {
  margin: 6px 0;
  font-size: 1.35rem;
  font-weight: 760;
  letter-spacing: -0.03em;
}

html:has([data-testid="headerTitle"]) .rk-steps p,
html:has([data-testid="headerTitle"]) .rk-faq p {
  margin: 0;
  color: #5c6778;
  line-height: 1.6;
}

html:has([data-testid="headerTitle"]) .rk-faq-list {
  max-width: 760px;
  margin: 1.6rem auto 0;
}

html:has([data-testid="headerTitle"]) .rk-faq details {
  border-bottom: 1px solid rgba(18, 24, 38, 0.08);
  padding: 1rem 0;
}

html:has([data-testid="headerTitle"]) .rk-faq summary {
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  list-style: none;
}

html:has([data-testid="headerTitle"]) .rk-faq summary::-webkit-details-marker {
  display: none;
}

html:has([data-testid="headerTitle"]) .rk-faq summary::after {
  content: "+";
  color: #2563eb;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
}

html:has([data-testid="headerTitle"]) .rk-faq details[open] summary::after {
  content: "–";
}

html:has([data-testid="headerTitle"]) .rk-faq details p {
  max-width: 62ch;
  padding-top: 0.7rem;
}

@media (max-width: 800px) {
  html:has([data-testid="headerTitle"]) .rk-steps-grid {
    grid-template-columns: 1fr;
  }
}

html[data-rk="pricing"] {
  background:
    radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.14), transparent 32%),
    radial-gradient(circle at 88% 8%, rgba(56, 189, 248, 0.12), transparent 28%),
    #f6f8fd;
}

html[data-rk="pricing"] header a[aria-label="Go to homepage"] img,
html[data-rk="pricing"] header a[aria-label="Go to homepage"] picture {
  height: 36px;
  width: auto;
}

html[data-rk="pricing"] h1 {
  color: #121826;
  font-size: clamp(2.4rem, 5vw, 3.8rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

html[data-rk="pricing"] [class*="md:justify-center"] > div {
  position: relative;
  overflow: hidden;
  border-radius: 28px !important;
  border: 1px solid #e7ebf3 !important;
  background: #fff !important;
  padding-top: 96px !important;
  box-shadow: 0 18px 44px rgba(18, 24, 38, 0.07) !important;
}

html[data-rk="pricing"] [class*="md:justify-center"] > div::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 28px;
  width: 56px;
  height: 56px;
  background: url("/rk-assets/plan-basic.svg?v=3") center / contain no-repeat;
}

html[data-rk="pricing"] [class*="md:justify-center"] > div:nth-child(2)::before {
  background-image: url("/rk-assets/plan-standard.svg?v=3");
}

html[data-rk="pricing"] [class*="md:justify-center"] > div:nth-child(3)::before {
  background-image: url("/rk-assets/plan-pro.svg?v=3");
}

html[data-rk="pricing"] [class*="md:justify-center"] > div:not(:has(.invisible)) {
  border: 2px solid #2563eb !important;
  transform: translateY(-14px);
  box-shadow: 0 28px 60px rgba(37, 99, 235, 0.16) !important;
}

html[data-rk="pricing"] .w-min:not(.invisible) {
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
}

html[data-rk="pricing"] [class*="md:justify-center"] a,
html[data-rk="pricing"] [class*="md:justify-center"] button {
  border-radius: 999px;
  min-height: 46px;
}

html[data-rk="pricing"] .border-t svg {
  width: 18px;
  height: 18px;
  padding: 3px;
  border-radius: 999px;
  background: #eef4ff;
}

html[data-rk="pricing"] .my-20.p-24.text-center {
  margin-top: 3.5rem;
  margin-bottom: 3rem;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(18, 24, 38, 0.06);
}

html[data-rk="pricing"] .my-20.p-24.text-center svg {
  width: 42px;
  height: 42px;
  padding: 8px;
  border-radius: 14px;
  background: #eef4ff;
  color: #2563eb;
}

@media (max-width: 800px) {
  html[data-rk="pricing"] [class*="md:justify-center"] > div:not(:has(.invisible)) {
    transform: none;
  }
}

html[data-rk="auth"] main {
  position: relative;
  height: auto !important;
  min-height: 100vh;
  align-items: center;
  justify-content: flex-start;
  padding: 0 16px 28px !important;
  background-color: #f4f7ff !important;
  background-image:
    radial-gradient(closest-side at 16% 42%, rgba(147, 197, 253, 0.55), transparent 72%),
    radial-gradient(closest-side at 86% 24%, rgba(199, 210, 254, 0.72), transparent 74%),
    linear-gradient(180deg, #ffffff 0%, #f3f6ff 100%) !important;
}

html[data-rk="auth"] main > a[aria-label="Go to homepage"] {
  position: absolute;
  top: 22px;
  left: 28px;
  z-index: 5;
  margin: 0;
}

html[data-rk="auth"] main > a[aria-label="Go to homepage"] img {
  height: 34px;
}

html[data-rk="auth"] main > div[class*="max-w-440"] {
  display: flex;
  flex-direction: column;
  width: min(440px, calc(100% - 8px));
  max-width: 440px;
  margin: 92px auto 0;
  border-radius: 28px;
  background: #fff;
  padding: 36px 28px 58px;
  box-shadow: 0 30px 70px rgba(37, 99, 235, 0.08), 0 10px 28px rgba(18, 24, 38, 0.05);
}

html[data-rk="auth"] main > div[class*="max-w-440"] > h1 {
  order: 0;
  margin-bottom: 22px !important;
  color: #121826;
  text-align: center;
  font-size: 1.9rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.045em;
}

html[data-rk="auth"] main > div[class*="max-w-440"] > div.flex {
  order: 1;
}

html[data-rk="auth"] main > div[class*="max-w-440"] > div.relative {
  order: 2;
}

html[data-rk="auth"] main > div[class*="max-w-440"] > form {
  order: 3;
}

html[data-rk="auth"] main form {
  display: flex;
  flex-direction: column;
}

html[data-rk="auth"] main form > div {
  order: 3;
}

html[data-rk="auth"] main form > div.flex {
  order: 1;
}

html[data-rk="auth"] main form > div.relative {
  order: 2;
}

html[data-rk="auth"] main form > button {
  order: 4;
}

html[data-rk="auth"] main div.flex.justify-center {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

html[data-rk="auth"] main div.flex.justify-center button {
  display: inline-flex;
  width: 100% !important;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #e7ebf3 !important;
  border-radius: 999px !important;
  background: #fff !important;
  box-shadow: none !important;
}

html[data-rk="auth"] main div.flex.justify-center button svg {
  width: 18px;
  height: 18px;
  flex: none;
}

html[data-rk="auth"] main div.flex.justify-center button::after {
  content: attr(aria-label);
  color: #121826;
  font-size: 14.5px;
  font-weight: 650;
  text-transform: capitalize;
}

html[data-rk="auth"] main div.relative.my-20 {
  margin: 4px 0 16px;
}

html[data-rk="auth"] main div.relative.my-20 span {
  color: transparent;
  font-size: 12px;
}

html[data-rk="auth"] main div.relative.my-20 span::after {
  content: "OR";
  color: #98a2b3;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
}

html[data-rk="auth"] main form > div {
  position: relative;
}

html[data-rk="auth"] main label[class*="first-letter"] {
  position: absolute;
  top: 15px;
  left: 46px;
  z-index: 2;
  margin: 0 !important;
  color: #98a2b3;
  font-weight: 500;
  pointer-events: none;
}

html[data-rk="auth"] main label[class*="first-letter"] span {
  display: none;
}

html[data-rk="auth"] main div:focus-within > label[class*="first-letter"],
html[data-rk="auth"] main div:focus-within label[class*="first-letter"],
html[data-rk="auth"] main div:has(input:user-valid) label[class*="first-letter"] {
  opacity: 0;
}

html[data-rk="auth"] main form div.mb-4.flex {
  height: 0;
  margin: 0 !important;
  overflow: visible;
}

html[data-rk="auth"] main form > .block {
  margin-top: 10px;
  padding-right: 164px;
}

html[data-rk="auth"] main input[type="email"],
html[data-rk="auth"] main input[type="password"],
html[data-rk="auth"] main input[type="text"] {
  min-height: 48px;
  border-color: #e6e8ee !important;
  border-radius: 999px !important;
  background-color: #fff !important;
  background-repeat: no-repeat;
  background-position: 16px center;
  background-size: 18px 18px;
  padding-left: 46px !important;
  padding-right: 18px !important;
  color: #121826;
  box-shadow: none !important;
}

html[data-rk="auth"] main input[type="email"] {
  background-image: url("/rk-assets/icon-mail.svg");
}

html[data-rk="auth"] main input[type="password"] {
  background-image: url("/rk-assets/icon-lock.svg");
}

html[data-rk="auth"] main form > button[type="submit"],
html[data-rk="auth"] main form button[type="submit"] {
  min-height: 48px;
  margin-top: 8px;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%) !important;
  color: #fff !important;
  font-weight: 750;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
}

html[data-rk="auth"] main a[href*="forgot-password"] {
  position: absolute;
  top: 62px;
  right: 0;
  color: #2563eb;
  font-size: 13px;
  font-weight: 650;
}

html[data-rk="auth"] main > div.mt-36 {
  position: relative;
  z-index: 2;
  width: min(440px, calc(100% - 8px));
  margin: -42px auto 20px;
  color: #5c6778;
  text-align: center;
}

html[data-rk="auth"] main > div.mt-36 a {
  color: #2563eb;
  font-weight: 750;
}

html[data-rk="auth"] main > div[class*="mt-auto"] {
  justify-content: center;
  width: 100%;
  color: #8b95a7;
}

@media (max-width: 640px) {
  html[data-rk="auth"] main > a[aria-label="Go to homepage"] {
    left: 16px;
  }
}
