:root {
  --home-purple: #8a19d2;
  --home-ink: #211827;
  --home-muted: #6f6376;
  --home-surface: #f8f5fb;
}

html { scroll-behavior: smooth; }
body { overflow-x: clip; background: var(--home-surface); }

.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;
}

.header {
  min-height: 76px;
  height: auto;
  justify-content: center;
  gap: 0;
  padding: 0;
  background: linear-gradient(to bottom, rgba(42, 0, 61, 0.52), transparent);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.bg-white {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 34px rgba(45, 13, 57, 0.1);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), 1280px);
  min-height: 76px;
  margin: 0 auto;
}

.brand-link {
  color: #fff;
  font-family: "Alata", "Montserrat", sans-serif;
  font-size: 1.25rem;
  text-decoration: none;
  text-shadow: 0 2px 16px rgba(39, 0, 54, 0.44);
  transition: color 0.25s ease, transform 0.25s ease;
}

.brand-link:hover { transform: translateY(-1px); }
.header.bg-white .brand-link { color: var(--home-ink); text-shadow: none; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-text {
  display: inline-flex;
  align-items: center;
  padding: 10px 13px;
  color: #fff;
  line-height: 1;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.header-link { text-decoration: none; }

.header-text:hover { background: rgba(255, 255, 255, 0.16); border-bottom: 0; }
.header.bg-white .header-text:hover { background: rgba(136, 1, 194, 0.08); }
.terms-menu { margin-right: 0; }
.terms-menu summary { padding: 10px 14px; line-height: 1; backdrop-filter: blur(10px); }
.terms-menu-panel { top: calc(100% + 12px); min-width: 172px; padding: 9px; border-radius: 16px; }

.main-box {
  isolation: isolate;
  align-items: center;
  flex-direction: column;
  min-height: 0;
  padding-bottom: clamp(118px, 8vw, 156px);
  overflow: hidden;
  background: linear-gradient(180deg, #6650f5 0%, #7450f2 58%, #8b43e8 100%);
}

.main-box::after {
  display: none;
}

.main-img {
  position: relative;
  z-index: -2;
  display: block;
  width: 100%;
  height: auto;
}

.store-panel {
  box-sizing: border-box;
  position: absolute;
  top: min(calc(100% - 190px), calc(100svh - 190px));
  bottom: auto;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 0;
  padding: 18px 22px 16px;
  background: rgba(55, 0, 76, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(43, 0, 61, 0.22);
  backdrop-filter: blur(14px);
}

.hero-kicker {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Alata", "Montserrat", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.store {
  position: static;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: row;
  gap: clamp(14px, 2vw, 28px);
}

.store-option { gap: 9px; }

.store-badge-link {
  display: flex;
  justify-content: center;
  line-height: 0;
  border-radius: 10px;
  transition: transform 0.22s ease, filter 0.22s ease;
}

.store-badge-link:hover { filter: brightness(1.08); transform: translateY(-3px); }

.store img.download-img {
  width: clamp(172px, 15.5vw, 250px);
  height: auto;
  cursor: pointer;
}

.store-terms-link {
  padding: 7px 14px;
  font-size: 0.76rem;
  background: rgba(39, 0, 54, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.store-terms-link:hover { transform: translateY(-1px); }

.privacy-box {
  padding: 0;
  background: linear-gradient(180deg, #8b43e8 0%, #8950ed 18%, #655cf4 58%, #27c4ef 100%);
}

.section-jump-anchor {
  display: block;
  height: 0;
  scroll-margin-top: 84px;
}

.privacy-box .s-section {
  min-height: 0;
  padding: clamp(30px, 6vw, 84px) 0;
  background-color: transparent !important;
  background-image: linear-gradient(180deg, rgba(139, 67, 232, 0.96) 0%, rgba(101, 92, 244, 0.94) 58%, rgba(39, 196, 239, 0.96) 100%) !important;
  background-attachment: scroll !important;
}

.privacy-box .s-section > .container {
  box-sizing: border-box;
  max-width: 1040px !important;
  padding: clamp(34px, 5vw, 72px) !important;
  background: rgba(49, 0, 69, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  box-shadow: 0 28px 80px rgba(48, 0, 65, 0.18);
  backdrop-filter: blur(12px);
}

.privacy-box .h1Tag {
  margin-bottom: clamp(28px, 5vw, 52px) !important;
  font-size: clamp(2.4rem, 5vw, 4.4rem) !important;
  letter-spacing: -0.04em;
}

.privacy-box .s-font-heading { max-width: 820px; margin: 0 auto; }

.privacy-box .s-font-heading p,
.privacy-box .s-font-heading li,
.privacy-box .s-font-heading span {
  font-size: clamp(0.98rem, 1.2vw, 1.08rem) !important;
  line-height: 1.8 !important;
}

.privacy-box .s-font-heading h2 {
  margin-top: clamp(32px, 5vw, 52px) !important;
  margin-bottom: 14px !important;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem) !important;
  line-height: 1.3 !important;
}

.privacy-box .s-font-heading ul { margin: 14px 0 20px !important; padding-left: 24px !important; }

.contact-box {
  box-sizing: border-box;
  min-height: 410px;
  gap: 14px;
  padding: clamp(70px, 9vw, 120px) 24px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.16), transparent 25rem),
    linear-gradient(180deg, #27c4ef 0%, #4b8ff1 52%, #665af0 100%);
  scroll-margin-top: 90px;
}

.contact-text {
  margin-bottom: 0;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.contact-lead {
  max-width: 560px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
  font-family: "Montserrat", sans-serif;
  line-height: 1.65;
  text-align: center;
}

.email-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 20px;
  color: var(--home-ink);
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(102, 46, 123, 0.12);
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(72, 27, 88, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.email-link:hover { box-shadow: 0 18px 42px rgba(72, 27, 88, 0.16); transform: translateY(-2px); }
.email-link .email-img { width: 28px; height: 28px; }
.email-link .email-text { color: var(--home-ink); font-weight: 700; }

.brand-link:focus-visible,
.store-badge-link:focus-visible,
.email-link:focus-visible { outline: 3px solid #ffd86b; outline-offset: 4px; }

@media (max-width: 1024px) {
  .main-box { min-height: 0; padding-bottom: 144px; }
  .privacy-box .s-section > .container { max-width: calc(100% - 40px) !important; }
}

@media (max-width: 699px) {
  .header { min-height: 98px; padding: 0; }
  .header-inner {
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-height: 98px;
    gap: 5px;
    padding: 8px 10px;
  }
  .brand-link { font-size: 1rem; }
  .primary-nav { justify-content: center; width: 100%; gap: 2px; }
  .header-text,
  .terms-menu summary { padding: 8px 9px; font-size: 0.72rem; }
  .terms-menu-panel { right: 0; min-width: 150px; }
  .main-box {
    min-height: 0;
    padding-top: 114px;
    padding-bottom: 148px;
  }
  .store-panel {
    top: calc(114px + 56.25vw - 22px);
    bottom: auto;
    width: 90%;
    max-width: 410px;
    margin-bottom: 0;
    padding: 15px 12px 13px;
    border-radius: 20px;
  }
  .store { width: 100%; flex-direction: row; gap: 10px; }
  .store-option { flex: 1; min-width: 0; gap: 6px; }
  .store img.download-img { width: min(100%, 156px); }
  .store-terms-link { padding: 6px 10px; font-size: 0.68rem; }
  .privacy-box { padding: 0; }
  .section-jump-anchor { scroll-margin-top: 122px; }
  .privacy-box .s-section { padding: 18px 0; }
  .privacy-box .s-section > .container {
    max-width: calc(100% - 20px) !important;
    padding: 34px 22px !important;
    border-radius: 22px;
  }
  .privacy-box .h1Tag { font-size: clamp(2.2rem, 13vw, 3.25rem) !important; line-height: 1.02 !important; }
  .contact-box { min-height: 350px; padding-right: 18px; padding-left: 18px; }
  .email-link { max-width: 100%; padding: 13px 16px; }
  .email-link .email-text { overflow-wrap: anywhere; }
}

@media (max-width: 430px) {
  .main-box { min-height: 0; }
  .hero-kicker { font-size: 0.68rem; }
  .store img.download-img { width: min(100%, 140px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
