/* parleca.com and lela.parleca.com: one style sheet for both sites. */
/* The light scheme: white and grey, green buttons, blue links. */
:root {
  color-scheme: light;
  --page: #ffffff;
  --tint: #f6f8fa;
  --bar: #eef1f4;
  --surface: #ffffff;
  --line: #d1d9e0;
  --ink: #1f2328;
  --muted: #59636e;
  --head-1: #1f2328;
  --head-2: #1f2328;
  --strong: #1f2328;
  --link: #0969da;
  --link-hover: #0550ae;
  --button: #1f883d;
  --button-hover: #1a7f37;
  --on-button: #ffffff;
  --band: #24292f;
  --on-band: #ffffff;
  --shadow: rgba(31, 35, 40, 0.18);
  --notice: #fde8e8;
  --on-notice: #8a1c1c;
  --logo-filter: none;
  --radius: 10px;
}
/* The dark scheme: grey-blue, sky blue and purple. It applies when the visitor chose it with the
   switch in the menu (data-theme on <html>) and, with no choice made, when the browser asks for a
   dark page. The two blocks below must stay the same. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #282c34;
  --tint: #21252b;
  --bar: #1b1e23;
  --surface: #2f343d;
  --line: #3e4451;
  --ink: #d7dae0;
  --muted: #9da5b4;
  --head-1: #61afef;
  --head-2: #c678dd;
  --strong: #d7dae0;
  --link: #61afef;
  --link-hover: #7dbff5;
  --button: #61afef;
  --button-hover: #7dbff5;
  --on-button: #1b1f25;
  --band: #353b45;
  --on-band: #d7dae0;
  --shadow: rgba(0, 0, 0, 0.5);
  --notice: #4a2326;
  --on-notice: #ffb4b4;
  --logo-filter: brightness(0) invert(0.86);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #282c34;
    --tint: #21252b;
    --bar: #1b1e23;
    --surface: #2f343d;
    --line: #3e4451;
    --ink: #d7dae0;
    --muted: #9da5b4;
    --head-1: #61afef;
    --head-2: #c678dd;
    --strong: #d7dae0;
    --link: #61afef;
    --link-hover: #7dbff5;
    --button: #61afef;
    --button-hover: #7dbff5;
    --on-button: #1b1f25;
    --band: #353b45;
    --on-band: #d7dae0;
    --shadow: rgba(0, 0, 0, 0.5);
    --notice: #4a2326;
    --on-notice: #ffb4b4;
    --logo-filter: brightness(0) invert(0.86);
  }
}

* { box-sizing: border-box; }
/* The header is sticky (78 px): a jump to an anchor stops right below it. */
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

h1, h2, h3, h4, h5, h6 { line-height: 1.3; margin: 0 0 16px; }
h1 { color: var(--head-1); font-size: 36px; font-weight: 700; }
h2 { color: var(--head-2); font-size: 30px; font-weight: 700; }
h3 { color: var(--strong); font-size: 26px; font-weight: 700; }
h4 { color: var(--head-2); font-size: 22px; font-weight: 700; }
h5 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 6px; }
li > p { margin: 0; }

/* Header */
.site-header { background: var(--bar); position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 78px; }
.logo img { height: 44px; width: auto; filter: var(--logo-filter); }
.site-lela .logo img { height: 24px; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  color: var(--strong); font-weight: 600; text-decoration: none; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a.active, .nav a:hover { border-bottom-color: var(--strong); color: var(--strong); }
.menu-toggle, .menu-button { display: none; }
/* The colour theme switch at the end of the menu: auto (as the browser), light, dark */
.theme-toggle {
  display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--strong); background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px; cursor: pointer;
}
.theme-toggle:hover { background: var(--tint); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle[hidden] { display: none; }

/* A menu item with a drop-down list: opens on hover or keyboard focus */
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop > a::after {
  content: ""; display: inline-block; margin-left: 7px; vertical-align: middle;
  border: 4px solid transparent; border-top-color: currentColor; border-bottom-width: 0;
}
.nav-drop__menu {
  display: none; position: absolute; top: calc(100% + 10px); left: -16px; min-width: 200px;
  background: var(--surface); border-radius: var(--radius); padding: 8px 0;
  box-shadow: 0 10px 24px var(--shadow);
}
/* Keeps the list open while the pointer crosses the gap under the item */
.nav-drop__menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-drop:hover .nav-drop__menu, .nav-drop:focus-within .nav-drop__menu { display: block; }
.nav-drop__menu a { display: block; padding: 9px 16px; border-bottom: 0; font-weight: 500; white-space: nowrap; }
.nav-drop__menu a:hover, .nav-drop__menu a.active { background: var(--tint); }
/* A second menu line for the pages of one app: its icon and name, then the links */
.subnav { background: var(--surface); border-bottom: 1px solid var(--line); }
.subnav-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; min-height: 52px; padding-top: 8px; padding-bottom: 8px; }
.subnav__title { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--strong); margin-right: 8px; }
.subnav__title img { width: 28px; height: 28px; border-radius: 7px; }
.subnav a {
  color: var(--strong); font-weight: 500; font-size: 15px; text-decoration: none; padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.subnav a.active, .subnav a:hover { border-bottom-color: var(--strong); }

/* Sections */
.band { padding: 64px 0; }
.band--tint { background: var(--tint); }
.band--tight { padding: 40px 0; }
.band--dark { background: var(--band); color: var(--on-band); text-align: center; }
/* A low strip: it holds two lines and a button */
.band.band--dark { padding: 28px 0; }
.band--dark p:last-child { margin-bottom: 0; }
.band--dark h2, .band--dark h5, .band--dark p { color: var(--on-band); }
.center { text-align: center; }
.lead { font-size: 18px; color: var(--muted); }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.split--media-left { grid-template-columns: 0.9fr 1.1fr; }
.split--media-left .split__media { order: -1; }

/* Phone screenshots: overlapping, the last one in front */
.phones { display: flex; justify-content: center; align-items: flex-start; }
.phones img {
  width: 44%; max-width: 260px; border-radius: 22px;
  filter: drop-shadow(0 12px 24px var(--shadow));
}
.phones img + img { margin-left: -14%; margin-top: 48px; }
.phones img + img + img { margin-top: 96px; }
.phones--single img { width: 70%; max-width: 300px; margin: 0 auto; }

.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 24px; }
.gallery img { border-radius: 18px; filter: drop-shadow(0 10px 18px var(--shadow)); }

.button {
  display: inline-block; background: var(--button); color: var(--on-button); text-decoration: none;
  font-weight: 600; padding: 12px 26px; border-radius: 8px; border: 0; cursor: pointer; font-size: 16px;
}
.button:hover { background: var(--button-hover); color: var(--on-button); }
.button--light { background: var(--surface); color: var(--button); border: 1px solid var(--button); }
.button--light:hover { background: var(--tint); color: var(--button-hover); }
.badge-soon {
  display: inline-block; background: var(--surface); color: var(--strong); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 12px; font-size: 14px; font-weight: 600;
}

.store-row { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; justify-content: center; }
.store-row h2 { margin: 0; font-size: 22px; }
.store-row img { height: 120px; width: auto; }
.store-row .store-badge { height: 110px; border-radius: 16px; }

/* Apps on the company home page */
.app { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.app + .app { margin-top: 80px; }
.app__meta { margin-bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.app__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.app-icon { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 16px; }

/* Text pages (policies, terms, rules) */
.text-page { max-width: 860px; }
.text-page h6 { color: var(--strong); font-size: 19px; font-weight: 700; margin: 28px 0 10px; }
.text-page h5 { color: var(--strong); font-size: 22px; margin: 32px 0 12px; }
.links-list { list-style: none; padding: 0; }
.links-list li { margin: 0 0 14px; font-size: 18px; font-weight: 600; }
.updated { color: var(--muted); font-size: 14px; }

.rules p { white-space: pre-line; }
.rules .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

/* Video */
.video {
  position: relative; display: block; max-width: 760px; margin: 0 auto; border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 16 / 9; background: #000;
}
.video img, .video iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.video .play {
  position: absolute; inset: 0; margin: auto; width: 84px; height: 60px; border-radius: 14px;
  background: #ff0000cc; display: flex; align-items: center; justify-content: center;
}
.video .play::after {
  content: ""; border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}

/* Contact form */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact img { border-radius: var(--radius); }
/* The contact form alone, without a picture beside it */
.contact-single { max-width: 620px; }
.form label { display: block; font-weight: 600; margin: 0 0 6px; color: var(--strong); }
.form input, .form textarea, .form select {
  width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink); margin-bottom: 18px;
}
.form textarea { min-height: 160px; resize: vertical; }
.form select { color: inherit; cursor: pointer; }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 12px 16px; border-radius: 8px; background: var(--notice); color: var(--on-notice); margin-bottom: 18px; }

/* Footer */
.site-footer { background: var(--bar); padding: 36px 0 20px; margin-top: 0; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-row a { color: var(--link); font-weight: 600; font-size: 15px; }
.copyright { color: var(--muted); font-size: 13px; margin-top: 18px; }

@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  h1 { font-size: 26px; }
  h2 { font-size: 24px; }
  h3 { font-size: 22px; }
  .band { padding: 44px 0; }
  .split, .split--media-left, .app, .contact, .rules .pair { grid-template-columns: 1fr; gap: 28px; }
  .split--media-left .split__media { order: 0; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .store-row img { height: 96px; }
  .menu-button {
    display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px;
  }
  .menu-button span { width: 24px; height: 2px; background: var(--strong); display: block; }
  .nav {
    display: none; position: absolute; top: 78px; left: 0; right: 0; background: var(--bar);
    flex-direction: column; gap: 0; padding: 8px 16px 16px; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  }
  .nav { align-items: stretch; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .theme-toggle { align-self: flex-start; margin-top: 14px; }
  .menu-toggle:checked ~ .nav { display: flex; }
  .nav-drop { flex-direction: column; align-items: stretch; }
  .nav-drop > a::after { display: none; }
  .nav-drop__menu {
    display: block; position: static; min-width: 0; background: none; box-shadow: none;
    padding: 0 0 0 18px; border-radius: 0;
  }
  .nav-drop__menu::before { display: none; }
  .nav-drop__menu a { padding: 11px 0; border-bottom: 1px solid var(--line); }
}
