/* Kiraf web — the apps' palette (packages/shared/src/theme.ts KIRAF): orange + navy on warm cream. */
:root {
  --brand: #FF5800;
  --dark: #0A1B36;
  --text: #2B3A52;
  --muted: #5B6570;
  --faint: #9AA3AD;
  --line: #F1E2D5;
  --bg: #FFF7F0;
  --card: #FFFFFF;
  --soft: #FFEDE0;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  /* the apps' peach sky, as a soft glow behind the header */
  background: linear-gradient(180deg, #FFE4CC 0, rgba(255, 247, 240, 0) 460px) no-repeat, var(--bg);
  color: var(--dark);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--brand); }
img { max-width: 100%; }

/* header */
.top {
  max-width: 640px; margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--dark); text-decoration: none; font-weight: 800; font-size: 20px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.langs { display: flex; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.langs button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font: 700 12px/1 inherit; letter-spacing: .02em; padding: 8px 10px; border-radius: 999px;
}
.langs button[aria-pressed="true"] { background: var(--brand); color: #fff; }
/* 4 languages (TR added): on 320-px phones the pill would squeeze the «Kiraf» wordmark */
@media (max-width: 345px) { .langs button { padding: 8px 7px; } }
/* With JS the buttons become one list of the apps' 33 languages (site.js buildPicker). */
.langs.picker { position: relative; padding: 0; }
.langs.picker select {
  -webkit-appearance: none; appearance: none; border: 0; background: transparent; color: var(--dark);
  font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1;
  padding: 10px 30px 10px 14px; border-radius: 999px; cursor: pointer; max-width: 48vw;
}
.langs.picker::after {
  content: '▾'; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 12px; pointer-events: none;
}
[dir="rtl"] .langs.picker select { padding: 10px 14px 10px 30px; }
[dir="rtl"] .langs.picker::after { right: auto; left: 12px; }
/* Kaspi lines only for Kazakhstan (site.js: the time zone, or Kazakh). */
html:not([data-kz]) [data-kz-only] { display: none !important; }

main { max-width: 640px; margin: 0 auto; padding: 0 16px 8px; }
.card { background: var(--card); border-radius: 18px; box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }

/* home */
.hero { text-align: center; padding: 4px 0 8px; }
.mascot { display: block; width: min(250px, 62vw); height: auto; margin: 0 auto; border-radius: 26px; box-shadow: 0 8px 28px rgba(255, 88, 0, .18); }
.hero h1 { font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; margin: 6px 0 10px; }
.lead { color: var(--muted); margin: 0 auto; max-width: 470px; }
.apps { display: grid; gap: 12px; margin: 24px 0 16px; }
.app { display: flex; gap: 14px; align-items: center; padding: 16px; }
.app img { width: 52px; height: 52px; border-radius: 12px; flex: none; }
.app h2 { font-size: 17px; margin: 0 0 2px; }
.app p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
/* Store links under each app (2026-11-07: the home page had no way to install) */
.app .stores { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.app .stores a {
  text-decoration: none; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px;
  padding: 8px 14px; border-radius: 10px;
}
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.features li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; font-size: 15px; line-height: 1.45; }
.features .ic { font-size: 20px; line-height: 1.2; flex: none; }

/* join */
.face { display: block; width: 104px; height: 104px; border-radius: 50%; margin: 4px auto 10px; border: 4px solid var(--card); box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.join h1 { text-align: center; font-size: 24px; line-height: 1.25; margin: 0 0 14px; }
.code { padding: 22px 14px; text-align: center; }
.digits {
  display: grid; grid-template-columns: repeat(3, 1fr) 10px repeat(3, 1fr);
  gap: 6px; max-width: 340px; margin: 0 auto;
}
.digits span {
  aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--brand); border-radius: 12px; background: var(--soft);
  font: 800 clamp(26px, 8vw, 38px)/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--dark);
}
.digits .sep { border: 0; background: none; }
.steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; font-size: 16px; font-weight: 600; line-height: 1.35; }
.steps .num {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; font-size: 14px; font-weight: 800;
}
.steps img { width: 40px; height: 40px; border-radius: 10px; flex: none; margin-left: auto; }
.btn {
  display: block; text-align: center; text-decoration: none; background: var(--brand); color: #fff;
  font-weight: 700; font-size: 17px; padding: 16px; border-radius: 14px; margin: 16px 0 6px;
}
.hint { color: var(--muted); font-size: 14px; text-align: center; margin: 10px 0 0; }
.nocode { padding: 18px 16px; text-align: center; color: var(--text); }

/* legal docs */
.doc { padding: 22px 18px 12px; }
.doc h1 { font-size: 22px; line-height: 1.3; font-weight: 800; margin: 0 0 4px; }
.doc .date { font-size: 13px; color: var(--faint); margin: 0 0 14px; }
.doc h2 { font-size: 17px; margin: 22px 0 8px; }
.doc p, .doc ul { color: var(--text); font-size: 15px; line-height: 1.6; margin: 0 0 10px; }
.doc ul { padding-left: 20px; }

/* language blocks (legal texts): RU without JS, the chosen language with it */
[data-lang] { display: none; }
html:not([data-ui]) [data-lang="ru"],
html[data-ui="ru"] [data-lang="ru"],
html[data-ui="kz"] [data-lang="kz"],
html[data-ui="en"] [data-lang="en"],
html[data-ui="tr"] [data-lang="tr"] { display: block; }
/* The apps open the legal pages with ?app=ios / ?app=android (packages/shared/src/webPage.ts):
   their store sentences then name only that phone's store — App Review 2.3.10 (2026-10-21).
   data-ios / data-android: only from that app · data-not-ios / data-not-android: not from it ·
   data-web: only without an app (the «или» between the two stores). */
[data-ios], [data-android] { display: none; }
html[data-app="ios"] [data-ios],
html[data-app="android"] [data-android] { display: inline; }
html[data-app="ios"] [data-not-ios],
html[data-app="android"] [data-not-android],
html[data-app] [data-web] { display: none; }

/* footer */
.foot {
  max-width: 640px; margin: 0 auto; padding: 22px 16px 32px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px;
  font-size: 13px; color: var(--muted);
}
.foot a { color: var(--muted); }

@media (min-width: 720px) {
  .hero h1 { font-size: 34px; }
  .apps { grid-template-columns: 1fr 1fr; }
  .app { align-items: flex-start; }
}

/* /delete-account */
.del-form { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; text-align: left; }
.del-form label { font-size: 14px; color: var(--muted); }
.del-form input { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--dark); }
.del-form .btn { border: 0; width: 100%; cursor: pointer; font-family: inherit; margin: 6px 0 0; }
.del-form .btn:disabled { opacity: .6; cursor: default; }
.btn.danger { background: #DC2626; }
