/* Colours from docs/logo/icon.svg: indigo body, pink antenna, dark pupils. */
:root {
  --indigo: #6a6cff;
  --indigo-mid: #4b4ff0;
  --indigo-deep: #2d2fc4;
  --pink: #ff5c7a;
  --ink: #171b24;
  --night: #0f1218;
  --night-indigo: #1b1d4d;
}

/* 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,
  .screenshots-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: 2rem;
  height: 2rem;
  margin-right: 0.6rem;
  background: url("../images/favicon.svg") center / contain no-repeat;
}

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

.hero-section::before {
  background: radial-gradient(ellipse, rgba(106, 108, 255, 0.3) 0%, transparent 70%);
}

.hero-section::after {
  background: radial-gradient(ellipse, rgba(255, 92, 122, 0.1) 0%, transparent 70%);
}

.store-buttons .store-button:first-child {
  background: var(--indigo-mid);
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.store-buttons .store-button:first-child:hover {
  background: var(--indigo);
  border-color: transparent;
  box-shadow: 0 12px 40px rgba(75, 79, 240, 0.45);
}

/* The product is a web UI, so the browser frame leads and one phone stands in front of it. */
@media screen and (min-width: 769px) {
  .phone-mockup-container {
    padding: 1rem 0 3.5rem;
  }

  .hero-browser {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-width: 660px;
    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, 108, 255, 0.2);
  }

  .phone-mockup {
    position: absolute;
    right: -0.25rem;
    bottom: 0;
    width: clamp(120px, 26%, 172px);
    z-index: 1;
  }

  .phone-mockup.secondary {
    display: none;
  }

  .phone-mockup .phone-frame {
    border-radius: 26px;
    padding: 7px;
  }

  .phone-mockup .phone-frame::after {
    top: 70px;
    height: 30px;
  }

  .phone-mockup .phone-screen {
    border-radius: 19px;
  }
}

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

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

.feature-icon {
  position: relative;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-deep) 100%);
  box-shadow: 0 10px 30px -10px rgba(45, 47, 196, 0.6);
}

/* The antenna bulb of the logo, as an unread dot. */
.feature-icon::after {
  content: "";
  position: absolute;
  top: -5px;
  right: -5px;
  width: 14px;
  height: 14px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: var(--pink);
  box-sizing: content-box;
}

.feature-box:hover .feature-icon::after {
  border-color: #f8f9fa;
}

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

.cta-section::before {
  background: radial-gradient(ellipse, rgba(106, 108, 255, 0.22) 0%, transparent 60%);
}

.cta-button.is-homeassistant {
  background: var(--indigo-mid);
  color: #ffffff;
}

.cta-button.is-homeassistant:hover {
  background: var(--indigo);
  box-shadow: 0 15px 40px rgba(75, 79, 240, 0.45);
  color: #ffffff;
}

.footer-section {
  background: #0a0c12;
}

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

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

.legal-content .callout,
.legal-content .art21 {
  border-left-color: var(--indigo-mid);
  background: #f3f3ff;
}

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

.store-button:focus-visible,
.cta-button:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}
