@font-face { font-family: "Geist"; src: url("/fonts/geist-sans/Geist-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-sans/Geist-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-sans/Geist-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono/GeistMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #ffffff;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --faint: #a1a1a1;
  --line: #ebebeb;
  --soft: #f5f5f7;
  --danger: #c4231a;
  --ok: #157f3c;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.5rem, 7vw, 4.75rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1.02; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; }
h3 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .8125rem; letter-spacing: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 520px) { .wrap { padding: 0 16px; } }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -0.03em; font-size: 1.125rem; text-decoration: none; } /* the logo mark, as on the landing (QA minor) */
.brand svg { flex: none; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: .9375rem; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--fg); }
.nav-links a.btn { color: var(--bg); }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }
/* the panel's company name beside "Wyloguj się" (gate 2026-11-07: four lines at 320 px, out of the bar): two lines at
   most, and below 360 px the mark alone stands for Footler, so the name has the room */
#wsName { min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; text-wrap: balance; }
@media (max-width: 359px) { .nav-links:has(#wsName) { gap: 12px; } .brand .brand-word { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--fg); background: var(--fg); color: var(--bg); font: 500 .9375rem var(--sans); text-decoration: none; cursor: pointer; transition: opacity .15s; white-space: nowrap; }
.btn:hover { opacity: .86; }
.btn.secondary { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.secondary:hover { border-color: var(--fg); opacity: 1; }
.btn.sm { height: 36px; padding: 0 14px; font-size: .875rem; }
.btn:disabled { opacity: .5; cursor: progress; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--faint); cursor: pointer; }
.link:hover { text-decoration-color: var(--fg); }

/* sections */
section { padding: 112px 0; border-top: 1px solid var(--line); }
@media (max-width: 720px) { section { padding: 72px 0; } }
.hero { padding: 96px 0 72px; border-top: 0; }
.hero p.lead { font-size: 1.1875rem; color: var(--muted); max-width: 36em; margin-top: 24px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.head { display: grid; grid-template-columns: 200px 1fr; gap: 24px; margin-bottom: 56px; }
.head .mono { color: var(--faint); padding-top: 10px; }
.head p { color: var(--muted); max-width: 34em; margin-top: 16px; font-size: 1.0625rem; }
@media (max-width: 860px) { .head { grid-template-columns: 1fr; gap: 8px; } .head .mono { padding-top: 0; } }

.cols { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.cols > div { padding: 28px 28px 0 0; }
.cols > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.cols p { color: var(--muted); margin-top: 8px; }
.cols .mono { color: var(--faint); display: block; margin-bottom: 20px; }
@media (max-width: 860px) {
  .cols { grid-template-columns: 1fr; }
  .cols > div, .cols > div + div { padding: 24px 0; border-left: 0; }
  .cols > div + div { border-top: 1px solid var(--line); }
}

/* demo / generator */
.demo { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 72px; }
.demo-form { padding: 24px; border-right: 1px solid var(--line); }
.demo-stage { background: var(--soft); padding: 48px 32px; display: flex; flex-direction: column; justify-content: center; min-height: 360px; }
.mail-card { background: #ffffff; color: #111111; border-radius: 10px; padding: 28px 28px 32px; max-width: 480px; width: 100%; margin: 0 auto; border: 1px solid #ececec; }
.mail-card .body { font-size: .9375rem; line-height: 1.6; color: #333333; margin-bottom: 20px; }
.mail-card img.sig { display: block; width: 400px; max-width: 100%; height: auto; }
.stage-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; max-width: 480px; width: 100%; margin: 16px auto 0; }
@media (max-width: 860px) {
  .demo { grid-template-columns: 1fr; }
  .demo-form { border-right: 0; border-bottom: 1px solid var(--line); }
  .demo-stage { padding: 24px 16px; min-height: 0; }
  .mail-card { padding: 20px; }
}

/* forms */
label, .label { display: block; font-size: .8125rem; color: var(--muted); margin-bottom: 6px; }
input, select { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); font: 400 .9375rem var(--sans); }
input::placeholder { color: var(--faint); }
input:focus, select:focus { outline: none; border-color: var(--fg); }
.field { margin-bottom: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--muted); height: 30px; padding: 0 12px; border-radius: 6px; font: 500 .8125rem var(--sans); cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.swatches button { width: 24px; height: 24px; border-radius: 50%; border: 0; cursor: pointer; outline-offset: 2px; }
.swatches button[aria-pressed="true"] { outline: 2px solid var(--fg); }
.swatches input[type=color] { width: 28px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 50%; overflow: hidden; cursor: pointer; }
.swatches input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.swatches input[type=color]::-webkit-color-swatch { border: 0; }

/* upload */
.drop { display: block; border: 1px dashed var(--faint); border-radius: 12px; padding: 48px 24px; text-align: center; cursor: pointer; transition: background .15s, border-color .15s; }
.drop:hover, .drop.over { border-color: var(--fg); background: var(--soft); }
.drop img { max-height: 160px; margin-top: 20px; border-radius: 6px; }
.audit-row { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.audit-row input { flex: 1; min-width: 220px; height: 44px; }
.score { display: flex; align-items: baseline; gap: 20px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.score b { font-size: 4rem; font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.score b small { font-size: 1.25rem; color: var(--faint); font-weight: 400; letter-spacing: 0; }
.findings { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 32px 0; }
.findings ul { margin: 12px 0 0; padding: 0; list-style: none; }
.findings li { padding: 8px 0; border-top: 1px solid var(--line); color: var(--muted); }
.proposals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.proposal { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.proposal .pv { background: #ffffff; padding: 20px; border-bottom: 1px solid var(--line); }
.proposal .pv img { display: block; width: 100%; height: auto; }
.proposal .meta { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.proposal .meta p { color: var(--muted); font-size: .9375rem; flex: 1; }
.proposal .meta .btn { margin-top: 12px; align-self: flex-start; }
@media (max-width: 860px) { .findings, .proposals { grid-template-columns: 1fr; } }
.error { color: var(--danger); }
.spin { width: 14px; height: 14px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* pricing */
.price-cols > div { display: flex; flex-direction: column; }
.price { font-size: 3rem; font-weight: 600; letter-spacing: -0.05em; line-height: 1; margin: 24px 0 6px; }
.price small { font-size: .9375rem; letter-spacing: 0; color: var(--muted); font-weight: 400; }
.price-cols ul { list-style: none; padding: 0; margin: 24px 0 28px; flex: 1; }
.price-cols li { padding: 7px 0; color: var(--muted); font-size: .9375rem; }
.price-cols li::before { content: "—"; color: var(--faint); margin-right: 10px; }
.calc { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.calc input[type=range] { flex: 1; min-width: 180px; height: auto; padding: 0; border: 0; accent-color: var(--fg); }

/* faq */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding: 0 0 20px; max-width: 42em; }

/* the footer starts below the fold: the panel and the buy page build their content in the browser (the panel's
   views are all hidden until its script picks one, and so is the footer) */
body > main { min-height: calc(100dvh - 61px); }
body:not(:has(> main:not([hidden]))) > footer { display: none; }
footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: .875rem; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
/* each dot sits in the gap before its link; before a line's first link it falls left of the list, where the clip hides
   it, so a wrapped line never starts with a dot (the footer's five links wrap on phones) */
.legal-links { display: flex; flex-wrap: wrap; column-gap: 19px; clip-path: inset(-8px -8px -8px -3px); }
.legal-links a { position: relative; padding-block: 4px; text-decoration: none; transition: color .15s; }
.legal-links a:hover { color: var(--fg); }
.legal-links a::before { content: "·"; position: absolute; left: -12px; width: 5px; text-align: center; color: var(--faint); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-size: .875rem; opacity: 0; pointer-events: none; transition: .2s; z-index: 50; width: max-content; max-width: min(560px, calc(100vw - 32px)); text-wrap: pretty; } /* as wide as its words up to about 70 characters: at left 50% an auto width shrinks to half the screen */
.toast.show { opacity: 1; transform: translate(-50%, 0); }
/* a toast with an action ("Undo", "Try again"): its button takes clicks, as in site.css (the panel's never did) */
.toast.act { display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100vw - 32px); padding: 6px 6px 6px 16px; }
.toast.act.show { pointer-events: auto; }
.toast button { flex: none; white-space: nowrap; height: 30px; padding: 0 12px; border: 0; border-radius: 6px; background: rgba(255,255,255,.16); color: inherit; font: inherit; font-weight: 500; cursor: pointer; transition: background .15s ease; }
.toast button:hover { background: rgba(255,255,255,.26); }

/* panel */
.panel { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 48px; padding: 40px 0 96px; align-items: start; }
@media (max-width: 980px) { .panel { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.block { padding: 28px 0; border-top: 1px solid var(--line); }
.block:first-child { border-top: 0; padding-top: 0; }
.block-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.asset { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.asset .thumb { width: 64px; height: 40px; border: 1px solid var(--line); border-radius: 6px; background: #fff center/contain no-repeat; }
.people { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.people td { padding: 12px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.people tr:last-child td { border-bottom: 1px solid var(--line); }
.people tr { cursor: pointer; }
.people tr:hover td { background: var(--soft); }
.people tr.sel td { background: var(--soft); }
.people tr.sel td:first-child { box-shadow: inset 2px 0 0 var(--fg); }
.people .x { background: none; border: 0; color: var(--faint); cursor: pointer; font-size: 1rem; padding: 4px 8px; border-radius: 6px; }
.people .x:hover { color: var(--danger); }
.sticky { position: sticky; top: 84px; }
.sig-stage { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 32px 20px; }
.sig-stage .mail-card { max-width: none; }
.sig-stage table { border-collapse: collapse; }
.sig-stage img { display: block; }
/* install guide (install.js): the steps box clips while it animates to the next guide's height */
.install { margin-top: 24px; }
.install .howto { overflow: hidden; }
.install-note { font-size: .875rem; color: var(--muted); margin-top: 12px; }
.howto { color: var(--muted); font-size: .9375rem; }
.howto ol { margin: 0; padding-left: 1.2em; }
.howto li { padding: 3px 0; }
.note { font-size: .875rem; color: var(--muted); border-left: 2px solid var(--line); padding: 2px 0 2px 12px; margin-top: 16px; }
.note.warn { border-color: var(--danger); }
/* trial bar at the top of the panel (panel.js renderTrial): across both columns, the buy button on the right */
.note.trial { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-top: 0; transition: height .3s ease, border-color .3s ease; }
/* an unpaid account (warn): what ended, in ink, over the countdown to the Footler ad or the ad's notice */
.trial-copy { display: grid; gap: 2px; min-width: 0; flex: 0 1 auto; }
.note.trial.warn #trialText { color: var(--fg); font-weight: 600; }
.center { max-width: 440px; margin: 96px auto; }
dialog { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--fg); padding: 24px; width: min(440px, calc(100vw - 32px)); }
dialog::backdrop { background: rgb(0 0 0 / .35); }

/* chat */
.chat { display: flex; flex-direction: column; border-right: 1px solid var(--line); min-height: 460px; max-height: 560px; min-width: 0; }
.msgs { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 88%; font-size: .9375rem; line-height: 1.5; overflow-wrap: anywhere; }
.msg.bot { color: var(--fg); }
.msg.user { align-self: flex-end; background: var(--fg); color: var(--bg); padding: 8px 12px; border-radius: 12px 12px 2px 12px; }
.msg.user img { display: block; max-width: 180px; border-radius: 6px; }
.msg.typing { color: var(--faint); display: flex; gap: 8px; align-items: center; }
.msg ul { margin: 6px 0 0; padding-left: 1.1em; color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 20px 12px; }
.chips button { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; height: 30px; padding: 0 12px; font: 400 .8125rem var(--sans); cursor: pointer; }
.chips button:hover { color: var(--fg); border-color: var(--fg); }
.composer { display: flex; gap: 8px; align-items: center; padding: 12px; border-top: 1px solid var(--line); }
.composer input { flex: 1; min-width: 0; }
.attach { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; color: var(--muted); cursor: pointer; margin: 0; flex: none; }
.attach:hover { color: var(--fg); background: var(--soft); }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 480px; width: 100%; margin: 16px auto 0; }
.thumbs button { background: #ffffff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; text-align: left; font: 500 .75rem var(--sans); color: #6b6b6b; }
.thumbs button[aria-pressed="true"] { border-color: var(--fg); box-shadow: 0 0 0 1px var(--fg); }
.thumbs img { width: 100%; height: 56px; object-fit: contain; object-position: left center; }
@media (max-width: 860px) { .chat { border-right: 0; border-bottom: 1px solid var(--line); min-height: 380px; max-height: 480px; } }

/* account and purchase: login form, buy page (motion helpers in common.js) */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
#onboarding, #app, #buy { animation: rise .3s ease backwards; }
#onboarding.leaving, .leaving-out { opacity: 0; transition: opacity .2s ease; }
#logout { animation: fade .2s ease backwards; }
.login-box { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.login h3 { margin-bottom: 20px; line-height: 24px; }
.btn:has(> .spin) { position: relative; }
.btn > .spin { position: absolute; left: 16px; top: calc(50% - 7px); opacity: 0; transition: opacity .2s ease; }
.btn[aria-busy="true"] > .spin { opacity: 1; }
.swap { transition: opacity .2s ease; }
.swap.swapping { opacity: 0; }
.reveal { display: grid; grid-template-rows: 0fr; opacity: 0; transition: opacity .2s ease, grid-template-rows .3s ease .2s; }
.reveal.open { grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows .3s ease, opacity .2s ease .25s; }
.reveal > * { overflow: hidden; min-height: 0; }
.reveal .error { font-size: .875rem; line-height: 22px; padding-bottom: 14px; }
.morph { transition: height .3s ease; }
.morph > * { transition: opacity .2s ease; }
.morph.morph-out > * { opacity: 0; }
.morph.morphing { overflow: hidden; }
.buy-total { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; line-height: 28px; margin: 8px 0 4px; }
.stack { display: grid; gap: 12px; margin-top: 28px; }
.stack .link { justify-self: center; padding: 10px 12px; }
.skeleton span { display: block; height: 40px; margin-bottom: 14px; border-radius: 8px; background: linear-gradient(90deg, var(--soft) 25%, var(--line) 50%, var(--soft) 75%) 0 0 / 200% 100%; animation: shimmer 1.2s linear infinite; }
.skeleton span:first-child { width: 60%; height: 36px; }
@keyframes shimmer { to { background-position: -200% 0; } }
