/* /ico — public page "eFaktúra 2027: týka sa ma to?". Uses tokens from base.css only.
   The memorable element: the IČO field drawn as the digit boxes of a Slovak tax form, and the stamp on the answer. */

.ico-top, .ico, .content > .foot { max-width: 1120px; margin-inline: auto; }
.ico-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-5) var(--s-6) 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 650; text-decoration: none; }
.brand svg { width: 28px; height: 28px; color: var(--stamp); }
.top-link { color: var(--ink-2); font-size: var(--f-13); text-decoration: none; }
.top-link:hover { color: var(--stamp); text-decoration: underline; }
.ico { padding: 0 var(--s-6) var(--s-8); }

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--s-8); align-items: start;
  padding: var(--s-8) 0 var(--s-7); }
.hero-main { min-width: 0; }

/* key dates: a real sequence, so a timeline */
.dates { margin: var(--s-2) 0 0; padding: 0; list-style: none; border-left: 1.5px solid var(--rule); }
.dates-h { font-size: var(--f-13); font-weight: 500; color: var(--ink-2); margin: var(--s-3) 0 var(--s-3); }
.dates li { position: relative; padding: 0 0 var(--s-5) var(--s-5); }
.dates li:last-child { padding-bottom: 0; }
.dates li::before { content: ""; position: absolute; left: -6px; top: 7px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--ink-2); }
.dates li.now::before { background: var(--stamp); border-color: var(--stamp); box-shadow: 0 0 0 4px var(--stamp-wash); }
.dates li.key::before { border-color: var(--stamp); background: var(--stamp); }
.dates time { display: block; font-weight: 650; font-variant-numeric: tabular-nums; }
.dates li.key time { color: var(--stamp); }
.dates span { display: block; color: var(--ink-2); font-size: var(--f-13); line-height: 20px; }
.hero h1 { font-size: var(--f-41); line-height: 48px; letter-spacing: -0.02em; }
.lead { margin: var(--s-4) 0 var(--s-6); font-size: var(--f-17); line-height: 28px; color: var(--ink-2); max-width: 60ch; }
.lead #left { color: var(--ink); font-weight: 550; }

.comb-label { display: block; font-size: var(--f-13); font-weight: 500; color: var(--ink-2); margin-bottom: var(--s-2); }
.comb-row { display: flex; align-items: stretch; gap: var(--s-3); flex-wrap: wrap; }

/* One real input (accessible, pastes, autofill) drawn as eight boxes. Digits are tabular, so 1ch = one digit.
   #ico beats base.css's input:not(...) rule. */
.comb-row #ico {
  --cell: 1.72ch;
  font: 600 var(--f-41)/1 "Onest", system-ui, sans-serif; font-variant-numeric: tabular-nums;
  width: calc(8 * var(--cell) + 6px); min-height: 0; height: 72px; flex: none;
  padding: 0 0 0 calc((var(--cell) - 1ch) / 2 + 3px); letter-spacing: calc(var(--cell) - 1ch);
  border: 0; border-radius: var(--r-ctl); color: var(--ink); caret-color: var(--stamp);
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(var(--cell) - 1.5px), var(--rule) calc(var(--cell) - 1.5px) var(--cell))
      3px 0 / calc(8 * var(--cell) - 1.5px) 100% no-repeat,
    var(--sheet);
  box-shadow: inset 0 0 0 1.5px var(--ink-2);
}
.comb-row #ico::placeholder { color: transparent; }
.comb-row #ico:focus { outline: none; border-color: transparent; box-shadow: inset 0 0 0 2px var(--stamp), var(--focus); }
.comb-row #ico[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--bad); }
.go { min-height: 72px; padding: 0 var(--s-6); font-size: var(--f-17); }
.go[aria-busy="true"] { opacity: .7; cursor: progress; }
.src { margin: var(--s-3) 0 0; font-size: var(--f-13); color: var(--ink-2); }
#err:empty { display: none; }

/* ── waiting ──────────────────────────────────────────────────────────── */
.wait { display: flex; align-items: center; gap: var(--s-3); max-width: 760px; padding: var(--s-4) 0; color: var(--ink-2); }
.wait[hidden] { display: none; }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--stamp); opacity: .25; animation: blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dots i { animation: none; opacity: .7; } }

/* ── result: a document sheet with the stamp ──────────────────────────── */
.result { max-width: 760px; margin-bottom: var(--s-8); scroll-margin-top: var(--s-5); }
.result[hidden] { display: none; }
.result .sheet { padding: var(--s-6) var(--s-6) var(--s-5); }
.firm { padding-right: 190px; }
.firm h2 { font-size: var(--f-26); line-height: 32px; }
.firm p { margin: var(--s-1) 0 0; color: var(--ink-2); }
.verdict { margin: var(--s-5) 0 0; padding-top: var(--s-5); border-top: 1px solid var(--rule); }
.verdict strong { display: block; font-size: var(--f-33); line-height: 40px; font-weight: 650; letter-spacing: -0.015em; }
.verdict p { margin: var(--s-3) 0 0; }
.verdict.unsure strong { font-size: var(--f-26); line-height: 32px; }
.dph { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-3); margin-top: var(--s-4); }
.dph span:last-child { color: var(--ink-2); }
.warns { list-style: none; padding: 0; margin: var(--s-4) 0 0; display: grid; gap: var(--s-2); }
.warns li { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); align-items: baseline; }

.result .stamp { top: var(--s-6); bottom: auto; right: var(--s-6); }

/* checklist: a real sequence, so it is numbered */
.steps { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--rule); }
.steps-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.progress { font-size: var(--f-13); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bar { height: 4px; border-radius: 2px; background: var(--rule); margin: var(--s-3) 0 var(--s-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ok); width: 0; transition: width .25s ease; }
ol.check { list-style: none; counter-reset: step; margin: 0; padding: 0; }
ol.check li { counter-increment: step; border-bottom: 1px solid var(--rule); }
ol.check li:last-child { border-bottom: 0; }
ol.check label { display: grid; grid-template-columns: 28px 22px 1fr; gap: var(--s-2); align-items: start; padding: var(--s-3) 0; cursor: pointer; }
ol.check label::before { content: counter(step) "."; color: var(--ink-2); font-variant-numeric: tabular-nums; font-weight: 550; line-height: 24px; }
ol.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--ok); }
ol.check input:checked + span { color: var(--ink-2); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink-2) 50%, transparent); }

.cta { display: grid; grid-template-columns: 1fr auto; gap: var(--s-3) var(--s-5); align-items: center;
  margin-top: var(--s-5); padding: var(--s-5); border-radius: var(--r-ctl); background: var(--stamp-wash); }
.cta h3 { font-size: var(--f-17); }
.cta p { margin: var(--s-1) 0 0; color: var(--ink-2); }
.cta-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.disclaimer { margin: var(--s-4) 0 0; font-size: var(--f-13); color: var(--ink-2); }
.again { margin-top: var(--s-4); }

/* ── facts & FAQ (always visible, they are the page's content for search too) ── */
.facts { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-6); padding: var(--s-7) 0;
  border-top: 1px solid var(--rule); }
.facts h2, .faq h2 { font-size: var(--f-21); line-height: 28px; margin-bottom: var(--s-3); }
.risks { margin: 0; }
.risk { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); }
.risk:first-child { padding-top: 0; }
.risk dt { color: var(--ink); }
.risk dd { margin: 0; font-size: var(--f-21); font-weight: 650; }

.faq { padding: var(--s-7) 0 0; border-top: 1px solid var(--rule); max-width: 760px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) 0; cursor: pointer;
  font-weight: 550; font-size: var(--f-17); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover span { color: var(--stamp); }
.faq-ico { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--ink-2); transition: transform .15s; }
.faq details[open] .faq-ico { transform: rotate(180deg); color: var(--stamp); }
.faq details p { margin: 0 0 var(--s-4); color: var(--ink-2); }

/* ── small screens ────────────────────────────────────────────────────── */
@media (max-width: 1023px) and (min-width: 768px) { .hero { grid-template-columns: 1fr; gap: var(--s-6); } .dates-wrap { max-width: 520px; } }
@media (max-width: 767px) {
  .ico-top { padding: var(--s-4) var(--s-4) 0; }
  .ico { padding: 0 var(--s-4) var(--s-7); }
  .hero { grid-template-columns: 1fr; gap: var(--s-6); padding: var(--s-6) 0 var(--s-5); }
  .hero h1 { font-size: var(--f-33); line-height: 40px; }
  .lead { font-size: var(--f-15); line-height: 24px; margin-bottom: var(--s-5); }
  .comb-row #ico { font-size: clamp(28px, 8.6vw, 41px); height: 64px; }
  .comb-row { flex-direction: column; }
  .go { min-height: 52px; width: 100%; }
  .result .sheet { padding: var(--s-5) var(--s-4) var(--s-4); }
  .firm { padding-right: 0; }
  .firm h2 { font-size: var(--f-21); line-height: 28px; }
  .result .stamp { position: static; justify-self: start; display: inline-grid; margin: 0 0 var(--s-4); transform: rotate(-4deg); }
  .verdict strong { font-size: var(--f-26); line-height: 32px; }
  .cta { grid-template-columns: 1fr; padding: var(--s-4); }
  .cta-actions .btn { width: 100%; }
  .facts { grid-template-columns: 1fr; gap: var(--s-4); padding: var(--s-6) 0; }
  .risk dd { font-size: var(--f-17); }
  .faq { padding-top: var(--s-6); }
}
