/* სუპერგმირების სკოლა — საერთო სტილი
   Layout: comic-book bands on the brand's night-indigo, thick ink outlines, hard offset shadows. */
:root {
  --indigo: #2B1B57;      /* ბრენდის ფონი (ბანერიდან) */
  --indigo-2: #3A2870;
  --indigo-3: #4A3687;
  --ink: #1B1027;
  --pink: #D71B83;        /* ბრენდის ვარდისფერი (სათაური) */
  --pink-dark: #A8126A;
  --yellow: #EAC71F;      /* ბრენდის ყვითელი (Real Missions) */
  --yellow-soft: #FFF3BF;
  --paper: #FFFFFF;
  --lav: #F4EFFB;
  --lav-2: #E9DFF7;
  --line: #E1D5F2;
  --muted: #4A3D5C;
  --soft: #DCCFF2;        /* ტექსტი მუქ ფონზე */
  --soft-2: #B9A8DA;
  --ok: #1D6B42;  --ok-bg: #DCF2E5;
  --warn: #7A4A00; --warn-bg: #FFF0D2;
  --bad: #A3193A; --bad-bg: #FCE1E7;
  --font: 'Noto Sans Georgian', 'Sylfaen', system-ui, sans-serif;
  --num: 'Bungee', 'Noto Sans Georgian', system-ui, sans-serif;
  --radius: 18px;
  --shadow: 5px 5px 0 var(--ink);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--indigo-3); }
a:hover { color: var(--pink-dark); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.band { padding-block: 88px; }
.band-tight { padding-block: 56px; }
.dark {
  background-color: var(--indigo);
  background-image: radial-gradient(rgba(255,255,255,0.07) 1.5px, transparent 1.7px);
  background-size: 18px 18px;
  color: var(--paper);
}
.lav { background: var(--lav); }
.yellow { background: var(--yellow); }
.edge-top { border-top: 3px solid var(--ink); }
.edge-bottom { border-bottom: 3px solid var(--ink); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.grow { flex: 1 1 0; min-width: 0; }

.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-bottom: 40px; }
.kicker { color: var(--indigo-3); font-weight: 800; font-size: 15px; letter-spacing: 0.04em; }
.dark .kicker { color: var(--yellow); }
.h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 900; }
.lead { font-size: 18px; color: var(--muted); max-width: 65ch; }
.dark .lead { color: var(--soft); }

/* ---------- buttons ---------- */
.btn {
  font-family: inherit;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 14px; border: 3px solid var(--ink);
  font-weight: 900; font-size: 16px; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  background: var(--paper); color: var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { color: var(--ink); transform: translate(-1px, -1px); }
.btn:active { transform: translate(2px, 2px); box-shadow: none !important; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-lg { min-height: 58px; padding: 0 28px; font-size: 18px; }
.btn-sm { min-height: 44px; padding: 0 14px; font-size: 14px; border-width: 2px; border-radius: 11px; }
.btn-yellow { background: var(--yellow); box-shadow: var(--shadow); }
.btn-pink { background: var(--pink); color: var(--paper); box-shadow: var(--shadow); }
.btn-pink:hover { color: var(--paper); }
.btn-dark { background: var(--indigo); color: var(--paper); }
.btn-dark:hover { color: var(--paper); }
.btn-ok { background: #2E8B57; color: var(--paper); border-width: 2px; }
.btn-ok:hover { color: var(--paper); }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn-ghost:hover { color: var(--paper); background: rgba(255,255,255,0.08); }
.btn-line { background: var(--paper); border-color: var(--bad); color: var(--bad); border-width: 2px; }
.btn-line:hover { color: var(--bad); background: var(--bad-bg); }
.btn-text { border: none; background: none; min-height: 44px; padding: 0 6px; color: var(--indigo-3); font-weight: 800; }
.btn-text:hover { color: var(--pink-dark); transform: none; }

/* ---------- cards & chips ---------- */
.card { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 20px; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: 13px; line-height: 1.4; white-space: nowrap; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-bad { background: var(--bad-bg); color: var(--bad); }
.pill-yellow { background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); }
.pill-indigo { background: var(--indigo); color: var(--paper); }
.pill-line { border: 2px solid var(--soft-2); color: var(--soft); }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; line-height: 1.1; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .label { font-weight: 800; font-size: 15px; }
.hint { font-size: 13px; color: var(--muted); }
.input, .field input[type=text], .field input[type=email], .field input[type=date], .field input[type=url],
.field input[type=search], .field input[type=number], .field input[type=datetime-local], .field select, .field textarea {
  font-family: inherit; font-size: 16px; color: var(--ink); background: var(--paper);
  width: 100%; min-height: 52px; padding: 0 14px;
  border: 2px solid var(--ink); border-radius: 14px;
}
.field textarea { padding: 12px 14px; line-height: 1.5; resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #7A6D8C; }
.code-input { font-family: var(--num) !important; font-size: 28px !important; letter-spacing: 12px; text-align: center; min-height: 64px !important; }
.error-text { color: var(--bad); font-weight: 700; font-size: 14px; }

/* ---------- avatars & icons ---------- */
.avatar { display: inline-block; flex-shrink: 0; }
.icon { display: inline-block; flex-shrink: 0; vertical-align: middle; }
.icon-tile { width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------- toast & modal ---------- */
.toast-host { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 440px); }
.toast { background: var(--ink); color: var(--paper); border-radius: 14px; padding: 12px 16px; font-weight: 700; box-shadow: 4px 4px 0 var(--yellow); animation: toast-in .25s ease; }
.toast.bad { box-shadow: 4px 4px 0 var(--pink); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.modal-back { position: fixed; inset: 0; background: rgba(27,16,39,0.72); z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px)); }
.modal { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--yellow); width: min(100%, 900px); max-height: 92vh; overflow: auto; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; width: 100%; max-width: 100%; border-radius: 14px; overflow: hidden; background: var(--ink); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame.tall { aspect-ratio: 9 / 16; width: auto; height: min(72vh, 640px); margin-inline: auto; }

/* ---------- demo ribbon ---------- */
.demo-ribbon { background: var(--yellow); color: var(--ink); border-bottom: 2px solid var(--ink); font-size: 14px; font-weight: 700; }
.demo-ribbon .wrap { padding-block: 8px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.demo-ribbon code { font-family: var(--num); background: var(--paper); border: 1px solid var(--ink); border-radius: 6px; padding: 0 6px; }

/* ---------- site nav ---------- */
.site-nav { background: var(--indigo); border-bottom: 3px solid var(--ink); color: var(--paper); }
.site-nav .wrap { padding-block: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--paper); }
.brand:hover { color: var(--paper); }
.brand img { width: 46px; height: auto; }
.brand b { display: block; font-size: 18px; font-weight: 900; line-height: 1.15; }
.brand small { display: block; color: var(--soft); font-size: 13px; font-weight: 600; }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.nav-links a { color: var(--soft); text-decoration: none; font-weight: 700; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
.nav-links a:hover { color: var(--yellow); }
.nav-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 760px) { .nav-links.hide-sm { display: none; } }

.site-foot { background: var(--ink); color: var(--soft); }
.site-foot .wrap { padding-block: 44px; display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: space-between; }
.site-foot a { color: var(--paper); text-decoration: none; }
.site-foot a:hover { color: var(--yellow); }
.site-foot .copy { border-top: 1px solid #3A2A50; text-align: center; font-size: 13px; padding-block: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
}
