@font-face {
  font-family: 'Nunito';
  src: url('../fonts/Nunito-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('../fonts/Nunito-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('../fonts/Nunito-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Myriad Set Pro";
  src: url("../fonts/MyriadSetPro-TextItalic.woff2") format("woff2"),
       url("../fonts/MyriadSetPro-TextItalic.woff") format("woff");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #ffffff;
  color: #2d3357;
  font-family: "Nunito", Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button:focus,
button:focus-visible,
a:focus,
a:focus-visible {
  outline: none;
}

.keeper-page {
  min-height: 100vh;
  background: #ffffff;
}

.keeper-hero {
  --gradient-radius: clamp(260px, 48vw, 620px);

  position: relative;
  width: 100%;
  min-height: 180px;
  height: clamp(180px, calc((100vw / (1024 / 647)) * 0.62 + env(safe-area-inset-top, 0px)), 520px);
  background: radial-gradient(circle var(--gradient-radius) at center bottom, #5d8be8 0, #061837 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top, 0px)) 24px 18px;
  color: #ffffff;
  text-align: center;
  overflow: visible;
}

.site-nav {
  position: absolute;
  top: max(18px, env(safe-area-inset-top, 0px));
  left: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-family: "Myriad Set Pro", "Myriad Pro", "Montserrat", sans-serif;
  font-size: clamp(17px, 1.75vw, 23px);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  pointer-events: auto;
  transform: translateY(-2px);
}

.brand:hover,
.brand:focus,
.brand:visited,
.brand:active {
  color: #ffffff;
  text-decoration: none;
  outline: none;
  box-shadow: none;
}

.brand-logo {
  width: clamp(28px, 3.2vw, 40px);
  height: auto;
}

.nav-menu {
  position: relative;
  pointer-events: auto;
  transform: translateY(-3px);
}

.menu-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  appearance: none;
}

.menu-button:focus,
.menu-button:focus-visible,
.menu-button:active {
  outline: none;
  box-shadow: none;
  background: transparent;
}

.menu-icon {
  position: relative;
  width: 32px;
  height: 32px;
  background: url("../images/bg-menu.avif") center / contain no-repeat;
  filter: brightness(0) invert(1);
}

.menu-icon span {
  display: none;
}

.menu-panel {
  position: absolute;
  top: calc(100% - 20px);
  right: 16px;
  min-width: max-content;
  padding: 8px 0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(6, 24, 55, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.menu-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-panel a {
  display: block;
  width: 100%;
  padding: 10px 16px;
  color: #2d3357;
  font-family: "Nunito", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  text-align: left;
}

.menu-panel a:hover {
  background: rgba(93, 139, 232, 0.1);
}

.keeper-hero-inner {
  width: min(920px, 100%);
}

.keeper-hero h1 {
  margin: 0 auto 12px;
  max-width: 780px;
  font-size: clamp(28px, 4.3vw, 50px);
  line-height: 1.02;
}

.keeper-hero p {
  margin: 0 auto;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
}

.keeper-main {
  width: min(1080px, calc(100% - 40px));
  margin: -42px auto 0;
  padding-bottom: 70px;
}

.keeper-tool {
  display: grid;
  grid-template-columns: minmax(280px, 620px);
  justify-content: center;
  align-items: start;
}

.keeper-form-panel {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(147, 137, 206, 0.22);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(6, 24, 55, 0.12);
  padding: clamp(22px, 4vw, 34px);
}

.keeper-form-panel h2,
.keeper-result-panel h2 {
  margin: 0 0 10px;
  color: #2d3357;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
}

.keeper-form-panel p {
  margin: 0 0 22px;
  color: #656b86;
  line-height: 1.5;
}

.keeper-form-panel.is-showing-result > h2,
.keeper-form-panel.is-showing-result > p {
  display: none;
}

[data-keeper-form] {
  opacity: 1;
  overflow: visible;
  transition: opacity 0.16s ease;
}

[data-keeper-form].is-hidden {
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.keeper-field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.keeper-field label {
  color: #2d3357;
  font-size: 14px;
  font-weight: 800;
}

.keeper-field input,
.keeper-field select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid rgba(147, 137, 206, 0.45);
  border-radius: 10px;
  background: #fbfbff;
  color: #2d3357;
  font: inherit;
  outline: none;
}

.keeper-field input:focus,
.keeper-field select:focus {
  border-color: #ec3ea4;
  box-shadow: 0 0 0 4px rgba(236, 62, 164, 0.12);
}

.keeper-field input.is-filled-valid,
.keeper-field select.is-filled-valid {
  color: #147d3f;
}

.keeper-field input.is-filled-invalid,
.keeper-field select.is-filled-invalid {
  color: #c93434;
}

.keeper-date-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.72fr) minmax(0, 1fr);
  gap: 10px;
  overflow-anchor: none;
}

.keeper-date-grid select {
  min-width: 0;
  padding-inline: 8px;
  font-size: clamp(13px, 3.4vw, 15px);
}

.keeper-time-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 10px;
}

.keeper-time-grid input,
.keeper-time-grid select {
  min-width: 0;
  padding-inline: 8px;
  font-size: clamp(13px, 3.4vw, 15px);
}

.keeper-time-grid select {
  font-weight: 400;
}

.keeper-autocomplete {
  position: relative;
}

.keeper-autocomplete input {
  padding-inline: 8px;
  font-size: clamp(13px, 3.4vw, 15px);
}

.keeper-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  display: none;
  max-height: 220px;
  overflow: auto;
  border: 1px solid rgba(147, 137, 206, 0.24);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(6, 24, 55, 0.16);
}

.keeper-suggestions.is-open {
  display: block;
}

.keeper-suggestion {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 8px;
  border: 0;
  border-bottom: 1px solid rgba(147, 137, 206, 0.14);
  background: #ffffff;
  color: #2d3357;
  font: inherit;
  font-size: clamp(13px, 3.4vw, 15px);
  text-align: left;
  cursor: pointer;
}

.keeper-suggestion:last-child {
  border-bottom: 0;
}

.keeper-suggestion:hover,
.keeper-suggestion:focus-visible {
  background: rgba(93, 139, 232, 0.1);
  outline: none;
}

.keeper-field small {
  color: #656b86;
  font-size: 12px;
  line-height: 1.35;
}

.keeper-submit,
.keeper-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #ec3ea4;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.keeper-submit {
  width: 100%;
  margin-top: 4px;
  border-radius: 10px;
}

.keeper-cta {
  border-radius: 10px;
}

.keeper-submit .keeper-button-spinner {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.42);
  border-top-color: #ffffff;
  animation: keeperSpin 0.8s linear infinite;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.keeper-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.keeper-message {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(236, 62, 164, 0.1);
  color: #8d2264;
  font-size: 14px;
  font-weight: 700;
}

.keeper-message.is-visible {
  display: block;
}

.keeper-message.error {
  background: #fff0f5;
}

.keeper-result {
  animation: keeperFadeIn 0.28s ease both;
}

.keeper-result.is-empty {
  display: none;
}

@keyframes keeperFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes keeperSpin {
  to {
    transform: rotate(360deg);
  }
}

.keeper-result-panel {
  position: relative;
  padding: 0;
  text-align: left;
  min-width: 0;
}

.keeper-email-icon-button,
.keeper-result-close-button {
  position: absolute;
  top: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(147, 137, 206, 0.28);
  border-radius: 10px;
  background: #ffffff;
  color: #111111;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.keeper-email-icon-button {
  left: 0;
}

.keeper-result-close-button {
  top: -10px;
  right: -10px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
}

.keeper-email-icon-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.keeper-bear-lockup {
  --bear-glow: rgba(139, 92, 246, 0.28);
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 0 auto 16px;
  text-align: center;
}

.keeper-bear-lockup::before {
  content: "";
  position: absolute;
  top: 6px;
  width: 138px;
  height: 138px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--bear-glow) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(14px);
  z-index: 0;
  pointer-events: none;
}

.keeper-bear-lockup.zodiac-aries { --bear-glow: rgba(238, 57, 64, 0.54); }
.keeper-bear-lockup.zodiac-taurus { --bear-glow: rgba(91, 143, 77, 0.54); }
.keeper-bear-lockup.zodiac-gemini { --bear-glow: rgba(170, 170, 170, 0.56); }
.keeper-bear-lockup.zodiac-cancer { --bear-glow: rgba(72, 91, 124, 0.56); }
.keeper-bear-lockup.zodiac-leo { --bear-glow: rgba(125, 78, 43, 0.52); }
.keeper-bear-lockup.zodiac-virgo { --bear-glow: rgba(156, 147, 132, 0.56); }
.keeper-bear-lockup.zodiac-libra { --bear-glow: rgba(119, 151, 176, 0.56); }
.keeper-bear-lockup.zodiac-scorpio { --bear-glow: rgba(122, 34, 67, 0.56); }
.keeper-bear-lockup.zodiac-sagittarius { --bear-glow: rgba(55, 52, 89, 0.56); }
.keeper-bear-lockup.zodiac-capricorn { --bear-glow: rgba(84, 92, 62, 0.56); }
.keeper-bear-lockup.zodiac-aquarius { --bear-glow: rgba(38, 169, 190, 0.56); }
.keeper-bear-lockup.zodiac-pisces { --bear-glow: rgba(72, 148, 131, 0.56); }

.keeper-bear-lockup img {
  width: min(124px, 34vw);
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

.keeper-result-panel h2 {
  max-width: 100%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  font-size: clamp(15px, 3.9vw, 23px);
  font-weight: 800;
  color: #111111;
  visibility: hidden;
}

.keeper-result-panel h2.is-fitted {
  visibility: visible;
}

.keeper-note {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(93, 139, 232, 0.1);
  color: #2d3357;
  font-size: 13px;
  line-height: 1.45;
}

.keeper-note p,
.keeper-section p,
.keeper-download p {
  margin: 0;
}

.keeper-section {
  padding: 20px 0;
  border-top: 1px solid rgba(147, 137, 206, 0.22);
}

.keeper-section h3,
.keeper-download h3 {
  margin: 0 0 8px;
  color: #2d3357;
  font-size: 20px;
}

.keeper-section p,
.keeper-section li,
.keeper-download p {
  color: #656b86;
  line-height: 1.55;
}

.keeper-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.keeper-download {
  display: grid;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(147, 137, 206, 0.22);
}

.keeper-email-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.keeper-email-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 24, 55, 0.42);
}

.keeper-email-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  border-radius: 18px 18px 0 0;
  background: #ffffff;
  box-shadow: 0 20px 56px rgba(6, 24, 55, 0.22);
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform 0.24s ease;
}

.keeper-email-modal.is-open .keeper-email-dialog {
  transform: translateY(0);
}

.keeper-email-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: #f4f3fa;
  color: #2d3357;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.keeper-email-dialog h2 {
  margin: 0 38px 16px 0;
  color: #2d3357;
  font-size: 22px;
  line-height: 1.18;
}

.keeper-email-form {
  display: grid;
  gap: 10px;
}

.keeper-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.keeper-email-form label {
  color: #2d3357;
  font-size: 14px;
  font-weight: 800;
}

.keeper-email-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 10px;
}

.keeper-email-grid input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 10px;
  border: 1px solid rgba(147, 137, 206, 0.45);
  border-radius: 10px;
  background: #fbfbff;
  color: #2d3357;
  font: inherit;
  font-size: clamp(13px, 3.4vw, 15px);
  outline: none;
}

.keeper-email-grid input:focus {
  border-color: #ec3ea4;
  box-shadow: 0 0 0 4px rgba(236, 62, 164, 0.12);
}

.keeper-email-button {
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: #111111;
  color: #ffffff;
  font: inherit;
  font-size: clamp(13px, 3.4vw, 15px);
  font-weight: 800;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.keeper-email-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.keeper-email-message {
  display: none;
  color: #2d3357;
  font-size: 13px;
  font-weight: 800;
}

.keeper-email-message.is-visible {
  display: block;
}

.keeper-email-message.error {
  color: #8d2264;
}

.footer {
  background: #ffffff;
  padding: 2rem;
  text-align: center;
  color: #86868b;
  font-family: "Nunito", Arial, Helvetica, sans-serif;
  font-size: clamp(0.78rem, 3.2vw, 0.9rem);
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.footer a {
  color: #666;
  text-decoration: none;
  outline: none;
  box-shadow: none;
}

@media (max-width: 820px) {
  .keeper-tool {
    grid-template-columns: 1fr;
  }

  .keeper-main {
    width: min(100% - 28px, 560px);
  }

  .site-nav {
    top: max(14px, env(safe-area-inset-top, 0px));
    left: 14px;
    right: 14px;
  }

  .brand {
    gap: 6px;
    font-size: 20px;
    transform: none;
  }

  .brand-logo {
    width: 35px;
  }

  .menu-button {
    width: 38px;
    height: 38px;
  }

  .menu-icon {
    width: 29px;
    height: 29px;
  }
}

@media (max-width: 480px) {
  .keeper-hero {
    --gradient-radius: clamp(260px, 95vw, 380px);

    min-height: 260px;
    height: 300px;
    padding-inline: 18px;
    padding-top: max(24px, env(safe-area-inset-top, 0px));
    padding-bottom: 20px;
  }
}
