/* Shared public-site chrome: cookie banner, favicon-independent extras.
   Loaded on every public page. Keep selectors prefixed so they cannot
   collide with the compiled homepage bundle. */

.cookie-banner {
  position: fixed;
  z-index: 60;
  right: 12px;
  bottom: 0;
  left: 12px;
  margin-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  padding: 16px 18px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 16px;
  background: rgb(12 14 20 / 96%);
  box-shadow: 0 12px 40px rgb(0 0 0 / 45%);
  color: #f0ede8;
  backdrop-filter: blur(16px);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  width: min(100%, 1180px);
  margin: 0 auto;
}

.cookie-banner-copy {
  flex: 1 1 240px;
  min-width: 0;
}

.cookie-banner-title {
  margin: 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cookie-banner-text {
  margin: 6px 0 0;
  color: #c5c1bb;
  font-size: 0.88rem;
  line-height: 1.45;
}

.cookie-banner-text a {
  color: #00d4aa;
  font-weight: 700;
  text-underline-offset: 3px;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.cookie-banner-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  touch-action: manipulation;
}

.cookie-banner-actions button[data-cookie="deny"] {
  color: #f0ede8;
  border: 1px solid rgb(255 255 255 / 22%);
  background: transparent;
}

.cookie-banner-actions button[data-cookie="allow"] {
  color: #0c0e14;
  border: 1px solid #00d4aa;
  background: #00d4aa;
}

.cookie-banner-actions button:focus-visible {
  outline: 3px solid #00d4aa;
  outline-offset: 3px;
}

@media (max-width: 620px) {
  .cookie-banner-actions {
    width: 100%;
  }

  .cookie-banner-actions button {
    flex: 1 1 calc(50% - 8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    backdrop-filter: none;
  }
}

/* Homepage chrome, reused on every public page so header/footer stay identical. */
.premium-nav,
.side-menu,
.minimal-footer {
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --accent-teal: #00d4b2;
  --bg-dark: #050505;
  --font-display: "Space Grotesk", sans-serif;
  --curve-smooth: cubic-bezier(0.25, 1, 0.5, 1);
}

body.menu-open {
  overflow: hidden;
}

html:not(.js-enhanced) .hamburger-menu {
  display: none;
}

.side-menu[hidden] {
  display: none !important;
}

body.subpage {
  padding-top: calc(72px + env(safe-area-inset-top, 0px));
}

.premium-nav {
  position: fixed;
  z-index: 9990;
  top: 0;
  left: 0;
  width: 100%;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 0 18px;
  background: transparent;
}

.premium-nav .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 10vw), 1440px);
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 22px;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    backdrop-filter 220ms ease;
}

.premium-nav.is-scrolled .nav-container,
body.menu-open .premium-nav .nav-container {
  border-color: rgb(255 255 255 / 11%);
  background: rgb(4 4 4 / 94%);
  box-shadow: 0 18px 48px rgb(0 0 0 / 42%);
  backdrop-filter: blur(18px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-logo-icon {
  width: auto;
  height: 24px;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-download {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 18px;
  color: var(--accent-teal);
  border: 1px solid rgb(0 212 178 / 35%);
  border-radius: 999px;
  background: rgb(255 255 255 / 4%);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 200ms ease,
    border-color 200ms ease,
    background-color 200ms ease,
    transform 200ms ease;
}

.nav-download:hover,
.nav-download:focus-visible {
  color: var(--bg-dark);
  border-color: var(--accent-teal);
  background: var(--accent-teal);
  outline: none;
  transform: translateY(-2px);
}

.nav-download:focus-visible {
  outline: 3px solid var(--text-main);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgb(0 212 178 / 35%);
}

.hamburger-menu {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
  height: 24px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.hamburger-menu .line {
  align-self: flex-end;
  height: 2px;
  border-radius: 2px;
  background-color: var(--text-main);
  transform-origin: center;
  transition:
    width 180ms ease,
    transform 220ms ease,
    opacity 180ms ease,
    background-color 0.3s;
}

.hamburger-menu:hover .line {
  background-color: var(--accent-teal);
}

.hamburger-menu .line-1 {
  width: 100%;
}

.hamburger-menu .line-2 {
  width: 60%;
}

.hamburger-menu .line-3 {
  width: 80%;
}

.hamburger-menu[aria-expanded="true"] .line-1 {
  width: 100% !important;
  transform: translateY(11px) rotate(45deg);
}

.hamburger-menu[aria-expanded="true"] .line-2 {
  opacity: 0;
}

.hamburger-menu[aria-expanded="true"] .line-3 {
  width: 100% !important;
  transform: translateY(-11px) rotate(-45deg);
}

.side-menu {
  position: fixed;
  z-index: 9980;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100dvh;
  padding: clamp(96px, 14vh, 150px) 5vw 48px;
  overflow-y: auto;
  pointer-events: none;
  visibility: hidden;
  background:
    radial-gradient(circle at 78% 20%, rgb(0 212 178 / 14%), transparent 34%),
    #040505;
  opacity: 1;
  transition: visibility 0s linear 280ms;
}

.side-menu.active {
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}

.side-menu .side-menu-items {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: min(100%, 760px);
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 280ms ease 60ms,
    transform 420ms var(--curve-smooth) 60ms;
}

.side-menu.active .side-menu-items {
  opacity: 1;
  transform: translateY(0);
}

.side-menu-items li:not(.menu-divider) {
  width: 100%;
}

.side-menu-items li a {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 11px 4px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4vw, 3.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  text-decoration: none;
  text-transform: uppercase;
}

.side-menu-items li a::after {
  content: "↗";
  color: var(--accent-teal);
  font-size: 0.45em;
  opacity: 0;
  transform: translate(-8px, 8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.side-menu-items li a:hover,
.side-menu-items li a:focus-visible {
  color: var(--accent-teal);
}

.side-menu-items li a:hover::after,
.side-menu-items li a:focus-visible::after {
  opacity: 1;
  transform: translate(0);
}

.side-menu-items li a:focus-visible {
  outline: 2px solid var(--accent-teal);
  outline-offset: 4px;
}

.side-menu .menu-divider {
  width: 100%;
  height: 1px;
  padding: 0;
  background: rgb(255 255 255 / 10%);
}

.side-menu .menu-divider .circle {
  display: none;
}

.minimal-footer {
  display: block;
  padding: 72px 5vw calc(36px + var(--cookie-banner-height, 0px));
  border-top: 1px solid rgb(255 255 255 / 8%);
  background:
    radial-gradient(circle at 8% 0%, rgb(0 212 178 / 8%), transparent 32%),
    #050505;
  color: var(--text-muted);
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) minmax(0, 2.2fr);
  gap: 48px 64px;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding-bottom: 48px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 320px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.footer-logo img {
  width: auto;
  height: 28px;
  opacity: 0.92;
}

.footer-brand {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.55;
}

.footer-app-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  color: var(--bg-dark);
  border-radius: 999px;
  background: var(--accent-teal);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition:
    filter 180ms ease,
    transform 180ms ease;
}

.footer-app-cta:hover,
.footer-app-cta:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.footer-app-cta:focus-visible {
  outline: 3px solid var(--text-main);
  outline-offset: 3px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.footer-heading {
  margin: 0 0 12px;
  color: rgb(255 255 255 / 46%);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-col a:hover,
.footer-col a:focus-visible,
.footer-col a[aria-current="page"] {
  color: var(--accent-teal);
}

.footer-col a:focus-visible {
  outline: 2px solid var(--accent-teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid rgb(255 255 255 / 8%);
}

.footer-bar p {
  margin: 0;
  color: rgb(255 255 255 / 38%);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

@media (width <= 900px) {
  .footer-shell {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
  }

  .footer-brand-col {
    max-width: none;
  }

  .footer-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 24px;
  }
}

@media (width <= 600px) {
  .premium-nav {
    padding-bottom: 12px;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
  }

  .premium-nav .nav-container {
    width: calc(100% - 24px);
    padding: 8px 10px 8px 14px;
  }

  .nav-logo-text {
    display: none;
  }

  .nav-actions {
    gap: 14px;
  }

  .nav-download {
    padding: 10px 14px;
  }

  .hamburger-menu {
    width: 44px;
    height: 44px;
    padding: 11px 5px;
  }

  .side-menu {
    padding: 92px 24px 28px;
  }

  .side-menu-items li a {
    min-height: 48px;
    padding-block: 10px;
    font-size: clamp(1.45rem, 8vw, 2.15rem);
  }

  .minimal-footer {
    padding: 52px 24px calc(24px + var(--cookie-banner-height, 0px));
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
  }
}

@media (width <= 420px) {
  .footer-nav {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-col:last-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .premium-nav .nav-container,
  .nav-download,
  .hamburger-menu .line,
  .side-menu,
  .side-menu .side-menu-items,
  .side-menu-items li a,
  .side-menu-items li a::after,
  .footer-app-cta,
  .footer-col a {
    transition: none;
  }

  .nav-download:hover,
  .nav-download:focus-visible,
  .footer-app-cta:hover,
  .footer-app-cta:focus-visible {
    transform: none;
  }
}

@media print {
  .premium-nav,
  .side-menu,
  .minimal-footer,
  .cookie-banner {
    display: none !important;
  }

  body.subpage {
    padding-top: 0;
  }
}
