@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-cyrillic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --canvas: #fff3e7;
  --ink: #030302;
  --white: #ffffff;
  --linen: #f7f7f7;
  --ash: #e1e1e1;
  --stone: #8a8785;
  --graphite: #41413f;
  --mint: #9bd8a9;
  --marigold: #fde99b;
  --periwinkle: #b8caf5;
  --sky: linear-gradient(in oklab, rgb(158 212 239) 0%, rgb(209 238 249) 100%);
  --red: #ef151b;

  --serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shadow-xl: rgba(0,0,0,.01) 0 50px 40px, rgba(0,0,0,.02) 0 50px 40px, rgba(0,0,0,.05) 0 20px 40px, rgba(0,0,0,.08) 0 3px 10px;
  --shadow-md: rgba(0,0,0,.1) 0 12px 12px 2px, rgba(0,0,0,.06) 0 2px 4px -1px;
  --shadow-subtle: rgba(0,0,0,.08) 0 1px 3px, rgba(0,0,0,.06) 0 1px 2px -1px;

  --max: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 120px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
main { overflow-x: clip; }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

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

/* Japanese and Chinese: system fonts, no negative tracking */
:lang(ja) { --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif; }
:lang(zh-Hans) { --serif: "Songti SC", "STSong", "Noto Serif SC", serif; --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
:lang(ja) body, :lang(zh-Hans) body, :lang(ja) h1, :lang(ja) h2, :lang(zh-Hans) h1, :lang(zh-Hans) h2 { letter-spacing: 0; }
:lang(ja) h1, :lang(zh-Hans) h1 { font-size: clamp(36px, 5.6vw, 66px); line-height: 1.2; }
:lang(ja) h2, :lang(zh-Hans) h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.25; }
:lang(ja) { word-break: auto-phrase; }

/* Type */
h1, h2 { font-family: var(--serif); font-weight: 400; font-feature-settings: "liga"; text-wrap: balance; }
h1 { font-size: clamp(44px, 7vw, 84px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.06; letter-spacing: -0.03em; }
h3 { font-size: 18px; line-height: 1.35; font-weight: 600; letter-spacing: -0.02em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--graphite); text-wrap: pretty; }
.caption { font-size: 14px; color: var(--stone); letter-spacing: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--graphite); margin-bottom: 18px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

/* Pills */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 8px 18px; border-radius: 9999px;
  font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: box-shadow .2s, transform .2s, background-color .2s;
}
.pill-lg { min-height: 52px; padding: 14px 28px; font-size: 16px; }
.pill-dark { background: var(--ink); color: var(--white); }
.pill-ghost { border: 1px solid rgba(3,3,2,.18); background: rgba(255,255,255,.55); }
a.pill:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); background: var(--white); }
a.pill-dark:hover { background: #1f1f1c; color: var(--white); }
a.pill:focus-visible, .nav a:focus-visible, .brand:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,243,231,.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: var(--shadow-subtle);
}
.header-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-size: 18px; letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; }
.brand-sm { font-size: 15px; }
.brand-sm img { width: 22px; height: 22px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 9999px; text-decoration: none; font-size: 15px; color: var(--graphite); }
.nav a:hover { background: rgba(3,3,2,.06); color: var(--ink); }

/* Language menu */
.lang-menu { position: relative; margin-left: 8px; }
.lang-menu summary {
  display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer;
  min-height: 40px; padding: 8px 12px; border-radius: 9999px; font-size: 15px; color: var(--graphite);
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { background: rgba(3,3,2,.06); color: var(--ink); }
.lang-menu summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.lang-menu .ic { width: 18px; height: 18px; stroke-width: 1.5; }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 210px;
  display: grid; padding: 8px; background: var(--white); border-radius: 16px; box-shadow: var(--shadow-xl), var(--shadow-subtle);
}
.lang-menu a { display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none; font-size: 15px; }
.lang-menu a:hover { background: var(--linen); }
.lang-menu a[aria-current="page"] { font-weight: 600; }

/* Language list on the landing */
.lang-list { display: flex; flex-wrap: wrap; gap: 10px; }
/* Each language name in its own script: CJK system fonts would draw Latin and Cyrillic names full-width. */
.lang-list a, .lang-menu a { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0; }
.lang-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border-radius: 9999px;
  background: var(--white); box-shadow: var(--shadow-subtle); text-decoration: none; font-size: 16px;
  transition: box-shadow .2s, transform .2s;
}
.lang-list a:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.lang-list a[aria-current="page"] { background: var(--ink); color: var(--white); }

/* Hero (hidden only until main.js starts the entrance) */
.anim .hero-copy > *, .anim .paper { visibility: hidden; }
.anim .guide > .eyebrow, .anim .guide > h1, .anim .guide > .lead, .anim .guide-cta { visibility: hidden; }
.hero {
  position: relative; overflow: hidden;
  background: var(--sky);
  padding-top: clamp(64px, 9vw, 112px);
  /* Room for the screenshot's shadow (about 90 px deep), which overflow: hidden would otherwise cut off. */
  padding-bottom: 96px;
}
.hero + .section { padding-top: max(24px, calc(var(--section) - 96px)); }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 34%;
  background: var(--canvas);
}
.hero-copy { position: relative; z-index: 2; text-align: center; max-width: 980px; }
.hero-copy .lead { max-width: 640px; margin: 24px auto 0; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.hero-copy .caption { margin-top: 18px; color: var(--graphite); }

.paper { position: absolute; z-index: 1; filter: url(#torn); box-shadow: var(--shadow-md); will-change: transform; }
.paper-mint { width: 300px; height: 210px; left: -60px; top: 120px; background: var(--mint); transform: rotate(-9deg); }
.paper-marigold { width: 250px; height: 170px; right: -40px; top: 70px; background: var(--marigold); transform: rotate(7deg); }
.paper-grid {
  width: 220px; height: 160px; right: 9%; top: 300px; transform: rotate(-4deg);
  background-color: var(--white);
  background-image: radial-gradient(rgba(3,3,2,.16) 1.2px, transparent 1.4px);
  background-size: 14px 14px;
}

.shot { position: relative; z-index: 2; }
.shot img { border-radius: 10px; box-shadow: var(--shadow-xl); }
.shot-hero { margin-top: clamp(48px, 7vw, 80px); max-width: 1180px; }

/* Sections */
.section { padding-top: var(--section); }
.section-last { padding-bottom: var(--section); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head .lead { margin-top: 20px; }

.card {
  background: var(--white); border-radius: 20px; padding: 28px;
  box-shadow: var(--shadow-xl);
}
.card h3 { margin: 16px 0 8px; font-size: 20px; }
.card p { color: var(--graphite); }
.card-lg { padding: clamp(28px, 4vw, 44px); }
.card-lg h2 { font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 16px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.tag { display: inline-block; padding: 4px 12px; border-radius: 9999px; font-size: 13px; font-weight: 600; letter-spacing: 0; }
.tag-mint { background: var(--mint); }
.tag-marigold { background: var(--marigold); }
.tag-periwinkle { background: var(--periwinkle); }

/* Split showcase */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split > * { min-width: 0; }
.split-flip .split-copy { order: 2; }
.split-copy h2 { margin-bottom: 20px; }
.split-copy > p { color: var(--graphite); font-size: 17px; }
.ticks { margin-top: 24px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%23030302' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}
.shot-side { padding: clamp(18px, 3vw, 36px); will-change: transform; }
.shot-side::before {
  content: ""; position: absolute; inset: 0; border-radius: 6px; filter: url(#torn); z-index: -1;
}
.shot-mint::before { background: var(--mint); transform: rotate(-1.5deg); }
.shot-marigold::before { background: var(--marigold); transform: rotate(1.5deg); }

/* Tool catalogue: one dark block in the slate of the app's own toolbar, a card per tool, icons in the category colour */
.section-tools {
  --slate: #202632; --slate-card: #2a3140; --slate-line: rgba(255,255,255,.08); --slate-text: rgba(255,255,255,.72);
  margin-top: var(--section); padding: var(--section) 0; background: var(--slate); color: var(--white);
}
.section-tools .section-head { max-width: 760px; }
.section-tools .lead { color: var(--slate-text); }
.tool-group { margin-top: 48px; }
.tool-group-name { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--slate-text); margin-bottom: 16px; }
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tool {
  display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 6px; align-items: center;
  padding: 22px 22px 24px; border-radius: 16px; background: var(--slate-card); border: 1px solid var(--slate-line);
  transition: transform .2s, border-color .2s, background-color .2s;
}
.tool:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.18); background: #303848; }
.tool-icon { grid-row: 1; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.06); color: var(--tool-color); }
.tool .pi { width: 28px; height: 28px; }
.tool h4 { grid-row: 1; margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.tool p { grid-column: 1 / -1; grid-row: 2; margin: 0; font-size: 14px; line-height: 1.5; color: var(--slate-text); letter-spacing: 0; }
.tool-group-1 { --tool-color: var(--marigold); }
.tool-group-2 { --tool-color: var(--mint); }
.tool-group-3 { --tool-color: var(--periwinkle); }
.tool-group-4 { --tool-color: #9ed4ef; }
.tool-group-5 { --tool-color: #c9b8f5; }
.tool-group-6 { --tool-color: #f7b9a3; }
.tool-group-7 { --tool-color: #f6a6b2; }
.section-tools + .section { margin-top: 0; }
.ic { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Pro badge (tool cards, catalogue note) */
.pro-badge {
  display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 2px 8px; border-radius: 9999px;
  background: var(--marigold); color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .04em; line-height: 1.4;
}
.tools-pro-note { margin-top: 14px; font-size: 14px; color: var(--slate-text); letter-spacing: 0; }
.tools-pro-note .pro-badge { margin: 0 8px 0 0; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.plan { background: var(--white); border-radius: 20px; padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-xl); }
.plan h3 { font-size: 20px; }
.plan-price { margin-top: 18px; font-family: var(--serif); font-size: clamp(44px, 5vw, 60px); line-height: 1; letter-spacing: -0.03em; }
.plan-price-local { font-family: var(--sans); font-size: 18px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; min-height: 60px; display: flex; align-items: flex-end; }
.plan-note { margin-top: 8px; color: var(--graphite); }
.plan .ticks { margin-top: 28px; }
.plan-pro { background: #202632; color: var(--white); }
.plan-pro .plan-note { color: rgba(255,255,255,.72); }
.plan-pro .ticks li::before { background-color: var(--marigold); }
.plans-trial { margin-top: 28px; font-size: 17px; color: var(--ink); }
.plans-store { margin-top: 8px; }

/* Privacy */
.privacy {
  position: relative; display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: center;
  padding: clamp(32px, 6vw, 72px); isolation: isolate;
}
.privacy::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--periwinkle); border-radius: 8px; filter: url(#torn); box-shadow: var(--shadow-md);
}
.privacy-copy h2 { margin-bottom: 20px; }
.privacy-copy p { font-size: 18px; color: var(--ink); max-width: 560px; }
.privacy-points { display: grid; gap: 12px; }
.privacy-points li { background: var(--white); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow-subtle); display: grid; gap: 2px; }
.privacy-points span { color: var(--graphite); font-size: 15px; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--ash); }
.faq details:first-of-type { border-top: 1px solid var(--ash); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative;
  font-size: 19px; font-weight: 550; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 1.8px solid var(--ink); border-bottom: 1.8px solid var(--ink); transform: rotate(45deg);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 24px; color: var(--graphite); max-width: 720px; }

/* Closing */
.closing { text-align: center; display: grid; justify-items: center; gap: 20px; }
.closing img { filter: drop-shadow(0 18px 24px rgba(160,0,10,.22)); }
.closing h2 { max-width: 720px; }

/* Footer */
.site-footer { border-top: 1px solid var(--ash); padding: 28px 0 36px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer-row p { font-size: 13px; color: var(--stone); letter-spacing: 0; }

/* Text pages: privacy, support */
.page { padding: clamp(56px, 8vw, 96px) 0 var(--section); }
.prose h1 { font-size: clamp(44px, 6vw, 68px); margin-bottom: 12px; }
.prose > .lead { max-width: 900px; margin: 32px 0 48px; }
.prose-sec {
  display: grid; grid-template-columns: minmax(220px, 1fr) 2.4fr; gap: 24px clamp(32px, 5vw, 72px);
  padding: 40px 0; border-top: 1px solid var(--ash);
}
.prose-sec h2 { font-size: clamp(28px, 3vw, 36px); }
.prose-body > :first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 6px; }
.prose h3:first-child { margin-top: 0; }
.prose-body p { color: var(--graphite); margin-top: 12px; font-size: 17px; }
.prose .ticks { margin-top: 16px; }
.prose a { text-decoration-color: rgba(3,3,2,.35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--red); }
.contact-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 48px;
  background: var(--white); border-radius: 20px; padding: 24px 28px; box-shadow: var(--shadow-xl);
}
/* Marcin: support page contact form */
.contact-form { display: grid; gap: 18px; align-items: start; }
.contact-form .tag { justify-self: start; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--linen); border: 1px solid var(--ash); border-radius: 12px;
  padding: 12px 14px; width: 100%;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible, .contact-form button:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 2px;
}
.contact-form button { border: 0; cursor: pointer; }
.contact-form button:disabled { opacity: .6; cursor: progress; }
.form-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-status { color: var(--graphite); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* Guides */
.guide > .lead { max-width: none; margin-bottom: 28px; }
.guide-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-bottom: 48px; }
.guide-cta .pro-badge { margin: 0 8px 0 0; }
.guide-shot { margin-bottom: 56px; }
.steps { counter-reset: step; display: grid; gap: 14px; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; color: var(--graphite); font-size: 17px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--marigold); color: var(--ink); font-size: 14px; font-weight: 600; display: grid; place-items: center;
}
.guide-list { display: grid; gap: 10px; font-size: 17px; }
/* Marcin: in a guide the questions are white cards; ruled rows collided with the section dividers */
.guide .faq { max-width: none; display: grid; gap: 12px; }
.guide .faq details, .guide .faq details:first-of-type {
  border: 0; background: var(--white); border-radius: 16px; padding: 0 24px; box-shadow: var(--shadow-md);
}
.guide .faq summary { padding: 18px 40px 18px 0; font-size: 18px; }
.guide .faq summary::after { right: 4px; }
.guide .faq details p { margin-top: 0; padding: 0 0 20px; max-width: none; }
.guide-closing { margin-top: 64px; padding-top: 64px; border-top: 1px solid var(--ash); }
.guide-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.prose-body .guide-links { margin-top: 24px; }
/* Marcin: the link fills its grid cell, so cards in one row share a height */
.guide-links li { display: flex; }
.guide-links a {
  flex: 1; display: flex; align-items: center; gap: 16px; padding: 16px 20px 16px 16px; border-radius: 18px;
  background: var(--white); box-shadow: var(--shadow-md); text-decoration: none; font-weight: 500; line-height: 1.35;
  transition: box-shadow .2s, transform .2s;
}
.guide-links a:hover { box-shadow: var(--shadow-xl); transform: translateY(-2px); }
.guide-links a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.guide-icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--periwinkle); }
.guide-icon .pi { width: 26px; height: 26px; }
.guide-links li:nth-child(3n+2) .guide-icon { background: var(--mint); }
.guide-links li:nth-child(3n+3) .guide-icon { background: var(--marigold); }
.guide-title { flex: 1; }
.guide-links .pro-badge { flex: none; margin: 0; }
.nav a[aria-current="page"] { background: rgba(3,3,2,.06); color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; }
.footer-links a { color: var(--graphite); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

/* Marcin: video guides (src/film.njk). A screening room in the slate of the app's toolbar (as the tool catalogue),
   the films as ruled rows on the canvas, the steps of a film beside the frame they describe. */
.films { --slate: #202632; --slate-card: #2a3140; --slate-line: rgba(255,255,255,.1); --slate-text: rgba(255,255,255,.74); }
.films ::selection { background: var(--marigold); color: var(--ink); }
.theatre { background: var(--slate); color: var(--white); padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 7vw, 96px); }
.theatre-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.theatre-head h1 { font-size: clamp(44px, 6.4vw, 84px); }
.theatre-film .theatre-head h1 { font-size: clamp(36px, 4.8vw, 62px); line-height: 1.05; }
.theatre .lead { color: var(--slate-text); max-width: 34em; }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; color: var(--slate-text); font-size: 14px; font-weight: 500; text-decoration: none; transition: color .2s; }
.back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s cubic-bezier(.16,1,.3,1); }
.back:hover { color: var(--white); }
.back:hover svg { transform: translateX(-3px); }
.back:focus-visible, .premiere:focus-visible, .screen-cover:focus-visible, .chapters button:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; border-radius: 6px; }
.premiere-meta, .reel-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.theatre-side .premiere-meta { margin-top: 18px; }
.reel-len { font-size: 14px; font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.theatre .reel-len { color: var(--slate-text); }
.theatre .reel-len + .reel-len::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 10px 3px 0; border-radius: 50%; background: currentColor; }
.films .pro-badge, .films .free-badge { margin: 0; vertical-align: 0; }
.free-badge { display: inline-block; padding: 2px 8px; border-radius: 9999px; background: var(--mint); color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .04em; line-height: 1.4; }

/* play disc on posters */
.play-disc { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: var(--white); box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .35s cubic-bezier(.16,1,.3,1); }
.play-disc::after { content: ""; position: absolute; left: 23px; top: 18px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--ink); }
.play-disc-lg { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.play-disc-lg::after { left: 34px; top: 27px; border-width: 15px 0 15px 24px; }

/* hub: the first film on the screen */
.premiere { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; text-decoration: none; color: inherit; }
.premiere-shot, .reel-shot, .screen { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--slate-card); }
.premiere-shot { border-radius: 16px; box-shadow: 0 40px 80px -20px rgba(0,0,0,.6), 0 0 0 1px var(--slate-line); }
.premiere-shot img, .reel-shot img, .screen-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.premiere:hover .premiere-shot img { transform: scale(1.025); }
.premiere:hover .play-disc, .reel:hover .play-disc, .screen-cover:hover .play-disc { transform: scale(1.08); }
.premiere-txt { display: grid; gap: 16px; justify-items: start; }
.premiere-txt h2 { font-size: clamp(32px, 3.6vw, 48px); }
.premiere-desc { color: var(--slate-text); font-size: 17px; line-height: 1.5; text-wrap: pretty; }
.pill-light { background: var(--white); color: var(--ink); margin-top: 8px; }
.premiere:hover .pill-light { background: var(--marigold); }

/* rows of films */
.reels-sec { padding-top: clamp(40px, 6vw, 72px); }
.reels-more { padding-top: var(--section); }
.reels-more > h2 { margin-bottom: 28px; }
.reels { border-top: 1px solid rgba(3,3,2,.14); }
.reel { display: grid; grid-template-columns: clamp(200px, 26vw, 340px) minmax(0, 1fr) auto; gap: clamp(20px, 3.5vw, 48px); align-items: center; padding: 28px 0; border-bottom: 1px solid rgba(3,3,2,.14); text-decoration: none; }
.reel-shot { border-radius: 12px; box-shadow: var(--shadow-md); transition: box-shadow .3s, transform .45s cubic-bezier(.16,1,.3,1); }
.reel:hover .reel-shot { box-shadow: var(--shadow-xl); transform: translateY(-3px); }
.reel .play-disc { opacity: 0; transition: opacity .25s, transform .35s cubic-bezier(.16,1,.3,1); }
.reel:hover .play-disc, .reel:focus-visible .play-disc { opacity: 1; }
.reel:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 12px; }
.reel-txt { display: grid; gap: 10px; }
.reel-txt h2, .reel-txt h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
.reel-desc { color: var(--graphite); font-size: 16px; line-height: 1.5; max-width: 58ch; text-wrap: pretty; }
.reel-meta { justify-content: flex-end; color: var(--graphite); }
.films-cta { display: flex; justify-content: center; padding: clamp(56px, 8vw, 96px) var(--gutter) var(--section); }

/* film page: player, chapter strip, the line being played */
/* the player never grows past what leaves the chapter strip and the played line in view */
.player { max-width: clamp(560px, calc((100svh - 330px) * 1.7778), 1120px); margin-inline: auto; }
.theatre-film { padding-bottom: clamp(32px, 4vw, 56px); }
.theatre-film .theatre-head { margin-bottom: clamp(28px, 3.5vw, 44px); }
.screen { border-radius: 16px; background: #000; box-shadow: 0 50px 100px -24px rgba(0,0,0,.65), 0 0 0 1px var(--slate-line); }
.screen video { display: block; width: 100%; height: 100%; }
.screen-cover { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.screen-cover[hidden] { display: none; }
.chapters { display: flex; gap: 5px; list-style: none; padding: 0; margin: 18px 0 0; }
.chapters li { flex-basis: 0; min-width: 8px; }
.chapters button { display: block; width: 100%; padding: 8px 0; border: 0; background: none; cursor: pointer; }
.chapters span { display: block; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--marigold) calc(var(--fill, 0) * 100%), rgba(255,255,255,.18) 0); transition: height .2s; }
.chapters button:hover span { height: 6px; background-color: rgba(255,255,255,.3); }
.now { display: flex; gap: 16px; align-items: baseline; margin-top: 14px; min-height: 3.1em; color: var(--white); font-size: 17px; line-height: 1.5; }
.now-n { flex: none; color: var(--slate-text); font-size: 14px; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.now-n b { color: var(--marigold); font-weight: 600; }

/* steps beside their frame */
.walk { padding-top: var(--section); }
.walk-head { max-width: 760px; margin-bottom: 40px; }
.walk-head .lead { margin-top: 14px; }
.walk-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.walk-stage { position: sticky; top: 100px; }
.walk-frame { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--white); box-shadow: var(--shadow-xl); cursor: pointer; aspect-ratio: 16 / 9; }
.walk-frame img { width: 100%; height: 100%; object-fit: cover; }
.walk-go { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 12px; border-radius: 9999px; background: var(--ink); color: var(--white); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0; transition: background-color .2s, transform .3s cubic-bezier(.16,1,.3,1); }
.walk-frame:hover .walk-go { transform: translateY(-2px); }
.play-tri { border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor; }
.walk-frame:focus-visible, .walk-step:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.walk-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(3,3,2,.14); }
.walk-steps li { border-bottom: 1px solid rgba(3,3,2,.14); }
.walk-step { display: grid; grid-template-columns: 2.2em minmax(0, 1fr) auto; gap: 14px; align-items: baseline; width: 100%; padding: 18px 14px; margin: 0 -14px; width: calc(100% + 28px); border: 0; border-radius: 12px; background: none; font: inherit; letter-spacing: inherit; color: var(--graphite); text-align: left; cursor: pointer; transition: background-color .2s, color .2s; }
.walk-step:hover { background: rgba(255,255,255,.6); color: var(--ink); }
.walk-step.is-on { background: var(--white); color: var(--ink); box-shadow: var(--shadow-subtle); }
.walk-n { font-family: var(--serif); font-size: 26px; line-height: 1; color: #6f6a66; }
.walk-step.is-on .walk-n { color: var(--red); }
.walk-txt { font-size: 17px; line-height: 1.5; text-wrap: pretty; }
.walk-time { font-size: 13px; font-weight: 600; color: #6a6562; font-variant-numeric: tabular-nums; letter-spacing: 0; }

@media (max-width: 900px) {
  .theatre-head, .premiere, .walk-grid { grid-template-columns: 1fr; }
  .theatre-head { align-items: start; }
  .walk-stage { position: static; }
  .reel { grid-template-columns: 132px minmax(0, 1fr); align-items: start; gap: 16px; padding: 20px 0; }
  .reel-meta { grid-column: 2; justify-content: flex-start; margin-top: -6px; }
  .reel-desc { font-size: 15px; }
  .reel .play-disc { display: none; }
  .play-disc-lg { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .play-disc-lg::after { left: 26px; top: 20px; border-width: 12px 0 12px 19px; }
  .screen, .premiere-shot { border-radius: 12px; }
  .player { max-width: none; }
  .now { font-size: 16px; min-height: 4.6em; }
}
@media (prefers-reduced-motion: reduce) {
  .films *, .films *::after { transition: none !important; }
}

.guide-films { margin-top: 28px; }

/* Responsive */
@media (max-width: 1024px) {
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .privacy { grid-template-columns: 1fr; }
  .split-flip .split-copy { order: 0; }
  .prose-sec { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .lang-menu { margin-left: auto; }
  .lang-menu summary span { display: none; }
  .site-header .pill { margin-left: 4px; }
  .nav + .pill { margin-left: auto; }
  .cards-3, .cards-2, .plans, .guide-links { grid-template-columns: 1fr; }
  .paper-grid { display: none; }
  .paper-mint { width: 180px; height: 130px; left: -70px; top: 40px; }
  .paper-marigold { width: 160px; height: 110px; right: -70px; top: 20px; }
  .hero::after { height: 22%; }
}
@media (max-width: 520px) {
  .tool-grid { grid-template-columns: 1fr; }
  .pill-lg { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill, .tool, .guide-links a { transition: none; }
}
