/* GramaDrama — strona wizytówka. Kolory marki: branding/BRAND.md (Plum, Coral, Mint). */

:root {
  color-scheme: light dark;

  --plum: #5a21bf;
  --coral: #f54d66;
  --mint: #33d499;

  --bg: #fbf9ff;
  --bg-soft: #f3eefc;
  --surface: #ffffff;
  --ink: #1c1233;
  --ink-2: #5b5273;
  --line: rgba(28, 18, 51, 0.1);
  --link: #5a21bf;
  --on-plum: #ffffff;
  --coral-ink: #d62f4b;
  --coral-soft: rgba(245, 77, 102, 0.16);
  --mint-ink: #0c8059;
  --mint-soft: rgba(51, 212, 153, 0.24);
  --shadow: 0 1px 2px rgba(28, 18, 51, 0.06), 0 18px 48px -12px rgba(90, 33, 191, 0.28);
  --glow-a: rgba(90, 33, 191, 0.16);
  --glow-b: rgba(245, 77, 102, 0.14);

  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Ubuntu", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Ubuntu Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0919;
    --bg-soft: #161026;
    --surface: #1b1430;
    --ink: #f3effc;
    --ink-2: #a79fbd;
    --line: rgba(255, 255, 255, 0.1);
    --link: #b79dff;
    --coral-ink: #ff7a8f;
    --coral-soft: rgba(245, 77, 102, 0.22);
    --mint-ink: #4be0ab;
    --mint-soft: rgba(51, 212, 153, 0.22);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 22px 56px -14px rgba(0, 0, 0, 0.7);
    --glow-a: rgba(122, 70, 240, 0.28);
    --glow-b: rgba(245, 77, 102, 0.16);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 20;
  background: var(--plum); color: var(--on-plum); padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ——— nawigacja ——— */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0 0 0 auto; padding: 0; align-items: center; }
.nav li a {
  display: block; padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 500;
  color: var(--ink-2); text-decoration: none;
}
.nav li a:hover { color: var(--ink); background: var(--bg-soft); }
.nav li a.lang { border: 1px solid var(--line); color: var(--ink); font-weight: 600; margin-left: 4px; }
@media (max-width: 760px) {
  .nav li.hide-sm { display: none; }
}

/* ——— hero ——— */
.hero { position: relative; overflow: clip; padding: clamp(40px, 8vw, 96px) 0 clamp(48px, 8vw, 104px); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 140%; z-index: -1;
  background:
    radial-gradient(40% 40% at 78% 38%, var(--glow-a), transparent 70%),
    radial-gradient(32% 34% at 92% 70%, var(--glow-b), transparent 70%),
    radial-gradient(30% 30% at 6% 8%, var(--glow-a), transparent 72%);
}
.hero .wrap { display: grid; gap: clamp(36px, 6vw, 72px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 940px) { .hero .wrap { grid-template-columns: 1.02fr 1fr; } }

.eyebrow {
  margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--link);
}
h1 {
  margin: 0 0 20px; font-size: clamp(42px, 7.4vw, 76px); line-height: 1.02; font-weight: 850; letter-spacing: -0.035em;
  text-wrap: balance;
}
h1 .grad {
  background: linear-gradient(45deg, var(--plum), var(--coral));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (prefers-color-scheme: dark) {
  h1 .grad { background-image: linear-gradient(45deg, #9a6dff, #ff6f86); }
}
.lead { margin: 0 0 28px; font-size: clamp(18px, 2.2vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
.lead strong { color: var(--ink); font-weight: 600; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 12px;
  font-weight: 650; font-size: 16px; text-decoration: none; border: 1px solid transparent; line-height: 1.2;
}
.btn.primary { background: var(--plum); color: var(--on-plum); box-shadow: 0 8px 22px -8px rgba(90, 33, 191, 0.7); }
.btn.primary:hover { background: #4c1aa6; }
.btn.ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn.ghost:hover { border-color: var(--link); }
.hint { margin: 0; font-size: 15px; color: var(--ink-2); }

kbd {
  font: 600 0.82em/1 var(--mono); padding: 0.28em 0.55em; border-radius: 7px;
  background: var(--surface); border: 1px solid var(--line); border-bottom-width: 2px; color: var(--ink); white-space: nowrap;
}

/* ——— panel (makieta, wygląd jak w branding/PANEL.md) ——— */
.panel {
  width: 100%; max-width: 520px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; font-size: 15px; line-height: 1.5;
}
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.panel-head img { width: 22px; height: 22px; border-radius: 6px; }
.panel-head b { font-weight: 700; }
.pill {
  margin-left: auto; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--coral-soft); color: var(--coral-ink);
}
.modes { display: flex; padding: 3px; gap: 2px; background: var(--bg-soft); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.modes span { flex: 1 1 auto; text-align: center; padding: 6px 4px; border-radius: 8px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.modes span.on { background: var(--plum); color: var(--on-plum); font-weight: 700; }
.panel .text { margin: 0 0 12px; }
del { color: var(--coral-ink); text-decoration: line-through; text-decoration-thickness: 1.5px; }
ins { text-decoration: none; font-weight: 700; background: var(--mint-soft); border-radius: 4px; padding: 0 3px; }
.changes { background: var(--bg-soft); border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; font-size: 14px; }
.changes div { padding: 4px 0; }
.changes del { opacity: 0.95; }
.changes ins { background: none; color: var(--mint-ink); padding: 0; }
.changes .why { color: var(--ink-2); font-size: 12.5px; }
.arrow { color: var(--ink-2); padding: 0 2px; }
.panel-foot { display: flex; align-items: center; gap: 8px; }
.panel-foot .meta { color: var(--ink-2); font-size: 12.5px; margin-right: auto; }
.panel-foot .b { padding: 6px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 600; background: var(--bg-soft); color: var(--ink); }
.panel-foot .b.go { background: var(--plum); color: var(--on-plum); }
@media (max-width: 440px) {
  .panel { padding: 12px; font-size: 14px; }
  .modes span { font-size: 11.5px; padding: 5px 2px; }
  .panel-foot .meta { display: none; }
  .panel-foot { justify-content: flex-end; }
}

/* kolejne poprawki „wskakują” po załadowaniu strony; bez ruchu — od razu widoczne */
@media (prefers-reduced-motion: no-preference) {
  .panel .text del { animation: strike 0.5s ease both; }
  .panel .text ins { animation: pop 0.45s ease both; }
  .panel .text > :nth-child(1) { animation-delay: 0.5s; }
  .panel .text > :nth-child(2) { animation-delay: 0.8s; }
  .panel .text > :nth-child(3) { animation-delay: 1.1s; }
  .panel .text > :nth-child(4) { animation-delay: 1.4s; }
  .panel .text > :nth-child(5) { animation-delay: 1.7s; }
  .panel .text > :nth-child(6) { animation-delay: 2s; }
  .panel .text > :nth-child(7) { animation-delay: 2.3s; }
  .panel .text > :nth-child(8) { animation-delay: 2.6s; }
  @keyframes strike { from { color: var(--ink); text-decoration-color: transparent; } }
  @keyframes pop { from { opacity: 0; transform: translateY(3px); } }
}

/* ——— sekcje ——— */
section { padding: clamp(48px, 7vw, 88px) 0; }
section.soft { background: var(--bg-soft); }
h2 { margin: 0 0 14px; font-size: clamp(30px, 4.4vw, 44px); line-height: 1.08; letter-spacing: -0.028em; font-weight: 800; text-wrap: balance; }
.sub { margin: 0 0 clamp(28px, 4vw, 48px); max-width: 38em; color: var(--ink-2); font-size: 18px; text-wrap: pretty; }
h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.25; letter-spacing: -0.012em; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }

.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid.c2 { grid-template-columns: repeat(2, 1fr); } .grid.c3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px) and (max-width: 939px) { .grid.c3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--ink-2); font-size: 16px; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  font-size: 22px; background: linear-gradient(45deg, var(--plum), var(--coral)); color: #fff;
}

/* kroki */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: 1fr; padding: 0; margin: 0; list-style: none; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 24px 24px; counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  margin-bottom: 14px; font-weight: 800; color: var(--on-plum); background: var(--plum);
}
.steps p { color: var(--ink-2); font-size: 16px; margin: 0; }

/* możliwości */
.feat { display: grid; gap: 28px 40px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .feat { grid-template-columns: repeat(2, 1fr); } }
.feat h3 { display: flex; align-items: center; gap: 10px; }
.feat p { margin: 0; color: var(--ink-2); font-size: 16px; }
.tag {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
  background: var(--coral-soft); color: var(--coral-ink);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.chips li { padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink); }
.chips li:first-child { background: var(--plum); color: var(--on-plum); border-color: transparent; }

/* zrzuty */
.shots { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .shots { grid-template-columns: 1fr 1fr; } }
figure { margin: 0; }
.shots.spaced { margin-top: clamp(36px, 5vw, 64px); }
.icon .glyph { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
figcaption { margin-top: 12px; font-size: 15px; color: var(--ink-2); }

/* dane */
.flow { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 0 0 32px; }
@media (min-width: 860px) { .flow { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; } }
.node { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.node b { display: block; margin-bottom: 4px; font-size: 16px; }
.node span { color: var(--ink-2); font-size: 14.5px; line-height: 1.45; display: block; }
.node.me { border-color: var(--plum); box-shadow: 0 0 0 3px var(--glow-a); }
.link { display: grid; place-items: center; color: var(--ink-2); font-size: 22px; transform: rotate(90deg); }
@media (min-width: 860px) { .link { transform: none; } }
.points { display: grid; gap: 18px 40px; grid-template-columns: 1fr; padding: 0; margin: 0; list-style: none; }
@media (min-width: 760px) { .points { grid-template-columns: repeat(3, 1fr); } }
.points li { font-size: 16px; color: var(--ink-2); padding-left: 28px; position: relative; }
.points li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 800; color: var(--mint-ink); }
.points strong { color: var(--ink); font-weight: 650; }
.bench {
  margin-top: 32px; padding: 18px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px 36px; align-items: baseline;
}
.bench .num { font-size: 34px; font-weight: 850; letter-spacing: -0.03em; line-height: 1; color: var(--mint-ink); }
.bench .num small { font-size: 16px; font-weight: 650; color: var(--ink-2); letter-spacing: 0; }
.bench p { margin: 0; flex: 1 1 280px; font-size: 15px; color: var(--ink-2); }

/* status */
.status { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .status { grid-template-columns: repeat(3, 1fr); } }
.state { display: inline-block; border: 1px solid transparent; margin-bottom: 14px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 999px; }
.state.ok { background: var(--mint-soft); color: var(--mint-ink); }
.state.soon { background: var(--coral-soft); color: var(--coral-ink); }
.state.plan { background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); }

.open {
  margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between;
  padding: 22px 26px; border-radius: var(--radius); color: #fff;
  background: linear-gradient(45deg, #4b1aa6, #c93a73 70%, #f54d66);
}
.open p { margin: 0; max-width: 40em; font-size: 16.5px; }
.open a.btn { background: #fff; color: #3d1190; }

/* kontakt */
.contact { text-align: center; }
.contact .sub { margin-inline: auto; }

/* stopka */
footer { padding: 36px 0 56px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
footer .brand { font-size: 16px; }
footer .brand img { width: 26px; height: 26px; border-radius: 7px; }
footer .links { margin-left: auto; display: flex; gap: 20px; }
footer p { margin: 0; }

/* strona błędu */
.center { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.center img { margin: 0 auto 20px; width: 96px; border-radius: 22px; }

.center h1.small { font-size: clamp(34px, 6vw, 56px); }
.center .lead.mid { margin-inline: auto; }
.center .cta.mid { justify-content: center; }
