:root {
  --bg: #0e1022;
  --bg-soft: #1e2348;
  --text: #fff8ee;
  --muted: #d8def0;
  --line: #3f4d82;
  --card: rgba(33, 41, 79, 0.7);
  --accent: #35e3c4;
  --accent-strong: #b8ff69;
  --warm: #ff9d66;
  --sun: #ffd85f;
  --shadow: 0 22px 55px rgba(10, 10, 40, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 157, 102, 0.35) 0 23%, transparent 47%),
    radial-gradient(circle at 88% 8%, rgba(53, 227, 196, 0.28) 0 22%, transparent 46%),
    radial-gradient(circle at 64% 86%, rgba(255, 216, 95, 0.24) 0 20%, transparent 44%),
    linear-gradient(158deg, #12142d 0%, #1c2450 42%, #28356a 100%);
  background-size: 220% 220%, 240% 240%, 220% 220%, 260% 260%;
  color: var(--text);
  font-family: "Bricolage Grotesque", sans-serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 42vw;
  height: 42vw;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  filter: blur(46px);
  opacity: 0.34;
}

body::before {
  top: -16vw;
  right: -12vw;
  background: radial-gradient(circle, rgba(53, 227, 196, 0.8) 0, rgba(53, 227, 196, 0) 62%);
}

body::after {
  bottom: -18vw;
  left: -14vw;
  background: radial-gradient(circle, rgba(255, 157, 102, 0.8) 0, rgba(255, 157, 102, 0) 62%);
}

.grain {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.075) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
  opacity: 0.07;
  pointer-events: none;
  z-index: 1;
}

main {
  position: relative;
  z-index: 2;
  max-width: 1140px;
  margin: 0 auto;
  padding: 2.2rem 1.2rem 3rem;
  text-align: center;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.brand {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.13em;
  font-size: 0.8rem;
  color: var(--sun);
}

.mail-link {
  color: #e8edf8;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.mail-link:hover {
  color: var(--text);
  border-color: var(--text);
}

.hero {
  margin-bottom: 2.5rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--sun);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
}

h1,
h2 {
  margin: 0;
  line-height: 1.05;
  font-family: "Newsreader", serif;
  font-weight: 500;
}

h1 {
  max-width: 14ch;
  margin-inline: auto;
  font-size: clamp(2.3rem, 6.3vw, 5rem);
  background: linear-gradient(122deg, #fff8ee 0%, #ffd85f 35%, #9df9e7 70%, #fff8ee 100%);
  background-size: 180% 180%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: titleShimmer 7.5s ease-in-out infinite;
}

.hero-copy {
  max-width: 57ch;
  margin: 1.2rem auto 0;
  color: var(--muted);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
  justify-content: center;
}

.hero-note {
  margin: 0.95rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.app-previews {
  margin: 3.2rem 0 3.4rem;
}

.app-previews-header {
  max-width: 40rem;
  margin: 0 auto 1.55rem;
}

.app-previews-header h2 {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
}

.app-previews-copy {
  margin: 0.75rem auto 0;
  max-width: 34rem;
  color: var(--muted);
  line-height: 1.6;
}

.app-preview-rail {
  --preview-card-width: clamp(12.5rem, 60vw, 16rem);
  display: flex;
  gap: 0.95rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(1.2rem, calc((100vw - 1140px) / 2 + 1.2rem));
  padding:
    0.45rem
    max(1.2rem, calc((100vw - 1140px) / 2 + 1.2rem))
    1.2rem;
  margin-inline: calc(50% - 50vw);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.app-preview-rail::-webkit-scrollbar {
  display: none;
}

.preview-card {
  position: relative;
  display: block;
  flex: 0 0 var(--preview-card-width);
  width: var(--preview-card-width);
  border-radius: 1.9rem;
  padding: 0.45rem;
  scroll-snap-align: start;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04)),
    rgba(25, 31, 62, 0.78);
  border: 1px solid rgba(216, 222, 240, 0.18);
  box-shadow:
    0 24px 48px rgba(10, 10, 40, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.preview-card:hover {
  transform: translateY(-5px);
  border-color: rgba(184, 255, 105, 0.5);
  box-shadow:
    0 28px 56px rgba(10, 10, 40, 0.48),
    0 0 24px rgba(53, 227, 196, 0.18);
}

.preview-card:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 4px;
}

.preview-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.45rem;
  aspect-ratio: 1206 / 2622;
  object-fit: cover;
  background: rgba(14, 16, 34, 0.78);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.btn:focus-visible,
.mail-link:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(130deg, #ff9d66, #ffd85f 45%, #35e3c4 100%);
  background-size: 220% 220%;
  color: #15254a;
  border: none;
  box-shadow: 0 10px 24px rgba(255, 157, 102, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.17) inset;
  animation: ctaGradientFlow 3.2s ease-in-out infinite;
}

.btn-primary:hover {
  box-shadow: 0 18px 32px rgba(255, 157, 102, 0.35), 0 0 34px rgba(53, 227, 196, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.9rem;
}

.feature-card {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.2rem;
  border-radius: 1.2rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01)),
    var(--card);
  backdrop-filter: blur(7px);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-card h2 {
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  margin-top: 0.32rem;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0.7rem 0 0;
}

.feature-label {
  margin: 0;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #9df9e7;
}

.feature-emoji {
  display: inline-block;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  transform-origin: 50% 55%;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(184, 255, 105, 0.65);
  box-shadow: 0 26px 58px rgba(10, 10, 40, 0.52), 0 0 20px rgba(53, 227, 196, 0.2);
}

.feature-card--timeline:hover .feature-emoji,
.feature-card--timeline:focus-within .feature-emoji {
  animation: emojiCalendarFlip 1s cubic-bezier(0.4, 0, 0.2, 1) 1;
}

.feature-card--household:hover .feature-emoji,
.feature-card--household:focus-within .feature-emoji {
  animation: emojiGroupPulse 1.2s ease-in-out 1;
}

.feature-card--workflow:hover .feature-emoji,
.feature-card--workflow:focus-within .feature-emoji {
  animation: emojiSparkFlash 0.8s ease-in-out 1;
}

.feature-card--health:hover .feature-emoji,
.feature-card--health:focus-within .feature-emoji {
  animation: emojiScaleSwing 1.1s ease-in-out 1;
}

.feature-card--schedule:hover .feature-emoji,
.feature-card--schedule:focus-within .feature-emoji {
  animation: emojiClockTick 1.1s ease-in-out 1;
}

.feature-card--sync:hover .feature-emoji,
.feature-card--sync:focus-within .feature-emoji {
  animation: emojiCloudFloat 1.3s ease-in-out 1;
}

.feature-card.accent {
  background:
    linear-gradient(125deg, rgba(53, 227, 196, 0.18), rgba(255, 157, 102, 0.2), rgba(255, 216, 95, 0.14)),
    var(--card);
}

/* ── How it works steps ── */

.how-steps {
  margin: 3.2rem 0 0;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.2rem;
  border-radius: 1.2rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01)),
    var(--card);
  backdrop-filter: blur(7px);
  box-shadow: var(--shadow);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  font-weight: 800;
  color: #15254a;
  background: linear-gradient(130deg, #ff9d66, #ffd85f 55%, #35e3c4 120%);
  margin-bottom: 0.7rem;
}

.step-card h3 {
  margin: 0;
  font-family: "Newsreader", serif;
  font-weight: 500;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  line-height: 1.15;
}

.step-card p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0.6rem 0 0;
}

.how-steps-close {
  max-width: 52ch;
  margin: 1.4rem auto 0;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Final CTA ── */

.cta-final {
  margin: 3.4rem auto 0;
  max-width: 860px;
  padding: 2rem 1.4rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(184, 255, 105, 0.35);
  background:
    linear-gradient(120deg, rgba(53, 227, 196, 0.12), rgba(255, 157, 102, 0.12), rgba(255, 216, 95, 0.1)),
    rgba(33, 41, 79, 0.6);
  box-shadow: var(--shadow);
}

.cta-final h2 {
  max-width: 22ch;
  margin: 0 auto;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
}

.inline-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 227, 196, 0.45);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.inline-link:hover {
  color: var(--accent-strong);
  border-color: var(--accent-strong);
}

.seo-content {
  margin: 1.3rem auto 0;
  max-width: 860px;
  padding: 1.2rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(184, 255, 105, 0.35);
  background:
    linear-gradient(120deg, rgba(53, 227, 196, 0.1), rgba(255, 216, 95, 0.08)),
    rgba(33, 41, 79, 0.55);
  box-shadow: 0 18px 45px rgba(10, 10, 40, 0.35);
}

.seo-content h2 {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  margin-bottom: 0.55rem;
}

.seo-content p {
  margin: 0.5rem auto 0;
  max-width: 72ch;
  color: var(--muted);
  line-height: 1.6;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes titleShimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes emojiCalendarFlip {
  0% {
    transform: rotateX(0deg) scale(1);
  }
  30% {
    transform: rotateX(45deg) scale(1.08);
  }
  60% {
    transform: rotateX(-20deg) scale(1.04);
  }
  100% {
    transform: rotateX(0deg) scale(1);
  }
}

@keyframes emojiGroupPulse {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.18);
  }
  70% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes emojiSparkFlash {
  0% {
    transform: rotate(0deg) scale(1);
    filter: drop-shadow(0 0 0 rgba(255, 216, 95, 0));
  }
  40% {
    transform: rotate(-14deg) scale(1.2);
    filter: drop-shadow(0 0 14px rgba(255, 216, 95, 0.95));
  }
  70% {
    transform: rotate(12deg) scale(1.1);
    filter: drop-shadow(0 0 10px rgba(255, 157, 102, 0.75));
  }
  100% {
    transform: rotate(0deg) scale(1);
    filter: drop-shadow(0 0 0 rgba(255, 216, 95, 0));
  }
}

@keyframes emojiScaleSwing {
  0% {
    transform: rotate(0deg) translateY(0);
  }
  25% {
    transform: rotate(-12deg) translateY(-2px);
  }
  50% {
    transform: rotate(12deg) translateY(-2px);
  }
  75% {
    transform: rotate(-7deg) translateY(-1px);
  }
  100% {
    transform: rotate(0deg) translateY(0);
  }
}

@keyframes emojiClockTick {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(16deg);
  }
  50% {
    transform: rotate(-16deg);
  }
  75% {
    transform: rotate(10deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

@keyframes emojiCloudFloat {
  0% {
    transform: translateY(0) translateX(0) scale(1);
  }
  35% {
    transform: translateY(-8px) translateX(5px) scale(1.08);
  }
  70% {
    transform: translateY(-4px) translateX(-5px) scale(1.03);
  }
  100% {
    transform: translateY(0) translateX(0) scale(1);
  }
}

@keyframes ctaGradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  h1,
  .feature-emoji,
  .btn-primary {
    animation: none;
    transform: none;
    filter: none;
  }
}

/* ── Legal pages (Privacy, Terms, Impressum) ── */

.legal-container {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
  padding-bottom: 3rem;
}

.legal-container h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0 0 0.4rem;
}

.legal-container .legal-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 2.5rem;
}

.legal-section {
  margin-bottom: 2rem;
}

.legal-section h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sun);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}

.legal-section p,
.legal-section ul {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
  margin: 0 0 0.75rem;
}

.legal-section ul {
  padding-left: 1.4rem;
}

.legal-section li {
  margin-bottom: 0.4rem;
}

.legal-section a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.legal-section a:hover {
  border-color: var(--accent);
}

.legal-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

.legal-generator-note {
  color: var(--muted);
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ── Site footer ── */

.site-footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-links {
  display: inline-flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 860px) {
  .feature-card {
    grid-column: span 12;
  }

  .step-list {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 700px) {
  .app-preview-rail {
    --preview-card-width: clamp(14rem, 34vw, 18rem);
    gap: 1.15rem;
  }
}

@media (min-width: 1100px) {
  .app-preview-rail {
    --preview-card-width: clamp(15rem, 26vw, 19rem);
  }
}
