/* Styles of the static pages (landing page, legal page). A plain file, not inlined: on Railway the project root is
   /app, and Vite's inline-CSS proxy for /index.html clashes with app/index.html there. */
:root { --bg: #f6f7f9; --card: #fff; --text: #1d2330; --dim: #5f6776; --edge: #e2e5ea; --accent: #2563eb; --accent-hover: #1d4fc4; --accent-text: #fff; --fill: var(--accent); --fill-hover: var(--accent-hover); --shade: rgb(0 0 0 / 0.12); }
/* dark: <html data-scheme="dark">, set by site.js from the switch or the system (as in the app) */
:root[data-scheme="dark"] { --bg: #111318; --card: #1a1d24; --text: #e8eaef; --dim: #9aa1ad; --edge: #2a2e37; --accent: #4f86f7; --accent-hover: #6b9bff; --fill: #3466e8; --fill-hover: #2a5bd6; /* white text on --accent would be 3.4:1 */ --shade: rgb(0 0 0 / 0.45); color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; }
main, footer, .top { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); }
/* all languages are in the page; site.js sets <html lang> and only the matching one shows.
   English with data-fallback (the legal text) also stands in for languages that have no own version */
html:not([lang="en"]) [data-l="en"]:not([data-fallback]), html[lang="de"] [data-l="en"],
html:not([lang="de"]) [data-l="de"], html:not([lang="fr"]) [data-l="fr"], html:not([lang="nl"]) [data-l="nl"], html:not([lang="es"]) [data-l="es"] { display: none !important; }

.top { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top-tools { display: flex; align-items: center; gap: 10px; }
/* light/dark: sun or moon for what is shown, then the choice (System/Light/Dark) */
.scheme-switch { display: flex; align-items: center; gap: 4px; padding-left: 10px; border: 1px solid var(--edge); border-radius: 8px; color: var(--dim); cursor: pointer; }
.scheme-switch svg { width: 16px; height: 16px; flex: none; }
:root[data-scheme="dark"] .scheme-switch .sun, :root:not([data-scheme="dark"]) .scheme-switch .moon { display: none; }
.scheme-switch select { font: inherit; font-size: 14px; border: 0; background: transparent; color: var(--text); padding: 4px 8px 4px 2px; cursor: pointer; }
.lang-switch { font: inherit; font-size: 14px; border: 1px solid var(--edge); border-radius: 8px; background: transparent; color: var(--text); padding: 4px 8px; cursor: pointer; }

/* landing page */
.hero { text-align: center; padding: 56px 0 8px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 24px; }
.chips span { font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
h1 { font-size: clamp(42px, 7vw, 76px); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 20px; }
h1 em { font-style: normal; color: var(--accent); }
.lead { color: var(--dim); font-size: clamp(17px, 2vw, 20px); max-width: 680px; margin: 0 auto 28px; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn { display: inline-block; background: var(--fill); color: var(--accent-text); text-decoration: none; font-weight: 650; padding: 14px 26px; border-radius: 12px; box-shadow: 0 8px 24px color-mix(in srgb, var(--fill) 35%, transparent); }
.btn:hover { background: var(--fill-hover); }
.btn.ghost { background: var(--card); color: var(--text); border: 1px solid var(--edge); box-shadow: none; }
.btn.ghost:hover { border-color: var(--accent); }
.note { font-size: 14px; color: var(--dim); margin: 14px 0 0; }
.stage-video { position: relative; margin: 48px auto 0; max-width: 1040px; }
.stage-video::before { content: ''; position: absolute; inset: 8% 4% -4%; background: var(--accent); filter: blur(60px); opacity: 0.25; z-index: -1; }
video.demo { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--edge); background: #0b1020; box-shadow: 0 24px 60px var(--shade); }
.formats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; list-style: none; padding: 0; margin: 40px 0 0; color: var(--dim); font-weight: 650; font-size: 15px; }

figure { margin: 0; }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; }
.zoom img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--edge); box-shadow: 0 18px 44px var(--shade); transition: transform 0.2s; }
.zoom:hover img { transform: translateY(-3px); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
main h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 16px; }
.feature { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 56px; align-items: center; margin-top: 120px; }
.feature.flip { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); }
.feature.flip .copy { order: 2; }
.feature p { color: var(--dim); font-size: 17px; margin: 0; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 17px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--fill); color: var(--accent-text); }
.pair { position: relative; padding: 0 0 18% 0; }
.pair .zoom:first-child { width: 82%; }
.pair .zoom:last-child { position: absolute; width: 58%; right: 0; bottom: 0; }
.theme-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.theme-wall img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 10px 28px var(--shade); transition: transform .2s; }
.theme-wall img:nth-child(even) { transform: translateY(18px); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 120px; }
.tile { background: var(--card); border: 1px solid var(--edge); border-radius: 20px; padding: 32px 32px 0; overflow: hidden; display: flex; flex-direction: column; }
.tile p:not(.kicker) { color: var(--dim); margin: 0 0 24px; }
.tile .zoom { margin-top: auto; }
.tile .zoom img { border-radius: 12px 12px 0 0; border-bottom: 0; }
.phone { justify-self: center; width: min(300px, 70vw); padding: 12px; border-radius: 44px; background: #111318; box-shadow: 0 30px 60px var(--shade), inset 0 0 0 2px #2a2e37; }
.phone img { display: block; width: 100%; height: auto; border-radius: 32px; }
.privacy { margin-top: 120px; padding: 48px; border-radius: 24px; background: linear-gradient(135deg, #0b1020, #1e2a6b 55%, #3b2a8f); color: #fff; text-align: center; }
.privacy h2 { color: #fff; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; text-align: left; }
.trio b { font-size: 17px; }
.trio p { margin: 6px 0 0; color: #c7d2fe; font-size: 15px; }
.story { margin-top: 96px; max-width: 720px; }
.story h2 { font-size: 24px; }
.story p { margin: 0 0 12px; color: var(--dim); }
.heart { color: #ff5a7a; }
.final { text-align: center; margin-top: 96px; }

/* screenshot detail view */
dialog.viewer { width: min(1400px, 100vw - 32px); max-width: none; max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--edge); border-radius: 14px; background: var(--card); color: var(--text); box-shadow: 0 24px 64px rgb(0 0 0 / 0.5); }
dialog.viewer::backdrop { background: rgb(10 12 16 / 0.75); }
.viewer img { display: block; width: 100%; height: auto; max-height: calc(100vh - 120px); object-fit: contain; background: var(--bg); }
.viewer .bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.viewer .bar p { flex: 1; margin: 0; font-size: 15px; color: var(--dim); }
.viewer .bar button { font: inherit; font-size: 15px; min-width: 40px; height: 36px; border: 1px solid var(--edge); border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; }
.viewer .bar button:hover { border-color: var(--accent); color: var(--accent); }

/* legal page */
.legal { max-width: 760px; padding-bottom: 16px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); }
.legal h2 { font-size: 20px; letter-spacing: 0; text-transform: none; color: var(--text); margin: 40px 0 8px; }
.legal h3 { font-size: 16px; margin: 24px 0 4px; }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 6px; }
.legal code { font-size: 0.9em; }
.toc { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 8px 0 0; }
.muted { color: var(--dim); font-size: 14px; }
.rtl { unicode-bidi: bidi-override; direction: rtl; }

footer { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; border-top: 1px solid var(--edge); margin-top: 64px; padding-top: 20px; padding-bottom: 32px; font-size: 14px; color: var(--dim); }
footer .tm { flex-basis: 100%; margin: 8px 0 0; font-size: 12.5px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--text); }

@media (max-width: 860px) {
  .feature, .feature.flip, .duo, .trio { grid-template-columns: 1fr; gap: 28px; }
  .feature { margin-top: 80px; }
  .feature.flip .copy { order: 0; }
  .privacy { padding: 32px 24px; }
}
@media (prefers-reduced-motion: reduce) { .zoom img, .theme-wall img { transition: none; } }
@media (pointer: coarse) {
  footer a { display: inline-block; padding: 10px 0; }
}
