/* Landing page in the app's "Kartka" tokens (DESIGN.md): paper and ink, red for holidays, colour from people. No third-party requests. */
@font-face {
  font-family: "Dawno Narrow";
  src: url("fonts/roboto-flex-narrow.woff2") format("woff2");
  font-weight: 800 1000;
  font-display: swap;
}

:root {
  --paper: #F1F2EE;
  --sheet: #FFFFFF;
  --sunk: #E7E8E3;
  --line: #DCDDD7;
  --ink: #15171C;
  --ink-2: #4B4F58;
  --muted: #63676F;
  --holiday: #D23B2A;
  --on-ink: #F7F7F4;
  --sky: #DCE7FF; --sky-ink: #2A55B0;
  --sea: #D2ECEC; --sea-ink: #1C6A70;
  --mint: #D5EEE2; --mint-ink: #1E7550;
  --sand: #F3E4C4; --sand-ink: #83590F;
  --lilac: #E6DFFB; --lilac-ink: #5A45B0;
  --peach: #FCDCCD; --peach-ink: #A1441C;
  --narrow: "Dawno Narrow", "Arial Narrow", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --spring: cubic-bezier(0.2, 0.8, 0.3, 1);
  --perforation: radial-gradient(circle, var(--paper) 1.7px, transparent 2.1px) 0 0 / 10px 4px;
  --ink-hover: #2A2D34;
  --veil: rgba(255, 255, 255, 0.7);
  --band: #15171C;
  --band-text: #F1F2EE;
  --band-muted: #B4B6BD;
  --frame: #0B0C0E;
  --frame-ring: 0 0 0 0 transparent;
  --shadow: rgba(21, 23, 28, 0.55);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #0F1012;
  --sheet: #1A1B1F;
  --sunk: #26282D;
  --line: #2C2E34;
  --ink: #F1F1EC;
  --ink-2: #B4B6BD;
  --muted: #8C8F97;
  --holiday: #FF6B5B;
  --on-ink: #0F1012;
  --sky: #1E2A45; --sky-ink: #9DB8FF;
  --sea: #173234; --sea-ink: #86CFD3;
  --mint: #183329; --mint-ink: #86D2AE;
  --sand: #33291A; --sand-ink: #E5C489;
  --lilac: #2A2440; --lilac-ink: #C2B3F7;
  --peach: #3A241B; --peach-ink: #F2A88A;
  --ink-hover: #D9DAD4;
  --veil: rgba(15, 16, 18, 0.45);
  --band: #1A1B1F;
  --band-text: #F1F1EC;
  --frame: #050506;
  --frame-ring: 0 0 0 1px #2C2E34;
  --shadow: rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--on-ink); }
.skip:focus { top: 12px; }

h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-family: var(--narrow); font-weight: 800; font-size: clamp(56px, 9.2vw, 116px); line-height: 0.95; letter-spacing: -0.005em; }
h2 { font-weight: 700; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.06; letter-spacing: -0.03em; }
h3 { font-size: 20px; line-height: 1.25; }
p { margin: 0; }

.eyebrow, .kicker { font-size: 15px; font-weight: 650; color: var(--muted); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 34em; }
.note { font-size: 15px; color: var(--muted); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-family: var(--narrow); font-weight: 900; font-size: 40px; line-height: 1; }
.brand .cut { fill: var(--paper); }
.brand .cut-line { stroke: var(--paper); }
.nav { display: flex; align-items: center; gap: 8px 26px; font-size: 16px; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav .btn, .nav .btn:hover { color: var(--on-ink); }
.btn:hover { background: var(--ink-hover); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* Theme toggle: a word and an icon, like every button in the app; icon only on narrow phones. */
.theme-toggle {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border: 0; border-radius: 999px; background: transparent; color: var(--ink-2);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font: 600 16px/1 var(--sans); cursor: pointer;
  transition: color 160ms, box-shadow 160ms, transform 160ms var(--spring);
}
.theme-toggle:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.theme-toggle:active { transform: scale(0.97); }
.theme-toggle > span { display: inline-flex; align-items: center; gap: 8px; }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .to-light, [data-theme="dark"] .theme-toggle .to-dark { display: none; }
[data-theme="dark"] .theme-toggle .to-light { display: inline-flex; }
@media (max-width: 360px) {
  .brand { font-size: 32px; }
  .brand svg { width: 32px; height: 32px; }
  .nav { column-gap: 8px; }
  .nav .btn { padding: 0 16px; }
}
@media (max-width: 420px) {
  .theme-toggle { padding: 0 13px; }
  .theme-toggle .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (prefers-reduced-motion: no-preference) {
  .theming, .theming *, .theming *::before, .theming *::after {
    transition: background-color 300ms ease, color 300ms ease, box-shadow 300ms ease, border-color 300ms ease, fill 300ms ease, stroke 300ms ease !important;
  }
}

.btn, .pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 999px; font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform 160ms var(--spring), background-color 160ms; }
.btn { background: var(--ink); color: var(--on-ink); }
.btn:active, .pill:active, .store:active { transform: scale(0.97); }

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-width: 176px; min-height: 60px; padding: 0 24px;
  border-radius: 18px; background: var(--ink); color: var(--on-ink);
  text-decoration: none; line-height: 1.1;
  transition: transform 160ms var(--spring), box-shadow 160ms;
}
.store { position: relative; overflow: hidden; isolation: isolate; --mark-opacity: 0.6; padding-right: 64px; transition: transform 160ms var(--spring), filter 220ms; }
.store small, .store strong { position: relative; }
.store-bg {
  position: absolute; z-index: -1; right: -8px; bottom: -14px;
  width: 80px; height: 80px;
  fill: currentColor; opacity: var(--mark-opacity);
  transform: rotate(-12deg);
  transition: transform 320ms var(--spring), opacity 200ms;
  pointer-events: none;
}
.store:hover .store-bg { transform: rotate(-4deg) scale(1.12); opacity: 1; }
/* Before the apps are in the stores: the same button, not a link. */
.store.soon { cursor: default; }
.store.soon:active { transform: none; }
@media (prefers-reduced-motion: reduce) { .store-bg { transition: none; } }
.store small { font-size: 13px; opacity: 0.75; }
.store strong { font-weight: 650; font-size: 21px; letter-spacing: -0.01em; }
.store.ios:hover { filter: drop-shadow(0 10px 16px rgba(21, 114, 240, 0.4)); }
.store.android:hover { filter: drop-shadow(0 10px 16px rgba(0, 200, 110, 0.4)); }
.store + .store { background: var(--sheet); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); --mark-opacity: 0.5; }
@media (max-width: 420px) {
  [data-stores] .store { flex: 1 1 0; min-width: 0; padding: 0 30px 0 16px; }
  [data-stores] .store strong { font-size: 18px; white-space: nowrap; }
  .store-bg { width: 64px; height: 64px; right: -6px; bottom: -10px; }
}
[data-os="android"] [data-stores] .android { order: -1; background: var(--ink); color: var(--on-ink); box-shadow: none; --mark-opacity: 0.6; }
[data-os="android"] [data-stores] .ios { background: var(--sheet); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); --mark-opacity: 0.5; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 32px; padding-block: 32px 72px; }
.hero-text { display: flex; flex-direction: column; gap: 24px; }
.hero-text .note { margin-top: -8px; }
.hero-media { position: relative; height: 640px; }
.phone { margin: 0; padding: 8px; border-radius: 44px; background: var(--frame); box-shadow: var(--frame-ring), 0 30px 60px -30px var(--shadow); }
.phone img { display: block; width: 100%; height: auto; border-radius: 37px; background: var(--paper); }
.hero-media .phone { position: absolute; top: 50%; left: 50%; }
.phone-front { width: 300px; transform: translate(-50%, -50%); z-index: 2; }
.phone-back { width: 250px; opacity: 0.98; }
.phone-back.left { transform: translate(-108%, -46%) rotate(-8deg); }
.phone-back.right { transform: translate(8%, -42%) rotate(7deg); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.1em 0 0.16em; margin: -0.1em 0 -0.16em; }
.w > span { display: inline-block; }
.hero-tear { display: none; }
.hero-tear::before { content: ""; position: absolute; left: 22px; right: 22px; top: 12px; height: 4px; background: var(--perforation); }
@media (prefers-reduced-motion: no-preference) {
  .w > span { animation: word 850ms var(--spring) both; animation-delay: calc(150ms + var(--i) * 75ms); }
  @keyframes word { from { transform: translateY(112%); } }

}

/* Hero media sequence: a tear-off sheet covers the phones, then leaves and they fan out.
   Starts when the phones are on screen (home.js adds .go), so phones below the fold on mobile are not wasted. */
.anim .hero-tear {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: absolute; z-index: 6; left: 50%; top: 50%;
  width: min(56vw, 270px); aspect-ratio: 4 / 5;
  border-radius: 26px; background: var(--sheet); color: var(--holiday);
  box-shadow: 0 30px 60px -28px rgba(21, 23, 28, 0.5);
  transform: translate(-50%, -50%);
  transform-origin: 50% 0;
  pointer-events: none;
}
.t-day { font-size: 18px; font-weight: 600; color: var(--muted); }
.t-num { font-family: var(--narrow); font-weight: 900; font-size: clamp(120px, 14vw, 170px); line-height: 0.86; }
.t-month { font-size: 22px; font-weight: 700; }
.anim .hero-media:not(.go) .phone { visibility: hidden; }
.anim .hero-media.go .phone { animation: fan 900ms var(--spring) both; }
.anim .hero-media.go .phone-front { --from: translate(-50%, -44%); animation-delay: 560ms; }
.anim .hero-media.go .phone-back.left { --from: translate(-50%, -46%) rotate(0); animation-delay: 680ms; }
.anim .hero-media.go .phone-back.right { --from: translate(-50%, -42%) rotate(0); animation-delay: 760ms; }
.anim .hero-media.go .hero-tear { animation: tear 900ms cubic-bezier(0.55, 0, 0.8, 0.5) 380ms both; }
@keyframes fan { from { transform: var(--from); opacity: 0; } }
@keyframes tear {
  0% { transform: translate(-50%, -50%) rotate(0); opacity: 1; }
  16% { transform: translate(-50%, -50%) rotate(-2.5deg); opacity: 1; }
  100% { transform: translate(-30%, -150%) rotate(12deg); opacity: 0; }
}
@media (min-width: 1025px) and (max-width: 1240px) {
  .phone-front { width: 260px; }
  .phone-back { width: 210px; }
}
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; overflow-x: clip; }
  .hero-media { height: min(132vw, 600px); }
  .phone-front { width: min(58vw, 290px); }
  .phone-back { width: min(46vw, 240px); }
}

/* Facts */
.facts ul { list-style: none; margin: 0; padding: 28px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border-block: 1px solid var(--line); }
.facts li { display: flex; flex-direction: column; gap: 6px; }
.facts b { font-family: var(--narrow); font-weight: 900; font-size: clamp(56px, 6vw, 80px); line-height: 0.9; font-variant-numeric: tabular-nums; }
.facts b i { font-style: normal; font-size: 0.4em; }
.facts span { font-size: 15px; color: var(--ink-2); max-width: 15em; }
@media (max-width: 760px) { .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Shared layout */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.split > .text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.split > .text > p:not(.eyebrow):not(.note) { color: var(--ink-2); max-width: 34em; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.section-head p:not(.eyebrow) { color: var(--ink-2); }
.section { padding-block: 88px; }

/* Po kolei demo */
.demo-section { padding-block: 104px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--ink-2); }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.ticks b { color: var(--ink); }

.demo { flex: 1 1 340px; max-width: 400px; margin-inline: auto; }
.demo-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.demo-progress { flex: 1; display: flex; gap: 4px; }
.demo-progress i { flex: 1; height: 3px; border-radius: 2px; background: var(--line); transition: background-color 300ms; }
.demo-progress i.on { background: var(--ink); }
.demo-count { font-weight: 650; font-size: 15px; font-variant-numeric: tabular-nums; min-width: 3.2em; text-align: right; }

.deck { list-style: none; margin: 0; padding: 0; position: relative; height: 500px; }
.sheet {
  --d: 0;
  position: absolute; inset: 0;
  display: flex; flex-direction: column; gap: 6px;
  padding: 30px 24px 22px;
  border-radius: 26px;
  background: var(--tone, var(--sheet));
  transform-origin: 0 0;
  transform: translateY(calc(var(--d) * -12px)) scale(calc(1 - var(--d) * 0.045));
  z-index: calc(10 - var(--d));
  transition: transform 520ms var(--spring), opacity 380ms ease-out;
  box-shadow: 0 1px 0 rgba(21, 23, 28, 0.04), 0 24px 40px -32px rgba(21, 23, 28, 0.5);
}
.sheet::before { content: ""; position: absolute; left: 22px; right: 22px; top: 11px; height: 4px; background: var(--perforation); }
.sheet[data-d="hidden"] { opacity: 0; pointer-events: none; }
.sheet.torn { transform: translate(6%, -118%) rotate(-8deg); opacity: 0; pointer-events: none; }
.sheet.away { transform: translateX(-112%) rotate(-3deg); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .sheet, .sheet.torn, .sheet.away { transition: opacity 240ms; }
  .sheet.torn, .sheet.away { transform: none; }
}
.sheet .name { font-size: 30px; font-weight: 750; line-height: 1.25; letter-spacing: -0.01em; }
.sheet .sub { font-size: 15px; color: var(--ink-2); }
.sheet .big { display: flex; align-items: baseline; gap: 8px; margin-top: auto; margin-bottom: auto; font-weight: 700; font-size: 20px; color: var(--ink); }
.sheet .big b { font-family: var(--narrow); font-weight: 900; font-size: 168px; line-height: 0.8; color: var(--tone-ink, var(--ink)); font-variant-numeric: tabular-nums; }
.sheet .next { padding: 10px 14px; border-radius: 14px; background: var(--veil); font-size: 16px; }
.sheet .next small { display: block; font-size: 12px; font-weight: 650; color: var(--muted); }
.sheet .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.chip-holiday { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--sheet); color: var(--holiday); font-size: 14px; font-weight: 650; }
.chip-holiday svg { width: 15px; height: 15px; }
.pill { border: 0; background: var(--sheet); color: var(--ink); }
.pill.ink { background: var(--ink); color: var(--on-ink); }
.pill:hover { filter: brightness(0.96); }
.pill.ink:hover { background: var(--ink-hover); filter: none; }
.sheet.done { background: var(--sheet); }
.sheet.done .big { flex-direction: column; align-items: flex-start; gap: 10px; font-size: 18px; font-weight: 600; color: var(--ink-2); }
.sheet.done .big b { color: var(--ink); }
.sheet.done .pill:not(.ink) { box-shadow: inset 0 0 0 1.5px var(--line); }

/* Rhythm band */
.band { background: var(--sheet); padding-block: 96px; }
.band .split > .text { flex-basis: 380px; }
.rows { flex: 1 1 420px; min-width: 0; border-radius: 18px; background: var(--paper); padding: 4px 18px; }
.row { display: flex; align-items: center; gap: 14px; padding: 16px 0; }
.row + .row { border-top: 1px solid var(--line); }
.avatar { flex-shrink: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--tone); color: var(--tone-ink); font-size: 15px; font-weight: 650; }
.who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.who b { font-size: 18px; }
.who small { font-size: 14px; color: var(--muted); }
.num { text-align: right; font-size: 15px; font-weight: 700; white-space: nowrap; }
.num b { font-family: var(--narrow); font-weight: 900; font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; }
.num small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.dots { display: flex; flex-wrap: nowrap; align-items: center; gap: 3px; height: 14px; margin-top: 4px; overflow: hidden; }
.dots i { flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--ink)); }
.dots i.o { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.dots i.x { background: var(--ink); }
.dots u { flex-shrink: 0; width: 2px; height: 11px; border-radius: 1px; background: var(--muted); margin: 0 2px; }
.dots em { font-style: normal; font-weight: 900; font-size: 13px; line-height: 1; margin-left: 1px; }
@media (max-width: 480px) {
  .rows { padding-inline: 14px; }
  .dots { gap: 2px; }
  .dots i { width: 4px; height: 4px; }
  .num b { font-size: 38px; }
}

/* Screens gallery */
.screens-section { padding-block: 104px 56px; }
.screens { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.screens li:nth-child(even) { margin-top: 56px; }
.screens figure { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.screens .phone { padding: 6px; border-radius: 34px; }
.screens .phone img { border-radius: 29px; }
.screens figcaption { font-size: 15px; color: var(--ink-2); }
.screens figcaption b { display: block; font-size: 17px; color: var(--ink); }
@media (max-width: 900px) {
  .screens {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px;
    margin-inline: calc(-1 * max(20px, env(safe-area-inset-left)));
    padding: 4px max(20px, env(safe-area-inset-left)) 16px;
    scrollbar-width: none;
  }
  .screens::-webkit-scrollbar { display: none; }
  .screens li { flex: 0 0 min(62vw, 250px); scroll-snap-align: center; }
  .screens li:nth-child(even) { margin-top: 0; }
}

/* Features */
.features { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; padding-block: 56px 104px; }
.feature { display: flex; flex-direction: column; gap: 28px; padding: 32px; border-radius: 26px; background: var(--sheet); position: relative; }
.feature::before { content: ""; position: absolute; left: 24px; right: 24px; top: 11px; height: 4px; background: var(--perforation); }
.feature h2 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 12px; }
.feature p { color: var(--ink-2); }
.feature.holiday { grid-column: span 6; flex-direction: row; align-items: center; gap: 48px; }
.feature.notify, .feature.widgets { grid-column: span 3; }
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; }
  .feature.holiday, .feature.notify, .feature.widgets { grid-column: auto; }
  .feature.holiday { flex-direction: column; align-items: flex-start; gap: 28px; }
}

.calendar { flex-shrink: 0; position: relative; display: flex; flex-direction: column; align-items: center; width: 220px; padding: 26px 16px 20px; border-radius: 22px; background: var(--paper); color: var(--holiday); text-align: center; }
.calendar::before { content: ""; position: absolute; left: 18px; right: 18px; top: 10px; height: 4px; background: radial-gradient(circle, var(--sheet) 1.7px, transparent 2.1px) 0 0 / 10px 4px; }
.cal-month { font-weight: 700; font-size: 18px; }
.cal-day { font-family: var(--narrow); font-weight: 900; font-size: 150px; line-height: 0.85; }
.cal-name { margin-top: 8px; font-size: 15px; font-weight: 650; }

.note-mock { display: flex; flex-direction: column; gap: 6px; max-width: 360px; }
.note-card { padding: 14px 16px; border-radius: 22px; background: var(--sunk); }
.note-head { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; }
.note-head span:last-child { margin-left: auto; font-weight: 400; color: var(--muted); }
.note-icon { width: 20px; height: 20px; border-radius: 5px; background: var(--ink) url("mark.svg") center / cover; }
.note-body { margin-top: 4px; font-size: 15px; color: var(--ink) !important; }
.note-actions { display: grid; gap: 2px; border-radius: 18px; overflow: hidden; }
.note-actions span { padding: 11px 16px; background: var(--sunk); font-size: 15px; font-weight: 600; }

.widget-mock { display: flex; gap: 14px; align-items: stretch; }
.w-small, .w-medium { position: relative; border-radius: 24px; background: var(--paper); padding: 22px 16px 14px; }
.w-small::before, .w-medium::before { content: ""; position: absolute; left: 16px; right: 16px; top: 8px; height: 4px; background: radial-gradient(circle, var(--sheet) 1.7px, transparent 2.1px) 0 0 / 10px 4px; }
.w-small { flex: 0 0 158px; display: flex; flex-direction: column; }
.w-name { font-size: 14px; font-weight: 650; }
.w-num { font-family: var(--narrow); font-weight: 900; font-size: 64px; line-height: 0.9; margin-top: 6px; }
.w-cap { font-size: 12px; color: var(--muted); }
.w-btn { margin-top: 10px; padding: 7px 0; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 13px; font-weight: 600; text-align: center; }
.w-medium { flex: 1; min-width: 0; display: grid; align-content: center; gap: 8px; }
.w-medium span { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.w-medium i { width: 8px; height: 8px; border-radius: 50%; background: var(--tone); flex-shrink: 0; }
.w-medium b { margin-left: auto; font-family: var(--narrow); font-weight: 900; font-size: 26px; line-height: 1; }
@media (max-width: 420px) { .w-medium { display: none; } .w-small { flex-basis: 170px; } }

/* Platforms */
.platforms { padding-block: 40px 104px; }
.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.platform { display: flex; flex-direction: column; gap: 10px; padding: 32px; border-radius: 26px; box-shadow: inset 0 0 0 1.5px var(--line); }
.platform h3 { font-size: 34px; font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
.platform .req { color: var(--muted); font-size: 15px; }
.platform ul { margin: 8px 0 16px; padding-left: 20px; color: var(--ink-2); display: grid; gap: 6px; flex: 1; }
.platform .store { align-self: flex-start; background: var(--ink); color: var(--on-ink); box-shadow: none; }
@media (max-width: 760px) { .platform-grid { grid-template-columns: 1fr; } }

/* Privacy */
.private { background: var(--band); color: var(--band-text); color-scheme: dark; }
.private .split { padding-block: 96px; align-items: flex-start; }
.private h2 { flex: 1 1 380px; min-width: 0; }
.private .text { color: var(--band-muted); gap: 18px; }
.private .text p { color: var(--band-muted) !important; }
.private a { color: var(--band-text); font-weight: 600; }
.private :focus-visible { outline-color: var(--band-text); }

/* Price */
.price { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 40px; }
.plan { position: relative; padding: 36px 32px 32px; border-radius: 26px; background: var(--sheet); display: flex; flex-direction: column; gap: 12px; }
.plan::before { content: ""; position: absolute; left: 24px; right: 24px; top: 11px; height: 4px; background: var(--perforation); }
.plan.plus { box-shadow: inset 0 0 0 2px var(--ink); }
.plan .amount { font-family: var(--narrow); font-weight: 900; font-size: 64px; line-height: 1; }
.plan .amount span { font: 16px var(--sans); color: var(--muted); }
.plan ul { margin: 8px 0 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 6px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq-list { margin-top: 40px; border-radius: 18px; background: var(--sheet); }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 22px; font-weight: 650; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translateY(-3px); transition: transform 200ms var(--spring); }
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq details p { padding: 0 22px 20px; color: var(--ink-2); max-width: 62ch; }
.faq-more { margin-top: 20px; }

/* Final CTA */
.cta { padding-block: 24px 104px; }
.cta-sheet { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 64px 24px 56px; border-radius: 30px; background: var(--sheet); text-align: center; }
.cta-sheet::before { content: ""; position: absolute; left: 30px; right: 30px; top: 14px; height: 4px; background: var(--perforation); }
.cta-sheet > p:not(.note) { color: var(--ink-2); max-width: 30em; }
.cta-sheet .stores { justify-content: center; }

.foot { display: flex; flex-wrap: wrap; gap: 12px 28px; padding-block: 24px 48px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.foot a { color: var(--ink-2); }

/* Sticky mobile CTA */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta {
    display: flex; align-items: center; justify-content: center;
    position: fixed; z-index: 20; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom));
    min-height: 54px; border-radius: 999px;
    background: var(--ink); color: var(--on-ink); font-weight: 650; text-decoration: none;
    box-shadow: 0 16px 32px -16px rgba(21, 23, 28, 0.7);
    transform: translateY(160%); transition: transform 320ms var(--spring);
  }
  .sticky-cta.show { transform: none; }
  .foot { padding-bottom: 104px; }
}

/* Scroll-driven animations. Active only when home.js added .anim to <html> (observer available, motion allowed). */
[data-count] { font-variant-numeric: tabular-nums; }
/* Real numbers stay in the DOM for crawlers; they are only hidden until their count-up starts. */
.anim [data-count]:not(.counted) { visibility: hidden; }

/* 3. Rhythm dots fill one by one */
.anim .rows .dots > * { opacity: 0; transform: scale(0.2); }
.anim .rows.in .dots > * {
  opacity: 1; transform: none;
  transition: opacity 240ms ease-out, transform 420ms var(--spring);
  transition-delay: calc(var(--r, 0) * 160ms + var(--i, 0) * 40ms);
}

/* 4. Cards enter hanging from their perforation */
.anim .reveal { opacity: 0; transform: translateY(34px) rotate(-1.4deg); transform-origin: 50% 0; }
.anim .reveal::before { transform: scaleX(0); transform-origin: 0 50%; }
.anim .reveal.in {
  opacity: 1; transform: none;
  transition: opacity 500ms ease-out, transform 850ms var(--spring);
  transition-delay: calc(var(--n, 0) * 90ms);
}
.anim .reveal.in::before { transform: none; transition: transform 700ms var(--spring); transition-delay: calc(var(--n, 0) * 90ms + 280ms); }

/* 5. Gallery: depth on scroll (desktop) and the Odnotuj sheet rising over Po kolei */
@media (min-width: 901px) {
  .anim .screens figure { transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
}
.layers { position: relative; overflow: hidden; border-radius: 29px; background: var(--paper); }
.layers img { display: block; width: 100%; height: auto; border-radius: 0; }
.layers .under, .layers .dim { display: none; }
.anim .layers .under { display: block; position: absolute; inset: 0; height: 100%; object-fit: cover; }
.anim .layers .dim { display: block; position: absolute; inset: 0; background: rgba(21, 23, 28, 0.3); opacity: 0; transition: opacity 700ms ease-out 150ms; }
.anim .layers .over { position: relative; z-index: 2; clip-path: inset(30.3% 0 0 0); transform: translateY(72%); transition: transform 900ms var(--spring); }
.anim .sheet-up.in .over { transform: none; }
.anim .sheet-up.in .dim { opacity: 1; }
