:root {
  --accion-red: #eb5b5a;
  --accion-dark: #2b2b2b;
  --muted: #6b6b6b;
  --bg: #fafafa;
  --card: #fff;
  --border: #e5e5e5;
  --accent: #e5e5e5;
}

* {
  box-sizing: border-box;
}

html {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.55;
  color: var(--accion-dark);
  background: var(--bg);
}

body {
  margin: 0;
  padding: 0;
}

header,
section,
footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

header {
  text-align: center;
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.brand-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 1rem;
}

header h1 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 auto;
  max-width: 500px;
}

h2 {
  font-size: 1.3rem;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--accent);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

kbd {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: var(--card);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
}

/* --- Install hero --- */
.code-hero {
  position: relative;
  margin: 1rem 0 0.75rem;
}

.code-hero pre {
  background: var(--accion-dark);
  color: #fafafa;
  padding: 1.1rem 4.5rem 1.1rem 1.1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

.code-hero code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

.copy-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fafafa;
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Inline pre blocks in other sections */
section pre {
  background: var(--accent);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  overflow-x: auto;
  font-size: 0.85rem;
  margin: 0.4rem 0;
}

section pre code {
  background: transparent;
  padding: 0;
}

/* --- Experimental .app downloads --- */
.experimental,
.optional {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 2rem 1.5rem;
  max-width: 720px;
}

@media (min-width: 760px) {
  .experimental,
  .optional {
    margin: 2rem auto;
  }
}

.optional h3 {
  font-size: 1rem;
  margin: 1.25rem 0 0.4rem;
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1rem 0;
}

@media (min-width: 520px) {
  .download-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.download-card {
  display: block;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.15s,
    transform 0.1s;
}

.download-card:hover {
  border-color: var(--accion-red);
  transform: translateY(-1px);
}

.download-card .arch {
  font-weight: 600;
  font-size: 1.05rem;
}

.download-card .sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.1rem;
}

.download-card .download-cta {
  color: var(--accion-red);
  font-weight: 600;
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

/* --- Lists --- */
ol,
ul {
  padding-left: 1.4rem;
}

ol li,
ul li {
  margin-bottom: 0.4rem;
}

dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 1.25rem;
  row-gap: 0.5rem;
}

dt {
  font-weight: 600;
}

dd {
  margin: 0;
}

details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

details > summary {
  cursor: pointer;
  font-weight: 500;
}

details[open] > summary {
  margin-bottom: 0.5rem;
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 3rem 1.5rem 4rem;
}

footer a {
  color: var(--accion-red);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
