/* Modena Estonia OÜ — rahapesu tõkestamise kiirkoolitus
   Disainikeel järgib modena.ee-d: sügav rohekas-tume põhitoon, mündiroheline ja
   kollane aktsent, soe murtud valge taust, pillikujulised nupud, serif-pealkirjad. */

/* --------------------------------------------------------------- fondid */

/* Pealkirjafont modena.ee-lt (Frameri CDN lubab ristpäritolu kasutust) */
@font-face {
  font-family: 'RL Limo';
  src: url('https://framerusercontent.com/assets/3NP8iigBGeGpqwA3gdFrhpeBEOY.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brändivärvid (modena.ee disainitokenid) */
  --ink: #062429;
  --ink-deep: #04191c;
  --ink-2: #4d6469;
  --ink-3: #84979b;
  --mint: #abffee;
  --mint-soft: #dffaf2;
  --yellow: #ffe66d;
  --yellow-soft: #fff8d6;
  --paper: #fffef7;
  --grey: #f7f8f8;
  --card: #ffffff;
  --line: #e7eae6;
  --line-soft: #f0f2ee;

  --radius-pill: 99px;
  --radius-card: 24px;
  --radius-box: 16px;
  --shadow: 0 1px 2px rgba(6, 36, 41, .04), 0 10px 30px rgba(6, 36, 41, .05);
  --shadow-lift: 0 2px 4px rgba(6, 36, 41, .06), 0 14px 40px rgba(6, 36, 41, .09);

  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'RL Limo', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(900px 380px at 88% -160px, rgba(171, 255, 238, .55), transparent 70%),
    radial-gradient(700px 300px at 5% -120px, rgba(255, 230, 109, .28), transparent 70%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-underline-offset: 2px; }
a:hover { color: var(--ink-2); }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 18px; z-index: 100; border-radius: 0 0 var(--radius-box) 0;
}
.skip:focus { left: 0; top: 0; }

/* ---------------------------------------------------------------- topbar */

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  max-width: 1200px; margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-logo { display: block; height: 20px; width: auto; color: var(--ink); }
.brand-chip {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  background: var(--mint-soft); color: var(--ink); border-radius: var(--radius-pill);
  padding: 5px 12px; white-space: nowrap;
}
.topbar-title { min-width: 0; }
.topbar-title h1 {
  margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--ink);
}
.topbar-title p {
  margin: 1px 0 0; font-size: 11.5px; color: var(--ink-3); font-family: var(--font-mono);
  letter-spacing: .01em;
}

.progress { height: 4px; background: var(--line-soft); }
.progress-bar {
  height: 100%; width: 0; background: var(--yellow);
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  transition: width .4s cubic-bezier(.4, 0, .2, 1);
}

/* ---------------------------------------------------------------- layout */

.layout {
  max-width: 1200px; margin: 0 auto; padding: 34px 28px 70px;
  display: grid; grid-template-columns: 244px minmax(0, 1fr); gap: 40px;
  align-items: start;
}

.sidenav { position: sticky; top: 104px; }
.sidenav-title {
  margin: 0 0 12px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-3);
}
.sidenav ol { list-style: none; margin: 0; padding: 0; counter-reset: nav; }
.sidenav li { counter-increment: nav; margin-bottom: 2px; }
.sidenav button {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 13.5px; color: var(--ink-2); padding: 8px 14px 8px 40px;
  border-radius: var(--radius-pill); position: relative; line-height: 1.35;
  transition: background .15s ease, color .15s ease;
}
.sidenav button::before {
  content: counter(nav); position: absolute; left: 6px; top: 8px;
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 10.5px; display: grid; place-items: center;
  color: var(--ink-3); background: var(--card);
}
.sidenav button:hover:not([disabled]) { background: var(--grey); color: var(--ink); }
.sidenav button[aria-current="step"] {
  background: var(--mint-soft); color: var(--ink); font-weight: 600;
}
.sidenav button[aria-current="step"]::before {
  border-color: var(--ink); color: var(--ink); background: var(--mint);
}
.sidenav button.is-done::before {
  content: "✓"; background: var(--ink); color: var(--mint); border-color: var(--ink); font-size: 11px;
}
.sidenav button[disabled] { opacity: .4; cursor: not-allowed; }
.sidenav-link {
  display: inline-block; margin-top: 18px; font-size: 13px; padding-left: 14px;
  text-decoration: none; color: var(--ink-3);
}
.sidenav-link:hover { color: var(--ink); }

/* ------------------------------------------------------------------ card */

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 44px 48px 46px; box-shadow: var(--shadow); outline: none;
}
.kicker {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-2); margin: 0 0 10px;
}
.card h2 {
  margin: 0 0 22px; font-family: var(--font-display); font-weight: 700;
  font-size: 38px; line-height: 1.12; letter-spacing: -.015em; color: var(--ink);
}
.card h3 {
  margin: 36px 0 14px; font-family: var(--font-display); font-weight: 700;
  font-size: 21px; line-height: 1.25; letter-spacing: -.01em;
}
.card h4 { margin: 0 0 8px; font-size: 15px; font-weight: 600; letter-spacing: -.005em; }
.card p { margin: 0 0 14px; }
.lead { font-size: 18px; line-height: 1.56; color: var(--ink); }
.note { font-size: 14px; color: var(--ink-2); }
.card ul, .card ol { margin: 0 0 16px; padding-left: 22px; }
.card li { margin-bottom: 8px; }
.card strong { font-weight: 600; }

/* Loendid */
.ticks { list-style: none; padding-left: 0; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 6px; top: 10px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 1.5px var(--ink);
}
.ticks-warn li::before { background: var(--yellow); }

.steps-list { counter-reset: s; list-style: none; padding-left: 0; }
.steps-list li { counter-increment: s; position: relative; padding-left: 42px; margin-bottom: 14px; }
.steps-list li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 27px; height: 27px;
  background: var(--ink); color: var(--mint); border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 12px;
}

.remember { counter-reset: r; list-style: none; padding-left: 0; }
.remember li {
  counter-increment: r; position: relative; padding: 20px 22px 20px 68px; margin-bottom: 12px;
  background: var(--grey); border-radius: var(--radius-box); border: 1px solid var(--line);
}
.remember li::before {
  content: counter(r); position: absolute; left: 22px; top: 16px;
  font-family: var(--font-display); font-size: 30px; color: var(--ink); line-height: 1;
}

/* Definitsioonid */
.defs { margin: 0; }
.defs > div {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.defs > div:last-child { border-bottom: 1px solid var(--line); }
.defs dt { font-weight: 600; letter-spacing: -.01em; }
.defs dd { margin: 0; color: var(--ink-2); }

/* Kastid */
.callout {
  background: var(--mint-soft); border: 1px solid rgba(6, 36, 41, .07);
  border-left: 4px solid var(--mint); border-radius: var(--radius-box);
  padding: 20px 22px; margin: 22px 0;
}
.callout > :last-child { margin-bottom: 0; }
.callout ul { margin-bottom: 0; }
.callout-warn { background: var(--yellow-soft); border-left-color: var(--yellow); }
.callout-stop {
  background: var(--ink); border-color: var(--ink); border-left-color: var(--yellow); color: #fff;
}
.callout-stop h4 { color: var(--yellow); }
.callout-stop strong { color: #fff; }
.callout-stop em { color: var(--mint); font-style: normal; }
.callout-stop .note { color: rgba(255, 255, 255, .72); }
.callout-stop .ticks li::before,
.callout-stop li::marker { color: var(--mint); }

.grid { display: grid; gap: 16px; margin: 20px 0 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile {
  background: var(--grey); border: 1px solid var(--line); border-radius: var(--radius-box);
  padding: 18px 20px; font-size: 14.5px;
}
.tile p { margin-bottom: 8px; }
.tile ul { padding-left: 18px; margin-bottom: 0; }
.tile-foot { font-size: 13px; color: var(--ink-2); margin-bottom: 0 !important; }
.tile-good { background: var(--mint-soft); border-color: rgba(6, 36, 41, .08); }
.tile-mid { background: var(--yellow-soft); border-color: rgba(6, 36, 41, .08); }
.tile-bad { background: var(--ink); border-color: var(--ink); color: #fff; }
.tile-bad h4 { color: var(--yellow); }
.tile-bad .tile-foot { color: rgba(255, 255, 255, .75); }
.tile-bad strong { color: var(--mint); }

/* ----------------------------------------------------------------- video */

.video-block { margin: 26px 0 8px; }
.video-frame {
  position: relative; padding-top: 56.25%; background: var(--ink-deep);
  border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-status { margin-top: 16px; font-size: 13.5px; font-weight: 500; }
.video-status .lock,
.video-status .done {
  display: inline-block; border-radius: var(--radius-pill); padding: 6px 16px;
}
.video-status .lock { background: var(--yellow-soft); color: var(--ink); }
.video-status .done { background: var(--mint-soft); color: var(--ink); }
.manual-check {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 14px;
  font-size: 13.5px; color: var(--ink-2); background: var(--yellow-soft);
  border: 1px solid rgba(6, 36, 41, .08); border-radius: var(--radius-box); padding: 14px 16px;
}

/* ------------------------------------------------------------------ vorm */

.confirm-wrap { max-width: 660px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; }
.req { color: var(--ink-2); }
.opt { font-weight: 400; color: var(--ink-3); }
input[type="text"] {
  width: 100%; padding: 13px 18px; font: inherit; border: 1px solid var(--line);
  border-radius: var(--radius-pill); background: var(--card); color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input[type="text"]::placeholder { color: var(--ink-3); }
input[type="text"]:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--mint-soft);
}
.check {
  display: flex; gap: 14px; align-items: flex-start; margin: 24px 0; font-size: 14.5px;
  background: var(--grey); border: 1px solid var(--line); border-radius: var(--radius-box); padding: 18px;
}
.check input, .manual-check input {
  margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ink); flex: none;
}
.error { color: #a4302a; font-weight: 600; font-size: 14px; }

.done-box {
  text-align: center; padding: 40px 24px; background: var(--mint-soft);
  border: 1px solid rgba(6, 36, 41, .08); border-radius: var(--radius-card);
}
.done-mark {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--ink);
  color: var(--mint); font-size: 26px; display: grid; place-items: center;
}
.done-box h3 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.done-box p { margin: 0; color: var(--ink-2); }

/* --------------------------------------------------------------- nimekiri */

.list-section { margin-top: 46px; padding-top: 30px; border-top: 1px solid var(--line); }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.list-head h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 21px; }
.list-actions { display: flex; align-items: center; gap: 10px; }
.badge {
  background: var(--ink); color: var(--mint); border-radius: var(--radius-pill); padding: 5px 14px;
  font-family: var(--font-mono); font-size: 11.5px;
}
.table-wrap { overflow-x: auto; margin-top: 16px; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th {
  text-align: left; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); padding: 8px 14px;
  border-bottom: 1px solid var(--line); white-space: nowrap; font-weight: 400;
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--grey); }
.table .muted { color: var(--ink-3); }
.table .name { font-weight: 600; }
.table .when { white-space: nowrap; color: var(--ink-2); font-family: var(--font-mono); font-size: 13px; }
.row-mine, .table tbody tr.row-mine:hover { background: var(--mint-soft); }

/* ----------------------------------------------------------------- pager */

.pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; }
.pager-count { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); letter-spacing: .04em; }

.btn {
  font: inherit; font-weight: 500; font-size: 15px; border-radius: var(--radius-pill);
  padding: 12px 24px; cursor: pointer; border: 1px solid transparent; text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background .15s ease, border-color .15s ease, transform .15s ease, opacity .15s ease;
}
.btn-primary { background: var(--yellow); color: var(--ink); padding-left: 8px; }
.btn-primary::before {
  content: "→"; width: 32px; height: 32px; border-radius: 50%; background: var(--ink);
  color: var(--yellow); display: grid; place-items: center; font-size: 15px; flex: none;
}
.btn-primary:hover:not([disabled]) { background: #ffdf4a; }
.btn-primary:active:not([disabled]) { transform: translateY(1px); }
.btn-ghost { background: var(--card); border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover:not([disabled]) { border-color: var(--ink-3); color: var(--ink); }
.btn-sm { font-size: 13px; padding: 8px 16px; }
.btn-lg { font-size: 16px; padding: 8px 30px 8px 8px; }
.btn-lg::before { width: 38px; height: 38px; font-size: 17px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.foot {
  background: var(--ink); color: rgba(255, 255, 255, .66);
  padding: 26px 28px 30px; text-align: center; font-size: 13px;
}
.foot p { margin: 0; }
.foot a { color: var(--mint); }

/* ------------------------------------------------------------ responsive */

@media (max-width: 940px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 22px 16px 52px; }
  .sidenav { position: static; }
  .sidenav ol { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; }
  .sidenav li { flex: none; margin-bottom: 0; }
  .sidenav button {
    white-space: nowrap; padding: 7px 16px 7px 36px; background: var(--card);
    border: 1px solid var(--line);
  }
  .card { padding: 28px 22px 32px; }
  .card h2 { font-size: 28px; }
  .card h3 { font-size: 19px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .defs > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .topbar-in { gap: 12px; padding: 12px 16px; }
  .topbar-title h1 { font-size: 14px; }
}

@media print {
  .sidenav, .pager, .topbar { display: none; }
  .card { box-shadow: none; border: 0; }
  body { background: #fff; }
}
