/* ----- reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: #fafaf9;
  color: #1c1917;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ----- top strip ----- */
.disclaimer {
  background: #fef2f2;
  border-bottom: 1px solid #fecaca;
  color: #991b1b;
  font-size: 12px;
  text-align: center;
  padding: 9px 16px;
  line-height: 1.45;
}

.disclaimer strong {
  font-weight: 700;
}

header {
  background: #fff;
  border-bottom: 1px solid #e7e5e4;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  color: #b91c1c;
  text-decoration: none;
}

.brand-logo {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: block;
}

/* ----- main ----- */
main {
  flex: 1;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
  padding: 36px 24px 56px;
}

.intro {
  font-size: 14px;
  color: #78716c;
  margin-bottom: 20px;
}

/* ----- HERO (Tools all-in-one) ----- */
.hero {
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 18px;
  padding: 28px 28px 30px;
  margin-bottom: 36px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

.hero-grid {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 22px;
  align-items: start;
}

.hero-logo {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.18);
}

.hero-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-head h1 {
  font-size: 24px;
  font-weight: 700;
  color: #1c1917;
  letter-spacing: -0.01em;
}

.badge-bundle {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.hero-sub {
  margin-top: 8px;
  font-size: 14.5px;
  color: #57534e;
  line-height: 1.55;
}

.hero-version {
  display: inline-block;
  margin-left: 4px;
  color: #a8a29e;
  font-size: 13px;
}

/* ----- download control ----- */
.download {
  position: relative;
  display: inline-flex;
  margin-top: 18px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 10px 0 0 10px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  background: #b91c1c;
  color: #fff;
  font-family: inherit;
}

.btn-download.primary:hover {
  background: #991b1b;
}

.btn-download.caret {
  border-radius: 0 10px 10px 0;
  padding: 11px 12px;
  border-left: 1px solid rgba(255,255,255,0.18);
}

.btn-download.caret:hover {
  background: #991b1b;
}

.btn-download[aria-expanded="true"] {
  background: #991b1b;
}

.btn-download[disabled],
.btn-download[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.dl-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.dl-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  color: currentColor;
  fill: currentColor;
}

.dl-text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.dl-label { font-size: 14px; font-weight: 500; }
.dl-meta  {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
  font-weight: 400;
}

.btn-download.compact {
  padding: 8px 12px;
  font-size: 13px;
}
.btn-download.compact .dl-label { font-size: 13px; }
.btn-download.compact .dl-meta  { font-size: 10.5px; }
.btn-download.compact.caret { padding: 8px 9px; }

/* ----- platform menu ----- */
.dl-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  padding: 6px;
  z-index: 30;
}

.dl-menu[hidden] { display: none; }

.dl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: #1c1917;
  text-decoration: none;
  transition: background 0.1s;
}

.dl-item:hover { background: #f5f5f4; }

.dl-item .dl-icon {
  color: #57534e;
  width: 16px;
  height: 16px;
}

.dl-item-label {
  flex: 1;
  font-weight: 500;
}

.dl-item-meta {
  font-size: 11px;
  color: #a8a29e;
}

.dl-item[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.dl-item[aria-disabled="true"] .dl-item-meta {
  color: #a8a29e;
}


/* ----- legal note ----- */
.legal-note {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 24px;
}

.legal-note h2 {
  font-size: 15px;
  margin-bottom: 8px;
  color: #9a3412;
}

.legal-note ul {
  margin-left: 18px;
  color: #7c2d12;
  display: grid;
  gap: 6px;
  font-size: 13px;
  line-height: 1.5;
}

/* ----- altri tool grid ----- */
.other-head {
  margin-bottom: 14px;
}

.other-head h2 {
  font-size: 16px;
  font-weight: 600;
  color: #1c1917;
}

.other-head p {
  font-size: 13px;
  color: #78716c;
  margin-top: 2px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.card {
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card h3 {
  font-size: 14.5px;
  font-weight: 600;
  color: #1c1917;
}

.badge {
  font-size: 11px;
  font-weight: 500;
  color: #78716c;
  background: #f5f5f4;
  border: 1px solid #e7e5e4;
  border-radius: 6px;
  padding: 2px 8px;
}

.card p {
  font-size: 13px;
  color: #78716c;
  line-height: 1.55;
  flex: 1;
}

.card-actions {
  display: flex;
  margin-top: 4px;
  position: relative;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: #44403c;
  background: #fafaf9;
  border: 1px solid #e7e5e4;
  border-radius: 8px;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.btn-ghost:hover {
  background: #fff;
  color: #1c1917;
  border-color: #d6d3d1;
}

/* ----- support / Ko-fi ----- */
.support {
  margin-top: 36px;
}

.support-card {
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.support-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.support-icon svg {
  width: 22px;
  height: 22px;
}

.support-body {
  flex: 1;
  min-width: 0;
}

.support-body h2 {
  font-size: 14.5px;
  font-weight: 600;
  color: #1c1917;
  margin-bottom: 2px;
}

.support-body p {
  font-size: 13px;
  color: #78716c;
  line-height: 1.55;
}

.kofi-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: #ff5e5b;
  border: 1px solid #ff5e5b;
  border-radius: 8px;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.12s, border-color 0.12s, transform 0.08s;
  white-space: nowrap;
}

.kofi-btn:hover {
  background: #f04945;
  border-color: #f04945;
}

.kofi-btn:active {
  transform: translateY(1px);
}

/* ----- footer ----- */
footer {
  border-top: 1px solid #e7e5e4;
  padding: 16px 24px;
  text-align: center;
  font-size: 12px;
  color: #a8a29e;
  background: #fff;
}

/* ----- responsive ----- */
@media (max-width: 600px) {
  .header-inner { padding: 14px 16px; }
  main { padding: 24px 16px 40px; }
  .hero { padding: 22px 20px 24px; border-radius: 14px; }
  .hero-grid { grid-template-columns: 64px 1fr; gap: 16px; }
  .hero-logo { width: 64px; height: 64px; border-radius: 14px; }
  .hero-head h1 { font-size: 20px; }
  .grid { grid-template-columns: 1fr; }
  .dl-menu { min-width: 180px; }
  .support-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
  }
  .kofi-btn { align-self: stretch; justify-content: center; }
}
