:root,
:root[data-theme="light"] {
  --bg: oklch(0.985 0.003 90);
  --text: oklch(0.5 0.015 90);
  --text-heading: oklch(0.22 0.01 90);
  --text-muted: oklch(0.5 0.015 90);
  --card: oklch(1 0 0);
  --border: oklch(0.9 0.005 90);
  --accent: oklch(0.62 0.19 245);
  --header-bg: oklch(0.925 0.009 90 / 0.75);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: oklch(0.19 0.01 250);
    --text: oklch(0.68 0.02 90);
    --text-heading: oklch(0.95 0.01 90);
    --text-muted: oklch(0.68 0.02 90);
    --card: oklch(0.34 0.012 250);
    --border: oklch(1 0 0 / 0.08);
    --accent: oklch(0.72 0.14 245);
    --header-bg: oklch(0.23 0.012 250 / 0.75);
  }
}

:root[data-theme="dark"] {
  --bg: oklch(0.19 0.01 250);
  --text: oklch(0.68 0.02 90);
  --text-heading: oklch(0.95 0.01 90);
  --text-muted: oklch(0.68 0.02 90);
  --card: oklch(0.34 0.012 250);
  --border: oklch(1 0 0 / 0.08);
  --accent: oklch(0.72 0.14 245);
  --header-bg: oklch(0.43 0.012 250 / 0.75);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  transition: background .25s ease, color .25s ease;
  line-height: 1.8;
}

h1, h2, h3, h4, h5, h6,
.app-hero-title,
.app-card .app-name,
.feature-card .feature-title {
  color: var(--text-heading);
}

h2, h3, h4, h5, h6 {
  margin-top: 2.4em;
  line-height: 1.15;
}

h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child {
  margin-top: 0;
}

h2, h3, h4 {
  font-weight: 600;
}

h5, h6 {
  font-weight: 500;
  font-size: 1rem;
}

::selection {
  background: oklch(0.55 0.15 240 / 0.25);
}

a {
  color: inherit;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header */

.site-header {
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18), 0 1px 4px rgba(0, 0, 0, 0.03);
}

.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-header .brand-mark {
  width: 28px;
  height: 28px;
  display: block;
  transform: rotate(-15deg);
}

:root[data-theme="dark"] .site-header .brand-mark {
  filter: invert(1);
}

.site-header .brand-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-header nav a {
  font-size: 15px;
  color: var(--text-muted);
  text-decoration: none;
}

.site-header nav a.active {
  color: var(--text-heading);
  font-weight: 600;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
}

.lang-switch .lang-option {
  color: var(--text-muted);
  text-decoration: none;
}

.lang-switch .lang-option.lang-active {
  color: var(--text-heading);
  font-weight: 600;
}

.lang-switch .lang-sep {
  color: var(--border);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.mode-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset -4px -2px 0 0 var(--text);
}

:root[data-theme="dark"] .mode-icon {
  width: 10px;
  height: 10px;
  background: var(--text);
  box-shadow:
    0 -8px 0 -3px var(--text),
    0 8px 0 -3px var(--text),
    -8px 0 0 -3px var(--text),
    8px 0 0 -3px var(--text),
    -5.5px -5.5px 0 -3.5px var(--text),
    5.5px -5.5px 0 -3.5px var(--text),
    -5.5px 5.5px 0 -3.5px var(--text),
    5.5px 5.5px 0 -3.5px var(--text);
}

/* App subheader (app-bezogene Unterseiten-Navigation) */

.app-subheader {
  position: sticky;
  top: 70px;
  z-index: 9;
  background: color-mix(in oklch, var(--header-bg) 75%, var(--bg));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14), 0 1px 3px rgba(0, 0, 0, 0.03);
}

.app-subheader-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 40px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.app-subheader-inner img {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  flex-shrink: 0;
}

.app-subheader-inner nav {
  display: flex;
  gap: 24px;
}

.app-subheader-inner nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}

.app-subheader-inner nav a.active {
  color: var(--text-heading);
  font-weight: 600;
}

.legacy-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 100px;
  background: #e60000;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.legacy-badge:hover {
  background: #c40000;
}

/* Responsive navigation (details/summary disclosure, no JS) */

.nav-menu > summary,
.subnav-menu > summary {
  list-style: none;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.nav-menu > summary::-webkit-details-marker,
.subnav-menu > summary::-webkit-details-marker {
  display: none;
}

.nav-menu > summary::marker {
  content: "";
}

/* Header hamburger toggle */
.nav-toggle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
}

.nav-toggle:hover {
  background: color-mix(in oklch, var(--text) 8%, transparent);
}

.nav-toggle > span,
.nav-toggle > span::before,
.nav-toggle > span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}

.nav-toggle > span {
  position: relative;
}

.nav-toggle > span::before {
  position: absolute;
  left: 0;
  top: -6px;
}

.nav-toggle > span::after {
  position: absolute;
  left: 0;
  top: 6px;
}

/* Subheader "active section" chip toggle */
.subnav-toggle {
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-heading);
}

.subnav-toggle::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform .15s ease;
}

.subnav-menu[open] > .subnav-toggle::after {
  transform: rotate(180deg);
}

/* Desktop (>= 768px): render exactly like the original horizontal bars */
@media (min-width: 768px) {
  .nav-menu > summary,
  .subnav-menu > summary {
    display: none;
  }

  /* Reveal the collapsed content regardless of open state, across both the
     legacy (display) and the newer ::details-content hiding mechanisms */
  .nav-menu::details-content,
  .subnav-menu::details-content {
    display: contents;
  }

  .nav-menu {
    display: flex;
    align-items: center;
  }

  .nav-menu > .nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
  }

  .subnav-menu {
    display: contents;
  }
}

/* Mobile (<= 767.98px): collapse the link groups behind disclosures */
@media (max-width: 767.98px) {
  .site-header-inner {
    padding: 14px 20px;
  }

  .site-header nav {
    gap: 14px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: relative;
    display: flex;
  }

  .nav-menu > .nav-links {
    display: none;
  }

  .nav-menu[open] > .nav-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 190px;
    padding: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.18);
    z-index: 20;
  }

  .nav-menu > .nav-links a {
    padding: 9px 12px;
    border-radius: 8px;
  }

  .nav-menu > .nav-links a:hover {
    background: color-mix(in oklch, var(--text) 8%, transparent);
  }

  .app-subheader-inner {
    padding: 10px 20px;
    gap: 14px;
    flex-wrap: wrap;
  }

  .subnav-toggle {
    display: inline-flex;
  }

  .app-subheader .subnav-menu {
    position: relative;
  }

  .app-subheader .subnav-menu > nav {
    display: none;
  }

  .app-subheader .subnav-menu[open] > nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 190px;
    padding: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.18);
    z-index: 20;
  }

  .app-subheader .subnav-menu > nav a {
    padding: 9px 12px;
    border-radius: 8px;
  }

  .legacy-badge {
    margin-left: 0;
    order: 3;
    flex-basis: 100%;
    white-space: normal;
  }
}

/* Hero */

.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 40px 100px;
  text-align: center;
  animation: fadeUp .6s ease both;
}

.hero .eyebrow {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}

.hero .lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero .cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  background: var(--accent);
  color: white;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

/* 404 page */

.error-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 40px 40px;
  text-align: center;
}

.error-code {
  font-size: clamp(120px, 26vw, 280px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: color-mix(in oklch, var(--text-muted) 22%, var(--bg));
  margin: 0 0 24px;
}

.error-hero .lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Section headings */

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 40px 100px;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 28px;
  text-align: center;
}

/* Apps grid */

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.app-card {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 24px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  text-decoration: none;
  color: inherit;
  transition: background-color .2s ease;
}

.app-card:hover {
  background: color-mix(in oklch, var(--card) 92%, black);
}

.app-card img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
  transition: transform .2s ease;
}

.app-card:hover img {
  transform: scale(1.06);
}

.app-card .app-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.app-card .app-tagline {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--text-muted);
}

.app-card-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
}

.app-card-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.app-card-links a:hover {
  text-decoration: underline;
}

.app-card-links .sep {
  color: var(--border);
}

.app-card .badge {
  position: absolute;
  top: 10px;
  right: 30px;
  transform: translateY(-50%) scale(0.7);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
}

.app-card .badge svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.app-card .badge span {
  position: relative;
  color: white;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
  transform: rotate(-15deg);
}

.app-card--more {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  border-radius: 20px;
  border: 1px dashed var(--border);
}

.app-card--more .app-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-muted);
}

.app-card--more .app-tagline {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--text-muted);
}

/* Testimonials */

.testimonials-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.testimonials-scroll::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  display: block;
  flex: 0 0 auto;
  width: min(calc((1100px - 120px) / 3), 85vw);
  box-sizing: border-box;
  scroll-snap-align: start;
  padding: 24px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.testimonial-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.testimonial-card .stars {
  color: #f5a623;
  font-size: 14px;
  letter-spacing: 2px;
}

.testimonial-card .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.testimonial-card .row img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.testimonial-card .quote {
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 14px;
  color: var(--text);
}

.testimonial-card .source .flag {
  margin-right: 2px;
}

.testimonial-card .source {
  font-size: 13.5px;
  color: var(--text-muted);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.testimonial-dots button {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  background: var(--border);
  transition: width .2s ease, background .2s ease;
  padding: 0;
}

.testimonial-dots button.active {
  width: 22px;
  background: var(--accent);
}

/* Screenshot slideshow (app showcase) */

.slideshow {
  position: relative;
  max-width: var(--shot-max-width, 1100px);
  margin: 0 auto;
}

.screenshot-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.screenshot-scroll::-webkit-scrollbar {
  display: none;
}

.screenshot-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
}

.screenshot-slide img {
  display: block;
  width: 100%;
  height: auto;
}

.slideshow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--card);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18), 0 1px 4px rgba(0, 0, 0, 0.03);
}

.slideshow-prev {
  left: -18px;
}

.slideshow-next {
  right: -18px;
}

.screenshot-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.screenshot-dots button {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  background: var(--border);
  transition: width .2s ease, background .2s ease;
  padding: 0;
}

.screenshot-dots button.active {
  width: 22px;
  background: var(--accent);
}

/* Testimonials grid (app detail pages) */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

.testimonials-grid .testimonial-card {
  flex: initial;
  width: auto;
  scroll-snap-align: initial;
}

/* Guide links */

.guide-links {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
}

@media (max-width: 560px) {
  .guide-links {
    grid-template-columns: 1fr;
  }
}

.guide-links a {
  color: var(--text);
  text-decoration: underline;
  font-size: 15px;
}

.guide-links a:hover {
  text-decoration: underline;
}

/* CTA block (landing pages) */

.cta-block {
  text-align: center;
  margin: 40px 0;
}

.cta-block p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
}

.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer .copyright {
  font-size: 13.5px;
  color: var(--text-muted);
}

.site-footer .links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.site-footer .links a {
  font-size: 13.5px;
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer .links a.accent {
  color: var(--accent);
  font-weight: 600;
}

.site-footer .links a.bmc-link {
  display: flex;
  align-items: center;
  line-height: 0;
}

.bmc-badge {
  height: 32px;
  width: auto;
  border-radius: 6px;
}

/* App detail pages */

.app-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 40px 40px;
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
  animation: fadeUp .6s ease both;
}

.app-hero .app-icon-lg {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  flex-shrink: 0;
}

.app-hero .app-intro {
  flex: 1;
  min-width: 280px;
}

.app-hero .eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.app-hero .app-hero-title {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.app-hero .lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.app-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0 0 28px;
}

.app-meta .sep {
  color: var(--border);
}

.app-meta .stars-small {
  color: #f5a623;
  font-size: 12px;
  letter-spacing: 1px;
}

.app-hero .cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18), 0 1px 4px rgba(0, 0, 0, 0.03);
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18), 0 1px 4px rgba(0, 0, 0, 0.03);
}

.btn-secondary {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18), 0 1px 4px rgba(0, 0, 0, 0.03);
}

.btn-lg {
  padding: 20px 32px;
  font-size: 17.5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18), 0 1px 4px rgba(0, 0, 0, 0.03);
}

.btn-disabled {
  background: var(--card);
  color: var(--text-muted);
  box-shadow: none;
  border: 1px solid var(--border);
  cursor: not-allowed;
  user-select: none;
}

.mas-badge {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.mas-badge img {
  height: 48px;
  width: auto;
}

.tooltip-wrap {
  position: relative;
  display: inline-flex;
}

.tooltip-wrap .tooltip-content {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: 260px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 400;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 20;
}

.tooltip-wrap:hover .tooltip-content,
.tooltip-wrap:focus-within .tooltip-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-14px);
}

.app-showcase {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 40px 90px;
}

.app-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 40px 100px;
}

.app-showcase img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.app-description {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 28px 0 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  padding: 24px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  overflow: auto;
}

/* Tutorial step figures */

.tut-figure {
  margin: 28px 0;
}

.tut-figure img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
}

.tut-figure figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

.tut-figure-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 28px 0;
}

.tut-figure-row img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
}

@media (max-width: 560px) {
  .tut-figure-row {
    grid-template-columns: 1fr;
  }
}

/* Tutorial callout */

.tut-callout {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
}

.tut-callout img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
}

.tut-callout p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}

/* Review list (plain list, not cards) */

.review-list {
  margin: 32px 0;
}

.review-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.review-item:first-child {
  padding-top: 0;
}

.review-item:last-child {
  border-bottom: none;
}

.review-item-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-heading);
}

.review-item-title .stars {
  color: #f5a623;
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 400;
}

.review-item-meta {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.review-item-content {
  margin: 12px 0 0;
}

.review-item-response {
  margin: 16px 0 0;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--card);
}

.review-item-response .response-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 6px;
}

.review-item-response p {
  margin: 0;
  color: var(--text-muted);
}

.feature-card .feature-icon {
  float: right;
  margin: 0 0 10px 14px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: color-mix(in oklch, var(--accent) 14%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.feature-card .feature-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.15;
}

.feature-card .feature-body {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

.page-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 40px 0 32px;
}

.info-card {
  padding: 28px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  margin: 32px 0;
}

.info-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
}

.info-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.info-card .warning {
  color: #c0392b;
  font-size: 14px;
  line-height: 1.5;
  margin: 16px 0 0;
}

/* FAQ grid */

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 40px 0;
}

@media (max-width: 860px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

.faq-item {
  padding: 0;
}

.faq-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-heading);
  margin: 0 0 10px;
}

.faq-item p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

/* Hyphenation for better text wrapping */
body {
  hyphens: auto;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Disable hyphenation for headings and titles */
h1, h2, h3, h4, h5, h6,
.page-title,
.section-title,
.app-hero-title,
.app-card .app-name,
.feature-card .feature-title,
.app-meta {
  hyphens: none;
  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
}

/* Obfuscated email links: rendered by js/main.js, styled to blend in as plain text */

.email-link {
  color: inherit;
  text-decoration: none;
}

/* Docs pages: two-column layout with an auto-generated table of contents (autotoc.js) */

.docs-layout {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.docs-toc {
  flex: 0 0 200px;
  position: sticky;
  top: 130px;
  max-height: calc(100vh - 150px);
  overflow-y: auto;
}

#toc-heading,
.docs-toc .toc-heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.docs-toc .toc-item {
  display: block;
  margin-bottom: 6px;
  line-height: 1.4;
}

.docs-content {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 680px;
}

.docs-content h2,
.docs-content h3,
.docs-content h4,
.docs-content h5,
.docs-content h6 {
  scroll-margin-top: 130px;
}

@media (max-width: 900px) {
  .docs-layout {
    flex-direction: column;
  }

  .docs-toc {
    position: static;
    max-height: none;
    width: 100%;
  }

  .docs-content {
    max-width: none;
  }
}

/* autotoc.css ships hardcoded light-mode colors; keep it legible in dark mode */

:root[data-theme="dark"] .toc-item,
:root[data-theme="dark"] .toc-item a {
  color: var(--text-muted) !important;
}

:root[data-theme="dark"] .toc-item.h2 a {
  color: var(--text-heading) !important;
}
