/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 1000;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.skip-link:focus {
  top: 0;
}

/* ---- Container ---- */
.c {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.625rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: opacity 0.15s;
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1;
}

.btn:hover {
  opacity: 0.85;
  text-decoration: none;
}

.btn-primary:hover {
  opacity: 1;
  background: var(--accent-strong);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(0.16 0.01 55 / 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 60px;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.015em;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover {
  opacity: 0.8;
  text-decoration: none;
}

/* Mobile nav checkbox (hidden, used for CSS toggle) */
.nav-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-btn {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav .btn {
  color: var(--accent-ink);
}

@media (max-width: 767px) {
  .header-inner {
    height: auto;
    padding-block: 0.875rem;
    position: relative;
    align-items: center;
  }

  .nav-toggle-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    margin-left: auto;
    padding: 6px;
    flex-shrink: 0;
  }

  .nav-toggle-btn span {
    display: block;
    height: 2px;
    background: var(--text-muted);
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s, background 0.15s;
  }

  .nav-toggle-btn:hover span {
    background: var(--text);
  }

  .nav-checkbox:checked ~ .nav-toggle-btn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-checkbox:checked ~ .nav-toggle-btn span:nth-child(2) {
    opacity: 0;
  }

  .nav-checkbox:checked ~ .nav-toggle-btn span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
    margin-left: 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
  }

  .site-nav a {
    padding: 0.5rem 0;
    width: 100%;
    font-size: 0.95rem;
  }

  .site-nav .btn {
    margin-top: 0.5rem;
    align-self: flex-start;
  }

  .nav-checkbox:checked ~ .site-nav {
    display: flex;
  }
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
  margin-top: 5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
}

.footer-meta a {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-meta span {
  font-size: 0.8125rem;
  color: var(--text-subtle);
}

/* ---- Sections ---- */
section {
  padding-block: 4rem;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header h2 {
  margin-bottom: 0.5rem;
}

.section-header p {
  margin-top: 0.5rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* ---- Hero ---- */
.hero {
  padding-block: 5rem 4rem;
}

.hero h1 {
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero .lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-disclaimer {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-subtle);
  max-width: none;
}

.hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  line-height: 1.08;
}

/* ---- Features ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-card {
  background: var(--bg-surface);
  padding: 1.75rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.feature-card p {
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: none;
}

.feature-mark {
  width: 24px;
  height: 3px;
  background: var(--accent-muted);
  border-radius: 2px;
  margin-bottom: 1rem;
}

/* ---- Screenshots ---- */
.screenshots {
  padding-block: 3rem;
}

.screenshots-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.screenshots-strip::-webkit-scrollbar {
  height: 4px;
}

.screenshots-strip::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.screenshot-item {
  flex-shrink: 0;
  scroll-snap-align: start;
  width: 200px;
  height: 433px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .screenshots-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, 200px);
    gap: 0.8rem;
    overflow-x: visible;
    padding-bottom: 0;
  }
}

/* ---- Stores ---- */
.stores-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.125rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s;
  min-width: 180px;
}

a.store-badge:hover {
  border-color: var(--accent-border);
  text-decoration: none;
}

a.store-badge:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.store-badge-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.store-badge-text small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 1px;
}

.store-badge-text strong {
  font-size: 0.875rem;
  display: block;
}

.store-badge--disabled {
  opacity: 0.4;
  cursor: default;
}

/* ---- Why section ---- */
.why-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why-inner {
  max-width: 660px;
}

.why-inner h2 {
  margin-bottom: 1.25rem;
}

.why-inner p + p {
  margin-top: 1rem;
}

/* ---- CTA band ---- */
.cta-band {
  text-align: center;
  padding-block: 4rem;
}

.cta-band h2 {
  margin-bottom: 0.75rem;
}

.cta-band > .c > p {
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

/* ---- Page header (inner pages) ---- */
.page-header {
  padding-block: 3rem 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1rem;
}

/* ---- Prose (legal/about pages) ---- */
.prose {
  max-width: 700px;
  padding-bottom: 3rem;
}

.prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.875rem;
  font-size: 1.25rem;
}

.prose h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.prose p {
  margin-bottom: 1rem;
  max-width: none;
}

.prose ul,
.prose ol {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose li {
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  font-size: 0.9375rem;
}

.prose a {
  text-decoration: underline;
}

.prose strong {
  color: var(--text);
}

.prose .meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
}

/* ---- FAQ ---- */
.faq-list {
  display: flex;
  flex-direction: column;
  max-width: 720px;
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list details:first-child {
  border-top: 1px solid var(--border);
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.125rem 0;
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--text);
  font-weight: 500;
  list-style: none;
  user-select: none;
  gap: 1rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--text-muted);
  flex-shrink: 0;
  font-weight: 300;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: '−';
}

.faq-answer {
  padding-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 62ch;
}

/* ---- Troubleshooting ---- */
.troubleshoot-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 1.5rem;
  max-width: 660px;
}

.troubleshoot-item h3 {
  font-size: 0.9375rem;
  margin-bottom: 0.35rem;
}

.troubleshoot-item p {
  font-size: 0.9rem;
  max-width: none;
}

/* ---- Contact block ---- */
.contact-block {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  max-width: 460px;
}

.contact-block h3 {
  margin-bottom: 0.5rem;
}

.contact-block p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  max-width: none;
}

.contact-email {
  display: inline-block;
  font-weight: 500;
  font-size: 1rem;
}

/* ---- Changelog ---- */
.changelog-list {
  display: flex;
  flex-direction: column;
  max-width: 680px;
}

.changelog-entry {
  padding-block: 2rem;
  border-bottom: 1px solid var(--border);
}

.changelog-entry:first-child {
  border-top: 1px solid var(--border);
}

.changelog-entry:last-child {
  border-bottom: none;
}

.changelog-version {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.changelog-entry time {
  display: block;
  margin-bottom: 1rem;
}

.changelog-entry ul {
  list-style: disc;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.changelog-entry li {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.changelog-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 2rem 0;
}

/* ---- Support cards (donate page) ---- */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
  max-width: 960px;
}

.support-card {
  display: flex;
  flex-direction: column;
  padding: 1.625rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.support-card:hover {
  border-color: var(--accent-border);
  background: var(--bg-elevated);
  text-decoration: none;
}

.support-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sc-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.125rem;
  align-self: flex-start;
}

.sc-name {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.sc-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  max-width: none;
}

.sc-action {
  display: block;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

/* ---- Coming soon block ---- */
.coming-section {
  margin-top: 0.75rem;
  padding: 1rem 1.375rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.coming-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-subtle);
  white-space: nowrap;
  flex-shrink: 0;
}

.coming-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.coming-tag {
  font-size: 0.8125rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
}

/* ---- Support reasons ---- */
.support-reasons {
  margin-top: 2.75rem;
  max-width: 460px;
}

.support-reasons h2 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 0.875rem;
}

.support-reasons ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.support-reasons li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-left: 1.125rem;
  position: relative;
}

.support-reasons li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
  top: 0.125rem;
}
