/* B1 Polski — shared styles. Change --accent to restyle the whole site. */
:root {
  --accent: #B00E27;
  --accent-dark: #8A0B1F;
  --accent-soft: #FBEAEC;
  --ink: #16161A;
  --muted: #5A5852;
  --line: #E4E2DC;
  --bg: #FAFAF7;
  --card: #FFFFFF;
  --ok: #1D5C38;
  --ok-bg: #E8F5EC;
  --ok-line: #2E7D4F;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Figtree', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
}
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header {
  width: 100%; max-width: 1120px; margin: 0 auto;
  padding: 24px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.flag {
  width: 28px; height: 28px; border-radius: 6px; overflow: hidden;
  display: flex; flex-direction: column; border: 1px solid var(--line);
}
.flag span { flex: 1; }
.flag span:first-child { background: #fff; }
.flag span:last-child { background: var(--accent); }
.tagline { font-size: 14px; color: var(--muted); }
.header-end { display: flex; align-items: center; gap: 16px; }

/* Language switcher */
.lang-switch { display: flex; gap: 4px; }
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; min-height: 32px; padding: 4px 8px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--card);
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--muted); text-decoration: none;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.lang-switch a:hover { color: var(--ink); border-color: var(--ink); }
.lang-switch a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Main */
main {
  flex: 1; width: 100%; max-width: 1120px; margin: 0 auto;
  padding: 32px 20px 80px;
  display: flex; flex-direction: column; align-items: center; gap: 40px;
}
h1 {
  margin: 0; text-align: center;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(34px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.03em;
}
h1.hero { font-size: clamp(16px, 5.4vw, 48px); white-space: nowrap; }
.intro { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.intro p { margin: 0; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 16px 44px; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 18px;
  transition: background .15s ease;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.link-back {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 14px;
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px;
}
.link-back:hover { color: var(--ink); }
svg.icon { width: 18px; height: 18px; flex: none; }

/* Demo frame (landing) */
.demo {
  width: 100%; max-width: 860px; aspect-ratio: 16 / 9;
  border-radius: 18px; background: var(--ink); padding: 14px; position: relative;
  box-shadow: 0 24px 60px rgba(22,22,26,.18);
}
.demo video { width: 100%; height: 100%; border-radius: 10px; object-fit: cover; display: block; background: #000; }
.demo-badge {
  position: absolute; top: 26px; right: 30px; z-index: 2;
  display: flex; align-items: center; gap: 6px; font-size: 12px; color: #C9C7C0;
}
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: rec 1.6s ease-in-out infinite; }
.demo-screen {
  width: 100%; height: 100%; border-radius: 10px; background: #fff;
  padding: 6% 8%; display: flex; flex-direction: column; justify-content: center; gap: 18px; overflow: hidden;
}
.demo-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.demo-bar { height: 6px; border-radius: 3px; background: #EFEDE7; overflow: hidden; }
.demo-bar div { height: 100%; width: 60%; background: var(--accent); animation: bar 5s ease-in-out infinite; }
.demo-q { margin: 8px 0 0; font-family: var(--display); font-weight: 500; font-size: clamp(16px, 2.6vw, 28px); }
.demo-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.demo-opts div { padding: 12px; border: 1.5px solid var(--line); border-radius: 10px; font-size: clamp(12px, 1.6vw, 17px); position: relative; }
.demo-opts .right { animation: pick 5s ease-in-out infinite; }
.cursor { position: absolute; left: 0; top: 0; width: 18px; height: 18px; animation: cursor 5s ease-in-out infinite; }
.demo-ok { font-size: 14px; color: var(--ok); display: flex; align-items: center; gap: 8px; animation: check 5s ease-in-out infinite; }

@keyframes pick { 0%,30% { background:#fff; border-color:var(--line); color:var(--ink) } 38%,85% { background:var(--ok-bg); border-color:var(--ok-line); color:var(--ok) } 100% { background:#fff; border-color:var(--line); color:var(--ink) } }
@keyframes cursor { 0% { transform:translate(220px,40px); opacity:0 } 12% { opacity:1 } 30% { transform:translate(18px,8px) } 34% { transform:translate(18px,8px) scale(.85) } 38% { transform:translate(18px,8px) scale(1) } 85% { opacity:1 } 100% { transform:translate(18px,8px); opacity:0 } }
@keyframes check { 0%,36% { opacity:0; transform:translateY(6px) } 42%,85% { opacity:1; transform:none } 100% { opacity:0 } }
@keyframes bar { 0%,36% { width:40% } 48%,100% { width:60% } }
@keyframes rec { 0%,100% { opacity:1 } 50% { opacity:.25 } }
@media (prefers-reduced-motion: reduce) { .rec, .demo-bar div, .demo-opts .right, .cursor, .demo-ok { animation: none; } }

/* Choice cards */
.cards { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; gap: 16px; min-height: 260px;
  padding: 32px 28px; border-radius: 18px;
  background: var(--card); border: 1.5px solid var(--line);
  color: var(--ink); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(22,22,26,.08); border-color: var(--ink); }
.card-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.card-icon svg { width: 26px; height: 26px; }
.card-title { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; }
.card-text { color: var(--muted); flex: 1; }
.card-cta { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--accent); }
.pill { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #EFEDE7; color: var(--muted); }

/* Lessons */
.player { width: 100%; max-width: 960px; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--ink); }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
.notice {
  width: 100%; max-width: 720px; padding: 24px; border-radius: 14px;
  background: var(--card); border: 1.5px dashed var(--line); color: var(--muted); text-align: center;
}
.notice code { background: #EFEDE7; padding: 2px 6px; border-radius: 4px; color: var(--ink); }

/* Footer */
.site-footer { padding: 24px 20px; text-align: center; font-size: 14px; color: var(--muted); }
.site-footer a { color: var(--muted); }

@media (max-width: 560px) {
  .tagline { display: none; }
  .btn { width: 100%; justify-content: center; }
}
