/* Poppins — self-hosted for privacy (no Google Fonts call-home). */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/poppins-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/poppins-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/poppins-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/poppins-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/poppins-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/poppins-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/poppins-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/poppins-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('./fonts/poppins-800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('./fonts/poppins-800-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #faf5ff;
  --bg-soft: #f3e8ff;
  --purple-hero: #7c5aea;
  --purple-hero-deep: #6a47d6;
  --purple-hero-text: #ece0fa;
  --purple-hero-muted: #c9b5f1;
  --purple-900: #2e1065;
  --purple-700: #7c3aed;
  --purple-600: #8b5cf6;
  --purple-500: #a78bfa;
  --purple-400: #c4b5fd;
  --text: #2e1065;
  --muted: #6d4ea8;
  --border: rgba(124, 58, 237, 0.12);
  --card: rgba(255, 255, 255, 0.6);
  --card-strong: rgba(255, 255, 255, 0.85);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--purple-700);
  text-decoration: none;
  transition: opacity 0.15s;
}

a:hover {
  opacity: 0.7;
}

img {
  max-width: 100%;
  display: block;
}

/* ───── Header ───── */
header {
  padding: 1.6rem 6vw;
  position: relative;
  z-index: 2;
}

.header-purple {
  background: transparent;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  color: var(--purple-900);
}

.brand-on-dark {
  color: var(--purple-hero-text);
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(124, 58, 237, 0.25));
}

.nav-links {
  display: flex;
  gap: 1.8rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links-on-dark a {
  color: var(--purple-hero-muted);
}

.nav-links-on-dark a:hover {
  color: var(--purple-hero-text);
  opacity: 1;
}

/* ───── Main ───── */
main {
  padding: 0;
}

/* ───── Hero ───── */
.hero {
  background:
    linear-gradient(140deg, var(--purple-hero) 0%, var(--purple-hero-deep) 100%);
  color: var(--purple-hero-text);
  padding: 6rem 6vw 7rem;
  margin-top: -5rem;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  width: 1200px;
  height: 1200px;
  left: -300px;
  top: -200px;
  background: url('./orb.webp') center/contain no-repeat;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
  animation: drift-across 75s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 85% -10%, rgba(255, 255, 255, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 15% 110%, rgba(139, 92, 246, 0.35) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

@keyframes drift-across {
  0%   { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(60vw, -40px) rotate(18deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--purple-hero-text);
  margin-bottom: 1.5rem;
  line-height: 1.02;
}

.hero-copy .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--purple-hero-muted);
  max-width: 520px;
  margin: 0 0 2.5rem;
  line-height: 1.55;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 680px;
}

.hero-phone {
  width: 100%;
  max-width: 460px;
  display: block;
  animation: float 6s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.hero-orb {
  position: absolute;
  width: 180px;
  height: 180px;
  right: -30px;
  top: 10%;
  opacity: 0.4;
  filter: blur(1px) drop-shadow(0 0 40px rgba(255, 255, 255, 0.3));
  animation: float 8s ease-in-out infinite reverse;
  z-index: 1;
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--purple-900);
  margin-bottom: 1.3rem;
  line-height: 1.1;
}

.lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.55;
}

.cta-row {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ───── Feature sections (alternating) ───── */
.feature {
  padding: 6rem 6vw;
  overflow: hidden;
}

.feature-lavender {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  color: var(--text);
}

#how {
  position: relative;
}

#how::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  bottom: 6%;
  left: -180px;
  background: url('./orb.webp') center/contain no-repeat;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
  animation: bounce-across 28s linear infinite;
  will-change: transform;
}

#how > .feature-inner {
  position: relative;
  z-index: 1;
}

@keyframes bounce-across {
  0%   { transform: translate(0, 0) rotate(0deg);         animation-timing-function: ease-out; }
  11%  { transform: translate(10vw, -80px) rotate(70deg);  animation-timing-function: ease-in;  }
  22%  { transform: translate(20vw, 0) rotate(140deg);     animation-timing-function: ease-out; }
  33%  { transform: translate(35vw, -90px) rotate(210deg); animation-timing-function: ease-in;  }
  44%  { transform: translate(50vw, 0) rotate(280deg);     animation-timing-function: ease-out; }
  55%  { transform: translate(65vw, -75px) rotate(340deg); animation-timing-function: ease-in;  }
  66%  { transform: translate(78vw, 0) rotate(410deg);     animation-timing-function: ease-out; }
  77%  { transform: translate(92vw, -60px) rotate(475deg); animation-timing-function: ease-in;  }
  88%  { transform: translate(108vw, 0) rotate(540deg); }
  100% { transform: translate(140vw, 0) rotate(620deg); }
}

@media (max-width: 720px) {
  #how::before {
    width: 220px;
    height: 220px;
    bottom: 4%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #how::before { animation: none; }
}

#languages {
  position: relative;
}

#languages::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  top: 50%;
  right: -160px;
  margin-top: -260px;
  background: url('./orb.webp') center/contain no-repeat;
  opacity: 0.20;
  pointer-events: none;
  z-index: 0;
  animation: orbit-slow 42s linear infinite;
  will-change: transform;
}

#languages > .feature-inner {
  position: relative;
  z-index: 1;
}

@keyframes orbit-slow {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(-50px, -40px) rotate(90deg); }
  50%  { transform: translate(0, -70px) rotate(180deg); }
  75%  { transform: translate(50px, -40px) rotate(270deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

@media (max-width: 720px) {
  #languages::before {
    width: 300px;
    height: 300px;
    margin-top: -150px;
    right: -120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #languages::before { animation: none; }
}

.feature-purple {
  background:
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(255, 255, 255, 0.12) 0%, transparent 55%),
    linear-gradient(160deg, var(--purple-hero) 0%, var(--purple-hero-deep) 100%);
  color: var(--purple-hero-text);
  position: relative;
}

.capsule-rain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.feature-purple > .feature-inner {
  position: relative;
  z-index: 1;
}

.capsule-rain span {
  position: absolute;
  top: 0;
  width: 36px;
  height: 36px;
  background: url('./orb.webp') center/contain no-repeat;
  opacity: 0;
  animation: capsule-fall linear infinite;
  will-change: transform, opacity;
}

@keyframes capsule-fall {
  0%   { transform: translateY(-60px) rotate(0deg)   scale(0.85); opacity: 0; }
  12%  { opacity: 0.28; }
  28%  { opacity: 0.14; }
  44%  { opacity: 0.30; }
  60%  { opacity: 0.16; }
  76%  { opacity: 0.28; }
  88%  { opacity: 0.20; }
  100% { transform: translateY(720px) rotate(180deg) scale(1);    opacity: 0; }
}

.capsule-rain span:nth-child(1) { left: 6%;  width: 320px; height: 320px; animation-duration: 36s; animation-delay: -6s;  }
.capsule-rain span:nth-child(2) { left: 30%; width: 80px;  height: 80px;  animation-duration: 16s; animation-delay: -3s;  }
.capsule-rain span:nth-child(3) { left: 48%; width: 220px; height: 220px; animation-duration: 30s; animation-delay: -17s; }
.capsule-rain span:nth-child(4) { left: 68%; width: 110px; height: 110px; animation-duration: 20s; animation-delay: -11s; }
.capsule-rain span:nth-child(5) { left: 86%; width: 180px; height: 180px; animation-duration: 26s; animation-delay: -22s; }

@media (max-width: 720px) {
  .capsule-rain span:nth-child(n+4) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .capsule-rain span { animation: none; opacity: 0.4; }
}

.feature-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.feature-reverse {
  grid-template-columns: 1.1fr 1fr;
  direction: rtl;
}

.feature-reverse > * {
  direction: ltr;
}

.feature-visual img {
  width: 100%;
  max-width: 410px;
  display: block;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--purple-700);
  margin-bottom: 1.2rem;
}

.eyebrow-on-dark {
  color: var(--purple-hero-muted);
}

.feature-copy h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.feature-lavender h2 {
  color: var(--purple-900);
}

.feature-purple h2 {
  color: var(--purple-hero-text);
}

.feature-copy p {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.65;
  max-width: 520px;
}

.feature-lavender p {
  color: var(--muted);
}

.feature-purple p {
  color: var(--purple-hero-muted);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 1.9rem;
  background: var(--purple-700);
  color: white;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s;
  box-shadow:
    0 10px 22px -6px rgba(46, 16, 101, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

/* Top gloss highlight — mirrors PrimaryButton's LinearGradient */
.btn::before {
  content: "";
  position: absolute;
  inset: 0 0 50% 0;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.08) 55%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 1;
  box-shadow:
    0 14px 28px -6px rgba(46, 16, 101, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.btn:active {
  transform: scale(0.98);
  opacity: 0.92;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--purple-700);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1.5px rgba(124, 58, 237, 0.2);
  letter-spacing: 0.2px;
}

.btn-ghost::before {
  display: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 0 0 1.5px rgba(124, 58, 237, 0.3);
}

.btn-ghost:active {
  transform: scale(0.97);
  opacity: 0.8;
}

.app-store-link {
  display: inline-block;
  transition: transform 0.18s ease, opacity 0.18s;
}

.app-store-link:hover {
  transform: translateY(-1px);
  opacity: 0.85;
}

.app-store-link:active {
  transform: scale(0.98);
}

.app-store-badge {
  height: 56px;
  width: auto;
  display: block;
}

/* Google's official badge has ~14% internal padding baked into the PNG,
   which makes it look visibly smaller than the Apple SVG at the same height.
   Bump it so the two logos match optically. */
.app-store-badge[src*="google-play"] {
  height: 84px;
  margin: -14px -8px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.final .store-badges {
  justify-content: center;
}

/* On mobile the hero becomes center-aligned, so the badges need to follow. */
@media (max-width: 900px) {
  .store-badges {
    justify-content: center;
  }
}

/* On narrow phones the two full-size badges wrap to separate lines.
   Shrink both proportionally so they stay side by side and read as one row. */
@media (max-width: 480px) {
  .store-badges {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
  .app-store-badge {
    height: 44px;
  }
  .app-store-badge[src*="google-play"] {
    height: 66px;
    margin: -11px -6px;
  }
}

/* ───── Section headings ───── */
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--purple-900);
  margin-bottom: 1rem;
  text-align: center;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--muted);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

/* ───── Cards ───── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.3rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2rem 1.8rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -15px rgba(124, 58, 237, 0.2);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--purple-900);
  margin-bottom: 0.8rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-number {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--purple-700);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  line-height: 32px;
  margin-bottom: 1rem;
}

/* ───── Privacy block ───── */
.privacy-block {
  background:
    radial-gradient(ellipse 70% 70% at 20% 0%, rgba(139, 92, 246, 0.35) 0%, transparent 60%),
    linear-gradient(180deg, #2e1065 0%, #3d1d7d 100%);
  color: var(--purple-hero-text);
  padding: 7rem 6vw;
  overflow: hidden;
}

.privacy-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.privacy-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--purple-hero-text);
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0 auto 2rem;
}

.privacy-list {
  list-style: none;
  margin: 2.5rem auto 0;
  max-width: 580px;
  text-align: center;
  padding: 0;
}

.privacy-list li {
  padding: 0.7rem 0;
  color: var(--purple-hero-muted);
  font-size: 1rem;
  line-height: 1.55;
}

/* ───── Final CTA ───── */
.final {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  padding: 7rem 6vw 8rem;
}

.final h2 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  color: var(--purple-900);
  margin-bottom: 1.5rem;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.final p {
  color: var(--muted);
  margin-bottom: 2.25rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.final .app-store-link {
  display: inline-block;
}

/* ───── Footer ───── */
footer {
  padding: 3.5rem 6vw 2.5rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.footer-brand {
  margin: 0 auto 2.25rem;
  max-width: 560px;
  text-align: center;
}

.footer-brand .brand {
  font-size: 1rem;
  margin-bottom: 0.7rem;
  justify-content: center;
}

.footer-tagline {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

.footer-fineprint {
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.credits {
  color: var(--muted);
  font-size: 0.75rem;
  margin: 0;
  opacity: 0.75;
  line-height: 1.5;
}

.credits a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.credits a:hover {
  color: var(--purple-700);
}

.copyright {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.8;
}

.copyright a {
  color: var(--muted);
  font-weight: 500;
}

.copyright a:hover {
  color: var(--purple-700);
}

.copyright .sep {
  margin: 0 0.5rem;
  color: var(--border);
}

.footer-links::before {
  content: "\00B7";
  color: var(--border);
  margin: 0 0.5rem;
}

.copyright-legacy {
  line-height: 1.6;
}

/* ───── Legal pages ───── */
body.legal main {
  padding: 2rem 6vw 6rem;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.legal-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.legal-content h1 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  text-align: left;
  line-height: 1.2;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* German compound titles (Datenschutzerklärung / Nutzungsbedingungen) are
   too long for 2.2rem on narrow phones — shrink the title so the word stays
   on one line instead of orphaning two letters. */
@media (max-width: 480px) {
  .legal-content h1 {
    font-size: 1.6rem;
  }
}

.legal-content h2 {
  font-size: 1.3rem;
  color: var(--purple-900);
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
}

.legal-content h3 {
  font-size: 1.05rem;
  color: var(--purple-900);
  font-weight: 600;
  margin: 1.8rem 0 0.6rem;
}

.legal-content p {
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 0.98rem;
  line-height: 1.75;
}

.legal-content strong {
  color: var(--purple-900);
  font-weight: 600;
}

.legal-content ul {
  margin: 1rem 0 1.4rem 1.2rem;
}

.legal-content li {
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 0.98rem;
  line-height: 1.7;
  padding-left: 0.3rem;
}

.legal-content a {
  color: var(--purple-700);
  border-bottom: 1px solid var(--purple-400);
  font-weight: 500;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
}

.legal-content th,
.legal-content td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.legal-content th {
  background: var(--card-strong);
  font-weight: 600;
  color: var(--purple-900);
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.legal-content tr:last-child td {
  border-bottom: none;
}

.legal-content code {
  background: var(--bg-soft);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  font-family: 'SF Mono', Menlo, Monaco, monospace;
  font-size: 0.88em;
  color: var(--purple-900);
}

.lang-switch {
  text-align: right;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: -1.5rem 0 1.5rem;
}

.lang-switch a {
  color: var(--purple-700);
  text-decoration: none;
}

.lang-switch a:hover {
  text-decoration: underline;
}

.lang-switch .lang-active {
  color: var(--purple-900);
}

.lang-switch .lang-sep {
  margin: 0 0.5rem;
  color: var(--border);
  font-weight: 400;
}

/* ───── Responsive ───── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .hero-copy {
    align-items: center;
  }
  .hero-copy .lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-visual {
    min-height: auto;
    order: 2;
  }
  .hero-phone {
    max-width: 340px;
  }
  .hero-orb {
    right: auto;
    top: auto;
    width: 140px;
    height: 140px;
  }
  .feature-inner,
  .feature-reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    direction: ltr;
  }
  .feature-copy {
    text-align: center;
    order: 1;
  }
  .feature-visual {
    order: 2;
  }
  .feature-copy p {
    margin-left: auto;
    margin-right: auto;
  }
  .feature-visual img {
    max-width: 340px;
  }
}

@media (max-width: 640px) {
  header {
    padding: 1.3rem 5vw;
  }
  .hero {
    padding-top: 12rem;
    padding-bottom: 5rem;
  }
  .feature {
    padding: 4rem 6vw;
  }
  .privacy-block {
    padding: 5rem 6vw;
  }
  .final {
    padding: 4.5rem 5vw 5rem;
  }
  footer {
    padding: 2.5rem 5vw 2rem;
    text-align: center;
  }
  .footer-fineprint {
    flex-direction: column;
    gap: 0.9rem;
    align-items: center;
    text-align: center;
  }
  .copyright {
    line-height: 1.6;
  }
  .copyright .sep {
    margin: 0 0.35rem;
  }
  .footer-links {
    display: block;
    margin-top: 0.5rem;
  }
  .footer-links a {
    white-space: nowrap;
  }
  .footer-links::before {
    display: none;
  }
  .footer-tagline br {
    display: none;
  }
}

/* ───── Ambient sound toggle ───── */
.ambient-wrap {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ambient-hint {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  background: rgba(46, 16, 101, 0.92);
  color: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(46, 16, 101, 0.35);
  opacity: 0;
  transform: translateX(8px) scale(0.9);
  transform-origin: right center;
  transition: opacity 380ms ease, transform 380ms cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.ambient-wrap.hint-visible .ambient-hint,
.ambient-wrap:not(.dismissed):hover .ambient-hint {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.ambient-wrap.dismissed .ambient-hint {
  display: none;
}

.ambient-toggle {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(46, 16, 101, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 10px 28px rgba(46, 16, 101, 0.35);
  transition: transform 180ms ease, background 220ms ease, box-shadow 220ms ease;
}

.ambient-wrap:not(.dismissed):not(.hint-visible) .ambient-toggle {
  animation: ambient-nudge 4s ease-in-out 8s infinite;
}

@keyframes ambient-nudge {
  0%, 94%, 100% { transform: scale(1); }
  96%           { transform: scale(1.08) rotate(-6deg); }
  98%           { transform: scale(1.08) rotate(6deg); }
}

.ambient-toggle:hover {
  transform: scale(1.06);
  background: rgba(124, 90, 234, 0.92);
}

.ambient-toggle:focus-visible {
  outline: 2px solid var(--purple-hero-text);
  outline-offset: 3px;
}

.ambient-toggle .ambient-icon { display: none; }
.ambient-toggle .ambient-icon-off { display: block; }
.ambient-toggle.playing .ambient-icon-off { display: none; }
.ambient-toggle.playing .ambient-icon-on { display: block; }

.ambient-toggle.playing {
  background: rgba(124, 90, 234, 0.92);
  box-shadow: 0 10px 32px rgba(124, 90, 234, 0.55);
  animation: ambient-pulse 3.2s ease-in-out infinite;
}

@keyframes ambient-pulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(124, 90, 234, 0.45); }
  50%      { box-shadow: 0 10px 40px rgba(124, 90, 234, 0.75); }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-toggle.playing { animation: none; }
}
