/* =====================================================
   help.css
   Shared styles for public-facing informational pages:
   WiFi help guide, guest approval, and similar.
   CSS variables are set at runtime from BRAND config.
===================================================== */

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

:root {
  --ink:      #0a0a0f;
  --paper:    #f5f3ee;
  --accent:   #c8f135;
  --blob2:    #b8e0ff;
  --muted:    #7a7a8a;
  --border:   #e0ddd5;
  --card:     #ffffff;
  --radius:   18px;
}

html, body {
  min-height: 100%;
  font-family: 'Manrope', sans-serif;
  background: var(--paper);
  color: var(--ink);
}

/* ── grain ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ── blobs ── */
.blob { position: fixed; border-radius: 50%; filter: blur(100px); opacity: .4; pointer-events: none; z-index: 0; }
.blob-1 { width: 520px; height: 520px; background: var(--accent); top: -180px; right: -160px; animation: drift 10s ease-in-out infinite alternate; }
.blob-2 { width: 380px; height: 380px; background: var(--blob2); bottom: -120px; left: -100px; animation: drift 13s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(28px,18px) scale(1.05); } }

/* ══════════════════════════════════════
   CONFIRMATION / SIMPLE CARD
   (used on approval page)
══════════════════════════════════════ */
.confirm-page {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 16px;
}

.confirm-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 52px 48px 44px;
  width: 100%;
  max-width: 460px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 12px 40px rgba(0,0,0,.08);
  animation: rise .5s cubic-bezier(.22,.9,.36,1) both;
}

.confirm-card .logo-wrap { margin-bottom: 28px; }
.confirm-card .logo-wrap img { max-height: 52px; width: auto; }

.confirm-icon {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 20px;
}
.confirm-icon.success { background: #e8fdf0; color: #16a34a; }
.confirm-icon.error   { background: #fde8e8; color: #c0392b; }

.confirm-card h1 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.6rem; font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  margin-bottom: 10px;
}
.confirm-card p {
  font-size: .9rem; color: var(--muted);
  line-height: 1.6; margin-bottom: 24px;
}
.confirm-card .confirm-link {
  font-size: .85rem; color: var(--muted);
}
.confirm-card .confirm-link a {
  color: var(--ink); font-weight: 600;
  text-decoration: none; border-bottom: 1px solid var(--ink);
  transition: opacity .15s;
}
.confirm-card .confirm-link a:hover { opacity: .6; }

/* ══════════════════════════════════════
   HELP GUIDE LAYOUT
══════════════════════════════════════ */
.help-page {
  position: relative; z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 52px 28px 80px;
  animation: rise .5s cubic-bezier(.22,.9,.36,1) both;
}

/* ── logo bar ── */
.help-logo { margin-bottom: 40px; }
.help-logo img { max-height: 48px; width: auto; }

/* ── pill ── */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--paper); 
  color: var(--accent);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 10px 3px 8px; border-radius: 99px;
  margin-bottom: 14px;
}
.pill-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }

/* ── headings ── */
.help-page h1 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.1;
  color: var(--ink); margin-bottom: 12px;
}
.help-page .help-intro {
  font-size: .95rem; color: var(--muted);
  line-height: 1.65; margin-bottom: 36px;
  max-width: 600px;
}

/* ── device list (index) ── */
.device-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 36px;
}
.device-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 13px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600; font-size: .9rem;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.device-item:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); border-color: #bbb; }
.device-item svg { color: var(--muted); flex-shrink: 0; }

/* ── step-by-step guide ── */
.help-section-title {
  font-family: 'Manrope', sans-serif;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 24px;
}

.help-steps { display: flex; flex-direction: column; gap: 28px; margin-bottom: 36px; }

.help-step {
  display: flex; gap: 18px; align-items: flex-start;
}
.step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--ink);
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: .82rem; display: grid; place-items: center;
  flex-shrink: 0; margin-top: 2px;
}
.step-body { flex: 1; }
.step-body p {
  font-size: .92rem; color: var(--ink);
  line-height: 1.6; margin-bottom: 14px;
}
.step-body p strong { font-weight: 700; }
.step-body .step-img {
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  max-width: 480px; width: 100%; display: block;
  margin-top: 12px;
}

/* ── cert / info card ── */
.help-info-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 28px;
}
.help-info-card h3 {
  font-family: 'Manrope', sans-serif;
  font-size: .82rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.help-info-card p {
  font-size: .9rem; color: var(--ink);
  line-height: 1.6; margin-bottom: 8px;
}
.help-info-card p:last-child { margin-bottom: 0; }
.help-info-card a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--border); transition: border-color .15s; }
.help-info-card a:hover { border-color: var(--ink); }

.cert-value {
  display: inline-block;
  background: rgba(10,10,15,.05);
  border-radius: 6px;
  padding: 2px 8px;
  font-family: monospace;
  font-size: .85rem;
  color: var(--ink);
  word-break: break-all;
}

/* ── back link ── */
.help-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .85rem; font-weight: 600;
  color: var(--muted); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
  margin-top: 8px;
}
.help-back:hover { color: var(--ink); border-color: var(--ink); }

/* ── disclaimer ── */
.help-disclaimer {
  font-size: .75rem; color: var(--muted);
  line-height: 1.6; margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ── animations ── */
@keyframes rise { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

@media (max-width: 540px) {
  .confirm-card { padding: 36px 22px 32px; }
  .help-page { padding: 36px 18px 60px; }
  .device-list { grid-template-columns: 1fr 1fr; }
}
