/* Xendor homepage (since 2026-10-28, redesign 2026-10-30). Same
   colours as the app (frontend/src/index.css), fonts served locally — no
   external requests, no cookies. Research 2026-10-30 (Zammad, Help Scout,
   Linear, Freshdesk): split hero with a large product picture, trust badges,
   fact strip, alternating feature rows with real screenshots, light content
   sections between dark ones, FAQ and a strong closing call to action. */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(fonts/inter-latin-700-normal.woff2) format('woff2'); }

:root {
  --bg: rgb(11 13 19);
  --surface: rgb(26 29 39);
  --primary: rgb(79 110 247);
  --primary-soft: rgb(79 110 247 / 0.14);
  --violet: rgb(134 59 255);
  --cyan: rgb(71 191 255);
  --success: rgb(34 197 94);
  --fg: rgb(241 245 249);
  --muted: rgb(160 174 196);
  --line: rgb(255 255 255 / 0.09);
  /* light sections */
  --l-bg: rgb(246 247 251);
  --l-fg: rgb(15 23 42);
  --l-muted: rgb(71 85 105);
  --l-line: rgb(209 217 224);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
header.top { position: sticky; top: 0; z-index: 20; background: rgb(11 13 19 / 0.8); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; text-decoration: none; }
.brand img { width: 28px; height: 28px; }
nav { display: flex; align-items: center; }
nav a { margin-left: 26px; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
nav a:hover { color: var(--fg); }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; padding: 12px 22px; font-weight: 600; font-size: 15px; text-decoration: none; transition: background .15s, transform .15s, box-shadow .15s; }
.btn.primary { background: var(--primary); color: #fff; box-shadow: 0 8px 24px rgb(79 110 247 / 0.35); }
.btn.primary:hover { background: rgb(96 125 250); transform: translateY(-1px); }
.btn.ghost { border: 1px solid rgb(255 255 255 / 0.18); color: var(--fg); }
.btn.ghost:hover { background: rgb(255 255 255 / 0.06); }
.btn.white { background: #fff; color: rgb(30 27 75); }
.btn.white:hover { transform: translateY(-1px); }
.btn.big { padding: 15px 26px; font-size: 16px; }
nav .btn { margin-left: 22px; padding: 9px 16px; font-size: 14px; color: #fff; box-shadow: none; }
nav .btn.ghost { margin-left: 22px; }
nav .btn.ghost + .btn { margin-left: 10px; }
/* DE | EN switch (same look as the app's login page) */
.lang { display: inline-flex; margin-left: 26px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.lang a { margin: 0; padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.lang a.active { background: var(--primary-soft); color: rgb(165 180 252); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 84px 0 96px; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto auto; width: 900px; height: 900px; background: radial-gradient(closest-side, rgb(134 59 255 / 0.30), transparent 70%); pointer-events: none; }
.hero::after { content: ''; position: absolute; left: -200px; top: 200px; width: 700px; height: 700px; background: radial-gradient(closest-side, rgb(79 110 247 / 0.22), transparent 70%); pointer-events: none; }
.hero .grid2 { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1.15fr; gap: 48px; align-items: center; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.badge { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgb(255 255 255 / 0.16); border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 600; color: rgb(226 232 240); background: rgb(255 255 255 / 0.04); }
.badge svg { width: 15px; height: 15px; }
.badge.beta { border-color: rgb(134 59 255 / 0.55); color: rgb(216 196 255); background: rgb(134 59 255 / 0.14); }
h1 { font-size: clamp(34px, 4vw, 52px); hyphens: manual; line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 22px; font-weight: 700; }
.grad { background: linear-gradient(92deg, rgb(129 152 255), rgb(178 128 255) 55%, rgb(110 207 255)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 19px; line-height: 1.6; margin: 0 0 32px; max-width: 540px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: rgb(203 213 225); font-size: 14px; }
.checks li { display: flex; align-items: center; gap: 7px; }
.checks svg { width: 16px; height: 16px; color: var(--success); flex: none; }
.stage { position: relative; }
.frame { border-radius: 14px; border: 1px solid rgb(255 255 255 / 0.14); background: rgb(26 29 39); box-shadow: 0 40px 100px rgb(0 0 0 / 0.55), 0 0 0 6px rgb(255 255 255 / 0.03); overflow: hidden; }
.frame .bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: rgb(20 23 32); }
.frame .bar i { width: 10px; height: 10px; border-radius: 50%; background: rgb(255 255 255 / 0.16); }
.frame img { display: block; width: 100%; height: auto; }
.phone { position: absolute; right: -18px; bottom: -48px; width: 27%; min-width: 130px; border-radius: 26px; border: 6px solid rgb(38 42 56); box-shadow: 0 30px 70px rgb(0 0 0 / 0.6); overflow: hidden; background: #000; }
.phone img { display: block; width: 100%; height: auto; }

/* Fact strip */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 0.02); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 26px 20px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact strong { display: block; font-size: 22px; letter-spacing: -0.01em; }
.fact span { color: var(--muted); font-size: 14px; }

/* Sections */
section { padding: 104px 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgb(129 152 255); margin-bottom: 14px; }
section h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 16px; }
section .sub { color: var(--muted); font-size: 18px; margin: 0 0 56px; max-width: 680px; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

/* Light sections */
.light { background: var(--l-bg); color: var(--l-fg); }
.light .sub, .light p { color: var(--l-muted); }
.light .eyebrow { color: rgb(67 56 202); }
.white-bg { background: #fff; }

/* Feature rows */
.row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: center; margin-top: 96px; }
.row:first-of-type { margin-top: 0; }
.row.flip .text { order: 2; }
.row h3 { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 14px; }
.row p { font-size: 17px; margin: 0 0 20px; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.tag i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgb(79 110 247 / 0.12); }
.tag svg { width: 17px; height: 17px; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.list li { display: flex; gap: 10px; font-size: 15.5px; color: var(--l-fg); }
.list svg { width: 20px; height: 20px; color: rgb(21 128 61); flex: none; margin-top: 2px; }
.light .frame { border-color: rgb(15 23 42 / 0.12); box-shadow: 0 30px 70px rgb(15 23 42 / 0.18), 0 0 0 6px rgb(15 23 42 / 0.03); }
.shot-wrap { position: relative; }
.shot-wrap::before { content: ''; position: absolute; inset: 8% -6% -8% 6%; border-radius: 24px; background: linear-gradient(135deg, rgb(79 110 247 / 0.22), rgb(134 59 255 / 0.18) 50%, rgb(71 191 255 / 0.18)); z-index: 0; }
.row.flip .shot-wrap::before { inset: 8% 6% -8% -6%; }
.shot-wrap .frame { position: relative; z-index: 1; }

/* Tile grid */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tiles.three { grid-template-columns: repeat(3, 1fr); }
.pilot-cta { display: flex; justify-content: center; margin-top: 32px; }
.pilot-note { text-align: center; margin: 14px 0 0; font-size: 15px; }
.tile { background: #fff; border: 1px solid var(--l-line); border-radius: 14px; padding: 22px; transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgb(15 23 42 / 0.08); }
.tile .ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; margin-bottom: 14px; color: #fff; }
.tile .ic svg { width: 20px; height: 20px; }
.tile h4 { margin: 0 0 6px; font-size: 16px; color: var(--l-fg); }
.tile p { margin: 0; font-size: 14.5px; line-height: 1.5; }
.c1 { background: linear-gradient(135deg, rgb(79 110 247), rgb(99 102 241)); }
.c2 { background: linear-gradient(135deg, rgb(134 59 255), rgb(168 85 247)); }
.c3 { background: linear-gradient(135deg, rgb(14 165 233), rgb(71 191 255)); }
.c4 { background: linear-gradient(135deg, rgb(16 185 129), rgb(34 197 94)); }
.c5 { background: linear-gradient(135deg, rgb(245 158 11), rgb(249 115 22)); }
.c6 { background: linear-gradient(135deg, rgb(236 72 153), rgb(244 63 94)); }

/* Security (dark) */
.security { position: relative; overflow: hidden; }
.security::before { content: ''; position: absolute; right: -300px; top: -200px; width: 800px; height: 800px; background: radial-gradient(closest-side, rgb(79 110 247 / 0.2), transparent 70%); }
.sec-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.mask { border-radius: 16px; border: 1px solid var(--line); background: rgb(20 23 32); padding: 22px; font-size: 14.5px; box-shadow: 0 30px 70px rgb(0 0 0 / 0.45); }
.mask .lbl { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.mask .box { border-radius: 10px; padding: 14px 16px; line-height: 1.7; background: rgb(255 255 255 / 0.03); border: 1px solid var(--line); }
.mask .arrow { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: rgb(134 239 172); font-size: 13px; font-weight: 600; }
.mask .arrow svg { width: 18px; height: 18px; }
.pii { background: rgb(239 68 68 / 0.16); color: rgb(252 165 165); border-radius: 5px; padding: 1px 6px; }
.ph { background: rgb(34 197 94 / 0.16); color: rgb(134 239 172); border-radius: 5px; padding: 1px 6px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; margin-top: 36px; }
.trust div { display: flex; gap: 14px; }
.trust .ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: rgb(255 255 255 / 0.06); border: 1px solid var(--line); color: rgb(165 180 252); }
.trust .ic svg { width: 20px; height: 20px; }
.trust strong { display: block; margin-bottom: 3px; }
.trust span { color: var(--muted); font-size: 15px; line-height: 1.5; }

/* Themes showcase */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.duo figure { margin: 0; }
.duo figcaption { margin-top: 12px; font-size: 14px; color: var(--l-muted); text-align: center; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; background: #fff; border: 1px solid var(--l-line); border-radius: 16px; padding: 28px; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin-bottom: 16px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--primary), var(--violet)); }
.step h4 { margin: 0 0 6px; font-size: 18px; color: var(--l-fg); }
.step p { margin: 0; font-size: 15px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--l-line); padding: 6px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; font-weight: 600; font-size: 17px; color: var(--l-fg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; font-weight: 400; color: var(--primary); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 18px; font-size: 16px; }

/* Closing call to action */
.final { padding: 0 0 104px; background: var(--l-bg); }
.final .card { position: relative; overflow: hidden; border-radius: 24px; padding: 72px 40px; text-align: center; color: #fff; background: linear-gradient(120deg, rgb(55 48 163), rgb(79 110 247) 45%, rgb(134 59 255)); }
.final .card::after { content: ''; position: absolute; right: -120px; top: -160px; width: 480px; height: 480px; border-radius: 50%; background: rgb(255 255 255 / 0.08); }
.final h2 { position: relative; color: #fff; margin-bottom: 14px; }
.final p { position: relative; color: rgb(224 231 255); font-size: 18px; max-width: 620px; margin: 0 auto 32px; }
.final .cta { position: relative; justify-content: center; }
.final .btn.ghost { border-color: rgb(255 255 255 / 0.4); color: #fff; }

footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--muted); font-size: 14px; }
footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
footer h5 { margin: 0 0 12px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg); }
footer .cols a { display: block; margin: 0 0 8px; color: var(--muted); text-decoration: none; }
footer .cols a:hover { color: var(--fg); }
footer .about p { margin: 12px 0 0; max-width: 320px; line-height: 1.6; }
footer .base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
/* Legal pages keep the simple one-line footer */
footer .wrap > span a { color: var(--muted); text-decoration: none; margin-left: 20px; }
footer .wrap > span a:hover { color: var(--fg); }
footer .wrap:not(:has(.cols)) { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Scroll-in animation (only when JS is on and motion is welcome) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Legal pages */
.legal { max-width: 760px; padding: 56px 24px 80px; }
.legal h1 { font-size: 34px; text-align: left; margin: 0 0 28px; }
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal p, .legal li { color: rgb(203 213 225); }
.legal a { color: rgb(165 180 252); }
/* Missing details — must be filled in before the page goes live. */
.todo { background: rgb(245 158 11 / 0.18); color: rgb(251 191 36); border-radius: 4px; padding: 0 4px; font-weight: 600; }

@media (max-width: 1020px) {
  .hero .grid2, .sec-grid, .row { grid-template-columns: 1fr; gap: 40px; }
  .row.flip .text { order: 0; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .facts .wrap { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  footer .cols { grid-template-columns: 1fr 1fr; }
  .phone { right: 8px; }
}
@media (max-width: 760px) {
  nav > a:not(.btn), nav .btn.ghost { display: none; }
  .lang { margin-left: 0; }
  nav .btn { margin-left: 10px; }
  .hero { padding: 48px 0 80px; }
  section { padding: 72px 0; }
  .row { margin-top: 72px; }
  .tiles, .tiles.three, .steps, .duo, .trust { grid-template-columns: 1fr; }
  .final .card { padding: 52px 22px; }
  .fact { padding: 20px 14px; }
  .fact strong { font-size: 19px; }
  .brand span { display: none; }
  footer .wrap > span a { margin: 0 16px 0 0; }
}

/* Feature pages (since 2026-10-31, deploy/feature-pages/build.js) */
.fp-hero { padding: 56px 0 72px; }
.fp-hero h1 { font-size: clamp(30px, 3.4vw, 44px); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.row.fp-single { grid-template-columns: 1fr; max-width: 760px; margin-left: auto; margin-right: auto; }
.tiles.fp-more { grid-template-columns: repeat(4, 1fr); }
a.tile { display: flex; align-items: center; gap: 12px; text-decoration: none; }
a.tile .ic { margin-bottom: 0; flex: none; }
a.tile h4 { margin: 0; }
a.tile:hover { transform: translateY(-2px); }
a.tile-link { text-decoration: none; color: inherit; display: block; }
a.tile-link .more { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: rgb(67 56 202); }
@media (max-width: 1020px) { .tiles.fp-more { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .tiles.fp-more { grid-template-columns: 1fr; } }

/* Click-to-zoom for screenshots (since 2026-10-31, site.js) */
.zoomable { position: relative; cursor: zoom-in; }
.zoomable:focus-visible { outline: 3px solid rgb(129 152 255); outline-offset: 4px; }
.zoom-hint { position: absolute; right: 12px; bottom: 12px; padding: 6px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #fff; background: rgb(15 17 26 / 0.78); border: 1px solid rgb(255 255 255 / 0.18); opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; pointer-events: none; }
.zoomable:hover .zoom-hint, .zoomable:focus-visible .zoom-hint { opacity: 1; transform: none; }
@media (hover: none) { .zoom-hint { opacity: 1; transform: none; } }
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; background: rgb(5 7 12 / 0.9); cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 30px 90px rgb(0 0 0 / 0.6); }
.lightbox-close { position: absolute; top: 14px; right: 18px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.25); background: rgb(255 255 255 / 0.08); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
