/* Marketing site: layout chrome, landing sections, the two phones and their demo.
   Builds on the tokens in app.css. Performance rules: no filter: blur(), no backdrop-filter on big
   surfaces, no preserve-3d, no blurred box-shadows on moving elements, no mask-image on the marquee. */

.site { background: var(--bg); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: #1a1205; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.site-head { position: sticky; top: 0; z-index: 40; background: rgb(20 17 15 / .92); border-bottom: 1px solid var(--line); }
.site-nav { max-width: 1120px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.05rem; }
.site-brand__mark { width: 30px; height: 30px; }
.site-nav__links { display: none; gap: 22px; margin-left: 18px; }
.site-nav__links a { color: var(--muted); text-decoration: none; font-weight: 500; padding: 8px 0; }
.site-nav__links a:hover { color: var(--text); }
.site-nav__cta { margin-left: auto; }
.site-foot { max-width: 1120px; margin: 0 auto; padding: 32px 16px 48px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }
.site-foot p { margin: 0; }
.site-foot__links { display: flex; gap: 18px; }
.site-foot__links a { color: var(--muted); }

.legal { max-width: 720px; margin: 0 auto; padding: 48px 16px 64px; }
.legal h1 { font-size: 2rem; margin: 0 0 24px; }
.legal h2 { font-size: 1.15rem; margin: 28px 0 8px; }
.legal p { margin: 0 0 10px; color: #d9d1c5; }
.legal mark { background: var(--amber-dim); color: var(--warn-text); padding: 0 4px; border-radius: 4px; }

.landing { overflow-x: clip; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.section { padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 36px; }
.section--narrow { max-width: 760px; }
.section__head { max-width: 640px; display: flex; flex-direction: column; gap: 10px; }
.section__title { margin: 0; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.section__lead { margin: 0; color: var(--muted); font-size: 1.1rem; }
.icon--ok { color: var(--green); }
.icon--amber { color: var(--amber); }
.icon--muted { color: #7f756a; }
.btn--lg { font-size: 1.05rem; min-height: 52px; padding: 12px 26px; }
.btn--secondary.btn--lg { border-color: #4a423a; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; max-width: 1120px; margin: 0 auto; padding: 48px 16px 40px; display: grid; gap: 40px; align-items: center; }
.hero__glow { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.hero__glow--a { width: 520px; height: 520px; top: -160px; left: -120px; background: radial-gradient(circle at center, rgb(255 176 32 / .22) 0%, transparent 65%); }
.hero__glow--b { width: 560px; height: 560px; right: -200px; bottom: -200px; background: radial-gradient(circle at center, rgb(46 204 113 / .16) 0%, transparent 65%); }
.hero__copy { display: flex; flex-direction: column; gap: 22px; }
.pill-note { margin: 0; display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-elev); font-size: .9rem; font-weight: 600; color: #d9d1c5; }
.pill-note__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgb(46 204 113 / .2); }
.hero__title { margin: 0; font-size: clamp(2.5rem, 6vw, 4.4rem); line-height: 1.02; font-weight: 900; letter-spacing: -.03em; text-wrap: balance; }
.hero__accent { background: linear-gradient(90deg, #ffb020, #ffd36b 50%, #2ecc71); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { margin: 0; font-size: 1.15rem; color: #d9d1c5; max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .95rem; }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }

.hero__stage-wrap { display: flex; flex-direction: column; gap: 18px; align-items: center; }
.platform-switch { display: flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-elev); }
.platform-switch button { font: inherit; font-weight: 600; min-height: 40px; padding: 6px 18px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: background-color .2s, color .2s; }
.platform-switch button[data-active] { background: var(--amber); color: #1a1205; }

.stage { position: relative; width: 100%; max-width: 300px; height: 600px; perspective: 1400px; }
.stage__phone { display: none; width: 280px; margin: 0 auto; }
.stage[data-show="ios"] .stage__phone--ios, .stage[data-show="android"] .stage__phone--android { display: block; }
.phone-wrap { will-change: transform; }
.phone-float { animation: phone-float 6s ease-in-out infinite; }
.phone-float--late { animation-duration: 7s; animation-delay: -2.5s; }
@keyframes phone-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.play { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-elev); }
.play__label { margin: 0; font-size: .85rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.play__buttons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.play__hint { margin: 0; font-size: .85rem; color: var(--muted); text-align: center; }

/* ---------- Phones ---------- */
.phone { position: relative; aspect-ratio: 9 / 19.3; }
.phone::before { content: ''; position: absolute; inset: 8% -8% -10% -8%; z-index: -1; border-radius: 50%; background: radial-gradient(ellipse at 50% 60%, rgb(0 0 0 / .55) 0%, rgb(0 0 0 / .22) 45%, transparent 72%); }
.phone__screen { position: relative; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); }
.phone--ios { padding: 11px; border-radius: 3.4rem; background: linear-gradient(160deg, #4a4a4d, #1c1c1e 40%, #3a3a3d); }
.phone--ios .phone__screen { border-radius: 2.7rem; box-shadow: 0 0 0 2px #000 inset; }
.phone__island { position: absolute; top: 12px; left: 50%; z-index: 20; width: 30%; height: 28px; transform: translateX(-50%); border-radius: 999px; background: #000; }
.phone--ios::before { content: ''; }
.phone--ios .phone__side { display: none; }
.phone--android { padding: 8px; border-radius: 2.6rem; background: linear-gradient(160deg, #3c3c40, #141416 45%, #2c2c30); }
.phone--android .phone__screen { border-radius: 2.1rem; }
.phone__punch { position: absolute; top: 11px; left: 50%; z-index: 20; width: 14px; height: 14px; transform: translateX(-50%); border-radius: 50%; background: #000; box-shadow: 0 0 0 2px #1a1a1c; }
.phone__status { position: absolute; top: 0; left: 0; right: 0; z-index: 15; display: flex; justify-content: space-between; align-items: center; padding: 16px 22px 0; font-size: 13px; font-weight: 600; }
.phone__status--android { padding: 10px 20px 0; font-size: 12px; font-weight: 500; }
.phone__status-icons { display: inline-flex; align-items: center; gap: 5px; }
.phone__status-icons svg { width: 14px; height: 14px; }
.phone__status-icons .batt { width: 22px; }
.phone__home { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 110px; height: 5px; border-radius: 999px; background: rgb(255 255 255 / .8); z-index: 25; }
.phone__home--android { width: 90px; height: 4px; background: rgb(255 255 255 / .6); }

/* The pager page inside the phone: every state change is a CSS transition keyed off data-state on .stage */
.demo-page { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 58px 14px 30px; text-align: center; transition: background-color .4s; }
.demo-page__eyebrow { margin: 0; color: var(--amber); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 10px; }
.demo-page__sub { margin: -6px 0 0; color: var(--muted); font-size: 11px; }
.demo-ring { --size: 170px; position: relative; width: var(--size); height: var(--size); display: grid; place-items: center; margin-top: 6px; }
.demo-led { --r: calc(var(--size) / 2 - 7px); position: absolute; top: 50%; left: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--grey); transform: rotate(calc(var(--i) * 30deg)) translateY(calc(var(--r) * -1)); transition: background-color .3s; }
.demo-number { font-size: 66px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.03em; transition: color .3s; }
.demo-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--amber-dim); color: var(--amber); background: var(--bg-card); transition: color .3s, border-color .3s; }
.demo-chip__icon { width: 14px; height: 14px; }
.demo-chip__icon--ready { display: none; }
.demo-banner { width: 100%; padding: 10px; border-radius: 12px; background: var(--green); color: #052e16; font-size: 15px; font-weight: 800; opacity: 0; transform: scale(.9); transition: opacity .3s, transform .3s; }
.demo-push { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-card); display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--muted); text-align: left; }
.demo-push__ok { color: var(--ok-text); font-weight: 700; }

.stage[data-state="preparing"] .demo-led { animation: chase 1.2s linear infinite; animation-delay: calc(var(--i) * -100ms); }
.stage[data-state="ready"] .demo-led, .stage[data-state="ready-locked"] .demo-led { background: var(--green); animation: demo-pulse 1s ease-in-out infinite; }
@keyframes demo-pulse { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
.stage[data-state="ready"] .demo-number, .stage[data-state="ready-locked"] .demo-number { color: var(--green); }
.stage[data-state="ready"] .demo-chip, .stage[data-state="ready-locked"] .demo-chip { color: var(--green); border-color: var(--green-dim); }
.stage[data-state="ready"] .demo-chip__icon--preparing, .stage[data-state="ready-locked"] .demo-chip__icon--preparing { display: none; }
.stage[data-state="ready"] .demo-chip__icon--ready, .stage[data-state="ready-locked"] .demo-chip__icon--ready { display: block; }
.stage[data-state="ready"] .demo-banner { opacity: 1; transform: none; }
.stage[data-state="ready"] .demo-page { background: var(--green-dim); }
.stage[data-state="collected"] .demo-led { background: var(--grey); animation: none; }
.stage[data-state="collected"] .demo-number, .stage[data-state="collected"] .demo-chip { color: var(--muted); border-color: var(--line); }

/* Lock screen: slides over the page when the guest pockets the phone; the notification drops in on "Fertig" */
.lock { position: absolute; inset: 0; z-index: 12; display: flex; flex-direction: column; align-items: center; padding-top: 70px; color: #fff; background: linear-gradient(180deg, #1b2a4a 0%, #0f1627 55%, #090c14 100%); opacity: 0; transform: translateY(6%); transition: opacity .45s, transform .45s cubic-bezier(.22, 1, .36, 1); pointer-events: none; }
.lock--android { background: linear-gradient(180deg, #2a1f3d 0%, #121018 60%, #0a0a0c 100%); }
.lock__date { margin: 0; font-size: 13px; font-weight: 600; opacity: .85; }
.lock__time { margin: 0; font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.lock__time--android { font-size: 58px; }
.lock__note { position: absolute; left: 10px; right: 10px; top: 190px; display: flex; gap: 10px; padding: 10px 12px; border-radius: 18px; background: rgb(255 255 255 / .18); border: 1px solid rgb(255 255 255 / .12); opacity: 0; transform: translateY(-14px); transition: opacity .4s, transform .5s cubic-bezier(.22, 1, .36, 1); text-align: left; }
.lock__note--android { background: #fff; color: #1b1b1f; border-radius: 22px; top: 150px; }
.lock__note-icon { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px; overflow: hidden; }
.lock__note-icon--android { border-radius: 50%; }
.lock__note-icon svg { width: 100%; height: 100%; display: block; }
.lock__note-text { display: flex; flex-direction: column; font-size: 11.5px; line-height: 1.3; min-width: 0; }
.lock__note-head { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; opacity: .8; }
.lock__note-body { opacity: .85; }
.lock__bottom { position: absolute; bottom: 44px; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 40px; }
.lock__bottom--android { bottom: 36px; }
.lock__torch, .lock__cam { width: 40px; height: 40px; border-radius: 50%; background: rgb(255 255 255 / .18); }
.stage[data-state="locked"] .lock, .stage[data-state="ready-locked"] .lock { opacity: 1; transform: none; }
.stage[data-state="ready-locked"] .lock__note { opacity: 1; transform: none; }
.stage[data-state="ready-locked"] .phone-wrap { animation: buzz .5s linear 2; }
@keyframes buzz { 0%, 100% { translate: 0 0; } 20% { translate: -2px 0; } 40% { translate: 2px 0; } 60% { translate: -2px 0; } 80% { translate: 2px 0; } }

/* ---------- Marquee ---------- */
.marquee-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-elev); padding: 16px 0; }
.marquee { position: relative; overflow: hidden; max-width: 1120px; margin: 0 auto; }
.marquee::before, .marquee::after { content: ''; position: absolute; top: 0; bottom: 0; width: 12%; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-elev), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg-elev), transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 24px; padding-right: 24px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.marquee__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Numbers ---------- */
.numbers { padding-top: 56px; padding-bottom: 8px; }
.numbers__grid { margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.numbers__tile { padding: 22px; border-radius: 22px; border: 1px solid var(--line); background: var(--bg-card); display: flex; flex-direction: column; gap: 8px; }
.numbers__value { margin: 0; font-size: 2.6rem; font-weight: 900; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.numbers__label { color: var(--muted); font-size: .95rem; }

/* ---------- Steps ---------- */
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.step { position: relative; padding: 26px; border-radius: 24px; background: var(--bg-card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; transition: transform .25s, border-color .25s; }
.step:hover { transform: translateY(-4px); border-color: var(--amber-dim); }
.step__index { position: absolute; top: 18px; right: 22px; font-size: 3.4rem; font-weight: 900; color: rgb(255 176 32 / .14); line-height: 1; }
.step__icon { width: 50px; height: 50px; border-radius: 16px; background: var(--amber); color: #1a1205; display: grid; place-items: center; }
.step__icon svg { width: 26px; height: 26px; }
.step__title { margin: 0; font-size: 1.25rem; }
.step__text { margin: 0; color: var(--muted); }

/* ---------- Compare + benefits ---------- */
.compare { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--bg-card); }
.compare__row { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 14px 18px; border-top: 1px solid var(--line); }
.compare__row:first-child { border-top: 0; }
.compare__row--head { display: none; }
.compare__row span { display: flex; gap: 8px; align-items: flex-start; color: #d9d1c5; font-size: .95rem; }
.compare__row span .icon { margin-top: .2em; }
.compare__label { font-weight: 700; color: var(--text) !important; }
.compare__us { color: var(--text) !important; font-weight: 600; }
.benefits { display: grid; gap: 14px; }
.benefits__card { padding: 28px; border-radius: 24px; border: 1px solid var(--line); background: var(--bg-card); display: flex; flex-direction: column; gap: 16px; }
.benefits__card--dark { background: linear-gradient(160deg, #2b2218, #1a1512); }
.benefits__card h3 { margin: 0; font-size: 1.4rem; }
.benefits__card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.benefits__card li { display: flex; gap: 10px; align-items: flex-start; color: #d9d1c5; }
.benefits__card li .icon { margin-top: .25em; }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--bg-card); }
.faq__item { border-top: 1px solid var(--line); padding: 18px 20px; }
.faq__item:first-child { border-top: 0; }
.faq__q { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; font-weight: 600; font-size: 1.05rem; }
.faq__q::-webkit-details-marker { display: none; }
.faq__plus { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-elev); color: var(--muted); display: grid; place-items: center; transition: transform .25s, background-color .25s, color .25s; }
.faq__plus svg { width: 16px; height: 16px; }
.faq__item[open] .faq__plus { transform: rotate(45deg); background: var(--amber); color: #1a1205; }
.faq__a { margin: 12px 0 0; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; padding: 40px 28px; border-radius: 32px; background: linear-gradient(160deg, #2b2218, #141110); border: 1px solid var(--amber-dim); display: flex; flex-direction: column; gap: 24px; }
.cta__glow { position: absolute; z-index: -1; width: 420px; height: 420px; top: -200px; right: -160px; border-radius: 50%; background: radial-gradient(circle at center, rgb(255 176 32 / .3) 0%, transparent 65%); }
.cta__copy { display: flex; flex-direction: column; gap: 10px; }
.cta__buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
    .site-nav__links { display: flex; }
    .numbers__grid { grid-template-columns: repeat(4, 1fr); }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .benefits { grid-template-columns: 1fr 1fr; }
    .compare__row { grid-template-columns: 1.1fr 1.4fr 1.4fr; gap: 16px; }
    .compare__row--head { display: grid; background: var(--bg-elev); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
    .compare__row--head span { color: var(--muted); }
    .compare__row--head .compare__us { color: var(--amber) !important; }
    .cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 56px 48px; }
}
@media (min-width: 960px) {
    .hero { grid-template-columns: 1.05fr 1fr; padding-top: 72px; padding-bottom: 64px; }
    .platform-switch { display: none; }
    .stage { max-width: 520px; height: 640px; }
    .stage__phone { display: block; position: absolute; }
    .stage__phone--ios { left: 0; top: 24px; width: 262px; }
    .stage__phone--ios .phone-wrap { rotate: -6deg; }
    .stage__phone--android { right: 12px; top: 0; width: 268px; }
    .stage__phone--android .phone-wrap { rotate: 3deg; }
}

/* ---------- Lite mode + reduced motion ---------- */
.lite .marquee__track, .lite .phone-float, .lite .phone-wrap { animation: none !important; }
.lite .phone__screen, .lite .phone__screen * { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
    .marquee__track, .phone-float, .phone-wrap, .demo-led, .step { animation: none !important; }
    .demo-banner, .lock, .lock__note, .demo-page, .step, .faq__plus { transition: none !important; }
}
