/* Shared stylesheet of the five sites. build.mjs appends sites/<site>/theme.css, which
   sets the tokens below (brand colours, display font, hero decoration) and may add its
   own touches. Audience: adults 30-65, often with reading glasses - large type, strong
   contrast, big targets. No JavaScript, no external requests; each theme.css self-hosts its
   app's own font (public/assets/fonts, scripts/prepare_fonts.sh). */

:root {
  color-scheme: light;
  --brand: #1e5aa8;
  --brand-ink: #123a6e;
  --brand-soft: #dbe8f7;
  --tint: #f4f8fd;
  --accent: #f6c945;
  --ink: #1d2433;
  --ink-2: #4a5468;
  --paper: #ffffff;
  --line-c: rgba(29, 36, 51, .12);
  --ok: #2e7d32;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(29, 36, 51, .06), 0 10px 30px -12px rgba(29, 36, 51, .22);
  --display: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --display-weight: 800;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand-ink); text-decoration-thickness: 2px; text-underline-offset: .18em; }
a:hover { color: var(--brand); }
:focus-visible { outline: 4px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: var(--display-weight);
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 .45em;
  text-wrap: balance;
}
h3 { font-weight: 700; font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(840px, 100% - 32px); }
.center { text-align: center; }
.small { font-size: .875rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 700;
}
.skip:focus { top: 12px; }
mark.todo { background: #fff3a0; color: var(--ink); padding: 0 .3em; border-radius: 6px; outline: 2px dashed #d32f2f; }

.icon { width: 26px; height: 26px; flex: none; }
.icon-sm { width: 18px; height: 18px; display: inline-block; vertical-align: -3px; flex: none; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-c);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: var(--display-weight); font-size: 1.3rem;
  color: var(--ink); text-decoration: none; line-height: 1;
}
.brand img { border-radius: 11px; }
.brand:hover { color: var(--ink); }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  font-weight: 600; font-size: 1rem;
  text-decoration: none; color: var(--ink); padding: 8px 14px; border-radius: 999px;
}
.main-nav a:hover, .main-nav a[aria-current] { background: var(--brand-soft); color: var(--brand-ink); }
.lang-switch { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line-c); }
.lang-switch a {
  font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--ink-2);
  padding: 4px 11px; border-radius: 999px;
}
.lang-switch a[aria-current] { background: var(--brand); color: #fff; }

/* ---------- Buttons ---------- */

.btn, .store-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 10px 24px;
  border: 2px solid transparent; border-radius: 16px;
  font-weight: 700; font-size: 1.08rem; line-height: 1;
  text-decoration: none;
  transition: transform .1s ease, box-shadow .1s ease, background .1s ease;
}
.btn:hover, a.store-btn:hover { transform: translateY(-2px); }
.btn:active, a.store-btn:active { transform: translateY(1px); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { color: #fff; background: var(--brand-ink); }
.btn-outline { background: #fff; color: var(--brand-ink); border-color: var(--brand); }
.btn-light { background: #fff; color: var(--brand-ink); }
.btn-light:hover { color: var(--brand-ink); }

.store-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 0; }
.store-btn { min-width: 196px; justify-content: flex-start; padding: 8px 22px 8px 16px; background: var(--ink); color: #fff; }
.store-btn:hover { color: #fff; }
.store-btn .icon { width: 28px; height: 28px; }
.store-btn > span { display: flex; flex-direction: column; text-align: left; gap: 3px; font-size: 1.18rem; }
.store-btn small { font-weight: 500; font-size: .72rem; opacity: .85; }
.store-btn.is-soon { background: transparent; color: var(--ink-2); border: 2px dashed currentColor; }

/* ---------- Hero ---------- */

.hero { position: relative; padding: 64px 0 88px; background: var(--tint); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.eyebrow, .kicker {
  display: inline-block;
  font-weight: 700; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--brand-ink); background: var(--brand-soft);
  border-radius: 999px; padding: 4px 14px; margin: 0 0 18px;
}
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.1rem); margin-bottom: 20px; }
.h1-soft { display: block; font-size: .52em; font-weight: 600; line-height: 1.25; margin-top: .35em; color: var(--ink-2); letter-spacing: 0; }
.lead { font-size: 1.22rem; max-width: 33em; color: var(--ink-2); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 28px 0 0; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .98rem;
  background: #fff; border: 1px solid var(--line-c); border-radius: 999px; padding: 6px 14px 6px 10px;
}
.chips li::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }

.hero-art { position: relative; min-height: 600px; }
.phone {
  display: block; margin: 0;
  background: #10141c; border-radius: 44px;
  padding: 10px; box-shadow: var(--shadow), 0 30px 60px -30px rgba(29, 36, 51, .5);
}
.phone img { width: 100%; height: auto; border-radius: 34px; }
.phone-hero { position: absolute; width: 290px; left: 50%; top: 0; transform: translateX(-46%) rotate(3deg); }
.hero-icon {
  position: absolute; z-index: 2; width: 128px; height: 128px; left: 4%; bottom: 40px;
  border-radius: 30px; box-shadow: var(--shadow); transform: rotate(-8deg);
}
.hero-deco { position: absolute; inset: 0; pointer-events: none; }

/* ---------- Sections ---------- */

.section { padding: 84px 0; }
.section-head { max-width: 780px; margin: 0 0 44px; }
.section-head.center { margin-inline: auto; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.85rem); }
.section-lead { font-size: 1.18rem; color: var(--ink-2); }

.problem-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.problem { background: var(--tint); border-radius: var(--radius); padding: 28px 26px 10px; position: relative; }
.problem .quote {
  font-family: var(--display); font-weight: 700; font-size: 1.28rem; line-height: 1.3; color: var(--brand-ink);
}
.problem .quote::before { content: '„'; display: block; font-size: 3rem; line-height: .6; color: var(--brand); opacity: .5; margin-bottom: 4px; }
:lang(en) .problem .quote::before { content: '“'; }
/* The low Polish mark sits on the baseline, below its .6 line box - lift it off the heading. */
:lang(pl) .problem .quote::before { transform: translateY(-.3em); }
.problem p:last-child { color: var(--ink-2); }

.features { background: var(--tint); }
.feature-grid, .promise-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.promise-grid { grid-template-columns: repeat(4, 1fr); }
.feature, .promise { background: #fff; border-radius: var(--radius); padding: 26px 24px 20px; box-shadow: var(--shadow); }
.feature p, .promise p { margin: 0; color: var(--ink-2); }
.feature-icon {
  display: inline-grid; place-items: center;
  width: 54px; height: 54px; margin-bottom: 16px;
  background: var(--brand-soft); color: var(--brand-ink); border-radius: 16px;
}

.shot-row { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.shot-row figure { margin: 0; }
.shot-row li:nth-child(even) { transform: translateY(26px); }
.shot-row figcaption { font-weight: 600; font-size: 1.02rem; line-height: 1.35; text-align: center; margin-top: 20px; color: var(--ink-2); }

.law { background: var(--brand-ink); color: #fff; }
.law .kicker { background: rgba(255, 255, 255, .14); color: #fff; }
.law .section-lead { color: rgba(255, 255, 255, .85); }
.law-grid { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.law-card { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius); padding: 24px 22px 8px; }
.law-card h3 { color: #fff; }
.law-card .basis { display: flex; gap: 8px; align-items: flex-start; font-weight: 700; font-size: .98rem; color: var(--accent); }
.law-card .basis .icon { margin-top: 4px; }
.law-card p { color: rgba(255, 255, 255, .86); }
.law .note { color: rgba(255, 255, 255, .85); }

.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 920px; margin: 0 auto 26px; }
.price-card { background: var(--tint); border-radius: var(--radius); padding: 30px 30px 18px; border: 2px solid transparent; }
.price-card h3 { font-size: 1.45rem; margin-bottom: 4px; }
.price { font-family: var(--display); font-weight: var(--display-weight); font-size: 2.3rem; line-height: 1.1; margin-bottom: 18px; }
.price small { display: block; font-family: var(--body); font-size: .95rem; font-weight: 600; color: var(--ink-2); margin-top: 4px; }
.price-pro { background: #fff; border-color: var(--brand); box-shadow: var(--shadow); }
.note { display: flex; gap: 10px; align-items: flex-start; max-width: 920px; margin: 0 auto; font-size: .98rem; color: var(--ink-2); }
.note .icon { margin-top: 4px; }

/* FAQ */
.faq-list { display: grid; gap: 12px; margin-bottom: 26px; }
.faq-list details { background: #fff; border: 1px solid var(--line-c); border-radius: 18px; }
.faq-list details[open] { box-shadow: var(--shadow); }
.faq-list summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 18px 64px 18px 22px;
  font-weight: 700; font-size: 1.12rem; line-height: 1.35;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-ink); border-radius: 50%;
  font-weight: 700; font-size: 1.3rem; line-height: 1;
}
.faq-list details[open] summary::after { content: '–'; background: var(--brand); color: #fff; }
.faq-list details p { padding: 0 22px 20px; margin: 0; color: var(--ink-2); }
.text-link { font-weight: 700; font-size: 1.08rem; }

/* Contact band */
.contact-band { padding-top: 10px; }
.contact-card {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  background: var(--brand); color: #fff;
  border-radius: 28px; padding: 40px clamp(24px, 4vw, 52px);
}
.contact-card h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.contact-card p { margin: 0; opacity: .92; }
.contact-card .btn { flex: none; }

/* ---------- Footer ---------- */

.site-footer { background: #141a26; color: rgba(255, 255, 255, .82); margin-top: 90px; padding: 48px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer .brand { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-grid h2 { font-family: var(--body); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-about p { margin-top: 14px; max-width: 26em; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 40px; padding-top: 20px; }
.footer-base p { margin: 0 0 6px; }
.footer-base .small { opacity: .7; }

/* ---------- Legal & support pages ---------- */

.doc-hero { padding: 56px 0 30px; background: var(--tint); margin-bottom: 36px; }
.doc-hero h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); }
.doc-meta { font-weight: 600; color: var(--ink-2); margin: 0; }
.doc-hero .lead { margin: 0; }
.doc { padding-bottom: 24px; }
.summary-box { background: var(--brand-soft); border-radius: var(--radius); padding: 24px 28px 10px; margin-bottom: 30px; }
.summary-box h2 { font-size: 1.35rem; }
.toc { border: 1px solid var(--line-c); border-radius: var(--radius); padding: 22px 28px 12px; margin-bottom: 40px; }
.toc-title { font-size: 1.15rem; }
.toc ul { columns: 2; column-gap: 32px; margin: 0; padding: 0; list-style: none; }
.toc li { break-inside: avoid; margin-bottom: 6px; }
.prose section { margin-bottom: 38px; }
.prose section:last-child { margin-bottom: 0; }
.prose h2 { font-size: 1.5rem; padding-top: 8px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.check-list { list-style: none; padding-left: 0 !important; margin: 0 0 1em; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: .55em; }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: .28em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.table-wrap { overflow-x: auto; margin-bottom: 1em; }
table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line-c); border-radius: 14px; overflow: hidden; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line-c); }
tr:last-child td { border-bottom: 0; }
th { background: var(--tint); }
.app-card { background: var(--tint); border-radius: 18px; padding: 18px 22px; }
.app-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.app-card dt { font-weight: 700; }
.app-card dd { margin: 0; }
code { font-size: .88em; background: rgba(29, 36, 51, .07); padding: 0 .35em; border-radius: 6px; }

.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 48px; }
.card { background: #fff; border: 1px solid var(--line-c); border-radius: var(--radius); padding: 26px 26px 18px; box-shadow: var(--shadow); }
.card h2 { font-size: 1.45rem; }
.big-mail { font-weight: 800; font-size: 1.22rem; word-break: break-word; }
.card-mail .btn { margin-bottom: 18px; }
.card-mail ul { padding-left: 1.2em; margin: 0 0 8px; }
.faq > h2 { font-size: 1.85rem; }
#delete-data { margin: 44px 0 24px; }
.doc-links { text-align: center; font-weight: 700; }

/* 404 */
.not-found { padding: 80px 0 40px; }
.nf-icon { margin: 0 auto 26px; border-radius: 28px; transform: rotate(-6deg); box-shadow: var(--shadow); }
.not-found h1 { font-size: clamp(2rem, 4.6vw, 3rem); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center-row { justify-content: center; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 580px; max-width: 520px; width: 100%; margin: 0 auto; }
  .shot-row, .promise-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .main-nav { display: none; }
  .lang-switch { margin-left: auto; }
  .price-grid, .support-grid, .problem-grid { grid-template-columns: 1fr; }
  .contact-card { flex-direction: column; align-items: flex-start; }
  .toc ul { columns: 1; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .brand { font-size: 1.12rem; }
  .brand img { width: 38px; height: 38px; }
  .hero { padding: 40px 0 64px; }
  .hero-art { min-height: 500px; }
  .phone-hero { width: 236px; }
  .hero-icon { width: 92px; height: 92px; border-radius: 22px; left: 0; bottom: 20px; }
  .feature-grid, .promise-grid { grid-template-columns: 1fr; }
  .shot-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px; padding: 6px 6px 30px; margin-inline: -6px; }
  .shot-row li { flex: 0 0 70%; scroll-snap-align: center; }
  .shot-row li:nth-child(even) { transform: none; }
  .store-btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .app-card dl { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Kokodak / Egg Song - the app's "Podwórko" (backyard) look: cream yard, tomato red, yolk
   yellow, eggshell and cocoa text, Baloo 2 extra-bold headings and soft egg shapes behind the
   hero. Colours: apps/kurnik/lib/src/yard/palette.dart. */
@font-face { font-family: 'Baloo 2'; src: url('/assets/fonts/Baloo2-Regular.woff2?v=dedf658c18') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Baloo 2'; src: url('/assets/fonts/Baloo2-SemiBold.woff2?v=fbe3774855') format('woff2'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'Baloo 2'; src: url('/assets/fonts/Baloo2-ExtraBold.woff2?v=d77a4a890d') format('woff2'); font-weight: 700 900; font-display: swap; }
:root {
  --brand: #c43d22;
  --brand-ink: #a8321c;
  --brand-soft: #ffe9de;
  --tint: #fff6e0;
  --accent: #ffc23d;
  --ok: #2e7d32;
  --ink: #3b2a20;
  --ink-2: #6e5240;
  --line-c: rgba(59, 42, 32, .12);
  --display: 'Baloo 2', ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --body: 'Baloo 2', ui-rounded, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display-weight: 800;
  --radius: 26px;
  --shadow: 0 1px 2px rgba(59, 42, 32, .06), 0 12px 30px -14px rgba(59, 42, 32, .26);
}
h1, h2, h3 { line-height: 1.05; }
.hero { background: linear-gradient(180deg, #fff1d2 0%, #fff6e0 100%); }
.hero-deco::before, .hero-deco::after {
  content: ''; position: absolute; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: #f1e3c8; opacity: .85;
}
.hero-deco::before { width: 420px; height: 520px; right: 6%; top: 40px; transform: rotate(10deg); }
.hero-deco::after { width: 180px; height: 230px; left: -60px; bottom: -40px; background: #ffd77a; opacity: .7; transform: rotate(-18deg); }
.problem .quote::before { color: var(--brand); }
.feature-icon { border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%; }
.contact-card { background: linear-gradient(135deg, #d9472b, #a8321c); }
