/* byProd landing page styles. Plain CSS, no build step. */

/* Quicksand (SIL Open Font License), self-hosted, variable weight 300-700. */
@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/quicksand-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/quicksand-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #101014;
  --bg-alt: #16161c;
  --surface: #1d1d25;
  --border: #2a2a35;
  --text: #e8e8ee;
  --text-dim: #9a9aa8;
  --heading: #cbcbcb;
  --accent: #c87f4a;
  --accent-hover: #d99359;
  --radius: 8px;
  --container: 960px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 6.5rem;
}

body {
  background-color: var(--bg);
  background-image: linear-gradient(rgba(16, 16, 20, 0.75), rgba(16, 16, 20, 0.75)), url("../images/grid.png");
  background-repeat: repeat;
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

h1, h2, h3 {
  font-family: "Quicksand", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.2;
  font-weight: 650;
  color: var(--heading);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  background: rgba(22, 22, 28, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5.5rem;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  display: block;
  height: 44px;
  width: auto;
}

.logo:hover img {
  opacity: 0.85;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--text);
}

/* Hamburger button, hidden on wide screens. */

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.75rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: var(--heading);
}

.nav-toggle span + span {
  margin-top: 5px;
}

/* Narrow screens: nav collapses into a dropdown under the header bar. */

@media (max-width: 800px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(22, 22, 28, 0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0 0.75rem;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 1.5rem;
    font-size: 1.05rem;
  }
}

/* Hero */

.hero {
  padding: 3.5rem 0 5rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.75rem, 4.25vw, 2.75rem);
  white-space: nowrap;
  width: max-content;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin: 0 0 1.25rem;
}

.hero-sub {
  color: var(--text-dim);
  font-size: 1.15rem;
  max-width: 48rem;
  margin: 0 auto 2rem;
}

.hero-image {
  display: block;
  width: min(890px, 100%);
  height: auto;
  margin: 0 auto 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.hero-video {
  width: min(890px, 100%);
  aspect-ratio: 16 / 9;
  margin: 0 auto 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.hero-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.highlight {
  color: var(--accent);
}

/* Inline emoji image sitting in a line of text.
   images/blob_hi.png is from Google's Noto Emoji (2015 blob style),
   licensed under the Apache License 2.0:
   https://github.com/googlefonts/noto-emoji/blob/v2015-09-29-license-apache/LICENSE */
.emoji {
  display: inline-block;
  height: 1.25em;
  width: auto;
  vertical-align: -0.25em;
}

.hero-note {
  margin-top: 1.25rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-dim);
  color: var(--text);
}

/* Sections */

.section {
  padding: 2.75rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  font-size: 1.9rem;
  margin-bottom: 2rem;
}

.section-lead {
  color: var(--text-dim);
  max-width: 38rem;
  margin-bottom: 1.5rem;
}

.section-text {
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

/* Download version list: one top-level entry per release, links nested under it. */
.download-list {
  list-style: none;
  display: grid;
  gap: 1.25rem;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.download-list > li {
  font-weight: 600;
  color: var(--heading);
}

.download-list > li > ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin-top: 0.4rem;
  display: grid;
  gap: 0.3rem;
}

.download-list > li > ul > li {
  font-weight: 400;
  color: var(--text-dim);
}

.download-list > li > ul > li::marker {
  color: var(--accent);
}

/* Free-flowing section body text, full content width. */
.section-text {
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

/* An image sitting in the text flow of a section. */
.content-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0.5rem 0 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Alternating feature rows */

.feature-rows {
  padding-top: 0;
}

.container-wide {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.content-image {
  display: block;
  width: min(890px, 100%);
  height: auto;
  margin: 0 auto 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Mobile-first: rows stack as image above text, image capped and centered. */

.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 1.5rem;
}

.feature-row + .feature-row {
  margin-top: 3rem;
}

.row-media {
  width: 100%;
  max-width: 320px;
  height: auto;
  justify-self: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.row-text h2 {
  margin-bottom: 1rem;
}

.row-text p {
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.row-text p:last-child {
  margin-bottom: 0;
}

/* Wide screens: two columns, image side alternating per row. */

@media (min-width: 641px) {
  .feature-row {
    grid-template-columns: 1fr 3.3fr;
    gap: 3.5rem;
  }

  .feature-row + .feature-row {
    margin-top: 1.5rem;
  }

  .feature-row.alt {
    grid-template-columns: 3.3fr 1fr;
  }

  .feature-row.alt .row-media {
    order: 2;
  }

  .row-media {
    max-width: none;
    justify-self: stretch;
  }
}

/* Features */

.feature-list {
  list-style: none;
  display: grid;
  gap: 1.25rem;
  padding-left: 0;
}

.feature-list > li {
  font-weight: 600;
  color: var(--heading);
}

.feature-list > li > ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin-top: 0.4rem;
  display: grid;
  gap: 0.3rem;
}

.feature-list > li > ul > li {
  font-weight: 400;
  color: var(--text-dim);
}

.feature-list > li > ul > li::marker {
  color: var(--accent);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.feature h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* Questions and answers */

.qa-list {
  display: grid;
  gap: 0.75rem;
}

.qa-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.qa-item summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--heading);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.qa-item summary::-webkit-details-marker {
  display: none;
}

.qa-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.15s ease;
}

.qa-item[open] summary::after {
  transform: rotate(45deg);
}

.qa-item p {
  padding: 0 1.25rem 1.1rem;
  color: var(--text-dim);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-link {
  display: flex;
  color: var(--text-dim);
}

.social-link:hover {
  color: var(--accent);
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
}

.footer-nav a {
  color: var(--text-dim);
}

.footer-nav a:hover {
  color: var(--text);
}

/* Small screens */

@media (max-width: 600px) {
  .hero h1 {
    white-space: normal;
    width: auto;
    left: auto;
    transform: none;
  }

  .hero {
    padding: 4rem 0 3.5rem;
  }
}
