/* Landing page */
.hero {
  text-align: center;
  padding: 2rem 0 1rem;
}
.hero img {
  display: inline-block;
  margin-bottom: 0.5rem;
}
.hero h1 {
  margin: 0.25rem 0;
  font-size: 2.6em;
}
.hero .tagline {
  font-size: 1.25em;
  max-width: 36em;
  margin: 0.5rem auto 1.25rem;
  opacity: 0.85;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}
.content a.button {
  display: inline-block;
  padding: 0.55em 1.2em;
  border-radius: 999px;
  border: 1px solid var(--links);
  text-decoration: none;
  font-weight: 600;
}
.content a.button.primary {
  background: var(--links);
  color: var(--bg);
}
.content a.button:hover {
  text-decoration: none;
  filter: brightness(1.1);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.9rem;
  margin: 1rem 0 1.5rem;
}
.feature {
  border: 1px solid var(--table-border-color);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  background: var(--quote-bg);
}
.feature h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05em;
}
.feature p {
  margin: 0;
  font-size: 0.93em;
  line-height: 1.45;
}

/* Screenshots */
.content img {
  max-width: 100%;
  height: auto;
}
.content p > img[src$=".png"] {
  display: block;
  margin: 1rem auto;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

/* Compact tables */
.content table {
  font-size: 0.95em;
}
.content table td:first-child {
  white-space: nowrap;
}

/* Callouts: > **Tip:** … */
.content blockquote {
  border-left-width: 4px;
}

/* Mixer / Classic switch (theme/ui-tabs.js) */
.ui-tabs {
  margin: 1rem 0;
}
.ui-tab-bar {
  display: inline-flex;
  gap: 0;
  border: 1px solid var(--table-border-color);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}
.ui-tab-bar button {
  border: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 0.9em;
  padding: 0.3em 1em;
  cursor: pointer;
}
.ui-tab-bar button.active {
  background: var(--links);
  color: var(--bg);
  font-weight: 600;
}
.ui-tab > :first-child {
  margin-top: 0;
}
/* Without JavaScript both versions show, each labelled. */
html:not(.ui-tabs-js) .ui-tab::before {
  content: attr(data-label);
  font-weight: 600;
}
html.ui-tabs-js .ui-tab:not(.active) {
  display: none;
}
@media print {
  .ui-tab-bar {
    display: none;
  }
  html.ui-tabs-js .ui-tab:not(.active) {
    display: block;
  }
  .ui-tab::before {
    content: attr(data-label);
    font-weight: 600;
  }
}

/* Feature cards are links */
.content a.feature {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.content a.feature:hover,
.content a.feature:focus-visible {
  border-color: var(--links);
  transform: translateY(-2px);
  text-decoration: none;
}
.content a.feature h3 {
  color: var(--links);
}
.content a.feature h3::after {
  content: " →";
  opacity: 0;
  transition: opacity 0.15s;
}
.content a.feature:hover h3::after,
.content a.feature:focus-visible h3::after {
  opacity: 1;
}

/* Comparison tables: fit the page width and wrap long feature names */
.content .compare table {
  display: table;
  width: 100%;
  table-layout: fixed;
}
.content .compare table td:first-child,
.content .compare table th:first-child {
  white-space: normal;
  width: 40%;
}
.content .compare td {
  overflow-wrap: anywhere;
}
