*{box-sizing:border-box}
:root{
  --bg:#08111f;
  --panel:#0f172a;
  --panel-2:#111c31;
  --text:#fff;
  --muted:#cbd5e1;
  --subtle:#7c8aa1;
  --line:rgba(255,255,255,.09);
  --blue:#2563eb;
  --green:#22c55e;
}
html,body{
  margin:0;
  min-height:100%;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:var(--bg);
  color:var(--text);
}
body{
  min-height:100vh;
  background:
    radial-gradient(circle at 20% 0%,#1e293b 0,#0f172a 35%,#08111f 75%);
}
button,a{-webkit-tap-highlight-color:transparent}
.shell{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:max(24px,env(safe-area-inset-top)) 24px max(24px,env(safe-area-inset-bottom));
}
.card{
  width:min(100%,440px);
  padding:34px 28px;
  border:1px solid var(--line);
  border-radius:28px;
  background:rgba(15,23,42,.86);
  box-shadow:0 24px 80px rgba(0,0,0,.35);
  backdrop-filter:blur(16px);
}
.logo{
  display:inline-grid;
  place-items:center;
  width:78px;
  height:78px;
  border-radius:22px;
  background:#fff;
  color:#0f172a;
  font-weight:900;
  letter-spacing:-1px;
  margin-bottom:18px;
}
.device-pill{
  width:max-content;
  max-width:100%;
  display:flex;
  align-items:center;
  gap:8px;
  min-height:30px;
  padding:6px 10px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:999px;
  background:rgba(255,255,255,.04);
  color:#9fb0c8;
  font-size:11px;
  font-weight:700;
  margin-bottom:20px;
}
.device-dot{
  width:7px;height:7px;border-radius:50%;
  background:#60a5fa;
  box-shadow:0 0 0 5px rgba(96,165,250,.08);
}
.eyebrow{
  display:block;
  font-size:12px;
  letter-spacing:.16em;
  color:#94a3b8;
  font-weight:800;
  margin-bottom:12px;
}
h1{
  font-size:34px;
  line-height:1.02;
  letter-spacing:-1.2px;
  margin:0 0 16px;
}
p{
  color:var(--muted);
  line-height:1.6;
  margin:0 0 26px;
}
.primary,.secondary{
  width:100%;
  min-height:54px;
  border-radius:16px;
  font-size:16px;
  font-weight:800;
  text-decoration:none;
  display:flex;
  align-items:center;
  justify-content:center;
}
.primary{
  border:0;
  background:#fff;
  color:#0f172a;
  cursor:pointer;
  margin-bottom:12px;
}
.primary:hover{background:#f8fafc}
.primary:disabled{opacity:.55;cursor:default}
.secondary{
  border:1px solid rgba(255,255,255,.14);
  color:#fff;
  background:rgba(255,255,255,.03);
}
.secondary:hover{background:rgba(255,255,255,.06)}
small{
  display:block;
  text-align:center;
  color:#64748b;
  margin-top:18px;
  line-height:1.45;
}
.modal{
  position:fixed;
  inset:0;
  z-index:50;
  background:rgba(2,6,23,.82);
  display:none;
  align-items:flex-end;
  justify-content:center;
  padding:16px;
  padding-bottom:max(16px,env(safe-area-inset-bottom));
}
.modal.show{display:flex}
.modal-card{
  position:relative;
  width:min(100%,480px);
  background:#fff;
  color:#0f172a;
  border-radius:28px;
  padding:28px;
  box-shadow:0 24px 90px rgba(0,0,0,.35);
  animation:modalUp .22s ease-out;
}
.modal-card h2{
  margin:5px 0 20px;
  font-size:27px;
  letter-spacing:-.7px;
}
.modal-copy{color:#475569;margin:0 0 22px}
.modal-eyebrow{
  display:block;
  color:#64748b;
  font-size:10px;
  font-weight:900;
  letter-spacing:.14em;
  margin-top:12px;
}
.modal-icon{
  width:50px;height:50px;border-radius:15px;
  display:grid;place-items:center;
  font-size:21px;font-weight:900;
}
.ios-icon{background:#111827;color:#fff}
.android-icon{background:#dcfce7;color:#15803d}
.desktop-icon{background:#dbeafe;color:#1d4ed8}
.close{
  position:absolute;
  right:18px;
  top:14px;
  border:0;
  background:transparent;
  font-size:30px;
  line-height:1;
  cursor:pointer;
  color:#64748b;
}
.steps{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:12px;
}
.steps li{
  display:grid;
  grid-template-columns:34px 1fr;
  gap:11px;
  align-items:center;
  padding:12px;
  border:1px solid #e2e8f0;
  border-radius:15px;
  color:#334155;
  line-height:1.45;
}
.step-number{
  width:30px;height:30px;
  display:grid;place-items:center;
  border-radius:10px;
  background:#eff6ff;
  color:#2563eb;
  font-weight:900;
}
.share-icon{
  display:inline-grid;
  place-items:center;
  width:25px;height:25px;
  margin-left:4px;
  border:1px solid #cbd5e1;
  border-radius:7px;
  color:#2563eb;
  font-weight:800;
}
.share-icon span{transform:translateY(-2px)}
.browser-note{
  margin-top:16px;
  padding:12px 14px;
  border-radius:13px;
  background:#f8fafc;
  color:#64748b;
  font-size:12px;
  line-height:1.5;
}
.modal-primary{
  width:100%;
  min-height:50px;
  margin-top:18px;
  border:0;
  border-radius:14px;
  background:#0f172a;
  color:#fff;
  font-weight:800;
  cursor:pointer;
}
.app-splash{
  position:fixed;
  inset:0;
  z-index:100;
  display:none;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  background:#08111f;
  color:#94a3b8;
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.app-splash.show{display:flex}
.app-splash__logo{
  width:92px;height:92px;
  border-radius:26px;
  display:grid;place-items:center;
  background:#fff;
  color:#0f172a;
  font-size:17px;
  font-weight:900;
  letter-spacing:-1px;
}
@keyframes modalUp{
  from{opacity:0;transform:translateY(14px)}
  to{opacity:1;transform:translateY(0)}
}
@media (max-width:520px){
  .shell{padding-left:16px;padding-right:16px}
  .card{padding:28px 22px;border-radius:24px}
  h1{font-size:30px}
  .modal-card{padding:24px 20px;border-radius:24px}
}
@media (display-mode:standalone){
  .device-pill{display:none}
  #installBtn{display:none}
}
@media (prefers-reduced-motion:reduce){
  .modal-card{animation:none}
}
