/* kordar.ai — the business site.
 *
 * The palette, the ruled paper, the sheet and the stamp are lifted verbatim
 * from the QR landing (polandscan/landing/server.py:CSS), because the letter,
 * the landing and this site are one chain seen by one reader: a Polish
 * accountant who lives inside documents. Everything here is a document
 * device — a stamp, a form section, a ledger column — not a web device.
 *
 * Margin discipline: every rule sets margin-top only. Nothing sets bottom
 * margins, so no two components can collapse into each other unpredictably.
 */

:root {
  --paper:#EDF0EA; --ink:#1C2432; --stamp:#3B3E8C; --faint:#6B6EAE;
  --rule:#C4CCC0; --quiet:#5C6660; --sheet:#F7F8F4; --warn:#A8422E;
}

* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }

body {
  margin:0; padding:0 20px 72px; color:var(--ink); background:var(--paper);
  font-family:Palatino,"Palatino Linotype","Book Antiqua",ui-serif,serif;
  font-size:17px; line-height:1.62;
  background-image:repeating-linear-gradient(to bottom,transparent 0 30px,rgba(196,204,192,.28) 30px 31px);
}

.sheet {
  max-width:42rem; margin:0 auto; background:var(--sheet);
  border:1px solid var(--rule); border-top:none;
  padding:0 clamp(22px,6vw,54px) 48px;
  box-shadow:0 1px 0 rgba(28,36,50,.04),0 18px 44px -30px rgba(28,36,50,.5);
}

.skip {
  position:absolute; left:-9999px; background:var(--stamp); color:var(--sheet);
  padding:10px 16px; text-decoration:none;
}
.skip:focus { left:50%; top:0; transform:translateX(-50%); z-index:2; }

/* Utility layer: monospace marks metadata — a masthead, a label, a date, a
   section letter. Anything that is a sentence stays in the serif, however
   small: five lines of monospace prose is a machine talking, not a person. */
.masthead, .langs, .toc, .eyebrow, .term-date, .rub-letter, .col-head, .gives-head,
.case-meta, .step-n, .label, .stamp .what, .stamp .code, .stamp-sub,
.klauzula dt, .draft-flag, footer, .rub-label, .founder-mono {
  font-family:ui-monospace,"SF Mono","Cascadia Mono",Menlo,monospace;
}

/* ── Masthead ─────────────────────────────────────────────────────────── */

.masthead {
  font-size:11.5px; letter-spacing:.16em; text-transform:uppercase;
  color:var(--quiet); border-bottom:1px solid var(--rule); padding:26px 0 12px;
  display:flex; justify-content:space-between; align-items:baseline;
  gap:16px; flex-wrap:wrap;
}
.brand { color:var(--ink); text-decoration:none; font-weight:600; letter-spacing:.2em; }
.brand:hover { color:var(--stamp); }
.brand-sub { color:var(--quiet); font-weight:400; letter-spacing:.16em; }

.langs { font-size:11px; letter-spacing:.1em; display:flex; gap:14px; }
.langs a { color:var(--quiet); text-decoration:none; border-bottom:1px solid transparent; }
.langs a:hover { color:var(--stamp); border-bottom-color:var(--stamp); }
.langs a[aria-current="true"] { color:var(--stamp); border-bottom-color:var(--stamp); }

/* ── Table of contents ────────────────────────────────────────────────────
   The nav is the checklist at the top of a form: the section you are in is
   the ticked box. No underline, no pill, no active colour bar. */

.toc { padding:14px 0 0; border-bottom:1px solid var(--rule); }
.toc ul {
  list-style:none; margin:0; padding:0 0 12px;
  display:flex; flex-wrap:wrap; gap:6px 20px;
  font-size:12px; letter-spacing:.1em; text-transform:uppercase;
}
.toc a {
  color:var(--quiet); text-decoration:none;
  display:inline-flex; align-items:baseline; gap:7px;
}
.toc a:hover { color:var(--stamp); }
.toc a[aria-current="page"] { color:var(--ink); }
.box { color:var(--faint); }
.box::before { content:"["; }
.box::after { content:"]"; }
.tick { visibility:hidden; padding:0 1px; }
.toc a[aria-current="page"] .box { color:var(--stamp); }
.toc a[aria-current="page"] .tick { visibility:visible; }

/* ── Prose ────────────────────────────────────────────────────────────── */

h1 {
  font-size:clamp(25px,5.6vw,34px); font-weight:600; line-height:1.2;
  letter-spacing:-.012em; margin:30px 0 0; max-width:26ch;
}
/* The eyebrow is a class, not a level. It used to be <h2>, which put an <h3>
   block title under an <h1> with nothing in between — Lighthouse flags the
   gap and a screen reader really does lose the outline. Now the level follows
   the document structure and the size follows the class. */
.eyebrow {
  font-size:11.5px; letter-spacing:.16em; text-transform:uppercase;
  color:var(--quiet); font-weight:500; margin:44px 0 0;
  font-family:ui-monospace,"SF Mono","Cascadia Mono",Menlo,monospace;
}
.rub-title, .case-title, .founder-text h2, h3 {
  font-size:19px; font-weight:600; line-height:1.3; margin:26px 0 0;
}
p { margin:15px 0 0; max-width:62ch; }
.lede { font-size:18.5px; }
a { color:var(--stamp); }
a:hover { color:var(--ink); }
main ul { margin:12px 0 0; padding-left:1.15em; max-width:62ch; }
main li { margin-top:6px; }
strong { font-weight:600; }

:focus-visible { outline:2px solid var(--stamp); outline-offset:2px; }

/* ── The first screen ─────────────────────────────────────────────────────
   A question the reader answers in their own head before scrolling, then what
   we do about it, then one thing to click. Deliberately more air than anything
   else on the site: the rest of the page is a document, this is the cover. */

.hero { padding:52px 0 8px; }
.hero-label {
  font-family:ui-monospace,"SF Mono","Cascadia Mono",Menlo,monospace;
  font-size:10.5px; letter-spacing:.2em; text-transform:uppercase;
  color:var(--quiet); margin:0;
}
.hero-q {
  font-size:clamp(29px,6.6vw,42px); font-weight:600; line-height:1.14;
  letter-spacing:-.018em; margin:18px 0 0; max-width:24ch;
}
.hero-promise {
  font-size:19.5px; line-height:1.55; margin:26px 0 0; max-width:54ch;
}
.hero-cta { margin:34px 0 0; }
.hero-note { font-size:14.5px; color:var(--quiet); margin:14px 0 0; max-width:52ch; }
.btn-lg { font-size:17.5px; padding:16px 28px; }

/* The blank of an official form, answered by a stamp. The rule is decoration;
   the stamped word is the answer and stays real text. */
.hero-blank {
  margin:22px 0 0; display:flex; align-items:center; gap:0;
  flex-wrap:wrap; max-width:36ch;
}
.blank-rule {
  flex:1 1 11rem; height:0; border-bottom:2px dotted var(--rule);
  align-self:flex-end; margin-bottom:14px; min-width:5rem;
}
.blank-stamp {
  font-family:ui-monospace,"SF Mono","Cascadia Mono",Menlo,monospace;
  font-size:clamp(17px,4vw,23px); font-weight:600; letter-spacing:.1em;
  color:var(--stamp); border:2.5px solid var(--stamp); border-radius:3px;
  padding:6px 16px 5px; transform:rotate(-3.5deg); opacity:.9;
  box-shadow:inset 0 0 0 1px rgba(59,62,140,.28);
  margin-left:-6px;
  animation:press .5s cubic-bezier(.2,1.4,.4,1) .35s both;
}

/* ── Terminarz as a wall calendar ─────────────────────────────────────────
   The audience keeps one of these above the desk. The date that costs money
   is the one you can read from across the room. */

.kalendarz {
  margin-top:52px; border:1px solid var(--rule); border-top:3px solid var(--stamp);
  border-radius:3px; background:var(--sheet);
}
.kal-head {
  display:flex; justify-content:space-between; align-items:baseline; gap:14px;
  padding:16px 22px 14px; border-bottom:1px solid var(--rule);
  font-family:ui-monospace,"SF Mono","Cascadia Mono",Menlo,monospace;
  font-size:11.5px; letter-spacing:.16em; text-transform:uppercase;
}
.kal-title { color:var(--stamp); font-weight:600; }
.kal-span { color:var(--quiet); }
.kal-rows { list-style:none; margin:0; padding:0; }
.kal-row {
  display:grid; grid-template-columns:5.6rem 1fr; gap:0 20px;
  padding:20px 22px; border-top:1px solid var(--rule); align-items:start;
}
.kal-rows > .kal-row:first-child { border-top:none; }
.kal-date {
  font-family:ui-monospace,"SF Mono","Cascadia Mono",Menlo,monospace;
  text-align:center; line-height:1;
}
.kal-date b {
  display:block; font-size:34px; font-weight:600; color:var(--stamp);
  letter-spacing:-.02em;
}
.kal-date i {
  display:block; font-style:normal; font-size:10.5px; letter-spacing:.12em;
  text-transform:uppercase; color:var(--quiet); margin-top:6px;
}
.kal-what { font-size:16.5px; line-height:1.5; }
/* The end of the grace period: the only row that is a deadline rather than a
   date, so the only one that gets the accent. */
.kal-now { background:rgba(59,62,140,.055); box-shadow:inset 3px 0 0 var(--stamp); }
.kal-note {
  font-size:15px; color:var(--quiet); line-height:1.55; max-width:none;
  margin:0; padding:16px 22px 20px; border-top:1px solid var(--rule);
}

/* ── The registration mark ────────────────────────────────────────────────
   "Are these people real" is an objection, and an objection belongs where it
   arises — after the offer, not instead of it. */

.mark-field { margin-top:40px; }
.mark {
  display:inline-block; border:1.5px solid var(--rule); border-radius:3px;
  padding:8px 14px 7px; transform:rotate(-1.4deg); color:var(--quiet);
  font-family:ui-monospace,"SF Mono","Cascadia Mono",Menlo,monospace;
}
.mark-what {
  display:block; font-size:9px; letter-spacing:.22em; text-transform:uppercase;
  color:var(--quiet); margin-bottom:2px;
}
.mark-code { display:block; font-size:12px; letter-spacing:.08em; }

@media (max-width:420px) {
  .kal-row { grid-template-columns:4.4rem 1fr; gap:0 14px; padding:16px; }
  .kal-date b { font-size:27px; }
}

/* ── The stamp ────────────────────────────────────────────────────────────
   Same press as the landing. There it registers the letter; here it is the
   company's own pieczątka — the fastest way to answer "is this a real firm". */

.stamp-field { padding:34px 0 4px; }
.stamp {
  display:inline-block; transform:rotate(-2.6deg); border:2.5px solid var(--stamp);
  border-radius:3px; padding:13px 22px 11px; color:var(--stamp); opacity:.88;
  box-shadow:inset 0 0 0 1px rgba(59,62,140,.28);
  animation:press .5s cubic-bezier(.2,1.4,.4,1) both;
}
@keyframes press {
  from { transform:rotate(-2.6deg) scale(1.16); opacity:0; }
  60%  { opacity:.95; }
  to   { transform:rotate(-2.6deg) scale(1); opacity:.88; }
}
/* --stamp, not the lighter --faint the landing uses for the same line: at this
   size on the sheet, --faint measures below 4.5:1 and Lighthouse is right to
   fail it. Through the stamp's own .88 opacity this still lands near 6.4:1. */
.stamp .what {
  font-size:10.5px; letter-spacing:.2em; text-transform:uppercase;
  color:var(--stamp); display:block; margin-bottom:3px;
}
.stamp .code {
  font-size:clamp(22px,6vw,30px); font-weight:600; letter-spacing:.06em;
  line-height:1.05; display:block;
}
.stamp-sub {
  font-size:10.5px; letter-spacing:.14em; color:var(--stamp);
  display:block; margin-top:4px;
}

/* ── Terminarz: the KSeF calendar as a register of dates ──────────────── */

.terminarz { margin-top:16px; border-top:1px solid var(--rule); }
.term-row {
  display:grid; grid-template-columns:8.5rem 1fr; gap:4px 18px;
  padding:13px 0; border-bottom:1px solid var(--rule); align-items:baseline;
}
.term-date {
  font-size:12.5px; letter-spacing:.08em; color:var(--stamp); font-weight:600;
  white-space:nowrap;
}
.term-what { font-size:16px; }
.term-note { font-size:15px; color:var(--quiet); line-height:1.55; margin-top:14px; max-width:62ch; }

/* ── Rubryka: a service as a lettered section of an official form ─────── */

.rubryka { margin-top:34px; }
.rubryka .rub-title { display:flex; gap:12px; align-items:baseline; margin-top:0; }
.rub-letter {
  font-size:12px; color:var(--stamp); border:1px solid var(--stamp);
  border-radius:2px; padding:2px 7px; flex:none; font-weight:600;
}
.rub-label {
  font-size:10.5px; letter-spacing:.18em; text-transform:uppercase;
  color:var(--quiet); margin-top:16px;
}
.rub-list { margin-top:6px; }

/* ── Case: two columns of a ledger, before and after ──────────────────── */

.case { margin-top:38px; padding-top:26px; border-top:1px solid var(--rule); }
.case .case-title { margin-top:0; }
.case-meta {
  font-size:11px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--quiet); margin-top:5px;
}
.ledger { display:grid; gap:0; margin-top:18px; border:1px solid var(--rule); }
.col { padding:16px 18px 18px; }
.col + .col { border-top:1px solid var(--rule); }
.col.before { background:rgba(196,204,192,.16); }
.col-head {
  font-size:10.5px; letter-spacing:.18em; text-transform:uppercase;
  color:var(--quiet); display:block;
}
.col.after .col-head { color:var(--stamp); }
.col p { margin-top:7px; font-size:16px; }
.case-gives { font-size:16px; }
.gives-head {
  font-size:10.5px; letter-spacing:.18em; text-transform:uppercase;
  color:var(--quiet); display:block;
}
.case-link { font-size:15px; }

@media (min-width:560px) {
  .ledger { grid-template-columns:1fr 1fr; }
  .col + .col { border-top:none; border-left:1px solid var(--rule); }
}

/* ── Steps: the only real sequence on the site, so the only numbers ───── */

.steps { list-style:none; margin:18px 0 0; padding:0; counter-reset:step; }
.steps li {
  display:grid; grid-template-columns:2.1rem 1fr; gap:2px 14px;
  padding:14px 0; border-top:1px solid var(--rule);
}
.step-n { font-size:12px; color:var(--stamp); font-weight:600; padding-top:3px; }
.step-t { font-weight:600; }
.step-d { grid-column:2; color:var(--quiet); font-size:16px; }

/* ── Call to action ───────────────────────────────────────────────────── */

.cta {
  margin-top:40px; border:1px solid var(--stamp); border-left:3px solid var(--stamp);
  border-radius:3px; padding:22px 24px 26px; background:rgba(59,62,140,.04);
}
.cta .eyebrow { margin-top:0; color:var(--stamp); }
.cta-lede { font-size:18px; }
.btn {
  display:inline-block; font:inherit; font-size:16.5px; text-decoration:none;
  border-radius:3px; padding:13px 22px; transition:background .16s,color .16s;
}
.btn.primary { background:var(--stamp); color:var(--sheet); border:1px solid var(--stamp); }
.btn.primary:hover { background:var(--ink); border-color:var(--ink); color:var(--sheet); }
.cta-note { font-size:13.5px; color:var(--quiet); }

/* ── The enquiry form ─────────────────────────────────────────────────────
   Same controls as the landing: a document's fields, not a product's inputs.
   No rounded pills, no floating labels, no JavaScript. */

.enquiry { margin-top:18px; }
.enquiry label { display:block; margin-top:16px; }
.enquiry .label {
  font-size:10.5px; letter-spacing:.18em; text-transform:uppercase;
  color:var(--quiet); display:block; margin-bottom:6px;
  font-family:ui-monospace,"SF Mono","Cascadia Mono",Menlo,monospace;
}
.enquiry input[type=text], .enquiry textarea {
  width:100%; font:inherit; font-size:16.5px; color:var(--ink);
  background:var(--paper); border:1px solid var(--rule); border-radius:3px;
  padding:11px 13px;
}
.enquiry textarea { min-height:104px; resize:vertical; }
.enquiry input::placeholder, .enquiry textarea::placeholder {
  color:var(--quiet); opacity:.7;
}
/* Inline highlighting with no JavaScript: the browser validates type="email"
   before submitting, and :user-invalid fires only after the field has been
   touched — so an empty form is not painted red before anybody typed. The
   :invalid fallback is scoped the same way for browsers without it. */
.enquiry input:user-invalid,
.enquiry input:not(:placeholder-shown):invalid {
  border-color:var(--warn); box-shadow:inset 0 0 0 1px var(--warn);
}
.enquiry input:user-valid { border-color:var(--rule); }
.enquiry button[disabled] { opacity:.55; cursor:default; }
.enquiry button { margin-top:18px; border:1px solid var(--stamp); cursor:pointer; }
.enquiry .hint { font-size:13.5px; color:var(--quiet); margin-top:12px; }

/* The honeypot. Off-screen rather than display:none, because some bots skip
   fields that are not rendered at all. aria-hidden and tabindex="-1" keep it
   away from anyone using a keyboard or a screen reader. */
.hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

/* ── Notes, definition lists, link lists ──────────────────────────────── */

.note {
  margin-top:22px; border:1px solid var(--rule); border-left:3px solid var(--rule);
  border-radius:3px; padding:16px 20px 18px; background:rgba(196,204,192,.14);
  font-size:15.5px;
}
.note p { margin-top:10px; }
.note p:first-child { margin-top:0; }
.draft-note { border-color:var(--warn); background:rgba(168,66,46,.055); }
.draft-flag {
  display:inline-block; font-size:10px; letter-spacing:.16em;
  text-transform:uppercase; color:var(--warn); border:1px solid var(--warn);
  border-radius:2px; padding:3px 7px; margin-right:8px;
}

.klauzula {
  margin-top:20px; border:1px solid var(--rule); padding:20px 22px 22px;
  font-size:13.5px; line-height:1.58; color:var(--quiet);
  background:rgba(196,204,192,.1);
}
.klauzula dl { margin:0; }
.klauzula dt {
  font-size:10.5px; letter-spacing:.12em; text-transform:uppercase;
  color:var(--stamp); margin-top:15px;
}
.klauzula dl > dt:first-child { margin-top:0; }
.klauzula dd { margin:4px 0 0; }

.linklist { list-style:none; margin:18px 0 0; padding:0; }
.linklist li { padding:13px 0; border-top:1px solid var(--rule); margin-top:0; }
.linklist a { font-size:17px; }
.ln-desc {
  display:block; font-size:15px; color:var(--quiet);
  line-height:1.5; margin-top:4px; max-width:56ch;
}

/* ── Founder ──────────────────────────────────────────────────────────── */

.founder { margin-top:24px; display:flex; gap:22px; align-items:flex-start; flex-wrap:wrap; }
.founder-media { flex:none; }
.founder-photo {
  width:120px; height:120px; object-fit:cover; border:1px solid var(--rule);
  border-radius:3px; display:block;
}
.founder-mono {
  width:120px; height:120px; display:grid; place-items:center;
  border:2px solid var(--stamp); border-radius:3px; color:var(--stamp);
  font-size:34px; letter-spacing:.06em; opacity:.85;
}
.founder-text { flex:1 1 16rem; }
.founder-text h2 { margin-top:0; }

/* ── Legal card and footer ────────────────────────────────────────────── */

.legal-card {
  margin-top:18px; border:1px solid var(--rule); border-radius:3px;
  padding:18px 20px 20px; background:rgba(196,204,192,.1);
}
.legal-line { font-size:15.5px; margin-top:0; }
.legal-mail { font-size:15.5px; }

/* The footer is not decoration: it is the block a recipient of the paper
   letter compares against the sender line on that letter. It is therefore
   set in the same case and the same order as the letter, never uppercased —
   an uppercased e-mail address is a different string from the real one. */
footer {
  margin-top:44px; font-size:12px; letter-spacing:.03em;
  color:var(--quiet); border-top:1px solid var(--rule); padding-top:16px;
}
.foot-legal { margin-top:0; line-height:1.7; max-width:none; }
.foot-mail { margin-top:9px; line-height:1.9; max-width:none; }
footer a { color:var(--quiet); text-decoration:none; border-bottom:1px solid var(--rule); }
footer a:hover { color:var(--stamp); border-bottom-color:var(--stamp); }
.sep { padding:0 8px; color:var(--rule); }

/* ── Quality floor ────────────────────────────────────────────────────── */

@media (prefers-reduced-motion:reduce) {
  .stamp { animation:none; }
  .btn { transition:none; }
}

@media print {
  body { background:#fff; padding:0; }
  .sheet { box-shadow:none; border:none; max-width:none; padding:0; }
  .toc, .langs, .skip, .cta .btn { display:none; }
  .stamp { animation:none; }
  a { color:var(--ink); }
}
