/* TuitGPT: the Android move to Google Play (site/beta, owner's request of 16.10.2026). Brand «Маркер» from the landing
   (../assets/css/site.css, mobile/src/theme/tokens.ts) as on the referral page (../r/r.css): cobalt, marker yellow, ink,
   Onest. Phone first (students open it from Telegram on Android, 360 px), one column up to 600 px. Light and dark follow
   the system; the brand colours stay. No scripts. Motion only on press, none with reduced motion. */

@font-face { font-family: "Onest"; src: url("/assets/fonts/onest-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Onest"; src: url("/assets/fonts/onest-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Onest"; src: url("/assets/fonts/onest-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --cobalt: #2D3CE6;
  --cobalt-hover: #3846F0;
  --cobalt-tint: #E3E6FF;
  --cobalt-ink: #2230C4;
  --marker: #FFE433;
  --marker-tint: #FFF5B3;
  --marker-ink: #17134A;
  --mint-text: #0A7A4E;
  --ink: #17134A;
  --ink2: #4B4874;
  --muted: #5F5C86;
  --bg: #FFFFFF;
  --glow: rgba(45, 60, 230, .10);
  --card: #F7F8FC;
  --card-line: rgba(23, 19, 74, .065);
  --chip: #FFFFFF;
  --chip-line: rgba(23, 19, 74, .10);
  --ghost: #FFFFFF;
  --ghost-line: rgba(23, 19, 74, .10);
  --rail: rgba(45, 60, 230, .22);
  --shadow-btn: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -2px 0 rgba(0, 0, 0, .10), 0 12px 26px -12px rgba(45, 60, 230, .8), 0 2px 6px rgba(45, 60, 230, .22);
  --shadow-card: 0 1px 2px rgba(23, 19, 74, .04), 0 16px 40px -28px rgba(23, 19, 74, .35);
  --font: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pill: 100px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --cobalt: #4A57FF;
    --cobalt-hover: #5B67FF;
    --cobalt-tint: rgba(91, 103, 255, .2);
    --cobalt-ink: #AEB5FF;
    --marker-tint: rgba(255, 228, 51, .14);
    --marker-ink: #FFE433;
    --mint-text: #3DDC97;
    --ink: #F2F3FF;
    --ink2: #C9C8E6;
    --muted: #A9A7C6;
    --bg: #0F0C2E;
    --glow: rgba(74, 87, 255, .22);
    --card: #19163F;
    --card-line: rgba(255, 255, 255, .07);
    --chip: #19163F;
    --chip-line: rgba(255, 255, 255, .12);
    --ghost: #221E52;
    --ghost-line: rgba(255, 255, 255, .12);
    --rail: rgba(140, 150, 255, .28);
    --shadow-btn: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -2px 0 rgba(0, 0, 0, .2), 0 12px 26px -12px rgba(74, 87, 255, .9);
    --shadow-card: none;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(120% 60% at 50% -10%, var(--glow), transparent 60%), var(--bg);
  background-color: var(--bg);
  color: var(--ink);
  font: 500 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b { font-weight: 700; color: var(--ink); }
:focus-visible { outline: 2.5px solid var(--cobalt); outline-offset: 3px; border-radius: 10px; }
::selection { background: var(--marker); color: #17134A; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.s { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic { width: 20px; height: 20px; flex: none; }
.nw { white-space: nowrap; }

/* ------------------------------------------------------------------ top */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 600px; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) 16px 6px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; }
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.lang { display: inline-flex; padding: 3px; border-radius: var(--pill); background: var(--chip); box-shadow: 0 0 0 1px var(--chip-line); }
.lang-opt {
  display: inline-grid; place-items: center; min-width: 44px; height: 34px; padding: 0 12px; border-radius: var(--pill);
  color: var(--muted); font-weight: 700; font-size: 13.5px; letter-spacing: .02em; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.lang-opt:hover { color: var(--ink); }
.lang-opt[aria-current="page"] { background: var(--cobalt); color: #fff; }

/* ------------------------------------------------------------------ page */
.page { max-width: 600px; margin: 0 auto; padding: 8px 16px 24px; display: flex; flex-direction: column; gap: 14px; }
.hero { text-align: center; padding: 18px 4px 4px; }
.hero-art { display: grid; place-items: center; margin-bottom: 18px; }
.hero-icon { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 18px 36px -18px rgba(45, 60, 230, .75), 0 0 0 1px rgba(23, 19, 74, .06); }
.move {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 13px 4px 6px; border-radius: var(--pill);
  background: var(--cobalt-tint); color: var(--cobalt-ink); font-weight: 700; font-size: 14px; line-height: 1.2;
}
.move-old {
  padding: 3px 8px; border-radius: var(--pill); background: var(--chip); box-shadow: 0 0 0 1px var(--chip-line);
  color: var(--muted); font-size: 12.5px; letter-spacing: .03em; text-decoration: line-through; text-decoration-thickness: 1.5px;
}
.move .ic { width: 16px; height: 16px; }
.h1 { margin-top: 14px; font-weight: 600; font-size: 34px; line-height: 1.1; letter-spacing: -0.035em; text-wrap: balance; }
.lead { margin: 14px auto 0; max-width: 480px; color: var(--muted); font-size: 17px; line-height: 1.55; text-wrap: pretty; }

/* ------------------------------------------------------------------ the "keep the APK app" note */
.note {
  display: flex; gap: 12px; padding: 16px; border-radius: 20px;
  background: var(--marker-tint); color: var(--ink);
}
.note > .ic { margin-top: 2px; color: var(--marker-ink); }
.note-title { font-weight: 700; line-height: 1.35; }
.note-text { margin-top: 4px; color: var(--ink2); font-size: 15px; line-height: 1.5; }

/* ------------------------------------------------------------------ steps */
.steps { display: grid; gap: 14px; }
.step {
  position: relative; padding: 20px 18px 18px; border-radius: 24px;
  background: var(--card); box-shadow: 0 0 0 1px var(--card-line), var(--shadow-card);
}
/* a short rail between the cards, from one number to the next */
.step + .step::before {
  content: ""; position: absolute; left: 34px; top: -15px; width: 2px; height: 16px; border-radius: 2px; background: var(--rail);
}
.step-head { display: flex; align-items: center; gap: 12px; }
.step-n {
  width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--cobalt); color: #fff; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums;
}
.step-title { font-weight: 700; font-size: 19px; line-height: 1.25; letter-spacing: -0.02em; text-wrap: balance; }
.step-text { margin-top: 10px; color: var(--ink2); font-size: 15.5px; line-height: 1.5; text-wrap: pretty; }
.step .btn { margin-top: 16px; }
.step-hint { display: flex; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.45; text-wrap: pretty; }
.step-hint .ic { width: 17px; height: 17px; margin-top: 1px; color: var(--cobalt-ink); }

.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: var(--h); padding: 10px 22px; border: 0; border-radius: var(--pill);
  font: 600 16px/1.2 var(--font); letter-spacing: -0.01em; text-align: center; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--cobalt); color: #fff; box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: var(--cobalt-hover); }
.btn-xl { --h: 58px; display: flex; width: 100%; font-size: 17.5px; }
.btn-xl .ic { width: 21px; height: 21px; }
.btn-xl .ic-out { width: 17px; height: 17px; opacity: .8; }
.btn-ghost { background: var(--ghost); color: var(--ink); box-shadow: 0 0 0 1px var(--ghost-line), 0 2px 8px rgba(23, 19, 74, .05); }
.btn-ghost .ic { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ if something is off */
.card { padding: 20px 18px; border-radius: 24px; background: var(--card); box-shadow: 0 0 0 1px var(--card-line), var(--shadow-card); }
.h2 { font-weight: 700; font-size: 21px; line-height: 1.25; letter-spacing: -0.025em; }
.tips { margin-top: 14px; display: grid; gap: 14px; }
.tips li { display: flex; gap: 12px; align-items: flex-start; }
.t-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--cobalt-tint); color: var(--cobalt-ink); }
.tips b { display: block; font-size: 16px; line-height: 1.35; }
.tips span:not(.t-ic) { display: block; margin-top: 2px; color: var(--muted); font-size: 14.5px; line-height: 1.45; text-wrap: pretty; }

/* ------------------------------------------------------------------ iPhone + questions */
.more { display: grid; gap: 14px; }
.box { display: flex; flex-direction: column; align-items: center; padding: 20px 18px; border-radius: 24px; text-align: center; box-shadow: inset 0 0 0 1.5px var(--card-line); }
.h3 { font-weight: 700; font-size: 17px; line-height: 1.3; letter-spacing: -0.015em; }
.box p { margin: 6px auto 14px; max-width: 420px; color: var(--muted); font-size: 15px; text-wrap: pretty; }
.box .btn { margin-top: auto; }

.foot {
  max-width: 600px; margin: 0 auto; padding: 8px 16px max(28px, env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; color: var(--muted); font-size: 13.5px; font-weight: 600;
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

@media (min-width: 560px) {
  .h1 { font-size: 44px; }
  .lead { font-size: 18px; }
  .page { gap: 16px; }
  .step { padding: 24px 24px 22px; }
  .step + .step::before { left: 40px; }
  .card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:active { transform: none; }
}
