/* Landing page styles. */
.hero {
  text-align: center;
  padding: 64px 24px 48px;
  max-width: 820px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.hero h1 .accent { color: var(--accent); }

.hero .tagline {
  font-size: 18px;
  color: var(--text-dim);
  margin: 0 auto 32px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions .btn-lg { min-width: 200px; }

.hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- Sections ---------- */
.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px;
  width: 100%;
}

.section h2 {
  font-size: 24px;
  margin: 0 0 8px;
  text-align: center;
}

.section .section-sub {
  text-align: center;
  color: var(--text-dim);
  margin: 0 0 32px;
}

.section .section-lead {
  max-width: 720px;
  margin: 0 auto 32px;
  color: var(--text-dim);
  line-height: 1.65;
  text-align: left;
}

.section .section-lead p { margin: 0 0 10px; }
.section .section-lead p:last-child { margin: 0; font-weight: 600; color: var(--text); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

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

.feature-card .icon {
  display: block;
  margin-bottom: 12px;
}

.feature-card .icon svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 { margin: 0 0 8px; font-size: 16px; }
.feature-card p { margin: 0; color: var(--text-dim); font-size: 13px; }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  counter-reset: step;
}

.step {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.step .step-num {
  counter-increment: step;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #0b1220;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 12px;
}

.step .step-num::before { content: counter(step); }

.step h3 { margin: 0 0 8px; font-size: 16px; }
.step p { margin: 0; color: var(--text-dim); font-size: 13px; }

/* ---------- Requirements ---------- */
.req-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.req-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-strong);
}

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

.req-list .req-icon { display: block; line-height: 0; }
.req-list .req-icon svg { width: 18px; height: 18px; display: block; margin-top: 2px; }
.req-list .req-title { font-weight: 700; display: block; }
.req-list .req-detail { color: var(--text-dim); font-size: 13px; }

/* ---------- Wiring ---------- */
.wiring-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: start;
}

.wiring-figure {
  margin: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  text-align: center;
}

.wiring-figure img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  cursor: zoom-out;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: 94vw;
  max-height: 92vh;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.wiring-figure figcaption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-dim);
}

.wiring-figure figcaption a { color: var(--accent); }

.wiring-heading {
  margin: 0 0 10px;
  font-size: 16px;
}

.wiring-heading:not(:first-child) { margin-top: 24px; }

.wiring-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.wiring-table th {
  text-align: left;
  padding: 9px 12px;
  background: var(--bg-input);
  color: var(--text-dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}

.wiring-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.wiring-table tr:last-child td { border-bottom: none; }

.wiring-table td:first-child { font-weight: 600; }

.wiring-table td:nth-child(2) {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent);
}

.wiring-table td:nth-child(3) { color: var(--text-dim); }

.wiring-battery {
  margin: 24px 0 0;
  color: var(--text-dim);
  font-size: 14px;
}

.step-link { color: var(--accent); font-size: 13px; text-decoration: none; }
.step-link:hover { text-decoration: underline; }

/* ---------- Warning ---------- */
.warning {
  background: var(--feature-tint);
  border: 1px solid var(--warn);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}

.warning h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--warn);
  font-size: 16px;
}

.warning h3 svg { width: 18px; height: 18px; flex-shrink: 0; }
.warning p { margin: 0 0 10px; color: var(--text); }
.warning p:last-child { margin-bottom: 0; }
.warning a { color: var(--accent); }

/* ---------- FAQ ---------- */
details.faq {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 10px;
}

details.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
}

details.faq summary::-webkit-details-marker { color: var(--text-dim); }

details.faq .faq-body { color: var(--text-dim); margin-top: 10px; font-size: 14px; }
details.faq .faq-body a { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 28px 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  margin-top: auto;
}

.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
  .hero { padding: 40px 16px 32px; }
  .wiring-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Aurora / glass UI layer: landing page (ui-flashy branch).
   ============================================================ */
.hero h1 .accent {
  background: var(--grad);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-pan 9s linear infinite;
}

.feature-card,
.step,
.wiring-figure {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  box-shadow: 0 12px 30px -22px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s var(--ease-out), box-shadow 0.35s ease, border-color 0.3s ease;
}

.feature-card:hover,
.step:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent-2) 55%, transparent);
  box-shadow: 0 18px 40px -18px var(--glow-1),
    0 0 0 1px color-mix(in srgb, var(--accent-2) 20%, transparent);
}

.feature-card .icon svg {
  color: var(--accent-2);
  filter: drop-shadow(0 0 8px var(--glow-1));
}

.step .step-num {
  background: var(--grad);
  color: #fff;
  border: none;
  box-shadow: 0 6px 18px -6px var(--glow-1);
}

.warning {
  background: color-mix(in srgb, var(--feature-tint) 72%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent);
  box-shadow: 0 12px 32px -22px rgba(0, 0, 0, 0.4);
}

.req-list .req-icon svg { color: var(--accent-2); }

.req-list li {
  border-radius: 8px;
  padding-left: 4px;
  transition: background 0.25s ease, padding-left 0.25s ease;
}

.req-list li:hover {
  background: color-mix(in srgb, var(--hover-bg) 55%, transparent);
  padding-left: 8px;
}

details.faq {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: color-mix(in srgb, var(--border) 80%, transparent);
  transition: border-color 0.25s ease, box-shadow 0.3s ease;
}

details.faq[open],
details.faq:hover {
  border-color: color-mix(in srgb, var(--accent-2) 45%, transparent);
  box-shadow: 0 10px 26px -18px var(--glow-1);
}

.wiring-table {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.wiring-figure img { box-shadow: 0 14px 40px -18px rgba(0, 0, 0, 0.55); }
.wiring-figure figcaption a { color: var(--accent-2); }

/* ---------- Bigger hero (ui-flashy) ---------- */
.hero {
  padding: 96px 24px 80px;
  max-width: 900px;
}

.hero h1 {
  font-size: 58px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.hero .tagline {
  font-size: 20px;
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 40px;
}

.hero-actions .btn-lg {
  min-width: 240px;
  font-size: 17px;
  padding: 16px 34px;
}

.hero-note {
  margin-top: 26px;
  font-size: 14px;
}

@media (max-width: 640px) {
  .hero { padding: 56px 16px 44px; }
  .hero h1 { font-size: 34px; }
  .hero .tagline { font-size: 17px; }
}
