:root {
  --night: #0d0f1f;
  --night-2: #141733;
  --card: #1a1d3b;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef0fb;
  --muted: #a3a7c7;
  --dawn: #ffb37a;
  --dawn-ink: #2a1708;
  --violet: #8f86ff;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--dawn); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header */
.top {
  max-width: 1080px; margin: 0 auto; padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 19px; }
.brand:hover { text-decoration: none; }
.brand svg, .foot-brand svg { width: 30px; height: 19px; fill: none; stroke: var(--dawn); stroke-width: 8; stroke-linecap: round; overflow: visible; }
.top nav { display: flex; gap: 22px; font-size: 15px; }
.top nav a { color: var(--muted); }
.top nav a:hover { color: var(--text); text-decoration: none; }

/* Type */
h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -0.025em; margin: 10px 0 20px; font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 14px; font-weight: 700; text-wrap: balance; }
p { margin: 0 0 14px; }
.eyebrow { color: var(--dawn); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; margin: 0; }
.lede { color: var(--muted); font-size: 19px; max-width: 34em; }
.section-lede { color: var(--muted); max-width: 38em; margin-bottom: 28px; }
.small { font-size: 15px; color: var(--muted); }

/* Phones: the app's own screenshots in a plain, rounded frame */
.phone {
  height: auto;
  border-radius: 50px;
  border: 9px solid #000;
  background: #000;
  box-shadow: 0 0 0 1.5px #4a4d63, 0 0 0 3px #1b1d2b, 0 30px 60px rgba(0, 0, 0, 0.5);
}

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-top: 48px; padding-bottom: 96px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 26px; }
.button {
  background: var(--dawn); color: var(--dawn-ink); font-weight: 650;
  padding: 13px 22px; border-radius: 999px; display: inline-block;
}
.button:hover { text-decoration: none; filter: brightness(1.05); }
.note { color: var(--muted); font-size: 15px; max-width: 22em; }
.hero-shots { position: relative; height: 700px; }
.hero-shots .phone { position: absolute; width: 300px; max-height: 640px; }
.hero-shots .front { right: 40px; top: 0; z-index: 2; }
.hero-shots .back { right: 190px; top: 60px; opacity: 0.5; transform: scale(0.9); }

/* How it works */
.how { padding-top: 24px; padding-bottom: 96px; }
.chart { margin: 0 0 28px; background: var(--night-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 8px; }
.chart svg { width: 100%; height: auto; }
.chart .grid { stroke: var(--line); stroke-dasharray: 4 6; }
.chart .axis { fill: var(--muted); font-size: 13px; }
.chart .axis.center { text-anchor: middle; }
.chart .axis.end { text-anchor: end; }
.chart .window { fill: rgba(255, 179, 122, 0.12); stroke: rgba(255, 179, 122, 0.35); }
.chart .win-label { fill: var(--dawn); font-size: 13px; font-weight: 600; text-anchor: middle; }
.chart .sleep { fill: none; stroke: url(#line); stroke-width: 4; stroke-linecap: round; }
.chart .dot { fill: #fff; }
.chart .mark { stroke: rgba(255, 255, 255, 0.35); stroke-dasharray: 3 5; }
.chart .mark.faint { stroke: rgba(255, 255, 255, 0.18); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps li { counter-increment: s; color: var(--muted); }
.steps li::before { content: counter(s); display: block; color: var(--dawn); font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.steps b { color: var(--text); display: block; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 300px 1fr; gap: 72px; align-items: center; padding-top: 32px; padding-bottom: 64px; }
.feature .phone { width: 300px; height: 470px; object-fit: cover; object-position: top; border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.feature p { color: var(--muted); max-width: 30em; }
.feature.flip { grid-template-columns: 1fr 300px; }
.feature.flip .phone { order: 2; }

/* Watch */
.watch { padding-top: 56px; padding-bottom: 96px; }
.watches { display: flex; gap: 36px; flex-wrap: wrap; }
.watch-dev { position: relative; width: 190px; padding: 10px; border-radius: 48px; background: #000; box-shadow: 0 0 0 2px #4a4d63, 0 0 0 4px #1b1d2b, 0 24px 48px rgba(0, 0, 0, 0.45); }
.watch-dev::after { content: ""; position: absolute; right: -9px; top: 26%; width: 6px; height: 34px; border-radius: 3px; background: linear-gradient(90deg, #3a3d52, #6a6d85); }
.watch-dev img { width: 100%; height: auto; border-radius: 38px; }

/* Privacy */
.privacy { padding-bottom: 96px; }
.facts { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.facts li { background: var(--night-2); border: 1px solid var(--line); border-radius: 18px; padding: 18px; color: var(--muted); }
.facts b { color: var(--text); display: block; margin-bottom: 4px; }

/* FAQ */
.faq { padding-bottom: 96px; max-width: 760px; }
details { border-top: 1px solid var(--line); padding: 16px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Footer */
footer { border-top: 1px solid var(--line); padding-top: 28px; padding-bottom: 48px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 15px; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer nav a { color: var(--muted); }

/* Text pages (privacy, terms, support, impressum) */
.doc { max-width: 720px; padding-top: 24px; padding-bottom: 80px; }
.doc h1 { font-size: clamp(32px, 4.5vw, 44px); }
.doc h2 { font-size: 22px; margin-top: 34px; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--text); }
.doc .updated { font-size: 15px; }

@media (max-width: 860px) {
  .top nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 16px; padding-bottom: 64px; }
  .hero-shots { height: 600px; }
  .hero-shots .phone { width: 240px; }
  .hero-shots .front { right: auto; left: 50%; transform: translateX(-28%); }
  .hero-shots .back { right: auto; left: 50%; transform: translateX(-88%) scale(0.92); }
  .steps, .facts { grid-template-columns: 1fr; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; padding-bottom: 48px; }
  .feature .phone, .feature.flip .phone { order: 0; width: 260px; height: 400px; margin: 0 auto; }
  .watch-dev { width: calc(50% - 18px); }
}

/* FAQ: answers slide open instead of popping */
:root { interpolate-size: allow-keywords; }
details::details-content { block-size: 0; overflow: hidden; opacity: 0; transition: block-size 0.4s ease, opacity 0.4s ease, content-visibility 0.4s allow-discrete; }
details[open]::details-content { block-size: auto; opacity: 1; }
summary::after { transition: transform 0.3s ease; }
details[open] summary::after { content: "+"; transform: rotate(45deg); }

/* Headings rise in as they scroll into view (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(18px); filter: blur(4px); transition: opacity 1.2s ease, transform 1.2s cubic-bezier(.2,.7,.2,1), filter 1.2s ease; }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  details::details-content { transition: none; }
}

/* Footer sits at the bottom even on short pages */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
body > footer { width: 100%; }
body > header { width: 100%; }

/* Device shell: screenshot inside, Dynamic Island drawn on top so every phone has one */
.phone { position: relative; overflow: hidden; }
.phone img, .phone video { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 41px; }
.phone::before { content: ""; position: absolute; z-index: 1; top: 2.4%; left: 50%; transform: translateX(-50%); width: 30%; aspect-ratio: 126 / 37; max-height: 30px; border-radius: 999px; background: #000; }
.hero-shots .phone { max-height: 640px; }
.feature .phone img, .phone video { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

/* Features play in as they scroll into view */
.js .rise { opacity: 0; transform: translateY(40px) scale(0.97); transition: opacity 0.9s ease, transform 1s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .rise.in { opacity: 1; transform: none; }
.js .feature.flip .phone.rise { transform: translateX(40px) scale(0.97); }
.js .feature:not(.flip) .phone.rise { transform: translateX(-40px) scale(0.97); }
.js .feature .phone.rise.in { transform: none; }
/* Chart: the night draws itself, then the window lights and the dot wakes */
.js .chart .sleep { stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 4.5s cubic-bezier(.45,0,.25,1); }
.js .chart .window, .js .chart .win-label { opacity: 0; transition: opacity 1.4s ease 3s; }
.js .chart .dot { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform 0.5s cubic-bezier(.3,1.5,.5,1) 4.3s; }
.js .chart .mark, .js .chart .axis.end { opacity: 0; transition: opacity 1.2s ease 4.6s; }
.js .chart.in .sleep { stroke-dashoffset: 0; }
.js .chart.in .window, .js .chart.in .win-label, .js .chart.in .mark, .js .chart.in .axis.end { opacity: 1; }
.js .chart.in .dot { transform: scale(1); animation: pulse 3.2s ease-in-out 5.6s infinite; }
@keyframes pulse { 50% { transform: scale(1.3); } }
@media (prefers-reduced-motion: reduce) {
  .js .rise, .js .chart * { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; stroke-dashoffset: 0 !important; }
}
.phone video { display: block; }
.feature .phone video { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
footer .tm { flex-basis: 100%; margin: 4px 0 0; font-size: 12.5px; color: rgba(163, 167, 199, 0.6); }

/* Never let anything push the page sideways on phones */
html, body { overflow-x: clip; max-width: 100%; overscroll-behavior-x: none; }
