/* Orbalm website. Colours follow the app: a deep violet night and a glowing pink-violet ball. */
:root {
  --bg: #07070b;
  --bg-top: #1a0f2e;
  --surface: #21163a;
  --card: rgba(255, 255, 255, 0.045);
  --line: rgba(216, 180, 254, 0.14);
  --text: #ede7f6;
  --muted: #a99fc2;
  --accent: #f9a8d4;
  --glow: rgba(236, 72, 153, 0.45);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-top) 0, var(--bg) 720px) no-repeat, var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Language: both languages are in the page; the one not chosen is hidden.
   Without JavaScript the page stays in English. */
html:not(.uk) [lang="uk"]:not(html) { display: none !important; }
html.uk [lang="en"]:not(html) { display: none !important; }

/* Top bar */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px;
  background: rgba(10, 7, 18, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 40px; width: auto; margin: -6px 0 -6px -10px; }
.langs { display: flex; gap: 4px; }
.langs button {
  font: inherit; font-size: 14px; font-weight: 600; color: var(--muted);
  background: none; border: 1px solid transparent; border-radius: 999px;
  padding: 5px 11px; cursor: pointer;
}
.langs button[aria-pressed="true"] { color: var(--text); border-color: var(--line); background: var(--card); }

main { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
section { padding: 36px 0; }
@media (min-width: 700px) { section { padding: 56px 0; } }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 7vw, 56px); font-weight: 700; }
h2 { font-size: clamp(26px, 4.4vw, 36px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 650; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* The ball, breathing slowly: 4 s in, 6 s out, like in the app. */
.orb {
  position: relative;
  width: 200px; height: 200px; margin: 40px auto 28px; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, #f9d2ec 0%, transparent 42%),
    radial-gradient(circle at 70% 64%, #e879f9 0%, transparent 46%),
    radial-gradient(circle at 62% 36%, #8b8cf6 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, #c26ad8 0%, #6d28d9 100%);
  animation: breathe 10s ease-in-out infinite;
}
.orb::before {
  content: ""; position: absolute; inset: -45%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 28%, transparent 68%);
}
@keyframes breathe {
  0%, 100% { transform: scale(0.84); }
  40% { transform: scale(1); }
}
/* Four small balls on a thin glowing orbit around the big one, as on the app's Home. */
.orbit {
  position: relative; width: 300px; height: 300px; margin: 36px auto 28px;
  display: grid; place-items: center;
}
.orbit .orb { margin: 0; }
.ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(216, 180, 254, 0.4);
  box-shadow: 0 0 14px rgba(216, 180, 254, 0.25), inset 0 0 14px rgba(216, 180, 254, 0.18);
  animation: ring 8s ease-in-out infinite alternate;
}
@keyframes ring { from { opacity: 0.5; } to { opacity: 1; } }
.spin { position: absolute; inset: 0; animation: spin 80s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.moon {
  position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px;
  transform: rotate(var(--a)) translateY(-150px) rotate(calc(-1 * var(--a)));
}
/* Turns back against the orbit, so each ball's light stays at its top left. */
.moon .dot { display: block; width: 100%; height: 100%; margin: 0; animation: spin 80s linear infinite reverse; }
@media (prefers-reduced-motion: reduce) { .orb, .spin, .moon .dot, .ring { animation: none; } }

/* Hero */
/* The ball's glow is wider than a phone screen; it must not make the page scroll sideways. */
.hero { text-align: center; padding-top: 8px; overflow-x: clip; }
.hero h1 .soft { color: var(--accent); }
.lead { font-size: clamp(18px, 2.6vw, 21px); color: var(--muted); max-width: 620px; margin: 0 auto 26px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 14px;
  background: var(--text); color: #120a22; font-weight: 650; text-decoration: none;
}
.store svg { width: 20px; height: 20px; }
.store.soon { background: var(--surface); color: var(--text); border: 1px solid var(--line); cursor: default; }
.note { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* Three steps */
.steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px;
  border-radius: 50%; background: var(--surface); color: var(--accent); font-weight: 700;
}
.step p { color: var(--muted); margin: 0; }

/* Screenshots: a carousel that slides by itself, and can be swiped or moved with the arrows. */
.carousel { position: relative; }
.shots {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 16px 18px; margin: 0 -16px;
  scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shots figure { flex: 0 0 auto; width: 210px; margin: 0; scroll-snap-align: start; scroll-margin-left: 16px; }
.shots img { border-radius: 28px; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
.shots figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 10px; }
.slide-btn { display: none; }
@media (min-width: 700px) {
  /* Soft edges, so phones fade in and out at the sides. */
  .shots {
    margin: 0; padding: 8px 40px 18px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  }
  .shots figure { width: 220px; scroll-margin-left: 40px; }
  .slide-btn {
    display: grid; place-items: center; position: absolute; top: calc(50% - 40px); z-index: 2;
    width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
    font: inherit; font-size: 22px; line-height: 1; color: var(--text);
    background: var(--surface); border: 1px solid var(--line);
  }
  .slide-btn:hover { border-color: rgba(216, 180, 254, 0.4); }
  .slide-btn.prev { left: -8px; }
  .slide-btn.next { right: -8px; }
}

/* Features, each with a small ball in its colour (as on the app's Home) */
.features { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 26px; }
.feature { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.feature p { color: var(--muted); margin: 0; font-size: 16px; }
.dot { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; margin-top: 2px; }
.dot.purple { background: radial-gradient(circle at 35% 30%, #f9a8d4, #a855f7 60%, #4c1d95); box-shadow: 0 0 16px rgba(236, 72, 153, 0.5); }
.dot.sun { background: radial-gradient(circle at 35% 30%, #fff3c4, #fbbf24 60%, #b45309); box-shadow: 0 0 16px rgba(251, 191, 36, 0.5); }
.dot.sky { background: radial-gradient(circle at 35% 30%, #e0f2fe, #38bdf8 60%, #0c4a6e); box-shadow: 0 0 16px rgba(56, 189, 248, 0.5); }
.dot.lime { background: radial-gradient(circle at 35% 30%, #f7fee7, #bef264 60%, #4d7c0f); box-shadow: 0 0 16px rgba(190, 242, 100, 0.45); }
.dot.rose { background: radial-gradient(circle at 35% 30%, #ffe4e6, #fb7185 60%, #9f1239); box-shadow: 0 0 16px rgba(251, 113, 133, 0.5); }

/* Free and Premium */
.plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 26px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.plan.premium { background: linear-gradient(160deg, rgba(124, 58, 237, 0.22), rgba(236, 72, 153, 0.1)); }
.plan ul { margin: 0; padding-left: 20px; color: var(--muted); }
.plan li { margin-bottom: 6px; }

/* Calm note: privacy and the medical line */
.calm { background: var(--surface); border-radius: 24px; padding: 28px; }
.calm p:last-child { margin-bottom: 0; }

/* Legal and help pages */
.legal { max-width: 760px; padding-top: 36px; padding-bottom: 40px; }
.legal h1 { font-size: clamp(30px, 6vw, 42px); }
.legal h2 { font-size: 22px; margin-top: 34px; }
.legal li { margin-bottom: 6px; }
.legal .updated { color: var(--muted); font-size: 15px; }
.legal details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin-bottom: 10px; }
.legal summary { cursor: pointer; font-weight: 600; }
.legal details p { margin: 10px 0 0; color: var(--muted); }

footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 16px 40px; text-align: center; font-size: 15px; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-bottom: 10px; }
footer a { color: var(--text); text-decoration: none; }
footer a:hover { text-decoration: underline; }
