:root {
  /* EasyRing's night purple and its warm ring colours, shared with the iPhone page (mobile/style.css). */
  --ink: #0B0618; --panel: #160C2E; --card: #1F1340; --line: rgba(255,255,255,0.12);
  --text: #fff; --muted: rgba(255,255,255,0.68);
  --mint: #FFC23D; --blue: #E46A47; --indigo: #8F7BB0;
  --grad: linear-gradient(120deg, #FFC23D, #F2A04E 30%, #E46A47 62%, #8F7BB0);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink) linear-gradient(160deg, #2A1650, #150B2E 40%, var(--ink) 75%) no-repeat; color: var(--text);
  font: 17px/1.55 "Inter", -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--mint); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.glow { position: fixed; border-radius: 50%; filter: blur(80px); opacity: .35; pointer-events: none; z-index: -1; }
.glow.a { width: 520px; height: 520px; background: #8F7BB0; top: -160px; left: -140px; animation: drift 14s ease-in-out infinite alternate; }
.glow.b { width: 420px; height: 420px; background: #E46A47; top: 30%; right: -160px; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(60px, 80px) scale(1.1); } }

nav { display: flex; align-items: center; gap: 28px; padding: 18px 0; }
nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; color: #fff; letter-spacing: -0.5px; }
nav .brand img { width: 36px; height: 36px; }
nav .spacer { flex: 1; }
nav a.link { color: var(--muted); font-weight: 600; font-size: 15px; }
nav a.link:hover, nav .brand:hover { color: #fff; text-decoration: none; }
/* The language switch sits apart from the page links, after a thin divider. */
nav a.link[lang] { padding-inline-start: 28px; border-inline-start: 1px solid var(--line); }
/* Mac / iPhone switch between EasyRing's two pages. */
nav .switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
nav .switch a { padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); }
nav .switch a:hover { text-decoration: none; color: #fff; }
nav .switch a[aria-current="page"] { background: var(--grad); color: #1A0B2E; }
/* A kicker over the headline: what the app is, for people and search engines. */
.kicker { display: inline-block; margin: 0 0 14px; font-size: 14px; font-weight: 700; color: var(--mint); letter-spacing: .02em; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 16px;
  font-weight: 800; color: #1A0B2E; background: var(--grad); box-shadow: 0 10px 30px rgba(228,106,71,.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 16px 40px rgba(228,106,71,.45); }
.btn.ghost { background: var(--card); box-shadow: none; border: 1px solid var(--line); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
/* Store buttons: "soon" ones are greyed out until their store has the app (for now both are). */
.btn.store.soon { background: var(--card); color: var(--muted); border: 1px solid var(--line); box-shadow: none; cursor: not-allowed; }
.btn.store.soon:hover { transform: none; }
.btn.store em { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--ink); color: var(--mint); }
[dir="rtl"] .btn.store em { letter-spacing: 0; font-size: 12px; }
.video video { pointer-events: none; }

.hero { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; padding: 48px 0 72px; }
/* The first screen shows the hero alone; the next section starts below the fold. */
.hero { min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); align-content: center; }
.hero h1 { font-size: clamp(40px, 4.2vw, 60px); line-height: 1.02; letter-spacing: -2.5px; margin: 0 0 18px; font-weight: 900; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 520px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
/* The store buttons, one under the other, as wide as the text above them: App Store, then Google Play (both coming soon for now). */
.hero .ctas { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 520px; }
.hero > div { min-width: 0; }
.hero .ctas .store { justify-content: center; padding: 12px 18px; font-size: 18px; white-space: nowrap; }
.hero .ctas .store svg { width: 26px; height: 26px; flex-shrink: 0; }
.hero .ctas .store .label { display: flex; flex-direction: column; line-height: 1.1; text-align: start; }
.hero .ctas .store .label small { font-size: 11px; font-weight: 600; opacity: .85; }
.video { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,194,61,.08); background: #000; aspect-ratio: 16 / 9; }
.video video { width: 100%; height: 100%; display: block; object-fit: cover; }

section { padding: 64px 0; }
section h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -1.5px; margin: 0 0 10px; font-weight: 900; }
section p.sub { color: var(--muted); margin: 0 0 36px; font-size: 18px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px;
  transition: transform .2s ease, border-color .2s ease;
  opacity: 0; transform: translateY(24px);
}
.card.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
.card:hover { border-color: rgba(255,255,255,.28); }
.card .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: #1A0B2E; display: grid; place-items: center; font-size: 22px; margin-bottom: 14px; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { position: relative; padding: 24px 24px 24px 76px; background: var(--panel); border-radius: 22px; border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 22px; top: 22px; width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #1A0B2E; font-weight: 900; display: grid; place-items: center; }
.step h3 { margin: 0 0 4px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.open { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 28px; padding: 40px; }
.open ul { margin: 0; padding: 0; list-style: none; }
.open li { padding: 8px 0 8px 30px; position: relative; color: var(--muted); }
.open li::before { content: "✓"; position: absolute; left: 0; color: var(--mint); font-weight: 900; }
code, pre { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 14px; }
pre { background: #000; border: 1px solid var(--line); border-radius: 14px; padding: 16px; overflow-x: auto; margin: 0; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
footer .spacer { flex: 1; }

.doc { max-width: 760px; padding: 24px 0 64px; }
.doc h1 { font-size: 44px; letter-spacing: -1.5px; margin: 12px 0 8px; }
.doc h2 { margin-top: 36px; }
.doc p, .doc li { color: rgba(255,255,255,.82); }
.doc .updated { color: var(--muted); }

@media (max-width: 900px) {
  /* Phones and small screens: everything centred, the video right under the headline. */
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; text-align: center; }
  .hero .hero-text { display: contents; }
  .hero h1 { order: 1; margin: 0; }
  .hero .video { order: 2; }
  .hero p.lead { order: 3; margin: 4px auto 0; }
  .hero .ctas { order: 4; width: 100%; margin-inline: auto; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
  .open { grid-template-columns: 1fr; padding: 28px; }
}
@media (max-width: 600px) {
  .grid, .steps { grid-template-columns: 1fr; }
  nav a.link.hide { display: none; }
  /* On phones the menu goes on its own line under the name, so nothing is cut off. */
  nav { flex-wrap: wrap; gap: 12px 18px; }
  nav .spacer { flex-basis: 100%; height: 0; }
  /* Centred, as the rest of the page on phones. */
  nav { justify-content: center; }
  nav a.link[lang] { padding-inline-start: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .card { opacity: 1; transform: none; }
}

/* Grid children may shrink below their content (long code lines scroll instead). */
.hero > *, .open > *, .grid > *, .steps > * { min-width: 0; }
@media (max-width: 600px) {
  .hero h1 { font-size: 40px; letter-spacing: -1.5px; }
  .hero p.lead { font-size: 18px; }
  .open { padding: 22px; }
  section { padding: 44px 0; }
}

/* Arabic pages (ar/): right to left, the system Arabic font, no negative tracking. */
[dir="rtl"] body { font-family: -apple-system, "SF Arabic", "Segoe UI", Tahoma, sans-serif; }
[dir="rtl"] .hero h1, [dir="rtl"] section h2, [dir="rtl"] .doc h1, [dir="rtl"] nav .brand { letter-spacing: 0; line-height: 1.25; }
[dir="rtl"] .step { padding: 24px 76px 24px 24px; }
[dir="rtl"] .step::before { left: auto; right: 22px; }
[dir="rtl"] .open li { padding: 8px 30px 8px 0; }
[dir="rtl"] .open li::before { left: auto; right: 0; }
[dir="rtl"] .glow.a { left: auto; right: -140px; }
[dir="rtl"] .glow.b { right: auto; left: -160px; }
@media (max-width: 520px) {
  .hero .ctas .store { padding: 12px 10px; }
}

/* Support questions: tap a question to open its answer. */
.doc details { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); margin: 10px 0; }
.doc details summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.doc details summary::-webkit-details-marker { display: none; }
.doc details summary::after { content: "+"; margin-inline-start: auto; font-size: 22px; line-height: 1; color: var(--muted); transition: transform .2s ease; }
.doc details[open] summary::after { transform: rotate(45deg); color: #fff; }
.doc details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* A small line under the store buttons. */
.hero p.note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
  .hero .kicker { order: 0; margin: 0; }
  .hero p.note { order: 5; margin: 0; }
}
@media (max-width: 600px) {
  nav .switch a { padding: 4px 10px; }
}

/* ---- Mac page only ---- */

/* The third hero button: a link to the iPhone & iPad page. */
.hero .ctas .store.ghost { background: var(--card); color: #fff; border: 1px solid var(--line); box-shadow: none; }
.hero .ctas .store.ghost svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero .ctas .store.ghost:hover { border-color: rgba(255,255,255,.3); }

/* Try it: the animated ring with the keys that open each ring. */
.try { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 28px; padding: 40px; }
.try h2 { margin-bottom: 10px; }
.try p.sub { margin-bottom: 22px; }
.try .hint { margin: 0; font-size: 14px; color: var(--muted); }
.demo { display: flex; align-items: center; gap: 20px; min-width: 0; }
.demo .stage { flex: 1; }
.keys { display: flex; flex-direction: column; gap: 10px; flex: none; }
.key {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 10px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card); color: var(--muted); font: inherit; cursor: pointer;
  transition: background .3s, border-color .3s, color .3s;
}
.key kbd {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); box-shadow: inset 0 -2px 0 rgba(255,255,255,.08);
  font: 600 13px "Inter", -apple-system, sans-serif; color: #fff;
}
.key kbd b { font-size: 15px; }
.key > span { font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.key:hover { border-color: rgba(255,255,255,.3); }
.key.on { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); color: #fff; }
.key.on kbd { background: var(--grad); color: #1A0B2E; border-color: transparent; box-shadow: none; }
.stage { position: relative; aspect-ratio: 1; max-width: 440px; width: 100%; margin-inline: auto; }
.wheel { position: absolute; inset: 9%; width: 82%; height: 82%; filter: drop-shadow(0 30px 50px rgba(0,0,0,.5)); }
.wheel .guide { fill: rgba(11,6,24,.55); stroke: rgba(255,255,255,.14); stroke-dasharray: 2 8; }
.wheel .seg path { fill: rgba(255,255,255,.08); stroke: rgba(255,255,255,.06); transition: fill .35s, transform .35s; transform-origin: 200px 200px; }
.wheel .seg text { fill: rgba(255,255,255,.85); font: 700 15px "Inter", -apple-system, sans-serif; transition: fill .35s; }
.wheel .seg.on path { fill: var(--c); transform: scale(1.04); }
.wheel .seg.on text { fill: #0b0618; }
.wheel .hub { fill: #f4f1fb; }
.wheel .hub-label { fill: #0b0618; font: 800 24px "Inter", -apple-system, sans-serif; }
.file {
  position: absolute; inset-inline-start: -4%; bottom: 6%; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; min-width: 230px; border-radius: 16px; background: rgba(255,255,255,.95); color: #15121f;
  box-shadow: 0 18px 40px rgba(0,0,0,.45); overflow: hidden; transition: transform .4s;
}
.file-icon { position: relative; width: 44px; height: 54px; border-radius: 8px; background: #ece9f4; flex: none; }
.file-icon .ext { position: absolute; left: -6px; bottom: 8px; padding: 2px 6px; border-radius: 6px; background: var(--c, #8b8b9a); color: #fff; font-size: 11px; font-weight: 800; transition: background .4s; }
.file-meta { display: flex; flex-direction: column; line-height: 1.3; }
.file-meta strong { font-size: 15px; }
.file-meta span { font-size: 13px; color: #6b6780; }
.fstate { margin-inline-start: auto; font-size: 12px; font-weight: 700; color: #6b6780; white-space: nowrap; }
.file.done { transform: scale(1.04); }
.file.done .fstate { color: #1f9d55; }
.file.working::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--grad); transform-origin: left; animation: fill .6s linear forwards; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.tags { position: absolute; inset: 0; }
.tag { position: absolute; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: rgba(255,255,255,.7); font-size: 12px; font-weight: 700; letter-spacing: .04em; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.t0 { left: 2%; top: 8%; } .t1 { left: 40%; top: -2%; animation-delay: -1s; } .t2 { right: 4%; top: 14%; animation-delay: -2s; }
.t3 { left: -6%; top: 34%; animation-delay: -3s; } .t4 { right: -6%; top: 40%; animation-delay: -4s; } .t5 { left: 8%; top: 60%; animation-delay: -5s; }
.t6 { right: 2%; top: 66%; animation-delay: -1.5s; } .t7 { left: 48%; bottom: -3%; animation-delay: -2.5s; } .t8 { right: 22%; bottom: 4%; animation-delay: -3.5s; }
.t9 { left: 24%; top: 4%; animation-delay: -4.5s; } .t10 { right: 20%; top: 2%; animation-delay: -.5s; } .t11 { left: -2%; top: 50%; animation-delay: -5.5s; }
.t12 { right: -2%; top: 56%; animation-delay: -2.2s; } .t13 { left: 30%; bottom: 0; animation-delay: -3.8s; }
.try > * { min-width: 0; }
@media (max-width: 900px) {
  .try { grid-template-columns: 1fr; text-align: center; padding: 28px; gap: 28px; }
  .demo { flex-direction: column; }
  .keys { flex-direction: row; }
  .stage { max-width: 380px; }
  .file { inset-inline-start: 0; min-width: 210px; }
}
@media (max-width: 600px) {
  .try { padding: 22px 16px; }
  .stage { max-width: 300px; }
  .tags { inset: 0 7%; }
}

/* Privacy, Support and Terms pages share this style sheet. */
.doc a { color: var(--mint); }
.doc { padding-inline: 0; }

/* The iPhone app's link in the menu: on phones the hero's iPhone & iPad button is enough. */
@media (max-width: 600px) {
  header.top nav a.mobile-link { display: none; }
}
