/* LessonLoom website. No frameworks, no web fonts, no trackers. Light and dark follow the visitor's system. */
:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --ink: #202338;
  --muted: #5e6072;
  --line: #e7e7ed;
  --primary: #3b3f8f;
  --primary-soft: #eeeefa;
  --owl: #c8102e;
  --ai: #f2a541;
  --ai-soft: #fff6e7;
  --ai-ink: #8a520c;
  --radius: 14px;
  --shadow: 0 6px 24px rgb(40 40 70 / 0.08);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14151d;
    --surface: #1d1f2b;
    --ink: #e8e9f2;
    --muted: #a3a5b8;
    --line: #30334a;
    --primary: #9da1f0;
    --primary-soft: #262a4a;
    --owl: #ff5c6c;
    --ai-soft: #33281a;
    --ai-ink: #f0b35c;
    --shadow: 0 6px 24px rgb(0 0 0 / 0.4);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}
[dir='rtl'] body, body[dir='rtl'] { font-family: 'Segoe UI', Tahoma, Arial, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 20px; }
.brand img { width: 36px; height: 36px; }
.site-header nav { margin-inline-start: auto; display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current='page'] { color: var(--ink); }

/* Hero */
.hero { padding: 56px 0 32px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 24px; }
.hero .owl { width: min(280px, 60%); margin: 0 auto; filter: drop-shadow(0 12px 24px rgb(200 16 46 / 0.25)); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 10px;
  background: #000; color: #fff; text-decoration: none; font-weight: 600; line-height: 1.2;
  border: 1px solid #444;
}
.store-badge small { display: block; font-weight: 400; font-size: 12px; opacity: 0.85; }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.button-link { padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; }
.note { font-size: 14px; color: var(--muted); }

/* Sections */
section { padding: 40px 0; }
h2 { font-size: 28px; margin: 0 0 8px; letter-spacing: -0.01em; }
.section-lead { color: var(--muted); margin: 0 0 28px; max-width: 70ch; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.card.ai { background: var(--ai-soft); border-color: color-mix(in srgb, var(--ai) 45%, transparent); }
.card.ai h3 { color: var(--ai-ink); }
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.shots figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.shots figcaption { padding: 10px 14px; font-size: 14px; color: var(--muted); }
.privacy-box { background: var(--primary-soft); border-radius: var(--radius); padding: 24px; }
.privacy-box ul { margin: 8px 0 0; padding-inline-start: 20px; }

/* Legal pages */
.legal { padding: 40px 0 56px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: 34px; margin: 0 0 4px; }
.legal h2 { font-size: 22px; margin: 32px 0 8px; }
.legal h3 { font-size: 17px; margin: 20px 0 4px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: start; vertical-align: top; }
.legal th { background: var(--surface); }
.updated { color: var(--muted); margin: 0 0 24px; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.site-footer .links { display: flex; gap: 16px; flex-wrap: wrap; margin-inline-start: auto; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .owl { width: 180px; order: -1; }
  .grid { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
}

.site-header nav a.nav-axiant { color: var(--muted); }
.site-footer .copyright { flex-basis: 100%; }
