/* ==========================================================================
   2026-10-27 redesign - start page with four products + one page per product.
   Builds on site.css (same tokens, fonts, buttons). Mock-ups are pure CSS.
   ========================================================================== */

/* ---------- show one thing at a time (only with script; without it all is shown) ---------- */
html.js .pview { display: none; }
html.js .pview.open { display: block; animation: pv-in .45s cubic-bezier(.2,.7,.2,1); }
html.js body.in-view #landing { display: none; }
@keyframes pv-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* product colours */
.pc-ls   { --a1: #4f46e5; --a2: #818cf8; --a-l: #eef2ff; }
.pc-rs   { --a1: #0891b2; --a2: #22d3ee; --a-l: #ecfeff; }
.pc-cam  { --a1: #059669; --a2: #34d399; --a-l: #ecfdf5; }
.pc-chat { --a1: #7c3aed; --a2: #ec4899; --a-l: #f5f3ff; }

/* ---------- hero ---------- */
.home-hero { padding: clamp(56px, 9vw, 120px) 0 clamp(36px, 5vw, 64px); }
.home-title {
  font-size: clamp(2.5rem, 6.4vw, 5.2rem); font-weight: 800; line-height: 1.02;
  letter-spacing: -.035em; margin: 18px auto 22px; max-width: 19ch; color: var(--ink);
}
.grad-anim {
  background: linear-gradient(90deg, #4f46e5, #06b6d4, #10b981, #8b5cf6, #ec4899, #4f46e5);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: grad-move 9s linear infinite;
}
@keyframes grad-move { to { background-position: 300% 0; } }
.home-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--mut); max-width: 640px; margin: 0 auto 30px; line-height: 1.6; }

/* ---------- product grid ---------- */
.home-products { padding: 8px 0 clamp(56px, 8vw, 100px); }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
@media (max-width: 860px) { .pgrid { grid-template-columns: 1fr; } }

.pcard {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s;
}
.pcard::after { /* coloured ring on hover */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s;
}
.pcard:hover, .pcard:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--ink); outline: none; }
.pcard:hover::after, .pcard:focus-visible::after { opacity: 1; }

.pc-visual {
  position: relative; height: 270px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--a2) 38%, transparent), transparent 60%),
    radial-gradient(90% 80% at 0% 100%, color-mix(in srgb, var(--a1) 22%, transparent), transparent 60%),
    var(--a-l);
}
.pc-visual > * { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.pcard:hover .pc-visual > * { transform: scale(1.035) translateY(-4px); }

.pc-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.pc-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--a1); }
.pc-name { font-size: clamp(1.55rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -.02em; margin: 6px 0 8px; }
.pc-text { color: var(--mut); margin: 0 0 14px; line-height: 1.6; }
.pc-chips { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.pc-chips li { font-size: .8rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--a-l); color: var(--a1); }
.pc-more { margin-top: auto; font-weight: 700; color: var(--a1); display: inline-flex; align-items: center; gap: 6px; }
.pc-more i { transition: transform .3s; }
.pcard:hover .pc-more i { transform: translateX(5px); }

.home-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 40px; color: var(--mut); font-weight: 600; font-size: .95rem; }
.home-trust i { color: var(--brand); margin-right: 4px; }

/* ---------- shared mock bits ---------- */
.sk { height: 9px; border-radius: 5px; background: #e2e8f0; margin: 7px 0; }
.sk.w35 { width: 35%; } .sk.w55 { width: 55%; } .sk.w80 { width: 80%; }

/* Livesupport: browser + widget */
.mock-browser { position: relative; width: 82%; max-width: 440px; height: 210px; background: #fff; border-radius: 14px; box-shadow: 0 24px 50px -24px rgba(30,27,75,.45); overflow: hidden; }
.mb-bar { height: 26px; background: #f1f5f9; display: flex; align-items: center; gap: 5px; padding: 0 10px; }
.mb-bar i { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.mb-bar span { margin-left: 10px; font-size: .68rem; color: #64748b; background: #fff; border-radius: 6px; padding: 1px 10px; }
.mb-page { padding: 14px 16px; }
.sk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; width: 52%; }
.sk-grid span { height: 54px; border-radius: 8px; background: #eef2f7; }
.mw-widget {
  position: absolute; right: 12px; bottom: 12px; width: 52%; background: #fff; border-radius: 14px;
  box-shadow: 0 18px 36px -14px rgba(79,70,229,.5); padding: 8px; font-size: .7rem;
  animation: float 6s ease-in-out infinite;
}
.mw-head { background: linear-gradient(135deg, var(--a1), var(--a2)); color: #fff; font-weight: 700; border-radius: 9px; padding: 6px 9px; margin-bottom: 6px; }
.mw-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #4ade80; margin-right: 3px; }
.mw-widget .b { padding: 5px 8px; border-radius: 10px; margin: 4px 0; max-width: 90%; line-height: 1.3; }
.mw-widget .b.in { background: #f1f5f9; }
.mw-widget .b.out { background: var(--a1); color: #fff; margin-left: auto; }
.mw-actions { display: flex; gap: 5px; margin-top: 6px; }
.mw-actions span { flex: 1; text-align: center; padding: 4px 0; border-radius: 7px; background: var(--a-l); color: var(--a1); }

/* Remote: window + desktop */
.mock-remote { position: relative; width: 84%; max-width: 450px; }
.mr-win { background: #0f172a; border-radius: 14px; overflow: hidden; box-shadow: 0 26px 52px -24px rgba(8,51,68,.6); }
.mr-bar { color: #cbd5e1; font-size: .68rem; padding: 6px 10px; display: flex; align-items: center; gap: 6px; background: #1e293b; }
.mr-bar .bi { color: #22d3ee; }
.mr-live { margin-left: auto; color: #4ade80; font-weight: 700; }
.mr-desk { position: relative; height: 172px; background: linear-gradient(135deg, #0e7490, #155e75 40%, #1e3a8a); }
.mr-icons { position: absolute; left: 12px; top: 12px; display: grid; gap: 8px; }
.mr-icons span { width: 22px; height: 22px; border-radius: 6px; background: rgba(255,255,255,.28); }
.mr-dialog { position: absolute; left: 30%; top: 26px; width: 48%; background: #fff; border-radius: 9px; padding: 8px 10px; font-size: .68rem; box-shadow: 0 12px 24px -10px rgba(0,0,0,.5); }
.mr-dt { font-weight: 700; color: #0f172a; }
.mr-btn { margin-top: 6px; display: inline-block; background: var(--a1); color: #fff; font-weight: 700; padding: 2px 10px; border-radius: 6px; }
.mr-cursor { position: absolute; color: #fff; font-size: 1.15rem; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); animation: cursor 5s ease-in-out infinite; }
@keyframes cursor { 0%,100% { left: 22%; top: 70%; } 45% { left: 63%; top: 66%; } 55% { left: 63%; top: 66%; transform: scale(.85); } 65% { transform: none; } }
.mr-task { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: rgba(15,23,42,.75); display: flex; gap: 6px; align-items: center; padding: 0 10px; }
.mr-task span { width: 14px; height: 10px; border-radius: 3px; background: rgba(255,255,255,.4); }
.mr-health { position: absolute; right: -6px; bottom: -14px; background: #fff; border-radius: 12px; padding: 7px 12px; font-size: .72rem; font-weight: 700; color: #0f172a; box-shadow: 0 14px 30px -12px rgba(8,51,68,.45); animation: float 7s ease-in-out infinite; }
.mr-health .ok { color: #16a34a; } .mr-health .warn { color: #f59e0b; margin-left: 6px; }

/* Kamera: phone */
.mock-cam { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.mock-cam .phone { margin-right: 150px; }
.phone { width: 128px; height: 244px; border-radius: 26px; background: #0f172a; padding: 8px; box-shadow: 0 30px 50px -22px rgba(6,78,59,.65); position: relative; transform: rotate(-6deg); }
.ph-notch { position: absolute; top: 9px; left: 50%; width: 40px; height: 8px; margin-left: -20px; border-radius: 6px; background: #0f172a; z-index: 2; }
.ph-screen { position: relative; height: 100%; border-radius: 19px; overflow: hidden; background: linear-gradient(160deg, #475569, #1f2937); }
.ph-live { position: absolute; top: 16px; left: 9px; z-index: 2; background: #dc2626; color: #fff; font-size: .55rem; font-weight: 800; border-radius: 5px; padding: 1px 6px; animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .55; } }
.ph-scene { position: absolute; inset: 0; }
.router { position: absolute; left: 14px; right: 14px; top: 98px; height: 34px; border-radius: 7px; background: linear-gradient(#e5e7eb, #cbd5e1); display: flex; align-items: center; justify-content: space-around; padding: 0 8px; box-shadow: 0 8px 16px -6px rgba(0,0,0,.6); }
.router span { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.router span.bad { background: #ef4444; box-shadow: 0 0 6px #ef4444; animation: blink 1s steps(2) infinite; }
.cable { position: absolute; left: 76px; top: 132px; width: 7px; height: 90px; background: #111827; border-radius: 4px; }
.ph-draw { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph-draw circle, .ph-draw path { fill: none; stroke: #facc15; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 120; stroke-dashoffset: 120; animation: draw 4.5s ease-in-out infinite; }
@keyframes draw { 20%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.ph-tip { position: absolute; left: 8px; right: 8px; bottom: 14px; background: rgba(250,204,21,.95); color: #1f2937; font-size: .6rem; font-weight: 800; text-align: center; border-radius: 8px; padding: 4px; }
.cam-sms { position: absolute; left: calc(50% + 10px); top: 26%; background: #fff; border-radius: 14px 14px 14px 4px; padding: 8px 12px; font-size: .74rem; font-weight: 700; color: #064e3b; box-shadow: 0 14px 28px -12px rgba(6,78,59,.5); max-width: 170px; animation: float 6.5s ease-in-out infinite; }
.cam-sms i { color: var(--a1); }
@media (max-width: 520px) { .mock-cam .phone { margin-right: 110px; } .cam-sms { left: calc(50% - 4px); max-width: 140px; } }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ---------- Direkt Chatt app (mini in the card, big on its page) ---------- */
.dc-app {
  --dc-fs: 11px;
  position: relative; display: grid; grid-template-columns: 34% 1fr;
  width: 90%; max-width: 470px; height: 220px; font-size: var(--dc-fs);
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 26px 52px -24px rgba(76,29,149,.55); text-align: left;
}
.dc-side { background: #1e1b4b; color: #c7d2fe; padding: 8px 6px; overflow: hidden; }
.dc-brand { color: #fff; font-weight: 800; display: flex; align-items: center; gap: 5px; padding: 0 4px 6px; }
.dc-brand .navbar-brand-mark { width: 12px; height: 12px; border-radius: 4px; }
.dc-search { background: rgba(255,255,255,.08); border-radius: 6px; padding: 3px 6px; margin: 0 2px 6px; color: #a5b4fc; }
.dc-conv { display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: 7px; }
.dc-conv.active { background: rgba(255,255,255,.12); }
.dc-ct { min-width: 0; flex: 1; line-height: 1.15; }
.dc-ct b { display: block; color: #fff; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-ct small { display: block; font-size: .85em; color: #a5b4fc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-conv em { font-style: normal; background: #ec4899; color: #fff; font-weight: 800; border-radius: 9px; padding: 0 5px; font-size: .8em; }
.av { width: 2.1em; height: 2.1em; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; font-size: .85em; }
.av.sm { width: 1.9em; height: 1.9em; }
.a1 { background: linear-gradient(135deg, #f472b6, #8b5cf6); } .a2 { background: #0891b2; } .a3 { background: #f59e0b; } .a4 { background: #10b981; } .a5 { background: #6366f1; }
.dc-main { position: relative; display: flex; flex-direction: column; background: #f8fafc; min-width: 0; }
.dc-top { display: flex; align-items: center; gap: 6px; padding: 6px 9px; background: #fff; border-bottom: 1px solid #eef2f7; }
.dc-top .on { color: #16a34a; font-weight: 600; font-size: .9em; }
.dc-icons { margin-left: auto; display: flex; gap: 8px; color: #7c3aed; }
.dc-msgs { flex: 1; padding: 7px 9px; display: flex; flex-direction: column; gap: 5px; overflow: hidden; }
.dc-msgs .m { max-width: 78%; padding: 5px 8px; border-radius: 10px; line-height: 1.3; }
.dc-msgs .m.in { background: #fff; border: 1px solid #eef2f7; border-bottom-left-radius: 3px; }
.dc-msgs .m.out { background: linear-gradient(135deg, #7c3aed, #a855f7); color: #fff; margin-left: auto; border-bottom-right-radius: 3px; }
.dc-msgs .m.imp { border: 1.5px solid #f43f5e; }
.dc-msgs .tag { display: block; color: #e11d48; font-weight: 800; font-size: .85em; }
.dc-msgs .m.file { display: flex; align-items: center; gap: 6px; }
.dc-msgs .m.file i { font-size: 1.5em; }
.dc-msgs .m.file small { display: block; opacity: .8; font-size: .8em; }
.typing { display: flex; gap: 3px; padding: 4px 6px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: #a78bfa; animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%,60%,100% { transform: none; opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
.dc-input { display: flex; align-items: center; gap: 6px; margin: 0 8px 8px; padding: 5px 8px; background: #fff; border: 1px solid #e2e8f0; border-radius: 9px; color: #94a3b8; }
.dc-input .send { margin-left: auto; color: #7c3aed; }
.dc-call {
  position: absolute; right: 8px; top: 34px; width: 38%; border-radius: 10px; overflow: hidden;
  background: #111827; box-shadow: 0 14px 28px -10px rgba(17,24,39,.6); padding: 4px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px; animation: float 7s ease-in-out infinite;
}
.dc-call .tile { height: 3.6em; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }
.dc-call .tile.blur { background: radial-gradient(circle at 50% 40%, #f9a8d4, #7c3aed 70%); filter: saturate(1.2); }
.dc-call .tile.me { background: linear-gradient(135deg, #334155, #0f172a); font-size: .85em; }
.call-bar { grid-column: 1 / -1; display: flex; justify-content: center; gap: 8px; color: #e2e8f0; padding: 2px 0; font-size: .9em; }
.call-bar .end { color: #f43f5e; }

/* the card is small - hide the extras there */
.pc-visual .dc-app .dc-search, .pc-visual .dc-app .dc-conv:nth-child(n+6), .pc-visual .dc-app .m.file, .pc-visual .dc-app .typing, .pc-visual .dc-call { display: none; }
@media (max-width: 520px) {
  .pc-visual .dc-app { width: 94%; }
  .pc-visual .dc-call { display: none; }
}

/* big version on the Chatt page */
.chat-hero { padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 6vw, 80px); }
.chat-hero .dc-app { --dc-fs: 14px; width: 100%; max-width: 680px; height: 430px; margin: 0 auto; border-radius: 20px; box-shadow: 0 50px 90px -34px rgba(76,29,149,.55); }
.chat-hero .dc-call { top: auto; bottom: 56px; right: 14px; width: 40%; }
.chat-hero .dc-call .tile { height: 4.8em; }
@media (max-width: 640px) {
  .chat-hero .dc-app { --dc-fs: 11px; height: 360px; grid-template-columns: 1fr; }
  .chat-hero .dc-side { display: none; }
}
.cf-card { height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.cf-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cf-card i { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 12px; background: #f5f3ff; color: #7c3aed; font-size: 1.2rem; margin-bottom: 10px; }
.cf-card h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 4px; }
.cf-card p { color: var(--mut); font-size: .92rem; margin: 0; line-height: 1.55; }

/* ---------- product page band + "more products" ---------- */
.pv-band { background: linear-gradient(90deg, var(--a1), var(--a2)); color: #fff; }
.pv-band .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.pv-back { color: #fff; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.16); transition: background .2s; }
.pv-back:hover { color: #fff; background: rgba(255,255,255,.28); }
.pv-name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; display: inline-flex; align-items: center; gap: 8px; }
.pv-next { padding: 10px 0 60px; }
.pv-next h3 { font-size: 1rem; font-weight: 700; color: var(--mut); text-align: center; margin-bottom: 14px; }
.pv-next-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pv-next-row a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 700; box-shadow: var(--shadow-sm); transition: transform .25s, border-color .25s; }
.pv-next-row a:hover { transform: translateY(-3px); border-color: var(--a1); color: var(--a1); }
.pv-next-row a i { color: var(--a1); }

@media (prefers-reduced-motion: reduce) {
  .grad-anim, .mw-widget, .mr-cursor, .mr-health, .ph-live, .router span.bad, .ph-draw circle, .ph-draw path, .cam-sms, .typing i, .dc-call { animation: none !important; }
  .ph-draw circle, .ph-draw path { stroke-dashoffset: 0; }
  html.js .pview.open { animation: none; }
}
