/* 0Log PM official page (/pm/) — teal palette taken from the Your Corner page
   (openiot.co:8882/account): accent #4fd1c5, filled buttons #14b8a6. */

:root {
  --bg: #0f1115;
  --panel: #171a21;
  --panel2: #1f232c;
  --line: #2a2f3a;
  --fg: #e8ebf0;
  --dim: #8b93a3;
  --accent: #4fd1c5;
  --accent-deep: #14b8a6; /* filled button background, same as .btn on /account */
  --ok: #3ecf8e;
  --err: #ff6b6b;
}

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

html, body {
  background: var(--bg); color: var(--fg); min-height: 100%;
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

/* Faint glow background */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 25%, rgba(79,209,197,0.10) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 22px;
  background: rgba(15,17,21,0.92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.topbar-brand {
  display: flex; align-items: center; gap: 8px;
  color: var(--accent); font-size: 17px; font-weight: 600; letter-spacing: .3px;
}
.topbar-brand svg { width: 26px; height: 26px; filter: drop-shadow(0 0 6px rgba(79,209,197,.45)); }
.topbar-actions a {
  display: inline-block; margin-left: 8px; padding: 7px 16px;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--panel2); color: var(--fg);
  font-size: 14px; text-decoration: none; transition: all .18s;
}
.topbar-actions a:hover { border-color: var(--accent); color: var(--accent); }
.topbar-actions a.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.topbar-actions a.primary:hover { filter: brightness(1.1); color: #fff; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 48px 24px 28px; }
.mark { display: block; margin-bottom: 14px; }
.mark svg { width: 96px; height: 96px; filter: drop-shadow(0 0 12px rgba(79,209,197,.4)); }
.hero h1 { font-size: 44px; font-weight: 600; color: var(--accent); letter-spacing: 1px; }
.hero .subtitle { margin-top: 8px; color: var(--dim); font-size: 17px; }

.tagline {
  max-width: 540px; margin: 0 auto; padding: 12px 24px;
  text-align: center; color: var(--dim); font-size: 15px; line-height: 1.7;
}

/* ---------- download ---------- */
.download-section { text-align: center; padding: 26px 24px 32px; }
.download-btn {
  display: inline-block; padding: 14px 34px; margin-top: 10px;
  background: var(--accent-deep); color: #fff; text-decoration: none;
  border-radius: 10px; font-size: 16px; font-weight: 600;
  box-shadow: 0 4px 18px rgba(79,209,197,0.25); transition: transform .18s, box-shadow .18s;
}
.download-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(79,209,197,0.4); }
.download-btn.launch { box-shadow: 0 6px 26px rgba(79,209,197,0.42); border: 1px solid rgba(79,209,197,0.55); }
.download-note { margin-top: 6px; color: var(--dim); font-size: 13px; }
.download-other { margin-top: 12px; color: #5a6474; font-size: 13px; }

/* ---------- privacy ---------- */
.privacy-section { max-width: 680px; margin: 16px auto; padding: 0 24px; }
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.privacy-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px;
}
.privacy-card .icon { font-size: 24px; margin-bottom: 10px; }
.privacy-card h3 { color: var(--accent); font-size: 15px; margin-bottom: 6px; font-weight: 600; }
.privacy-card p { color: var(--dim); font-size: 13.5px; line-height: 1.6; }

.divider { border: none; border-top: 1px solid var(--line); margin: 32px 24px; }

/* ---------- invitation note (sits directly under the tagline) ---------- */
.invite { max-width: 520px; margin: 0 auto; padding: 10px 24px 0; text-align: center; }
.invite p { color: var(--dim); font-size: 14px; line-height: 1.7; }
.invite strong { color: var(--accent); }

/* ---------- footer (identical to the login page) ---------- */
.footer {
  margin-top: 40px; padding: 22px 16px 30px;
  text-align: center; color: var(--accent);
  font-size: 13px; letter-spacing: .3px;
  border-top: 1px solid var(--line);
}
.footer .by { font-weight: 600; }
/* Explicit #7fa8a2 = the login page's --dim, so this line matches it exactly. */
.footer .copy { margin-top: 6px; color: #7fa8a2; font-size: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 600px) {
  .topbar { padding: 10px 12px; }
  .topbar-brand { font-size: 13px; }
  .topbar-brand svg { width: 20px; height: 20px; }
  .topbar-actions a { margin-left: 5px; padding: 6px 9px; font-size: 12px; }
  .hero h1 { font-size: 32px; }
  .mark svg { width: 64px; height: 64px; }
  .privacy-grid { grid-template-columns: 1fr; }
}
