/* Promptika: bela podlaga, črna tipografija in en poudarek. Veliki naslovi, ostri robovi, 2 px črte. */
:root {
  --ink: #111111;
  --paper: #FFFFFF;
  --tint: #F2F2F0;
  --muted: #555555;
  --muted-inv: #C9C9C9;
  --accent: #FF5A1F;
  --panel: #1A1A1A;
  --rule-inv: #3A3A3A;
  --dim-inv: #9A9A9A;
  --edge-inv: #6B6B6B;
  --danger: #B3261E;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  color-scheme: light;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--ink); font-family: var(--font); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .75; }
input, select, textarea, button { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; }
[id] { scroll-margin-top: 16px; }

:focus-visible { outline: 3px solid var(--paper); outline-offset: 2px; box-shadow: 0 0 0 7px var(--ink); }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 20; padding: 12px 16px; background: var(--ink); color: var(--paper); font-weight: 700; }

/* Povezave v glavi in nogi so dovolj visoke za prst. */
header nav a { display: inline-flex; align-items: center; min-height: 44px; }
footer a { display: flex; align-items: center; min-height: 44px; }

/* Povezava na drugo jezikovno različico (zadnja v navigaciji glave). */
header nav .lang-link { gap: 6px; }
header nav .lang-link svg { flex: none; }

/* Primeri uporabe */
.ex { background: var(--ink); color: var(--paper); }
.ex-wrap { max-width: 1440px; margin: 0 auto; padding: 96px 24px; display: flex; flex-direction: column; gap: 48px; }
.ex-head { display: flex; flex-direction: column; gap: 16px; }
.ex-eyebrow { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.ex-title { margin: 0; max-width: 1000px; font-weight: 800; font-size: clamp(34px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.035em; }
.ex-intro { margin: 0; max-width: 640px; color: var(--muted-inv); }
.ex-body { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px 56px; }
.ex-tabs { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ex-tab { width: 100%; margin: 0; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; text-align: left; cursor: pointer; background: transparent; color: var(--paper); border: 2px solid var(--edge-inv); }
.ex-tab-title { font-weight: 700; font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; }
.ex-tab-lead { font-size: 16px; color: var(--muted-inv); }
.ex-tab[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.ex-tab[aria-pressed="true"] .ex-tab-lead { color: var(--ink); }
.ex-panel { flex: 1.2 1 460px; min-width: 0; background: var(--panel); border: 2px solid var(--paper); font-family: var(--mono); font-size: 14px; line-height: 1.6; }
.ex-panel-head { padding: 8px 12px 8px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; color: var(--muted-inv); }
.ex-panel-head p { margin: 0; }
.ex-state { display: flex; align-items: center; gap: 8px; }
.ex-status { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.ex-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ex-panel.is-paused .ex-status { color: var(--muted-inv); }
.ex-toggle { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--paper); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ex-toggle .ic-play { display: none; }
.ex-panel.is-paused .ex-toggle .ic-play { display: block; }
.ex-panel.is-paused .ex-toggle .ic-pause { display: none; }
.ex-steps { margin: 0; padding: 0; list-style: none; }
.ex-step { padding: 16px 20px; border-top: 1px solid var(--rule-inv); display: flex; align-items: baseline; gap: 16px; }
.ex-num { flex: none; color: var(--dim-inv); }
.ex-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ex-tool { font-size: 13px; color: var(--dim-inv); }
.ex-st { flex: none; }
.ex-step.is-done .ex-st { color: var(--accent); }
.ex-step.is-wait .ex-step-title, .ex-step.is-wait .ex-st { color: var(--dim-inv); }

/* Obrazec za povpraševanje */
.lead-form { flex: 1 1 460px; min-width: 0; padding: 32px; display: flex; flex-direction: column; gap: 18px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); }
.lf-row { display: flex; flex-wrap: wrap; gap: 18px; }
.lf-field { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.lf-row > .lf-field { flex: 1 1 200px; }
.lf-field label { font-size: 15px; font-weight: 700; }
.lf-field input, .lf-field select, .lf-field textarea { width: 100%; min-height: 52px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 0; background: var(--paper); }
.lf-field select { padding: 0 12px; }
.lf-field textarea { min-height: 140px; padding: 12px 14px; resize: vertical; }
.lf-field [aria-invalid="true"] { border-color: var(--danger); }
.lf-error { margin: 0; font-size: 14px; font-weight: 600; color: var(--danger); }
.lf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lf-submit { min-height: 56px; padding: 0 26px; border: 0; background: var(--ink); color: var(--paper); font-weight: 700; cursor: pointer; }
.lf-submit[disabled] { opacity: .6; cursor: default; }
.lf-status { margin: 0; padding: 14px 16px; border: 2px solid var(--ink); background: var(--tint); font-size: 16px; font-weight: 600; }
.lf-note { margin: 0; font-size: 14px; color: var(--muted); }

/* Povezava do politike v obrazcu */
.lf-note a { text-decoration: underline; }

/* Gumb za nastavitve piškotkov v nogi */
.cc-open { display: flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.cc-open:hover { opacity: .75; }

/* Pasica za soglasje */
.cc { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 0 max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); pointer-events: none; }
.cc-inner { pointer-events: auto; max-width: 720px; margin-left: auto; padding: 22px; background: var(--ink); color: var(--paper); border: 2px solid var(--paper); box-shadow: 0 0 0 2px var(--ink); display: flex; flex-direction: column; gap: 12px; }
.cc-title { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.cc-text { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted-inv); }
.cc-text a { color: var(--paper); text-decoration: underline; }
.cc-options { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--rule-inv); padding-top: 8px; }
.cc-option { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; }
.cc-option input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.cc-option label { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.cc-option-title { font-weight: 700; color: var(--paper); }
.cc-option-help { color: var(--muted-inv); }
.cc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.cc-btn { min-height: 48px; padding: 0 22px; border: 2px solid var(--paper); background: var(--paper); color: var(--ink); font-weight: 700; cursor: pointer; }
.cc-link { min-height: 48px; padding: 0 6px; border: 0; background: none; color: var(--paper); font-weight: 700; text-decoration: underline; cursor: pointer; }

/* Pravne strani */
.doc-wrap { max-width: 820px; margin: 0 auto; padding: 72px 24px 96px; display: flex; flex-direction: column; gap: 16px; font-size: 18px; line-height: 1.6; }
.doc-eyebrow { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.doc-wrap h1 { margin: 0; font-weight: 800; font-size: clamp(40px, 5.4vw, 72px); line-height: 1; letter-spacing: -0.04em; }
.doc-meta { margin: 0 0 16px; font-size: 16px; color: var(--muted); }
.doc-wrap h2 { margin: 32px 0 0; padding-top: 24px; border-top: 2px solid var(--ink); font-weight: 700; font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; }
.doc-wrap p, .doc-wrap ul { margin: 0; }
.doc-wrap ul { padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.doc-wrap a { text-decoration: underline; }
.doc-note { padding: 14px 16px; border: 2px dashed var(--ink); background: var(--tint); font-size: 16px; }
.doc-table { overflow-x: auto; border: 2px solid var(--ink); }
.doc-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; }
.doc-table th, .doc-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ink); }
.doc-table th { background: var(--tint); font-weight: 700; }
.doc-table tr:last-child td { border-bottom: 0; }

/* Hvala in 404 */
.done { background: var(--accent); border-bottom: 2px solid var(--ink); }
.done-wrap { max-width: 1440px; margin: 0 auto; padding: 96px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.done-eyebrow { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.done-wrap h1 { margin: 0; max-width: 1100px; font-weight: 800; font-size: clamp(44px, 6.4vw, 96px); line-height: 0.98; letter-spacing: -0.04em; }
.done-wrap p { margin: 0; max-width: 640px; font-size: 20px; }
.done-wrap p a { font-weight: 700; text-decoration: underline; }
.done-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 28px; background: var(--ink); color: var(--paper); font-weight: 700; }
.btn-line { background: transparent; color: var(--ink); border: 2px solid var(--ink); }

@media (max-width: 520px) {
  .cc-inner { padding: 18px 16px; }
  .cc-btn { flex: 1 1 140px; }
  .lead-form { padding: 22px 18px; }
  .ex-step { padding: 14px 14px; gap: 12px; }
  .ex-panel-head { padding-left: 14px; }
}

/* Temni način. data-theme na <html> nastavi assets/theme.js: temno, kadar je naprava
   v temnem načinu ali je noč. Svetle površine in besedilo se obrnejo;
   oranžni in črni pasovi obdržijo svetle barve, da ostane besedilo na njih berljivo. */
:root[data-theme="dark"] {
  --ink: #EDEDEA;
  --paper: #121212;
  --tint: #1D1D1C;
  --muted: #A6A6A6;
  --danger: #FF8A80;
  color-scheme: dark;
}
[data-theme="dark"] body { background: #000000; }
[data-theme="dark"] [style*="background: var(--accent)"], [data-theme="dark"] .done {
  --ink: #111111; --paper: #FFFFFF; --tint: #F2F2F0; --muted: #555555; --danger: #B3261E;
  color: var(--ink); /* podedovana barva je že izračunana svetla */
  color-scheme: light;
}
[data-theme="dark"] .ex, [data-theme="dark"] .cc-inner,
[data-theme="dark"] section[style*="background: var(--ink)"],
[data-theme="dark"] footer[style*="background: var(--ink)"],
[data-theme="dark"] nav[style*="background: var(--ink)"] {
  --ink: #000000; --paper: #FFFFFF; --tint: #F2F2F0; --muted: #555555; --danger: #B3261E;
}

/* Meni v glavi. Na ožjih zaslonih theme.js doda gumb, navigacija in gumb za povpraševanje
   pa se pokažeta šele, ko se meni odpre. Brez JavaScripta (ni razreda has-menu) ostane glava kot prej. */
.menu-toggle { display: none; }
@media (max-width: 1023px) {
  .has-menu header > div { padding: 10px 16px !important; gap: 0 !important; flex-wrap: wrap; }
  .has-menu header > div > a:first-child { font-size: 24px !important; }
  .has-menu header nav, .has-menu header > div > a:last-child { display: none !important; }
  .menu-toggle { flex: none; width: 44px; height: 44px; margin-left: auto; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
  .menu-toggle .ic-close, .nav-open .menu-toggle .ic-menu { display: none; }
  .nav-open .menu-toggle .ic-close { display: block; }
  .has-menu header.nav-open nav { display: flex !important; flex-direction: column; align-items: flex-start; width: 100%; padding: 8px 0 4px; gap: 0 !important; font-size: 18px !important; }
  .has-menu header.nav-open > div > a:last-child { display: flex !important; justify-content: center; width: 100%; margin: 4px 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
