@font-face { font-family: Montserrat; src: url(montserrat.ttf) format("truetype"); font-weight: 100 900; }

/* app's Colors.xcassets */
:root {
  --bg: #fff; --card: #f4f4f4; --ink: #111; --soft: #767676; --outline: #e2e2e2;
  --accent: #d7ff3a; --accent-text: #5f7f00; --mixed: #e0a800; --wrong: #ee4a36;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000; --card: #121212; --ink: #f2f2f2; --soft: #8a8a8a; --outline: #262626;
    --accent-text: #d7ff3a; --mixed: #f2c14e; --wrong: #ff6b57;
  }
}

* { box-sizing: border-box; margin: 0; }
body {
  font-family: Montserrat, system-ui, sans-serif; background: var(--bg); color: var(--ink);
  min-height: 100svh; display: grid; place-items: center; overflow-x: hidden; padding: 16px;
}
main { position: relative; width: 100%; max-width: 960px; min-height: 640px; display: grid; place-items: center; }

.hero { position: relative; z-index: 1; text-align: center; display: grid; justify-items: center; gap: 20px; }
.hero img { width: 88px; height: 88px; border-radius: 22px; border: 1px solid var(--outline); }
h1 { font-size: clamp(40px, 8vw, 64px); font-weight: 700; letter-spacing: -0.02em; }
.dash { width: 32px; height: 3px; border-radius: 2px; background: var(--accent); }
p { font-size: 17px; color: var(--soft); max-width: 320px; line-height: 1.45; }
.store {
  margin-top: 8px; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px;
  border-radius: 999px; background: var(--accent); color: #000; font-weight: 600; font-size: 17px; text-decoration: none;
}
.store:hover { filter: brightness(0.95); }

/* stickers — outlined cards like the app */
.sticker {
  position: absolute; background: var(--bg); border: 1px solid var(--outline); border-radius: 16px;
  padding: 14px 18px; text-align: center; transform: rotate(var(--r)); animation: float 6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes float { 50% { transform: rotate(var(--r)) translateY(-8px); } }
.lang { display: inline-block; font-size: 11px; font-weight: 600; color: var(--soft); border: 1px solid var(--outline); border-radius: 999px; padding: 2px 8px; }
.term { font-size: 26px; font-weight: 600; margin-top: 8px; }
.tr { font-size: 14px; color: var(--soft); margin-top: 6px; }
.tr::before { content: ""; display: block; width: 24px; height: 3px; border-radius: 2px; background: var(--accent); margin: 0 auto 6px; }
.pill { border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 15px; }
.pill.ok { background: var(--accent); color: #000; border-color: transparent; }
.stat b { display: block; font-size: 22px; color: var(--accent-text); }
.stat span { font-size: 11px; color: var(--soft); }
.bars { display: flex; gap: 3px; margin-top: 10px; }
.bars i.k { background: var(--accent); }
.bars i.m { background: var(--mixed); }
.bars i.w { background: var(--wrong); }
.bars i { width: 3px; height: 14px; border-radius: 2px; background: var(--outline); }

.s1 { --r: -8deg; top: 4%; left: 4%; }
.s2 { --r: 6deg; top: 8%; right: 6%; --d: -2s; }
.s3 { --r: 5deg; bottom: 8%; left: 8%; --d: -4s; }
.s4 { --r: -6deg; bottom: 6%; right: 4%; --d: -1s; }
.s5 { --r: 10deg; top: 44%; left: 0; --d: -3s; }
.s6 { --r: -4deg; top: 46%; right: 0; --d: -5s; }

@media (max-width: 720px) {
  main { min-height: 100svh; }
  .s5, .s6 { display: none; }
  .sticker { padding: 10px 14px; }
  .term { font-size: 20px; }
  .s1 { top: 2%; left: 0; } .s2 { top: 4%; right: 0; } .s3 { bottom: 4%; left: 0; } .s4 { bottom: 2%; right: 0; }
}
@media (prefers-reduced-motion: reduce) { .sticker { animation: none; } }

.small { font-size: 13px; color: var(--soft); text-decoration: none; }
.small:hover { color: var(--ink); }

/* privacy & terms */
body.doc { display: block; padding: 48px 16px 64px; }
.doc article { max-width: 640px; margin: 0 auto; line-height: 1.6; }
.doc .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; color: var(--ink); text-decoration: none; font-weight: 600; }
.doc .brand img { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--outline); }
.doc h1 { font-size: 32px; }
.doc h2 { font-size: 20px; margin: 48px 0 8px; padding-top: 24px; border-top: 1px solid var(--outline); }
.doc h3 { font-size: 15px; margin: 24px 0 4px; }
.doc p, .doc li { font-size: 15px; color: var(--soft); max-width: none; }
.doc p + p, .doc ul { margin-top: 8px; }
.doc ul { padding-left: 20px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--accent-text); }
.doc .tldr { margin-top: 20px; padding: 16px 18px; border: 1px solid var(--outline); border-left: 3px solid var(--accent); border-radius: 12px; }
