/* CAX Solar public installation microsite — dark-first, mobile-first.
   System font stack only; no external resources. */

:root {
  color-scheme: dark;
  --bg: #0b0b0e;
  --bg-elevated: #15151b;
  --bg-elevated-2: #1c1c24;
  --border: #2b2b36;
  --text: #f4f4f7;
  --text-muted: #c3c3cd;
  --accent: #ff8a1b;
  --accent-pressed: #e67a10;
  --on-accent: #1a1206;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Hero ---- */

.hero {
  background: linear-gradient(180deg, #191218 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 40px 0 32px;
}

.brand {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 700;
}

/* ---- Sections ---- */

main.wrap {
  padding-top: 8px;
  padding-bottom: 8px;
}

.intro {
  padding: 24px 0 8px;
}

.intro p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin: 16px 0;
}

.bullets {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bullets li {
  position: relative;
  padding: 10px 0 10px 28px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.bullets li:last-child {
  border-bottom: none;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 1.15em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.note {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.attribution {
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  text-align: center;
}

/* ---- Chips ---- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated-2);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
}

/* ---- Cómo funciona (guest-friendly flow) ---- */

.flow {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.flow-row {
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.flow-label {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flow-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.flow-steps .chip {
  min-height: 40px;
  padding: 6px 14px;
  font-size: 0.875rem;
  background: var(--bg-elevated);
}

.flow-arrow {
  color: var(--accent);
  font-size: 1.125rem;
  font-weight: 700;
}

/* ---- CTA / footer ---- */

.cta {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, #141017 100%);
  padding: 32px 0 40px;
}

.cta h2 {
  margin-bottom: 20px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  margin-bottom: 12px;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid var(--accent);
}

.btn-primary:active {
  background: var(--accent-pressed);
  border-color: var(--accent-pressed);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.footer-line {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 0.8125rem;
  text-align: center;
}

/* ---- 404 / index ---- */

.notfound {
  padding-top: 64px;
  padding-bottom: 64px;
  text-align: center;
}

.notfound p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.notfound .btn {
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.index-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.index-list li + li {
  margin-top: 10px;
}

.index-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.index-link:hover {
  border-color: var(--accent);
}

/* ---- Interaction states ---- */

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

.btn-primary:focus-visible {
  outline-color: var(--text);
}

a {
  color: var(--accent);
}

/* ---- Wider screens ---- */

@media (min-width: 640px) {
  .hero {
    padding: 56px 0 44px;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.375rem;
  }

  .card {
    padding: 28px;
  }

  .flow-steps .chip {
    min-height: 44px;
  }
}
