/*
 * Sober Today — styles on every page (the Next.js site's app/globals.css plus the
 * header and footer component styles), copied unchanged. Page styles live in their
 * own file next to this one, as the Next.js build split them per page.
 *
 * Geist / Geist Mono were loaded by next/font and exposed as --font-geist-sans and
 * --font-geist-mono, but no rule used them (the body is Arial), so a browser never
 * downloads these files; they are declared so the variables keep working.
 * Licence: /fonts/OFL.txt (SIL Open Font License 1.1).
 */
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

body {
  --font-geist-sans: "Geist", "Geist Fallback", Arial, Helvetica, sans-serif;
  --font-geist-mono: "Geist Mono", "Geist Mono Fallback", ui-monospace, monospace;
}

/* ---- globals.css ---- */
:root {
  --background: #ffffff;
  --foreground: #171717;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --foreground: #ededed;
  }
}

html {
  height: 100%;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  color: var(--foreground);
  background: var(--background);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  html {
    color-scheme: dark;
  }
}


/* ---- css/site-header.css ---- */
.siteHeader {
  --header-ink: #241d32;
  --header-purple: #7658c9;
  --header-purple-deep: #543a9b;
  --header-lavender: #eee9ff;
  position: relative;
  z-index: 100;
  width: 100%;
}

.siteHeaderHome {
  position: absolute;
  top: 0;
  left: 0;
  color: #fff;
  background: transparent;
}



.siteHeaderInnerPage {
  color: var(--header-ink);
  border-bottom: 1px solid rgba(36, 29, 50, 0.09);
  background: #fff;
  box-shadow: 0 6px 22px rgba(36, 29, 50, 0.04);
}

.siteHeaderInner {
  position: relative;
  width: min(1180px, calc(100% - 48px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.siteHeaderBrand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  color: inherit;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.siteHeaderBrand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.siteHeaderInnerPage .siteHeaderBrand img {
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(84, 58, 155, 0.14);
}

.siteHeaderDesktopNav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
}

.siteHeaderDesktopNav a {
  padding: 10px 13px;
  border-radius: 10px;
  color: #5d566a;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.siteHeaderHome .siteHeaderDesktopNav a {
  color: rgba(255, 255, 255, 0.82);
}

.siteHeaderDesktopNav a:hover {
  background: var(--header-lavender);
  color: var(--header-purple-deep);
}

.siteHeaderHome .siteHeaderDesktopNav a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.siteHeaderDesktopNav .siteHeaderDownload {
  margin-left: 4px;
  padding-inline: 18px;
  background: var(--header-purple-deep);
  color: #fff;
  box-shadow: 0 8px 20px rgba(84, 58, 155, 0.2);
}

.siteHeaderHome .siteHeaderDesktopNav .siteHeaderDownload {
  background: #fff;
  color: var(--header-purple-deep);
  box-shadow: 0 8px 24px rgba(36, 29, 50, 0.14);
}

.siteHeaderDesktopNav .siteHeaderDownload:hover {
  background: var(--header-purple);
  color: #fff;
  transform: translateY(-1px);
}

.siteHeaderHome .siteHeaderDesktopNav .siteHeaderDownload:hover {
  background: var(--header-lavender);
  color: var(--header-purple-deep);
}

.siteHeaderActions { display: flex; align-items: center; margin-left: auto; }
.siteHeaderDesktopNav { display: none; }

.siteHeaderMenuButton {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  border: 1px solid rgba(118, 88, 201, 0.17);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--header-ink);
  cursor: pointer;
}

.siteHeaderHome .siteHeaderMenuButton {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.siteHeaderMenuButton span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.siteHeaderMenuButton.isOpen span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.siteHeaderMenuButton.isOpen span:nth-child(2) { opacity: 0; }
.siteHeaderMenuButton.isOpen span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.siteHeaderMobileMenu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(330px, calc(100vw - 30px));
  max-height: calc(100vh - 105px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(118, 88, 201, 0.15);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 55px rgba(54, 39, 91, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.siteHeaderMobileMenu.isOpen {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.siteHeaderMobileMenu a {
  padding: 13px 15px;
  border-radius: 11px;
  color: var(--header-ink);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

.siteHeaderMobileMenu a:hover {
  background: var(--header-lavender);
  color: var(--header-purple-deep);
}

.siteHeaderStoreSection {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 7px;
  padding: 13px 5px 4px;
  border-top: 1px solid rgba(36, 29, 50, 0.09);
}

.siteHeaderStoreSection > p {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  padding: 0 3px;
  color: #857d91;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.siteHeaderMobileMenu .siteHeaderStoreButton {
  min-width: 0;
  min-height: 55px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 11px;
  background: #151d3a;
  color: #fff;
}

.siteHeaderMobileMenu .siteHeaderStoreButton:hover {
  background: #253568;
  color: #fff;
}

.siteHeaderStoreButton svg {
  width: 24px;
  height: 24px;
  flex: none;
  fill: currentColor;
}

.siteHeaderStoreButton span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.05;
  white-space: nowrap;
}

.siteHeaderStoreButton small {
  overflow: hidden;
  font-size: 8px;
  font-weight: 500;
  line-height: 1.35;
  text-overflow: ellipsis;
}

@media (max-width: 820px) {
  .siteHeaderInner { min-height: 70px; }
}

@media (max-width: 480px) {
  .siteHeaderInner { width: calc(100% - 30px); }
  .siteHeaderBrand { font-size: 19px; }
  .siteHeaderBrand img { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .siteHeaderDesktopNav a,
  .siteHeaderMenuButton span,
  .siteHeaderMobileMenu { transition: none; }
}

/* ---- css/site-footer.css ---- */
.stFooter {
  --st-navy: #1e2a5a;
  --st-indigo: #394b8c;
  --st-cyan: #4fc1c4;
  --st-aqua: #dff3f2;
  position: relative;
  overflow: hidden;
  padding: 72px 24px 24px;
  background: #080d23;
  color: #fff;
  isolation: isolate;
}

.stFooter::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.22;
  background-image: radial-gradient(rgba(255, 255, 255, 0.25) 0.7px, transparent 0.7px);
  background-size: 28px 28px;
  mask-image: linear-gradient(110deg, black, transparent 72%);
}

.stFooterInner {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.stFooterMain {
  display: grid;
  grid-template-columns: 280px 190px minmax(360px, 1fr);
  gap: clamp(45px, 7vw, 92px);
  align-items: start;
}

.stFooterBrandLink {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.stFooterBrandIcon {
  width: 34px;
  height: 34px;
  flex: none;
  object-fit: contain;
  border-radius: 12px;
}

.stFooterTagline {
  max-width: 270px;
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  line-height: 1.55;
}

.stFooterStores {
  margin-top: 22px;
  display: flex;
  gap: 8px;
}

.stFooterStores a {
  min-width: 118px;
  min-height: 48px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.075);
  color: #fff;
  text-decoration: none;
  box-sizing: border-box;
}

.stFooterStoreIcon {
  width: 24px;
  height: 24px;
  flex: none;
}

.stFooterAppleIcon {
  fill: #fff;
}

.stPlayGreen { fill: #36d785; }
.stPlayBlue { fill: #3f8cff; }
.stPlayYellow { fill: #ffd347; }
.stPlayRed { fill: #ff5c5c; }

.stFooterStoreText {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.stFooterStoreText small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 8px;
  line-height: 1;
}

.stFooterStoreText strong {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1;
}

.stFooter h2 {
  margin: 0 0 20px;
  color: #7ee3df;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.stFooterPages ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 13px;
  list-style: none;
}

.stFooterPages a,
.stFooterLanguageList a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.stFooterPages a:hover,
.stFooterLanguageList a:hover {
  color: #7ee3df;
}

.stFooterLanguages > p {
  max-width: 570px;
  margin: -8px 0 19px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  line-height: 1.5;
}

.stFooterLanguageList {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
}

.stFooterLanguageList a,
.stFooterLanguageList span {
  display: inline-block;
  font-size: 13px;
  line-height: 1.4;
}

.stFooterLanguageSoon {
  color: rgba(255, 255, 255, 0.3);
  cursor: default;
}

.stFooterLanguageNote {
  margin: 21px 0 0 !important;
  color: rgba(126, 227, 223, 0.53) !important;
  font-size: 11px !important;
}

.stFooterBottom {
  margin-top: 58px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.stFooterBottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.38);
  font-size: 11px;
  line-height: 1.5;
}

.stFooterGlow {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(2px);
}

.stFooterGlowOne {
  width: 420px;
  height: 420px;
  top: -270px;
  right: -120px;
  background: rgba(79, 193, 196, 0.12);
}

.stFooterGlowTwo {
  width: 330px;
  height: 330px;
  bottom: -250px;
  left: -100px;
  background: rgba(57, 75, 140, 0.19);
}

@media (max-width: 920px) {
  .stFooterMain {
    grid-template-columns: 260px 1fr;
  }

  .stFooterLanguages {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .stFooter {
    padding: 55px 18px 22px;
  }

  .stFooterMain {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .stFooterLanguages {
    grid-column: auto;
  }

  .stFooterStores {
    max-width: 320px;
  }

  .stFooterStores a {
    flex: 1;
  }

  .stFooterBottom {
    margin-top: 45px;
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .stFooterStores a {
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  }

  .stFooterStores a:hover {
    border-color: rgba(126, 227, 223, 0.38);
    background: rgba(79, 193, 196, 0.13);
    transform: translateY(-2px);
  }
}

