/* KalisPro shared styles v2 - kalispro.uk, doggyguard.kalispro.uk, liveecho.kalispro.uk */
:root {
  --bg: #090818;
  --bg-2: #0f0d26;
  --glass: rgba(255, 255, 255, .045);
  --glass-2: rgba(255, 255, 255, .08);
  --line: rgba(160, 150, 255, .16);
  --line-2: rgba(160, 150, 255, .32);
  --text: #f1efff;
  --muted: #a9a5cf;
  --amber: #ffb238;
  --orange: #ff7a45;
  --violet: #8b7bff;
  --teal: #2fd6c8;
  --a1: var(--amber);
  --a2: var(--orange);
  --ink: #0b0a1d;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --body: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
}
body, .product { --grad: linear-gradient(120deg, var(--a1), var(--a2)); }
body.liveecho { --a1: var(--violet); --a2: var(--teal); }
body.kalispro { --a1: var(--amber); --a2: var(--violet); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
html[data-lang="pl"] [lang="en"],
html[data-lang="en"] [lang="pl"] { display: none !important; }
[hidden] { display: none !important; }

body {
  margin: 0;
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  overflow-x: hidden;
}
/* backdrop: faint grid plus two glows in the product colours */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60rem 36rem at 85% -10%, color-mix(in srgb, var(--a2) 26%, transparent), transparent 70%),
    radial-gradient(50rem 34rem at -10% 20%, color-mix(in srgb, var(--a1) 20%, transparent), transparent 70%),
    var(--bg);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
  opacity: .5;
}
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--a1); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1140px, 100% - 2rem); margin-inline: auto; }

/* header */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(9, 8, 24, .72); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; }
.brand { display: flex; align-items: center; gap: .65rem; font: 700 1.2rem/1 var(--display); text-decoration: none; letter-spacing: -.01em; }
.brand small { font: 500 .78rem/1 var(--body); color: var(--muted); }
.brand img, .brand svg { width: 34px; height: 34px; flex: none; border-radius: 9px; }
.top nav { display: flex; align-items: center; gap: 1.2rem; font-size: .95rem; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--text); }
.lang { display: flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.lang button { background: none; border: 0; color: var(--muted); font: 600 .8rem/1 var(--body); padding: .45rem .7rem; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--grad); color: var(--ink); }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; padding: 4.5rem 0 5rem; }
.hero.solo { grid-template-columns: 1fr; text-align: center; padding-bottom: 3rem; }
.hero.solo .lead { margin-inline: auto; }
.hero.solo .actions, .hero.solo .chips { justify-content: center; }
.badge { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass); margin-bottom: 1.4rem; }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--a2); box-shadow: 0 0 12px var(--a2); }
h1 { font: 700 clamp(2.5rem, 6vw, 4.4rem)/1.03 var(--display); letter-spacing: -.03em; margin: 0 0 1.3rem; text-wrap: balance; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36rem; margin: 0 0 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .95rem 1.5rem; border-radius: 14px; font-weight: 700; text-decoration: none; background: var(--grad); color: var(--ink); border: 0; box-shadow: 0 10px 40px -12px color-mix(in srgb, var(--a1) 70%, transparent); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -12px color-mix(in srgb, var(--a1) 85%, transparent); }
.btn.ghost { background: var(--glass); color: var(--text); border: 1px solid var(--line-2); box-shadow: none; }
.btn.ghost:hover { background: var(--glass-2); }
.note { font-size: .9rem; color: var(--muted); margin: 1.1rem 0 0; max-width: 36rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; padding: 0; list-style: none; }
.chips li { font-size: .85rem; font-weight: 600; padding: .3rem .75rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--glass); }

/* glass panel */
.panel { position: relative; background: linear-gradient(180deg, var(--glass-2), var(--glass)); border: 1px solid var(--line); border-radius: 22px; }
.glow { box-shadow: 0 40px 90px -40px color-mix(in srgb, var(--a2) 55%, transparent), inset 0 1px 0 rgba(255, 255, 255, .08); }

/* mock windows */
.mock { overflow: hidden; }
.mock-bar { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1.1rem; border-bottom: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.mock-bar span:last-child { color: var(--muted); font-weight: 400; }
.mock-body { padding: .9rem 1.1rem 1.1rem; display: grid; gap: .9rem; }
.who { display: flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .9rem; }
.who img, .who svg { width: 26px; height: 26px; border-radius: 50%; }
.who time { color: var(--muted); font-weight: 400; }
.who em { font-style: normal; font-size: .68rem; font-weight: 700; padding: .1rem .35rem; border-radius: 4px; background: #5865f2; color: #fff; }

/* DoggyGuard notification cards */
.card { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.card .shot { height: 108px; position: relative; background: linear-gradient(135deg, #3b1d6e, #7a2b8f 45%, #ff7a45); }
.card.off .shot { height: 52px; background: linear-gradient(135deg, #1b1936, #2a2752); }
.tag { position: absolute; left: .7rem; top: .7rem; font-size: .7rem; font-weight: 800; letter-spacing: .04em; padding: .2rem .5rem; border-radius: 5px; background: #ff3b5c; color: #fff; }
.card.off .tag { background: #55527a; }
.card .meta { padding: .7rem .9rem .85rem; }
.card b { display: block; font-size: .98rem; }
.card small { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .6rem; }
.stats div { background: var(--glass); border-radius: 9px; padding: .45rem .55rem; }
.stats strong { display: block; font: 700 1.05rem/1.2 var(--display); }
.stats span { font-size: .72rem; color: var(--muted); }
.feed > * { animation: arrive .6s both; }
.feed > *:nth-child(2) { animation-delay: .5s; }
.feed > *:nth-child(3) { animation-delay: 1s; }
.feed > *:nth-child(4) { animation-delay: 1.5s; }
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } }

/* LiveEcho chat demo */
.read { gap: 0; padding: .5rem 0; }
.msg { display: flex; gap: .8rem; padding: .7rem 1.1rem; border-left: 3px solid transparent; transition: background .3s, border-color .3s; }
.msg p { margin: 0; font-size: .95rem; line-height: 1.45; }
.msg .nick { font-weight: 700; font-size: .88rem; }
.plat { flex: none; width: 3.3rem; text-align: center; font: 700 .68rem/1.6rem var(--body); border-radius: 6px; align-self: flex-start; color: #fff; }
.plat.tw { background: #9146ff; } .plat.tt { background: #fe2c55; } .plat.ki { background: #2fb344; color: #06210c; }
.msg.now { background: color-mix(in srgb, var(--a1) 16%, transparent); border-left-color: var(--a2); }
.wave { display: flex; align-items: center; gap: 3px; height: 1.4rem; margin-left: auto; visibility: hidden; }
.msg.now .wave { visibility: visible; }
.wave i { width: 3px; height: 30%; background: var(--a2); border-radius: 2px; animation: speak .9s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .15s; } .wave i:nth-child(3) { animation-delay: .3s; } .wave i:nth-child(4) { animation-delay: .45s; }
@keyframes speak { 50% { height: 100%; } }

/* sections */
section { padding: 4.5rem 0; }
.head { max-width: 44rem; margin-bottom: 2.5rem; }
h2 { font: 700 clamp(1.8rem, 3.8vw, 2.7rem)/1.1 var(--display); letter-spacing: -.02em; margin: 0 0 .8rem; text-wrap: balance; }
.head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* bento feature grid */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.cell { grid-column: span 2; padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; transition: border-color .2s, transform .2s; }
.cell:hover { border-color: var(--line-2); transform: translateY(-3px); }
.cell.wide { grid-column: span 3; }
.cell.full { grid-column: span 4; }
.cell h3 { font: 700 1.2rem/1.25 var(--display); margin: 0; letter-spacing: -.01em; }
.cell p { margin: 0; color: var(--muted); font-size: .98rem; }
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--a1) 30%, transparent), color-mix(in srgb, var(--a2) 30%, transparent)); border: 1px solid var(--line-2); margin-bottom: .5rem; }
.ico svg { width: 22px; height: 22px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cell ul { margin: .3rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.cell ul li { font-size: .8rem; font-weight: 600; padding: .22rem .6rem; border-radius: 999px; background: var(--glass-2); color: var(--text); }

/* command list */
.cmds { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.cmd { padding: 1rem 1.2rem; }
.cmd code { display: block; font: 600 .95rem/1.4 var(--mono); color: var(--a1); margin-bottom: .3rem; overflow-wrap: anywhere; }
.cmd span { color: var(--muted); font-size: .95rem; }
.term { padding: 1.1rem 1.3rem; font: 500 .92rem/1.7 var(--mono); margin-bottom: 1rem; overflow-wrap: anywhere; }
.term i { font-style: normal; color: var(--muted); }
.term b { color: var(--a1); font-weight: 600; }

/* steps and timeline */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.steps li { counter-increment: s; padding: 1.5rem; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; font: 700 1.1rem/1 var(--display); background: var(--grad); color: var(--ink); margin-bottom: .9rem; }
.steps strong { display: block; font-size: 1.12rem; margin-bottom: .3rem; }
.steps span { color: var(--muted); }
.steps code { font: 600 .88rem var(--mono); color: var(--a1); }

/* home: product panels */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.product { display: flex; flex-direction: column; gap: .9rem; padding: 2rem; text-decoration: none; --a1: var(--p1); --a2: var(--p2); transition: transform .2s, border-color .2s; }
.product:hover { transform: translateY(-4px); border-color: var(--line-2); }
.product .logo { width: 64px; height: 64px; border-radius: 16px; }
.product h2 { margin: 0; font-size: 2rem; }
.product p { margin: 0; color: var(--muted); }
.product ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.product li { padding-left: 1.5rem; position: relative; font-size: .98rem; }
.product li::before { content: ""; position: absolute; left: 0; top: .55em; width: .65rem; height: .65rem; border-radius: 50%; background: linear-gradient(120deg, var(--p1), var(--p2)); }
.product .go { margin-top: auto; padding-top: .6rem; font-weight: 700; background: linear-gradient(120deg, var(--p1), var(--p2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* FAQ */
.faq { max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.15rem 2.2rem 1.15rem 0; font: 600 1.1rem/1.35 var(--display); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: 1rem; color: var(--a1); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "-"; }
.faq p { margin: 0 0 1.25rem; color: var(--muted); }

/* call to action band */
.cta { padding: 2.5rem; display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.cta h2 { margin: 0 0 .4rem; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta p { margin: 0; color: var(--muted); }

footer { border-top: 1px solid var(--line); margin-top: 2rem; padding: 2rem 0 3rem; color: var(--muted); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; }
footer a { color: var(--text); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* text pages */
.doc { max-width: 44rem; padding: 3rem 0 4rem; }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); }
.doc h2 { font-size: 1.35rem; margin: 2.25rem 0 .6rem; }
.doc p, .doc li { color: var(--muted); }
.doc a { color: var(--text); }
.notfound { padding: 6rem 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding: 2.5rem 0 3rem; }
  .bento { grid-template-columns: 1fr 1fr; }
  .cell, .cell.wide, .cell.full { grid-column: span 1; }
  .steps, .products, .cmds, .cta { grid-template-columns: 1fr; }
  .top nav a { display: none; }
  section { padding: 3rem 0; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .cta, .product { padding: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feed > *, .wave i { animation: none; }
  .wave i { height: 70%; }
  .btn, .cell, .product { transition: none; }
}

.doc-list { margin: .6rem 0 0; padding-left: 1.2rem; color: var(--muted); }
.doc-list li { margin: .3rem 0; }
