/* ─────────────────────────────────────────────────────
   CannaOS Download Page — Shared Stylesheet
   Branding is controlled by CSS custom properties
   set in each client's index.html <style> block.
───────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #0f0f0f;
  color: #f0f0f0;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── Page shell ── */
.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--primary) 85%, #000) 0%,
    #0f0f0f 65%
  );
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
}

.hero-inner {
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.logo-wrap {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-wrap img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

/* fallback initial when no logo */
.logo-wrap .logo-fallback {
  width: 72px;
  height: 72px;
  font-size: 2.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-name {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}

.tagline {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
  max-width: 320px;
  line-height: 1.55;
}

/* ── Download button ── */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.4rem;
  padding: 0.9rem 2.2rem;
  background: var(--primary);
  color: var(--text-on-primary, #fff);
  border: none;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.2s, transform 0.15s;
  box-shadow: 0 4px 24px color-mix(in srgb, var(--primary) 55%, transparent);
  -webkit-tap-highlight-color: transparent;
}

.btn-download:hover  { filter: brightness(1.12); transform: translateY(-1px); }
.btn-download:active { filter: brightness(0.93); transform: translateY(0); }

.btn-download svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.app-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

.app-meta .sep { opacity: 0.5; }

/* ── Section shared ── */
.section {
  padding: 2.25rem 1.5rem;
  max-width: 460px;
  margin: 0 auto;
  width: 100%;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 1.1rem;
}

/* ── Features ── */
.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.82);
}

.check-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.check-icon svg {
  width: 13px;
  height: 13px;
}

/* ── Install steps ── */
.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

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

.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--text-on-primary, #fff);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.step-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.9rem;
}

.step-body strong { color: #fff; font-weight: 600; }

.step-body span {
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

.step-body em {
  font-style: normal;
  color: rgba(255,255,255,0.78);
}

/* ── Divider between sections ── */
.section + .section {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 2.25rem;
}

/* ── Footer ── */
footer {
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.4rem 1.5rem 2rem;
  text-align: center;
}

.footer-biz {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  margin: 0 0 0.3rem;
}

.footer-powered {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.2);
  margin: 0;
}

.footer-powered a {
  color: var(--accent);
  text-decoration: none;
  opacity: 0.65;
}

.footer-powered a:hover { opacity: 1; }
