/* easy-ai portal (EA-A06). Tokens of easy-brand-design (navy + mint, personality "Diskrétne",
   no own accent; status colours only for status). Same base as ea-web/src/assets/css/site.css
   (fonts, buttons, focus); one file, no inline styles (CSP style-src 'self'). Mobile first. */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2");
}

:root {
  --navy: #273955;
  --navy-700: #1d2c43;
  --mint: #b0c8be;
  --mint-soft: #d8e4dd;
  --mint-pale: #eef3f0;
  --bg: #ffffff;
  --surface-2: #f5f6f7;
  --line: #e2e5ea;
  --line-strong: #cdd2da;
  --text: #1a1a2e;
  --text-2: #475066;
  --text-3: #7a8295;
  --amber: #f59e0b;
  --amber-dark: #845906;
  --amber-soft: #fdf1d8;
  --green: #1d9e75;
  --green-dark: #0f6c4e;
  --green-soft: #e3f4ec;
  --red: #ef4444;
  --red-dark: #a31818;
  --red-soft: #fde4e4;
  --blue-dark: #035e87;
  --blue-soft: #e0f3fc;
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(20, 32, 47, .06), 0 0 0 1px rgba(20, 32, 47, .04);
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; color: var(--navy); font-weight: 700; text-wrap: balance; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; margin-top: 1.5rem; }
p { margin: 0 0 1em; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-700); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 4px; }
.mono, code { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); font-size: .9375rem; }
.lead { font-size: 1.0625rem; color: var(--text-2); }
.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; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.inline { display: inline; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 760px; }
main { flex: 1 0 auto; padding-top: 24px; padding-bottom: 48px; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }

/* header / footer */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo-text { font-weight: 700; font-size: 1.125rem; }
.logo-sub { color: var(--text-2); font-size: .9375rem; padding-left: 10px; border-left: 1px solid var(--line); }
.site-footer { background: var(--bg); border-top: 1px solid var(--line); color: var(--text-2); font-size: .875rem; }
.footer-inner { padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; }
.footer-inner p { margin: 0; }

/* cards */
.intro { margin-bottom: 20px; }
.card { background: var(--bg); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 20px; margin-bottom: 20px; }
.card--attention { border: 1px solid var(--amber); }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.page-head p { margin: 0; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 11px 22px; border-radius: var(--r-md);
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-700); color: #fff; }
.btn--primary:disabled { background: var(--line-strong); color: var(--text-2); cursor: not-allowed; }
.btn--secondary { background: var(--bg); color: var(--navy); border-color: var(--navy); }
.btn--secondary:hover { background: var(--navy); color: #fff; }
.btn--danger { background: var(--bg); color: var(--red-dark); border-color: var(--red-dark); }
.btn--danger:hover { background: var(--red-soft); }
.btn--link { background: none; border: none; color: var(--navy); padding: 4px 0; min-height: 0; text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.btn[disabled] { pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }
.actions .btn--primary { margin-left: auto; }
.actions-inline { font-size: .9375rem; }

/* fields */
.field { margin-bottom: 16px; }
.field label, fieldset legend { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 6px; color: var(--text); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
}
.field textarea { min-height: 96px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; }
.field--error input { border-color: var(--red-dark); }
.field-hint { color: var(--text-2); font-size: .875rem; margin: 6px 0 0; }
.field-error { color: var(--red-dark); font-size: .875rem; margin: 6px 0 0; font-weight: 500; }
.grid-2 { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 4px 10px; align-items: start; margin: 12px 0; }
.check input[type="checkbox"] { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--navy); }
.check label { font-size: .9375rem; }
.check .field-error { grid-column: 2; }

fieldset.choices { border: 0; padding: 0; margin: 0 0 16px; }
.choice { display: grid; grid-template-columns: 24px 1fr auto; gap: 2px 10px; align-items: baseline; padding: 14px; border: 1px solid var(--line-strong); border-radius: var(--r-md); margin-bottom: 10px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--navy); background: var(--mint-pale); }
.choice input { accent-color: var(--navy); width: 18px; height: 18px; }
.choice-title { font-weight: 600; }
.choice-price { font-weight: 600; }
.choice-note { grid-column: 2 / 4; color: var(--text-2); font-size: .875rem; }
.note { background: var(--mint-pale); border-radius: var(--r-md); padding: 12px 14px; font-size: .9375rem; }

/* alerts and badges (colour + dot, never colour alone) */
.alert { border-radius: var(--r-md); padding: 12px 14px; margin: 0 0 16px; font-size: .9375rem; border: 1px solid transparent; }
.alert--info { background: var(--blue-soft); color: var(--blue-dark); }
.alert--success { background: var(--green-soft); color: var(--green-dark); }
.alert--warning { background: var(--amber-soft); color: var(--amber-dark); }
.alert--error { background: var(--red-soft); color: var(--red-dark); }
.alert a { color: inherit; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--text-2); font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.badge--ok { background: var(--green-soft); color: var(--green-dark); }
.badge--ok .badge-dot { background: var(--green); }
.badge--pending { background: var(--amber-soft); color: var(--amber-dark); }
.badge--pending .badge-dot { background: var(--amber); }

/* steps */
.steps ol { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 16px; flex-wrap: wrap; }
.step { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: .9375rem; }
.step + .step::before { content: ""; width: 16px; height: 1px; background: var(--line-strong); }
.step-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: .8125rem; }
.step--current { color: var(--navy); font-weight: 600; }
.step--current .step-num { background: var(--navy); border-color: var(--navy); color: #fff; }

/* facts */
.facts { display: grid; grid-template-columns: 1fr; gap: 2px 16px; margin: 0 0 16px; }
.facts dt { color: var(--text-2); font-size: .875rem; margin-top: 8px; }
.facts dd { margin: 0; }
.facts .amount { font-size: 1.5rem; font-weight: 600; }
.know { padding-left: 1.2em; font-size: .9375rem; }
.know li { margin-bottom: 6px; }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 0 0 16px; }
.tl { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; color: var(--text-3); }
.tl-mark { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); justify-self: center; }
.tl--done { color: var(--text); }
.tl--done .tl-mark { background: var(--navy); border-color: var(--navy); }
.tl--current { color: var(--navy); font-weight: 600; }
.tl--current .tl-mark { background: var(--mint); border-color: var(--navy); }
.tl-date { font-size: .875rem; color: var(--text-2); }

/* requests */
.action-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.action-row p { margin: 2px 0 0; }
.action-row > div { flex: 1 1 280px; }
.confirm { background: var(--red-soft); border-radius: var(--r-md); padding: 12px 14px; }
.request-list, .order-list { list-style: none; padding: 0; margin: 0; }
.request-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.order-link { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--text); }

@media (min-width: 640px) {
  :root { --gutter: 24px; }
  h1 { font-size: 2rem; }
  .card { padding: 28px 32px; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: minmax(140px, 220px) 1fr; }
  .facts dt { margin-top: 0; }
}
