/* A single shared header: wide at the top, compact and fixed after scrolling. */
.ry-site-header.ry-header-minimal {
  position: fixed;
  inset: 12px 0 auto;
  z-index: 100;
  display: flex;
  justify-content: center;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  opacity: 1;
  transform: none;
  pointer-events: none;
}
.ry-header-minimal .ry-header-bar {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: calc(100% - 64px);
  max-width: calc(100% - 32px);
  min-height: 58px;
  margin: 0;
  padding: 8px 20px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: #f7f6f5d9;
  pointer-events: auto;
  transition: width .5s cubic-bezier(.22,1,.36,1), background-color .3s, border-color .3s, box-shadow .3s;
}
.ry-header-minimal.is-condensed .ry-header-bar {
  width: var(--ry-header-compact-width, 400px);
  background: #f7f6f5c7;
  border-color: #231f2310;
  box-shadow: 0 8px 30px -12px #231f2338;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.ry-header-minimal .ry-header-brand {
  display: flex;
  flex: none;
  align-items: center;
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}
.ry-header-minimal .logo-nav { width: auto; height: auto; line-height: 0; }
.ry-header-minimal .ry-header-logo { display: block; width: auto; height: 26px; }
.ry-header-minimal .ry-header-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  width: auto;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
.ry-header-minimal .ry-header-actions a { flex: none; text-decoration: none; }
.ry-header-minimal :is(.ry-header-pricing, .ry-header-how) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  color: var(--color-base-base-dark-100);
  font-size: 14px;
  line-height: 20px;
}
.ry-header-minimal .ry-nav-start {
  --color-tokens-button-primary-default-background: var(--color-base-accent-primary);
  --color-tokens-button-primary-hover-background: var(--color-base-accent-primary);
  --color-tokens-button-primary-default-text: var(--color-base-base-dark-100);
  --color-tokens-button-primary-hover-text: var(--color-base-base-dark-100);
  padding: 0;
  color: var(--color-base-base-dark-100);
  font-size: 14px;
  line-height: 20px;
}
.ry-header-minimal .ry-nav-start .button-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 14px;
  position: relative;
  z-index: 1;
}
.ry-header-minimal .ry-nav-start .icon-wrap_button,
.ry-header-minimal .ry-nav-start .icon_button { display: block; width: 12px; height: 12px; flex: none; }
.ry-header-minimal .button_text-mask { height: auto; }
.ry-header-minimal .button_text-mask,
.ry-header-minimal .button-inner,
.ry-header-minimal .text-button { font-size: inherit; line-height: inherit; }
.ry-header-minimal a:focus-visible { outline: 2px solid var(--color-base-base-dark-100); outline-offset: 4px; }
@media (max-width: 767px) {
  .ry-site-header.ry-header-minimal { top: 8px; }
  .ry-header-minimal .ry-header-bar { width: calc(100% - 24px); max-width: calc(100% - 24px); gap: 12px; padding: 7px 10px; min-height: 56px; border-radius: 14px; }
  .ry-header-minimal .ry-header-logo { height: 20px; }
  .ry-header-minimal .ry-header-actions { gap: 6px; }
  .ry-header-minimal :is(.ry-header-pricing, .ry-header-how) { font-size: 12px; line-height: 18px; padding-inline: 10px; }
  .ry-header-minimal .ry-nav-start { font-size: 12px; line-height: 18px; }
  .ry-header-minimal .ry-nav-start .button-inner { padding-inline: 10px; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .ry-header-minimal .ry-header-bar { transition: none; }
}
@media (max-width: 359px) {
  .ry-header-minimal .ry-header-logo { height: 18px; }
  .ry-header-minimal .ry-header-bar { padding-inline: 8px; gap: 10px; }
}

@media (max-width: 359px) { .ry-header-minimal :is(.ry-header-pricing, .ry-header-how) { font-size: 11px; padding-inline: 6px; } }

.ry-header-minimal :is(.ry-header-pricing, .ry-header-how) { border-radius: 8px; background: var(--color-base-base-dark-4); transition: background-color .15s ease; }
.ry-header-minimal :is(.ry-header-pricing, .ry-header-how):hover { background: var(--color-base-base-dark-8); }
.ry-header-minimal :is(.ry-header-pricing, .ry-header-how):focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* On hero pages, the join follows actual hero exit instead of a timed early jump. */
.ry-header-minimal.has-hero-sync { --ry-header-side-space: 64px; }
.ry-header-minimal.has-hero-sync .ry-header-bar {
  width: calc((100% - var(--ry-header-side-space)) * (1 - var(--ry-header-progress, 0)) + var(--ry-header-compact-width, 400px) * var(--ry-header-progress, 0));
  transition: background-color .3s, border-color .3s, box-shadow .3s;
}
@media (max-width: 767px) {
  .ry-header-minimal.has-hero-sync { --ry-header-side-space: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .ry-header-minimal.has-hero-sync .ry-header-bar { transition: none; }
}

.ry-header-links { display: flex; align-items: center; gap: 8px; }
@media (max-width: 540px) {
  .ry-header-minimal .ry-header-bar { display: grid; grid-template-columns: auto 1fr; row-gap: 4px; }
  .ry-header-minimal .ry-header-brand { grid-column: 1; grid-row: 1; }
  .ry-header-minimal .ry-header-actions { display: contents; }
  .ry-header-minimal .ry-nav-start { grid-column: 2; grid-row: 1; justify-self: end; }
  .ry-header-minimal .ry-header-links { grid-column: 1 / -1; grid-row: 2; justify-content: center; gap: 8px; }
  .ry-header-minimal .ry-header-links a { min-height: 30px; padding-block: 5px; }
}

.ry-site-page :is(#three-steps, #pricing, #pricing-plans) { scroll-margin-top: var(--ry-header-scroll-offset, 88px); }

/* Mobile uses the logo and signup action only. */
@media (max-width: 767px) {
  .ry-header-minimal .ry-header-links { display: none; }
}
