@font-face {
  font-family: 'Zalando Sans';
  src: url('fonts/ZalandoSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Zalando Sans';
  src: url('fonts/ZalandoSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Zalando Sans';
  src: url('fonts/ZalandoSans-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Zalando Sans';
  src: url('fonts/ZalandoSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

:root {
  /* Page */
  --bg-page: #F8F5F4;
  --bg-card: #FFFFFF;
  --bg-footer: #E8E8E8;
  --bg-phone-screen: #F0F0F0;

  /* Legacy aliases */
  --bg0: #FFFFFF;
  --bg1: #F8F5F4;
  --bg2: #E7E7E7;

  /* Text */
  --text-primary: #1A1A1A;
  --text-secondary: rgba(60, 60, 67, 0.85);

  /* Borders & accents */
  --border: #D9D9D9;
  --accent: #F8802B;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-page: #111010;
    --bg-card: #1C1C1E;
    --bg-footer: #161616;
    --bg-phone-screen: #2C2C2E;

    --bg0: #1C1C1E;
    --bg1: #111010;
    --bg2: #2C2C2E;

    --text-primary: #F2F2F7;
    --text-secondary: rgba(235, 235, 245, 0.85);

    --border: #38383A;
  }
}

html {
  height: 100%;
  scroll-behavior: smooth;
}


body {
  background-color: var(--bg0);
  color: var(--text-primary);
  font-family: 'Zalando Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Legacy header/footer (used by privacy, terms, whats-new) ── */
header {
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg0);
}

.logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

footer:not(.site-footer) {
  padding: 24px 40px;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  column-gap: 24px;
  row-gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg1);
  border-radius: 100px;
  padding: 10px 20px;
}

.cta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (max-width: 560px) {
  header {
    padding: 20px 24px;
  }

  .cta {
    font-size: 12px;
    padding: 8px 14px;
    gap: 6px;
  }

  .cta-dot {
    width: 6px;
    height: 6px;
  }

  footer:not(.site-footer) {
    padding: 20px 24px;
    flex-direction: column;
    gap: 12px;
  }
}

/* ── Shared Nav ── */
.navbar {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  transform: translateY(calc(-100% - 50px));
  pointer-events: none;
  transition: transform 0.35s ease;
}

.navbar.visible {
  transform: translateY(0);
  pointer-events: auto;
}

.nav-inner {
  max-width: 1060px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 100px;
  padding: 10px 10px 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.03);
}

@media (prefers-color-scheme: dark) {
  .nav-inner {
    background: rgba(28, 28, 30, 0.75);
    border-color: rgba(255, 255, 255, 0.08);
  }

}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.3px;
}

.nav-logo img {
  border-radius: 8px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.15s;
}

.nav-links a:hover {
  opacity: 0.6;
}

/* ── Download button ── */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #000;
  color: #fff;
  border-radius: 100px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: none;
  letter-spacing: -0.2px;
  user-select: none;
  -webkit-user-select: none;
}

.btn-download:hover {
  opacity: 0.6;
}

.btn-download svg {
  flex-shrink: 0;
  position: relative;
  top: -1px;
}

@media (prefers-color-scheme: dark) {
  .btn-download {
    background: #fff;
    color: #000;
  }
}

.btn-download-sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-download-lg {
  padding: 16px 32px;
  font-size: 16px;
}

/* ── Site Footer ── */
.site-footer {
  padding: 0 64px 40px;
}

.footer-card {
  background: var(--accent);
  border-radius: 20px;
  padding: 48px 40px 44px;
}

.footer-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr repeat(3, auto);
  gap: 60px;
  align-items: start;
}

.footer-brand img {
  border-radius: 10px;
}

.footer-brand-meaning {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  line-height: 1.5;
}

.footer-brand-meaning .pronunciation {
  font-style: italic;
  margin-right: 4px;
}

.footer-brand-meaning .part-of-speech {
  font-weight: 700;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  text-align: center;
  padding: 24px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ── Shared responsive ── */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-card {
    padding: 40px 40px 36px;
  }
}

@media (max-width: 600px) {
  .navbar {
    top: 8px;
    padding: 0 16px;
  }

  .nav-inner {
    padding: 8px 8px 8px 20px;
  }

  .site-footer {
    padding: 0 24px 32px;
  }

  .footer-card {
    padding: 32px 28px 28px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Extra breathing room between navbar and content on desktop */
@media (min-width: 601px) {
  main {
    padding-top: 140px !important;
  }
}
