/* Pianko website. Colours, radii and type follow the app (src/styles/tokens.css). */
:root {
  --bg: #0f0c29;
  --bg-2: #17133a;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.1);
  --surface-solid: #1d1846;
  --border: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.72);
  --text-3: rgba(255, 255, 255, 0.46);
  --primary: #8b5cf6;
  --primary-2: #ec4899;
  --accent: #22d3ee;
  --left: #5ac8fa;
  --right: #ff9f43;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --grad-cool: linear-gradient(135deg, #22d3ee 0%, #8b5cf6 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Rounded', 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

/* Language switching: every text exists as [lang=en] and [lang=cs]; only the active one shows. */
html[data-lang='en'] body [lang='cs'],
html[data-lang='cs'] body [lang='en'] {
  display: none !important;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font: 16px/1.6 var(--font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1200px 700px at 8% -10%, rgba(139, 92, 246, 0.28), transparent 60%),
    radial-gradient(900px 600px at 105% 5%, rgba(236, 72, 153, 0.18), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  background: rgba(15, 12, 41, 0.72);
  border-bottom: 1px solid var(--border);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.top nav a:hover { color: var(--text); }
.lang {
  display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
}
.lang button {
  font: inherit; font-size: 0.8rem; font-weight: 700; color: var(--text-2); background: none; border: 0;
  padding: 5px 10px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed='true'] { background: var(--text); color: #1a1440; }
@media (max-width: 760px) { .top nav { display: none; } .lang { margin-left: auto; } }

/* ---------- buttons, chips, cards (same look as the app) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(139, 92, 246, 0.45); }
.btn-primary:hover { box-shadow: 0 14px 40px rgba(236, 72, 153, 0.45); }
.btn-ghost { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 0.92rem; white-space: nowrap;
}
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }

/* ---------- hero ---------- */
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 72px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-size: 0.88rem; font-weight: 600; color: var(--text-2);
}
.pill .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-size: 0.75rem; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; margin: 20px 0 18px; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-2); max-width: 34em; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .note { margin-top: 14px; color: var(--text-3); font-size: 0.9rem; }

.phones { position: relative; height: 600px; }
.phone {
  position: absolute; width: 270px; aspect-ratio: 9 / 16; border-radius: 38px; padding: 9px;
  background: #07061a; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0,0,0,.4) inset;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; }
.phone.back { left: 4%; top: 40px; transform: rotate(-7deg); opacity: 0.92; }
.phone.front { right: 4%; top: 0; transform: rotate(4deg); }
.glow { position: absolute; inset: 15% 10%; background: var(--grad); filter: blur(90px); opacity: 0.35; border-radius: 50%; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px;
  background: rgba(29, 24, 70, 0.9); border: 1px solid var(--border); box-shadow: var(--shadow); font-weight: 700; font-size: 0.9rem;
  backdrop-filter: blur(10px);
}
.float-card small { display: block; color: var(--text-3); font-weight: 600; font-size: 0.75rem; }
.float-card .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); font-size: 1.1rem; }
.float-card.a { left: -2%; bottom: 70px; }
.float-card.b { right: -2%; top: 120px; }
.float-card.b .ic { background: var(--grad-cool); }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; gap: 32px; text-align: center; }
  .hero .lead { margin: 0 auto; }
  .hero .ctas { justify-content: center; }
  .phones { height: 470px; max-width: 420px; width: 100%; margin: 0 auto; }
  .phone { width: 210px; border-radius: 30px; padding: 7px; }
  .phone img { border-radius: 24px; }
  .float-card.a { left: 0; bottom: 30px; }
  .float-card.b { right: 0; top: 90px; }
}

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { padding: 20px; text-align: center; }
.stat b { display: block; font-size: 2rem; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.stat span { color: var(--text-2); font-size: 0.92rem; font-weight: 600; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- sections ---------- */
section.block { padding: 88px 0 0; }
.head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.12; letter-spacing: -0.025em; font-weight: 800; margin: 10px 0 12px; }
.head p { color: var(--text-2); font-size: 1.08rem; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature { padding: 24px; transition: transform 0.25s var(--ease), background 0.25s var(--ease); }
.feature:hover { transform: translateY(-3px); background: var(--surface-2); }
.feature .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 16px; background: var(--grad); }
.feature:nth-child(3n+2) .ic { background: var(--grad-cool); }
.feature:nth-child(3n) .ic { background: linear-gradient(135deg, #ff9f43, #ec4899); }
.feature h3 { font-size: 1.12rem; margin-bottom: 6px; }
.feature p { color: var(--text-2); font-size: 0.97rem; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.show { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; padding: 40px 0; }
.show.flip .show-img { order: 2; }
.show-img { display: flex; justify-content: center; position: relative; }
.show-img .phone { position: relative; width: 280px; }
.show-text h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; letter-spacing: -0.02em; margin: 10px 0 14px; }
.show-text p { color: var(--text-2); font-size: 1.05rem; }
.show-text ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.show-text li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.show-text li::before { content: '✓'; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; font-weight: 800; background: var(--grad); color: #fff; margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
@media (max-width: 860px) {
  .show { grid-template-columns: 1fr; gap: 28px; text-align: left; }
  .show.flip .show-img { order: 0; }
  .show-img .phone { width: 230px; }
}

.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 760px; margin: 0 auto; }

.cta-band {
  margin-top: 96px; padding: 56px 24px; border-radius: 28px; text-align: center; position: relative; overflow: hidden;
  background: var(--grad); box-shadow: 0 30px 80px rgba(139, 92, 246, 0.35);
}
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em; }
.cta-band p { color: rgba(255, 255, 255, 0.88); margin: 12px auto 26px; max-width: 34em; font-size: 1.08rem; }
.cta-band .btn { background: #fff; color: #6d28d9; box-shadow: none; }

/* ---------- footer ---------- */
footer.site { margin-top: 80px; border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--text-3); font-size: 0.92rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer.site .links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
footer.site a { color: var(--text-2); text-decoration: none; }
footer.site a:hover { color: var(--text); }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 48px 16px 0; }
.legal h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); letter-spacing: -0.025em; line-height: 1.1; margin: 10px 0 8px; }
.legal .meta { color: var(--text-3); font-size: 0.95rem; }
.legal .summary { margin: 28px 0 8px; padding: 20px 22px; }
.legal .summary p { color: var(--text); }
.legal h2 { font-size: 1.2rem; margin: 36px 0 8px; }
.legal p, .legal li { color: var(--text-2); }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 1.2em; margin: 10px 0 0; }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--text); }
.legal a { color: #c4a5ff; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.toc a { text-decoration: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 16px; }
.notfound .big { font-size: 5rem; font-weight: 800; line-height: 1; }
.notfound p { color: var(--text-2); margin: 12px 0 24px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
