/* Estilos do site público, da ajuda e dos componentes responsivos. */
:root {
  color-scheme: light;
  --bg: #f6f5f0;
  --surface: #fff;
  --ink: #233b32;
  --muted: #586b61;
  --line: #dce5df;
  --accent: #0f725b;
  --bright: #0f725b;
  --soft: #e8f2ed;
  --art: #e1ebe3;
  --radius: 24px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.65 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}
body[data-dark='true'] {
  color-scheme: dark;
  --bg: #121815;
  --surface: #202925;
  --ink: #f0f4f1;
  --muted: #b2c2b9;
  --line: #3d4f44;
  --art: #1d3028;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
select,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--bright);
  outline-offset: 4px;
}
button,
select {
  min-height: 44px;
}
button {
  color: var(--ink);
}
.skip {
  position: fixed;
  top: -80px;
  left: 12px;
  background: var(--surface);
  padding: 12px;
  z-index: 10;
}
.skip:focus {
  top: 12px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px max(5vw, calc((100vw - 1240px) / 2));
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 750;
  white-space: nowrap;
  letter-spacing: -0.7px;
}
.brand img {
  border-radius: 10px;
}
.topbar nav {
  display: flex;
  gap: 30px;
  font-size: 14px;
  font-weight: 600;
}
.topbar nav a:hover,
footer a:hover {
  color: var(--bright);
}
.settings-toggle {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  padding: 6px 14px;
  font-size: 14px;
}
.preferences {
  position: fixed;
  right: 5vw;
  top: 90px;
  z-index: 6;
  background: var(--surface);
  padding: 24px;
  box-shadow: 0 16px 60px #0003;
  border: 1px solid var(--line);
  border-radius: 20px;
  width: 290px;
}
.preferences label {
  display: grid;
  gap: 6px;
  margin-bottom: 15px;
  font-size: 14px;
}
.preferences select {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  padding: 6px 10px;
  width: 100%;
}
main {
  max-width: 1240px;
  margin: auto;
  padding: 0 30px;
}
.hero {
  padding: 90px 0 85px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 60px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2.4px;
  font-weight: 800;
  color: var(--bright);
  margin: 0 0 24px;
}
.dash {
  margin: 0 14px;
  color: var(--muted);
}
h1 {
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: 1.08;
  letter-spacing: -3.4px;
  font-weight: 780;
  margin: 0 0 28px;
  max-width: 660px;
}
.accent {
  color: var(--bright);
}
.lead {
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
  margin: 0 0 30px;
}
.primary {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  background: var(--accent);
  color: #fff;
  padding: 15px 24px;
  border-radius: 14px;
  font-weight: 700;
}
.primary:hover {
  filter: brightness(1.1);
}
.version-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 18px;
}
.route-art {
  min-height: 450px;
  position: relative;
  background: var(--art);
  border: 1px solid var(--line);
  border-radius: 36px;
  overflow: hidden;
  transform: rotate(2deg);
}
.art-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.55;
}
.route-art svg {
  position: relative;
  width: 100%;
  height: 390px;
}
.contour {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1;
  opacity: 0.18;
}
.route-line {
  fill: none;
  stroke: var(--bright);
  stroke-width: 6;
  stroke-linecap: round;
}
.route-shadow {
  fill: none;
  stroke: var(--bright);
  stroke-width: 24;
  opacity: 0.09;
}
.pin {
  fill: var(--surface);
  stroke: var(--bright);
  stroke-width: 5;
}
.finish {
  fill: var(--bright);
}
.route-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px 22px;
  box-shadow: 0 8px 20px #00000008;
}
.route-caption span:not(.crosshair) {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.crosshair {
  font-size: 35px;
  color: var(--bright);
}
.overview {
  padding: 56px 0 75px;
  border-top: 1px solid var(--line);
}
.section-heading h2 {
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -1.4px;
  line-height: 1.2;
  margin: 0 0 18px;
}
.section-heading .eyebrow {
  margin-bottom: 14px;
}
.section-heading > p:last-child {
  color: var(--muted);
  max-width: 700px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.feature-icon {
  color: var(--bright);
  background: var(--soft);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 26px;
  margin-bottom: 22px;
}
body[data-dark='true'] .feature-icon {
  background: var(--art);
}
.feature h3 {
  font-size: 18px;
  margin: 0 0 10px;
}
.feature p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.about-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  padding-top: 26px;
  color: var(--muted);
  font-size: 13px;
}
.help {
  padding: 70px 0 100px;
  border-top: 1px solid var(--line);
}
.search-wrap {
  max-width: 740px;
  margin: 35px 0;
}
.search-wrap label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 9px;
}
.search-box {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 5px 18px;
  gap: 14px;
}
.search-box > span {
  font-size: 30px;
  color: var(--bright);
}
input[type='search'] {
  min-width: 0;
  flex: 1;
  padding: 12px 0;
  background: transparent;
  border: 0;
  color: var(--ink);
  width: 100%;
}
kbd {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 7px;
  font-size: 12px;
  color: var(--muted);
}
.help-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 42px;
  align-items: start;
}
.help-nav {
  position: sticky;
  top: 115px;
  display: grid;
  gap: 10px;
}
.help-nav button {
  display: flex;
  gap: 14px;
  align-items: center;
  text-align: left;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  font-weight: 650;
}
.help-nav button[aria-pressed='true'] {
  background: var(--surface);
  border-color: var(--line);
  color: var(--bright);
}
.help-nav button:hover {
  border-color: var(--line);
}
.help-nav button span {
  font-size: 23px;
}
.help-status {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
}
.article-group h3 {
  font-size: 21px;
  margin: 12px 0 20px;
}
details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  margin-bottom: 12px;
  overflow: hidden;
}
summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 15px;
  font-weight: 650;
  min-height: 64px;
}
summary::-webkit-details-marker {
  display: none;
}
summary:after {
  content: '+';
  font-size: 24px;
  font-weight: 400;
  color: var(--bright);
}
details[open] summary:after {
  content: '−';
}
details[open] summary {
  border-bottom: 1px solid var(--line);
}
.article-body {
  padding: 0 24px 10px;
  color: var(--muted);
  font-size: 15px;
  overflow-wrap: anywhere;
}
.article-body p {
  white-space: pre-line;
}
footer {
  max-width: 1240px;
  margin: auto;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding: 30px;
  font-size: 13px;
}
footer > div {
  text-align: center;
}
footer p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 11px;
}
footer > a:last-child {
  font-weight: 650;
}
.empty {
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
@media (max-width: 850px) {
  .hero {
    gap: 30px;
    padding-top: 55px;
  }
  .route-art {
    min-height: 370px;
  }
  .route-art svg {
    height: 340px;
  }
  h1 {
    letter-spacing: -2px;
  }
  .feature-grid {
    gap: 12px;
  }
  .feature {
    padding: 20px;
  }
  .help-layout {
    grid-template-columns: 210px 1fr;
    gap: 20px;
  }
  .settings-toggle span {
    display: none;
  }
}
@media (max-width: 620px) {
  main {
    padding: 0 22px;
  }
  .topbar {
    padding: 15px 20px;
    gap: 12px;
  }
  .brand {
    font-size: 18px;
    gap: 8px;
  }
  .topbar nav {
    gap: 16px;
    font-size: 12px;
  }
  .settings-toggle {
    padding: 5px 12px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 45px 0;
    gap: 32px;
  }
  h1 {
    font-size: 48px;
    letter-spacing: -2.4px;
  }
  .route-art {
    min-height: 300px;
    transform: none;
  }
  .route-art svg {
    height: 300px;
  }
  .route-caption {
    bottom: 16px;
    left: 16px;
    right: 16px;
    padding: 12px 18px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .feature {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 0 18px;
  }
  .feature-icon {
    grid-row: span 2;
    margin: 0;
  }
  .feature h3 {
    margin-top: 3px;
  }
  .about-note {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .overview,
  .help {
    padding: 45px 0;
  }
  .help-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .help-nav {
    position: static;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .help-nav button {
    font-size: 12px;
    padding: 10px;
    gap: 8px;
  }
  .help-nav button span {
    font-size: 19px;
  }
  summary {
    padding: 18px;
    font-size: 14px;
  }
  .article-body {
    padding: 0 18px 8px;
  }
  footer {
    flex-wrap: wrap;
    padding: 25px 22px;
  }
  footer > div {
    order: 3;
    width: 100%;
  }
  .preferences {
    right: 20px;
    top: 80px;
  }
  .lead {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.home-language label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.home-language select {
  max-width: 170px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink);
  padding: 6px 10px;
}
.home-language option {
  background: var(--surface);
  color: var(--ink);
}
@media (max-width: 850px) {
  .home-language label > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}
@media (max-width: 620px) {
  .topbar {
    flex-wrap: wrap;
  }
  .topbar nav {
    margin-left: auto;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .home-language select {
    max-width: 210px;
  }
}

.header-actions {
  gap: 18px;
  flex-wrap: wrap;
}
.header-actions > label,
.home-language > label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
  position: relative;
}
.header-actions select {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  padding: 6px 10px;
  min-width: 110px;
}
.language-picker {
  position: relative;
  overflow: visible;
  margin: 0;
  border: 0;
  background: transparent;
}
.language-picker > summary {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  min-height: 44px;
  font-size: 14px;
  justify-content: flex-start;
  gap: 9px;
  color: var(--ink);
  background: var(--surface);
}
.language-picker > summary:after {
  content: '▾';
  font-size: 14px;
  margin-left: auto;
}
.language-choices {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 190px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 10px 30px #0003;
  z-index: 10;
}
.language-choices button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
}
.language-choices button:hover,
.language-choices button[aria-pressed='true'] {
  background: var(--art);
}
.language-picker img {
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  filter: none;
  opacity: 1;
}
.home-language label > span {
  position: static;
  width: auto;
  height: auto;
  clip-path: none;
  overflow: visible;
}
@media (max-width: 1100px) {
  .topbar {
    flex-wrap: wrap;
  }
  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
@media (max-width: 620px) {
  .header-actions {
    justify-content: space-between;
    gap: 8px;
  }
  .header-actions select {
    min-width: 0;
    max-width: 105px;
  }
  .language-picker > summary {
    padding: 8px;
    font-size: 12px;
  }
  .header-actions label {
    font-size: 11px;
  }
  .language-picker img {
    width: 24px;
  }
}

.screenshots {
  padding: 70px 0;
  border-top: 1px solid var(--line);
}
.screenshots .section-heading > p:last-child {
  max-width: 720px;
  color: var(--muted);
}
.screens-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px;
  margin: 40px 0 28px;
}
.screens-grid figure {
  margin: 0;
  min-width: 0;
}
.screens-grid a {
  display: block;
  border: 6px solid #26342f;
  border-radius: 28px;
  overflow: hidden;
  background: #f6f5f0;
  box-shadow: 0 15px 35px #0002;
}
.screens-grid img {
  display: block;
  width: 100%;
  height: auto;
  filter: none;
}
.screens-grid figcaption {
  font-size: 15px;
  font-weight: 650;
  margin: 16px 0;
}
.sample-download {
  display: inline-block;
  color: var(--bright);
  font-weight: 650;
  padding: 12px 0;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.sample-source {
  font-size: 12px;
  color: var(--muted);
  max-width: 800px;
}
.sample-source a {
  text-decoration: underline;
}
@media (max-width: 620px) {
  .screenshots {
    padding: 45px 0;
  }
  .screens-grid {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 8px 8px 20px;
    margin-left: -8px;
    margin-right: -8px;
  }
  .screens-grid figure {
    flex: 0 0 78%;
    scroll-snap-align: center;
  }
  .screens-grid a {
    border-radius: 24px;
  }
}

.help-example {
  margin-top: 24px;
  padding: 16px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.help-example p {
  margin: 4px 0;
  font-size: 13px;
  color: var(--muted);
}
.article-group > details > summary {
  padding: 14px 20px;
  min-height: 0;
  gap: 16px;
}

.help-heading {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.help-topic-title {
  color: var(--ink);
  line-height: 1.45;
}

.help-platform {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 500;
}

.help-platform img {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.article-group > details > summary::after {
  flex-shrink: 0;
  align-self: center;
  color: var(--muted);
  font-size: 22px;
}

.help-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 24px 0;
}
.help-images figure {
  margin: 0;
  min-width: 0;
  max-width: 280px;
}
.help-images a {
  display: block;
  border: 3px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #f6f5f0;
}
.help-images img {
  display: block;
  width: 100%;
  height: auto;
  filter: none;
}
.help-images figcaption {
  font-size: 12px;
  margin: 8px 0;
  color: var(--muted);
}
@media (max-width: 620px) {
  .help-images {
    gap: 12px;
  }
  .help-images a {
    border-radius: 12px;
  }
  .help-example {
    padding: 14px 16px;
  }
}

.hero {
  padding-top: 24px;
  padding-bottom: 30px;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 52px);
}
.hero .eyebrow {
  margin-bottom: 14px;
}
.eyebrow-brand-icon {
  display: inline-block;
  vertical-align: middle;
  margin-inline-end: 6px;
}
.hero h1 {
  font-size: clamp(25px, 2.85vw, 44px);
  letter-spacing: -0.045em;
  margin-bottom: 15px;
}
.hero .lead,
.security-note {
  font-size: 17px;
  line-height: 1.6;
}
.hero .lead {
  margin-bottom: 14px;
}
.home-preview {
  margin: 0;
  display: grid;
  justify-items: center;
  position: relative;
  padding: 4px 0;
}
.home-preview:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100%, 420px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--art);
  z-index: -1;
}
.home-preview-frame {
  position: relative;
  display: block;
  width: clamp(190px, 29svh, 245px);
  max-width: 100%;
  border: 7px solid #26342f;
  border-radius: 34px;
  overflow: hidden;
  background: #f6f5f0;
  box-shadow: 0 22px 55px #0003;
}

/* Aplica a marca atual sobre a posição do ícone na imagem de apresentação. */
.home-preview-frame::after {
  content: '';
  position: absolute;
  top: 4.7%;
  left: 50%;
  width: 23.5%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 33%;
  background: #123d2c url('assets/screenshots/kom-killer-mountain-icon.svg') center / cover;
  pointer-events: none;
}
.home-preview img {
  display: block;
  width: 100%;
  height: auto;
  filter: none;
}
@media (max-width: 850px) {
  .hero {
    gap: 30px;
  }
  .home-preview-frame {
    width: clamp(180px, 29svh, 220px);
  }
}
@media (max-width: 620px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 24px;
  }
  .home-preview-frame {
    width: 215px;
  }
  .home-preview {
    padding: 4px 0;
  }
  .home-preview:before {
    width: min(94%, 420px);
  }
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 560px;
  gap: 9px;
  margin-top: 14px;
}
.store-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid #606660;
  border-radius: 12px;
  background: #121815;
  color: #fff;
  min-height: 48px;
  position: relative;
}
.store-badge > svg {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
}
.store-badge > span:not(.store-soon) {
  display: grid;
  line-height: 1.3;
}
.store-badge small {
  font-size: 10px;
}
.store-badge strong {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.4px;
}
.store-badge .store-soon {
  align-self: flex-start;
  margin-top: 2px;
  margin-left: 5px;
  padding: 3px 6px;
  border-radius: 5px;
  border: 1px solid #738378;
  color: #d8e5dc;
  font-size: 9px;
  white-space: nowrap;
}
.store-badge[aria-disabled='true'] {
  cursor: default;
}
.store-badge[href]:hover {
  box-shadow: 0 0 0 3px var(--soft);
}
.security-note {
  color: var(--muted);
  max-width: 560px;
  margin: 13px 0 0;
  white-space: pre-line;
}
.store-badge:focus-visible {
  outline: 3px solid var(--bright);
  outline-offset: 4px;
}
@media (max-width: 620px) {
  .store-links {
    gap: 10px;
  }
  .store-badge {
    padding: 7px 10px;
  }
  .store-badge .store-soon {
    display: none;
  }
}

.topbar {
  flex-wrap: wrap;
}
.topbar nav {
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
}
.topbar nav a {
  min-height: 40px;
  display: flex;
  align-items: center;
}
.inside-help-cta {
  margin-right: 22px;
  margin-bottom: 12px;
}
@media (max-width: 1100px) {
  html {
    scroll-padding-top: 190px;
  }
}
@media (max-width: 620px) {
  .topbar .brand {
    order: 1;
  }
  .topbar nav {
    order: 2;
    flex-basis: 100%;
    justify-content: space-between;
    gap: 4px 12px;
    margin-left: 0;
  }
  .header-actions {
    order: 3;
  }
  html {
    scroll-padding-top: 240px;
  }
  .inside-help-cta {
    margin-right: 0;
    display: flex;
    width: fit-content;
  }
}

/* Rodapé e créditos seguem as mesmas superfícies e cores do aplicativo. */
.credits-section {
  padding: 70px 0 85px;
  border-top: 1px solid var(--line);
}
.credits-section .section-heading > p:last-child {
  max-width: 780px;
  color: var(--muted);
}
.credits-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 16px;
}
.credits-section a,
.article-credits-link {
  color: var(--bright);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 13px;
}
.credits-featured {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 35px;
}
.credit-feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.credit-feature h4 {
  font-size: 16px;
  margin: 0;
  overflow-wrap: anywhere;
}
.credit-feature p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  flex: 1;
}
.credit-version {
  font-size: 12px;
  color: var(--muted);
}
.credits-inventory {
  margin: 0;
}
.credits-inventory > summary {
  font-size: 17px;
}
.credits-inventory-body {
  padding: 8px 24px 26px;
}
.license-groups {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 30px;
}
.license-chip {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
}
.credits-search-label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 8px;
}
#creditsSearch {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
}
.credits-count {
  font-size: 13px;
  color: var(--muted);
}
#creditsEntries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.credit-entry {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 0;
  background: var(--bg);
}
.credit-entry-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}
.credit-entry h4 {
  font-size: 15px;
  margin: 0;
  overflow-wrap: anywhere;
}
.credit-entry p {
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.credit-kind {
  font-weight: 650;
}
.license-text {
  border: 0;
  border-radius: 8px;
  margin: 12px 0;
  background: var(--surface);
}
.license-text > summary {
  padding: 10px 12px;
  font-size: 12px;
  min-height: 44px;
}
.license-text pre {
  font:
    11px/1.65 ui-monospace,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 14px;
  margin: 0;
  max-height: 300px;
  overflow-y: auto;
  color: var(--muted);
}
.credits-more {
  margin-top: 22px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-weight: 650;
  color: var(--bright);
}
.site-footer {
  display: block;
  padding: 45px 30px 24px;
}
.site-footer > .footer-main {
  text-align: left;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 45px;
  align-items: start;
}
.footer-identity p {
  font-size: 14px;
  margin: 16px 0 0;
  color: var(--muted);
  max-width: 260px;
}
.footer-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  font-size: 13px;
}
.footer-navigation a {
  min-height: 28px;
  display: flex;
  align-items: center;
}
.footer-author p {
  margin: 0;
  text-align: left;
  font-size: 13px;
}
.footer-author #footerCollaboration {
  font-size: 12px;
  line-height: 1.7;
  margin-top: 10px;
  color: var(--muted);
  max-width: 290px;
}
.site-footer > .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  border-top: 1px solid var(--line);
  margin-top: 34px;
  padding-top: 20px;
  color: var(--muted);
  font-size: 11px;
}
.footer-release {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.footer-version-details {
  position: relative;
  margin: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  border-radius: 0;
}
.footer-version-details > summary {
  padding: 4px 0;
  min-height: 30px;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  border: 0 !important;
}
.footer-version-details > summary:after {
  content: '⌄';
  font-size: 13px;
}
.footer-version-details > span {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  white-space: nowrap;
  background: var(--surface);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 6px 20px #0002;
  font-size: 11px;
  z-index: 2;
}
#footerTop {
  white-space: nowrap;
  font-weight: 600;
}
@media (max-width: 850px) {
  .credits-featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-footer > .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .footer-author {
    grid-column: 1/-1;
  }
  .footer-author #footerCollaboration {
    max-width: unset;
  }
}
@media (max-width: 620px) {
  .credits-section {
    padding: 45px 0;
  }
  .credits-featured,
  #creditsEntries {
    grid-template-columns: 1fr;
  }
  .credits-inventory-body {
    padding: 8px 16px 20px;
  }
  .site-footer {
    padding: 32px 22px 22px;
  }
  .site-footer > .footer-main {
    grid-template-columns: 1fr;
    gap: 25px;
    order: initial;
    width: auto;
  }
  .footer-author {
    grid-column: auto;
  }
  .footer-identity p {
    max-width: unset;
    margin-top: 10px;
  }
  .site-footer > .footer-bottom {
    flex-wrap: wrap;
    justify-content: flex-start;
    order: initial;
    width: auto;
  }
  .footer-release {
    order: 3;
    width: 100%;
  }
  #footerTop {
    margin-left: auto;
  }
  .footer-version-details > span {
    left: auto;
    right: 0;
  }
  .credit-entry {
    padding: 16px;
  }
}

.credits-section {
  padding: 45px 0;
}
.credits-panel {
  margin: 0;
  border-radius: 20px;
}
.credits-panel > summary {
  padding: 24px 26px;
  gap: 20px;
}
.credits-panel > summary h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
  letter-spacing: -1px;
  margin: 0;
}
.credits-panel > summary:after {
  font-size: 30px;
  flex-shrink: 0;
}
.credits-panel-body {
  padding: 12px 26px 28px;
}
#creditsIntro {
  color: var(--muted);
  max-width: 780px;
  margin: 12px 0 0;
}
@media (max-width: 620px) {
  .credits-panel > summary {
    padding: 20px 18px;
  }
  .credits-panel-body {
    padding: 8px 18px 20px;
  }
  .credits-panel > summary h2 {
    letter-spacing: -0.6px;
  }
}

.help .help-example {
  margin-top: 48px;
  padding: 32px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.site-footer.footer-balanced {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 30px;
}
.footer-balanced > #footerCopyright {
  justify-self: start;
  font-size: 11px;
  color: var(--muted);
}
.footer-balanced > .footer-identity {
  width: auto;
  order: initial;
  text-align: center;
}
.footer-balanced .brand {
  justify-content: center;
}
.footer-balanced .footer-identity p {
  max-width: none;
  text-align: center;
  margin: 12px 0 0;
  font-size: 13px;
}
.footer-balanced > #footerTop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--accent);
  font-size: 26px;
  line-height: 1;
}
.footer-balanced > #footerTop:hover {
  background: var(--soft);
  text-decoration: none;
}
@media (max-width: 620px) {
  .site-footer.footer-balanced {
    grid-template-columns: 1fr 1fr;
    gap: 24px 12px;
    padding: 26px 22px;
  }
  .footer-balanced > .footer-identity {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .footer-balanced > #footerCopyright {
    grid-column: 1;
    grid-row: 2;
  }
  .footer-balanced > #footerTop {
    grid-column: 2;
    grid-row: 1;
  }
}

/* Navegação em caixas e créditos discretos ao lado do copyright. */
.topbar nav {
  gap: 8px;
  align-items: center;
}
.topbar nav > a {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  line-height: 1.5;
}
.topbar nav > a:hover {
  border-color: var(--bright);
  color: var(--bright);
}
.footer-balanced > .footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  justify-self: start;
  text-align: left;
  font-size: 11px;
  color: var(--muted);
}
.footer-legal a {
  font-size: inherit;
  font-weight: 400;
  text-underline-offset: 3px;
}
.footer-legal a:hover {
  text-decoration: underline;
  color: var(--bright);
}
@media (max-width: 620px) {
  .topbar nav {
    justify-content: flex-start;
    gap: 6px;
  }
  .topbar nav > a {
    font-size: 12px;
    padding: 9px 10px;
  }
  .footer-balanced > .footer-legal {
    grid-column: 1;
    grid-row: 1;
  }
}

/* Marca do autor: placa clara preserva o contraste da marca azul em ambos os temas. */
#footerCopyright {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-legal .author-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #dce5df;
  border-radius: 9px;
  line-height: 0;
  min-height: 44px;
  overflow: hidden;
}
.author-logo img {
  display: block;
  width: 108px;
  height: 36px;
  object-fit: contain;
}
.footer-legal .author-logo:hover {
  border-color: var(--bright);
}
.admin-link {
  display: inline-grid;
  place-items: center;
  align-self: flex-end;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.admin-link:hover {
  color: var(--bright);
  border-color: var(--bright);
}
.public-site-version {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

/* Paisagem do tema público. O véu preserva o contraste dos textos e controles. */
body {
  --landscape-veil: rgb(242 248 235 / 78%);
  background:
    linear-gradient(var(--landscape-veil), var(--landscape-veil)),
    url('assets/screenshots/kom-killer-mountain-theme.png') center top / cover fixed no-repeat,
    var(--bg);
}

@media (min-width: 621px) {
  body:has(.hero) {
    overflow-x: clip;
    background: linear-gradient(var(--landscape-veil), var(--landscape-veil)), #285e40;
  }

  .hero {
    isolation: isolate;
    /* A paisagem pode ocupar as laterais, mas termina antes do rodapé. */
    clip-path: inset(0 -100vw 0 -100vw);
  }

  /* A âncora do ciclista acompanha a coluna do celular ao redimensionar. */
  .home-preview::after {
    content: '';
    position: absolute;
    z-index: -2;
    pointer-events: none;
    left: calc(50% - clamp(155px, 23vw, 300px));
    top: 74%;
    width: max(115vw, clamp(1100px, 130vw, 1820px));
    aspect-ratio: 3 / 2;
    transform: translate(-56.4%, -59%);
    background:
      linear-gradient(var(--landscape-veil), var(--landscape-veil)),
      url('assets/screenshots/kom-killer-mountain-theme.png') center / cover no-repeat;
  }
}

body[data-dark='true'] {
  --landscape-veil: rgb(14 28 21 / 79%);
}

@media (max-width: 620px) {
  body {
    background-attachment: scroll;
    background-position: center, 56% top, center;
    background-size: auto, auto 100svh, auto;
  }
  body:has(.hero) {
    background-position: center, 56% -55px, center;
  }
}

.notice-links {
  display: grid;
  gap: 12px;
  max-width: 320px;
  margin-top: 24px;
}

.notice-link {
  display: grid;
  min-height: 64px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.notice-link-dev {
  background: #0f725b;
}

.notice-link-beta {
  background: #245bb5;
}

.notice-link:hover {
  filter: brightness(1.12);
}

.notice-link:focus-visible {
  outline: 3px solid var(--bright);
  outline-offset: 3px;
}
