/* Public site for ai.antischool.com.ua — the pages Meta's reviewers and our clients see.
   Dependency-free on purpose: no framework, no CDN, no web fonts. A reviewer on a slow
   connection gets the full text instantly, and everything renders with JS disabled.

   The palette is lifted straight from the AntiSchool logo: a black disc ringed in the
   Ukrainian blue and yellow, with a lime-green ant inside. */

:root {
  --lime: #ace828;
  --lime-deep: #8cc518;
  --blue: #0057b8;
  --yellow: #ffd700;
  --black: #0b0c0a;

  --bg: #ffffff;
  --bg-soft: #f5f7f2;
  --ink: #12140f;
  --ink-soft: #4a5145;
  --muted: #7b8377;
  --line: #e3e7dd;
  --accent: #5f8c12;        /* lime, darkened until it passes contrast on white */
  --accent-soft: #eef7d9;
  --radius: 16px;
  --wrap: 1100px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* The flag ribbon from the logo's ring, stretched across the top of every page. */
body::before {
  content: ""; display: block; height: 4px;
  background: linear-gradient(90deg, var(--blue) 0 50%, var(--yellow) 50% 100%);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ── logo ───────────────────────────────────────────────────────────────── */
/* The lockup is 691×278 with the disc occupying the leading square, so a square box
   with `auto 100%` sizing pinned left shows the mark alone — no second asset needed. */
.mark {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  background: #fff url("/antischool-logo.png") left center / auto 100% no-repeat;
}
/* The wordmark in the lockup is black, so it needs a light plate to stay readable when the
   page is in dark mode. Rendering it as a badge makes that deliberate rather than a patch. */
.lockup {
  display: block; height: 30px; width: 106px; flex: none;
  background: #fff url("/antischool-logo.png") center / auto 24px no-repeat;
  border: 1px solid var(--line); border-radius: 9px; padding: 0 10px;
}

/* ── header ─────────────────────────────────────────────────────────────── */
header.site {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(10px); z-index: 10;
}
header.site .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 16.5px; color: var(--ink); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand small { display: block; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .09em; text-transform: uppercase; }

nav.site { margin-left: auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
nav.site > a { color: var(--ink-soft); font-size: 14.5px; font-weight: 600; }
nav.site > a:hover { color: var(--accent); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--lime); color: #17200a; font-weight: 800; font-size: 14.5px;
  padding: 10px 20px; border-radius: 11px; border: 0; cursor: pointer;
  box-shadow: 0 1px 0 var(--lime-deep);
}
.btn:hover { text-decoration: none; background: var(--lime-deep); color: #0d1305; }
.btn.ghost { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--bg-soft); color: var(--ink); border-color: var(--muted); }
.btn.light { background: #fff; color: var(--black); box-shadow: none; }
.btn.light:hover { background: #f1f1f1; color: var(--black); }

.lang { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 10px; padding: 2px; }
.lang button {
  border: 0; background: transparent; cursor: pointer; font: inherit; font-size: 13px; font-weight: 800;
  color: var(--muted); padding: 4px 10px; border-radius: 8px;
}
.lang button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }

/* ── hero ───────────────────────────────────────────────────────────────── */
.hero-panel {
  background: var(--black); color: #fff; border-radius: 26px;
  margin: 30px auto 0; padding: 60px 52px 56px; position: relative; overflow: hidden;
  max-width: var(--wrap);
}
/* An oversized, faint copy of the mark, the way the logo sits on the school's own site. */
.hero-panel::after {
  content: ""; position: absolute; right: -80px; top: -70px; width: 420px; height: 420px;
  background: url("/antischool-logo.png") left center / auto 100% no-repeat;
  opacity: .13; pointer-events: none;
}
.hero-panel .inner { position: relative; z-index: 1; max-width: 700px; }
.hero-panel h1 { font-size: clamp(30px, 4.6vw, 47px); line-height: 1.1; margin: 0 0 18px; letter-spacing: -.025em; }
.hero-panel h1 em { font-style: normal; color: var(--lime); }
.hero-panel p.lead { font-size: 18.5px; color: #c9cec2; margin: 0 0 30px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(172, 232, 40, .14); color: var(--lime);
  font-size: 12.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 20px; margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── sections ───────────────────────────────────────────────────────────── */
section { padding: 62px 0; }
section + section { border-top: 1px solid var(--line); }
section h2 { font-size: clamp(23px, 3vw, 30px); margin: 0 0 10px; letter-spacing: -.02em; }
section h2::after {
  content: ""; display: block; width: 44px; height: 4px; border-radius: 3px;
  background: var(--lime); margin-top: 14px;
}
section .sub { color: var(--muted); max-width: 690px; margin: 18px 0 32px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(262px, 1fr)); }
.card {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; position: relative; transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--lime); transform: translateY(-2px); }
.card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px; background: var(--black); color: var(--lime);
  font-size: 13px; font-weight: 800; margin-bottom: 14px;
}
.card h3 { margin: 0 0 8px; font-size: 16.5px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--ink-soft); font-size: 14.8px; }

.channels { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px; background: #fff;
  border: 1px solid var(--line); border-radius: 30px; padding: 10px 18px;
  font-size: 14.5px; font-weight: 700; color: var(--ink-soft);
}
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); flex: none; }

ul.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
ul.checks li { padding-left: 30px; position: relative; color: var(--ink-soft); }
ul.checks li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--lime);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat,
    linear-gradient(#000, #000);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* ── legal pages ────────────────────────────────────────────────────────── */
.doc { padding: 46px 0 74px; max-width: 800px; }
.doc h1 { font-size: clamp(27px, 4vw, 36px); margin: 0 0 6px; letter-spacing: -.025em; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 34px; }
.doc h2 {
  font-size: 19.5px; margin: 38px 0 10px; padding-left: 14px;
  border-left: 4px solid var(--lime); letter-spacing: -.01em;
}
.doc h3 { font-size: 16px; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14.5px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--bg-soft); font-weight: 800; color: var(--ink); }
.note {
  background: var(--accent-soft); border: 1px solid #d5e8ad; border-left: 4px solid var(--lime);
  border-radius: 12px; padding: 17px 20px; margin: 24px 0;
}
.note p { margin: 0; color: #3d5310; font-size: 14.8px; }
.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 0 0 32px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 5px 0; }

/* ── footer ─────────────────────────────────────────────────────────────── */
footer.site { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 40px 0 34px; }
footer.site .cols { display: flex; gap: 34px; flex-wrap: wrap; justify-content: space-between; }
footer.site a { color: var(--ink-soft); font-size: 14.5px; display: block; margin: 6px 0; }
footer.site strong { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 10px; }
footer.site .made { display: flex; align-items: center; gap: 14px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
footer.site .copy { color: var(--muted); font-size: 13.5px; }

/* Language switching: exactly one language is visible at a time. Ukrainian is the default
   in the markup, so the page reads correctly even with JS turned off. */
[data-lang="en"] { display: none; }
html[lang="en"] [data-lang="en"] { display: block; }
html[lang="en"] [data-lang="ua"] { display: none; }
html[lang="en"] span[data-lang="en"], html[lang="en"] a[data-lang="en"] { display: inline; }

@media (max-width: 760px) {
  header.site .wrap { min-height: 0; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
  nav.site { width: 100%; margin-left: 0; gap: 14px; }
  .hero-panel { border-radius: 20px; padding: 40px 24px 38px; margin-top: 18px; }
  .hero-panel::after { width: 260px; height: 260px; right: -70px; top: -50px; opacity: .1; }
  section { padding: 44px 0; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f110d; --bg-soft: #171a14; --ink: #f0f3ea; --ink-soft: #bcc3b2;
    --muted: #8a927f; --line: #262b21; --accent: #ace828; --accent-soft: #1e2a0c;
  }
  header.site { background: rgba(15, 17, 13, .93); }
  .hero-panel { background: #070806; border: 1px solid var(--line); }
  .chip { background: var(--bg-soft); }
  .note { border-color: #38481c; border-left-color: var(--lime); }
  .note p { color: #d3ea9f; }
  .card .num { background: var(--lime); color: #16200a; }
  .btn.light { background: #fff; color: #000; }
}
