/* Colours from the app icon (magenta to violet tile) and the app's dark UI. */
:root {
  --magenta: #d300db;
  --violet: #6a3de8;
  --violet-light: #8562f0;
  --violet-deep: #4a22c0;
  --ink: #1b1530;
  --night: #17131f;
  --night-violet: #2c1257;
}

/* Below Bulma's desktop width the container has no gutter and its columns overflow the viewport. */
@media screen and (max-width: 1023px) {
  .hero-section .container,
  .features-section .container,
  .webapp-section .container,
  .cta-section .container,
  .footer-section .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

.navbar-brand .navbar-item:first-child {
  display: inline-flex;
  align-items: center;
}

.navbar-brand .navbar-item:first-child::before {
  content: "";
  width: 1.9rem;
  height: 1.9rem;
  margin-right: 0.65rem;
  background: url("../images/favicon.svg") center / contain no-repeat;
}

.hero-section {
  background: linear-gradient(135deg, var(--night-violet) 0%, var(--night) 62%);
}

.hero-section::before {
  background: radial-gradient(ellipse, rgba(106, 61, 232, 0.32) 0%, transparent 70%);
}

.hero-section::after {
  background: radial-gradient(ellipse, rgba(211, 0, 219, 0.12) 0%, transparent 70%);
}

.store-button {
  background: var(--violet);
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.store-button:hover {
  background: var(--violet-light);
  border-color: transparent;
  box-shadow: 0 12px 40px rgba(106, 61, 232, 0.45);
}

/* A desktop app has no phone screens. The window frame is the hero image and
   the window gallery (#webapp) is the screenshot section. The empty phone
   gallery right above it stays as an anchor, so that the #screenshots link in
   the navbar of every page lands on the gallery. */
.phone-mockup,
.navbar-item[href="#webapp"] {
  display: none;
}

.screenshots-section {
  height: 0;
  padding: 0;
  overflow: hidden;
  visibility: hidden;
}

.hero-browser {
  display: block;
  position: relative;
  top: auto;
  right: auto;
  width: 100%;
  max-width: 720px;
  transform: none;
  opacity: 1;
  z-index: 0;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 120px rgba(106, 61, 232, 0.25);
}

/* Two frames per row: at the engine's 420px the app's text is too small to read. */
@media screen and (min-width: 769px) {
  .browser-item {
    width: 540px;
  }
}

.webapp-section {
  background: linear-gradient(180deg, #f6f3fd 0%, #ffffff 100%);
}

.section-tag {
  background-image: linear-gradient(135deg, var(--magenta) 0%, var(--violet) 100%);
}

.section-title,
.feature-box h3 {
  color: var(--ink);
}

.feature-icon {
  background: linear-gradient(135deg, var(--magenta) 0%, var(--violet) 100%);
  box-shadow: 0 10px 30px -10px rgba(106, 61, 232, 0.6);
}

.cta-section {
  background: linear-gradient(135deg, var(--night-violet) 0%, var(--night) 100%);
}

.cta-section::before {
  background: radial-gradient(ellipse, rgba(106, 61, 232, 0.25) 0%, transparent 60%);
}

.cta-button.is-source {
  background: var(--violet);
  box-shadow: none;
  color: #ffffff;
}

.cta-button.is-source:hover {
  background: var(--violet-light);
  box-shadow: 0 15px 40px rgba(106, 61, 232, 0.45);
  color: #ffffff;
}

.footer-section {
  background: #100d16;
}

.legal-content a {
  color: var(--violet);
}

.legal-content a:hover {
  color: var(--violet-deep);
}

.legal-content .callout,
.legal-content .art21 {
  border-left-color: var(--violet);
  background: #f5f2fe;
}

.button.is-primary,
.button.is-primary:hover,
.button.is-primary:focus {
  background-color: var(--violet);
  color: #ffffff;
}

.store-button:focus-visible,
.cta-button:focus-visible {
  outline: 3px solid #e879f9;
  outline-offset: 3px;
}
