/* AI Bukvar. Hladna svetla podloga, tamnoplavo mastilo, plavi akcenat i žuta "olovka" za isticanje. */
:root {
  --ground: #F4F6FB;
  --surface: #FFFFFF;
  --ink: #14213D;
  --ink-soft: #36415C;
  --muted: #4A5673;
  --line: #D5DBEA;
  --accent: #1F55C4;
  --accent-dark: #163F94;
  --accent-tint: #E6EEFF;
  --pencil: #FFC940;
  --display: 'Bitter', Georgia, serif;
  --body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.5; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.18; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--accent); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--pencil); outline-offset: 2px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.center { text-align: center; }

/* Zaglavlje */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; padding: 0 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 21px; }
.brand svg { color: var(--accent); }

/* Dugmad */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font: inherit; font-size: 19px; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-dark); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 16px; }
.btn-big { min-height: 60px; font-size: 20px; }
.btn-ghost { background: var(--surface); color: var(--ink); border: 2px solid var(--line); }
.btn-ghost:hover { background: var(--ground); }
.btn-pencil { background: var(--pencil); color: var(--ink); }
.btn-pencil:hover { background: #F5BC2A; }
.btn[disabled] { background: var(--line); color: var(--muted); cursor: default; }
.link-btn { min-height: 44px; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }

.chip { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--pencil); font-size: 15px; font-weight: 700; }
.note { font-size: 16px; color: var(--muted); }

/* Početna */
.hero { padding: 44px 0 52px; }
.hero-grid { display: grid; gap: 32px; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.hero h1 { font-size: clamp(32px, 6vw, 50px); }
.lead { font-size: 20px; color: var(--ink-soft); max-width: 34em; }
.hero-cta { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.hero-points { list-style: none; margin: 0; padding: 20px; display: flex; flex-direction: column; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; align-self: start; }
.hero-points li { display: flex; gap: 12px; align-items: flex-start; }
.hero-points svg { flex: 0 0 auto; width: 24px; height: 24px; margin-top: 2px; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.hero-points strong { display: block; }
.hero-points span { display: block; font-size: 16px; color: var(--muted); }

.section { padding: 52px 0; }
.band { padding: 52px 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2, .band h2 { font-size: clamp(26px, 4.5vw, 34px); margin-bottom: 12px; }
.sub { color: var(--ink-soft); margin-bottom: 24px; max-width: 40em; }
.center .sub { margin-left: auto; margin-right: auto; }

.steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 20px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps h3 { font-size: 20px; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 17px; }
.num { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 999px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; }

.jobs { display: grid; gap: 14px; }
.jobs article { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.jobs h3 { font-size: 19px; margin-bottom: 8px; }
.jobs ul { margin: 0; padding-left: 20px; color: var(--ink-soft); font-size: 17px; }

details { border-bottom: 1px solid var(--line); }
summary { padding: 16px 0; font-weight: 700; cursor: pointer; }
details p { padding: 0 0 16px; color: var(--ink-soft); }

.foot { padding: 24px 0 32px; font-size: 15px; color: var(--muted); }
.foot .wrap { display: flex; flex-direction: column; gap: 6px; }

/* Kviz, plan, lekcija */
.app { max-width: 600px; margin: 0 auto; padding: 24px 20px 120px; min-height: 70vh; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.app h2 { font-size: 28px; }
.hint { font-size: 17px; color: var(--muted); }
.progress { display: flex; flex-direction: column; gap: 8px; }
.progress span { font-size: 15px; font-weight: 600; color: var(--muted); }
.bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt { min-height: 56px; padding: 12px 16px; text-align: left; font: inherit; font-size: 19px; font-weight: 600; color: var(--ink); background: var(--surface); border: 2px solid var(--line); border-radius: 12px; cursor: pointer; }
.opt:hover { border-color: #9FB0D6; }
.opt[aria-pressed="true"] { background: var(--accent-tint); border-color: var(--accent); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 17px; font-weight: 600; }
.field input { min-height: 56px; padding: 0 16px; font: inherit; font-size: 19px; color: var(--ink); background: var(--surface); border: 2px solid #8A96B3; border-radius: 12px; }

.actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; background: var(--surface); border-top: 1px solid var(--line); }
.actions-in { max-width: 600px; margin: 0 auto; padding: 12px 20px 16px; display: flex; gap: 12px; }
.actions-in.col { flex-direction: column; gap: 10px; }
.actions-in .grow { flex: 1 1 auto; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 16px; color: var(--ink-soft); }
.price-row b { font-size: 21px; color: var(--ink); white-space: nowrap; }

.person { font-size: 17px; font-weight: 600; color: var(--ink-soft); }
.lessons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lesson { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.lesson .n { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 999px; background: #E3E8F4; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.lesson.open .n { background: var(--pencil); }
.lesson .t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lesson strong { font-size: 19px; line-height: 1.25; }
.lesson .d { font-size: 16px; color: var(--muted); }
.lesson .btn { align-self: flex-start; margin-top: 6px; min-height: 44px; padding: 0 16px; font-size: 16px; background: var(--surface); color: var(--accent); border: 2px solid var(--accent); }
.lesson .btn:hover { background: var(--accent-tint); }
.lock { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 7px; fill: none; stroke: #6B7794; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.meta { font-size: 15px; font-weight: 600; color: var(--muted); }
.howto { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.howto li { display: flex; gap: 12px; align-items: flex-start; }
.howto .num { width: 30px; height: 30px; font-size: 15px; }
.prompt { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--surface); border: 2px solid var(--ink); border-radius: 14px; }
.prompt .label { font-size: 15px; font-weight: 700; color: var(--muted); }
.prompt p { font-size: 19px; line-height: 1.4; }
.box { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }

@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot .wrap { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 960px) {
  .hero { padding: 72px 0 80px; }
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 48px; }
  .jobs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: no-preference) {
  .bar i { transition: width .25s ease; }
}

.small { font-size: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.doc { max-width: 720px; margin: 0 auto; padding: 32px 20px 64px; }
.doc h1 { font-size: 32px; margin-bottom: 16px; }
.doc h2 { font-size: 22px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { padding-left: 22px; }
