/* Kurd Keyboard public pages — "C · Bento Night" (docs/app-design-2026-09-30.md).
   Shared by kb-privacy-policy.html, kb-support.html, kb-data-deletion.html.
   Fonts are self-hosted (SIL OFL 1.1, see fonts/*-OFL.txt); no third-party requests. */

@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("fonts/Sora-wght.ttf") format("truetype");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0A0B0F;
  --text: #EEF0F6;
  --text-2: rgba(238, 240, 246, 0.74);
  --text-3: rgba(238, 240, 246, 0.55);
  --accent: #F1B93C;
  --on-accent: #1A1204;
  --violet: #6B5CFF;
  --blue: #8FB4FF;
  --coral: #FF9F7A;
  --lilac: #B3A9FF;
  --green: #7FD39C;
  --red: #FF8F86;
  /* Long legal text: solid-ish card, glass only at the edges. */
  --card: rgba(19, 20, 27, 0.84);
  --card-soft: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --highlight: rgba(255, 255, 255, 0.18);
  --radius-card: 28px;
  --radius-tile: 22px;
  --font-latin: "Sora", "Vazirmatn", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-rtl: "Vazirmatn", "Sora", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-latin);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html[dir="rtl"] body { font-family: var(--font-rtl); line-height: 1.8; }

/* ---------- background orbs (drawn once, fixed, never animated) ---------- */
.orbs {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}
.orb.gold {
  width: 340px; height: 340px;
  background: var(--accent);
  opacity: 0.35;
  top: -150px;
  inset-inline-start: 8%;
}
.orb.violet {
  width: 300px; height: 300px;
  background: var(--violet);
  opacity: 0.30;
  top: 52vh;
  inset-inline-end: -130px;
}

/* ---------- layout ---------- */
.page {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 16px 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 6px 0 4px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 17px;
  font-family: var(--font-latin);
  letter-spacing: -0.2px;
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, #FFE29A, #F1B93C 45%, #C9861A);
  color: #2A1A02;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 6px 18px rgba(241, 185, 60, 0.35);
}

.langs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--card-soft);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 var(--highlight);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
}
.lang {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  cursor: pointer;
}
.lang[data-lang="en"] { font-family: var(--font-latin); }
.lang[data-lang="ar"], .lang[data-lang="ckb"] { font-family: var(--font-rtl); }
.lang:hover { color: var(--text); }
.lang.active { background: var(--accent); color: var(--on-accent); }

/* ---------- hero ---------- */
.hero { padding: 34px 4px 8px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(241, 185, 60, 0.12);
  border: 1px solid rgba(241, 185, 60, 0.28);
  border-radius: 999px;
  padding: 5px 12px;
  line-height: 1.3;
}
h1 {
  font-size: clamp(34px, 9vw, 48px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.8px;
  margin: 14px 0 10px;
}
html[dir="rtl"] h1 { letter-spacing: 0; line-height: 1.3; }
.lead {
  font-size: 18px;
  color: var(--text-2);
  margin: 0 0 14px;
}
.updated {
  display: inline-block;
  font-size: 14px;
  color: var(--text-3);
}

/* ---------- cards ---------- */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 var(--highlight), 0 20px 50px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  border-radius: var(--radius-card);
  padding: 22px 20px;
  margin-top: 14px;
  scroll-margin-top: 16px;
}
@media (min-width: 600px) {
  .card { padding: 28px 30px; }
}

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.icon {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.icon.gold { background: rgba(241, 185, 60, 0.16); }
.icon.blue { background: rgba(143, 180, 255, 0.16); }
.icon.coral { background: rgba(255, 159, 122, 0.16); }
.icon.violet { background: rgba(179, 169, 255, 0.16); }
.icon.green { background: rgba(127, 211, 156, 0.16); }
.icon.red { background: rgba(255, 143, 134, 0.16); }

h2 {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
  letter-spacing: -0.2px;
}
html[dir="rtl"] h2 { letter-spacing: 0; }
h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 18px 0 4px;
  line-height: 1.4;
}

.card p { margin: 10px 0; }
.card p:last-child { margin-bottom: 0; }
.dim { color: var(--text-2); }
.small { font-size: 15px; color: var(--text-3); }

ul.list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
ul.list > li {
  position: relative;
  padding-inline-start: 22px;
  margin: 9px 0;
}
ul.list > li::before {
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  top: 0.72em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
ol.steps {
  margin: 10px 0 0;
  padding-inline-start: 24px;
}
ol.steps > li { margin: 8px 0; padding-inline-start: 4px; }
ol.steps > li::marker { color: var(--accent); font-weight: 800; }

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.ltr { direction: ltr; unicode-bidi: isolate; font-family: var(--font-latin); }

/* ---------- table of contents ---------- */
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  background: var(--card-soft);
  border: 1px solid var(--border);
}
.toc a:hover { border-color: rgba(241, 185, 60, 0.5); }

/* ---------- "What goes online" bento ---------- */
.bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 14px;
}
@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.tile {
  border-radius: var(--radius-tile);
  padding: 16px;
  background: var(--card-soft);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 var(--highlight);
}
.tile h3 { margin: 0 0 6px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.tile.stay h3 { color: var(--green); }
.tile.tap h3 { color: var(--accent); }
.tile.never h3 { color: var(--red); }
.tile ul.list > li { margin: 6px 0; font-size: 15.5px; line-height: 1.55; }
.tile.stay ul.list > li::before { background: var(--green); }
.tile.never ul.list > li::before { background: var(--red); }

.note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(241, 185, 60, 0.08);
  border: 1px solid rgba(241, 185, 60, 0.22);
  font-size: 15.5px;
  color: var(--text-2);
}

/* ---------- buttons ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  line-height: 1.2;
}
.btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.btn-gold {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 8px 24px rgba(241, 185, 60, 0.28);
}
.btn-gold:hover { background: #F5C65A; text-decoration: none; }
.btn-glass {
  background: var(--card-soft);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 var(--highlight);
}
.btn-glass:hover { border-color: rgba(241, 185, 60, 0.5); text-decoration: none; }
@media (max-width: 420px) {
  .actions .btn { flex: 1 1 100%; }
}

/* ---------- footer ---------- */
footer {
  margin: 28px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-3);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin-bottom: 10px;
}
.footer-links a { color: var(--text-2); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
footer p { margin: 4px 0; }

@media (prefers-reduced-transparency: reduce) {
  .card, .langs { -webkit-backdrop-filter: none; backdrop-filter: none; background: #15161D; }
}
