.early-access-signal {
  position: relative;
  overflow: hidden;
  padding: 68px 0;
  scroll-margin-top: 90px;
  border-block: 1px solid rgba(98, 196, 194, .2);
  background:
    linear-gradient(90deg, rgba(7, 18, 24, .98), rgba(10, 31, 31, .93)),
    url("cosmic-starfield-v1.webp") center 42% / cover;
}

.early-access-signal::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 58%, rgba(98, 196, 194, .08) 58.2%, transparent 58.5%);
}

.early-access-signal__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  align-items: end;
  gap: 54px;
}

.early-access-signal h2 {
  max-width: 760px;
  margin: 10px 0 18px;
  color: var(--ivory, #f2ead8);
  font: 400 3.2rem/1.06 var(--serif, Georgia, serif);
  letter-spacing: 0;
}

.early-access-signal__copy > p:not(.section-index) {
  max-width: 710px;
  margin: 0 0 12px;
  color: var(--muted, #c5c0b4);
  line-height: 1.75;
}

.early-access-signal__action {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding-left: 22px;
  border-left: 1px solid rgba(212, 168, 79, .38);
}

.early-access-signal__action small {
  color: var(--muted-2, #9aa9aa);
  font-size: .76rem;
  line-height: 1.55;
}

.early-access-launch,
.early-access-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 9px;
  border: 1px solid rgba(240, 213, 138, .72);
  border-radius: 4px;
  padding: 11px 17px;
  color: #07111d;
  background: linear-gradient(135deg, #f0d58a, #d4a84f);
  box-shadow: 0 8px 24px rgba(212, 168, 79, .16);
  font: 750 .8rem/1.2 var(--sans, system-ui, sans-serif);
  cursor: pointer;
}

.early-access-launch:hover,
.early-access-inline:hover { filter: brightness(1.08); }
.early-access-launch:focus-visible,
.early-access-inline:focus-visible { outline: 3px solid var(--cyan, #62c4c2); outline-offset: 3px; }

.hero-entry-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.hero-entry-actions .preview-text-link { margin: 0; }
.hero-entry-actions .early-access-inline { min-height: 44px; padding: 9px 14px; }

.website-app-dock { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(340px, calc(100% - 24px)); }

.kftc-early-access-dialog {
  width: min(720px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  margin: auto;
  overflow: auto;
  border: 1px solid rgba(107, 213, 218, .48);
  border-radius: 6px;
  padding: 0;
  color: #ecf0e9;
  background: #08171d;
  box-shadow: 0 34px 100px rgba(0, 0, 0, .7);
}

.kftc-early-access-dialog::backdrop {
  background: rgba(1, 7, 12, .82);
  backdrop-filter: blur(8px);
}

.kftc-early-access__header {
  position: relative;
  padding: 30px 76px 25px 30px;
  border-bottom: 1px solid rgba(107, 213, 218, .2);
  background:
    linear-gradient(115deg, rgba(13, 47, 50, .82), rgba(7, 19, 27, .96)),
    url("cosmic-starfield-v1.webp") center / cover;
}

.kftc-early-access__header small {
  display: block;
  margin-bottom: 8px;
  color: #75d8d6;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.kftc-early-access__header h2 {
  margin: 0 0 10px;
  color: #f2d99b;
  font: 400 2rem/1.08 Georgia, serif;
  letter-spacing: 0;
}

.kftc-early-access__header p {
  max-width: 560px;
  margin: 0;
  color: #c8d6d7;
  font-size: .92rem;
  line-height: 1.65;
}

.kftc-early-access__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(123, 213, 214, .45);
  border-radius: 4px;
  color: #eaf4f2;
  background: rgba(4, 19, 24, .62);
  font-size: 1.45rem;
  cursor: pointer;
}

.kftc-early-access__form,
.kftc-early-access__receipt {
  display: grid;
  gap: 20px;
  padding: 28px 30px 30px;
}

.kftc-early-access__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.kftc-early-access__field {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #e5ece9;
  font-size: .78rem;
  font-weight: 750;
}

.kftc-early-access__field:first-child { grid-column: 1 / -1; }

.kftc-early-access__field input,
.kftc-early-access__field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(175, 203, 202, .34);
  border-radius: 4px;
  padding: 10px 12px;
  color: #f1f4ef;
  background: #0d2027;
}

.kftc-early-access__field input:focus,
.kftc-early-access__field select:focus { border-color: #6bd5da; outline: 2px solid rgba(107, 213, 218, .28); }

.kftc-early-access__consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #c7d1d0;
  font-size: .78rem;
  line-height: 1.55;
}

.kftc-early-access__consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #63c9ca; }
.kftc-early-access__privacy { margin: -6px 0 0; color: #94a9aa; font-size: .72rem; line-height: 1.55; }

.kftc-early-access__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.kftc-early-access__submit,
.kftc-early-access__fallback {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(240, 213, 138, .72);
  border-radius: 4px;
  padding: 10px 17px;
  color: #07111d;
  background: linear-gradient(135deg, #f0d58a, #d4a84f);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.kftc-early-access__submit[disabled] { cursor: wait; opacity: .66; }
.kftc-early-access__fallback { color: #eaf2ef; background: transparent; border-color: rgba(107, 213, 218, .5); }
.kftc-early-access__fallback[hidden] { display: none; }
.kftc-early-access__status { min-height: 22px; margin: 0; color: #a8bbba; font-size: .8rem; line-height: 1.55; }
.kftc-early-access__status[data-tone="error"] { color: #ffd2c8; }
.kftc-early-access__status[data-tone="success"] { color: #9ae2bd; }

.kftc-early-access__receipt[hidden],
.kftc-early-access__form[hidden] { display: none; }

.kftc-early-access__receipt strong { color: #f2d99b; font: 400 1.45rem/1.2 Georgia, serif; }
.kftc-early-access__receipt p { margin: 0; color: #c7d1d0; line-height: 1.7; }

.arrival-early-access {
  min-height: 42px;
  border: 1px solid rgba(97, 215, 255, .42);
  border-radius: 4px;
  padding: 8px 14px;
  color: #d9edf2;
  background: rgba(5, 22, 29, .7);
  cursor: pointer;
}

.arrival-early-access:hover { border-color: #61d7ff; background: rgba(17, 50, 58, .8); }
.account-gateway-actions .kftc-early-access-account { border-color: rgba(97, 215, 255, .42); color: var(--cyan, #61d7ff); }

html[data-color-mode="light"] .early-access-signal {
  background: linear-gradient(90deg, rgba(238, 246, 245, .98), rgba(224, 241, 240, .96));
}
html[data-color-mode="light"] .early-access-signal h2 { color: #173239; }
html[data-color-mode="light"] .early-access-signal__copy > p:last-child,
html[data-color-mode="light"] .early-access-signal__action small { color: #3b5358; }
html[data-color-mode="light"] .kftc-early-access-dialog { color: #18343a; background: #f4f9f7; border-color: #5e8f94; }
html[data-color-mode="light"] .kftc-early-access__header { background: linear-gradient(115deg, #dcefed, #f4f8f6); border-color: #91afb1; }
html[data-color-mode="light"] .kftc-early-access__header h2 { color: #624a17; }
html[data-color-mode="light"] .kftc-early-access__header p,
html[data-color-mode="light"] .kftc-early-access__consent,
html[data-color-mode="light"] .kftc-early-access__receipt p { color: #314d52; }
html[data-color-mode="light"] .kftc-early-access__field { color: #18343a; }
html[data-color-mode="light"] .kftc-early-access__field input,
html[data-color-mode="light"] .kftc-early-access__field select { color: #17343a; background: #fff; border-color: #8ba7a9; }
html[data-color-mode="light"] .kftc-early-access__close { color: #18343a; background: #fff9; border-color: #708f92; }
html[data-color-mode="light"] .kftc-early-access__privacy,
html[data-color-mode="light"] .kftc-early-access__status { color: #4d6568; }

@media (max-width: 700px) {
  .early-access-signal { padding: 54px 0; }
  .early-access-signal__inner { grid-template-columns: 1fr; gap: 30px; }
  .early-access-signal h2 { font-size: 2.35rem; }
  .early-access-signal__action { padding: 20px 0 0; border-left: 0; border-top: 1px solid rgba(212, 168, 79, .34); }
  .kftc-early-access__fields { grid-template-columns: 1fr; }
  .kftc-early-access__field:first-child { grid-column: auto; }
  .kftc-early-access__header { padding: 26px 70px 22px 22px; }
  .kftc-early-access__form,
  .kftc-early-access__receipt { padding: 24px 22px 26px; }
  .website-app-dock { width: calc(100% - 20px); }
}

@media (max-width: 420px) {
  .website-app-dock :is(a, button) { font-size: 10px; }
  .hero-entry-actions { align-items: stretch; flex-direction: column; }
  .hero-entry-actions .early-access-inline { width: fit-content; }
}

@media (prefers-reduced-motion: reduce) {
  .early-access-launch,
  .early-access-inline { transition: none; }
}

@media (forced-colors: active) {
  .early-access-launch,
  .early-access-inline,
  .kftc-early-access-dialog,
  .kftc-early-access__field input,
  .kftc-early-access__field select,
  .kftc-early-access__submit,
  .kftc-early-access__fallback { border: 1px solid ButtonText; }
}
