/* The pricing page (cennik/ and cennik-en/ share this file and pricing.js; the two pages differ only in
   <html lang>). B's daylight tokens, type and pill, lifted from b/index.html; the words come from
   ../copy.js under `pricing`.

   The one signature: Pro's price is set in B's thin clock numerals and rolls, digit by digit, when the
   billing switch moves (pricing.js). Everything else stays quiet: hairlines, no fills behind content,
   except Pro itself, the only dark surface on the page. */
:root {
  --bg: #f4f5f5; --fg: #0f1112; --fg2: #5c6367; --hair: rgba(15, 17, 18, .09); --raise: #ffffff;
  --ink: #0f1112; --ink-fg: #eef1f2; --ink-fg2: #8c969b; --ink-hair: rgba(255, 255, 255, .1);
  --win-shadow: 0 50px 100px -40px rgba(10, 14, 18, .35);
  --muted: var(--fg2);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--fg); font: 500 17px/1.55 "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 10px; }
.wrap { max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
h1, h2, h3 { font-weight: 640; text-wrap: balance; }
.display { font-size: clamp(48px, 7.2vw, 104px); line-height: .98; letter-spacing: -.045em; }
.title { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -.038em; }
.lede { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: var(--fg2); text-wrap: pretty; }
.center { text-align: center; }
.center .lede { margin: 22px auto 0; max-width: 50ch; }
.seg { padding-top: clamp(150px, 20vh, 230px); }

/* nav, as in B */
.nav { position: fixed; inset: 0 0 auto; z-index: 40; height: 60px; display: flex; align-items: center; }
.nav::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(20px); backdrop-filter: saturate(1.6) blur(20px); box-shadow: inset 0 -1px 0 var(--hair); opacity: 0; transition: opacity .3s; }
.nav.scrolled::before { opacity: 1; }
.nav .wrap { position: relative; display: flex; align-items: center; gap: 24px; width: 100%; max-width: 1440px; }
.logo { display: block; width: 118px; aspect-ratio: 1230 / 220; background: var(--fg); -webkit-mask: url(/landing-masks/img/lockup-white.png) center / contain no-repeat; mask: url(/landing-masks/img/lockup-white.png) center / contain no-repeat; }
.nav ul { display: flex; gap: 24px; list-style: none; padding: 0; margin-left: auto; font-size: 14px; color: var(--fg2); }
.nav ul a:hover, .nav .login:hover, .nav ul a[aria-current] { color: var(--fg); }
.nav .login { font-size: 14px; color: var(--fg2); }
.pill { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; white-space: nowrap; transition: opacity .2s, transform .2s var(--ease); }
.pill:hover { opacity: .86; }
.nav .pill { height: 34px; padding: 0 15px; font-size: 14px; }
.link { display: inline-block; font-weight: 600; font-size: 15.5px; padding: 10px 0; border-bottom: 1px solid var(--hair); transition: border-color .2s; }
.link:hover { border-color: var(--fg); }

/* hero: the lines rise out of a blur, as in B */
.hero { padding-top: clamp(128px, 18vh, 168px); }
.hero .display { font-size: clamp(42px, 6vw, 86px); line-height: 1.02; }
.rise { opacity: 0; transform: translateY(14px); filter: blur(8px); animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }

/* the plans: Pro first and widest, the only filled surface; Starter and Free drawn in hairline */
.plans { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; max-width: 1180px; margin: clamp(56px, 8vh, 84px) auto 0; text-align: left; }
.plan { position: relative; display: flex; flex-direction: column; padding: clamp(26px, 2.6vw, 40px); border-radius: 24px; box-shadow: inset 0 0 0 1px var(--hair); }
.plan-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 46px; }
.plan h2 { font-size: 24px; letter-spacing: -.02em; line-height: 1.2; }
.flag { font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px currentColor; opacity: .7; }
.clients { margin-top: 6px; font-weight: 600; font-size: 16.5px; }
.price { display: flex; align-items: baseline; gap: 10px; margin-top: 30px; font-variant-numeric: tabular-nums; }
.amount { font-weight: 200; font-size: clamp(54px, 4.6vw, 68px); line-height: 1; letter-spacing: -.045em; }
.unit { font-size: 15px; color: var(--fg2); white-space: nowrap; }
.bill { margin-top: 10px; font-size: 15px; color: var(--fg2); }
.plan > .cta { margin-top: 30px; }
.plan ul { list-style: none; padding: 0; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--hair); display: grid; gap: 8px; font-size: 15px; color: var(--fg2); }
.plan ul a { border-bottom: 1px solid var(--hair); transition: border-color .2s, color .2s; }
.plan ul a:hover { color: var(--fg); border-color: currentColor; }

.pro { background: var(--ink); color: var(--ink-fg); box-shadow: var(--win-shadow); --modes-on: var(--ink-fg); --modes-on-fg: var(--ink); }
.pro .unit, .pro .bill, .pro ul, .pro .save-line, .pro .promo { color: var(--ink-fg2); }
.pro ul { border-color: var(--ink-hair); }
.pro ul a { border-color: var(--ink-hair); }
.pro ul a:hover { color: var(--ink-fg); }
.pro .pill { background: var(--ink-fg); color: var(--ink); }
.pro :focus-visible { outline-color: var(--ink-fg); }
.pro .plan-head { justify-content: space-between; }
.pro .name { display: flex; align-items: center; gap: 12px; }
.pro .modes { flex: none; }
.pro .modes button { height: 34px; padding: 0 16px; font-size: 14px; }
.pro .price { margin-top: 26px; }
.pro .amount { font-size: clamp(76px, 8vw, 116px); }
.pro .unit { font-size: 16px; }
.pro .bill { margin-top: 12px; font-size: 17px; font-weight: 600; color: var(--ink-fg); }
.save-line { margin-top: 6px; font-size: 15px; }
.promo { margin-top: 4px; font-size: 13.5px; }
/* −33% beside "Rocznie": the one verdict in the switch, coloured in the glyphs and never filled */
.modes .save { margin-left: 6px; font-weight: 700; background: linear-gradient(135deg, #ff8a3c 0%, #ff6b2c 42%, #ff3b1f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* both billing states stay stacked in one cell, so nothing below moves when the switch does */
.cyc { display: grid; }
.cyc > * { grid-area: 1 / 1; transition: opacity .3s var(--ease), visibility .3s; }
[data-billing="year"] [data-show="month"], [data-billing="month"] [data-show="year"] { opacity: 0; visibility: hidden; }

/* the signature: the price rolls like B's clock, one column per digit */
.roll { --h: 1.14em; display: inline-flex; height: var(--h); overflow: hidden; line-height: var(--h); }
.roll .slot { display: block; width: var(--dw, .6em); overflow: hidden; transition: width .7s cubic-bezier(.65, 0, .35, 1); }
.roll .slot.blank { width: 0; }
.roll .col { display: flex; flex-direction: column; transition: transform .7s cubic-bezier(.65, 0, .35, 1); }
.roll .col span, .roll .sep { display: block; height: var(--h); }
.roll:not(.ready) .slot, .roll:not(.ready) .col { transition: none; }

.fine { max-width: 66ch; margin: 30px auto 0; font-size: 14px; line-height: 1.6; color: var(--fg2); text-align: center; text-wrap: pretty; }

/* the arithmetic, in the open */
.maths-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: end; }
.maths .lede { margin-top: 24px; max-width: 40ch; }
.ledger { font-variant-numeric: tabular-nums; }
.ledger .row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 24px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--hair); }
.ledger .label { font-size: 17px; color: var(--fg2); }
.ledger .calc { font-size: 15px; color: var(--fg2); }
.ledger .sum { font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.02em; text-align: right; min-width: 6.5em; }
.ledger .row.total { border-top: 2px solid var(--fg); }
.ledger .row.total .label { color: var(--fg); font-weight: 600; }
.ledger .row.total .calc { color: var(--fg); font-weight: 600; }
.ledger .per { padding-top: 16px; border-top: 1px solid var(--hair); font-size: 14.5px; line-height: 1.6; color: var(--fg2); }

/* every feature, every plan */
.feats { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 80px); max-width: 1060px; margin: 56px auto 0; text-align: left; }
.feats li { padding: 20px 0 22px; border-top: 1px solid var(--hair); }
.feats strong { display: block; font-size: 18.5px; font-weight: 650; letter-spacing: -.015em; }
.feats span { display: block; margin-top: 4px; font-size: 16px; line-height: 1.55; color: var(--fg2); text-wrap: pretty; }

/* questions */
.faq-list { max-width: 860px; margin: 48px auto 0; border-bottom: 1px solid var(--hair); text-align: left; }
.faq-list details { border-top: 1px solid var(--hair); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: clamp(18px, 1.5vw, 20px); font-weight: 600; letter-spacing: -.015em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { flex: none; width: 18px; height: 18px; color: var(--fg2); transition: transform .3s var(--ease); }
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 26px; max-width: 64ch; font-size: 17px; line-height: 1.6; color: var(--fg2); text-wrap: pretty; }

/* finale and footer, as in B */
.finale { padding: clamp(170px, 24vh, 260px) 0 clamp(150px, 20vh, 220px); }
.finale .cta { margin-top: 40px; display: flex; justify-content: center; }
footer { border-top: 1px solid var(--hair); padding: 36px 0 44px; font-size: 14px; color: var(--fg2); }
footer .wrap { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
footer .logo { width: 96px; margin-right: auto; }
footer a:hover, footer a[aria-current] { color: var(--fg); }

@media (max-width: 1080px) {
  .plans { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pro { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav ul { display: none; }
  .nav .login { margin-left: auto; }
  .maths-split { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 680px) {
  .plans { grid-template-columns: 1fr; }
  .feats { grid-template-columns: 1fr; }
  .pro .plan-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .pro .amount { font-size: 80px; }
  .ledger .row { grid-template-columns: minmax(0, 1fr) auto; }
  .ledger .calc { grid-row: 2; grid-column: 1; }
  .ledger .calc:empty { display: none; }
  .ledger .sum { grid-row: 1 / span 2; grid-column: 2; align-self: center; min-width: 0; }
}
@media (max-width: 600px) {
  .nav .login { display: none; }
  .nav .pill { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; transform: none; filter: none; }
  .roll .slot, .roll .col, .cyc > * { transition: none; }
}

/* The site is black throughout; the pricing page follows. Pro keeps the one raised surface. */
:root {
  --bg: #050607; --fg: #eef1f2; --fg2: #8c969b; --hair: rgba(255, 255, 255, .08); --raise: #101213;
  --ink: #15181b; --ink-fg: #eef1f2; --ink-fg2: #9aa3a8; --ink-hair: rgba(255, 255, 255, .12);
  --win-shadow: 0 50px 120px -40px rgba(0, 0, 0, .8);
}
