/* The Wnote site: the app's own night — black, and over it slow violet and rose light, glass, a fine edge. */
:root {
  color-scheme: dark;
  --ground: #09060d;
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, .74);
  --ink-3: rgba(255, 255, 255, .52);
  --glass: rgba(255, 255, 255, .06);
  --edge: rgba(255, 255, 255, .22);
  --accent: #c3a2ff;
  --fill: #8b5cf6;
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 40px);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html { background: var(--ground); }
/* Clear: the ground (.ground) lies under it, over the page's own color. */
body { margin: 0; background: transparent; }
body { color: var(--ink); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent); text-underline-offset: 3px; }
img { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* While another language than English loads, nothing shows (lang.js; at most 1.5 s). */
.i18n-wait body { visibility: hidden; }

/* The ground: the app's swirl, standing still behind everything, moving slowly where motion is welcome. */
.ground { position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 34% at 18% 12%, rgba(138, 31, 143, .55), transparent 70%),
    radial-gradient(44% 38% at 86% 78%, rgba(255, 74, 158, .38), transparent 72%),
    radial-gradient(36% 30% at 70% 30%, rgba(61, 17, 80, .7), transparent 70%),
    var(--ground); }
@media (prefers-reduced-motion: no-preference) {
  .ground { animation: drift 40s ease-in-out infinite alternate; }
  @keyframes drift { to { transform: translate3d(3%, -2%, 0) scale(1.06); } }
}

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter); max-width: 1040px; margin: 0 auto; }
.mark { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.mark img { border-radius: 7px; }
.lang select { font: 15px var(--sans); color: var(--ink); background: var(--glass); border: 1px solid var(--edge);
  border-radius: 999px; padding: 7px 14px; -webkit-appearance: none; appearance: none; }

main { max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter) 64px; }
.hero { text-align: center; padding: clamp(40px, 9vw, 96px) 0 48px; }
.hero .icon { margin: 0 auto 22px; border-radius: 25px; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
h1 { font: 700 clamp(40px, 7vw, 64px)/1.05 var(--display); letter-spacing: -.02em; margin: 0; }
.tagline { font: 600 clamp(20px, 3vw, 26px)/1.3 var(--display); color: var(--accent); margin: 12px 0 18px; }
.lead { max-width: 620px; margin: 0 auto; color: var(--ink-2); font-size: clamp(17px, 2.2vw, 19px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px;
  border-radius: 999px; background: var(--fill); color: #fff; font-weight: 600; text-decoration: none;
  transition: transform .15s ease, opacity .15s ease; }
.button:hover { opacity: .9; }
.button:active { transform: scale(.98); }
.button.quiet { background: var(--glass); border: 1px solid var(--edge); }

h2 { font: 700 clamp(24px, 3.4vw, 30px)/1.2 var(--display); margin: 0 0 14px; }
.steps, .mac { margin: 24px auto 0; max-width: 760px; padding: clamp(22px, 4vw, 34px); border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--edge); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: baseline; color: var(--ink-2); }
.steps li b { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(195, 162, 255, .18); color: var(--accent); font-size: 15px; }
.mac p { color: var(--ink-2); }
.mac .button { margin-top: 6px; }
.small { font-size: 14px; color: var(--ink-3) !important; margin: 10px 0 0; }

.page { max-width: 720px; padding-top: 24px; }
.page h1 { font-size: clamp(36px, 6vw, 48px); margin-bottom: 8px; }
.page h2 { font-size: 21px; margin: 32px 0 8px; }
.page p { color: var(--ink-2); margin: 0 0 12px; }
.updated { color: var(--ink-3) !important; font-size: 15px; }

.foot { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; padding: 28px var(--gutter) 40px;
  color: var(--ink-3); font-size: 14px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); }

[dir="rtl"] .steps li { flex-direction: row; }
