/* Base palette */
:root{
  --bg:#0f1221; --card:#151935; --text:#eef1ff; --muted:#b7bce8;
  --accent:#7aa2ff; --accent2:#4de0b0; --logo-h:56px;  /* tweak to resize logo */
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif}
a{color:var(--accent)} a:hover{text-decoration:underline}
.wrap{max-width:960px;margin:0 auto;padding:0 16px}

/* Header */
.site-header{border-bottom:1px solid rgba(255,255,255,.07);position:sticky;top:0;backdrop-filter:blur(6px)}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;height:64px}
.logo{display:inline-flex;align-items:center}
.logo picture,.logo img{display:block;height:var(--logo-h)}
.logo img{width:auto;height:var(--logo-h)}
.nav a{margin-left:16px;color:var(--muted)} .nav a.active,.nav a:hover{color:var(--text)}

/* Hero */
.hero{padding:64px 16px 24px;text-align:center}
h1{font-size:40px;margin:0 0 16px}
.lead{font-size:18px;color:var(--muted);max-width:720px;margin:0 auto 24px}

/* Store badges: equal height + top aligned */
.store-badges{
  display:flex; gap:16px; justify-content:center; align-items:flex-start; flex-wrap:wrap;
  margin:10px 0 28px;
}
.badge-img{display:block; height:64px; width:auto}   /* single height for both */

/* Content sections */
.screenshot{margin:20px auto 0;background:var(--card);border-radius:16px;padding:12px;max-width:760px}
.features{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;padding:24px 16px 56px}
.feature{background:var(--card);padding:16px;border-radius:16px}
.content{padding:32px 16px 64px}
.embed{background:var(--card);padding:10px;border-radius:12px}
.embed iframe{width:100%;height:70vh;border:none;border-radius:8px}

/* FAQ */
.faq{background:var(--card);border-radius:12px;padding:12px 16px;margin:10px 0}
.faq summary{cursor:pointer;font-weight:600}

/* Footer */
.site-footer{border-top:1px solid rgba(255,255,255,.07)}
.site-footer .wrap{padding:24px 16px;text-align:center;color:var(--muted)}

/* Responsive tweaks */
@media (max-width:520px){
  h1{font-size:32px}
  .lead{font-size:16px}
  :root{--logo-h:44px}
  .badge-img{height:56px}
}

/* === Added: Legal buttons & modal === */

.legal-actions{
  display:flex;
  justify-content:center;
  gap:12px;
  margin:12px 0 8px;
  flex-wrap:wrap;
}

.btn{
  border:none;
  border-radius:999px;
  padding:8px 18px;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  background:var(--accent);
  color:#0f1221;
  transition:transform .08s ease, box-shadow .08s ease, background .12s ease;
}
.btn:hover{
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(0,0,0,.4);
  background:#8bb0ff;
}
.btn:active{
  transform:translateY(0);
  box-shadow:none;
}

.btn-secondary{
  background:var(--accent2);
}
.btn-secondary:hover{
  background:#63e6bd;
}

/* Legal fallback text */
.legal-fallback{
  margin-top:12px;
  font-size:14px;
  color:var(--muted);
}

/* Modal backdrop */
.modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.75);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:999;
  padding:16px;
}
.modal-backdrop.active{
  display:flex;
}

/* Modal window */
.modal{
  background:var(--card);
  border-radius:16px;
  max-width:960px;
  width:100%;
  max-height:90vh;
  display:flex;
  flex-direction:column;
  box-shadow:0 16px 40px rgba(0,0,0,.6);
}

.modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 16px 8px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.modal-header h2{
  margin:0;
  font-size:18px;
}

.modal-close{
  border:none;
  background:transparent;
  color:var(--muted);
  font-size:26px;
  line-height:1;
  cursor:pointer;
}
.modal-close:hover{
  color:var(--text);
}

.modal-body{
  padding:12px 14px 16px;
}
.modal-body .embed{
  margin:0;
}
.modal-body .embed iframe{
  height:65vh;
}

/* Small screens: make sure modal fills nicely */
@media (max-width:640px){
  .modal{
    max-height:95vh;
  }
  .modal-body .embed iframe{
    height:60vh;
  }
}
