/* Announcement */
.announcement {
  position: relative;
  z-index: 80;
  min-height: var(--announcement-height);
  border-bottom: 1px solid rgba(191, 210, 219, 0.72);
  background: linear-gradient(90deg, #edf9fb 0%, #f8fbff 49%, #fbf4fb 100%);
  color: var(--ink-600);
  font-size: 0.79rem;
}

.announcement__inner {
  min-height: var(--announcement-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.announcement__inner strong {
  color: var(--ink-800);
}

.announcement__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-600);
  box-shadow: 0 0 0 5px rgba(18, 167, 126, 0.11);
  animation: pulseSoft 2.5s ease-in-out infinite;
}

.announcement__link {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--brand-700);
  cursor: pointer;
  font-weight: 740;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 70;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid rgba(213, 226, 231, 0.66);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  transition: box-shadow var(--duration-base) ease, background var(--duration-base) ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(20, 59, 74, 0.07);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--brand-800), var(--brand-600));
  color: #fff;
  box-shadow: 0 10px 24px rgba(7, 136, 165, 0.22);
}

.brand__mark svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.9;
}

.brand__mark svg rect {
  fill: rgba(255, 255, 255, 0.05);
  stroke: rgba(255, 255, 255, 0.28);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__text strong {
  color: var(--ink-950);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand__text small {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 0.7rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 2.5vw, 34px);
  margin-left: auto;
}

.desktop-nav a {
  position: relative;
  color: var(--ink-700);
  font-size: 0.86rem;
  font-weight: 680;
  transition: color var(--duration-fast) ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--brand-600);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--duration-base) var(--ease-spring);
}

.desktop-nav a:hover {
  color: var(--brand-800);
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.mobile-nav {
  position: absolute;
  top: calc(100% + 1px);
  right: 16px;
  left: 16px;
  display: none;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.mobile-nav.is-open {
  display: grid;
  gap: 3px;
  animation: menuIn 240ms var(--ease-spring) both;
}

.mobile-nav a {
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--ink-700);
  font-weight: 680;
}

.mobile-nav a:hover {
  background: var(--surface-muted);
  color: var(--brand-800);
}

.menu-button {
  width: 42px;
  height: 42px;
  display: none;
  place-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.menu-button span {
  width: 18px;
  height: 2px;
  display: block;
  border-radius: 99px;
  background: var(--ink-800);
  transition: transform var(--duration-fast) ease, opacity var(--duration-fast) ease;
}

.menu-button span + span {
  margin-top: 4px;
}

.menu-button.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-button.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-button.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@keyframes menuIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Buttons */
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 13px;
  cursor: pointer;
  font-weight: 750;
  line-height: 1.1;
  white-space: nowrap;
  transition:
    transform var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-base) ease,
    border-color var(--duration-fast) ease,
    background var(--duration-fast) ease,
    color var(--duration-fast) ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button--primary {
  border-color: var(--brand-700);
  background: linear-gradient(135deg, var(--brand-700), var(--brand-600));
  color: #fff;
  box-shadow: 0 13px 28px rgba(7, 136, 165, 0.2);
}

.button--primary:hover {
  background: linear-gradient(135deg, var(--brand-800), var(--brand-700));
  box-shadow: 0 16px 34px rgba(7, 136, 165, 0.27);
}

.button--secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink-900);
  box-shadow: var(--shadow-xs);
}

.button--secondary:hover {
  border-color: #a7c5d0;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.button--ghost {
  background: transparent;
  color: var(--ink-800);
}

.button--ghost:hover {
  background: var(--surface-muted);
}

.button--white {
  background: #fff;
  color: var(--brand-800);
  box-shadow: 0 14px 30px rgba(0, 39, 54, 0.17);
}

.button--glass {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(10px);
}

.button--compact {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 0.86rem;
}

.button--large {
  min-height: 56px;
  padding: 15px 22px;
  border-radius: 15px;
}

.button--full {
  width: 100%;
}

.button__arrow {
  font-size: 1.2em;
  transition: transform var(--duration-base) var(--ease-spring);
}

.button:hover .button__arrow {
  transform: translateX(4px);
}

.button__icon {
  width: 18px;
  height: 18px;
}

.text-button {
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--brand-700);
  cursor: pointer;
  font-weight: 700;
}

/* Labels, status and common visual elements */
.eyebrow {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 1px solid #b9e2ea;
  border-radius: var(--radius-pill);
  background: rgba(235, 249, 251, 0.84);
  color: var(--brand-800);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-600);
  box-shadow: 0 0 0 5px rgba(10, 155, 183, 0.1);
}

.eyebrow--light {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #e9fcff;
}

.micro-label {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-500);
  font-size: 0.63rem;
  font-weight: 760;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.status-chip,
.trial-badge {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--ink-600);
  font-size: 0.68rem;
  font-weight: 760;
  line-height: 1;
}

.status-chip--green {
  background: var(--green-100);
  color: var(--green-700);
}

.status-chip--green i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.trial-badge {
  background: var(--brand-100);
  color: var(--brand-800);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background: var(--brand-100);
  color: var(--brand-700);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-icon--pink { background: var(--pink-100); color: var(--pink-600); }
.feature-icon--violet { background: var(--violet-100); color: var(--violet-600); }
.feature-icon--amber { background: var(--amber-100); color: var(--amber-700); }
.feature-icon--green { background: var(--green-100); color: var(--green-700); }
.feature-icon--blue { background: var(--blue-100); color: var(--blue-600); }

.window-bar,
.product-preview__bar {
  height: 39px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 251, 252, 0.9);
  color: var(--ink-400);
  font-size: 0.65rem;
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff8c83;
}

.window-dots span:nth-child(2) { background: #f7c74b; }
.window-dots span:nth-child(3) { background: #52c990; }

.window-address {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green-700);
}

.window-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-600);
  box-shadow: 0 0 0 4px rgba(18, 167, 126, 0.1);
}

/* Forms and overlays */
.modal {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 18, 34, 0.56);
  backdrop-filter: blur(10px);
  animation: fadeIn 220ms ease both;
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 34px 90px rgba(4, 23, 38, 0.28);
  animation: modalIn 360ms var(--ease-spring) both;
}

.modal__panel--small {
  width: min(100%, 430px);
}

.modal__close,
.support-panel__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink-600);
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}

.modal__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.modal__panel > .trial-badge {
  margin: 0 auto 12px;
}

.modal__panel h2,
.modal__panel > p {
  text-align: center;
}

.modal__panel h2 {
  margin-bottom: 8px;
  font-size: 2rem;
}

.modal__panel > p {
  margin-bottom: 24px;
}

.lead-form {
  display: grid;
  gap: 14px;
}

.lead-form > label > span,
.lead-form legend {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-700);
  font-size: 0.76rem;
  font-weight: 720;
}

.lead-form > label > div {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-soft);
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease, background var(--duration-fast) ease;
}

.lead-form > label > div:focus-within {
  border-color: var(--brand-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(10, 155, 183, 0.09);
}

.lead-form svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--ink-500);
}

.lead-form input:not([type="checkbox"]) {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink-900);
}

.lead-form input::placeholder {
  color: var(--ink-400);
}

.lead-form fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.lead-form legend {
  width: 100%;
}

.choice {
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink-600);
  font-weight: 700;
}

.choice input:checked + span {
  border-color: #9ed9e5;
  background: var(--brand-100);
  color: var(--brand-800);
}

.lead-form > small {
  color: var(--ink-400);
  font-size: 0.68rem;
  text-align: center;
}

.support-fab {
  position: fixed;
  z-index: 55;
  right: 22px;
  bottom: 22px;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-600));
  color: #fff;
  box-shadow: 0 18px 38px rgba(7, 136, 165, 0.27);
  cursor: pointer;
  font-weight: 760;
  transition: transform var(--duration-fast) ease, box-shadow var(--duration-base) ease;
}

.support-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(7, 136, 165, 0.34);
}

.support-fab svg {
  width: 18px;
  height: 18px;
}

.support-panel {
  position: fixed;
  z-index: 150;
  right: 22px;
  bottom: 84px;
  width: min(calc(100vw - 32px), 340px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
  animation: panelIn 320ms var(--ease-spring) both;
}

.support-panel h3 {
  margin-top: 18px;
}

.support-panel p {
  font-size: 0.92rem;
}

.support-panel .button + .button {
  margin-top: 9px;
}

.toast {
  position: fixed;
  z-index: 240;
  right: 24px;
  bottom: 24px;
  max-width: min(390px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 17px;
  border: 1px solid #c6e8de;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  animation: toastIn 360ms var(--ease-spring) both;
}

.toast > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  font-weight: 900;
}

.toast div {
  display: grid;
}

.toast small {
  color: var(--ink-500);
  font-size: 0.73rem;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

/* TRUE FBS approved modal and authentication layouts */
.modal {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
}

.modal__backdrop {
  position: fixed;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal__panel {
  width: min(760px, calc(100vw - 48px));
  max-height: none;
  overflow: visible;
  flex: 0 0 auto;
  margin: auto 0;
  padding: 40px 48px 36px;
  border: 1px solid rgba(215, 227, 238, 0.94);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 34px 90px rgba(4, 23, 38, 0.24);
}

.modal__panel--auth {
  width: min(520px, calc(100vw - 48px));
  padding: 40px 40px 32px;
}

.modal__close {
  top: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #d9e5ee;
  border-radius: 18px;
  color: #475569;
  font-size: 0;
}

.modal__close svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.modal__logo {
  margin-bottom: 20px;
}

.modal__brand-mark {
  width: 72px;
  height: 72px;
  border-radius: 22px;
}

.modal__brand-mark svg {
  width: 56px;
  height: 56px;
}

.modal__panel > .trial-badge {
  min-height: 36px;
  margin: 0 auto 20px;
  padding: 8px 18px;
  color: #0e8aa8;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  text-transform: none;
  letter-spacing: 0;
}

.modal__panel h2 {
  margin: 0 auto 20px;
  color: #0f172a;
  font-size: 56px;
  font-weight: 800;
  line-height: 60px;
  letter-spacing: -0.04em;
}

.modal__panel--trial h2 {
  max-width: 660px;
}

.modal__panel > p:not(.auth-switch) {
  max-width: 560px;
  margin: 0 auto 28px;
  color: #64748b;
  font-size: 18px;
  font-weight: 500;
  line-height: 30px;
}

.lead-form {
  gap: 14px;
}

.lead-form > label > span,
.lead-form legend {
  margin-bottom: 10px;
  color: #334155;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
}

.lead-form > label > div {
  min-height: 68px;
  gap: 18px;
  padding: 0 20px 0 18px;
  border: 1px solid #d7e3ee;
  border-radius: 20px;
  background: #fff;
}

.lead-form svg {
  width: 20px;
  height: 20px;
  color: #64748b;
}

.lead-form input:not([type="checkbox"]) {
  height: 66px;
  color: #0f172a;
  font-size: 16px;
  line-height: 24px;
}

.lead-form input::placeholder {
  color: #94a3b8;
}

.marketplace-choice {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px !important;
}

.marketplace-choice legend {
  grid-column: 1 / -1;
}

.marketplace-choice .choice span {
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1.5px solid #cfe5ef;
  border-radius: 18px;
  color: #0f172a;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
}

.marketplace-choice .choice span i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1.5px solid #cbd8e3;
  border-radius: 50%;
  background: #fff;
}

.marketplace-choice .choice span i::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
}

.marketplace-choice .choice input:checked + span {
  border-color: #1199b6;
  background: #f0fbfe;
  color: #0e8199;
}

.marketplace-choice .choice input:checked + span i {
  border-color: #1199b6;
}

.marketplace-choice .choice input:checked + span i::after {
  background: #1199b6;
}

.modal-primary-action {
  min-height: 72px;
  margin-top: 10px;
  border-radius: 22px;
  font-size: 18px;
  font-weight: 800;
  line-height: 24px;
}

.modal-consent {
  margin: 4px auto 0 !important;
  color: #64748b !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 24px !important;
  text-align: center;
}

.modal-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding-top: 2px;
  color: #64748b;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.modal-legal > span {
  width: 1px;
  height: 18px;
  background: #d7e3ee;
}

.modal-legal a {
  transition: color var(--duration-fast) ease;
}

.modal-legal a:hover {
  color: #0e8aa8;
}

.modal__panel--auth h2 {
  margin-bottom: 10px;
  font-size: 52px;
  line-height: 56px;
}

.auth-switch {
  max-width: none !important;
  margin: 0 auto 28px !important;
  color: #64748b !important;
  font-size: 16px !important;
  line-height: 24px !important;
  text-align: center;
}

.auth-switch button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #1677ff;
  cursor: pointer;
  font-size: inherit;
  font-weight: 700;
}

.lead-form--auth {
  gap: 12px;
}

.auth-field > div {
  min-height: 64px !important;
  border-radius: 18px !important;
}

.auth-field input {
  height: 62px !important;
}

.auth-code-button,
.auth-registration-button {
  min-height: 64px;
  border-radius: 18px;
  font-size: 18px;
  font-weight: 800;
}

.auth-code-button {
  border: 0;
  background: #aab2bf;
  color: #fff;
  cursor: pointer;
}

.auth-registration-button {
  margin-top: 4px;
  background: linear-gradient(135deg, #176ff3, #1677ff);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 32px;
  color: #94a3b8;
  font-size: 16px;
  line-height: 24px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e2e8f0;
}

.auth-alternative {
  min-height: 60px;
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  padding: 0 18px;
  border: 1px solid #d7e3ee;
  border-radius: 18px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}

.auth-alternative svg {
  grid-column: 1;
  width: 20px;
  height: 20px;
}

.auth-alternative span {
  grid-column: 2;
  text-align: center;
}

.lead-form--auth .modal-consent {
  margin-top: 8px !important;
}

.lead-form--auth .modal-legal {
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
 * TRUE FBS modal and authentication surfaces
 *
 * These rules intentionally override the compact prototype styles above.
 * The panel itself never scrolls: on exceptionally short viewports the modal
 * overlay becomes the scroll container, so form controls and legal links stay
 * inside one visually complete card without a nested scrollbar.
 * -------------------------------------------------------------------------- */
.modal {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 24px;
  overscroll-behavior: contain;
}

.modal__backdrop {
  position: fixed;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal__panel {
  width: min(760px, calc(100vw - 48px));
  max-height: none;
  overflow: visible;
  margin-block: auto;
  padding: 40px 48px 36px;
  border: 1px solid rgba(215, 227, 238, 0.94);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 34px 90px rgba(15, 49, 66, 0.2);
}

.modal__panel--trial {
  width: min(760px, calc(100vw - 48px));
}

.modal__panel--auth,
.modal__panel--small {
  width: min(520px, calc(100vw - 48px));
  padding: 40px 40px 32px;
}

.modal__close,
.modal__panel .modal__close {
  top: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #d9e5ee;
  border-radius: 18px;
  background: #fff;
  color: #475569;
  font-size: 0;
  box-shadow: var(--shadow-xs);
  transition:
    color var(--duration-fast) ease,
    border-color var(--duration-fast) ease,
    background var(--duration-fast) ease,
    transform var(--duration-fast) ease;
}

.modal__close:hover {
  border-color: #bfd6e1;
  background: #f8fbfc;
  color: var(--brand-800);
  transform: translateY(-1px);
}

.modal__close svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.modal__logo {
  margin-bottom: 20px;
}

.modal__logo .brand__mark {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  box-shadow: 0 18px 38px rgba(7, 136, 165, 0.24);
}

.modal__logo .brand__mark svg {
  width: 54px;
  height: 54px;
}

.modal__panel > .trial-badge {
  min-height: 36px;
  display: table;
  padding: 8px 18px;
  margin: 0 auto 24px;
  border-radius: var(--radius-pill);
  background: #e5f7fb;
  color: #0e8aa8;
  font-size: 16px;
  line-height: 20px;
  font-weight: 750;
}

.modal__panel h2 {
  max-width: 680px;
  margin: 0 auto 20px;
  color: #0f172a;
  font-size: 56px;
  line-height: 60px;
  font-weight: 800;
  letter-spacing: -0.045em;
  text-align: center;
}

.modal__panel > p:not(.auth-switch) {
  max-width: 560px;
  margin: 0 auto 28px;
  color: #64748b;
  font-size: 18px;
  line-height: 30px;
  font-weight: 500;
  text-align: center;
}

.lead-form {
  gap: 14px;
}

.lead-form > label.form-field > span,
.lead-form .marketplace-choice-group > legend {
  margin-bottom: 10px;
  color: #334155;
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
}

.lead-form > label.form-field > div {
  min-height: 68px;
  gap: 18px;
  padding: 0 20px 0 18px;
  border: 1px solid #d7e3ee;
  border-radius: 20px;
  background: #fff;
}

.lead-form > label.form-field > div:focus-within {
  border-color: #1199b6;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(17, 153, 182, 0.1);
}

.lead-form > label.form-field svg {
  width: 20px;
  height: 20px;
  color: #64748b;
}

.lead-form > label.form-field input:not([type="checkbox"]) {
  height: 66px;
  color: #0f172a;
  font-size: 16px;
  line-height: 24px;
}

.lead-form > label.form-field input::placeholder {
  color: #94a3b8;
}

.marketplace-choice-group {
  display: block !important;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.choice {
  min-width: 0;
}

.choice span {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1.5px solid #cfe5ef;
  border-radius: 18px;
  background: #fff;
  color: #0f172a;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  transition:
    border-color var(--duration-fast) ease,
    background var(--duration-fast) ease,
    color var(--duration-fast) ease;
}

.choice span i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1.5px solid #cbd5e1;
  border-radius: 50%;
}

.choice span i::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
}

.choice input:checked + span {
  border-color: #1199b6;
  background: #f0fbfe;
  color: #087c96;
}

.choice input:checked + span i {
  border-color: #1199b6;
}

.choice input:checked + span i::after {
  background: #1199b6;
}

.modal-submit {
  min-height: 72px;
  margin-top: 10px;
  border-radius: 22px;
  font-size: 18px;
  line-height: 24px;
  font-weight: 800;
}

.modal-consent,
.lead-form > .modal-consent {
  margin: 4px auto 0;
  color: #64748b;
  font-size: 15px;
  line-height: 24px;
  font-weight: 500;
  text-align: center;
}

.modal-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid #e5edf2;
  color: #64748b;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.modal-legal a {
  position: relative;
  padding: 0 13px;
  transition: color var(--duration-fast) ease;
}

.modal-legal a + a::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 1px;
  background: #d7e3ee;
}

.modal-legal a:hover {
  color: #0e8aa8;
}

/* Authentication dialogs use the same brand system as the landing page. */
.modal__panel--auth .modal__logo {
  margin-bottom: 20px;
}

.modal__panel--auth h2 {
  margin-bottom: 10px;
  font-size: 52px;
  line-height: 56px;
}

.modal__panel > .auth-switch {
  max-width: none;
  margin: 0 auto 28px;
  color: #64748b;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  text-align: center;
}

.auth-switch button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #1677ff;
  cursor: pointer;
  font-weight: 700;
}

.auth-form {
  gap: 12px;
}

.auth-form .form-field--compact > div {
  min-height: 64px;
  border-radius: 18px;
}

.auth-form .form-field--compact input:not([type="checkbox"]) {
  height: 62px;
}

.auth-submit {
  min-height: 64px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  font-size: 18px;
  line-height: 24px;
  font-weight: 800;
}

.auth-submit--muted {
  background: #aab2bf;
  box-shadow: none;
}

.auth-submit--muted.is-ready {
  background: linear-gradient(135deg, var(--brand-800), var(--brand-600));
  box-shadow: 0 13px 28px rgba(7, 136, 165, 0.22);
}

.auth-submit--primary {
  margin-top: 4px;
  background: linear-gradient(135deg, #2d6df4, #1677ff);
  box-shadow: 0 14px 30px rgba(22, 119, 255, 0.2);
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  min-height: 32px;
  color: #94a3b8;
  font-size: 16px;
  line-height: 24px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: #e2e8f0;
}

.auth-alt-button {
  min-height: 60px;
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid #d7e3ee;
  border-radius: 18px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  transition:
    border-color var(--duration-fast) ease,
    background var(--duration-fast) ease,
    transform var(--duration-fast) ease;
}

.auth-alt-button:hover {
  border-color: #bfd6e1;
  background: #f8fbfc;
  transform: translateY(-1px);
}

.auth-alt-button svg {
  width: 20px;
  height: 20px;
}

.auth-alt-button span {
  grid-column: 2;
  text-align: center;
}

.auth-form .modal-consent {
  margin-top: 8px;
}

.auth-form .modal-legal {
  margin-top: 2px;
}

.modal__panel--register .auth-form {
  gap: 14px;
}

.modal__panel--register .modal-consent {
  margin-top: 4px;
}

@media (max-height: 1000px) and (min-width: 768px) {
  .modal {
    padding-block: 18px;
  }

  .modal__panel--trial {
    padding: 24px 40px 22px;
  }

  .modal__panel--trial .modal__close {
    top: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }

  .modal__panel--trial .modal__logo {
    margin-bottom: 10px;
  }

  .modal__panel--trial .modal__logo .brand__mark {
    width: 56px;
    height: 56px;
    border-radius: 17px;
  }

  .modal__panel--trial .modal__logo .brand__mark svg {
    width: 42px;
    height: 42px;
  }

  .modal__panel--trial > .trial-badge {
    min-height: 30px;
    padding: 5px 14px;
    margin-bottom: 12px;
    font-size: 14px;
  }

  .modal__panel--trial h2 {
    margin-bottom: 10px;
    font-size: 42px;
    line-height: 46px;
  }

  .modal__panel--trial > p {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 24px;
  }

  .modal__panel--trial .lead-form {
    gap: 9px;
  }

  .modal__panel--trial .lead-form > label.form-field > span,
  .modal__panel--trial .marketplace-choice-group > legend {
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 18px;
  }

  .modal__panel--trial .lead-form > label.form-field > div {
    min-height: 54px;
    border-radius: 16px;
  }

  .modal__panel--trial .lead-form > label.form-field input:not([type="checkbox"]) {
    height: 52px;
  }

  .modal__panel--trial .choice span {
    min-height: 50px;
    border-radius: 15px;
    font-size: 16px;
  }

  .modal__panel--trial .modal-submit {
    min-height: 58px;
    margin-top: 4px;
    border-radius: 18px;
  }

  .modal__panel--trial .modal-consent {
    font-size: 13px;
    line-height: 19px;
  }

  .modal__panel--trial .modal-legal {
    margin-top: 0;
    padding-top: 10px;
    font-size: 12px;
    line-height: 17px;
  }
}
